
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
 
.no-transitions *,
.no-transitions *:before,
.no-transitions *:after {
    transition: none !important;
}

html, body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
    -webkit-overflow-scrolling: touch;
}

/* 🎨 LES FONDATIONS : Les variables globales. Si tu veux changer la couleur principale du site, c'est ici que ça se passe ! */
:root {
    --primary-color: #FE4D00;
    --primary-gradient: linear-gradient(135deg, #FE4D00 0%, #F60 100%);
    --secondary-color: #E64500;  
    --accent-color: #E64500;
    --light-color: #ffffff; 
    --bg-creme: #f9dbaf;
    --white: #ffffff;
    --text-color: #222222;
    --gray: #444444;
    --dark-color: #1a1a1a; 
    --border-radius: 12px;
    --box-shadow: 0 4px 25px rgba(0, 0, 0, 0.04);
    --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1); 
    --nav-mobile-bg: rgba(254, 245, 232, 0.98);
    --nav-mobile-text: #222222;
    --css-version: '3.0';
}

/* 🌙 MODE SOMBRE : Quand l'utilisateur clique sur la petite lune, on remplace les couleurs claires par celles-ci */
[data-theme="dark"], 
body.error-page {
    --primary-color: #FE4D00;
    --primary-gradient: linear-gradient(135deg, #FE4D00 0%, #F60 100%);
    --secondary-color: #F60;
    --accent-color: #FE4D00;
    --light-color: #242f4d;  
    --white: #2d3b61;
    --text-color: #f8fafc;
    --gray: #94a3b8;
    --dark-color: #f8fafc;
    --box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.4), 0 10px 10px -5px rgba(0, 0, 0, 0.2);
     
    --nav-mobile-bg: #242F4D;
    --nav-mobile-text: #f8fafc;
    --bg-creme: #242F4D;
}

[data-theme="dark"] header,
body.error-page header {
    background-color: #242F4D;
}

::selection {
    background-color: var(--primary-color);
    color: #ffffff;
}

/* 🌍 CORPS DE LA PAGE : On définit la police par défaut (Outfit) et la taille du texte globale */
body {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--text-color);
    line-height: 1.7;
    background-color: var(--light-color);
    font-size: 14px;
}

.hero, 
.legal-page, 
.breadcrumb,
.titre-hero {
    margin-top: 80px;  
}

.contact-page-hero {
    margin-top: 80px;  
}
 
@media (min-width: 768px) {
    body {
        font-size: 16px;
    }
}
 
@media (min-width: 1024px) {
    body {
        font-size: 18px;
    }
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-weight: 500;
}

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

/* 🔝 L'EN-TÊTE (HEADER) : La barre de navigation tout en haut avec le logo et le menu */
header {
    background-color: var(--bg-creme);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 2000;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05); /* 🎨 Petite ombre légère en bas du header pour donner un effet de profondeur sympa */
}

[data-theme="light"] header {
    border-bottom: 1px solid rgba(0,0,0,0.03);
}

.navbar {
    position: relative;
    z-index: 6000;
}

.navbar .container {
    max-width: 1600px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 2%;  
    position: relative;
}

.logo {
    z-index: 10;
}

.logo img {
    height: 45px;
    width: auto;
    object-fit: contain;
    transition: var(--transition);
}

[data-theme="dark"] .logo img,
body.error-page .logo img {
    content: url('../img/logo-blanc-orange.png');
    filter: brightness(1.1) saturate(1.2);
}

[data-theme="dark"] .footer-logo {
    filter: brightness(1.1) saturate(1.2);
}

.nav-center {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 1.5rem; 
    z-index: 5;
}

.nav-center a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: var(--transition);
    font-size: 1rem;
    padding: 0.4rem 0.8rem;  
    border-radius: 20px;
}

.nav-center a:hover {
    color: var(--secondary-color);
    background-color: rgba(254, 77, 0, 0.08);
}

[data-theme="dark"] .nav-center a:hover,
body.error-page .nav-center a:hover {
    background-color: rgba(168, 85, 247, 0.15);
}

.nav-right {
    display: flex;
    gap: 1rem;
    align-items: center;
    z-index: 10;
}

.theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.25rem;
    color: var(--text-color);
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.theme-toggle:hover {
    color: var(--primary-color);
}

.btn-login,
.nav-logout {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: var(--transition);
    padding: 0.5rem 1rem;
    border-radius: 20px;
}

.btn-login:hover,
.nav-logout:hover {
    color: var(--secondary-color);
    background-color: rgba(254, 77, 0, 0.08);
}

[data-theme="dark"] .btn-login:hover,
[data-theme="dark"] .nav-logout:hover,
body.error-page .btn-login:hover,
body.error-page .nav-logout:hover {
    background-color: rgba(168, 85, 247, 0.15);
}

.nav-right .btn-primary {
    padding: 0.6rem 1.5rem;
    font-size: 0.95rem;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--secondary-color);
}

.nav-links .btn-primary,
.nav-links .btn-primary:hover {
    color: #ffffff !important;
}

/* 🔘 LES BOUTONS : Style principal de tous les boutons cliquables du site */
.btn-primary,
.btn-secondary,
.btn-cta-white {
    display: inline-block;
    padding: 0.875rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: var(--primary-gradient);
    color: #ffffff;
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #E64500 0%, #D44000 100%);
    color: #ffffff;
    transform: translateY(-2px);
}

.btn-cta-white {
    background-color: var(--white);
    color: var(--primary-color);
    font-size: 1.1rem;
    padding: 1rem 2.5rem;
    box-shadow: var(--box-shadow);
}

