@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&display=swap');

:root {
    --fivera-green: #2a8f6f;
    --fivera-dark-green: #1a5c4a;
    --dark-bg: #1a1a1a;
    --dark-text: #e0e0e0;
    --dark-gray: #2d2d2d;
    --accent-gray: #888888;
}

/* Défilement fluide pour les liens ancrés (#) */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--dark-text);
    background-color: var(--dark-bg);
    margin: 0;
    padding: 0;
}

body:not(.page-home) {
    padding-top: 100px;
}

/* =========================================
   HEADER / NAVBAR
========================================= */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 30px;
    background-color: var(--dark-bg);
    border-bottom: 1px solid #333;
    transition: background-color 0.3s ease;
}

.page-home header {
    background-color: transparent;
    border-bottom: none;
}

.navbar-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 100%;
    padding: 0;
}

.brand-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none !important;
    color: white;
    transition: transform 0.3s ease;
}

.brand-container:hover {
    transform: translateY(-3px);
    color: white;
}

.brand-logo {
    width: 45px;
    height: auto;
    margin-bottom: 5px;
}

.brand-name {
    font-family: 'Orbitron', sans-serif;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 2px;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 40px;
}

/* Desktop : forcer l'affichage correct même si Tailwind interfère */
@media (min-width: 1024px) {
    .mobile-nav-toggle {
        display: none !important;
    }

    .nav-right {
        position: static !important;
        width: auto !important;
        height: auto !important;
        background: transparent !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        border-left: none !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: flex-end !important;
        gap: 40px !important;
        padding: 0 !important;
        transition: none !important;
        overflow: visible !important;
    }

    .navbar-nav {
        flex-direction: row !important;
        gap: 50px !important;
        margin-bottom: 0 !important;
        width: auto !important;
    }

    .navbar-nav a {
        font-size: 20px !important;
        padding: 0 !important;
        border-bottom: none !important;
        width: auto !important;
        display: inline !important;
    }

    .auth-wrapper {
        flex-direction: row !important;
        align-items: center !important;
        width: auto !important;
        gap: 8px !important;
    }

    body.nav-open {
        overflow: auto !important;
    }
}

.navbar-nav {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 50px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.navbar-nav a {
    color: white;
    text-decoration: none !important;
    font-weight: 500;
    font-size: 18px;
    transition: transform 0.3s ease, color 0.3s ease;
}

.navbar-nav a:hover {
    transform: translateY(-3px);
    color: #a0a0a0;
}

.language-wrapper {
    position: relative;
    display: inline-block;
}

.language-selector {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    font-size: 16px;
    cursor: pointer;
    color: white;
    transition: transform 0.3s ease;
}

.language-wrapper:hover .language-selector {
    transform: translateY(-3px);
}

.language-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background-color: var(--dark-gray);
    border-radius: 8px;
    padding: 8px;
    min-width: 90px;
}

/* Pont invisible pour garder le hover actif quand on descend la souris */
.language-dropdown::before {
    content: '';
    position: absolute;
    top: -50px;
    left: -20px;
    width: 150%;
    height: 60px;
    background: transparent;
}

.language-wrapper:hover .language-dropdown {
    display: flex;
    flex-direction: column;
}

.language-dropdown a {
    display: flex;
    align-items: center;
    gap: 8px;
    color: white;
    text-decoration: none !important;
    padding: 6px 10px;
    border-radius: 6px;
}

.language-dropdown a:hover {
    background-color: #3a3a3a;
}

.flag-circle {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    object-fit: cover;
}

/* =========================================
   PAGE D'ACCUEIL (HERO VIDEO)
========================================= */
.hero-section {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    background-color: #000;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.65);
    z-index: 2;
}

/* --- BLOC DE CONTENU EN BAS A GAUCHE --- */
.bottom-left-content-block {
    position: absolute;
    bottom: 8vh;
    left: 3vw;
    display: flex;
    flex-direction: column;
    z-index: 3;
    color: white;
    max-width: 560px;
    /* Glassmorphism subtil */
    background: linear-gradient(135deg, rgba(0,0,0,0.45) 0%, rgba(0,0,0,0.15) 100%);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 20px;
    padding: 28px 32px 24px;
    /* Animation d'entrée */
    animation: heroBlockFadeIn 1s ease both;
    animation-delay: 0.3s;
}

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

