/* ==========================================================================
   SIMUBEE.COM - STYLES GLOBAUX
   ========================================================================== */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    margin: 0;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    line-height: 1.5;
}

/* ────────────────────────────────────────────────
   Header
   ──────────────────────────────────────────────── */
.site-header {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: linear-gradient(135deg, #f57c00 0%, #fbc02d 50%, #ffeb3b 100%);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    padding: 12px 0;
}

.header-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 200px;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-img {
    width: 52px;
    height: auto;
}

.logo-text {
    font-size: clamp(1.6rem, 6vw, 2.2rem);
    font-weight: bold;
    color: #1b5e20;
    text-shadow: 0 1px 3px rgba(255,255,255,0.8);
}

.header-user .user-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    cursor: pointer;
    border: 2px solid #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.25);
}
/* Conteneur parent de l'icône utilisateur → doit être position: relative */
.header-user {
    position: relative;          /* ← IMPORTANT : ça devient le nouveau point de référence */
}
.header-nav {
    margin-top: 2px;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 20px;
}

.nav-item {
    position: relative;
}

.nav-item a {
    color: #1b5e20;
    text-decoration: none;
    font-weight: 600;
    font-size: clamp(0.95rem, 3.5vw, 1.05rem);
    padding: 8px 6px;
    display: inline-block;
    transition: all 0.25s ease;
}

.nav-item a:hover {
    background: rgba(255,255,255,0.35);
    border-radius: 6px;
    color: #c62828;
}

.home-icon a {
    padding: 8px;
    display: flex;
    align-items: center;
}

.home-img {
    width: 26px;
    height: auto;
}

/* Sous-menus (desktop par défaut) */
.sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 6px 16px rgba(0,0,0,0.18);
    list-style: none;
    margin: 4px 0 0 0;
    padding: 8px 0;
    min-width: 180px;
    z-index: 1001;
}

.sub-menu li a {
    display: block;
    padding: 10px 20px;
    color: #2c3e50;
    font-size: 1rem;
    white-space: nowrap;
}

.sub-menu li a:hover {
    background: #fff9e6;
    color: #1b5e20;
}

.nav-item:hover .sub-menu {
    display: block;
}

/* ────────────────────────────────────────────────
   Page d'accueil
   ──────────────────────────────────────────────── */