.btn-cta-white:hover {
    background-color: var(--white);
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.btn-secondary {
    background-color: transparent;
    color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
}

.btn-secondary:hover {
    background-color: var(--secondary-color);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.btn-link:hover {
    color: var(--secondary-color);
}

/* 🚀 SECTION HERO : C'est la grande bannière d'accueil tout en haut de la page index.php avec la carte en fond */
.hero {
    position: relative;
    background: var(--light-color);
    color: var(--text-color);
    padding: 6rem 0;
    text-align: center;
    z-index: 1;
    overflow: hidden;
    opacity: 1 !important;
}

.hero::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    max-width: 700px;
    height: 100%;
    background: url('/assets/img/carte-france.png') no-repeat center center;
    background-size: contain;  
    filter: brightness(0) invert(1) drop-shadow(0 0 2px rgba(0,0,0,0.4)); /* 🎨 Fond blanc + bordures noires plus marquées */
    opacity: 1;
    z-index: -1;
}

[data-theme="dark"] .hero {
    background-color: var(--light-color);
}

[data-theme="dark"] .hero::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    max-width: 700px;
    height: 100%;
    background: url('/assets/img/carte-france.png') no-repeat center center;
    background-size: contain; 
    filter: brightness(0) invert(11%) sepia(21%) saturate(2300%) hue-rotate(185deg) brightness(105%) contrast(98%) 
            drop-shadow(0 0 3px #FE4D00) drop-shadow(0 0 14px #FE4D00);
    opacity: 1;
    z-index: -1;
}

/* 🔎 BARRE DE RECHERCHE : La boîte principale où l'utilisateur tape le nom de son diplôme */
.hero-search {
    background-color: var(--light-color);
    padding: 3rem 0 4rem;
    border: none !important;
    box-shadow: none !important;
    position: relative;
    margin-top: -1px; /* 🐛 Glitch fix : On décale d'un pixel vers le haut pour éviter une vilaine ligne de coupure avec la section d'avant */
    z-index: 2;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    color: var(--text-color) !important;
}

.highlight {
    color: var(--primary-color);
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 0;
    color: var(--text-color);
}

.logos-hero {
    background-color: var(--light-color);
    padding: 3rem 0;
    border: none;
}

[data-theme="dark"] .logos-hero {
    border: none;
}

[data-theme="dark"] .partner-logo {
    filter: brightness(0) invert(1);
    opacity: 0.7;
}

[data-theme="dark"] .partner-logo:hover {
    opacity: 1;
}

.logos-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4rem;
    flex-wrap: wrap;
}

.partner-logo {
    height: 70px;
    width: auto;
    opacity: 0.85;
    transition: var(--transition);
}

.partner-logo:hover {
    opacity: 1;
    transform: scale(1.05);
}

/* 🎯 SECTION DES RÉSULTATS : Titres et espaces pour afficher la liste des centres d'examen trouvés */
.search-section {
    padding: 4rem 0;
    background-color: var(--light-color);
}

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

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: var(--gray);
    margin-bottom: 3rem;
}

.search-filters {
    background-color: var(--bg-creme);
    padding: 1.25rem 2rem;
    border-radius: 20px;
    display: flex;
    flex-direction: row;
    gap: 1.5rem;
    align-items: flex-end;
    text-align: left;
    max-width: 820px;
    margin: 0 auto;
    position: relative;
    border: none !important;
    outline: none !important;
    box-shadow: 0 15px 35px -5px rgba(0, 0, 0, 0.1);  
}

[data-theme="dark"] .search-filters {
    background: #242f4d;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    outline: none !important;
    box-shadow: var(--box-shadow);
}

.search-btn-container {
    display: flex;
    justify-content: center;
    margin-top: 0;
}

.search-btn-container .btn-primary {
    width: auto;
    padding: 1rem 2.5rem;
    font-size: 1rem;
    border-radius: 12px;
    background: var(--primary-gradient);
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.filter-group {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.filter-group label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--gray);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-group select,
.filter-group input[type="text"] {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1px solid #d1d5db; 
    border-radius: 12px;
    background-color: var(--white);
    color: var(--text-color);
    font-size: 0.95rem;
    font-weight: 400;  
    transition: all 0.2s ease;
    -webkit-appearance: none;
    appearance: none;
}

[data-theme="dark"] .filter-group select,
[data-theme="dark"] .filter-group input[type="text"] {
    background-color: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.15); 
}

.filter-group select:focus,
.filter-group input[type="text"]:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(254, 77, 0, 0.1);
    background-color: var(--white);
}

[data-theme="dark"] .filter-group select:focus,
[data-theme="dark"] .filter-group input[type="text"]:focus {
    border-color: rgba(255, 255, 255, 0.2); 
}

@media (max-width: 1150px) {
    .search-filters {
        flex-direction: column;
        align-items: stretch;
        padding: 2rem;
    }
    .search-btn-container .btn-primary {
        width: 100%;
    }
}

/* 📦 CARTES DE RÉSULTATS : L'apparence de chaque "carte" qui représente un centre dans la liste */
.results-section {
    margin-top: 3rem;
}

.results-header {
    margin-bottom: 2rem;
    scroll-margin-top: 160px;
}

.results-header h3 {
    font-size: 1.75rem;
    color: var(--text-color);
}

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

.centre-cards-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.session-card {
    background-color: var(--bg-creme);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.session-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    padding-bottom: 1rem;
}

.card-header h4 {
    font-size: 1.25rem;
    color: var(--text-color);
    flex: 1;
}

