/* ================================================================
   MAIN.CSS - STYLES GLOBAUX
   Fichier: styles/main.css
   Description: Styles réutilisables sur toutes les pages
================================================================ */

/* Table des matières :
   1. RESET & BASE
   2. VARIABLES CSS
   3. CLASSES UTILITAIRES
   4. NAVIGATION
   5. FOOTER
   6. CHATBOT WIDGET
   7. RESPONSIVE GÉNÉRAL
*/

/* ==================== RESET & BASE ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Éviter le flash de contenu non traduit (FOUC) */
/* Ne cacher que les placeholders des composants, pas toute la page */
#header-placeholder:empty,
#footer-placeholder:empty {
    min-height: 80px;
    opacity: 0;
}

#header-placeholder,
#footer-placeholder {
    opacity: 1;
    transition: opacity 0.15s ease-in;
}

:root {
    /* === COULEURS PRINCIPALES - PALETTE MARRON PROFESSIONNELLE === */
    --primary: #8B6F47;
    --primary-dark: #6B5536;
    --primary-light: #A68A5C;
    --secondary: #D4C5B0;
    --accent: #B8956A;
    --success: #8B6F47;
    --danger: #A67C6D;
    --warning: #C9A66B;

    /* === GRADIENTS ÉLÉGANTS === */
    --gradient-1: linear-gradient(135deg, #8B6F47 0%, #A68A5C 100%);
    --gradient-2: linear-gradient(135deg, #D4C5B0 0%, #B8956A 100%);
    --gradient-3: linear-gradient(135deg, #8B6F47 0%, #A68A5C 100%);
    --gradient-4: linear-gradient(135deg, #C9A66B 0%, #A67C6D 100%);
    --gradient-hero: linear-gradient(135deg, #8B6F47 0%, #A68A5C 50%, #D4C5B0 100%);

    /* === GLASSMORPHISM === */
    --glass-bg: rgba(253, 252, 250, 0.8);
    --glass-border: rgba(139, 115, 85, 0.12);
    --glass-shadow: 0 8px 32px 0 rgba(107, 88, 69, 0.15);

    /* === TEXTE === */
    --text-primary: #3E362E;
    --text-secondary: #6B5845;
    --text-light: #8B7355;
    --text-white: #FFFFFF;

    /* === BACKGROUNDS === */
    --bg-primary: #EFF8FF;
    --bg-secondary: #F0F9FF;
    --bg-tertiary: #E0F2FE;
    --bg-dark: #3E362E;

    /* === BORDERS === */
    --border-color: #DED6CC;
    --border-radius-sm: 8px;
    --border-radius-md: 12px;
    --border-radius-lg: 16px;
    --border-radius-xl: 24px;
    --border-radius-full: 9999px;

    /* === OMBRES ÉLÉGANTES === */
    --shadow-xs: 0 1px 2px 0 rgba(107, 88, 69, 0.04);
    --shadow-sm: 0 2px 4px 0 rgba(107, 88, 69, 0.06);
    --shadow-md: 0 4px 12px -2px rgba(107, 88, 69, 0.08);
    --shadow-lg: 0 12px 24px -4px rgba(107, 88, 69, 0.12);
    --shadow-xl: 0 20px 40px -8px rgba(107, 88, 69, 0.15);
    --shadow-2xl: 0 25px 50px -12px rgba(107, 88, 69, 0.20);
    --shadow-glass: 0 8px 32px 0 rgba(107, 88, 69, 0.15);
    --shadow-hover: 0 20px 60px 0 rgba(139, 115, 85, 0.20);

    /* === ESPACEMENTS MODERNISÉS === */
    --section-padding: 8rem;
    --section-padding-mobile: 4rem;
    --card-padding: 2.5rem;
    --card-padding-mobile: 1.5rem;
    --gap-xs: 0.5rem;
    --gap-sm: 1rem;
    --gap-md: 2rem;
    --gap-lg: 3rem;
    --gap-xl: 4rem;

    /* === TRANSITIONS === */
    --transition-fast: 0.15s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
    --transition-cubic: cubic-bezier(0.4, 0, 0.2, 1);

    /* === TYPOGRAPHIE === */
    --font-sans: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-ja: 'Noto Sans JP', sans-serif;

    --font-size-xs: 0.75rem;      /* 12px */
    --font-size-sm: 0.875rem;     /* 14px */
    --font-size-base: 1rem;       /* 16px */
    --font-size-lg: 1.125rem;     /* 18px */
    --font-size-xl: 1.25rem;      /* 20px */
    --font-size-2xl: 1.5rem;      /* 24px */
    --font-size-3xl: 1.875rem;    /* 30px */
    --font-size-4xl: 2.25rem;     /* 36px */
    --font-size-5xl: 3rem;        /* 48px */
    --font-size-6xl: 3.75rem;     /* 60px */

    --font-weight-light: 300;
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    --font-weight-black: 900;

    --line-height-tight: 1.25;
    --line-height-normal: 1.5;
    --line-height-relaxed: 1.75;
    --line-height-loose: 2;

    /* === SYSTÈME DE FOND UNIVERSEL === */
    --bg-blue-light: #F0F9FF;
    --bg-blue-medium: #EFF8FF;
    --bg-blue-soft: #E0F2FE;
    --bg-gray-light: #F8FAFB;
    --bg-gray-soft: #F9FAFB;
    --bg-white: #FFFFFF;
    --orb-bronze: rgba(139, 115, 85, 0.06);
    --orb-bronze-strong: rgba(139, 115, 85, 0.25);
    --orb-beige: rgba(168, 144, 128, 0.08);
    --orb-beige-strong: rgba(168, 144, 128, 0.3);
    --orb-cyan: rgba(6, 182, 212, 0.06);
    --orb-cyan-strong: rgba(6, 182, 212, 0.3);
    --orb-purple: rgba(139, 92, 246, 0.08);
}

/* ==================== SYSTÈME DE FOND UNIVERSEL ==================== */

/* Animation flottante pour orbes */
@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(30px, -30px) scale(1.05);
    }
    66% {
        transform: translate(-25px, 25px) scale(0.98);
    }
}

@keyframes float-reverse {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(-30px, 30px) scale(1.05);
    }
    66% {
        transform: translate(25px, -25px) scale(0.98);
    }
}

/* Dégradé universel blanc → bleu → blanc */
.universal-gradient,
section {
    position: relative;
    background: linear-gradient(
        180deg,
        var(--bg-white) 0%,
        var(--bg-blue-light) 50%,
        var(--bg-white) 100%
    ) !important;
}

/* === CLASSES UTILITAIRES GLASSMORPHISM === */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
}

.glass-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: var(--shadow-glass);
    border-radius: var(--border-radius-xl);
    transition: all var(--transition-base);
}

