/* Handi'Arcade - feuille de style */
:root {
  --paper: #FBF7F2;
  --white: #FFFFFF;
  --ink: #231046;
  --ink-soft: #5B4A7E;
  --blue: #4B2196;
  --blue-deep: #231046;
  --blue-line: #DCCDEE;
  --red: #F2154B;
  --yellow: #FEA110;
  --green: #17B171;
  --cyan: #30B3C6;
  --pink: #E9488F;
  --wrap: 1120px;
  --display: "Archivo", "Arial Black", system-ui, sans-serif;
  --text: "Atkinson Hyperlegible", "Verdana", system-ui, sans-serif;
  --base: 1.125rem;
}
html.big { --base: 1.35rem; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--text);
  font-size: var(--base);
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-underline-offset: 0.18em; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; border-radius: 4px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skips { position: absolute; left: 0; top: 0; z-index: 90; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--yellow); color: #231046 !important; padding: 10px 16px; font-weight: 700; border-radius: 10px; white-space: nowrap; }
.skip:focus { left: 8px; outline: 4px solid #231046; }

h1, h2, h3 { font-family: var(--display); color: inherit; margin: 0; }
h2 {
  font-size: clamp(2rem, 4.2vw, 3rem);
  font-weight: 800;
  font-variation-settings: "wdth" 112;
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin-bottom: 1.4rem;
}
h3 { font-size: 1.3rem; font-weight: 750; font-variation-settings: "wdth" 100; line-height: 1.2; margin-bottom: 0.5rem; }
p { margin: 0 0 1rem; max-width: 66ch; }
.lead { font-size: 1.2em; line-height: 1.5; }

/* ---------- boutons ---------- */
.btn {
  display: inline-block;
  font-family: var(--display);
  font-weight: 700;
  font-variation-settings: "wdth" 105;
  font-size: 1.05rem;
  text-decoration: none;
  padding: 0.85em 1.4em;
  border-radius: 999px;
  border: 2px solid transparent;
  line-height: 1.2;
}
.btn-main { background: var(--yellow); color: var(--ink); border-color: var(--yellow); }
.btn-main:hover { background: #FFB940; }
.btn-ghost { color: inherit; border-color: currentColor; }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.12); }