.badge {
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 0.4rem 1.2rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-info {
    background-color: rgba(141, 28, 217, 0.1);
    color: var(--secondary-color);
    border: 1px solid rgba(141, 28, 217, 0.2);
}

.card-body {
    flex: 1;
    margin-bottom: 1.5rem;
}

.card-body p {
    margin-bottom: 0.75rem;
    color: #222222;
}

.card-body strong {
    color: #222222;
}

.card-footer {
    margin-top: auto;
}

.titles-section {
    padding: 5rem 0;
    background-color: var(--light-color);
}

.titles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.title-card {
    background-color: var(--bg-creme);
    border: 1px solid #eeeeee;
    padding: 2.5rem;
    border-radius: var(--border-radius);
    text-align: center;
    transition: var(--transition);
}

.title-card:hover {
    background-color: var(--bg-creme);
    box-shadow: var(--box-shadow);
    transform: translateY(-5px);
}

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

.title-card h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.title-card p {
    color: var(--gray);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.cta-section {
    background: #222222;
    color: #ffffff;
    padding: 5rem 0;
    text-align: center;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: #ffffff;
}

/* ✉️ SECTION CONTACT : Tout ce qui touche à la page contact.php et aux formulaires */
.contact-section {
    padding: 5rem 0;
    background-color: var(--light-color);
}

.contact-form-centered {
    display: flex;
    justify-content: center;
    margin-top: 3rem;
}

.contact-form-centered .contact-form {
    width: 100%;
    max-width: 680px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem; /* Espacement horizontal augmenté */
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.info-item {
    display: flex;
    gap: 1.5rem;
    align-items: start;
    background-color: var(--bg-creme);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.info-icon {
    font-size: 2rem;
}

.info-item h4 {
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.info-item a {
    color: var(--gray);
    text-decoration: none;
    transition: var(--transition);
}

.info-item a:hover {
    color: var(--primary-color);
}

.contact-form {
    background-color: var(--bg-creme);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.referentiel-form-card,
.login-card {
    background-color: var(--bg-creme);
    padding: 2.5rem;
    border-radius: 24px;
    border: 1px solid rgba(0,0,0,0.05);
    box-shadow: var(--box-shadow);
}

.login-card {
    padding: 3rem;
    width: 100%;
    max-width: 450px;
    text-align: center;
}

[data-theme="dark"] .contact-form,
[data-theme="dark"] .form-card,
[data-theme="dark"] .referentiel-form-card,
[data-theme="dark"] .login-card {
    background-color: #242f4d;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: var(--box-shadow);
}

.form-group {
    margin-bottom: 2.5rem; /* Augmenté pour aérer le formulaire */
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-color);
}

.label-optional {
    font-weight: 400;
    color: var(--gray);
    font-size: 0.9em;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.875rem 1.25rem;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    background-color: var(--white);
    color: var(--text-color);
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
    box-sizing: border-box;
}

[data-theme="dark"] .form-group input,
[data-theme="dark"] .form-group select,
[data-theme="dark"] .form-group textarea {
    background-color: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(254, 77, 0, 0.1);
    background-color: var(--white);
}

[data-theme="dark"] .form-group input:focus,
[data-theme="dark"] .form-group select:focus,
[data-theme="dark"] .form-group textarea:focus {
    border-color: rgba(255, 255, 255, 0.2);
}

.form-group textarea {
    resize: vertical;
}

#contactForm button[type="submit"] {
    display: block;
    margin: 0 auto;
    padding: 0.875rem 3rem;
}

input[type="checkbox"] {
    accent-color: #FE4D00;
}

footer {
    background-color: #111827;  
    color: #ffffff;
    padding: 2rem 0 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

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

.footer-col {
    display: flex;
    flex-direction: column;
}

.footer-col:first-child {
    align-items: flex-start;
}

.footer-col h3 {
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
    width: fit-content;  
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 0.5rem;
}

.footer-brand .footer-logo {
    height: 45px;
    margin-bottom: 0;
}

.footer-tagline {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95rem;
    line-height: 1.6;
}

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

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

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.95rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.footer-socials {
    display: flex;
    gap: 1rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    transition: var(--transition);
    text-decoration: none;
}

.social-link svg {
    width: 20px;
    height: 20px;
}

.social-link:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(168, 85, 247, 0.3);
}

.footer-bottom {
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: left;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.85rem;
}
 
@media (max-width: 1150px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2.5rem;
    }
    
    .footer-col:first-child {
        grid-column: span 2;
        align-items: center;
        text-align: center;
        margin-bottom: 1rem;
    }
}

@media (max-width: 576px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .footer-col {
        align-items: center;
    }

    .footer-col:first-child {
        grid-column: span 1;
    }
    
    .footer-socials {
        justify-content: center;
    }
}

@media (max-width: 1150px) {
    .search-filters {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .hero-title {
        font-size: 2.25rem;
    }

    .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 400px) {
    .logo img {
        width: 100%;
        min-width: auto;
    }
}
 
.burger-menu {
    display: none;
}

.mobile-nav {
    display: none;
}

@media (max-width: 1150px) {
    .navbar .container {
        display: flex !important;
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding: 0 20px !important;
        height: 80px !important;
        max-width: 100% !important;
        position: relative !important;
    }

    .navbar .container .nav-center {
        display: none !important;
        opacity: 0 !important;
        visibility: hidden !important;
        pointer-events: none !important;
        position: absolute !important;
        left: -9999px !important;
    }

    .nav-right {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        gap: 1.5rem !important;
        width: auto !important;
        justify-content: flex-end !important;
        margin-left: auto !important;
    }

    .desktop-only {
        display: none !important;
    }

    .burger-menu {
        display: flex !important;
        flex-direction: column !important;
        justify-content: space-between !important;
        width: 32px !important;
        height: 22px !important;
        background: transparent !important;
        border: none !important;
        cursor: pointer !important;
        padding: 0 !important;
        z-index: 5000 !important;
    }

    .burger-menu span {
        width: 100% !important;
        height: 3px !important;
        background-color: var(--text-color) !important;
        border-radius: 3px !important;
        transition: all 0.3s ease !important;
    }

    .burger-menu.active span:nth-child(1) {
        transform: translateY(9.5px) rotate(45deg) !important;
    }

    .burger-menu.active span:nth-child(2) {
        opacity: 0 !important;
    }

    .burger-menu.active span:nth-child(3) {
        transform: translateY(-9.5px) rotate(-45deg) !important;
    }

    .mobile-nav {
        display: none !important; 
        flex-direction: column;
        position: fixed;
        top: 0;
        right: 0;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: var(--nav-mobile-bg);
        padding: 100px 2rem 2rem;
        z-index: 4100;
        gap: 1.5rem;
        text-align: left;
        transform: translateX(100%);
        transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.3);
        border-left: 1px solid rgba(255, 255, 255, 0.1);
        overflow-y: auto;
    }

    
    .mobile-nav.active {
        display: flex !important;
        transform: translateX(0);
    }

    [data-theme="light"] .mobile-nav {
        border-left: 1px solid rgba(0, 0, 0, 0.05);
    }

    .mobile-nav a {
        font-size: 1.2rem;
        font-weight: 600;
        color: var(--nav-mobile-text);
        text-decoration: none;
        padding: 0.8rem 0;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);  
        transition: color 0.2s ease;
    }

    .mobile-nav a:hover {
        background: transparent !important;
        color: var(--primary-color) !important;
    }

    .mobile-overlay {
        display: none; 
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.4);
        z-index: 4000;
        opacity: 0;
        cursor: pointer;
        transition: opacity 0.3s ease;
    }

    .mobile-overlay.active {
        display: block;
        opacity: 1;
    }

    body.no-scroll {
        overflow: hidden;
    }

    .accordion-header h3 {
        font-size: 1.2rem;
    }
}

html {
    scroll-behavior: smooth;
}

.modal,
.modal-overlay {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.visible,
.modal-overlay.visible,
[style*="display: flex"] { 
    opacity: 1;
}

.modal-content {
    background-color: var(--white);
    margin: auto;
    padding: 0 !important;
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
    max-width: 800px !important;
    border-radius: 24px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    position: relative;
    max-height: none; /* Plus de limite de hauteur rigide */
    overflow: visible; /* On dégage la scrollbar */
    transform: scale(0.9) translateY(20px);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal.visible .modal-content,
.modal-overlay.visible .modal-content {
    transform: scale(1) translateY(0);
}

.close-modal {
    position: absolute;
    top: 2rem;
    right: 2.5rem;
    color: #aaa;
    font-size: 32px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
    z-index: 10;
    transition: var(--transition);
}

.close-modal:hover,
.close-modal:focus {
    color: var(--primary-color);
    text-decoration: none;
    cursor: pointer;
}

@media (max-width: 480px) {
    .container {
        padding: 0 12px;
    }

    .hero {
        padding: 3rem 0;
    }

    .hero-title {
        font-size: 1.6rem;
    }

    .section-title {
        font-size: 1.4rem;
    }

    .cta-content h2 {
        font-size: 1.4rem;
    }

    .titre-section h2 {
        font-size: 1.25rem;
    }

    .titre-name {
        font-size: 1.5rem !important;
    }

    .accordion-header h3 {
        font-size: 1rem;
    }

    .search-filters {
        padding: 1.5rem;
    }

    .contact-form {
        padding: 1.5rem;
    }

    .btn-primary,
    .btn-secondary,
    .btn-cta-white {
        padding: 0.75rem 1.5rem;
        font-size: 0.95rem;
    }

    .session-card {
        padding: 1.5rem;
    }

    .titre-quick-info-grid {
        grid-template-columns: 1fr !important;
    }

    .stats-grid {
        grid-template-columns: 1fr !important;
    }
}

.faq-section {
    padding: 5rem 0;
    background-color: var(--light-color);
}

.faq-list {
    max-width: 760px;
    margin: 3rem auto 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    background: var(--bg-creme);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    font-family: inherit;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-color);
    text-align: left;
    cursor: pointer;
    transition: color 0.2s;
}

.faq-question:hover {
    color: var(--primary-color);
}

.faq-question[aria-expanded="true"] {
    color: var(--primary-color);
}

.faq-icon {
    flex-shrink: 0;
    font-size: 0.85rem;
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

.faq-question[aria-expanded="true"] .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.35s ease;
    padding: 0 2rem;
}

.faq-answer.open {
    max-height: 420px;
    padding: 0 2rem 1.5rem;
}

.faq-answer p {
    color: var(--gray);
    line-height: 1.8;
    margin: 0;
}

.titre-hero {
    background: #222222;
    color: #ffffff !important;
    padding: 4rem 0;
    margin-top: 80px;
    transition: all 0.3s ease;
    position: relative;
    z-index: 10;
}

.titre-hero:hover {
    background: #2a2a2a;
    box-shadow: 0 15px 35px rgba(0,0,0,0.4);
    transform: translateY(-3px);
}

.titre-hero h1, .titre-hero p {
    color: #ffffff !important;
}

.titre-content {
    background-color: var(--light-color);
    padding: 3rem 0;
}

.titre-name {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.titre-quick-info-grid {
    margin-top: 1.5rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
    text-align: center;
}

.titre-section {
    margin-bottom: 3rem;
}

.titre-section h2 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 2rem;
}

.titre-section h3 {
    color: var(--text-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.code-rncp-badge {
    display: inline-block;
    background-color: var(--white);
    color: var(--text-color);
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    margin: 0.25rem;
    border: 2px solid var(--text-color);
}

.btn-map-scroll {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: var(--primary-color);
    color: white !important;
    padding: 0.5rem 1.2rem;
    border-radius: var(--border-radius);
    font-weight: 700;
    margin: 0.25rem;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-map-scroll:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(254, 77, 0, 0.3);
    background-color: var(--secondary-color);
}

.btn-map-scroll i {
    font-size: 1rem;
}

.info-box {
    background-color: var(--light-color);
    padding: 2rem;
    border-radius: var(--border-radius);
    margin-bottom: 2rem;
}

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

.document-card {
    background-color: var(--bg-creme);
    border: 1px solid var(--light-color);
    border-radius: var(--border-radius);
    padding: 2rem;
    text-align: center;
    transition: var(--transition);
}

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

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

.document-card h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.document-card p {
    color: var(--gray);
    margin-bottom: 1.5rem;
}

[data-theme="dark"] .session-card,
[data-theme="dark"] .title-card,
[data-theme="dark"] .info-item,
[data-theme="dark"] .faq-item,
[data-theme="dark"] .document-card,
[data-theme="dark"] .modal-content,
[data-theme="dark"] .quick-info-box,
[data-theme="dark"] .stats-card {
    background-color: #242f4d;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .no-results-info-card h3,
[data-theme="dark"] .titre-section h2 {
    color: #ffffff !important;
}

.breadcrumb {
    background-color: var(--light-color);
    padding: 1rem 0;
}

.breadcrumb a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

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

.breadcrumb span {
    color: var(--gray);
    margin: 0 0.5rem;
}

.external-link-notice {
    background-color: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: var(--border-radius);
    padding: 1rem;
    margin-bottom: 1rem;
    color: #856404;
}

.accordion {
    margin-bottom: 2rem;
}

.accordion-item {
    background-color: var(--light-color);
    border: 1px solid var(--light-color);
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
    overflow: hidden;
}

.accordion-header {
    background-color: var(--light-color);
    padding: 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
}

.accordion-header h3 {
    margin: 0;
    color: #000000;
    font-size: 1.5rem;
}

.accordion-icon {
    font-size: 1.5rem;
    transition: transform 0.3s ease;
    color: #000000;
}

.accordion-item.active .accordion-icon {
    transform: rotate(180deg);
}

.accordion-content {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.3s ease;
    overflow: hidden;
}

.accordion-item.active .accordion-content {
    grid-template-rows: 1fr;
}

.accordion-content-inner {
    min-height: 0;
    padding: 0 1.5rem;
    transition: padding 0.3s ease;
}

.accordion-item.active .accordion-content-inner {
    padding: 1.5rem;
}

.accordion-content-inner {
    padding: 0.5rem 0;
}

.legal-page {
    background-color: var(--light-color);
    min-height: calc(100vh - 400px);
    padding: 4rem 0;
}

.legal-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.legal-content h1 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--text-color);
}

.legal-content h2 {
    font-size: 1.4rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.legal-content h3 {
    font-size: 1rem;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--text-color);
}

.legal-content p {
    margin-bottom: 1rem;
    line-height: 1.8;
    font-size: 0.85rem;
}

.legal-content ul {
    margin-bottom: 1rem;
    margin-left: 2rem;
    font-size: 0.85rem;
}

.legal-content li {
    margin-bottom: 0.5rem;
}

.back-link {
    display: inline-block;
    margin-bottom: 2rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.back-link:hover {
    text-decoration: underline;
}

.legal-content a,
.contact-container a {
    color: var(--primary-color) !important;
    text-decoration: underline;
    font-weight: 500;
}

.legal-content a:hover,
.contact-container a:hover {
    color: var(--secondary-color) !important;
    text-decoration: underline;
}


.contact-page-hero {
    padding: 4rem 0 2rem;
    text-align: center;
    background-color: var(--light-color);
}

[data-theme="dark"] .contact-page-hero {
    background-color: var(--bg-creme);
}

.contact-page-hero .section-title {
    margin-bottom: 0.5rem;
}

.contact-page-hero .section-subtitle {
    margin-bottom: 0;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.contact-container {
    padding-bottom: 5rem;
    background-color: var(--light-color);
    margin-top: -1px; /* Glitch fix: overlap with contact-page-hero */
    position: relative;
    z-index: 2;
}

.quick-info-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.quick-info-box {
    background: var(--bg-creme);
    padding: 1.25rem;
    border-radius: var(--border-radius);
    flex: 1;
    min-width: 250px;
    border: 1px solid rgba(0,0,0,0.05);
}

.quick-info-label {
    font-size: 0.85rem;
    color: var(--gray);
    margin-bottom: 0.4rem;
    font-weight: 500;
}

.quick-info-value {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--dark-color);
}

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

.stats-card {
    background: var(--bg-creme);
    border-radius: 16px;
    padding: 2.5rem 2rem;
    text-align: center;
    border: 1px solid rgba(0,0,0,0.03);
    transition: var(--transition);
}

.stats-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow);
}

.form-card {
    background-color: var(--bg-creme);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.stats-value {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
}

.stats-label {
    font-size: 0.9rem;
    color: var(--gray);
    margin-top: 1rem;
    font-weight: 600;
}

.centre-card-header {
    border-bottom: 2px solid var(--primary-color) !important;
}

.centre-card-title {
    margin-bottom: 0;
    font-size: 1.2rem;
}

.centre-info-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 0.5rem;
}

.centre-info-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: var(--text-color);
}

.centre-icon {
    color: var(--primary-color);
    flex-shrink: 0;
    margin-top: 4px;
}

.centre-location-text {
    font-weight: 600;
}

.centre-hab-text {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.4;
}

.centre-contact-wrapper,
.form-submit-wrapper {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    
    text-align: center;
}

#informations-title {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 2rem;
}

