/* =====================================================================
   Lille Impact Sport - version « fond blanc » du site public (validée le 28/11/2026)
   Activée par la classe .theme-clair sur <body> (pages publiques). Chargée après club.css.
   Pour revenir au fond sombre : retirer cette feuille et la classe dans master.blade.php.
   Contenu des pages sur fond blanc ; restent bleu nuit : en-tête, pied de page,
   ouverture de l'accueil, bandeau de titre, tableaux de score, bandeau « Rejoindre ».
   ===================================================================== */

/* ---------- Couleurs des zones claires ---------- */
body.theme-clair {
    --nuit: #ffffff;          /* fond de page */
    --nuit-2: #f3f5f9;        /* sections alternées */
    --surface: #ffffff;       /* cartes */
    --relief: #eef2f8;        /* survol, vignettes */
    --craie: #1b2740;         /* texte */
    --brume: #5b6680;         /* texte secondaire */
    --filet: rgba(12, 26, 61, .1);
    --filet-fort: rgba(12, 26, 61, .2);
    --or: #8f6c00;            /* or foncé : texte et filets lisibles sur blanc */
    --titre: #0a1d57;         /* titres : bleu de l'écusson */
    --or-fond: #fccf1a;       /* or vif : fonds de boutons */
    --chalk: #ffffff;
    --paper: #ffffff;
    --ink: #1b2740;
    --slate: #5b6680;
    --line: rgba(12, 26, 61, .1);
    --line-strong: rgba(12, 26, 61, .2);
    background: #fff;
    color: #1b2740;
}

/* ---------- Zones qui restent bleu nuit : couleurs d'origine ---------- */
.theme-clair :is(.site-header, .main-nav, .site-footer, .hero, .page-hero, .match-hero, .scoreboard, .cta-band, .next-train, .std-club, .auth, .notfound, .motm) {
    --nuit: #040b20;
    --nuit-2: #071232;
    --surface: #0b1633;
    --relief: #13244d;
    --craie: #eef1f8;
    --brume: #a9b4d2;
    --filet: rgba(255, 255, 255, .09);
    --filet-fort: rgba(255, 255, 255, .17);
    --or: #fccf1a;
    --titre: #ffffff;
    --chalk: #040b20;
    --paper: #0b1633;
    --ink: #eef1f8;
    --slate: #a9b4d2;
    --line: rgba(255, 255, 255, .09);
    --line-strong: rgba(255, 255, 255, .17);
    --on-navy: #eef1f8;
    --on-navy-soft: #a9b4d2;
    --on-navy-line: rgba(255, 255, 255, .13);
    color: #eef1f8;
}

/* L'en-tête reste plein (pas de blanc derrière lui) */
.theme-clair .site-header::before {
    background: rgba(4, 11, 32, .96);
}

.theme-clair .page-hero,
.theme-clair .site-footer {
    background-color: #040b20;
}

/* ---------- Titres et textes forcés en blanc dans le thème sombre ---------- */
.theme-clair.site-pro :is(h1, h2, h3, h4),
.theme-clair .site-pro :is(h1, h2, h3, h4) {
    color: var(--titre);
}

.theme-clair :is(.section-title, .statement-title, .story-title, .std-title, .team-name, .plan-rowname,
    .news-card-title a, .person-card-name a, .fixture-day, .fixture-date, .fixture-team.is-club .fixture-name,
    .team-facts dd, .std-table .std-team, .std-table .std-pts, .prose h3, .prose blockquote p,
    .spx h2, .contact-form-card h2, .roster-line-head h2, .week-name, .pillar-pro h3) {
    color: var(--titre);
}

.theme-clair .site-pro .text-link,
.theme-clair.site-pro .text-link {
    color: var(--titre);
    text-decoration-color: #fccf1a;
}

.theme-clair .text-link:hover,
.theme-clair .news-card-title a:hover,
.theme-clair .person-card-name a:hover {
    color: #8f6c00;
}

