/* ========================================
   📋 STYLE-NAVIGATION-RECUP.CSS - VERSION HARMONISÉE
   SUPPRESSION DES DOUBLONS ET CONSOLIDATION
   ======================================== */
/* SOLUTION ULTRA-RAPIDE */
html, body { overflow-x: hidden !important; max-width: 100vw !important; }
.main-header, .main-nav { max-width: 100vw !important; padding: 0.5rem !important; }
.header-content, .nav-container { margin: 0 auto !important; }


/* ========================================
   🎨 VARIABLES CSS MODERNES
   ======================================== */
:root {
    --color-primary: #667eea;
    --color-secondary: #764ba2;
    --color-accent: #8b5cf6;
    --color-gold: #f59e0b;
    --color-text: #1a202c;
    --color-text-light: #4a5568;
    --color-text-muted: #718096;
    --color-bg: #ffffff;
    --color-bg-light: #f7fafc;
    --color-bg-soft: #edf2f7;
    
    --shadow-soft: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-medium: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-large: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s ease-out;
}

/* ========================================
   🎯 BASE MODERNE
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--color-text);
    background: var(--color-bg);
    overflow-x: hidden;
    padding-top: 120px; /* Ajustez selon la hauteur réelle de votre header */


}

.font-display {
    font-family: 'Playfair Display', serif;
}



/* ========================================
   🌟 HEADER MODERNE ET STICKY - CONSOLIDÉ
   ======================================== */
.main-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 1rem 2rem; /* Réduit le padding vertical */
    box-shadow: var(--shadow-soft);
    position: fixed;
    top: 0;
    width: 100%;
    right: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition);

}
.main-header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-medium);
}
/* Header content - OPTIMISÉ POUR LOGO */
.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1400px;
    margin: 0 auto;
    gap: 3rem;
    margin-top: -5px; /* Remonte tout le contenu */
}
/* Logo section - ESPACE AGRANDI */
.logo-section {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex: 0 0 auto;
    min-width: 350px;
}
/* Logo styles - AVEC OMBRE AMÉTHYSTE */
.logo {
    width: 100px;
    height: 100px;
    border-radius: var(--radius-md);
    transition: var(--transition);
    flex-shrink: 0;
}
.logo:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 4px 16px rgba(168, 85, 247, 0.35)) !important;
}
/* Header text - OPTIMISÉ POUR UNE LIGNE AVEC ESPACEMENT RESSERRÉ */
.header-text {
    flex: 1;
    min-width: 250px;
    margin-top: 8px; /* Remonte légèrement le texte */
}
.header-text h1 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: -2px; /* Réduit l'espace sous le titre */
    white-space: nowrap;
    line-height: 1.1; /* Resserre la hauteur de ligne */
}
.tagline {
    font-size: 1rem;
    color: var(--color-text-muted);
    font-weight: 400;
    line-height: 1.2; /* Resserre les lignes de la tagline */
    margin-top: 6px; /* Rapproche la tagline du titre */
}

/* CSS pour le logo avec Numéro en gras 
.logo-text {
    font-size: 1.8rem;
    font-family: Arial, sans-serif;
    line-height: 1.1;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: -2px;
    white-space: nowrap;
}
.logo-text .geo {
    color: #20b2aa;
    font-weight: 100;
    opacity: 0.4;
    letter-spacing: 1px;
    font-size: 0.9em;
}
.logo-text .numero {
    color: #ffa500;
    font-weight: 900;
    text-shadow: 0 0 10px rgba(255, 165, 0, 0.3);
    font-size: 1.1em;
}
.logo-text .logie {
    color: #ff1493;
    font-weight: 100;
    opacity: 0.4;
    letter-spacing: 1px;
    font-size: 0.9em;
}
.logo-text .tiret {
    color: #dddddd;
    font-weight: 100;
    opacity: 0.3;
    font-size: 0.8em;
} - INTÉGRÉ */

/* Navigation supplémentaire si besoin */
.header-nav {
    display: flex;
    gap: 2rem;
    align-items: center;
}
.nav-link {
    color: var(--color-text-light);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    position: relative;
}
.nav-link:hover {
    color: var(--color-primary);
    background: rgba(102, 126, 234, 0.08);
}
.nav-cta {
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    color: white !important;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    box-shadow: var(--shadow-soft);
}
.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
    background: linear-gradient(135deg, #5a6fd8, #6b46a3);
}
/* ========================================
   🧭 NAVIGATION PRINCIPALE - COMPACTE
   ======================================== */