.modal-header {
    padding: 1.25rem 2.5rem 0.5rem !important; /* Hyper compact */
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
}

/* Sur mobile on réduit un peu pour que ça respire sans étouffer */
@media (max-width: 768px) {
    .modal-header {
        padding: 2rem 1.5rem 1rem;
    }
}

.modal-header-title {
    color: var(--primary-color);
    font-size: 1.75rem; /* Un peu plus grand */
    font-weight: 800;
    margin: 0;
    line-height: 1.2;
}

.modal-centre-name {
    color: var(--gray);
    display: block;
    margin-top: 0.75rem;
    font-size: 1.15rem;
    font-weight: 500;
}

.modal-body {
    padding: 1rem 2.5rem !important;
    background-color: var(--white);
}

@media (max-width: 768px) {
    .modal-body {
        padding: 1.5rem;
    }
}

.modal-footer {
    padding: 1rem 2.5rem 1.5rem !important;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    background-color: rgba(0, 0, 0, 0.01);
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}

@media (max-width: 768px) {
    .modal-footer {
        padding: 1.5rem;
        flex-direction: column; /* Boutons l'un sur l'autre sur mobile */
    }
    .modal-footer button {
        width: 100%;
    }
}

[data-theme="dark"] .modal-header,
[data-theme="dark"] .modal-footer {
    border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .modal-centre-name {
    color: #cbd5e1;
}

[data-theme="dark"] .close-modal {
    color: #94a3b8;
}

[data-theme="dark"] .close-modal:hover {
    color: var(--primary-color);
}

.form-message {
    border-radius: var(--border-radius);
    padding: 1.5rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.form-message-success {
    background: #e1fdf0;
    color: #065f46;
    border: 1px solid #6ee7b7;
}

.form-message-error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
    font-size: 0.95rem;
    padding: 1rem 1.5rem;
    text-align: left;
}

.text-center-muted {
    text-align: center;
    padding: 3rem 2rem;
    color: var(--gray);
    width: 100%;
}

.hidden {
    display: none !important;
}

.visible {
    display: block !important;
}

#cookie-banner {
    position: fixed;
    bottom: 30px;
    right: 30px;
    max-width: 400px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    z-index: 10000;
    display: none;
    flex-direction: column;
    gap: 16px;
    animation: slideUpFade 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideUpFade {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.cookie-content {
    color: var(--dark-color);
}

.cookie-content h4 {
    margin-bottom: 8px;
    font-size: 1.1rem;
    color: var(--primary-color);
}

.cookie-content p {
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
    opacity: 0.9;
}

.cookie-actions {
    display: flex;
    gap: 12px;
}

.cookie-actions .btn-accept {
    flex: 2;
    background: var(--primary-gradient);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.cookie-actions .btn-accept:hover {
    transform: translateY(-2px);
}

.cookie-actions .btn-settings {
    flex: 1;
    background: rgba(141, 28, 217, 0.1);
    color: var(--secondary-color);
    border: 1px solid rgba(141, 28, 217, 0.2);
    padding: 12px 15px;
    border-radius: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    font-size: 0.85rem;
}

.cookie-actions .btn-settings:hover {
    background: rgba(141, 28, 217, 0.2);
}

@media (max-width: 576px) {
    #cookie-banner {
        bottom: 0;
        right: 0;
        left: 0;
        max-width: 100%;
        border-radius: 20px 20px 0 0;
        padding: 24px;
    }
    
    .cookie-actions {
        flex-direction: column;
    }
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform, opacity;
}

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

.stagger-children > * {
    opacity: 0 !important;
    transform: translateY(20px) !important;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.stagger-children.reveal-visible > * {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

.stagger-children.reveal-visible > *:nth-child(1) { transition-delay: 0.1s !important; }
.stagger-children.reveal-visible > *:nth-child(2) { transition-delay: 0.2s !important; }
.stagger-children.reveal-visible > *:nth-child(3) { transition-delay: 0.3s !important; }
.stagger-children.reveal-visible > *:nth-child(4) { transition-delay: 0.4s !important; }
.stagger-children.reveal-visible > *:nth-child(5) { transition-delay: 0.5s !important; }
.stagger-children.reveal-visible > *:nth-child(6) { transition-delay: 0.6s !important; }


.error-404-game-container {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    background-color: #0f172a; 
    display: flex;
    align-items: center;
    justify-content: center;
}

#game-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.floating-favicon {
    position: absolute;
    top: 0;
    left: 0;
    pointer-events: auto;
    cursor: crosshair;
    filter: drop-shadow(0 0 8px rgba(254, 77, 0, 0.4));
    transition: transform 0.05s linear;
    user-select: none;
    z-index: 2;
    will-change: transform; 
}

.special-favicon {
    filter: hue-rotate(280deg) drop-shadow(0 0 15px rgba(255, 0, 255, 0.8)) !important;
    animation: pulse-glow 1.5s infinite alternate;
    z-index: 3;
}


.galaxy-theme .floating-favicon {
    filter: hue-rotate(240deg) brightness(0.8) drop-shadow(0 0 10px rgba(138, 43, 226, 0.6));
}

.galaxy-theme .special-favicon {
    filter: hue-rotate(200deg) brightness(0.5) drop-shadow(0 0 15px rgba(25, 25, 112, 0.9));
}

@keyframes flicker-optimized {
    0%, 18%, 22%, 25%, 53%, 57%, 100% {
        opacity: 1;
        filter: brightness(1);
    }
    20%, 24%, 55% {       
        opacity: 0.7;
        filter: brightness(0.5);
    }
}
.error-overlay { position: relative; z-index: 10; text-align: center; pointer-events: none; } .neon-title { font-size: 7rem; font-weight: 900; text-transform: uppercase; color: #fff; margin-bottom: 2rem; text-shadow: 0 0 10px #fff, 0 0 20px var(--primary-color), 0 0 40px var(--primary-color); animation: flicker-optimized 2s infinite alternate; } .error-card-mini { background: rgba(15, 15, 15, 0.85); padding: 2rem 3rem; border-radius: 20px; border: 1px solid rgba(255, 255, 255, 0.1); color: white; pointer-events: auto; max-width: 500px; margin: 0 auto; } .error-card-mini p { font-size: 1.2rem; margin-bottom: 1.5rem; line-height: 1.4; opacity: 0.9; } #score-display { position: absolute; top: 100px; right: 40px; background: rgba(255, 255, 255, 0.05); backdrop-filter: blur(10px); padding: 1rem 2rem; border-radius: 15px; border: 1px solid rgba(255, 255, 255, 0.1); color: #fff; font-size: 1.5rem; font-weight: 700; z-index: 50; pointer-events: none; text-shadow: 0 0 10px var(--primary-color); } #score-display span { color: var(--primary-color); font-size: 2rem; } @media (max-width: 768px) { .neon-title { font-size: 3.5rem; } #score-display { top: 90px; right: 20px; padding: 0.5rem 1rem; font-size: 1rem; } } 
.status-info-container {
    display: inline-flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    position: relative;
    vertical-align: middle;
    margin-left: 0.5rem;
    cursor: help;
    white-space: nowrap !important;
}

.status-info-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background-color: #f59e0b;
    color: white;
    border-radius: 50%;
    font-size: 13px;
    font-weight: 700;
    font-style: normal;
    margin-left: 4px;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.status-info-container:hover .status-info-icon {
    transform: scale(1.1);
    background-color: #d97706;
}

.status-tooltip {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    left: calc(100% + 10px);
    top: 50%;
    transform: translateY(-50%);
    background-color: #1e293b;
    color: white;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 400;
    width: 260px;
    white-space: normal;
    z-index: 1000;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
    pointer-events: none;
}

.status-tooltip::before {
    content: "";
    position: absolute;
    right: 100%;
    top: 50%;
    transform: translateY(-50%);
    border-width: 6px;
    border-style: solid;
    border-color: transparent #1e293b transparent transparent;
}

.status-info-container:hover .status-tooltip {
    visibility: visible;
    opacity: 1;
}

[data-theme="dark"] .status-tooltip {
    background-color: #334155;
}

[data-theme="dark"] .status-tooltip::before {
    border-color: transparent #334155 transparent transparent;
}

/* --- PREMIUM NEIGHBOR BUTTONS & MAP RESTORED --- */
.neighbor-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
    margin-top: 1rem;
}

.neighbor-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 52px;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(254, 77, 0, 0.2);
    border-radius: 14px;
    color: var(--dark-color);
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(10px);
}

[data-theme="dark"] .neighbor-btn {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(254, 77, 0, 0.3);
}

.neighbor-btn:hover {
    background: var(--primary-color);
    color: white !important;
    border-color: var(--primary-color);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(254, 77, 0, 0.3);
}

/* Interactive Map Styles */
.france-map-wrapper {
    position: relative;
    width: 100%;
    max-width: 1300px;
    margin: 3rem auto;
    background: transparent;
    padding: 0;
    border-radius: 24px;
}

#map-leaflet {
    height: 750px;
    width: 100%;
    border-radius: 24px;
    z-index: 1;
    overflow: hidden;
    background: transparent !important;
}

[data-theme="dark"] #map-leaflet {
    background: transparent !important;
}