body.homepage {
    background: linear-gradient(135deg, #ffeb3b 0%, #fbc02d 50%, #f57c00 100%);
    min-height: 100vh;
    color: #1b5e20;
}

.homepage .home-container {
    padding-top: 50px;
    padding-bottom: 60px;
    text-align: center;
    max-width: 540px;
    width: 90%;
    margin: 0 auto;
}

.home-container {
    animation: slideUp 0.9s ease-out;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}

.title-main {
    font-size: clamp(3.5rem, 12vw, 7rem);
    font-weight: 900;
    background: linear-gradient(45deg, #1b5e20, #2e7d32, #4caf50);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 4px 15px rgba(0,0,0,0.25);
    letter-spacing: -3px;
    line-height: 0.9;
}

.title-sub {
    font-size: clamp(2.2rem, 8vw, 4.5rem);
    color: #c62828;
    font-weight: 800;
    text-shadow: 0 3px 12px rgba(200,40,40,0.4);
    letter-spacing: -1px;
}

.home-description {
    font-size: clamp(1.2rem, 4vw, 1.5rem);
    font-weight: 500;
    margin: 0 0 40px 0;
    line-height: 1.45;
    text-shadow: 0 1px 4px rgba(255,255,255,0.7);
}

.home-description small {
    font-size: 0.82em;
    opacity: 0.92;
    font-weight: 400;
}

.enter-btn {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #4caf50, #2e7d32, #1b5e20);
    color: white;
    padding: 20px 50px;
    border-radius: 60px;
    text-decoration: none;
    font-size: clamp(1.3rem, 5vw, 1.7rem);
    font-weight: 700;
    box-shadow: 0 14px 40px rgba(46,125,50,0.6);
    transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
    min-height: 80px;
}

.enter-btn:hover {
    transform: translateY(-8px) scale(1.04);
    box-shadow: 0 24px 60px rgba(46,125,50,0.8);
    background: linear-gradient(135deg, #66bb6a, #4caf50, #43a047);
}

.enter-btn small {
    font-size: 0.68em;
    opacity: 0.95;
    margin-top: 6px;
    letter-spacing: 0.8px;
}

.version-badge {
    margin-top: 30px;
    padding: 10px 22px;
    background: rgba(255,255,255,0.92);
    border-radius: 40px;
    font-size: 1rem;
    color: #444;
    font-weight: 600;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

/* ────────────────────────────────────────────────
   Popup utilisateur
   ──────────────────────────────────────────────── */
/* Le popup utilisateur */
.user-popup {
    display: none;
    position: absolute;
    top: 100%;                   /* juste en dessous de l'icône */
    right: 0;                    /* aligné à droite de l'icône (pas de l'écran) */
    /* OU pour le centrer sous l'icône : */
    /* left: 50%; */
    /* transform: translateX(-50%); */
    /* right: auto; */

    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.25);
    min-width: 260px;
    max-width: 320px;            /* évite qu'il soit trop large sur mobile */
    padding: 16px 0;
    z-index: 1001;
    margin-top: 8px;             /* petite marge sous l'icône */
}

/* Quand il est visible */
.user-popup.active {
    display: block;
}

/* Ajustement mobile : on le laisse aligné à droite de l'icône */
@media (max-width: 768px) {
    .user-popup {
        right: 0;                /* reste collé à droite de l'icône */
        left: auto;              /* on annule un éventuel centrage */
        min-width: 240px;        /* un peu plus étroit sur petit écran */
        max-width: 90vw;         /* ne dépasse jamais l'écran */
        margin-right: 8px;       /* petite marge à droite pour ne pas toucher le bord */
    }
}



.user-popup-inner {
    padding: 0 12px;
}

.user-greeting {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1b5e20;
    margin-bottom: 8px;
}

.user-email {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 12px;
}

.user-menu-separator {
    border: none;
    border-top: 1px solid #eee;
    margin: 8px 0;
}

.user-menu-links {
    padding: 8px 16px;
}

.user-menu-btn {
    display: block;
    width: 100%;
    padding: 12px 20px;
    margin: 6px 0;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.25s ease;
    color: white;
}

.user-menu-btn.main-btn {
    background: #2e7d32;
    box-shadow: 0 3px 10px rgba(46,125,50, 0.35);
}

.user-menu-btn.main-btn:hover {
    background: #388e3c;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(46,125,50, 0.55);
}

.user-menu-btn.help-btn {
    background: #6a1b9a;
    box-shadow: 0 3px 10px rgba(106,27,154, 0.3);
}

.user-menu-btn.help-btn:hover {
    background: #7b1fa2;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(106,27,154, 0.45);
}

.user-menu-btn.danger-btn {
    background: #c62828;
    box-shadow: 0 3px 10px rgba(198,40,40, 0.3);
}

.user-menu-btn.danger-btn:hover {
    background: #d32f2f;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(198,40,40, 0.45);
}

.user-menu-btn:active,
.user-menu-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(46,125,50, 0.4);
}

/* ────────────────────────────────────────────────
   Responsive - Mobile
   ──────────────────────────────────────────────── */
@media (max-width: 768px) {
    .header-wrapper {
        padding: 0 12px;
        max-width: 100%;
		
    }

    .header-top {
        gap: 12px;
    }

    .header-logo {
        gap: 8px;
    }

    .logo-img {
        width: 48px;
    }

    .logo-text {
        font-size: clamp(1.4rem, 5.5vw, 1.9rem);
    }

    .header-user .user-icon {
        width: 40px;
        height: 40px;
    }

    .nav-menu {
        gap: 14px;
    }

    .nav-item a {
        padding: 6px 4px;
        font-size: 0.95rem;
    }

    .home-icon a {
        padding: 6px;
    }

    .home-img {
        width: 24px;
    }

    /* Sous-menus en superposition sur mobile */
    .sub-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #fff9e6;
        border-radius: 0 0 8px 8px;
        box-shadow: 0 6px 16px rgba(0,0,0,0.18);
        z-index: 999;
        padding: 8px 0;
        margin: 0;
    }

    .nav-item.active .sub-menu {
        display: block;
    }

    .sub-menu li a {
        display: block;
        padding: 12px 20px;
        font-size: 1rem;
        color: #2c3e50;
    }

    .sub-menu li a:hover,
    .sub-menu li a:active {
        background: #fff0c7;
    }

    .has-submenu > a::after {
        content: ' ▼';
        font-size: 0.8em;
        margin-left: 6px;
        opacity: 0.7;
    }

    .user-popup {
        right: -10px;
        min-width: 220px;
    }

    .user-menu-btn {
        padding: 14px 20px;
        font-size: 1.05rem;
        border-radius: 14px;
    }
}

@media (max-width: 480px) {
    .header-wrapper {
        padding: 0 10px;
    }

    .enter-btn {
        padding: 16px 40px;
        min-height: 70px;
    }
}

/* ────────────────────────────────────────────────
   Modal de connexion (plein écran) - VERSION STABLE
   ──────────────────────────────────────────────── */

.login-modal-overlay {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.login-modal-overlay.active {
    display: flex !important;
}

.login-modal {
    position: relative;
    background: white;
    border-radius: 16px;
    max-width: 440px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    padding: 8px 18px;
    box-shadow: 0 16px 60px rgba(0,0,0,0.4);
}

/* Bouton fermer */
.modal-close-btn {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    font-size: 2.2rem;
    color: #777;
    cursor: pointer;
    line-height: 1;
}

.modal-close-btn:hover {
    color: #c62828;
}

/* En-tête */
.modal-header {
    text-align: center;
    margin-bottom: 50px;
}

.modal-header h2 {
    font-size: 1.9rem;
    color: #1b5e20;
    margin: 0 0 6px 0;
}

.modal-header h3 {
    font-size: 1.35rem;
    color: #2e7d32;
    margin: 0 0 8px 0;
}

.welcome-back {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1b5e20;
    margin: 0;
}

.missed-you {
    font-size: 1rem;
    color: #555;
    margin: 4px 0 0;
}

/* Bouton Google */
.btn-google {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 12px;
    background: #ffffff;
    border: 1px solid #d0d0d0;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 500;
    color: #333;
    margin-bottom: 18px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-google:hover {
    background: #f8f9fa;
    border-color: #bbb;
}

/* Séparateur OU */
.divider {
    display: flex;
    align-items: center;
    margin: 18px 0;
    color: #777;
}

.divider span {
    padding: 0 16px;
    font-size: 0.9rem;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #ddd;
}

/* Formulaire */
.form-group {
    margin-bottom: 14px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #444;
}

.form-group input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #ccc;
    border-radius: 10px;
    font-size: 0.98rem;
}

/* Mot de passe oublié */
.forgot-password {
    text-align: right;
    margin-bottom: 18px;
}

.forgot-password a {
    color: #1b5e20;
    font-size: 0.92rem;
}

/* Bouton connexion */
.btn-login {
    width: 100%;
    padding: 13px;
    background: #2e7d32;
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s;
}

.btn-login:hover {
    background: #388e3c;
    transform: translateY(-2px);
}

/* Lien inscription */
.signup-link {
    text-align: center;
    margin-top: 18px;
    font-size: 0.96rem;
    color: #555;
}

.signup-link a {
    color: #1b5e20;
    font-weight: 600;
}

/* Avertissement Google */
.google-warning {
    margin-top: 20px;
    padding: 12px;
    background: #f8f5ff;
    border-radius: 10px;
    font-size: 0.84rem;
    color: #444;
    line-height: 1.4;
}

.google-warning strong {
    color: #6a1b9a;
}

/* Mobile */
@media (max-width: 480px) {
    .login-modal {
        padding: 20px 18px;
    }
    
    .modal-header h2 {
        font-size: 1.7rem;
    }
    
    .btn-login {
        padding: 12px;
    }
}

/* Amélioration affichage bouton Google officiel */
.gsi-material-button {
    width: 100% !important;
    margin-bottom: 18px;
}

.gsi-material-button:hover {
    box-shadow: 0 2px 4px 0 rgba(60,64,67,.3), 0 2px 6px 2px rgba(60,64,67,.15) !important;
}

.divider {
    margin: 16px 0;
}

/* ────────────────────────────────────────────────
   Modal INSCRIPTION (plein écran)
   ──────────────────────────────────────────────── */

.register-modal-overlay {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.register-modal-overlay.active {
    display: flex;
}

.register-modal {
    position: relative;
    background: white;
    border-radius: 16px;
    max-width: 460px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 24px 24px;
    box-shadow: 0 16px 60px rgba(0,0,0,0.4);
}

/* Bouton fermer */
.register-modal .modal-close-btn {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    font-size: 2.2rem;
    color: #777;
    cursor: pointer;
}

/* Petits textes */
.form-required.small-text {
    font-size: 0.78rem;
    color: #777;
    margin: 0 0 12px 0;
    text-align: right;
}

.login-link {
    text-align: center;
    margin-top: 20px;
    font-size: 0.96rem;
    color: #555;
}

.login-link a {
    color: #1b5e20;
    font-weight: 600;
}

/* Bouton inscription */
.btn-register {
    width: 100%;
    padding: 13px;
    background: #2e7d32;
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 12px;
    transition: all 0.25s;
}

.btn-register:hover {
    background: #388e3c;
    transform: translateY(-2px);
}

/* Même style que connexion pour les champs */
.register-form .form-group {
    margin-bottom: 14px;
}

.register-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #444;
}

.register-form input,
 {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #ccc;
    border-radius: 10px;
    font-size: 0.98rem;
    box-sizing: border-box;
}

.register-form select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #ccc;
    border-radius: 10px;
    font-size: 0.98rem;
    background: white;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23333' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 12px;
}

/* ────────────────────────────────────────────────
   PAGE AIDE & CONTACT
   ──────────────────────────────────────────────── */

.aide-contact-page {
    padding: 50px 20px 80px;
    
    min-height: 100vh;
	background: transparent !important; /* pour que le body soit visible */
}

.aide-contact-page {
   
}
.aide-contact-page .container {
    max-width: 900px;
    margin: 0 auto;
}

.aide-contact-page h1 {
    font-size: 2.8rem;
    font-weight: 800;
    color: #1b5e20;
    text-align: center;
    margin-bottom: 20px;
    text-shadow: 0 2px 6px rgba(27,94,32,0.15);
}

.aide-contact-page .intro {
    text-align: center;
    font-size: 1.18rem;
    color: #444;
    line-height: 1.6;
    max-width: 720px;
    margin: 0 auto 50px;
}

/* FAQ */
.faq-section {
    margin-bottom: 60px;
}

.faq-section h2 {
    font-size: 2.1rem;
    color: #2e7d32;
    margin-bottom: 30px;
    text-align: center;
    position: relative;
}

.faq-section h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: #fbc02d;
    margin: 12px auto 0;
    border-radius: 2px;
}