/* ---------- Boutons et éléments à fond or : or vif ---------- */
.theme-clair :is(.btn-gold, .btn-navy, .btn-primary, .filter-tab.active, .filter-tab[aria-current="page"],
    .pager-btn.is-current, .line-nav span, .join-n, .value > i, .plan-chip[aria-pressed="true"], .tag-gold, .lu-num) {
    background: var(--or-fond);
    border-color: var(--or-fond);
    color: #0a1d57;
}

.theme-clair :is(.btn-outline, .btn-ghost-light, .rail-btn) {
    border-color: rgba(12, 26, 61, .3);
    color: #0a1d57;
}

.theme-clair :is(.btn-outline, .btn-ghost-light, .rail-btn):hover {
    background: #0a1d57;
    border-color: #0a1d57;
    color: #fff;
}

/* Dans les zones sombres, le bouton fantôme reste blanc */
.theme-clair :is(.hero, .page-hero, .cta-band) .btn-ghost-light {
    border-color: rgba(255, 255, 255, .35);
    color: #fff;
}

/* ---------- Cartes : blanches, bord fin, ombre légère ---------- */
.theme-clair :is(.news-card, .person-card, .team, .fixture, .contact-form-card, .value, .plan, .std-filters, .hero-card) {
    box-shadow: 0 1px 2px rgba(12, 26, 61, .05), 0 8px 24px rgba(12, 26, 61, .06);
}

.theme-clair .news-mosaic {
    background: transparent;
    border: 0;
    gap: 24px;
}

.theme-clair .news-card,
.theme-clair .section.is-white .news-card {
    border: 1px solid var(--filet);
}

.theme-clair .news-card:hover {
    background: #fff;
    box-shadow: 0 2px 4px rgba(12, 26, 61, .06), 0 16px 36px rgba(12, 26, 61, .12);
}

/* La « une » garde son titre blanc sur la photo */
.theme-clair .news-mosaic .news-card.is-feature .news-card-title a {
    color: #fff;
}

.theme-clair .news-mosaic .news-card.is-feature .news-card-meta,
.theme-clair .news-mosaic .news-card.is-feature .news-card-text {
    color: rgba(255, 255, 255, .85);
}

.theme-clair .fixture {
    border: 1px solid var(--filet);
    border-left-width: 4px;
}

.theme-clair .fixture-list {
    gap: 8px;
}

.theme-clair .fixture-score b {
    background: #0a1d57;
    color: #fccf1a;
}

.theme-clair .fixture-time {
    background: #fff6d1;
    color: #6b5100;
}

.theme-clair .result-badge.is-upcoming {
    background: #fff6d1;
    color: #6b5100;
}

/* Joueurs : photo sur fond bleu (vignette sombre gardée) */
.theme-clair .person-card-photo {
    background: linear-gradient(180deg, #0a1d57, #071232);
}

.theme-clair .person-card-number {
    -webkit-text-stroke-color: #fccf1a;
}

/* ---------- Formulaires ---------- */
.theme-clair .field input,
.theme-clair .field textarea,
.theme-clair .field select,
.theme-clair .form-control,
.theme-clair .std-field select,
.theme-clair .join-auto {
    background-color: #fff;
    border-color: rgba(12, 26, 61, .22);
    color: #1b2740;
}

.theme-clair .std-field select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%230a1d57' stroke-width='2'/%3E%3C/svg%3E");
}

.theme-clair .field select option,
.theme-clair .std-field select option {
    background: #fff;
    color: #1b2740;
}

.theme-clair input[type="date"] {
    color-scheme: light;
}

.theme-clair .field input:focus,
.theme-clair .field textarea:focus,
.theme-clair .field select:focus,
.theme-clair .std-field select:focus {
    border-color: #0a1d57;
    box-shadow: 0 0 0 3px rgba(252, 207, 26, .45);
}