.glass-card:hover {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-hover);
    transform: translateY(-4px);
}

/* === CLASSES UTILITAIRES GRADIENTS === */
.gradient-bg-1 {
    background: var(--gradient-1);
}

.gradient-bg-2 {
    background: var(--gradient-2);
}

.gradient-bg-3 {
    background: var(--gradient-3);
}

.gradient-text-1 {
    background: var(--gradient-1);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: var(--primary); /* Fallback color before gradient loads */
}

/* === CLASSES UTILITAIRES OMBRES === */
.shadow-soft {
    box-shadow: var(--shadow-md);
}

.shadow-strong {
    box-shadow: var(--shadow-xl);
}

.shadow-glass {
    box-shadow: var(--shadow-glass);
}

/* === CLASSES UTILITAIRES ANIMATIONS === */
.hover-lift {
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.hover-lift:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.hover-scale {
    transition: transform var(--transition-base);
}

.hover-scale:hover {
    transform: scale(1.05);
}

.smooth-transition {
    transition: all var(--transition-base) var(--transition-cubic);
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-sans);
    color: var(--text-primary);
    background: white;
    line-height: var(--line-height-normal);
    overflow-x: hidden;
    font-size: var(--font-size-base);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

[lang="ja"], [lang="ja"] * {
    font-family: var(--font-ja);
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ==================== NAVIGATION ==================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(91, 111, 219, 0.1);
    transition: all var(--transition-base);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-md);
    border-bottom-color: rgba(91, 111, 219, 0.15);
}

.nav-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
    max-width: 1280px;
    margin: 0 auto;
    padding-left: 2rem;
    padding-right: 2rem;
}

/* === LOGO === */
.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: var(--font-weight-bold);
    font-size: var(--font-size-xl);
    transition: transform var(--transition-fast);
}

.logo:hover {
    transform: scale(1.05);
}

.logo-image {
    height: 70px;
    width: 70px;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    transition: transform var(--transition-base);
}

.logo:hover .logo-image {
    transform: rotate(-5deg) scale(1.1);
}

.logo-text {
    background: var(--gradient-1);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: var(--font-weight-black);
    letter-spacing: -0.02em;
}

/* === MENU NAVIGATION === */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    list-style: none;
}