.faq-item {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    margin-bottom: 16px;
    overflow: hidden;
}

.faq-item h3 {
    margin: 0;
    padding: 18px 24px;
    font-size: 1.22rem;
    color: #1b5e20;
    cursor: pointer;
    background: #f9fff5;
    transition: background 0.2s;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-item h3:hover {
    background: #f0ffea;
}

.faq-item h3::after {
    content: '▼';
    font-size: 0.9rem;
    color: #fbc02d;
    transition: transform 0.3s;
}

.faq-item.active h3::after {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 24px 20px;
    color: #555;
    line-height: 1.65;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.3s;
}

.faq-item.active .faq-answer {
    max-height: 600px; /* ajuster selon contenu max */
    padding: 20px 24px;
}

/* Formulaire de contact */
.contact-section {
    background: white;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
    padding: 40px;
    margin-bottom: 60px;
}

.contact-section h2 {
    font-size: 2.1rem;
    color: #2e7d32;
    text-align: center;
    margin-bottom: 30px;
}

.contact-form .form-group {
    margin-bottom: 24px;
}

.contact-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #444;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #d0d0d0;
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #2e7d32;
    box-shadow: 0 0 0 3px rgba(46,125,50,0.15);
}

.contact-form textarea {
    resize: vertical;
    min-height: 140px;
}

