/* Palettes et éléments communs repris tels quels du portail (portail/index.html) — ne pas modifier ici sans les reporter */
/* ── Palettes : chaque style existe en clair et en sombre (Auto suit le thème de l'appareil) ── */
:root[data-style="lanceur"] { --fond: #fbf7f4; --surface: rgba(255,255,255,.72); --surface2: #ffffff; --texte: #221d1a; --doux: #6f645d; --trait: rgba(151,54,31,.16); --accent: #97361f; --accent2: #c8552f; --logo: #97361f; --ok: #1f9a55; --ko: #cf3a2f; --gris1: #a99d96; --gris2: #857a74; --halo1: rgba(200,85,47,.22); --halo2: rgba(151,54,31,.16); --ombre: rgba(120,40,20,.75); --bandeau: #97361f; color-scheme: light; }
@media (prefers-color-scheme: dark) { :root[data-style="lanceur"]:not([data-theme="clair"]) { --fond: #15110f; --surface: rgba(40,32,28,.72); --surface2: #241d1a; --texte: #f4ece6; --doux: #b3a69d; --trait: rgba(224,118,79,.22); --accent: #b9482a; --accent2: #e0764f; --logo: #e0764f; --ok: #4cc77d; --ko: #ff6b61; --gris1: #6e6560; --gris2: #554d48; --halo1: rgba(224,118,79,.20); --halo2: rgba(151,54,31,.22); --ombre: rgba(0,0,0,.8); --bandeau: #7a2a17; color-scheme: dark; } }
:root[data-style="lanceur"][data-theme="sombre"] { --fond: #15110f; --surface: rgba(40,32,28,.72); --surface2: #241d1a; --texte: #f4ece6; --doux: #b3a69d; --trait: rgba(224,118,79,.22); --accent: #b9482a; --accent2: #e0764f; --logo: #e0764f; --ok: #4cc77d; --ko: #ff6b61; --gris1: #6e6560; --gris2: #554d48; --halo1: rgba(224,118,79,.20); --halo2: rgba(151,54,31,.22); --ombre: rgba(0,0,0,.8); --bandeau: #7a2a17; color-scheme: dark; }
:root[data-style="atelier"] { --fond: #f6f1ea; --surface: #fffdf9; --surface2: #fffdf9; --texte: #1d1a17; --doux: #6f675f; --trait: #e3d9cc; --accent: #97361f; --accent2: #97361f; --logo: #97361f; --ok: #2e7d4f; --ko: #b3261e; --gris1: #b8aea4; --gris2: #9a9087; --halo1: rgba(151,54,31,.18); --halo2: transparent; --ombre: rgba(60,30,10,.35); --bandeau: #97361f; color-scheme: light; }
@media (prefers-color-scheme: dark) { :root[data-style="atelier"]:not([data-theme="clair"]) { --fond: #171412; --surface: #1f1b18; --surface2: #26211d; --texte: #f2ebe2; --doux: #a89d91; --trait: #37302a; --accent: #e0764f; --accent2: #e0764f; --logo: #e0764f; --ok: #5cc98a; --ko: #ff7a70; --gris1: #5d554e; --gris2: #4a433d; --halo1: rgba(224,118,79,.25); --halo2: transparent; --ombre: rgba(0,0,0,.7); --bandeau: #7a2a17; color-scheme: dark; } }
:root[data-style="atelier"][data-theme="sombre"] { --fond: #171412; --surface: #1f1b18; --surface2: #26211d; --texte: #f2ebe2; --doux: #a89d91; --trait: #37302a; --accent: #e0764f; --accent2: #e0764f; --logo: #e0764f; --ok: #5cc98a; --ko: #ff7a70; --gris1: #5d554e; --gris2: #4a433d; --halo1: rgba(224,118,79,.25); --halo2: transparent; --ombre: rgba(0,0,0,.7); --bandeau: #7a2a17; color-scheme: dark; }
:root[data-style="console"] { --fond: #eef0f2; --surface: #ffffff; --surface2: #ffffff; --texte: #16191c; --doux: #5f6870; --trait: #d9dde1; --accent: #b4441f; --accent2: #b4441f; --logo: #b4441f; --ok: #1f9d55; --ko: #d0342c; --gris1: #9aa3ab; --gris2: #7c858d; --halo1: rgba(180,68,31,.25); --halo2: transparent; --ombre: rgba(20,30,40,.25); --bandeau: #ffffff; color-scheme: light; }
@media (prefers-color-scheme: dark) { :root[data-style="console"]:not([data-theme="clair"]) { --fond: #101214; --surface: #171a1d; --surface2: #1d2125; --texte: #e8ecef; --doux: #8b949c; --trait: #2a2f34; --accent: #e0643c; --accent2: #e0643c; --logo: #e0643c; --ok: #3ddc84; --ko: #ff5c5c; --gris1: #4a5157; --gris2: #3a4046; --halo1: rgba(224,100,60,.35); --halo2: transparent; --ombre: rgba(0,0,0,.6); --bandeau: #101214; color-scheme: dark; } }
:root[data-style="console"][data-theme="sombre"] { --fond: #101214; --surface: #171a1d; --surface2: #1d2125; --texte: #e8ecef; --doux: #8b949c; --trait: #2a2f34; --accent: #e0643c; --accent2: #e0643c; --logo: #e0643c; --ok: #3ddc84; --ko: #ff5c5c; --gris1: #4a5157; --gris2: #3a4046; --halo1: rgba(224,100,60,.35); --halo2: transparent; --ombre: rgba(0,0,0,.6); --bandeau: #101214; color-scheme: dark; }
:root[data-style="affiche"] { --fond: #f2f4f5; --surface: #ffffff; --surface2: #ffffff; --texte: #1f2326; --doux: #5d666d; --trait: #dfe3e6; --accent: #97361f; --accent2: #97361f; --logo: #ffffff; --ok: #1f8a4c; --ko: #c62828; --gris1: #a7aeb3; --gris2: #8a9196; --halo1: rgba(151,54,31,.3); --halo2: #7a2a17; --ombre: rgba(60,20,10,.45); --bandeau: #97361f; color-scheme: light; }
@media (prefers-color-scheme: dark) { :root[data-style="affiche"]:not([data-theme="clair"]) { --fond: #16191b; --surface: #22272a; --surface2: #2a3034; --texte: #eef1f3; --doux: #a3acb3; --trait: #33393d; --accent: #e7764f; --accent2: #e7764f; --logo: #ffffff; --ok: #4cc77d; --ko: #ff6b6b; --gris1: #565d62; --gris2: #454b50; --halo1: rgba(231,118,79,.35); --halo2: #5e200f; --ombre: rgba(0,0,0,.7); --bandeau: #7a2a17; color-scheme: dark; } }
:root[data-style="affiche"][data-theme="sombre"] { --fond: #16191b; --surface: #22272a; --surface2: #2a3034; --texte: #eef1f3; --doux: #a3acb3; --trait: #33393d; --accent: #e7764f; --accent2: #e7764f; --logo: #ffffff; --ok: #4cc77d; --ko: #ff6b6b; --gris1: #565d62; --gris2: #454b50; --halo1: rgba(231,118,79,.35); --halo2: #5e200f; --ombre: rgba(0,0,0,.7); --bandeau: #7a2a17; color-scheme: dark; }

/* ── Commun à tous les styles ── */
* { box-sizing: border-box; }
html { background: var(--fond); }
body { margin: 0; min-height: 100vh; color: var(--texte); background: var(--fond); font: 17px/1.5 Quicksand, system-ui, sans-serif; transition: background-color .25s; }
p, h1, h2 { margin: 0; }
.renard { background: var(--logo); aspect-ratio: 512 / 401;
  -webkit-mask: url(logo-renard.png) center / contain no-repeat; mask: url(logo-renard.png) center / contain no-repeat; }
.panneau { color: inherit; text-decoration: none; position: relative; }
.panneau[hidden], .pied[hidden], .vide[hidden] { display: none !important; }
.icone svg { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.recherche { display: block; position: relative; }
.recherche input { width: 100%; font: inherit; color: var(--texte); }
.recherche input::placeholder { color: var(--doux); }
.recherche svg { position: absolute; z-index: 1; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; fill: none; stroke: var(--doux); stroke-width: 2.4; stroke-linecap: round; pointer-events: none; }
.statut { color: var(--doux); } .statut.ok { color: var(--ok); } .statut.ko { color: var(--ko); }
.ms, .resume, .sous, .adresse { display: none; }
.vide, .erreur { width: 100%; color: var(--doux); }
.erreur { color: var(--ko); }
.pied .liens { display: flex; flex-wrap: wrap; gap: 8px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; } }
/* ------------------------------------------------------------------ le renard en filigrane (10/11/2026)
   Le renard de la maison, discret, en bas à droite de toutes les pages, à la couleur d'accent du style.
   Il passe derrière le contenu (jamais devant un texte) et disparaît à l'impression. */
body { isolation: isolate; }
body::after { content: ""; position: fixed; right: -5vmin; bottom: -14vmin; width: 62vmin; height: 62vmin; z-index: -1; pointer-events: none;
  background: var(--accent); opacity: .075;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='660 -130 1000 1000'%3E%3Cpath fill-rule='evenodd' d='M818 20 Q818 2 840 5 C920 35 980 110 987 197 L1287 197 C1300 110 1360 35 1435 5 Q1457 2 1457 20 L1457 368 L1567 368 L1567 411 L1457 411 L1457 432 L1515 432 L1515 475 L1457 475 L1457 485 Q1457 503 1437 503 L1340 503 C1250 503 1180 570 1167 655 L1163 672 Q1161 681 1150 681 L1120 681 Q1110 681 1108 672 L1105 655 C1090 570 1020 503 930 503 L838 503 Q818 503 818 485 L818 475 L754 475 L754 432 L818 432 L818 411 L702 411 L702 368 L818 368 Z M857 55 C910 80 945 140 947 206 L857 206 Z M1417 55 C1365 80 1329 140 1327 206 L1417 206 Z M857 245 L935 245 C1030 245 1100 320 1108 400 L1110 422 L1165 422 L1167 400 C1175 320 1245 245 1340 245 L1418 245 L1418 465 L1340 465 C1250 465 1170 520 1138 612 C1105 520 1030 465 935 465 L857 465 Z M999 385 L1025 385 Q1043 385 1043 403 L1043 428 L1018 428 Q999 428 999 410 Z M1275 390 L1275 416 Q1275 434 1257 434 L1231 434 L1231 416 Q1231 390 1250 390 Z'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='660 -130 1000 1000'%3E%3Cpath fill-rule='evenodd' d='M818 20 Q818 2 840 5 C920 35 980 110 987 197 L1287 197 C1300 110 1360 35 1435 5 Q1457 2 1457 20 L1457 368 L1567 368 L1567 411 L1457 411 L1457 432 L1515 432 L1515 475 L1457 475 L1457 485 Q1457 503 1437 503 L1340 503 C1250 503 1180 570 1167 655 L1163 672 Q1161 681 1150 681 L1120 681 Q1110 681 1108 672 L1105 655 C1090 570 1020 503 930 503 L838 503 Q818 503 818 485 L818 475 L754 475 L754 432 L818 432 L818 411 L702 411 L702 368 L818 368 Z M857 55 C910 80 945 140 947 206 L857 206 Z M1417 55 C1365 80 1329 140 1327 206 L1417 206 Z M857 245 L935 245 C1030 245 1100 320 1108 400 L1110 422 L1165 422 L1167 400 C1175 320 1245 245 1340 245 L1418 245 L1418 465 L1340 465 C1250 465 1170 520 1138 612 C1105 520 1030 465 935 465 L857 465 Z M999 385 L1025 385 Q1043 385 1043 403 L1043 428 L1018 428 Q999 428 999 410 Z M1275 390 L1275 416 Q1275 434 1257 434 L1231 434 L1231 416 Q1231 390 1250 390 Z'/%3E%3C/svg%3E") center / contain no-repeat; }
@media print { body::after { content: none; } }
