/* =========================
   GRT – FORMULAIRE DASHBOARD
   ========================= */

/* =========================
   GRT – FORMULAIRE DASHBOARD
   ========================= */

.entry-content {
    width: 100%;
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

/* Conteneur principal */
.grt-form-wrapper {
    width: 100%;
    margin: 0 auto;
    padding: 30px;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    box-sizing: border-box;
}

/* Layout flex pour le tableau de bord */
.grt-dashboard-flex {
    display: flex;
    width: 100%;
    gap: 20px; /* Espace entre le menu et le contenu */
}

/* Menu latéral */
.grt-dashboard-menu {
    width: 250px; /* Largeur fixe pour le menu */
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
    height: fit-content; /* Ajuste la hauteur au contenu */
}

/* Menu latéral - Liste */
.grt-dashboard-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.grt-dashboard-menu li {
    margin-bottom: 10px;
}

.grt-dashboard-menu a {
    display: block;
    padding: 8px 12px;
    background: #e5e7eb;
    border-radius: 4px;
    text-decoration: none;
    color: #374151;
    transition: background-color 0.2s;
}

.grt-dashboard-menu a:hover {
    background: #d1d5db;
}

/* Contenu principal */
.grt-dashboard-content {
    flex: 1; /* Prend tout l'espace restant */
    padding: 20px;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    width: calc(100% - 270px); /* Largeur = 100% - largeur du menu - gap */
}

/* Formulaire de demande */
.grt-form-request {
    width: 100%;
}

.grt-form-request label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}


input.grt-txt-court { width: 200px; }
input.grt-txt-moyen { width: 300px; }
input.grt-txt-long { width: 100%; }

/*.grt-form-request input[type="text"], */
.grt-form-request select,
.grt-form-request textarea,
.grt-form-request input[type="file"] {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    font-size: 14px;
}

.grt-btn {
    padding: 10px 20px;
    background: #2563eb;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 15px;
}

.grt-btn:hover {
    background: #1d4ed8;
}


.grt-form-wrapper input:focus,
.grt-form-wrapper select:focus,
.grt-form-wrapper textarea:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 2px rgba(37,99,235,0.15);
    outline: none;
}

.grt-form-wrapper textarea {
    min-height: 100px;
    resize: vertical;
}

.grt-form-wrapper label {
    font-size: 14px;
    color: #374151;
    display: block;
    margin-bottom: 6px;
}

.grt-checkbox-group label {
    display: inline-flex;
    align-items: center;
    margin-right: 15px;
    font-size: 14px;
}
.grt-txt-email {
    width: 200px; /* Largeur fixe pour limiter l'affichage */
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    overflow: hidden; /* Masque le texte qui dépasse */
    white-space: nowrap; /* Empêche le retour à la ligne */
    text-overflow: ellipsis; /* Affiche "..." si le texte est trop long (optionnel) */
}
.grt-checkbox-group input {
    margin-right: 6px;
}

.grt-form-wrapper button {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s;
}

.grt-form-wrapper button:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(37,99,235,0.35);
}

.grt-success {
    width: 100%;
    margin: 30px 0;
    padding: 20px;
    border-radius: 8px;
    background: #ecfdf5;
    border: 1px solid #34d399;
    color: #065f46;
    font-size: 15px;
    text-align: center;
}

/* Style pour les cases à cocher des intérêts */
.grt-form-wrapper .form-table tr th label {
    display: inline;
    font-weight: bold;
}

.grt-form-wrapper .form-table tr td label {
    display: block;
    margin: 5px 0;
    font-weight: normal;
}



/* Style général du formulaire */
.grt-login-form {
    max-width: 400px;
    margin: 40px auto;
    padding: 30px;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Titre du formulaire */
.grt-login-form h3 {
    margin-bottom: 20px;
    font-size: 1.8rem;
    text-align: center;
    color: #1f2937;
}

/* Conteneur pour les champs */
.grt-login-form .grt-input-group {
    margin-bottom: 15px;
}

/* Champs de saisie */
.grt-login-form input[type="email"],
.grt-login-form input[type="password"] {
    width: 100%;
    padding: 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 15px;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}

/* Effet de focus sur les champs */
.grt-login-form input[type="email"]:focus,
.grt-login-form input[type="password"]:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.15);
    outline: none;
}

/* Bouton de connexion */
.grt-login-form button[type="submit"] {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s;
    margin-top: 20px;
}

/* Effet de survol sur le bouton */
.grt-login-form button[type="submit"]:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.35);
}