.btn-submit {
    display: block;
    width: 100%;
    max-width: 320px;
    margin: 30px auto 0;
    padding: 16px;
    background: #2e7d32;
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.15rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s;
}

.btn-submit:hover {
    background: #388e3c;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(56,142,60,0.3);
}

.privacy-note {
    text-align: center;
    margin-top: 20px;
    font-size: 0.92rem;
    color: #777;
}

/* Autres moyens de contact */
.extra-info {
    text-align: center;
}

.extra-info h2 {
    font-size: 1.9rem;
    color: #1b5e20;
    margin-bottom: 24px;
}

.extra-info ul {
    list-style: none;
    padding: 0;
    display: inline-block;
    text-align: left;
}

.extra-info li {
    margin: 12px 0;
    font-size: 1.05rem;
}

.extra-info li strong {
    color: #2e7d32;
}

/* Responsive */
@media (max-width: 768px) {
    .aide-contact-page {
        padding: 40px 15px 60px;
    }
    
    .aide-contact-page h1 {
        font-size: 2.3rem;
    }
    
    .contact-section {
        padding: 30px 20px;
    }
    
    .btn-submit {
        max-width: 100%;
    }
}

/* ────────────────────────────────────────────────
   PAGE PROFIL - VERSION ULTRA-COMPACTE
   ──────────────────────────────────────────────── */

