/* ==========================================
   BASE & TYPOGRAPHY
   ========================================== */
*, *::before, *::after {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    margin: 0;
    background: #fff;
    color: #111;
}
a { transition: color 0.15s ease, box-shadow 0.2s ease; }
strong.text-dark { color: #111; }
strong.text-gray-dark { color: #374151; }

/* ==========================================
   LAYOUT & NAVIGATION (main.php)
   ========================================== */
.main-nav {
    position: sticky; top: 0; z-index: 50;
    background: rgba(255,255,255,.97);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid #e5e7eb;
}
.nav-container {
    max-width: 1200px; margin: 0 auto; padding: 0 0rem;
    display: flex; align-items: center; justify-content: space-between; height: 64px;
}
.logo-link {
    display: flex;
    flex-direction: row;
    align-items: center;
    text-decoration: none;
    color: inherit;
    flex-shrink: 1;
    min-width: 0;
    gap: .5rem;
}
.logo-img { 
    height: 50px; 
    width: auto; 
    display: block; 
}
.logo-text {
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: .10em;
    text-transform: uppercase;
    color: #e63946;
    line-height: 1; 
    padding-top: 38px; 
}
.footer-logo-text {
    font-weight: 700;
    letter-spacing: .10em;
    text-transform: uppercase;
    color: #e63946;
    line-height: 1; 
    padding-top: 22px; 
}
.nav-link {
    color: #374151; text-decoration: none; font-size: .875rem;
    font-weight: 600; white-space: nowrap;
}
.nav-link:hover { color: #e63946; }
.btn-nav-inscription {
    background: #e63946; color: white; padding: .4rem .9rem;
    border-radius: 9999px; text-decoration: none; font-size: .8rem;
    font-weight: 700; flex-shrink: 0;
}
.btn-nav-inscription:hover { background: #c1121f; }

/* Mobile menu */
#mobile-menu {
    display: none; flex-direction: column; background: white;
    border-top: 1px solid #e5e7eb; padding: .5rem 0 1rem;
}
#mobile-menu.open { display: flex; }
#mobile-menu a {
    display: block; padding: .65rem 1.25rem; color: #374151;
    text-decoration: none; font-size: .95rem; font-weight: 600;
}
#mobile-menu a:hover { background: #fef2f2; color: #e63946; }
.cta-mobile {
    margin: .75rem 1.25rem 0; background: #e63946; color: white !important;
    text-align: center; border-radius: 9999px; padding: .65rem 1rem !important;
}
.cta-mobile:hover { background: #c1121f !important; }
#hamburger { display: none; cursor: pointer; background: none; border: none; padding: .5rem; }

/* Messages Flash */
.flash-error { background: #fee2e2; color: #991b1b; padding: 1rem; text-align: center; font-weight: 600; }
.flash-success { background: #dcfce7; color: #166534; padding: 1rem; text-align: center; font-weight: 600; }

/* Unified Partner */
.unified-section {
    background: #f7f6f2; border-top: 1px solid #e5e7eb;
    padding: 2.5rem 1.25rem; text-align: center;
}
.unified-link { display: inline-block; margin-bottom: 1.5rem; }
.unified-img { height: 80px; width: auto; display: block; }
.unified-text { max-width: 680px; margin: 0 auto; font-size: .9rem; line-height: 1.75; color: #4b5563; }
.unified-link-text { color: #e63946; font-weight: 600; text-decoration: none; }
.unified-link-text:hover { text-decoration: underline; }

/* Footer */
.main-footer { border-top: 1px solid #e5e7eb; padding: 2.5rem 1rem; }
.footer-container {
    max-width: 1152px; margin: 0 auto; display: flex; flex-wrap: wrap;
    align-items: flex-start; justify-content: space-between;
    gap: 1.5rem; font-size: .875rem; color: #6b7280;
}
.footer-brand-title { font-weight: 900; font-size: 1rem; color: #111; margin-bottom: .25rem; }
.footer-highlight { color: #e63946; }
.footer-links { display: flex; flex-wrap: wrap; gap: 1rem; }
.footer-link { color: #6b7280; text-decoration: none; }
.footer-link:hover { color: #e63946; }
.footer-link-admin { color: #d1d5db; font-size: .75rem; }
.footer-link-admin:hover { color: #e63946; }
.footer-contact-link { color: #6b7280; text-decoration: none; }
.footer-contact-link:hover { color: #e63946; }
.footer-logo-link .logo-img { height: 32px; width: auto; }
.footer-logo-link .logo-text { font-size: .65rem; }

/* ==========================================
   COMPOSANTS GLOBAUX
   ========================================== */
.hero-gradient { background: linear-gradient(135deg, #e63946 0%, #c1121f 50%, #1d3557 100%); }
.card { background: #f9fafb; border-radius: 1rem; padding: 1.5rem; border: 1px solid #f3f4f6; }
.prose h2 { font-weight: 900; font-size: 1.4rem; margin: 1.5rem 0 .6rem; }
.prose h3 { font-weight: 700; font-size: 1.1rem; margin: 1rem 0 .4rem; }
.prose p  { margin-bottom: .75rem; line-height: 1.7; }
.prose ul { list-style: disc; padding-left: 1.5rem; margin-bottom: .75rem; }
.prose a  { color: #e63946; text-decoration: underline; }

/* ==========================================
   HOME PAGE
   ========================================== */
.hero-inner { max-width: 768px; margin: 0 auto; position: relative; padding: 6rem 1rem; text-align: center; color: white; }
.hero-badge { display: inline-block; background: rgba(255,255,255,.2); color: white; font-size: .75rem; font-weight: 700; padding: .25rem .75rem; border-radius: 9999px; margin-bottom: 1rem; letter-spacing: .1em; text-transform: uppercase; }
.hero-title { font-size: 3.5rem; font-weight: 900; line-height: 1.1; margin: .5rem 0 1rem; }
.hero-subtitle { font-size: 1.1rem; opacity: .8; margin-bottom: 2rem; max-width: 500px; margin-left: auto; margin-right: auto; }
.hero-buttons { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }

.btn-primary { background: white; color: #e63946; font-weight: 700; padding: .75rem 2rem; border-radius: 9999px; text-decoration: none; font-size: 1rem; display: inline-block; }
.btn-outline { border: 2px solid rgba(255,255,255,.6); color: white; font-weight: 600; padding: .75rem 2rem; border-radius: 9999px; text-decoration: none; font-size: 1rem; display: inline-block; }
.btn-large { background: white; color: #e63946; font-weight: 900; padding: 1rem 2.5rem; border-radius: 9999px; font-size: 1.1rem; text-decoration: none; display: inline-block; }

.stats-section { background: #e63946; color: white; padding: 2.5rem 1rem; }
.stats-grid { max-width: 1152px; margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; text-align: center; }
.stat-number { font-size: 2.5rem; font-weight: 900; }
.stat-label { opacity: .7; font-size: .875rem; margin-top: .25rem; }

.main-content { max-width: 1152px; margin: 0 auto; padding: 4rem 1rem; }
.section-header { text-align: center; margin-bottom: 2.5rem; }
.section-label { color: #e63946; font-size: .875rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; display: block; margin-bottom: .5rem; }
.section-title { font-size: 2rem; font-weight: 900; margin: 0; }

.description-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: start; }
.description-text { color: #4b5563; line-height: 1.7; }
.description-text p + p { margin-top: .75rem; }
.check-list { list-style: none; padding: 0; margin-top: 1rem; }
.check-list li { display: flex; align-items: center; gap: .5rem; margin-bottom: .5rem; }
.check-list li::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: #e63946; flex-shrink: 0; }

.info-card { background: linear-gradient(135deg, #fff1f2, #eff6ff); border-radius: 1.5rem; padding: 2rem; border: 1px solid #fecdd3; }
.info-card-icon { font-size: 3rem; margin-bottom: .75rem; }
.info-card-title { font-weight: 900; font-size: 1.2rem; margin-bottom: .5rem; }
.info-card-text { color: #4b5563; font-size: .9rem; line-height: 1.7; }
.info-card-link { display: inline-block; margin-top: 1rem; color: #e63946; font-weight: 700; font-size: .9rem; text-decoration: none; }

.sponsors-section { margin-bottom: 4rem; text-align: center; }
.sponsors-grid { display: flex; flex-wrap: wrap; gap: 2rem; justify-content: center; margin-top: 2rem; }
.sponsor-item { background: white; border: 1px solid #f3f4f6; padding: 1.5rem 2rem; border-radius: 1rem; display: flex; align-items: center; justify-content: center; }
.sponsor-item img { max-height: 80px; max-width: 150px; object-fit: contain; }
.sponsor-item span { font-weight: bold; color: #4b5563; }

.quick-nav { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-bottom: 4rem; }
.quick-nav-card { text-decoration: none; color: inherit; display: block; }
.quick-nav-card:hover { box-shadow: 0 10px 25px rgba(0,0,0,.1); }
.quick-nav-icon { font-size: 2rem; margin-bottom: .75rem; }
.quick-nav-title { font-weight: 700; }
.quick-nav-desc { font-size: .8rem; color: #6b7280; margin-top: .25rem; }

.cta-section { border-radius: 1.5rem; padding: 4rem 2rem; text-align: center; color: white; }
.cta-title { font-size: 2.5rem; font-weight: 900; margin-bottom: 1rem; }
.cta-subtitle { opacity: .8; font-size: 1.1rem; margin-bottom: 2rem; }

/* ==========================================
   FORMULAIRES
   ========================================== */
.form-container { max-width: 400px; margin: 4rem auto; background: white; padding: 2rem; border-radius: 1rem; box-shadow: 0 4px 6px rgba(0,0,0,.1); }
.form-group { margin-bottom: 1rem; }
.form-control { width: 100%; padding: .5rem; border: 1px solid #ccc; border-radius: .25rem; }
.btn-submit { width: 100%; background: #e63946; color: white; padding: .75rem; border: none; border-radius: .25rem; font-weight: bold; cursor: pointer; }
.btn-submit-dark { background: #111; }

/* ==========================================
   PAGE: LA COURSE (NOUVEAUX PARCOURS)
   ========================================== */
.lieu-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: center; }
.lieu-map-container { border-radius: 1rem; overflow: hidden; box-shadow: 0 8px 32px rgba(0,0,0,.1); }

.parcours-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.route-card { 
    background: #fff; border: 1px solid #e5e7eb; border-radius: 1.25rem; padding: 2rem; text-align: center; 
    box-shadow: 0 4px 16px rgba(0,0,0,.06); 
    display: flex; flex-direction: column; gap: 1.25rem; min-width: 0; 
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.route-card:hover { transform: translateY(-4px); box-shadow: 0 12px 24px rgba(0,0,0,.08); }
.route-featured { border: 2px solid #e63946; box-shadow: 0 8px 30px rgba(230,57,70,.12); position: relative; }
.route-badge { 
    position: absolute; top: -12px; left: 50%; transform: translateX(-50%); 
    font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; 
    color: white; background: #e63946; padding: 0.25rem 1rem; border-radius: 9999px; 
    box-shadow: 0 4px 10px rgba(230,57,70,.3);
}
.route-header { text-align: center; padding-bottom: 1rem; border-bottom: 1px solid #f3f4f6; }
.route-distance { font-size: 2.5rem; font-weight: 900; color: #e63946; margin: 0; line-height: 1; }
.route-desc { color: #6b7280; font-size: .85rem; margin-top: .5rem; }
.route-stats { display: flex; justify-content: space-between; background: #f9fafb; border-radius: .75rem; padding: 1rem; }
.route-stat { text-align: center; flex: 1; }
.route-stat-label { display: block; font-size: .7rem; color: #9ca3af; text-transform: uppercase; letter-spacing: .05em; margin-bottom: .25rem; }
.route-stat-value { font-size: 1rem; font-weight: 800; color: #111; }
.route-times { display: flex; flex-direction: column; gap: 0; background: #fff5f5; border-radius: .75rem; padding: 0.25rem 0; border: 1px solid #fecdd3; }
.route-time-row { display: flex; justify-content: space-between; align-items: center; padding: 0.6rem 1rem; font-size: .9rem; color: #374151; }
.route-time-row strong { color: #e63946; font-weight: 800; }
.route-time-row:not(:last-child) { border-bottom: 1px dashed #fecdd3; }

/* Catégories */
.categories-list { max-width: 700px; margin: 0 auto; }
.category-row { display: flex; align-items: center; gap: 1rem; background: #f9fafb; border: 1px solid #f3f4f6; border-radius: .75rem; padding: .875rem 1.25rem; margin-bottom: .5rem; transition: box-shadow .2s; }
.category-row:hover { box-shadow: 0 4px 12px rgba(0,0,0,.06); }
.category-icon { width: 40px; height: 40px; object-fit: contain; border-radius: 6px; flex-shrink: 0; }
.category-info { display: flex; justify-content: space-between; align-items: center; flex-grow: 1; gap: 1rem; }
.category-meta { display: flex; align-items: center; gap: 1rem; }
.category-code { font-weight: 800; color: #e63946; font-size: .95rem; }
.category-distance { color: #6b7280; font-size: .85rem; }
.category-depart { color: #e63946; font-weight: 800; font-size: .95rem; }
.category-name { font-weight: 600; color: #111; font-size: .95rem; text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.category-note { text-align: center; margin-top: 1.5rem; font-size: .8rem; color: #9ca3af; }

/* Inscriptions */
.inscription-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.inscription-card { background: #fff; border: 1px solid #e5e7eb; border-radius: 1.25rem; padding: 2rem; box-shadow: 0 4px 16px rgba(0,0,0,.05); display: flex; flex-direction: column; align-items: center; text-align: center; }
.inscription-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: .75rem; color: #e63946; }
.inscription-card p { font-size: .9rem; color: #6b7280; line-height: 1.7; margin-bottom: 1.5rem; }
.icon-big { font-size: 1.8rem; margin-bottom: 1rem; width: 60px; height: 60px; display: flex; align-items: center; justify-content: center; background: #fff5f5; border-radius: 50%; }
.inscription-alert { background: #fff5f5; border-radius: .75rem; padding: .875rem 1rem; font-size: .85rem; color: #374151; width: 100%; text-align: left; margin-top: auto; }

/* ==========================================
   PAGE: REGLEMENT
   ========================================== */
.reglement-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-bottom: 1.5rem; }
.reglement-card { background: #f9fafb; border: 1px solid #f3f4f6; border-radius: 1rem; padding: 1.5rem; }
.reglement-card h3 { font-weight: 900; font-size: 1.1rem; color: #e63946; margin-bottom: .75rem; }
.reglement-card p { color: #4b5563; font-size: .9rem; line-height: 1.7; margin: 0; }

/* ==========================================
   PAGES: PRATIQUES, HISTOIRE, MALADIE, SOUTENIR
   ========================================== */
.pratique-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-bottom: 3rem; }
.pratique-card, .histoire-card, .maladie-card { background: #f9fafb; border: 1px solid #f3f4f6; border-radius: 1rem; padding: 1.5rem; }
.pratique-card h3, .histoire-card h2, .maladie-card h2 { font-weight: 900; margin-bottom: .75rem; }
.pratique-card p, .histoire-card p, .maladie-card p { color: #4b5563; font-size: .9rem; line-height: 1.7; margin: 0; }
.maladie-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.maladie-card h3 { font-weight: 700; color: #e63946; }
.maladie-list { list-style: none; padding: 0; margin-top: 1rem; font-size: .9rem; color: #4b5563; line-height: 2.5; }
.soutenir-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; max-width: 700px; margin: 0 auto; }
.soutenir-card { background: #f9fafb; border: 1px solid #f3f4f6; border-radius: 1rem; padding: 1.5rem; text-align: center; }
.program-row { display: flex; align-items: center; gap: 1rem; background: #f9fafb; border: 1px solid #f3f4f6; border-radius: .75rem; padding: .875rem 1.25rem; margin-bottom: .5rem; }
.program-time { font-weight: 900; color: #e63946; width: 60px; flex-shrink: 0; }
.program-text { font-size: .875rem; color: #374151; }
.inscription-place-box { background: linear-gradient(135deg,#fff1f2,#eff6ff); border-radius: 1.5rem; padding: 2rem; border: 1px solid #fecdd3; text-align: center; max-width: 700px; margin: 3rem auto 0; }
.inscription-place-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1rem; margin-bottom: 1rem; }
.inscription-place-item { background: white; border-radius: 1rem; padding: 1rem; border: 1px solid #f3f4f6; }
.inscription-place-item--highlight { border: 2px solid #e63946; }
.inscription-place-num { font-size: 1.5rem; font-weight: 900; color: #e63946; }
.inscription-place-desc { font-size: .8rem; color: #6b7280; margin-top: .25rem; }

/* ==========================================
   PAGES: ACTUALITES & ARTICLE & PHOTOS
   ========================================== */
.actualite-link { display: flex; gap: 1.25rem; background: #f9fafb; border: 1px solid #f3f4f6; border-radius: 1rem; padding: 1.25rem; text-decoration: none; color: inherit; margin-bottom: .75rem; transition: box-shadow .2s; }
.actualite-link:hover { box-shadow: 0 10px 25px rgba(0,0,0,.1); }
.actualite-date-box { text-align: center; width: 52px; flex-shrink: 0; }
.actualite-day { font-size: 1.5rem; font-weight: 900; color: #e63946; }
.actualite-month { font-size: .7rem; color: #9ca3af; text-transform: uppercase; }
.article-content { background: white; border: 1px solid #f3f4f6; border-radius: 1rem; padding: 2rem; margin-top: 2rem; line-height: 1.8; }
.photos-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: .75rem; }
.photo-item img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: .75rem; transition: transform .2s, box-shadow .2s; display: block; }
.photo-item:hover img { transform: scale(1.04); box-shadow: 0 8px 20px rgba(0,0,0,.15); }
.albums-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; }
.album-card { background: #f9fafb; border: 1px solid #f3f4f6; border-radius: 1rem; overflow: hidden; text-decoration: none; color: inherit; display: block; transition: box-shadow .2s; }
.album-card:hover { box-shadow: 0 15px 30px rgba(0,0,0,.12); }
.album-cover { height: 200px; overflow: hidden; }
.album-cover img { width: 100%; height: 100%; object-fit: cover; }
.album-placeholder { height: 200px; background: linear-gradient(135deg,#fee2e2,#dbeafe); display: flex; align-items: center; justify-content: center; font-size: 3rem; }
.album-info { padding: 1rem 1.25rem; }
.album-title { font-weight: 900; font-size: 1.1rem; }
.album-count { font-size: .875rem; color: #6b7280; margin-top: .25rem; }
.sponsor-banner { background: #fff7f7; border-bottom: 1px solid #fecdd3; padding: 1.5rem 1rem; text-align: center; color: #7f1d1d; font-weight: 600; }
.sponsor-logo-grid { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 2rem; }
.sponsor-logo-item { display: flex; align-items: center; justify-content: center; padding: .75rem 1.25rem; background: white; border: 1px solid #f3f4f6; border-radius: .75rem; box-shadow: 0 1px 4px rgba(0,0,0,.06); }
.sponsor-logo-item img { width: auto; object-fit: contain; }

/* ==========================================
   PAGES: BENEVOLES
   ========================================== */
.benevole-form { background: #f9fafb; border: 1px solid #f3f4f6; border-radius: 1.25rem; padding: 2.5rem; }
.benevole-field { margin-bottom: 1.25rem; }
.benevole-label { display: block; font-size: .9rem; font-weight: 600; margin-bottom: .35rem; color: #374151; }
.benevole-input { width: 100%; padding: .7rem .9rem; border: 1px solid #d1d5db; border-radius: .625rem; font-size: .95rem; color: #111; background: white; outline: none; transition: border-color .15s; }
.benevole-input:focus { border-color: #e63946; }
.creneau-label { display: flex; align-items: flex-start; gap: .6rem; margin-bottom: .5rem; cursor: pointer; font-size: .9rem; color: #4b5563; }
.creneau-title { font-weight: 700; font-size: 1rem; margin-bottom: .75rem; color: #374151; border-bottom: 1px solid #e5e7eb; padding-bottom: .4rem; }

/* ==========================================
   PAGES: SPONSORS PUBLIC
   ========================================== */
.sponsor-separator { border: none; border-top: 1px solid #e5e7eb; margin-bottom: 5rem; }
.sponsors-public-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; justify-items: center; }
.sponsors-grid-lg, .sponsors-grid-md, .sponsors-grid-sm, .sponsors-grid-xs { grid-template-columns: repeat(4, 1fr); }
.sponsor-public-card { background: white; border: 1px solid #f3f4f6; border-radius: 1rem; padding: 1.5rem; width: 100%; height: 130px; display: flex; align-items: center; justify-content: center; transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease; }
.sponsor-public-card:hover { transform: translateY(-6px); box-shadow: 0 12px 30px rgba(0,0,0,.08); border-color: #e5e7eb; }
.sponsor-public-card img { max-width: 100%; max-height: 90px; object-fit: contain; }
.sponsor-public-name { font-weight: 700; color: #374151; font-size: .9rem; text-align: center; }

/* ==========================================
   DARK MODE
   ========================================== */
body.dark-mode { background: #111827; color: #e5e7eb; transition: background 0.3s, color 0.3s; }
body.dark-mode .main-nav { background: rgba(17,24,39,.97); border-bottom-color: #374151; }
body.dark-mode .nav-link { color: #d1d5db; }
body.dark-mode .nav-link:hover { color: #e63946; }
body.dark-mode .card { background: #1f2937; border-color: #374151; }
body.dark-mode .section-title { color: #f3f4f6; }
body.dark-mode .section-label { color: #9ca3af; }
body.dark-mode .description-text, body.dark-mode .description-text strong { color: #d1d5db; }
body.dark-mode .info-card { background: #1e293b; border-color: #374151; }
body.dark-mode .info-card-text { color: #d1d5db; }
body.dark-mode .pratique-card, body.dark-mode .histoire-card, body.dark-mode .maladie-card, body.dark-mode .reglement-card, body.dark-mode .soutenir-card { background: #1f2937; border-color: #374151; }
body.dark-mode .pratique-card p, body.dark-mode .histoire-card p, body.dark-mode .maladie-card p, body.dark-mode .reglement-card p { color: #9ca3af; }
body.dark-mode .program-row, body.dark-mode .check-list li { background: #1f2937; border-color: #374151; color: #e5e7eb; }
body.dark-mode .inscription-place-box { background: #1e293b; border-color: #374151; }
body.dark-mode .inscription-place-item { background: #111827; border-color: #374151; }
body.dark-mode .unified-section { background: #1e293b; border-top-color: #374151; }
body.dark-mode .main-footer { border-top-color: #374151; }
body.dark-mode .footer-link { color: #9ca3af; }
body.dark-mode .actualite-link { background: #1f2937; border-color: #374151; color: #e5e7eb; }
body.dark-mode .album-card { background: #1f2937; border-color: #374151; }
body.dark-mode .sponsor-logo-item { background: #1f2937; border-color: #374151; }
body.dark-mode .sponsor-banner { background: #1c1917; border-bottom-color: #7f1d1d; color: #fca5a5; }
body.dark-mode .btn-nav-inscription { background: #e63946; color: white; }
body.dark-mode #hamburger svg { stroke: #d1d5db; }
body.dark-mode #mobile-menu { background: #111827; border-top-color: #374151; }
body.dark-mode #mobile-menu a { color: #d1d5db; background: #1f2937; }
body.dark-mode #mobile-menu a:hover { background: #374151; color: #e63946; }
body.dark-mode .flash-error { background: #450a0a; border-color: #991b1b; }
body.dark-mode .flash-success { background: #052e16; border-color: #166534; }
body.dark-mode .benevole-form { background: #1f2937; border-color: #374151; }
body.dark-mode .benevole-input { background: #111827; border-color: #374151; color: white; }
body.dark-mode .maladie-list { color: #d1d5db; }
body.dark-mode .inscription-alert { background: #1e293b; border-color: #374151; color: #bfdbfe; }

/* Dark Mode : Parcours */
body.dark-mode .route-card { background: #1f2937; border-color: #374151; }
body.dark-mode .route-featured { border-color: #e63946; box-shadow: 0 8px 30px rgba(230,57,70,.25); }
body.dark-mode .route-header { border-bottom-color: #374151; }
body.dark-mode .route-desc { color: #9ca3af; }
body.dark-mode .route-stats { background: #111827; border: 1px solid #374151; }
body.dark-mode .route-stat-value { color: #f3f4f6; }
body.dark-mode .route-times { background: #1e293b; border-color: #374151; }
body.dark-mode .route-time-row { color: #d1d5db; }
body.dark-mode .route-time-row:not(:last-child) { border-bottom-color: #374151; }

/* Dark Mode : Catégories */
body.dark-mode .category-row { background: #1f2937; border-color: #374151; }
body.dark-mode .category-name { color: #f3f4f6; }
body.dark-mode .category-distance { color: #9ca3af; }

/* Dark Mode : Inscriptions */
body.dark-mode .inscription-card { background: #1f2937; border-color: #374151; }
body.dark-mode .inscription-card h3 { color: #f87171; }
body.dark-mode .inscription-card p { color: #9ca3af; }
body.dark-mode .icon-big { background: #1e293b; border: 1px solid #374151; }

/* Dark Mode : Sponsors Public */
body.dark-mode .sponsor-separator { border-color: #374151; }
body.dark-mode .sponsor-cat-title { color: #f3f4f6; }
/* Les cartes GARDENT leur fond blanc en Dark Mode - pas de background sombre ici */
body.dark-mode .sponsor-public-card:hover { box-shadow: 0 12px 40px rgba(0,0,0,.6); border-color: #d1d5db; }

/* Bouton Dark Mode */
.dark-mode-toggle { background: none; border: 1px solid #e5e7eb; border-radius: 50%; width: 36px; height: 36px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.3s; flex-shrink: 0; padding: 0; }
body.dark-mode .dark-mode-toggle { border-color: #4b5563; background: #1f2937; color: #fbbf24; }

/* ==========================================
   RESPONSIVE
   ========================================== */
@media (max-width: 768px) {
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .description-grid { grid-template-columns: 1fr; }
    .stat-number { white-space: normal; word-break: break-word; }
    .quick-nav { grid-template-columns: repeat(2, 1fr); }
    .quick-nav-title { font-size: 1rem; }
    .quick-nav-desc { max-width: 120px; white-space: normal; overflow: hidden; text-overflow: ellipsis; }
    .hero-title { font-size: 2.5rem; }
    .lieu-grid { grid-template-columns: 1fr; }
    .parcours-grid { grid-template-columns: 1fr; }
    .inscription-grid { grid-template-columns: 1fr; }
    .reglement-grid { grid-template-columns: 1fr; }
    .pratique-grid { grid-template-columns: 1fr; }
    .maladie-grid { grid-template-columns: 1fr; }
    .soutenir-grid { grid-template-columns: 1fr; }
    
    .categories-list { max-width: 100%; }
    .category-info { flex-direction: column; align-items: flex-start; gap: .15rem; }
    .category-name { text-align: left; margin-top: .15rem; }
    
    .sponsors-public-grid, .sponsors-grid-lg, .sponsors-grid-md, .sponsors-grid-sm, .sponsors-grid-xs { grid-template-columns: repeat(2, 1fr); }
    .sponsor-public-card { height: 110px; padding: 1rem; }
    .sponsor-public-card img { max-height: 70px; }
}

/* NAVIGATION MOBILE */
@media (max-width: 900px) {
    #nav-desktop-links { display: none !important; }
    #hamburger { display: flex; align-items: center; justify-content: center; }
    .logo-link { align-items: flex-end; flex-shrink: 1; min-width: 0; }
}