.bottom-left-mini-title {
    font-family: 'Poppins', sans-serif;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: var(--user-color, #2a8f6f);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Barre décorative avant le mini-titre */
.bottom-left-mini-title::before {
    content: '';
    display: inline-block;
    width: 28px;
    height: 2px;
    background: var(--user-color, #2a8f6f);
    border-radius: 2px;
    flex-shrink: 0;
}

.bottom-left-description {
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.82);
    margin-bottom: 22px;
    border-left: 2px solid rgba(255,255,255,0.12);
    padding-left: 14px;
}

.bottom-left-description p {
    margin: 0 0 6px;
}

.bottom-left-description p:last-child {
    margin-bottom: 0;
}

.bottom-left-brand-name {
    font-family: 'Orbitron', sans-serif;
    font-weight: 900;
    font-size: clamp(2.5rem, 6vw, 5.5rem);
    line-height: 1;
    margin: 0;
    /* Dégradé de texte */
    background: linear-gradient(135deg, #ffffff 0%, var(--user-color, #2a8f6f) 60%, rgba(255,255,255,0.6) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -1px;
    /* Halo lumineux */
    filter: drop-shadow(0 0 20px color-mix(in srgb, var(--user-color, #2a8f6f) 60%, transparent));
}


/* --- SOUS-MENU EN BAS A DROITE --- */
.bottom-right-menu {
    position: absolute;
    bottom: 10vh;
    right: 3vw;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 15px;
    z-index: 10;
}

.bottom-right-menu a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none !important;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: transform 0.3s ease, color 0.3s ease;
}

.bottom-right-menu a:hover {
    color: white;
    transform: translateX(-5px);
}

/* =========================================
   PAGE FICHE COMPLEXE (OXYPARC & CO)
========================================= */
.fiche-hero {
    width: 100%;
    height: 60vh;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    display: flex;
    align-items: flex-end;
    padding: 60px 40px;
}

.fiche-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.2) 100%);
    z-index: 1;
}

.fiche-hero-content {
    position: relative;
    z-index: 2;
    color: white;
    width: 100%;
}

.fiche-section {
    padding: 80px 0;
    background-color: var(--dark-bg);
    color: white;
}

.fiche-square-img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    /* Recadre parfaitement en carré sans déformer */
    border-radius: 16px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
}

.fiche-text-block {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
    padding: 30px;
}

.fiche-text-block h3 {
    color: var(--fivera-green);
    font-family: 'Orbitron', sans-serif;
    font-size: 2rem;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* =========================================
   STYLES DES AUTRES PAGES & SECTIONS
========================================= */
.app-hero,
.complexe-hero {
    background: linear-gradient(135deg, var(--fivera-dark-green), var(--fivera-green));
    color: white;
    padding: 80px 0;
    text-align: center;
}

.app-features {
    padding: 80px 0;
    position: relative;
    overflow: hidden;
    background: radial-gradient(circle at 0% 0%, rgba(42, 143, 111, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 100% 100%, rgba(26, 92, 74, 0.2) 0%, transparent 50%);
}

.feature-card,
.complexe-card {
    background-color: var(--dark-gray);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    margin-bottom: 30px;
    transition: all 0.3s ease;
    height: 100%;
}

.complexe-card {
    padding: 0;
    overflow: hidden;
}

.feature-card:hover,
.complexe-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.6);
}

/* --- SECTION AVIS --- */
.review-card {
    background-color: var(--dark-gray);
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    transition: transform 0.3s ease;
    height: 100%;
    border-left: 4px solid var(--fivera-green);
    text-align: left;
}

.review-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.6);
}

.review-stars {
    color: #ffc107;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.review-text {
    font-style: italic;
    color: #bbb;
    margin-bottom: 15px;
    font-size: 1rem;
    line-height: 1.6;
}

.review-author {
    font-weight: 600;
    color: white;
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.5rem;
    font-weight: bold;
    color: white;
    margin-bottom: 10px;
}

.section-title p {
    color: var(--accent-gray);
    font-size: 1.1rem;
}

.cta-button {
    background-color: var(--fivera-green);
    color: white;
    padding: 15px 40px;
    border-radius: 8px;
    font-weight: bold;
    border: none;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}

.cta-button:hover {
    background-color: white;
    color: var(--fivera-dark-green);
    text-decoration: none;
}