.profil-page {
    padding: 30px 15px 50px;
    background: transparent !important; /* pour que le body soit visible */
    min-height: 100vh;
}

.profil-page .container {
    max-width: 520px;              /* encore plus étroit */
    margin: 0 auto;
}

.profil-page h1 {
    font-size: 2.1rem;
    color: #1b5e20;
    text-align: center;
    margin-bottom: 20px;
}

.profil-form {
    background: transparent !important; /* pour que le body soit visible */
    border-radius: 12px;
    box-shadow: 0 4px 18px rgba(0,0,0,0.07);
    padding: 20px 18px;
}

.profil-form .full-width {
    margin-bottom: 14px;
}

.profil-form .form-row {
    display: flex;
    gap: 16px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.profil-form .form-group {
    flex: 1;
    min-width: 220px;
    margin-bottom: 0;
}

.profil-form .form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #444;
    font-size: 0.95rem;
}

.profil-form input[disabled] {
    background: #f9f9f9;
    color: #777;
    padding: 10px 12px;
}

.profil-form input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d0d0d0;
    border-radius: 8px;
    font-size: 0.95rem;
}

.profil-form input:focus {
    outline: none;
    border-color: #2e7d32;
    box-shadow: 0 0 0 2px rgba(46,125,50,0.12);
}

.profil-form .separator {
    border: 0;
    height: 1px;
    background: #eee;
    margin: 16px 0;
}