.nav-link {
    position: relative;
    padding: 0.75rem 0;
    color: var(--text-primary);
    font-weight: var(--font-weight-medium);
    font-size: var(--font-size-base);
    transition: color var(--transition-fast);
    letter-spacing: -0.01em;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--gradient-1);
    border-radius: var(--border-radius-full);
    transition: width var(--transition-base);
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* === DROPDOWN === */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 240px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: var(--border-radius-lg);
    border: 1px solid rgba(91, 111, 219, 0.1);
    box-shadow: var(--shadow-xl);
    padding: 0.5rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all var(--transition-base);
    margin-top: 0.5rem;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu a {
    display: block;
    padding: 0.875rem 1.25rem;
    border-radius: var(--border-radius-md);
    transition: all var(--transition-fast);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
    color: var(--text-secondary);
}

.dropdown-menu a:hover {
    background: linear-gradient(135deg, rgba(91, 111, 219, 0.1), rgba(139, 92, 246, 0.1));
    color: var(--primary);
    transform: translateX(4px);
}

/* === NAV ACTIONS === */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* === LANGUAGE SWITCHER === */
.lang-switcher {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.125rem;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius-full);
    background: transparent;
    cursor: pointer;
    transition: all var(--transition-base);
    order: 3;
}

.lang-switcher:hover {
    border-color: var(--primary);
    background: rgba(91, 111, 219, 0.05);
    transform: scale(1.05);
    box-shadow: var(--shadow-sm);
}

.lang-flag-img {
    border-radius: 2px;
    object-fit: cover;
    transition: transform var(--transition-fast);
}

.lang-switcher:hover .lang-flag-img {
    transform: scale(1.1);
}

.lang-code {
    font-weight: var(--font-weight-bold);
    font-size: var(--font-size-sm);
    color: var(--text-primary);
}

/* === CTA BUTTON === */
.cta-button {
    padding: 0.875rem 1.75rem;
    background: var(--gradient-1);
    color: var(--text-white);
    border: none;
    border-radius: var(--border-radius-full);
    font-weight: var(--font-weight-semibold);
    font-size: var(--font-size-sm);
    cursor: pointer;
    transition: all var(--transition-base);
    order: 1;
    box-shadow: 0 4px 12px rgba(91, 111, 219, 0.3);
    letter-spacing: -0.01em;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(91, 111, 219, 0.4);
}

.cta-button:active {
    transform: translateY(0);
}

/* === MENU TOGGLE (Mobile) === */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    order: 4;
    padding: 0.5rem;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    border-radius: var(--border-radius-full);
    transition: all var(--transition-base);
}

/* === RESPONSIVE NAVIGATION === */
@media (max-width: 1024px) {
    .nav-actions .cta-button {
        display: none;
    }
}

@media (max-width: 768px) {
    .nav-content {
        padding: 0.75rem 1rem;
    }

    .logo-image {
        height: 50px;
    }

    .logo-text {
        font-size: var(--font-size-lg);
    }

    .menu-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 2rem;
        box-shadow: var(--shadow-xl);
        transition: left var(--transition-base);
        align-items: flex-start;
        gap: 0;
        overflow-y: auto;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        width: 100%;
        border-bottom: 1px solid var(--border-color);
    }

    .nav-link {
        display: block;
        padding: 1.25rem 0;
        width: 100%;
        font-size: var(--font-size-lg);
    }

    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        box-shadow: none;
        background: var(--bg-secondary);
        border-radius: var(--border-radius-md);
        margin-top: 0.5rem;
        margin-bottom: 0.5rem;
        display: none;
    }

    .dropdown.active .dropdown-menu {
        display: block;
    }

    .dropdown > .nav-link::after {
        content: '▼';
        position: absolute;
        right: 0;
        font-size: 0.75rem;
        width: auto;
        height: auto;
        background: none;
    }

    .dropdown.active > .nav-link::after {
        content: '▲';
    }

    .lang-switcher {
        padding: 0.5rem 0.875rem;
    }

    .menu-toggle span {
        width: 24px;
        height: 2.5px;
    }
}

@media (max-width: 480px) {
    .logo-image {
        height: 45px;
    }

    .logo-text {
        font-size: var(--font-size-base);
    }

    .lang-switcher {
        padding: 0.4rem 0.75rem;
        gap: 0.35rem;
    }

    .lang-flag-img {
        width: 20px;
        height: 15px;
    }

    .lang-code {
        font-size: var(--font-size-xs);
    }
}