/* Lien vers l'inscription */
.grt-login-link {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
    color: #6b7280;
}

.grt-login-link a {
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
}

.grt-login-link a:hover {
    text-decoration: underline;
}


.grt-lecons-container {
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
}

.grt-lecons-container h3 {
    margin-top: 0;
    color: #2c3e50;
}

.grt-lecons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.grt-lecon-item {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

.grt-lecon-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.grt-lecon-thumbnail img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    display: block;
}

.grt-lecon-content {
    padding: 15px;
}

.grt-lecon-content h4 {
    margin: 0 0 10px 0;
    font-size: 1.1rem;
    color: #1f2937;
}

.grt-lecon-content h4 a {
    color: inherit;
    text-decoration: none;
}

.grt-lecon-content h4 a:hover {
    color: #2563eb;
}

.grt-lecon-excerpt {
    margin: 0;
    color: #6b7280;
    font-size: 0.9rem;
    line-height: 1.5;
}

.grt-amis-container {
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
}

.grt-amis-container h3 {
    margin-top: 0;
    color: #2c3e50;
}

.grt-amis-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.grt-amis-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    padding: 15px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.grt-amis-info {
    margin-left: 15px;
    flex: 1;
}

.grt-amis-info h4 {
    margin: 0 0 5px 0;
    color: #2563eb;
}

.grt-amis-info h4 a {
    color: inherit;
    text-decoration: none;
}

.grt-message-btn {
    display: inline-block;
    padding: 5px 10px;
    background: #2563eb;
    color: #fff;
    border-radius: 4px;
    text-decoration: none;
    font-size: 13px;
}

.grt-message-btn:hover {
    background: #1d4ed8;
}
.grt-lecons-container {
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
}

.grt-lecons-container h3 {
    margin-top: 0;
    color: #2c3e50;
}

.grt-lecons-list {
    list-style: none;
    padding: 0;
}

.grt-lecons-list li {
    margin-bottom: 10px;
    padding: 10px;
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.grt-lecons-list a {
    color: #2563eb;
    text-decoration: none;
}

.grt-lecons-list a:hover {
    text-decoration: underline;
}





        .grt-messagerie-container {
            display: flex;
            gap: 20px;
            padding: 20px;
            background: #f9f9f9;
            border-radius: 8px;
            max-width: 1000px;
            margin: 0 auto;
        }

        .grt-conversations-list {
            width: 250px;
            background: #fff;
            border-radius: 8px;
            padding: 15px;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
            height: fit-content;
        }

        .grt-conversations-list h4 {
            margin-top: 0;
            color: #2c3e50;
        }

        .grt-conversation-item {
            padding: 10px;
            border-bottom: 1px solid #e5e7eb;
            cursor: pointer;
        }

        .grt-conversation-item:hover {
            background: #f3f4f6;
        }

        .grt-conversation-item a {
            display: block;
            text-decoration: none;
            color: #374151;
        }

        .grt-messages-container {
            flex: 1;
            background: #fff;
            border-radius: 8px;
            padding: 20px;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
        }

        .grt-message-form {
            margin-bottom: 20px;
        }

        .grt-message-form textarea {
            width: 100%;
            padding: 10px;
            border: 1px solid #ddd;
            border-radius: 4px;
            min-height: 100px;
            resize: vertical;
            margin-bottom: 10px;
        }

        .grt-message-form button {
            padding: 10px 20px;
            background: #2563eb;
            color: #fff;
            border: none;
            border-radius: 4px;
            cursor: pointer;
        }

        .grt-messages {
            max-height: 500px;
            overflow-y: auto;
        }

        .grt-message {
            margin-bottom: 20px;
            padding: 15px;
            border-radius: 8px;
            max-width: 80%;
        }

        .grt-message.sent {
            background: #dbeafe;
            margin-left: auto;
            text-align: right;
        }

        .grt-message.received {
            background: #f3f4f6;
            margin-right: auto;
            text-align: left;
        }

        .grt-message-header {
            display: flex;
            justify-content: space-between;
            margin-bottom: 5px;
            font-size: 14px;
        }

        .grt-message-header strong {
            color: #1f2937;
        }

        .grt-message-header span {
            color: #6b7280;
            font-size: 12px;
        }

        .grt-message-content {
            font-size: 15px;
            line-height: 1.5;
        }










.grt-avatar-preview {
    max-width: 150px;
    max-height: 150px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    margin-bottom: 10px;
}

.avatar {
    border-radius: 50%;
    object-fit: cover;
}