.profil-form h3 {
    font-size: 1.25rem;
    color: #2e7d32;
    margin: 16px 0 10px;
    text-align: center;
}
.profil-form .label-row {
    display: flex;
    align-items: baseline;
    gap: 12px;              /* espace entre "Email" et "(non modifiable)" */
    margin-bottom: 6px;     /* espace avant l'input */
}

.profil-form .label-row label {
    margin: 0;
    font-weight: 500;
    color: #444;
    font-size: 0.98rem;
}

.profil-form .label-row small.non-modifiable {
    font-size: 0.82rem;
    color: #777;
    font-style: italic;
}
.btn-save {
    display: block;
    width: 100%;
    max-width: 240px;              /* bouton encore plus petit */
    margin: 18px auto 0;
    padding: 11px;
    background: #2e7d32;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s;
}

.btn-save:hover {
    background: #388e3c;
    transform: translateY(-1px);
}

/* Alertes ultra-compactes */
.alert {
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 0.95rem;
}

/* Responsive */
@media (max-width: 600px) {
    .profil-page {
        padding: 25px 12px 40px;
    }
    
    .profil-form {
        padding: 16px;
    }
}




/* Messages dans la popup inscription */
#register-messages {
    margin-bottom: 18px;
}

.alert {
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 0.96rem;
    line-height: 1.45;
}

.alert-success {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #a5d6a7;
}

.alert-danger {
    background: #ffebee;
    color: #c62828;
    border: 1px solid #ef9a9a;
}

.alert-info {
    background: #e3f2fd;
    color: #1565c0;
    border: 1px solid #90caf9;
}

/* Overlay global pour message de succès après inscription */
#success-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.65);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.6s ease;
}

#success-overlay > div {
    background: white;
    padding: 35px 50px;
    border-radius: 16px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.35);
    max-width: 600px;
    width: 90%;
    text-align: center;
    font-size: 1.35rem;
    color: #2e7d32;
    line-height: 1.5;
}

.perso-resend-link {
    font-size: 0.85em;      /* plus petit que le texte normal */
    color: #6b4a2d;         /* brun */
    text-decoration: underline;
}

.perso-resend-link:hover {
    color: #8b5e34;         /* brun un peu plus clair au survol */
}


/* resend-verification.css */

.auth-container {
    max-width: 460px;
    margin: 80px auto 40px;
    padding: 40px 30px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.12);
}

.auth-container h1 {
    font-size: 1.9rem;
    text-align: center;
    margin: 0 0 2rem;
    color: #1b5e20;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 600;
    color: #2c3e50;
}

.form-group input {
    padding: 14px 16px;
    font-size: 1.05rem;
    border: 2px solid #d1d5db;
    border-radius: 10px;
    transition: border-color 0.2s;
}

.form-group input:focus {
    outline: none;
    border-color: #4caf50;
    box-shadow: 0 0 0 4px rgba(76,175,80,0.15);
}

.btn {
    padding: 14px;
    font-size: 1.1rem;
    font-weight: 600;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-primary {
    background: #4caf50;
    color: white;
}

.btn-primary:hover {
    background: #43a047;
    transform: translateY(-1px);
}

.alert {
    padding: 16px 20px;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
    line-height: 1.45;
}

.alert.success {
    background: #e8f5e9;
    color: #1b5e20;
    border: 1px solid #a5d6a7;
}

.alert.error {
    background: #ffebee;
    color: #c62828;
    border: 1px solid #ef9a9a;
}

.auth-links {
    text-align: center;
    margin-top: 1.8rem;
    font-size: 0.98rem;
}

.auth-links a {
    color: #1b5e20;
    text-decoration: none;
    font-weight: 500;
}

.auth-links a:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 500px) {
    .auth-container {
        margin: 40px 15px;
        padding: 30px 20px;
    }
}

/* css/verify.css */