.main-nav {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%) !important;
    padding: 0.6rem 0 !important; /* Plus compact */
    border-bottom: 1px solid rgba(102, 126, 234, 0.2) !important;
    box-shadow: 0 2px 15px rgba(102, 126, 234, 0.1) !important;
    margin-bottom: 0;
    overflow: visible !important;
    position: relative;
    z-index: 1000;
    width: 100%;
    text-align: center;
}

.nav-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.8rem; /* Réduit pour navigation compacte */
    padding: 0 1.5rem; /* Moins de padding */
    flex-wrap: wrap;
    max-width: 1200px; /* Largeur réduite pour laisser place au logo */
    margin: 0 auto;
}

.menu-section {
    position: relative;
    flex: 0 0 auto;
    overflow: visible !important;
}

/* Boutons de menu - COMPACTS */
.menu-button {
    background: linear-gradient(135deg, #ffffff, #f8fafc) !important;
    color: var(--color-text, #2d3748) !important;
    border: 2px solid rgba(102, 126, 234, 0.2) !important;
    padding: 0.7rem 1.4rem !important; /* Plus compact */
    border-radius: 10px !important; /* Légèrement plus petit */
    cursor: pointer;
    font-size: 0.9rem; /* Police plus petite */
    font-weight: 600;
    min-height: 44px; /* Hauteur réduite */
    white-space: nowrap;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.1) !important;
    outline: none;
    font-family: inherit;
    position: relative;
    overflow: hidden;
}

.menu-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.1), transparent);
    transition: left 0.5s;
}

.menu-button:hover::before {
    left: 100%;
}