/* ==================== FOOTER ==================== */
.footer {
    background: #1F2937;
    color: white;
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.footer-logo-image {
    height: 35px;
    width: auto;
    object-fit: contain;
    filter: brightness(0) invert(1); /* Rend le logo blanc */
}

.footer-description {
    color: #9CA3AF;
    margin-top: 1rem;
    line-height: 1.7;
}

.footer-title {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: #9CA3AF;
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: white;
}

.footer-contact {
    list-style: none;
    color: #9CA3AF;
    line-height: 1.8;
}

.footer-contact li {
    margin-bottom: 0.75rem;
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: #9CA3AF;
}

/* ==================== CHATBOT WIDGET ==================== */
.chatbot-widget {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 999;
    width: 60px;
    height: 60px;
    contain: layout style; /* Évite CLS lors du chargement dynamique */
}

.chatbot-toggle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--gradient-1);
    border: none;
    color: white;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(79, 70, 229, 0.5);
    transition: all var(--transition-base);
    position: relative;
}

.chatbot-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 15px 35px rgba(79, 70, 229, 0.6);
}

.chatbot-toggle svg {
    width: 28px;
    height: 28px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: all var(--transition-base);
}

.icon-close {
    opacity: 0;
}

.chatbot-toggle.active .icon-chat {
    opacity: 0;
}

.chatbot-toggle.active .icon-close {
    opacity: 1;
}

.chatbot-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 380px;
    height: 550px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all var(--transition-base);
}

