/* Reset & Variables */
:root {
    /* Couleurs principales */
    --primary-color: #ff0050;
    --primary-dark: #d90042;
    --primary-light: #ff3377;
    --secondary-color: #00f2ea;
    --secondary-dark: #00c4bd;
    --secondary-light: #33f5ee;
    
    /* Arrière-plans */
    --dark-bg: #121212;
    --dark-card: #1e1e1e;
    --dark-surface: #2a2a2a;
    --light-bg: #ffffff;
    --light-card: #f8f9fa;
    --light-surface: #f0f0f0;
    
    /* Textes */
    --text-dark: #333333;
    --text-light: #ffffff;
    --text-muted: #6c757d;
    --text-secondary: #8e8e93;
    
    /* Bordures */
    --border-color: #e0e0e0;
    --border-dark: #404040;
    
    /* États */
    --success: #00d084;
    --success-dark: #00a86b;
    --error: #ff3b30;
    --error-dark: #cc2f26;
    --warning: #ff9500;
    --warning-dark: #cc7700;
    --info: #007aff;
    --info-dark: #0062cc;
    
    /* Ombres */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.12);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.2);
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.25);
    
    /* Espacements */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    
    /* Rayons de bordure */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-full: 9999px;
    
    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 350ms ease;
    
    /* Typographie */
    --font-primary: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'SF Mono', Monaco, 'Courier New', monospace;
    
    /* Tailles de police */
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 2rem;
    
    /* Z-index */
    --z-dropdown: 1000;
    --z-sticky: 1020;
    --z-fixed: 1030;
    --z-modal: 1040;
    --z-tooltip: 1050;
}

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

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #000000;
  min-height: 100vh;
}


.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.main-header {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  position: sticky;
  top: 0;
  z-index: 1000;
  color: #fff;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}



.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: bold;
    color: #000;
}


.logo-icon {
  width: 32px;
  height: 32px;
  vertical-align: middle;
  margin-right: 8px;
}

/* --------------------- Desktop --------------------- */

/* Navbar globale */
.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 1rem;
}

/* Menu : rectangle arrondi autour des éléments uniquement */
.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    background: #1E3A8A; /* bleu pour les éléments du menu */
    border-radius: 30px;  
    overflow: hidden;
}

/* Chaque élément du menu */
.element-menu {
    position: relative;
    display: flex;           /* fixe la position */
    align-items: center;     /* centrage vertical */
}

/* Séparateur vertical */
.element-menu:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 10%;
    height: 80%;
    width: 1px;
    background: black;
}

/* Lien dans l'élément */
.nav-menu a {
    display: block;
    padding: 0.75rem 1.5rem; /* même padding que le <li> */
    color: white;             /* texte blanc */
    font-weight: 500;
    text-decoration: none;
    transition: background 0.3s, color 0.3s;
}

/* Hover : fond blanc, texte noir */
.nav-menu a:hover {
    background: white;
    color: black;
}

/* --------------------- Mobile --------------------- */
@media (max-width: 768px) {

    /* Affiche le hamburger */
    .mobile-menu-toggle {
        display: flex;
    }

    /* Menu mobile : caché par défaut */
    .nav-menu {
        display: none;
        flex-direction: column;
        width: 100%;
        background: #ffffff;
        border-radius: 15px;
        padding: 0.5rem 0;
        margin-top: 0.5rem;
    }

    /* Affichage quand actif */
    .nav-menu.active {
        display: flex;
    }

    /* Liens sur mobile : texte noir, pas de fond */
    .element-menu a {
        color: black;
        padding: 1rem;
        background: none;
    }

    /* Supprime séparateurs verticaux */
    .element-menu:not(:last-child)::after {
        display: none;
    }
}

.mobile-menu-toggle {
    display: none;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    flex-direction: column;
    justify-content: space-around;
    z-index: 2000;
}

.mobile-menu-toggle span {
    display: block;
    width: 28px;
    height: 3px;
    background: black;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Language Selector */
.language-selector {
    position: relative;
}

.lang-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: background 0.3s, color 0.3s;
}

.lang-btn:hover {
    background: white;
    color: black;
}