.menu-button:hover,
.menu-button.active,
.menu-section.active .menu-button {
    background: linear-gradient(135deg, var(--color-primary, #667eea), var(--color-secondary, #764ba2)) !important;
    color: white !important;
    border-color: var(--color-primary, #667eea) !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3) !important;
}

/* ========================================
   📋 MENUS DÉROULANTS
   ======================================== */
.menu-list {
    position: absolute !important;
    top: 100% !important;
    left: 50% !important;
    transform: translateX(-50%) translateY(10px);
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 16px;
    padding: 1.5rem;
    width: 350px;
    max-width: 350px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(102, 126, 234, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2000 !important;
    max-height: 70vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    opacity: 0;
    visibility: hidden;
    display: block;
    margin-top: 8px;
}
#menu-symboles {
    max-height: 90vh; /* au lieu de 70vh */
}
.menu-section.active .menu-list,
.menu-list.show {
    transform: translateX(-50%) translateY(0) !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.menu-list a {
    display: flex;
    padding: 1rem 1.2rem !important;  
    color: var(--color-text, #2d3748);
    text-decoration: none;
    border-radius: 12px;
    margin-bottom: 0.5rem !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 500;
    border: 1px solid transparent;
    background: rgba(248, 250, 252, 0.7);
    min-height: 52px !important;
    box-sizing: border-box;
    line-height: 1.5;
    align-items: center;
    text-align: left !important;
    position: relative;
    overflow: hidden;
}

.menu-list a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.1), transparent);
    transition: left 0.5s;
}

.menu-list a:hover::before {
    left: 100%;
}

.menu-list a:hover {
    background: linear-gradient(135deg, var(--color-primary, #667eea), var(--color-secondary, #764ba2));
    color: white;
    transform: translateX(8px);
    border-color: var(--color-primary, #667eea);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.3);
}

.menu-divider {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  color: #9ca3af; /* gris clair */
  padding: 0.5rem 1rem;
  margin-top: 0.8rem;
  border-top: 1px solid #e5e7eb;
}
.menu-divider-note {
  font-size: 1rem;       /* plus petit */
  font-family: "Garamond", "Georgia", serif;
  font-weight: normal;
  color: #9ca3af;          /* même couleur que le divider */
  padding: 0 1rem 0.4rem 1rem; /* aligné sur la même marge que le titre */
  display: block;          /* force passage en dessous */
}
=======================================
   📂 SOUS-MENUS
   ======================================== */
.has-submenu {
    position: relative;
}

.has-submenu > a {
    position: relative;
    padding-left: 1.2rem !important; /* Réduit le padding gauche */
    padding-right: 3rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start;
    overflow: hidden; /* Empêche le débordement */
}


.has-submenu > a::after {
    content: '▶';
    position: absolute;
    right: 1rem !important;
    top: 50%;
    transform: translateY(-50%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.9rem;
    color: var(--color-text-muted, #718096);
}

.has-submenu.open > a::after {
    transform: translateY(-50%) rotate(90deg);
}

.has-submenu:hover > a::before,
.has-submenu.open > a::before {
    color: white;
}

.submenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    margin: 0.8rem 0 0.8rem 2rem;
    padding: 0;
    display: block;
    background: transparent;
    border-radius: 0;
    border-left: 3px solid rgba(102, 126, 234, 0.2);
    padding-left: 1rem;
}

.has-submenu.open > .submenu {
    max-height: none; /* Au lieu de 700px */
    height: auto;
    display: block;
    visibility: visible;
    opacity: 1;
}

.submenu a {
    padding: 0.8rem 1rem !important;
    margin-bottom: 0.3rem !important;
    font-size: 0.9rem !important;
    min-height: 44px !important;
    background: rgba(248, 250, 252, 0.5) !important;
}

.submenu a:hover {
    background: linear-gradient(135deg, var(--color-secondary, #764ba2), var(--color-accent, #8b5cf6)) !important;
    border-color: var(--color-primary, #667eea) !important;
    color: white !important;
    box-shadow: 0 4px 15px rgba(118, 75, 162, 0.3) !important;
    transform: translateX(5px);
}

/* ========================================
   🎨 SCROLLBAR PERSONNALISÉE
   ======================================== */
.menu-list::-webkit-scrollbar {
    width: 8px;
}

.menu-list::-webkit-scrollbar-track {
    background: rgba(248, 250, 252, 0.5);
    border-radius: 4px;
}

.menu-list::-webkit-scrollbar-thumb {
    background: rgba(102, 126, 234, 0.3);
    border-radius: 4px;
    transition: background 0.3s ease;
}

.menu-list::-webkit-scrollbar-thumb:hover {
    background: rgba(102, 126, 234, 0.5);
}

/* D'abord, ajouter les largeurs spécifiques AVANT les media queries */

/* Largeurs spécifiques par menu - VOTRE VERSION avec corrections minimales */
#menu-soi {
    width: 300px;
    max-width: 420px; /* ← OK, gardé */
}
#menu-nombres {
    width: 350px;
    max-width: 360px; /* ← OK, gardé */
}
#menu-symboles {
    width: 360px;
    max-width: 360px; /* ← OK, gardé */
}
#menu-concepts {
    width: 400px;
    max-width: 400px; /* ← CORRECTION : 400px au lieu de 360px */
}
#menu-services {
    width: 300px;
    max-width: 340px; /* ← OK, gardé */
}

/* ========================================
   📱 RESPONSIVE DESIGN UNIFIÉ - VOTRE VERSION
   ======================================== */
@media (max-width: 1200px) {
    .main-header {
        position: relative !important;
        top: auto !important;
    }
    
    .header-content {
        gap: 2rem;
    }
    
    .logo-section {
        min-width: 300px;
        gap: 1rem;
    }
    
    .header-text h1 {
        font-size: 1.6rem;
    }
    
    .nav-container {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.6rem;
        max-width: 1000px;
    }
    
    .menu-button {
        padding: 0.6rem 1.2rem !important;
        font-size: 0.85rem;
    }
    
    #menu-soi { width: 300px; max-width: 350px; }
    #menu-nombres { width: 350px; max-width: 350px; }
    #menu-symboles { width: 360px; max-width: 360px; }
    #menu-concepts { width: 400px; max-width: 400px; }
    #menu-services { width: 300px; max-width: 300px; }
}

@media (max-width: 768px) {
    .main-header {
        position: relative !important;
        top: auto !important;
    }
    
    .header-content {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .logo-section {
        min-width: auto;
        justify-content: center;
        text-align: center;
    }
    
    .header-text h1 {
        font-size: 1.4rem;
        white-space: normal;
        text-align: center;
    }
    
    .tagline {
        text-align: center;
    }
    
    .main-nav {
        padding: 0.6rem 0 !important;
    }
    
    .nav-container {
        gap: 0.5rem;
        padding: 0 1rem;
    }
    
    .menu-button {
        padding: 0.7rem 1.2rem !important;
        font-size: 0.85rem;
        min-height: 44px;
    }
    
    /* iPhone Portrait - Menus centrés sous leur onglet */
    .menu-list {
        width: 280px;
        max-width: 280px;
        padding: 1rem;
        left: 50% !important;
        transform: translateX(-50%) !important;
    }
    
    .menu-section.active .menu-list {
        transform: translateX(-50%) !important;
    }
}

@media (max-width: 480px) and (orientation: portrait) {
    .main-header {
        position: relative !important;
        top: auto !important;
    }
    
    .logo-section {
        flex-direction: column;
        gap: 1rem;
    }
    
    .logo {
        width: 60px;
        height: 60px;
    }
    
    .header-text h1 {
        font-size: 1.2rem;
    }
    
    .tagline {
        font-size: 0.8rem;
    }
    
    .nav-container {
        flex-direction: column;
        align-items: center;
    }
    
    .menu-section {
        width: 100%;
        max-width: 280px;
    }
    
    .menu-button {
        width: 100%;
        justify-content: center;
    }
    
    /* iPhone Portrait - Menus CENTRÉS avec largeur basée sur menu-soi */
    .menu-list,
    #menu-soi,
    #menu-nombres,
    #menu-symboles,
    #menu-concepts,
    #menu-services {
        left: 50% !important;
        right: auto !important;
        transform: translateX(-50%) !important;
        margin: 0.5rem;
        width: 300px !important;  /* Largeur de menu-soi */
        max-width: 300px !important;
    }
    
    .menu-section.active .menu-list {
        transform: translateX(-50%) !important;
    }
}

/* ========================================
   📱 ALIGNEMENTS SPÉCIFIQUES MOBILE PAYSAGE
   ======================================== */
@media (max-width: 768px) and (orientation: landscape) {
    /* Menu SOI - Aligné à gauche de son onglet */
    .menu-section:first-child .menu-list {
        left: 0 !important;
        transform: none !important;
    }
    
    /* Menu L'IDÉE (concepts) - Aligné à droite de son onglet */
    .menu-section:nth-child(4) .menu-list {
        left: auto !important;
        right: 0 !important;
        transform: none !important;
    }
    
    /* Autres menus restent centrés */
    .menu-section:nth-child(2) .menu-list,
    .menu-section:nth-child(3) .menu-list,
    .menu-section:nth-child(5) .menu-list {
        left: 50% !important;
        transform: translateX(-50%) !important;
    }
}
/* ========================================
   📱 anti zoom
   ======================================== */
/* Normalisation viewport/texte */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

/* Pas de zoom/transform sur les racines */
html, body {
  transform: none !important;
  filter: none !important;
  perspective: none !important;
  backface-visibility: visible !important;
  zoom: 1 !important;
}

/* Éviter 100vw sur les bandes fixes */
.main-header, .cookie-banner, .site-footer, .hero-primary {
  width: 100%;
}

/* Les sections animées: animer un enfant, pas le conteneur */
.hero-primary { transform: none !important; }
.hero-primary .parallax-layer { will-change: transform; }

/* CORRECTION MENUS IPHONE PAYSAGE */
@media (max-width: 896px) and (orientation: landscape) {
    .menu-list,
    #menu-soi,
    #menu-nombres, 
    #menu-symboles,
    #menu-concepts,
    #menu-services {
        width: 85vw !important;
        max-width: 450px !important;
        min-width: 320px !important;
        padding: 1rem !important;
        max-height: 60vh !important;
        overflow-y: auto !important;
    }
    
    /* Menu centré pour éviter le débordement */
    .menu-list {
        left: 50% !important;
        right: auto !important;
        transform: translateX(-50%) !important;
    }
    
    /* Texte plus compact dans les menus */
    .menu-list a {
        padding: 0.8rem 1rem !important;
        font-size: 0.85rem !important;
        min-height: 44px !important;
        line-height: 1.3 !important;
    }
    
    .submenu a {
        padding: 0.6rem 0.8rem !important;
        font-size: 0.8rem !important;
        min-height: 40px !important;
    }
}

/* Spécifique iPhone SE paysage (très petit) */
@media (max-width: 667px) and (orientation: landscape) {
    .menu-list,
    #menu-soi,
    #menu-nombres,
    #menu-symboles, 
    #menu-concepts,
    #menu-services {
        width: 90vw !important;
        max-width: 380px !important;
        max-height: 50vh !important;
    }
}