.leaflet-container {
    background: transparent !important;
}

.map-dept-inactive {
    fill: #ffffff !important;
    stroke: #cbd5e1 !important;
    transition: fill 0.3s ease, stroke 0.3s ease;
}

[data-theme="dark"] .map-dept-inactive {
    fill: #1e293b !important;
    stroke: #334155 !important;
}

.map-dept-active {
    fill: #FE4D00 !important;
    stroke: #ffffff !important;
}

[data-theme="dark"] .map-dept-active {
    stroke: #334155 !important;
}

/* Leaflet Zoom Controls Dark Mode */
[data-theme="dark"] .leaflet-bar a {
    background-color: #1e293b !important;
    color: #f1f5f9 !important;
    border-color: #334155 !important;
}

[data-theme="dark"] .leaflet-bar a:hover {
    background-color: #334155 !important;
}

[data-theme="dark"] .leaflet-bar a.leaflet-disabled {
    background-color: #0f172a !important;
    color: #475569 !important;
}

.france-map-img {
    display: block;
    width: 100%;
    height: auto;
    opacity: 1;
    filter: drop-shadow(0 15px 45px rgba(0,0,0,0.3));
    transition: all 0.5s ease;
}

[data-theme="dark"] .france-map-img {
    filter: invert(0.9) grayscale(1) brightness(0.6) contrast(1.2);
}