/* ---------- Classements ---------- */
.theme-clair .std-filters {
    background: #f3f5f9;
    box-shadow: none;
}

.theme-clair .std-table thead th,
.theme-clair .std-table thead .std-team,
.theme-clair .std-table thead .std-pts {
    background: #0a1d57;
    color: rgba(255, 255, 255, .85) !important;
}

/* Ligne du club : fond or pâle, filet or vif, texte bleu */
.theme-clair .std-table tbody tr.is-club {
    background: #fff6d1;
    box-shadow: inset 4px 0 0 #fccf1a;
}

.theme-clair .std-table tr.is-club .std-rank,
.theme-clair .std-table tr.is-club .std-pts,
.theme-clair .std-table tr.is-club .std-team {
    color: #0a1d57;
}

.theme-clair .std-table tr.is-club .std-team {
    font-weight: 800;
}

/* ---------- Club : chiffres sur fond clair ---------- */
.theme-clair .figures-band {
    background: #f3f5f9;
}

.theme-clair .figures dd {
    color: #0a1d57;
}

/* ---------- Planning ---------- */
.theme-clair .plan {
    background: #fff;
}

.theme-clair .plan-block {
    background: color-mix(in srgb, var(--tint, #fccf1a) 22%, #fff);
}

.theme-clair .plan-block b {
    color: #0a1d57;
}

.theme-clair .plan-block span {
    color: #1b2740;
}

.theme-clair .plan-dayitem.is-on > a {
    background: #0a1d57;
    border-color: #0a1d57;
    color: #fff;
}

.theme-clair .plan-dayitem.is-on .plan-daycount {
    color: #fccf1a;
}

.theme-clair .plan-chip {
    color: #1b2740;
}

/* ---------- Partenaires ---------- */
.theme-clair .spx-item img {
    filter: grayscale(1);
    opacity: .75;
}

/* Bandeau de cookies : clair */
.theme-clair .cookie-banner {
    background: #fff;
    color: #1b2740;
}

/* =====================================================================
   Pages détaillées : fiche match, article, contact, connexion
   ===================================================================== */

/* Onglets de la fiche match */
.theme-clair .tabs [role="tab"] {
    color: #5b6680;
}

.theme-clair .tabs [role="tab"]:hover,
.theme-clair .tabs [role="tab"][aria-selected="true"] {
    color: #0a1d57;
}

.theme-clair .tabs [role="tab"][aria-selected="true"] {
    border-color: #fccf1a;
}

/* Boutons « Partager » */
.theme-clair .share-links a {
    background: #0a1d57;
    color: #fff;
}

.theme-clair .share-links a:hover {
    background: #fccf1a;
    color: #0a1d57;
}

/* Texte des articles (éditeur de l'administration) : gras et intertitres en bleu */
.theme-clair .prose :is(h1, h2, h3, h4, h5, h6, strong, b) {
    color: #0a1d57 !important;
}

.theme-clair .prose a,
.theme-clair .prose a * {
    color: #0a1d57 !important;
    text-decoration-color: #fccf1a;
}

.theme-clair .article-keypoints {
    background: #f3f5f9;
    border-left: 4px solid #fccf1a;
}

.theme-clair .article-keypoints h2 {
    color: #0a1d57;
}

/* Contact : icônes des réseaux et carte en couleurs normales */
.theme-clair .socials.is-light a {
    color: #0a1d57;
    border-color: rgba(12, 26, 61, .25);
}

.theme-clair .socials.is-light a:hover {
    background: #0a1d57;
    border-color: #0a1d57;
    color: #fff;
}

.theme-clair .map-frame iframe {
    filter: none;
}

/* Connexion : champs sombres dans la carte bleu nuit */
.theme-clair .auth .field input,
.theme-clair .auth .field select {
    background-color: #040b20;
    border-color: rgba(255, 255, 255, .2);
    color: #fff;
}

.theme-clair .auth .field input:focus {
    border-color: #fccf1a;
}