.chatbot-window.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.chatbot-header {
    background: var(--gradient-1);
    color: white;
    padding: 1.5rem;
    border-radius: 20px 20px 0 0;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.chatbot-avatar {
    width: 45px;
    height: 45px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.chatbot-info h4 {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.chatbot-status {
    font-size: 0.75rem;
    opacity: 0.9;
}

.chatbot-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
}

.message {
    margin-bottom: 1rem;
}

.message-content {
    display: inline-block;
    padding: 0.75rem 1rem;
    border-radius: 18px;
    max-width: 80%;
}

.bot-message .message-content {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.chatbot-input {
    display: flex;
    gap: 0.5rem;
    padding: 1rem;
    border-top: 1px solid var(--border-color);
}

.chatbot-input input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 25px;
    font-size: 0.9rem;
    outline: none;
    transition: border-color var(--transition-fast);
}

.chatbot-input input:focus {
    border-color: var(--primary);
}

.send-button {
    width: 45px;
    height: 45px;
    background: var(--gradient-1);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.send-button:hover {
    transform: scale(1.1);
}

.send-button svg {
    width: 20px;
    height: 20px;
}

/* ==================== RESPONSIVE GÉNÉRAL ==================== */
@media (max-width: 1024px) {
    /* Cacher le bouton CTA du header sur tablette et mobile */
    .nav-actions .cta-button {
        display: none;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-column {
        text-align: center;
        align-items: center;
    }

    .footer-logo {
        justify-content: center;
    }

    .footer-description {
        text-align: center;
    }

    .footer-column ul,
    .footer-links,
    .footer-contact {
        text-align: center;
    }

    .footer-social {
        justify-content: center;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    /* Logo plus petit sur mobile */
    .logo-image {
        height: 45px;
    }

    .logo-text {
        font-size: 1.125rem;
    }

    .logo {
        gap: 0.5rem;
        flex-shrink: 0; /* Empêcher le logo de rétrécir */
    }

    /* Bouton CTA caché - géré par la bulle flottante */
    .nav-actions .cta-button {
        display: none;
    }

    /* Bouton de langue plus compact */
    .lang-switcher {
        padding: 0.5rem 0.75rem;
        gap: 0.4rem;
        flex-shrink: 0;
    }

    /* Espacement entre les boutons */
    .nav-actions {
        gap: 0.75rem;
    }

    .lang-flag {
        font-size: 1.2rem;
    }

    .lang-code {
        font-size: 0.8125rem;
        font-weight: 700;
    }

    /* Menu hamburger */
    .menu-toggle {
        display: flex;
        flex-shrink: 0;
    }

    .menu-toggle span {
        width: 24px;
        height: 2.5px;
    }

    /* Menu mobile */
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: white;
        flex-direction: column;
        padding: 2rem;
        box-shadow: var(--shadow-xl);
        transition: left var(--transition-base);
        align-items: flex-start;
        gap: 0;
        overflow-y: auto;
    }

    .nav-menu li {
        width: 100%;
        border-bottom: 1px solid var(--border-color);
    }

    .nav-link {
        display: block;
        padding: 1rem 0;
        width: 100%;
        font-size: 1.125rem;
    }

    /* Dropdown mobile */
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        box-shadow: none;
        padding: 0.5rem 0 0.5rem 1rem;
        background: var(--bg-secondary);
        border-radius: 8px;
        margin-top: 0.5rem;
        display: none;
    }

    .dropdown.active .dropdown-menu {
        display: block;
    }

    .dropdown > .nav-link::after {
        content: '▼';
        position: absolute;
        right: 0;
        font-size: 0.75rem;
        width: auto;
        height: auto;
        background: none;
    }

    .dropdown.active > .nav-link::after {
        content: '▲';
    }

    .nav-menu.active {
        left: 0;
    }

    /* Navbar padding réduit */
    .nav-content {
        padding: 0.75rem 0;
    }

    .navbar {
        padding: 0 1rem;
    }

    .container {
        padding: 0 1rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .chatbot-widget {
        bottom: 1rem !important;
        right: 1rem !important;
    }

    .chatbot-toggle {
        width: 56px !important;
        height: 56px !important;
    }

    .chatbot-window {
        width: calc(100vw - 2rem);
        right: 1rem;
        bottom: 75px !important;
    }
}

/* Très petit mobile - Header ajustements supplémentaires */
@media (max-width: 480px) {
    .logo-image {
        height: 40px;
    }

    .logo-text {
        font-size: 1rem;
    }

    /* Bouton de langue compact mais lisible */
    .lang-switcher {
        padding: 0.4rem 0.65rem;
        gap: 0.35rem;
    }

    .lang-flag {
        font-size: 1.1rem;
    }

    .lang-code {
        font-size: 0.75rem;
    }

    .nav-actions {
        gap: 0.625rem;
    }

    .menu-toggle span {
        width: 22px;
        height: 2px;
    }

    .navbar {
        padding: 0 0.75rem;
    }

    .nav-content {
        padding: 0.625rem 0;
    }

    .nav-menu {
        padding: 1.5rem;
    }

    .nav-link {
        font-size: 1rem;
        padding: 0.875rem 0;
    }

    /* Chatbot encore plus petit */
    .chatbot-toggle {
        width: 50px !important;
        height: 50px !important;
    }

    .chatbot-toggle svg {
        width: 24px !important;
        height: 24px !important;
    }
}

/* Ultra petit mobile - iPhone SE et similaires (≤375px) */
@media (max-width: 375px) {
    /* Container ultra compact */
    .container {
        padding: 0 0.75rem !important;
    }

    /* Logo ultra compact */
    .logo-image {
        height: 38px;
    }

    .logo-text {
        font-size: 0.9375rem;
    }

    .logo {
        gap: 0.375rem;
    }

    /* Bouton de langue ultra compact mais lisible */
    .lang-switcher {
        padding: 0.375rem 0.5rem;
        gap: 0.25rem;
    }

    .lang-flag {
        font-size: 1rem;
    }

    .lang-code {
        font-size: 0.6875rem;
    }

    .nav-actions {
        gap: 0.5rem;
    }

    .menu-toggle span {
        width: 20px;
        height: 2px;
    }

    /* Navbar ultra compact */
    .navbar {
        padding: 0 0.5rem;
    }

    .nav-content {
        padding: 0.5rem 0;
    }

    /* Chatbot ultra compact */
    .chatbot-widget {
        bottom: 0.75rem !important;
        right: 0.75rem !important;
    }

    .chatbot-toggle {
        width: 48px !important;
        height: 48px !important;
    }

    .chatbot-toggle svg {
        width: 22px !important;
        height: 22px !important;
    }

    /* Footer ultra compact */
    .footer-content {
        font-size: 0.875rem;
    }
}

/* ==================== PREMIUM BADGES ==================== */

/* Container pour titre + badge */
.step-badge-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
}

/* Badge Premium */
.premium-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    background: linear-gradient(135deg, #8B7347 0%, #A68A5C 100%);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: 0 2px 8px rgba(139, 115, 85, 0.3);
}

/* Note explicative premium */
.premium-note {
    font-size: 0.9rem;
    color: #8B7347;
    font-weight: 600;
    margin-top: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(139, 115, 85, 0.08);
    border-left: 3px solid #8B7347;
    border-radius: 4px;
}

/* Style optionnel pour mettre en valeur la feature premium */
.premium-feature {
    position: relative;
}

.premium-feature::before {
    content: "";
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: linear-gradient(135deg, rgba(139, 115, 85, 0.03) 0%, rgba(168, 144, 128, 0.05) 100%);
    border-radius: 12px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.premium-feature:hover::before {
    opacity: 1;
}

/* Responsive */
@media (max-width: 768px) {
    .step-badge-container {
        gap: 0.5rem;
    }

    .premium-badge {
        font-size: 0.7rem;
        padding: 0.2rem 0.6rem;
    }

    .premium-note {
        font-size: 0.85rem;
        padding: 0.4rem 0.8rem;
    }
}