/* --- DROM MAPS RESTORED --- */
.drom-maps-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
    margin-top: 2rem;
}

.drom-map-item {
    text-align: center;
}

.drom-map-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--gray);
}

.drom-mini-map {
    height: 120px;
    width: 100%;
    background: transparent !important;
    border-radius: 12px;
    overflow: hidden;
}

[data-theme="dark"] .drom-mini-map {
    background: transparent !important;
}

@media (max-width: 992px) {
    .drom-maps-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 576px) {
    .drom-maps-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.map-marker-bubble {
    position: absolute;
    width: 24px !important;
    height: 24px !important;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    box-shadow: none !important;
    transform: translate(-50%, -50%) scale(0);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    z-index: 5;
    box-sizing: border-box !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: visible !important;
}

@media (max-width: 768px) {
    .map-marker-bubble {
        width: 16px !important;
        height: 16px !important;
    }
}

@media (max-width: 480px) {
    .map-marker-bubble {
        width: 13px !important;
        height: 13px !important;
    }
}

.map-marker-bubble.visible {
    transform: translate(-50%, -50%) scale(1);
}

.map-marker-bubble:hover {
    transform: translate(-50%, -50%) scale(1.3);
    z-index: 10;
}

.map-marker-bubble img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    display: block !important;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.4)) !important;
    margin: 0 !important;
}