/* ---------- en-tete ---------- */
.top { background: var(--blue-deep); color: var(--white); position: sticky; top: 0; z-index: 20; }
.top-in { display: flex; align-items: center; justify-content: space-between; min-height: 68px; gap: 16px; }
.logo { display: flex; align-items: center; gap: 10px; color: var(--white); text-decoration: none; font-family: var(--display); font-weight: 800; font-size: 1.3rem; font-variation-settings: "wdth" 118; }
.logo svg { width: 34px; height: 34px; }
.logo img { width: 46px; height: 46px; border-radius: 11px; box-shadow: 0 0 0 2px rgba(254,161,16,.85); }
.logo-ring { fill: #5A33A3; }
.logo-btn { fill: var(--red); }
nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.top-tools { display: flex; align-items: center; gap: 8px; }
.a11y-open { display: flex; align-items: center; gap: 8px; background: var(--white); color: var(--blue-deep); border: 0; border-radius: 999px; padding: 7px 14px 7px 10px; font: 700 0.95rem var(--display); cursor: pointer; }
.a11y-open svg { width: 22px; height: 22px; fill: currentColor; }
.a11y-open:hover { background: var(--yellow); }
nav a { color: var(--white); text-decoration: none; padding: 8px 12px; border-radius: 999px; font-size: 1rem; }
nav a:hover { background: rgba(255, 255, 255, 0.12); }
.menu-btn { display: none; }

/* ---------- accueil ---------- */
.hero { background: radial-gradient(900px 600px at 85% 0%, #6A33B8 0%, rgba(106,51,184,0) 60%), radial-gradient(700px 500px at 0% 100%, #2C1458 0%, rgba(44,20,88,0) 60%), var(--blue); color: var(--white); padding: 72px 0 88px; overflow: hidden; }
.hero-in { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
h1 {
  font-size: clamp(3rem, 7.4vw, 6rem);
  font-weight: 880;
  font-variation-settings: "wdth" 122;
  line-height: 0.94;
  letter-spacing: -0.02em;
  margin-bottom: 1.6rem;
}
.hero .lead { color: #EDE3FA; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.8rem; }

/* le pupitre de boutons d'arcade : l'element memorable */
.pad { background: var(--blue-deep); border-radius: 28px; padding: 28px 28px 24px; box-shadow: inset 0 0 0 2px #5A33A3; }
.pad-q { font-family: var(--display); font-weight: 700; font-size: 1.15rem; margin: 0 0 18px; color: #EDE3FA; }
.pad-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px 12px; }
.arc { background: none; border: 0; padding: 0; cursor: pointer; color: var(--white); display: flex; flex-direction: column; align-items: center; gap: 10px; font: inherit; }
.arc .cap {
  --c: var(--red);
  width: clamp(64px, 9vw, 92px); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 38% 32%, rgba(255, 255, 255, 0.45) 0 14%, transparent 15%), var(--c);
  box-shadow: 0 0 0 7px #150A30, 0 0 0 9px #6A42B0, 0 9px 0 7px #10072A;
  transform: translateY(-4px);
  transition: transform 90ms ease, box-shadow 90ms ease, filter 120ms ease;
  filter: saturate(0.75) brightness(0.9);
}
.arc .lbl { font-size: 1rem; line-height: 1.2; text-align: center; color: #D7C8EE; }
.arc[aria-pressed="true"] .cap {
  transform: translateY(3px);
  box-shadow: 0 0 0 7px #150A30, 0 0 0 9px #6A42B0, 0 2px 0 7px #10072A, 0 0 34px 6px color-mix(in srgb, var(--c) 55%, transparent);
  filter: none;
}
.arc[aria-pressed="true"] .lbl { color: var(--white); font-weight: 700; }
.arc:hover .cap { filter: none; }
.arc:focus-visible { outline: none; }
.arc:focus-visible .cap { outline: 3px solid var(--yellow); outline-offset: 12px; }
.c-red .cap { --c: var(--red); } .c-yellow .cap { --c: var(--yellow); } .c-green .cap { --c: var(--green); }
.c-cyan .cap { --c: var(--cyan); } .c-blue .cap { --c: #39A4FF; } .c-pink .cap { --c: var(--pink); }
.pad-answer { margin-top: 26px; min-height: 5.2em; border-top: 2px solid #5A33A3; padding-top: 16px; }
.pad-answer p { margin: 0; font-size: 1.05rem; color: var(--white); }

/* ---------- etapes ---------- */
.steps { padding: 88px 0 72px; }
.step-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; counter-reset: s; }
.step-list li { counter-increment: s; position: relative; padding-top: 64px; }
.step-list li::before {
  content: counter(s);
  position: absolute; top: 0; left: 0;
  width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--blue); color: var(--white);
  font: 800 1.3rem var(--display);
}
.step-list li:not(:last-child)::after { content: ""; position: absolute; top: 22px; left: 58px; right: -20px; height: 2px; background: var(--blue-line); }
.step-list p { color: var(--ink-soft); font-size: 1rem; }

/* ---------- creations ---------- */
.creations { padding: 32px 0 88px; }
.crea-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; border-top: 2px solid var(--ink); }
.crea { padding: 28px 32px 24px 0; border-bottom: 2px solid var(--blue-line); }
.crea:nth-child(even) { padding: 28px 0 24px 32px; border-left: 2px solid var(--blue-line); }
.crea p { color: var(--ink-soft); font-size: 1rem; }
.tag { display: inline-block; font-size: 0.85rem; font-weight: 700; color: var(--ink); background: #FFE1B0; padding: 2px 10px; border-radius: 999px; }

/* ---------- eole ---------- */
.eole { background: var(--white); padding: 96px 0; border-top: 6px solid var(--red); }
.eole-in { display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: center; }
.eole-fig { margin: 0; }
.facts { list-style: none; padding: 0; margin: 0 0 1.4rem; }
.facts li { padding: 10px 0 10px 30px; position: relative; border-bottom: 1px solid var(--blue-line); font-size: 1rem; }
.facts li::before { content: ""; position: absolute; left: 4px; top: 1.05em; width: 12px; height: 12px; border-radius: 50%; background: var(--red); }
.note { font-size: 0.95rem; color: var(--ink-soft); font-style: italic; }

/* ---------- etablissements ---------- */
.etab { padding: 88px 0; }
.etab-in { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 48px; }
.etab h2 { margin: 0; }

/* ---------- dons ---------- */
.soutenir { background: var(--yellow); padding: 88px 0; }
.soutenir a:not(.btn) { color: var(--ink); }
.soutenir .btn-main { background: var(--ink); color: var(--white); border-color: var(--ink); }
.soutenir .btn-main:hover { background: var(--blue); border-color: var(--blue); }
.soutenir :focus-visible { outline-color: var(--blue); }
.don-in { display: grid; grid-template-columns: 1.3fr 1fr; gap: 56px; align-items: start; }
.calc { background: var(--white); border-radius: 24px; padding: 28px; }
.calc label { display: block; font-weight: 700; margin-bottom: 6px; }
.calc-row { display: flex; align-items: center; gap: 10px; }
.calc input { width: 9ch; font: 800 2rem var(--display); padding: 6px 12px; border: 2px solid var(--ink); border-radius: 12px; color: var(--ink); background: var(--paper); }
.calc-row span { font: 800 2rem var(--display); }
.calc-out { margin: 16px 0 0; font-size: 1.1rem; }
.calc-out strong { font-family: var(--display); font-size: 1.6rem; }

/* ---------- contact ---------- */
.contact { padding: 88px 0; }
.contact-cols { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: end; }
.mail { font-family: var(--display); font-weight: 800; font-variation-settings: "wdth" 110; font-size: clamp(1.4rem, 3.4vw, 2.4rem); word-break: break-word; }
address { font-style: normal; color: var(--ink-soft); }

/* ---------- pied ---------- */
.foot { background: var(--blue-deep); color: #D7C8EE; padding: 32px 0; font-size: 0.95rem; }
.foot-in { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.foot p { margin: 0; }
.foot a { color: var(--white); }

/* ---------- page texte (mentions legales) ---------- */
.page { padding: 64px 0 88px; }
.page h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); color: var(--ink); }
.page h2 { font-size: 1.5rem; margin: 2rem 0 0.6rem; }

/* ---------- mobile ---------- */
@media (max-width: 900px) {
  .hero-in, .eole-in, .etab-in, .don-in, .contact-cols { grid-template-columns: 1fr; gap: 40px; }
  .step-list { grid-template-columns: 1fr 1fr; }
  .step-list li::after { display: none; }
  .eole-fig { max-width: 520px; }
}
@media (max-width: 760px) {
  .wrap { padding: 0 16px; }
  .menu-btn { display: block; background: transparent; color: var(--white); border: 2px solid rgba(255, 255, 255, 0.5); border-radius: 999px; padding: 6px 16px; font: 700 1rem var(--display); cursor: pointer; }
  nav { display: none; position: absolute; left: 0; right: 0; top: 68px; background: var(--blue-deep); flex-direction: column; align-items: stretch; padding: 8px 16px 20px; }
  nav.open { display: flex; }
  nav a { padding: 12px; }
    .hero { padding: 48px 0 64px; }
  .pad { padding: 22px 16px 18px; }
  .pad-grid { gap: 16px 4px; }
  .step-list, .crea-grid { grid-template-columns: 1fr; }
  .crea, .crea:nth-child(even) { padding: 24px 0; border-left: 0; }
  .steps, .creations, .eole, .etab, .soutenir, .contact { padding-top: 64px; padding-bottom: 64px; }
  .creations { padding-top: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .arc .cap { transition: none; }
}

/* =================================================================
   Options d'accessibilite
   ================================================================= */
html.t1 { --base: 1.32rem; }
html.t2 { --base: 1.58rem; }
html.t1 .hero-in, html.t2 .hero-in { grid-template-columns: 1fr; }
html.t2 .step-list { grid-template-columns: 1fr 1fr; }
html.t2 .step-list li::after { display: none; }

/* panneau */
.a11y { border: 0; border-radius: 24px; padding: 0; width: min(640px, calc(100vw - 24px)); max-height: calc(100vh - 32px); background: var(--white); color: var(--ink); box-shadow: 0 24px 80px rgba(10, 17, 71, 0.45); }
.a11y::backdrop { background: rgba(10, 17, 71, 0.6); }
.a11y-in { padding: 24px 28px 28px; }
.a11y-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.a11y h2 { font-size: 1.7rem; margin: 0; }
.a11y-hint { color: var(--ink-soft); font-size: 0.95rem; margin: 8px 0 12px; }
.a11y fieldset { border: 0; border-top: 2px solid var(--blue-line); margin: 16px 0 0; padding: 14px 0 0; }
.a11y legend { font: 800 1.15rem var(--display); padding: 0 8px 0 0; color: var(--blue); }
.a11y-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 10px 0; }
.a11y-lbl { font-weight: 700; }
.sw { display: flex; align-items: flex-start; gap: 14px; padding: 9px 0; cursor: pointer; line-height: 1.4; }
.sw input { appearance: none; -webkit-appearance: none; flex: none; width: 50px; height: 28px; border-radius: 999px; background: #D9CDE8; position: relative; cursor: pointer; margin: 0; transition: background 120ms; }
.sw input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .3); transition: transform 120ms; }
.sw input:checked { background: var(--green); }
.sw input:checked::after { transform: translateX(22px); }
.sw input:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.seg { display: inline-flex; border: 2px solid var(--ink); border-radius: 999px; overflow: hidden; }
.seg label { cursor: pointer; }
.seg input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.seg span { display: grid; place-items: center; min-width: 52px; height: 44px; font: 800 1rem var(--display); }
.seg .s1 { font-size: 1.3rem; } .seg .s2 { font-size: 1.65rem; }
.seg input:checked + span { background: var(--ink); color: var(--white); }
.seg input:focus-visible + span { outline: 3px solid var(--yellow); outline-offset: -5px; }
.a11y-act, .a11y-close { background: var(--paper); color: var(--ink); border: 2px solid var(--ink); border-radius: 999px; padding: 8px 16px; font: 700 0.95rem var(--display); cursor: pointer; }
.a11y-act:hover, .a11y-close:hover { background: var(--yellow); }
.a11y select { font: inherit; padding: 6px 10px; border: 2px solid var(--ink); border-radius: 10px; background: var(--paper); color: var(--ink); }
.a11y-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 22px; border-top: 2px solid var(--blue-line); padding-top: 18px; }

/* lecture facilitee */
html.a-dys body { letter-spacing: 0.06em; word-spacing: 0.18em; line-height: 1.95; }
html.a-dys p, html.a-dys li { max-width: 58ch; text-align: left; }
html.a-dys em, html.a-dys i, html.a-dys .note { font-style: normal; }
html.a-dys h1, html.a-dys h2 { letter-spacing: 0.01em; line-height: 1.15; }

/* liens soulignes */
html.a-links a, html.a-links button { text-decoration: underline !important; text-decoration-thickness: 2px !important; text-underline-offset: 0.2em; }
html.a-links .btn, html.a-links button { outline: 2px dashed currentColor; outline-offset: 2px; }

/* animations arretees */
html.a-nomotion *, html.a-nomotion *::before, html.a-nomotion *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }

/* grand curseur */
html.a-cursor, html.a-cursor * { cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 48 48'%3E%3Cpath d='M4 2l34 22-15 3 9 17-7 3-9-17-12 10z' fill='%23000' stroke='%23fff' stroke-width='3' stroke-linejoin='round'/%3E%3C/svg%3E") 4 2, auto !important; }

/* grandes zones de clic */
html.a-targets .btn { padding: 1.15em 1.8em; font-size: 1.15rem; }
html.a-targets nav a { padding: 14px 16px; }
html.a-targets .a11y-open, html.a-targets .menu-btn { padding: 12px 18px; }
html.a-targets .arc .cap { width: clamp(80px, 11vw, 112px); }
html.a-targets a:not(.btn):not(.logo) { display: inline-block; padding: 6px 2px; }

/* repere de selection tres visible */
html.a-focus :focus-visible, html.a-focus .scan-hi { outline: 5px solid var(--yellow) !important; outline-offset: 4px !important; box-shadow: 0 0 0 10px #000 !important; border-radius: 6px; }

/* guide de lecture */
.read-band { position: fixed; left: 0; right: 0; height: 2.6em; pointer-events: none; z-index: 60; background: rgba(255, 194, 46, 0.18); border-top: 3px solid var(--yellow); border-bottom: 3px solid var(--yellow); box-shadow: 0 0 0 100vmax rgba(10, 17, 71, 0.28); }

/* lecture a voix haute */
html.a-speak main p, html.a-speak main h1, html.a-speak main h2, html.a-speak main h3, html.a-speak main li { cursor: pointer; }
html.a-speak main p:hover, html.a-speak main li:hover, html.a-speak main h2:hover, html.a-speak main h3:hover { background: rgba(255, 194, 46, 0.25); }
.speaking { background: rgba(255, 194, 46, 0.45) !important; border-radius: 4px; }

/* clic par maintien */
.dwell-ring { position: fixed; width: 54px; height: 54px; margin: -27px 0 0 -27px; border-radius: 50%; pointer-events: none; z-index: 70; opacity: 0; border: 5px solid rgba(255, 194, 46, 0.35); }
.dwell-ring.on { opacity: 1; animation: dwell var(--dwell, 1400ms) linear forwards; }
@keyframes dwell { from { box-shadow: inset 0 0 0 0 var(--yellow); transform: scale(1.25); } to { box-shadow: inset 0 0 0 27px var(--yellow); transform: scale(0.8); } }
html.a-nomotion .dwell-ring.on { animation: dwell var(--dwell, 1400ms) linear forwards !important; }

/* defilement automatique */
.scan-hi { outline: 5px solid var(--yellow) !important; outline-offset: 4px !important; box-shadow: 0 0 0 10px rgba(229, 50, 45, 0.85) !important; border-radius: 8px; }
.scan-bar { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 80; background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 14px; font-weight: 700; text-align: center; box-shadow: 0 8px 30px rgba(0, 0, 0, .3); }

/* mode sombre */
html.a-dark {
  --paper: #140A2C; --white: #FFFFFF; --ink: #F3ECFB; --ink-soft: #CBB9E6; --blue: #6A33B8; --blue-deep: #0B0518; --blue-line: #3D2A66;
}
html.a-dark a { color: #D2B3FF; }
html.a-dark .eole, html.a-dark .a11y { background: #1E1240; }
html.a-dark .btn-main { color: #231046; }
html.a-dark .seg input:checked + span { color: #140A2C; }
html.a-dark .a11y-open { color: #0B0518; }
html.a-dark .menu-btn { color: #fff; }
html.a-dark .soutenir, html.a-dark .soutenir p, html.a-dark .soutenir h2, html.a-dark .soutenir a:not(.btn) { color: #231046; }
html.a-dark .soutenir .btn-main { background: #231046; color: #fff; border-color: #231046; }
html.a-dark .calc { background: #fff; color: #231046; }
html.a-dark .calc input { background: #FBF7F2; color: #231046; border-color: #231046; }
html.a-dark .eole-fig img { filter: invert(1) hue-rotate(180deg) brightness(1.15); }
html.a-dark .a11y-open { background: #F3ECFB; }
html.a-dark .tag { color: #231046; }
html.a-dark .sw input { background: #5B4A8A; }

/* contraste eleve */
html.a-contrast {
  --paper: #000; --white: #FFF; --ink: #FFF; --ink-soft: #FFF; --blue: #000; --blue-deep: #000; --blue-line: #FFF; --yellow: #FFE600;
}
html.a-contrast body { background: #000; color: #fff; }
html.a-contrast a { color: #FFE600 !important; text-decoration: underline; }
html.a-contrast .btn-main, html.a-contrast .soutenir .btn-main { background: #FFE600 !important; color: #000 !important; border-color: #FFE600 !important; }
html.a-contrast .btn-ghost { color: #fff !important; border-color: #fff; }
html.a-contrast .crea, html.a-contrast .etab, html.a-contrast .contact, html.a-contrast .steps, html.a-contrast .creations { background: #000; }
html.a-contrast .seg input:checked + span { color: #000; }
html.a-contrast .hero, html.a-contrast .soutenir, html.a-contrast .eole, html.a-contrast .top, html.a-contrast .foot { background: #000; color: #fff; border-color: #fff; }
html.a-contrast section { border-top: 2px solid #fff; }
html.a-contrast .hero .lead, html.a-contrast .pad-q, html.a-contrast .arc .lbl, html.a-contrast .foot { color: #fff; }
html.a-contrast .pad, html.a-contrast .calc, html.a-contrast .a11y { background: #000; color: #fff; box-shadow: inset 0 0 0 3px #fff; }
html.a-contrast .arc .cap { filter: none; }
html.a-contrast .step-list li::before { background: #FFE600; color: #000; }
html.a-contrast .facts li::before { background: #FFE600; }
html.a-contrast .tag { background: #FFE600; color: #000; }
html.a-contrast .eole-fig img { filter: brightness(0) invert(1); }
html.a-contrast .a11y-open { background: #FFE600; color: #000; }
html.a-contrast .a11y-act, html.a-contrast .a11y-close, html.a-contrast .a11y select, html.a-contrast .calc input { background: #000; color: #fff; border-color: #fff; }
html.a-contrast .a11y legend { color: #FFE600; }
html.a-contrast .sw input { background: #555; } html.a-contrast .sw input:checked { background: #FFE600; }
html.a-contrast .sw input:checked::after { background: #000; }
html.a-contrast .seg { border-color: #fff; } html.a-contrast .seg input:checked + span { background: #FFE600; color: #000; }
html.a-contrast .logo-ring { fill: #fff; }

@media (max-width: 760px) {
  .a11y-open span { display: none; }
  .a11y-open { padding: 8px; }
  .a11y-in { padding: 18px 16px 20px; }
  .a11y-foot { flex-wrap: wrap; }
}
.badge { display: inline-block; font: 800 1.05rem var(--display); color: var(--white); background: var(--red); padding: 8px 18px; border-radius: 999px; margin: 0 0 0.6rem; }
html.a-contrast .badge { background: #FFE600; color: #000; }

/* ---------- logiciel CAA ---------- */
.caa { padding: 88px 0; background: var(--paper); border-top: 6px solid var(--green); }
.caa-in { display: grid; grid-template-columns: 1.15fr 1fr; gap: 56px; align-items: start; }
.caa .facts li::before { background: var(--green); }
.dl { background: var(--white); border-radius: 24px; padding: 28px; display: grid; gap: 12px; box-shadow: inset 0 0 0 2px var(--blue-line); }
.dl h3 { margin: 0 0 4px; }
.dl-btn { display: grid; gap: 2px; padding: 16px 20px 16px 58px; border-radius: 16px; background: var(--blue); color: #fff; text-decoration: none; position: relative; }
.dl-btn::before { content: ""; position: absolute; left: 20px; top: 50%; width: 22px; height: 22px; margin-top: -11px;
  background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M11 3h2v10.2l3.6-3.6 1.4 1.4-6 6-6-6 1.4-1.4 3.6 3.6zM4 19h16v2H4z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M11 3h2v10.2l3.6-3.6 1.4 1.4-6 6-6-6 1.4-1.4 3.6 3.6zM4 19h16v2H4z'/%3E%3C/svg%3E") center / contain no-repeat; }
.dl-btn:hover { background: var(--blue-deep); }
.dl-name { font: 800 1.1rem var(--display); }
.dl-meta { font-size: 0.92rem; color: #EFE4FB; }
.dl-help { border-top: 2px solid var(--blue-line); padding-top: 10px; }
.dl-help summary { cursor: pointer; font-weight: 700; padding: 6px 0; }
.dl-help ol { padding-left: 1.2em; margin: 8px 0 0; font-size: 0.98rem; }
.dl-help li { margin-bottom: 8px; }
.dl .btn { justify-self: start; margin-top: 4px; }
html.a-dark .dl { background: #1E1240; }
html.a-contrast .caa, html.a-contrast .dl { background: #000; }
html.a-contrast .dl-btn { background: #FFE600; color: #000 !important; }
html.a-contrast .dl-meta { color: #000; }
html.a-contrast .caa .facts li::before { background: #FFE600; }
html.a-targets .dl-btn { padding-top: 22px; padding-bottom: 22px; }
@media (max-width: 900px) { .caa-in { grid-template-columns: 1fr; gap: 32px; } }
@media (max-width: 760px) { .caa { padding: 64px 0; } .dl { padding: 20px 16px; } }

/* aide pour les personnes aveugles dans le panneau */
.a11y-note { font-size: 0.92rem; color: var(--ink-soft); margin: 4px 0 8px; }
.keys summary { cursor: pointer; font-weight: 700; padding: 6px 0; }
.keys ul { margin: 6px 0 0; padding-left: 1.1em; font-size: 0.95rem; }
.keys li { margin-bottom: 6px; }
kbd { font: 700 0.85em var(--text); border: 1.5px solid currentColor; border-bottom-width: 3px; border-radius: 6px; padding: 0 6px; }
h2[tabindex="-1"]:focus, h1[tabindex="-1"]:focus { outline: 3px solid var(--yellow); outline-offset: 6px; }

/* les titres atteints par lien ou raccourci ne passent pas sous l'en-tete fixe */
html { scroll-padding-top: 88px; }
[id] { scroll-margin-top: 88px; }

/* Nunchuk à une main */
.nunchuk { padding: 88px 0; background: var(--white); border-top: 6px solid var(--cyan); }
.nunchuk-in { display: grid; grid-template-columns: 1.15fr 1fr; gap: 56px; align-items: start; }
.nunchuk .facts li::before { background: var(--cyan); }
.nunchuk-fig { margin: 0 0 1.4rem; }
.nunchuk-fig img { display: block; width: 100%; height: auto; border-radius: 20px; }
.nunchuk .dl { background: var(--paper); }
.dl-alt { background: var(--blue-deep); }
.dl-help ul { padding-left: 1.2em; margin: 8px 0 0; font-size: 0.98rem; }
.dl-help ul li { margin-bottom: 8px; }
@media (max-width: 900px) { .nunchuk-in { grid-template-columns: 1fr; gap: 32px; } }
@media (max-width: 760px) { .nunchuk { padding: 64px 0; } }
.vid-t { margin: 2rem 0 0.6rem; }
.vid { display:block; width:100%; height:auto; border-radius:16px; background:#231046; }
.vid-sq { max-width:480px; }

/* logo dans le pied de page et le bloc "Nous soutenir" */
.foot-logo { width: 64px; height: 64px; border-radius: 14px; margin-bottom: 10px; }
.don-logo { width: 120px; height: 120px; border-radius: 22px; margin-bottom: 18px; box-shadow: 0 10px 30px rgba(35,16,70,.25); }
.top { border-bottom: 4px solid var(--yellow); }
html.a-contrast .top { border-bottom-color: #FFE600; }

/* ================= site multi-pages et boutique ================= */
nav a[aria-current="page"] { background: rgba(254,161,16,.18); box-shadow: inset 0 -3px 0 var(--yellow); }
nav a { white-space: nowrap; font-size: 0.98rem; padding: 8px 10px; }
.cart-link { position: relative; display: flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 999px; color: var(--white); }
.cart-link:hover { background: rgba(255,255,255,.12); }
.cart-link svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.cart-link circle { fill: currentColor; stroke: none; }
.cart-count { position: absolute; top: 0; right: -2px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: var(--yellow); color: var(--ink); font: 800 0.78rem/20px var(--display); text-align: center; }
.cart-count[hidden] { display: none; }
.foot-links a { margin: 0 2px; }
@media (max-width: 1080px) {
  .menu-btn { display: block; background: transparent; color: var(--white); border: 2px solid rgba(255, 255, 255, 0.5); border-radius: 999px; padding: 6px 16px; font: 700 1rem var(--display); cursor: pointer; }
  nav { display: none; position: absolute; left: 0; right: 0; top: 68px; background: var(--blue-deep); flex-direction: column; align-items: stretch; padding: 8px 16px 20px; }
  nav.open { display: flex; }
  nav a { padding: 12px; font-size: 1.05rem; }
}

/* fil d'Ariane */
.crumbs { padding-top: 18px; padding-bottom: 0; font-size: 0.95rem; color: var(--ink-soft); }
.crumbs a { color: var(--ink-soft); }
.crumbs + .p-hero { margin-top: 14px; }

/* haut des pages produit */
.p-hero { background: radial-gradient(900px 600px at 85% 0%, #6A33B8 0%, rgba(106,51,184,0) 60%), radial-gradient(700px 500px at 0% 100%, #2C1458 0%, rgba(44,20,88,0) 60%), var(--blue); color: var(--white); padding: 64px 0 72px; }
.crumbs ~ .p-hero { border-radius: 0; }
.p-hero-in { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
.p-hero h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); line-height: 1.02; font-variation-settings: "wdth" 110; margin: 6px 0 18px; }
.p-hero .lead { color: #EDE3FA; }
.p-hero .actions { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 12px; }
.p-hero .tag { margin: 4px 0 0; }
.p-hero .note { color: #D9CBF2; }
.kicker { font: 800 0.95rem var(--display); letter-spacing: .12em; text-transform: uppercase; color: var(--yellow); margin: 0; }
.p-hero-fig { margin: 0; background: var(--paper); border-radius: 28px; padding: 14px; box-shadow: 0 0 0 4px var(--yellow), 0 30px 70px rgba(10,4,30,.45); }
.p-hero-fig img { display: block; width: 100%; height: auto; border-radius: 18px; }
.p-hero-shop { padding: 56px 0 60px; }
.p-hero-shop .lead { max-width: 46em; }

.p-sec { padding: 72px 0; }
.p-alt { background: var(--white); }
.p-two { display: grid; grid-template-columns: 1.25fr 1fr; gap: 48px; align-items: start; }
.p-two h2 { font-size: clamp(1.7rem, 3vw, 2.2rem); margin-bottom: 18px; }

/* bloc achat */
.buy { background: var(--white); border-radius: 24px; padding: 28px; box-shadow: inset 0 0 0 2px var(--blue-line); border-top: 8px solid var(--yellow); position: sticky; top: 92px; }
.buy-t { font-size: 1.6rem !important; margin: 0 0 10px !important; }
.buy p { font-size: 1rem; }
.buy-price, .scard-price { font: 900 1.9rem var(--display); color: var(--ink); margin: 14px 0; }
.buy-price.soon, .scard-price.soon { font-size: 1.25rem; display: inline-block; background: #FFE1B0; padding: 6px 14px; border-radius: 999px; }
.buy-actions, .scard-act { display: flex; flex-wrap: wrap; gap: 10px; }
.btn-line { color: var(--blue); border-color: var(--blue); background: transparent; }
.btn-line:hover { background: var(--blue); color: var(--white); }

/* grille des produits (accueil) */
.produits { padding: 88px 0; }
.produits h2 { font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: 10px; }
.produits > .wrap > .lead { color: var(--ink-soft); max-width: 44em; margin: 0 0 36px; }
.prod-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.pcard, .scard { background: var(--white); border-radius: 22px; overflow: hidden; display: flex; flex-direction: column; box-shadow: inset 0 0 0 2px var(--blue-line); transition: transform .15s, box-shadow .15s; }
.pcard:hover, .scard:hover { transform: translateY(-3px); box-shadow: inset 0 0 0 2px var(--yellow), 0 18px 40px rgba(35,16,70,.12); }
.pcard-img, .scard-img { display: block; aspect-ratio: 4 / 3; background: var(--paper); border-bottom: 2px solid var(--blue-line); }
.pcard-img img, .scard-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pcard-body, .scard-body { padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.pcard-body h3, .scard-body h3 { font-size: 1.3rem; margin: 6px 0 8px; }
.pcard-body h3 a, .scard-body h3 a { color: var(--ink); text-decoration: none; }
.pcard-body h3 a:hover, .scard-body h3 a:hover { text-decoration: underline; }
.pcard-body p, .scard-body > p { color: var(--ink-soft); font-size: 1rem; margin: 0 0 12px; }
.pcard-tag { align-self: flex-start; font: 800 0.8rem var(--display) !important; letter-spacing: .06em; text-transform: uppercase; color: var(--ink) !important; background: #FFE1B0; padding: 3px 10px; border-radius: 999px; margin: 0 !important; }
.pcard-more { margin-top: auto; font: 800 1rem var(--display); color: var(--blue); text-decoration: none; }
.pcard-more:hover { text-decoration: underline; }
.pcard-soon { background: var(--blue-deep); color: var(--white); box-shadow: none; justify-content: center; }
.pcard-soon h3 { color: var(--white); }
.pcard-soon .pcard-body p { color: #DCCFF3; }
.pcard-soon:hover { transform: none; box-shadow: none; }
.prod-shop { margin: 36px 0 0; text-align: center; }

/* boutique */
.shop-in { display: grid; grid-template-columns: 1fr 360px; gap: 36px; align-items: start; }
.shop-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.scard-act { margin-top: auto; }
.scard-act .btn { font-size: 0.95rem; padding: 10px 16px; }
.cart { background: var(--white); border-radius: 24px; padding: 24px; box-shadow: inset 0 0 0 2px var(--blue-line); border-top: 8px solid var(--yellow); position: sticky; top: 92px; }
.cart h2 { font-size: 1.5rem; margin-bottom: 12px; }
.cart-empty { font-weight: 700; }
.cart-note { font-size: 0.92rem; color: var(--ink-soft); }
.cart-list { list-style: none; padding: 0; margin: 0 0 10px; }
.cart-line { display: grid; grid-template-columns: 1fr auto; gap: 6px 10px; padding: 12px 0; border-bottom: 1px solid var(--blue-line); align-items: center; }
.cart-name { grid-column: 1 / -1; font-weight: 700; }
.cart-q { display: inline-flex; align-items: center; gap: 10px; }
.cart-q button { width: 36px; height: 36px; border-radius: 50%; border: 2px solid var(--blue); background: transparent; color: var(--blue); font: 800 1.2rem var(--display); cursor: pointer; }
.cart-st { font-weight: 700; text-align: right; }
.cart-del { grid-column: 1 / -1; justify-self: start; background: none; border: 0; padding: 4px 0; color: var(--red); text-decoration: underline; font: inherit; font-size: 0.92rem; cursor: pointer; }
.cart-row { display: flex; justify-content: space-between; margin: 8px 0; }
.cart-total { font: 900 1.3rem var(--display); border-top: 2px solid var(--ink); padding-top: 10px; }
.btn-pay { width: 100%; justify-content: center; margin: 8px 0 4px; }

@media (max-width: 900px) {
  .p-hero-in, .p-two, .shop-in { grid-template-columns: 1fr; gap: 36px; }
  .prod-grid { grid-template-columns: 1fr 1fr; }
  .buy, .cart { position: static; }
  .p-hero-fig { max-width: 560px; }
}
@media (max-width: 620px) {
  .prod-grid, .shop-grid { grid-template-columns: 1fr; }
  .p-hero { padding: 40px 0 52px; }
  .p-sec, .produits { padding: 52px 0; }
}

/* modes d'accessibilité */
html.a-dark .pcard, html.a-dark .scard, html.a-dark .buy, html.a-dark .cart, html.a-dark .p-alt { background: #1E1240; }
html.a-dark .pcard-body h3 a, html.a-dark .scard-body h3 a, html.a-dark .buy-price, html.a-dark .scard-price { color: #fff; }
html.a-dark .buy-price.soon, html.a-dark .scard-price.soon { color: #231046; }
html.a-dark .pcard-body p, html.a-dark .scard-body > p, html.a-dark .cart-note, html.a-dark .crumbs, html.a-dark .crumbs a { color: #D9CBF2; }
html.a-contrast .pcard, html.a-contrast .scard, html.a-contrast .buy, html.a-contrast .cart, html.a-contrast .p-hero, html.a-contrast .p-alt, html.a-contrast .pcard-soon { background: #000; color: #fff; box-shadow: inset 0 0 0 3px #fff; }
html.a-contrast .pcard-body p, html.a-contrast .scard-body > p, html.a-contrast .cart-note, html.a-contrast .crumbs, html.a-contrast .buy-price, html.a-contrast .scard-price, html.a-contrast .p-hero .lead { color: #fff; }
html.a-contrast .pcard-tag, html.a-contrast .cart-count, html.a-contrast .buy-price.soon, html.a-contrast .scard-price.soon { background: #FFE600 !important; color: #000 !important; }
html.a-contrast .btn-line { color: #FFE600 !important; border-color: #FFE600; }
html.a-contrast .cart-q button { color: #fff; border-color: #fff; }
/* correctifs */
.logo { flex-shrink: 0; }
.pcard-img, .scard-img { position: relative; overflow: hidden; flex: none; height: auto; }
.pcard-img img, .scard-img img { position: absolute; inset: 0; }
.pcard-img img[src$="eole-dessin.png"], .scard-img img[src$="eole-dessin.png"] { object-fit: contain; padding: 14px; background: #fff; }
.scard-price, .buy-price { align-self: flex-start; }
@media (max-width: 1240px) {
  .menu-btn { display: block; background: transparent; color: var(--white); border: 2px solid rgba(255, 255, 255, 0.5); border-radius: 999px; padding: 6px 16px; font: 700 1rem var(--display); cursor: pointer; }
  nav { display: none; position: absolute; left: 0; right: 0; top: 68px; background: var(--blue-deep); flex-direction: column; align-items: stretch; padding: 8px 16px 20px; }
  nav.open { display: flex; }
  nav a { padding: 12px; font-size: 1.05rem; }
  .top-tools { margin-left: auto; }
}
@media (max-width: 480px) {
  .top-in { gap: 8px; }
  .top-tools { gap: 4px; }
  .logo { font-size: 1.05rem; gap: 8px; }
  .logo img { width: 40px; height: 40px; }
  .menu-btn { padding: 6px 12px !important; }
}
@media (max-width: 360px) { .logo span { display: none; } }
