/* ===================================
   VARIABLES DE THÈME
=================================== */
:root {
    --primary-color: #667eea;
    --secondary-color: #764ba2;
    --accent-color: #84d1f4;
    --success: #28a745;
    --error: #dc3545;
    --text-light: #ffffff;
    --text-dark: #333333;
    --text-primary: #ffffff;
    --text-secondary: #cccccc;
    --bg-light: #f5f5f5;
    --bg-dark: #1a1a1a;
    --bg-primary: #253268;
    --bg-secondary: #232158;
    --border-light: rgba(255,255,255,0.1);
    --border-radius-md: 12px;
    --border-radius-lg: 25px;
    --shadow-sm: 0 2px 6px rgba(0,0,0,0.15);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.25);
    --shadow-lg: 0 20px 60px rgba(0,0,0,0.3);
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-bg: linear-gradient(135deg, #253268 0%, #232158 100%);
    --transition-speed: 0.3s ease;
    --header-height: 90px;
}

/* ===================================
   RESET ET STYLES DE BASE
=================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--gradient-bg);
    color: var(--text-dark);
    line-height: 1.6;
    min-height: 100vh;
}

/* ===================================
   HEADER
=================================== */

.header {
    background: var(--bg-light);
    color: var(--text-light);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.header-container {
    max-width: 100%;
    margin: 0 0px;
    padding: 0 66px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 50px;
    width: auto;
}

.header-controls {
    display: none;
    gap: 10px;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: "3px";
}
.btnLoginMobile{
    display: flex;
    flex-direction: row;
}

.nav {
    display: flex;
    gap: 30px;
    align-items: center;
    justify-content: space-between;
    width: 100%;
  
}


.nav a {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 16px;
    transition: color 0.3s;
    padding: 8px 12px;
}

.nav a:hover {
    color: var(--accent-color);
}
.section-LogHeader{
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 20px;
}
.btn-login {
    background-color: transparent;
    color: var(--secondary-color);
    padding: 5px !important;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    height: 32px;
    width: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ===== SÉLECTEUR DE LANGUE (DESKTOP) ===== */
.language-selector {
    position: relative;
}

.language-btn {
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 24px;
    cursor: pointer;
    padding: 8px 12px;
   
}



.language-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--text-light);
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    min-width: 180px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    display: none;
    margin-top: 10px;
    z-index: 2000;
    overflow: hidden;
}

.language-dropdown.active {
    display: flex;
    flex-direction: column;
}

.language-option {
    background: none;
    border: none;
    padding: 12px 20px;
    text-align: left;
    cursor: pointer;
    color: var(--text-dark);
    font-size: 15px;
    transition: all 0.3s;
    width: 100%;
}

.language-option:hover {
    background-color: var(--bg-light);
    color: var(--primary-color);
    font-weight: bold;
}

.language-option.active {
    background-color: var(--accent-color);
    color: var(--primary-color);
    font-weight: bold;
}

/* ===== SÉLECTEUR DE LANGUE (MOBILE) ===== */
.language-btn-mobile {
    display: none;
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 24px;
    cursor: pointer;
    padding: 8px 12px;
}
.user-btn-mobile{
   
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 24px;
    cursor: pointer;
    padding: 8px 12px;
}




.sidebar-header {
    background: var(--primary-color);
    color: var(--text-light);
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sidebar-header h3 {
    margin: 0;
    font-size: 18px;
}
.language-sidebar {
    position: fixed;
    top: 0;
    right: -300px; /* Positionne le sidebar hors de l'écran à droite */
    width: 100%;
    max-width: 300px;
    height: 100vh;
    background: var(--text-light);
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.3);
    transition: right 0.3s ease; /* S'anime maintenant correctement */
    z-index: 1500;
    overflow-y: auto;
}