.map-marker-tooltip {
    position: absolute;
    bottom: 120%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: #111;
    color: white;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all 0.2s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.map-marker-bubble:hover .map-marker-tooltip {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

@keyframes markerBounce {
    0% { transform: translate(-50%, -50%) scale(1); }
    100% { transform: translate(-50%, -50%) scale(1.1); }
}

.map-marker-bubble.active {
    animation: markerBounce 1s infinite alternate;
}
 
.result-summary-card {
    background-color: var(--white);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    margin-bottom: 2.5rem;
    border: 1px solid rgba(0,0,0,0.05);
    text-align: center;
    transition: var(--transition);
}

.result-summary-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px -10px rgba(0, 0, 0, 0.15);
}

[data-theme="dark"] .result-summary-card {
    background: #242f4d;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.3);
}

.result-card-header h2 {
    font-size: 2.2rem;
    color: var(--text-color);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.result-card-badges {
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.result-card-description {
    color: var(--gray);
    font-size: 0.95rem;
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.result-card-info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    border-top: 1px solid rgba(0,0,0,0.08);
    padding-top: 2rem;
}

[data-theme="dark"] .result-card-info-grid {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.info-item-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--gray);
    font-weight: 600;
}

.info-item-value {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-color);
}

@media (max-width: 768px) {
    .result-card-info-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .result-card-header h2 {
        font-size: 1.8rem;
    }
}

.loader {
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
    display: inline-block;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

#dynamic-results,
.titre-section,
.results-header,
.no-results-info-card,
.centres-proches-section,
#map-target-scroll,
#inactive-info-card,
.france-map-wrapper,
.result-summary-card {
    scroll-margin-top: 160px;
}


.centre-results-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 900px;
    margin: 0 auto;
}

.centre-result-row {
    background: var(--white);
    border-radius: 20px;
    padding: 1.8rem 2.5rem;
    padding-right: 250px;  
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease, border-color 0.3s ease;
    border: 1px solid rgba(0,0,0,0.03);
    text-align: left;
    min-height: 160px;  
    position: relative;
    cursor: pointer;
}

.centre-result-row:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

.centre-result-row:hover .btn-contact-centre {
    filter: brightness(0.9);
}

.centre-info-main {
    flex: 1;
}

.centre-org-name {
    color: var(--primary-color);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    font-family: 'Plus Jakarta Sans', sans-serif;
    padding-right: 110px; 
}

 
.centre-card-logo {
    position: absolute;
    top: 1.2rem;
    right: 1.5rem;
    width: 180px;
    height: 60px;
    object-fit: contain;
    background: transparent;
    border-radius: 12px;
    padding: 0;
    transition: all 0.3s ease;
}

/* Logos par défaut : gris si non référencé, orange si référencé */
.centre-card-logo.is-default-logo.not-referenced {
    filter: grayscale(1);
    opacity: 0.5;
}

.centre-card-logo.is-default-logo.is-referenced {
    filter: none; /* L'icône par défaut est déjà orange */
    opacity: 1;
}

.centre-result-row {
    position: relative; 
}


.centre-detail-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 0.6rem;
    font-size: 0.95rem;
    color: var(--text-color);
}

.centre-detail-item:last-child {
    margin-bottom: 0;
}

.detail-icon {
    width: 20px;
    text-align: center;
    font-size: 1rem;
}