.verify-container {
    max-width: 500px;
    padding: 50px 35px;
    text-align: center;
}

.verify-container h1 {
    font-size: 2.1rem;
    color: #1b5e20;
    margin-bottom: 2rem;
}

.alert {
    padding: 18px 24px;
    border-radius: 12px;
    margin: 0 auto 2.5rem;
    font-size: 1.1rem;
    line-height: 1.5;
    max-width: 100%;
}

.alert-success {
    background: #e8f5e9;
    color: #1b5e20;
    border: 2px solid #a5d6a7;
}

.alert-error,
.alert-danger {
    background: #ffebee;
    color: #c62828;
    border: 2px solid #ef9a9a;
}

.success-actions {
    margin-top: 2rem;
}

.btn-register {
    display: inline-block;
    padding: 16px 48px;
    font-size: 1.15rem;
    margin: 1rem 0;
}

.small-note {
    margin-top: 1.5rem;
    color: #555;
    font-size: 1rem;
}

#countdown {
    font-weight: bold;
    color: #2e7d32;
}

.resend-option {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #eee;
}

.resend-option p {
    margin-bottom: 1rem;
    color: #444;
}

.link-resend {
    color: #1b5e20;
    font-weight: 600;
    text-decoration: underline;
}

.link-resend:hover {
    color: #2e7d32;
}

/* Responsive */
@media (max-width: 540px) {
    .verify-container {
        padding: 40px 20px;
    }
    
    .verify-container h1 {
        font-size: 1.8rem;
    }
}

/* ────────────────────────────────────────────────
   Popup de notification temporaire
   ──────────────────────────────────────────────── */

.popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(4px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.popup-overlay.active,
#popupMessage {           /* on le rend visible directement */
    opacity: 1;
    visibility: visible;
}

.popup-modal {
    position: relative;
    background: white;
    border-radius: 16px;
    padding: 28px 32px;
    max-width: 460px;
    width: 90%;
    box-shadow: 0 15px 50px rgba(0,0,0,0.35);
    text-align: center;
    transform: scale(0.8);
    opacity: 0;
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.35s;
}

.popup-overlay.active .popup-modal,
#popupMessage .popup-modal {
    transform: scale(1);
    opacity: 1;
}

.popup-close-btn {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    font-size: 2.4rem;
    color: #777;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
}

.popup-close-btn:hover,
.popup-close-btn:focus {
    color: #c62828;
}

.popup-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.popup-icon {
    font-size: 3.2rem;
    line-height: 1;
    margin-bottom: 8px;
}

.popup-modal p {
    margin: 0;
    font-size: 1.15rem;
    line-height: 1.5;
    color: #333;
}

/* ─── Variantes de couleur ─── */
.popup-success {
    border: 4px solid #2e7d32;
    background: #e8f5e9;
    color: #1b5e20;
}

.popup-success .popup-icon {
    color: #2e7d32;
}

.popup-warning {
    border: 4px solid #f57c00;
    background: #fff3e0;
    color: #e65100;
}

.popup-warning .popup-icon {
    color: #f57c00;
}

.popup-error {
    border: 4px solid #c62828;
    background: #ffebee;
    color: #b71c1c;
}

.popup-error .popup-icon {
    color: #c62828;
}

/* Responsive */
@media (max-width: 480px) {
    .popup-modal {
        padding: 24px 20px;
    }
    
    .popup-icon {
        font-size: 2.8rem;
    }
    
    .popup-modal p {
        font-size: 1.05rem;
    }
}
/* ── Footer version ─────────────────────────────────────── */
.site-footer-version {
    text-align: center;
    padding: 7px 22px;
    margin: 0 auto 32px;
    font-size: 0.95rem;
    color: #444;
    font-weight: 600;
    background: rgba(255,255,255,0.92);
    border-radius: 40px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    max-width: 540px;
    width: 90%;
    box-sizing: border-box;
}