/* Lorsque la classe active est ajoutée */
.language-sidebar.active {
    display: block;
    right: 0; /* Glisse le sidebar dans l'écran */
}
.close-sidebar {
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar-content {
    padding: 20px 0;
    display: flex;
    flex-direction: column;
}

.sidebar-language-option {
    background: none;
    border: none;
    padding: 15px 20px;
    text-align: left;
    cursor: pointer;
    color: var(--text-dark);
    font-size: 16px;
    transition: all 0.3s;
    border-bottom: 1px solid #eee;
}

.sidebar-language-option:hover {
    background-color: var(--bg-light);
    color: var(--primary-color);
    font-weight: bold;
    padding-left: 30px;
}

.sidebar-language-option.active {
    background-color: var(--accent-color);
    color: var(--primary-color);
    font-weight: bold;
}

/* ===== NAVIGATION SIDEBAR (Mobile) ===== */
.nav-sidebar {
    position: fixed;
    top: 0;
    left: -100%;
    width: 100%;
    max-width: 280px;
    height: 100vh;
    background: var(--bg-dark);
    box-shadow: 5px 0 15px rgba(0, 0, 0, 0.3);
    transition: left 0.3s ease;
    z-index: 1400;
    overflow-y: auto;
    display: block;
}

.nav-sidebar.active {
    left: 0px;
    top: 0px;
}

.nav-sidebar-header {
    padding: 20px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: flex-end;
}

.close-nav-sidebar {
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 28px;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s;
}

.close-nav-sidebar:hover {
    transform: scale(1.2);
}

.nav-sidebar-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
   
    padding: 20px 0;
}

.nav-sidebar-content a {
    color: var(--text-light);
    text-decoration: none;
    padding: 15px 20px;
    font-size: 16px;
    transition: all 0.3s;
    border-left: 4px solid transparent;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    width: 100%;
}

.nav-sidebar-content a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-left-color: var(--accent-color);
    padding-left: 30px;
    color: var(--accent-color);
    
}

.btn-login-sidebar {
    color: var(--text-light);
    text-decoration: none;
    padding: 15px 20px;
    font-size: 16px;
    transition: all 0.3s;
    border-left: 4px solid transparent;
   
    width: 100%;
}

.btn-login-sidebar:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-left-color: var(--accent-color);
    padding-left: 30px;
    color: var(--accent-color);
}
.logout-link {
    background-color: var(--accent-color) !important;
    color: var(--secondary-color) !important;
    font-weight: bold;
    margin: 10px 20px;
    border-radius: 5px;
    text-align: center;
    transition: all 0.3s !important;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    display: block;
    text-decoration: none;
}

.logout-link:hover {
    background-color: #ffe0e0 !important; 
    color: black !important; /* optionnel : change la couleur au survol */
}


/* ===== OVERLAY (fermer le sidebar) ===== */
.nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 1300;
}

.nav-overlay.active {
    background: rgba(0, 0, 0, 0.5);
    opacity: 1;
    pointer-events: auto;
}

/* ===== MENU HAMBURGER (Mobile) ===== */
.menu-btn {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    gap: 6px;
    z-index: 1100;
    color: var(--bg-primary);
}

.menu-btn span {
    width: 25px;
    height: 3px;
    background-color: var(--bg-primary);
    border-radius: 2px;
    transition: 0.3s;
}

.menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(10px, 10px);
}

.menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}




/* ===================================
   CONTENEUR PRINCIPAL
=================================== */
.contener {
    max-width: 1400px;
    margin: 50px auto;
    padding: 60px 40px;
    text-align: center;
}

.contener h1 {
    font-size: 3rem;
    color: var(--text-light);
    margin-bottom: 15px;
    font-weight: 700;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.2);
}

.contener h3 {
    font-size: 1.4rem;
    color: rgba(255,255,255,0.95);
    margin-bottom: 50px;
    font-weight: 300;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.2);
}

/* ===================================
   FORMULAIRE + IMAGE (GRID)
=================================== */
.container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: var(--text-light);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    max-width: 1200px;
    margin: 0 auto;
    min-height: 600px;
}