.lang-btn svg {
    width: 20px;
    height: 20px;
}

.lang-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    min-width: 150px;
    margin-top: 0.5rem;
    z-index: 1001;
    list-style: none;
    padding: 0.5rem 0;
}

.language-selector:hover .lang-dropdown {
    display: block;
}

.lang-dropdown li a {
    display: block;
    padding: 0.75rem 1rem;
    color: #333;
    text-decoration: none;
    transition: background 0.2s;
}

.lang-dropdown li a:hover {
    background: #f5f5f5;
}

.lang-dropdown li a.active {
    background: #1E3A8A;
    color: white;
}

@media (max-width: 768px) {
    .lang-btn {
        color: black;
        width: 100%;
        justify-content: flex-start;
    }
    
    .lang-dropdown {
        position: static;
        display: none;
        box-shadow: none;
        background: #f5f5f5;
        margin: 0;
        border-radius: 0;
    }
    
    .language-selector:hover .lang-dropdown,
    .language-selector.active .lang-dropdown {
        display: block;
    }
}



/* Hero Section */
.hero {
    text-align: center;
    padding: 4rem 0;
}

.hero-title {
    font-size: 3rem;
    color: white;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.hero-subtitle {
    font-size: 1.3rem;
    color: rgba(255,255,255,0.95);
    margin-bottom: 2rem;
}

.quick-search {
    margin: 0 auto;
}

.search-form {
    display: flex;
    gap: 10px;
    background: white;
    padding: 10px;
    border-radius: 50px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.search-input {
    flex: 1;
    border: none;
    padding: 15px 25px;
    font-size: 1rem;
    border-radius: 50px;
    outline: none;
}

.btn {
    padding: 15px 30px;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255,0,80,0.3);
}

/* Features Section */
.features {
    padding: 4rem 0;
    background: white;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-card {
    text-align: center;
    padding: 2rem;
    border-radius: 15px;
    background: var(--light-card);
    transition: transform 0.3s;
}

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

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

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

/* Guide Section */
.guide {
    padding: 4rem 0;
    background: rgba(255,255,255,0.95);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--primary-color);
}

.guide-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.guide-method {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.guide-method h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.guide-steps {
    list-style: none;
    counter-reset: step-counter;
}

.guide-steps li {
    counter-increment: step-counter;
    margin-bottom: 1.5rem;
    padding-left: 3rem;
    position: relative;
}

.guide-steps li::before {
    content: counter(step-counter);
    position: absolute;
    left: 0;
    top: 0;
    width: 2rem;
    height: 2rem;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.guide-note {
    background: linear-gradient(135deg, #ffeaa7, #fdcb6e);
    padding: 1.5rem;
    border-radius: 10px;
    border-left: 5px solid var(--warning);
}

/* Quick Links */
.quick-links {
    padding: 4rem 0;
    background: white;
}

.links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.link-card {
    text-decoration: none;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    transition: transform 0.3s;
}

.link-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(102,126,234,0.3);
}

.link-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.link-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

/* Footer */
.main-footer {
    background: var(--dark-bg);
    color: var(--text-light);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

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

.footer-links a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    display: block;
    padding: 0.3rem 0;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--primary-color);
}

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

/* Language Dropdown Styles */
.language-selector {
    position: relative;
}

.lang-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 8px 16px;
    border-radius: 8px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.lang-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

.lang-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    min-width: 150px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    list-style: none;
    padding: 8px 0;
}

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

.lang-dropdown li {
    list-style: none;
}

.lang-dropdown a {
    display: block;
    padding: 10px 20px;
    color: #333;
    text-decoration: none;
    transition: background 0.2s ease;
}

.lang-dropdown a:hover {
    background: #f5f5f5;
}

.lang-dropdown a.active {
    background: #fe2c55;
    color: white;
}

/* Responsive */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }
    
    .nav-menu {
        display: none;
    }
    
    .nav-menu.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        padding: 1rem;
        box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .search-form {
        flex-direction: column;
        border-radius: 15px;
    }
    
    .search-input, .btn {
        border-radius: 10px;
    }
}