/* public/v2/assets/skin.css · habillage « nuit » des pages historiques (connexion, inscription, légal…) : activé par $v2_skin = true
   avant l'include de _header.php. Même HTML, même logique : on ne redéfinit que les variables de styles.css (--paper, --ink, --card…),
   la police des titres (Sora) et le rayon (6 px) ; la planète et les étoiles viennent de voyage.css / _inner.php. */

html.night {
  --paper: #0A0A0A; --ink: #F7F5F2; --card: #121212; --muted: rgb(247 245 242 / .74); --paper-rgb: 10 10 10;
  --teal: #19B4B4; --star: #61E6FF; --ring: #9AE8FF;
  --border-light: rgb(247 245 242 / .22); --bg-subtle: #151515; --shadow-color: 0,0,0;
  --soft: rgb(247 245 242 / .06); --bd: rgb(247 245 242 / .2);   /* jetons des pages soutien scolaire (school/register…) */
  color-scheme: dark;
}
html.night body { background: #0A0A0A; color: #F7F5F2; }

/* le contenu se pose sur le ciel : les grandes zones n'ont plus de fond plein, la planète reste visible derrière */
html.night body > main, html.night .au-stage, html.night .section { background: transparent; }
html.night .au-stage::before, html.night .au-stage::after { display: none; }

/* titres : même voix que l'accueil */
html.night :is(h1, h2, h3, .au-title, .section-title) { font-family: "Sora", "Poppins", system-ui, sans-serif; letter-spacing: -.01em; color: #F7F5F2; }

/* en-tête historique en nuit */
html.night .site-header { background: rgb(10 10 10 / .94); border-bottom: 1px solid rgb(247 245 242 / .22); box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
html.night .site-header, html.night .site-header a { color: #F7F5F2; }
html.night .brand-logo { background: #F7F5F2; border-radius: 8px; padding: 2px 4px; }
html.night .site-header .menu-wrap .nav-pop { background: #121212; border: 1px solid rgb(247 245 242 / .22); }

/* cartes et champs : rayon 6 px, filets clairs */
html.night :is(.au-card, .card, .panel) { background: rgb(18 18 18 / .9); border: 1px solid rgb(247 245 242 / .22); border-radius: 6px; box-shadow: none; }
html.night :is(input, select, textarea) { background: #0A0A0A; color: #F7F5F2; border-color: rgb(247 245 242 / .5); border-radius: 6px; }
html.night :is(input, textarea)::placeholder { color: rgb(247 245 242 / .5); }
html.night :is(.btn, button, .au-btn, .btn-primary) { border-radius: 6px; }
html.night a { color: #4FD8D8; }
html.night :focus-visible { outline: 3px solid #61E6FF; outline-offset: 3px; }

/* le thème est imposé : plus de bascule clair/sombre ; sélecteur de langue et logo de carte lisibles sur la nuit */
html.night .theme-toggle { display: none; }
html.night .lang-btn { background: #121212; color: #F7F5F2; border-color: rgb(247 245 242 / .4); border-radius: 6px; }
html.night .lang-menu { background: #121212; border: 1px solid rgb(247 245 242 / .22); }
html.night .lang-menu a, html.night .lang-menu button { color: #F7F5F2; }
html.night .au-logo { background: #F7F5F2; border-radius: 8px; padding: 4px 8px; height: 54px; }
html.night .btn-soft, html.night .btn-outline { background: transparent; color: #F7F5F2; border: 1px solid rgb(247 245 242 / .5); border-radius: 6px; }

/* pages légales (legal, privacy, cookies, conditions) : leurs encadrés ont des fonds pastel codés en dur ; on les remet à la nuit */
html.night :is(.legal-address, .legal-highlight, .legal-info-box, .legal-warning-box, .legal-toc, .cgv-card, .contact-card) {
  background: rgb(247 245 242 / .06); color: #F7F5F2; border: 1px solid rgb(247 245 242 / .22); border-radius: 6px; box-shadow: none;
}
html.night :is(.legal-page, .legal-address, .legal-highlight, .legal-info-box, .legal-warning-box, .legal-toc, .cgv-card, .contact-card) :is(h2, h3, h4, strong, p, li, span, address, td, th) { color: #F7F5F2; }
html.night .legal-page p, html.night .legal-page li { color: rgb(247 245 242 / .88); }
html.night .legal-updated { color: rgb(247 245 242 / .7); }
html.night .legal-page a { color: #4FD8D8; }
html.night .legal-page table, html.night .legal-page td, html.night .legal-page th { background: transparent; color: #F7F5F2; border-color: rgb(247 245 242 / .22); }
html.night .nav-toggle { background: #121212; color: #F7F5F2; border: 1px solid rgb(247 245 242 / .4); border-radius: 6px; }
html.night .nav-toggle svg, html.night .nav-toggle span { color: #F7F5F2; stroke: currentColor; }

/* lien actif du menu, texte secondaire et pied de page en nuit */
html.night .nav-link { color: #F7F5F2; }
html.night .nav-link:hover, html.night .nav-link[aria-current="page"] { background: rgb(247 245 242 / .12); color: #F7F5F2; }
html.night :is(.muted, .small, small, .help, .hint) { color: rgb(247 245 242 / .78); }
html.night .site-footer { background: #0A0A0A; color: #F7F5F2; border-top: 1px solid rgb(247 245 242 / .22); }
html.night .site-footer :is(a, p, li, span, h3, h4, .footer-title, .footer-copy, address) { color: rgb(247 245 242 / .86); }
html.night .site-footer a:hover { color: #4FD8D8; }
html.night .site-footer img.footer-logo { background: #F7F5F2; border-radius: 8px; padding: 2px 4px; width: auto; }
html.night .site-footer { --ftr-bg: #0A0A0A; --ftr-bg-alt: #121212; --ftr-text: #F7F5F2; --ftr-text-muted: rgb(247 245 242 / .78); --ftr-accent: #4FD8D8; }
html.night .legal-nav a { background: rgb(247 245 242 / .06); color: #4FD8D8; border: 1px solid rgb(247 245 242 / .3); border-radius: 6px; }
html.night .legal-nav a:hover { background: #19B4B4; color: #0A0A0A; }
html.night .site-footer .footer-logo img { background: #F7F5F2; border-radius: 8px; padding: 2px 4px; }

/* page 404 : ses styles en ligne (gris bleuté, bouton cyan) sont repris dans la palette */
html.night .section p[style] { color: rgb(247 245 242 / .82) !important; }
html.night .section h1[style*="opacity:.2"] { color: #F7F5F2; opacity: .25 !important; }   /* le grand « 404 » estompé, et lui seul */
html.night .section a.btn.btn-soft[style] { background: #19B4B4 !important; color: #0A0A0A !important; border-radius: 6px !important; }
html.night .legal-page .icon:empty, html.night .legal-page .section-icon:empty { display: none; }

/* page cookies : tableaux, pastilles de code, cartes tierces, navigateurs, bouton de préférences */
html.night .cookie-table, html.night .cookie-table th, html.night .cookie-table td { background: transparent; color: #F7F5F2; border-color: rgb(247 245 242 / .22); }
html.night .cookie-table th { background: rgb(247 245 242 / .06); }
html.night .cookie-table tr:nth-child(even), html.night .cookie-table tr:nth-child(even) td { background: rgb(247 245 242 / .04); color: #F7F5F2; }
html.night .cookie-table code, html.night .legal-page code { background: rgb(25 180 180 / .16); color: #61E6FF; border: 1px solid rgb(97 230 255 / .3); }
html.night .cookie-table em { color: rgb(247 245 242 / .7); }
html.night .cookie-table tr:last-child td { border-radius: 0; }
html.night .third-party-card { background: rgb(247 245 242 / .05); border: 1px solid rgb(247 245 242 / .22); border-radius: 6px; }
html.night .third-party-card h4 { color: #F7F5F2; }
html.night .third-party-card p { color: rgb(247 245 242 / .82); }
html.night .third-party-card a, html.night .browser-list a { color: #4FD8D8; }
html.night .browser-list, html.night .browser-list li { color: rgb(247 245 242 / .88); }
html.night .btn-cookie-settings { background: #19B4B4; color: #0A0A0A; border: 0; border-radius: 6px; font-weight: 700; }
html.night .btn-cookie-settings:hover { background: #61E6FF; }
html.night .browser-list a { background: rgb(247 245 242 / .08); border: 1px solid rgb(247 245 242 / .3); border-radius: 6px; color: #4FD8D8; }
html.night .browser-list a:hover { background: #19B4B4; color: #0A0A0A; }
html.night .legal-page table, html.night .legal-page tr, html.night .legal-page th, html.night .legal-page td { background: transparent !important; color: #F7F5F2 !important; border-color: rgb(247 245 242 / .22); }
html.night .legal-page tr:nth-child(even), html.night .legal-page tr:nth-child(even) td { background: rgb(247 245 242 / .04) !important; }
html.night .legal-page th { background: rgb(247 245 242 / .06) !important; }
html.night .legal-page .refund-table, html.night .legal-page .refund-table tr, html.night .legal-page .refund-table td { background: transparent !important; color: #F7F5F2 !important; border-color: rgb(247 245 242 / .22) !important; }
html.night .legal-page .refund-table tr:nth-child(even), html.night .legal-page .refund-table tr:nth-child(even) td { background: rgb(247 245 242 / .05) !important; }
html.night .legal-page .refund-table tr:hover, html.night .legal-page .refund-table tr:hover td { background: rgb(25 180 180 / .14) !important; }
html.night .legal-page .refund-table th { background: #0B6E6E !important; color: #F7F5F2 !important; border-color: rgb(247 245 242 / .22) !important; }
html.night .legal-page .refund-table em, html.night .legal-page .refund-table small { color: rgb(247 245 242 / .75) !important; }

/* navigation de fin de page légale : un rang de boutons centré, sans cadre autour (le cadre venait de la règle des cartes) */
html.night .legal-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 2.5rem; padding: 1.5rem 0 0; background: none; border: 0; border-top: 1px solid rgb(247 245 242 / .3); border-radius: 0; }
html.night .legal-nav a { padding: 10px 18px; text-decoration: none; }

/* titres en dégradé de l'ancien site (texte transparent) : en nuit, texte plein et lisible */
html.night :is(h1, h2, h3, .section-title, .serif) { -webkit-text-fill-color: currentColor; background-image: none; }
/* inscription au soutien scolaire : pastilles de dates, bloc enfant, bouton retirer */
html.night .datepill { color: #F7F5F2; background: rgb(247 245 242 / .06); }
html.night .child-box { background: rgb(247 245 242 / .04); }
html.night .child-box :is(h4, label, span) { color: #F7F5F2; }
html.night .child-box .remove { background: transparent; color: #F7F5F2; border: 1px solid rgb(247 245 242 / .4); box-shadow: none; }