/* Formulaire */
.container form {
    padding: 50px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 25px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

/* Image */
.side-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* ===================================
   FORMULAIRE
=================================== */
form label {
    text-align: left;
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.95rem;
}

input[type="text"],
input[type="email"],
textarea {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e0e0e0;
    border-radius: var(--border-radius-md);
    font-size: 1rem;
    transition: var(--transition-speed);
    font-family: inherit;
}

input[type="text"]::placeholder,
input[type="email"]::placeholder,
textarea::placeholder {
    color: #999;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background-color: #f8f9ff;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

textarea {
    min-height: 120px;
    resize: vertical;
}

button[type="submit"] {
    background: var(--gradient-primary);
    color: var(--text-light);
    padding: 16px 40px;
    border: none;
    border-radius: var(--border-radius-md);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-speed);
    margin-top: 10px;
}

button[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

button[type="submit"]:active {
    transform: translateY(0);
}

/* ===================================
   FAQ
=================================== */
.faq-section {
    max-width: 1000px;
    margin: 50px auto;
    padding: 40px 20px;
    background-color: var(--text-light);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
}

.faq-section h2 {
    text-align: center;
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 40px;
    font-weight: 700;
}

.faq-item {
    margin-bottom: 20px;
    border: 2px solid #e0e0e0;
    border-radius: var(--border-radius-md);
    overflow: hidden;
    transition: var(--transition-speed);
}

.faq-item:hover {
    border-color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.1);
}

.faq-item-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background-color: #f8f9fa;
    cursor: pointer;
    transition: var(--transition-speed);
}

.faq-item-question:hover {
    background-color: #f0f1ff;
}

.faq-question {
    background: none;
    border: none;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    cursor: pointer;
    flex: 1;
    text-align: left;
    transition: var(--transition-speed);
}

.faq-answer {
    display: none;
    padding: 20px;
    background-color: var(--text-light);
    color: #555;
    line-height: 1.8;
    border-top: 2px solid #e0e0e0;
}

.faq-answer.show {
    display: block;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.faq-item-question img {
    transition: transform var(--transition-speed);
    width: 30px;
    height: 30px;
    margin-left: 15px;
}

.faq-item-question img.rotate {
    transform: rotate(180deg);
}

/* ===================================
   FOOTER
=================================== */
footer {
    background-color: rgba(51, 51, 51, 0.95);
    color: var(--text-light);
    text-align: center;
    padding: 30px 20px;
    margin-top: 50px;
}

footer p {
    margin: 0;
    font-size: 14px;
}

/* ===================================
   RESPONSIVE
=================================== */
@media (max-width: 1024px) {
    .contener {
        padding: 40px 30px;
    }

    .container {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .container form {
        padding: 40px 30px;
    }

    .side-image {
        min-height: 400px;
    }
}

@media (max-width: 768px) {
    .contener {
        padding: 30px 20px;
    }

    .contener h1 {
        font-size: 2rem;
    }

    .contener h3 {
        font-size: 1.1rem;
        margin-bottom: 30px;
    }

    .container form {
        padding: 30px 20px;
        gap: 20px;
    }

    form label {
        font-size: 0.9rem;
    }

    input[type="text"],
    input[type="email"],
    textarea {
        padding: 12px 15px;
        font-size: 0.95rem;
    }

    button[type="submit"] {
        padding: 14px 30px;
        font-size: 1rem;
    }

    .faq-section {
        padding: 30px 15px;
        margin: 30px auto;
    }

    .faq-section h2 {
        font-size: 1.8rem;
        margin-bottom: 30px;
    }

    .faq-item {
        margin-bottom: 15px;
    }

    .faq-item-question {
        padding: 15px;
    }

    .faq-question {
        font-size: 1rem;
    }

    .faq-answer {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .header-container {
        margin: 0 10px;
        padding: 0 5px;

        
    }
    .contener {
        margin: 20px auto;
        padding: 20px 15px;
    }

    .contener h1 {
        font-size: 1.5rem;
    }

    .contener h3 {
        font-size: 0.95rem;
        margin-bottom: 20px;
    }

    .container form {
        padding: 20px 15px;
        gap: 15px;
    }

    form label {
        font-size: 0.85rem;
    }

    input[type="text"],
    input[type="email"],
    textarea {
        padding: 10px 12px;
        font-size: 0.9rem;
    }

    button[type="submit"] {
        padding: 12px 20px;
        font-size: 0.95rem;
    }

    .side-image {
        display: none;
    }

    .faq-section {
        padding: 20px 10px;
    }

    .faq-section h2 {
        font-size: 1.5rem;
    }

    .faq-item-question {
        padding: 12px;
    }

    .faq-question {
        font-size: 0.95rem;
    }

    .faq-item-question img {
        width: 24px;
        height: 24px;
        margin-left: 10px;
    }

    footer {
        padding: 20px 15px;
    }
}