.pin-icon { color: var(--primary-color); }
.calendar-icon { color: #f59e0b; }
.price-icon { color: #10b981; }

 
.back-to-map-btn {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    background: #1e293b; 
    color: white !important;
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    font-size: 0.85rem;
    z-index: 1000;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
}

.back-to-map-btn.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-map-btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 35px rgba(254, 77, 0, 0.5);
    color: white !important;
}

 
.session-card {
    position: relative;
}

.centre-card-title {
    padding-right: 50px;
}


.detail-text {
    font-weight: 500;
}

.centre-actions {
    position: absolute;
    bottom: 1.2rem;
    right: 1.5rem;
}

.btn-contact-centre {
    display: inline-block;
    padding: 0.8rem 2rem;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    white-space: nowrap;
    cursor: pointer;
    border: none;
}

.btn-contact-centre:hover {
    background: var(--secondary-color);
    transform: scale(1.03);
    color: white;
}

@media (max-width: 768px) {
    .centre-result-row {
        flex-direction: column;
        align-items: flex-start;
        padding: 1.5rem;
        padding-top: 5rem;  
        gap: 1rem;
        min-height: auto;
    }
    
    .centre-card-logo {
        top: 1rem;
        right: 1rem;
        width: 130px;
        height: 45px;
    }

    .centre-org-name {
        padding-right: 0;
        font-size: 1.1rem;
    }

    .centre-actions {
        position: static;
        margin-left: 0;
        width: 100%;
        margin-top: 1rem;
    }
    
    .btn-contact-centre {
        width: 100%;
        text-align: center;
        padding: 1rem;
    }
}

.modal-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* Styles pour la modale de succès premium utilisée en JS */
.success-modal-content {
    background: var(--white);
    max-width: 500px;
    width: 100%;
    border-radius: 28px;
    padding: 3.5rem 2.5rem;
    text-align: center;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(0,0,0,0.05);
    animation: modalPop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes modalPop {
    from { transform: scale(0.9) translateY(20px); opacity: 0; }
    to { transform: scale(1) translateY(0); opacity: 1; }
}

.success-icon-wrapper {
    width: 80px;
    height: 80px;
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2.5rem;
    animation: iconBounce 0.5s 0.2s both;
}

@keyframes iconBounce {
    0% { transform: scale(0); }
    70% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.success-modal-content h2 {
    font-size: 1.5rem;
    color: var(--text-color);
    margin-bottom: 1rem;
    font-weight: 700;
}

.success-modal-content p {
    color: var(--gray);
    margin-bottom: 2rem;
    line-height: 1.6;
}

[data-theme="dark"] .success-modal-content p {
    color: #ffffff;
}

/* --- COOKIE SETTINGS MODAL (PREMIUM) --- */
.cookie-settings-modal {
    max-width: 550px;
    background: var(--bg-creme);
    border-radius: 24px;
    padding: 0;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.cookie-settings-modal .modal-header {
    padding: 24px 32px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cookie-settings-modal .modal-header h3 {
    font-size: 1.4rem;
    color: var(--dark-color);
    margin: 0;
}

.cookie-settings-modal .modal-body {
    padding: 32px;
}

.cookie-option-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.cookie-option-item:last-child {
    border-bottom: none;
}

.option-info {
    flex: 1;
    padding-right: 20px;
}

.option-info strong {
    display: block;
    font-size: 1.05rem;
    color: var(--dark-color);
    margin-bottom: 4px;
}

.option-info p {
    font-size: 0.9rem;
    color: var(--gray);
    margin: 0;
    line-height: 1.4;
}

.cookie-settings-modal .modal-footer {
    padding: 24px 32px;
    background: rgba(0, 0, 0, 0.02);
    display: flex;
    justify-content: flex-end;
}

/* --- MODERN TOGGLE SWITCH --- */
.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #cbd5e1;
    transition: .4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

input:checked + .slider {
    background-color: var(--primary-color);
}

input:focus + .slider {
    box-shadow: 0 0 1px var(--primary-color);
}

input:checked + .slider:before {
    transform: translateX(24px);
}

.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

/* Dark mode adjustments for cookie modal */
[data-theme="dark"] .cookie-settings-modal {
    background: #1e293b;
    border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .modal-header {
    border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .cookie-option-item {
    border-color: rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .option-info strong {
    color: #f8fafc;
}

[data-theme="dark"] .option-info p {
    color: #94a3b8;
}

[data-theme="dark"] .modal-footer {
    background: rgba(255, 255, 255, 0.02);
}

/* --- CONFIRM MODAL (PREMIUM) --- */
.confirm-modal-content {
    background: var(--white);
    max-width: 500px;
    width: 100%;
    border-radius: 28px;
    padding: 3.5rem 2.5rem;
    text-align: center;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(0,0,0,0.05);
    animation: modalPop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.confirm-icon-wrapper {
    width: 80px;
    height: 80px;
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2.5rem;
}

.confirm-modal-content h2 {
    font-size: 1.5rem;
    color: var(--text-color);
    margin-bottom: 1rem;
    font-weight: 700;
}

.confirm-modal-content p {
    color: var(--gray);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.confirm-modal-footer {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.btn-cancel {
    background: #f1f5f9;
    color: #64748b;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
}

.btn-cancel:hover {
    background: #e2e8f0;
    color: #475569;
}

[data-theme="dark"] .btn-cancel {
    background: rgba(255,255,255,0.05);
    color: #94a3b8;
}

/* ✉️ MODALE DE CONTACT GLOBALE */
.cd-modal {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
    padding: 20px;
}
.cd-modal.active { display: flex; }
.cd-modal-content {
    background: var(--bg-color, #ffffff);
    color: var(--text-color, #1e293b);
    width: 100%; max-width: 500px;
    padding: 2.5rem; border-radius: 24px;
    position: relative;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    border: 1px solid var(--border-color, #e2e8f0);
}
[data-theme="dark"] .cd-modal-content {
    background: #1e293b;
    border-color: rgba(255,255,255,0.1);
}
.cd-modal-close { position: absolute; top: 1.25rem; right: 1.5rem; font-size: 1.5rem; cursor: pointer; color: var(--gray, #64748b); transition: color 0.2s; }
.cd-modal-close:hover { color: var(--primary-color, #FE4D00); }

.cd-form-group { margin-bottom: 1.25rem; }
.cd-form-label { display: block; font-weight: 600; font-size: 0.85rem; margin-bottom: 6px; color: var(--text-color); opacity: 0.9; }
.cd-form-input { 
    width: 100%; padding: 12px 16px; border-radius: 12px; 
    border: 1px solid var(--border-color, #e2e8f0); 
    background: var(--card-bg, #ffffff); color: var(--text-color);
    font-family: inherit; font-size: 0.95rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}
[data-theme="dark"] .cd-form-input {
    background: #0f172a;
    border-color: rgba(255,255,255,0.1);
}
.cd-form-input:focus { border-color: var(--primary-color, #FE4D00); outline: none; box-shadow: 0 0 0 3px rgba(254, 77, 0, 0.1); }