.complexe-image {
    height: 200px;
    background: linear-gradient(135deg, var(--fivera-dark-green), var(--fivera-green));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
}

.complexe-info {
    padding: 20px;
    text-align: left;
}

.complexe-title {
    font-weight: bold;
    font-size: 1.2rem;
    color: white;
    margin-bottom: 10px;
}

.complexe-location {
    color: var(--accent-gray);
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.complexe-rating {
    color: #ffc107;
    font-size: 0.95rem;
    margin-bottom: 15px;
}

.complexe-button {
    background-color: var(--fivera-green);
    color: white;
    padding: 10px;
    width: 100%;
    border: none;
    border-radius: 6px;
    font-weight: bold;
    transition: 0.3s;
}

.complexe-button:hover {
    background-color: white;
    color: var(--fivera-dark-green);
}

.filter-section {
    background-color: var(--dark-gray);
    padding: 30px 0;
    margin-bottom: 40px;
}

.filter-button {
    background-color: transparent;
    border: 2px solid #555;
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    margin-right: 10px;
    margin-bottom: 10px;
    transition: 0.3s;
}

.filter-button:hover,
.filter-button.active {
    border-color: var(--fivera-green);
    background-color: var(--fivera-green);
}

/* =========================================
   ANIMATIONS DE SCROLL (FADE IN UP)
========================================= */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================
   EFFETS PREMIUM / GLASSMORPHISM
========================================= */
.glass-effect {
    background: rgba(255, 255, 255, 0.03) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    border-left: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    border-radius: 16px;
    position: relative;
    overflow: hidden;
}

.glass-effect::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.05) 50%, rgba(255, 255, 255, 0) 100%);
    transform: skewX(-25deg);
    transition: all 0.7s ease;
}

.feature-card.glass-effect:hover::before,
.review-card.glass-effect:hover::before {
    left: 200%;
}

.feature-card.glass-effect:hover,
.review-card.glass-effect:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.06) !important;
    border-color: rgba(42, 143, 111, 0.5);
    box-shadow: 0 15px 40px rgba(42, 143, 111, 0.25);
}

/* ===== AVATAR BORDER STYLES ===== */
.avatar-border {
    border-radius: 50%;
    padding: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
}

.avatar-border--lg {
    padding: 5px;
}

.avatar-border--simple {
    border: 2px solid var(--border-color, #2a8f6f);
}

.avatar-border--lg.avatar-border--simple {
    border-width: 4px;
}

.avatar-border--double {
    border: 3px double var(--border-color, #2a8f6f);
    padding: 4px;
}

.avatar-border--lg.avatar-border--double {
    border-width: 5px;
    padding: 6px;
}

.avatar-border--glow {
    border: 2px solid var(--border-color, #2a8f6f);
    box-shadow: 0 0 12px var(--border-color, #2a8f6f), 0 0 4px var(--border-color, #2a8f6f);
}

.avatar-border--lg.avatar-border--glow {
    border-width: 4px;
    box-shadow: 0 0 20px var(--border-color, #2a8f6f), 0 0 8px var(--border-color, #2a8f6f);
}

.avatar-border--gradient {
    background: conic-gradient(var(--border-color, #2a8f6f), transparent, var(--border-color, #2a8f6f));
    padding: 3px;
}

.avatar-border--lg.avatar-border--gradient {
    padding: 5px;
}

.avatar-border--pulse {
    border: 2px solid var(--border-color, #2a8f6f);
    animation: borderPulse 2s ease-in-out infinite;
}

.avatar-border--lg.avatar-border--pulse {
    border-width: 4px;
}

@keyframes borderPulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 transparent;
    }

    50% {
        box-shadow: 0 0 14px 2px var(--border-color, #2a8f6f);
    }
}

.avatar-border--ring {
    border: 2px solid var(--border-color, #2a8f6f);
    box-shadow: 0 0 0 4px rgba(42, 143, 111, 0.15), 0 0 12px var(--border-color, #2a8f6f);
}

.avatar-border--lg.avatar-border--ring {
    border-width: 4px;
    box-shadow: 0 0 0 6px rgba(42, 143, 111, 0.15), 0 0 20px var(--border-color, #2a8f6f);
}

.avatar-border--flame {
    background: conic-gradient(var(--border-color, #2a8f6f), #ff6b35, var(--border-color, #2a8f6f), #ff6b35, var(--border-color, #2a8f6f));
    padding: 3px;
    animation: flameSpin 4s linear infinite;
}

.avatar-border--lg.avatar-border--flame {
    padding: 5px;
}

@keyframes flameSpin {
    to {
        filter: hue-rotate(30deg);
    }
}

.avatar-border--electric {
    background: conic-gradient(var(--border-color, #2a8f6f), #00d4ff, var(--border-color, #2a8f6f), #00d4ff, var(--border-color, #2a8f6f));
    padding: 3px;
    animation: electricPulse 1.5s ease-in-out infinite alternate;
}

.avatar-border--lg.avatar-border--electric {
    padding: 5px;
}

@keyframes electricPulse {
    from {
        box-shadow: 0 0 8px var(--border-color, #2a8f6f);
    }

    to {
        box-shadow: 0 0 20px #00d4ff, 0 0 8px var(--border-color, #2a8f6f);
    }
}

.avatar-border--crown {
    background: conic-gradient(#ffd700, var(--border-color, #2a8f6f), #ffd700, var(--border-color, #2a8f6f), #ffd700);
    padding: 4px;
    box-shadow: 0 0 16px rgba(255, 215, 0, 0.3), 0 0 6px var(--border-color, #2a8f6f);
}

.avatar-border--lg.avatar-border--crown {
    padding: 6px;
}

.avatar-border--legendary {
    background: conic-gradient(#ffd700, #ff6b35, #ff00ff, #00d4ff, var(--border-color, #2a8f6f), #ffd700);
    padding: 4px;
    animation: legendaryRotate 3s linear infinite;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.4), 0 0 40px rgba(42, 143, 111, 0.2);
}

.avatar-border--lg.avatar-border--legendary {
    padding: 6px;
}

@keyframes legendaryRotate {
    to {
        filter: hue-rotate(360deg);
    }
}

/* ===== DIVISION BADGE COLORS ===== */
.division-badge {
    border: 1px solid;
}

.division-badge--10 {
    background: rgba(107, 114, 128, 0.2);
    color: #9ca3af;
    border-color: rgba(107, 114, 128, 0.3);
}

.division-badge--9 {
    background: rgba(107, 114, 128, 0.25);
    color: #b0b8c4;
    border-color: rgba(120, 130, 140, 0.35);
}

.division-badge--8 {
    background: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
    border-color: rgba(59, 130, 246, 0.3);
}

.division-badge--7 {
    background: rgba(59, 130, 246, 0.2);
    color: #93c5fd;
    border-color: rgba(59, 130, 246, 0.4);
}

.division-badge--6 {
    background: rgba(168, 85, 247, 0.15);
    color: #c084fc;
    border-color: rgba(168, 85, 247, 0.3);
}

.division-badge--5 {
    background: rgba(168, 85, 247, 0.2);
    color: #d8b4fe;
    border-color: rgba(168, 85, 247, 0.4);
}

.division-badge--4 {
    background: rgba(249, 115, 22, 0.15);
    color: #fb923c;
    border-color: rgba(249, 115, 22, 0.3);
}

.division-badge--3 {
    background: rgba(249, 115, 22, 0.25);
    color: #fdba74;
    border-color: rgba(249, 115, 22, 0.4);
}

.division-badge--2 {
    background: rgba(234, 179, 8, 0.15);
    color: #facc15;
    border-color: rgba(234, 179, 8, 0.3);
}

.division-badge--1 {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.3), rgba(255, 107, 53, 0.3));
    color: #ffd700;
    border-color: rgba(255, 215, 0, 0.5);
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.5);
}

/* =========================================
   FAQ PAGE : LAYOUT GRID (MOBILE) / FLEX (DESKTOP)
========================================= */

/*
 * Sur mobile : CSS Grid 2 colonnes avec zones nommées.
 * display:contents sur .faq-left-col "dissout" ce wrapper pour que ses
 * 3 enfants (titre, questions, chat) soient des items directs du grid.
 */
.faq-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
        "title  title"
        "faq    faq"
        "chat   robot";
    gap: 12px;
}

/* Désolidarise le wrapper gauche du flux — ses enfants participent au grid */
.faq-left-col {
    display: contents;
}

.faq-title-block {
    grid-area: title;
}

.faq-questions-block {
    grid-area: faq;
    gap: 8px;
    display: flex;
    flex-direction: column;
}

.faq-chat-block {
    grid-area: chat;
    min-width: 0;
}

.faq-robot-block {
    grid-area: robot;
    min-width: 0;
}

/* Desktop (≥ 1024px) : layout flex 2 colonnes original */
@media (min-width: 1024px) {
    .faq-layout {
        display: flex;
        flex-direction: row;
        gap: 48px;
        align-items: flex-start;
    }

    /* Restaurer le wrapper gauche en colonne flex */
    .faq-left-col {
        display: flex;
        flex-direction: column;
        gap: 48px;
        width: 60%;
        flex-shrink: 0;
    }

    /* Réinitialiser les grid-areas (inutiles en flex) */
    .faq-title-block,
    .faq-questions-block,
    .faq-chat-block {
        grid-area: unset;
    }

    /* Robot : sticky sur toute la hauteur de la colonne gauche */
    .faq-robot-block {
        grid-area: unset;
        width: 40%;
        flex-shrink: 0;
        position: sticky;
        top: 128px;
        /* top-32 = 8rem */
        margin-top: 210px;
    }
}

@media (prefers-reduced-motion: reduce) {

    .avatar-border--pulse,
    .avatar-border--flame,
    .avatar-border--electric,
    .avatar-border--legendary {
        animation: none;
    }
}

/* =========================================
   RESPONSIVE DESIGN (MOBILE FIRST)
========================================= */

/* --- BOUTON BURGER : caché sur desktop, visible sur mobile --- */
.mobile-nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 32px;
    height: 26px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    position: relative;
    z-index: 1100;
    flex-shrink: 0;
}

.mobile-nav-toggle span {
    display: block;
    width: 32px;
    height: 2px;
    background: white;
    border-radius: 10px;
    transition: transform 0.35s ease, opacity 0.25s ease;
    transform-origin: center;
}

/* Animation croix quand menu ouvert */
.mobile-nav-toggle.is-active span:nth-child(1) {
    transform: translateY(12px) rotate(45deg);
}

.mobile-nav-toggle.is-active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.mobile-nav-toggle.is-active span:nth-child(3) {
    transform: translateY(-12px) rotate(-45deg);
}

/* --- BREAKPOINT MOBILE : <= 1023px --- */
@media (max-width: 1023px) {

    header {
        padding: 14px 20px;
    }

    /* Afficher le bouton burger */
    .mobile-nav-toggle {
        display: flex;
    }

    /* Menu masqué par défaut : slide hors écran à droite */
    .nav-right {
        position: fixed;
        top: 0;
        right: -110%;
        width: min(360px, 85vw);
        height: 100vh;
        background: rgba(18, 18, 18, 0.97);
        backdrop-filter: blur(24px);
        -webkit-backdrop-filter: blur(24px);
        border-left: 1px solid rgba(255, 255, 255, 0.08);
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        gap: 0;
        padding: 80px 36px 50px;
        transition: right 0.45s cubic-bezier(0.77, 0, 0.175, 1);
        z-index: 1050;
        overflow-y: auto;
    }

    /* Menu visible quand actif */
    .nav-right.is-active {
        right: 0;
    }

    /* Navbar liens : colonne, grands et tactiles */
    .navbar-nav {
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        width: 100%;
        margin-bottom: 32px;
    }

    .navbar-nav a {
        font-size: 22px;
        font-weight: 700;
        padding: 14px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.07);
        width: 100%;
        display: block;
    }

    .navbar-nav a:last-child {
        border-bottom: none;
    }

    /* Auth wrapper en colonne */
    .auth-wrapper {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
        gap: 12px;
        margin-top: 0;
    }

    .auth-wrapper a {
        width: 100%;
        text-align: center;
        display: block;
    }

    /* Sélecteur de langue */
    .language-wrapper {
        margin-top: 24px;
    }

    body.nav-open {
        overflow: hidden;
    }
}

/* --- HERO SECTION MOBILE --- */
@media (max-width: 767px) {

    .bottom-left-content-block {
        bottom: 12vh;
        left: 5vw;
        right: 5vw;
        max-width: none;
    }

    .bottom-left-brand-name {
        font-size: 17vw;
    }

    .bottom-left-description {
        font-size: 14px;
        line-height: 1.6;
        margin-bottom: 24px;
    }

    .bottom-left-mini-title {
        font-size: 11px;
        letter-spacing: 1.5px;
    }
}