/* ==========================================================================
   theoblaise.fr — v3 « Flyer vivant »
   Les couleurs et les formes du flyer : bleu roi, cyan, jaune, nuages gris,
   panneaux en arche et contours noirs épais. Aucune dépendance externe.
   ========================================================================== */

:root {
  --blue: #0a46ad;
  --blue-deep: #06307a;
  --cyan: #12aef0;
  --yellow: #ffe24a;
  --lime: #dcd31f;
  --gray: #737b80;
  --ink: #0b0f1a;
  --white: #fff;
  --paper: #f4f8ff;
  --o: 3px solid var(--ink);
  --hard: 6px 6px 0 var(--ink);
  --display: "Arial Black", "Segoe UI Black", "Helvetica Neue", Impact, system-ui, sans-serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  /* Contour noir autour des gros titres, comme une lettre découpée */
  --text-outline: 2px 0 0 var(--ink), -2px 0 0 var(--ink), 0 2px 0 var(--ink), 0 -2px 0 var(--ink),
    2px 2px 0 var(--ink), -2px -2px 0 var(--ink), 2px -2px 0 var(--ink), -2px 2px 0 var(--ink),
    5px 6px 0 var(--ink);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0; background: var(--cyan); color: var(--ink);
  font: 500 1.0625rem/1.6 var(--sans); overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--yellow); color: var(--ink); }
a { color: inherit; text-decoration-thickness: 2px; text-underline-offset: .2em; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; box-shadow: 0 0 0 6px var(--ink); }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 900; font-style: italic; line-height: 1.02; letter-spacing: -.02em; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 8vw, 5.6rem); }
h2 { font-size: clamp(1.9rem, 5vw, 3.4rem); color: var(--white); text-shadow: var(--text-outline); }
h2 em { color: var(--yellow); font-style: inherit; }
h3 { font-size: 1.35rem; line-height: 1.15; letter-spacing: -.01em; }

.wrap { width: min(100% - 2.5rem, 72rem); margin-inline: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 1rem; top: -5rem; z-index: 100; background: var(--yellow); border: var(--o); padding: .7rem 1rem; font-weight: 800; }
.skip:focus { top: 1rem; }

/* ---------- Fond : les taches du flyer, qui respirent lentement ---------- */
.bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.bg i { position: absolute; display: block; animation: blob 18s ease-in-out infinite alternate; translate: var(--px, 0) var(--py, 0); transition: translate .6s ease-out; }
.bg i:nth-child(1) { width: 62vmax; height: 62vmax; right: -24vmax; top: -18vmax; background: var(--lime); border-radius: 58% 42% 38% 62% / 45% 55% 45% 55%; }
.bg i:nth-child(2) { width: 46vmax; height: 46vmax; left: -20vmax; top: 38vh; background: var(--lime); border-radius: 40% 60% 62% 38% / 58% 40% 60% 42%; animation-duration: 23s; }
.bg i:nth-child(3) { width: 38vmax; height: 38vmax; right: -12vmax; bottom: -16vmax; background: var(--blue); border-radius: 55% 45% 50% 50% / 40% 60% 40% 60%; animation-duration: 27s; opacity: .55; }
@keyframes blob {
  to { border-radius: 42% 58% 60% 40% / 60% 42% 58% 40%; transform: rotate(14deg) scale(1.06); }
}

/* ---------- En-tête : une pilule bleue flottante ---------- */
.site-head { position: sticky; top: .75rem; z-index: 40; margin-top: .75rem; }
.site-head__in {
  display: flex; flex-wrap: wrap; align-items: center; gap: .25rem 1rem;
  background: var(--blue); border: var(--o); border-radius: 2rem; box-shadow: var(--hard);
  padding: .5rem .6rem .5rem 1.25rem;
}
.brand { font: italic 900 1.25rem/1 var(--display); color: var(--white); text-decoration: none; margin-right: auto; letter-spacing: -.02em; }
.brand b { color: var(--yellow); }
.nav { display: flex; flex-wrap: wrap; gap: .25rem; }
.nav a {
  font-weight: 800; font-size: .9rem; color: var(--white); text-decoration: none;
  padding: .5rem .9rem; border-radius: 2rem; border: 2px solid transparent; transition: background .15s, color .15s, transform .15s;
}
.nav a:hover { background: var(--blue-deep); transform: translateY(-2px) rotate(-2deg); }
.nav a[aria-current="page"] { background: var(--yellow); color: var(--ink); border-color: var(--ink); }
@media (max-width: 40rem) {
  .site-head { position: static; }
  .site-head__in { border-radius: 1.5rem; padding: .7rem .8rem; }
  .brand { width: 100%; margin-bottom: .25rem; }
  .nav a { font-size: .82rem; padding: .4rem .65rem; }
}

/* ---------- Boutons et autocollants ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  font: 800 1rem/1.2 var(--sans); text-decoration: none; text-align: center; cursor: pointer;
  color: var(--ink); background: var(--yellow); border: var(--o); border-radius: 999px;
  padding: .9rem 1.5rem; box-shadow: var(--hard);
  transition: transform .12s, box-shadow .12s, background .15s;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 8px 8px 0 var(--ink); }
.btn:active { transform: translate(5px, 5px); box-shadow: 1px 1px 0 var(--ink); }
.btn--blue { background: var(--blue); color: var(--white); }
.btn--white { background: var(--white); }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; box-shadow: var(--hard); }
.arr { display: inline-block; transition: transform .15s; }
.btn:hover .arr, a:hover > .arr { transform: translateX(.3rem); }
.actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1.75rem; }

.sticker {
  display: inline-block; font-weight: 900; font-size: .9rem; line-height: 1.2;
  background: var(--yellow); color: var(--ink); border: var(--o); border-radius: 999px;
  padding: .5rem 1rem; box-shadow: 4px 4px 0 var(--ink); rotate: -2deg;
}
.sticker--blue { background: var(--blue); color: var(--yellow); rotate: 1.5deg; }
.sticker--white { background: var(--white); rotate: 1deg; }
.stickers { display: flex; flex-wrap: wrap; gap: .9rem; align-items: center; margin-top: 1.75rem; }
.sticker:hover { animation: wiggle .5s ease-in-out; }
@keyframes wiggle { 25% { rotate: 3deg; } 50% { rotate: -4deg; } 75% { rotate: 2deg; } }

.dot { display: inline-block; width: .7rem; height: .7rem; border-radius: 50%; background: #19c35a; border: 2px solid var(--ink); margin-right: .5rem; animation: pulse 1.8s ease-in-out infinite; }
@keyframes pulse { 50% { transform: scale(1.35); } }

/* ---------- Ouverture ---------- */
.hero { padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(2rem, 5vw, 3.5rem); }
.hero__in { display: grid; gap: 2rem; align-items: center; }
.hero__in > * { min-width: 0; }
@media (min-width: 58rem) { .hero__in { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 3rem; } }

/* Le bandeau bleu du flyer : il part du bord gauche de l'écran */
.banner { position: relative; display: inline-block; padding: 1.3rem clamp(1.5rem, 5vw, 4rem) 1.5rem 0; z-index: 0; max-width: 100%; }
.banner::before {
  content: ""; position: absolute; inset: 0 0 0 -100vw; z-index: -1;
  background: var(--blue); border: var(--o); border-radius: 0 999px 999px 0; box-shadow: var(--hard);
}
.banner h1 { color: #d5dde8; text-shadow: 4px 5px 0 var(--ink); }
.banner h1 em { color: var(--yellow); font-style: inherit; }
.banner--sm h1 { font-size: clamp(2rem, 5.6vw, 3.8rem); }
.kicker { font-weight: 800; font-size: .95rem; margin-top: 1.5rem; }
.lede { font-size: clamp(1.1rem, 1.8vw, 1.3rem); font-weight: 600; line-height: 1.5; max-width: 40rem; margin-top: 1.25rem; }
.back { display: inline-block; font-weight: 800; font-size: .9rem; margin-bottom: 1rem; }

/* Nuage gris : plusieurs ronds fondus, cernés d'un seul trait grâce aux ombres portées */
.cloud {
  position: relative; margin: 3.4rem 0 2.75rem; max-width: 34rem;
  filter: drop-shadow(3px 0 0 var(--ink)) drop-shadow(-3px 0 0 var(--ink)) drop-shadow(0 3px 0 var(--ink)) drop-shadow(0 -3px 0 var(--ink)) drop-shadow(5px 6px 0 var(--ink));
}
.cloud__in { position: relative; background: var(--gray); color: var(--white); border-radius: 4rem; padding: 1.6rem 2rem 1.9rem; font-weight: 700; font-size: 1.1rem; line-height: 1.45; text-align: center; }
.cloud__in::before, .cloud__in::after, .cloud::before, .cloud::after { content: ""; position: absolute; background: var(--gray); border-radius: 50%; z-index: -1; aspect-ratio: 1; }
.cloud__in::before { width: 9rem; left: 9%; top: -1.9rem; }
.cloud__in::after { width: 11rem; right: 12%; top: -2.6rem; }
.cloud::before { width: 8rem; left: 18%; bottom: -1.2rem; }
.cloud::after { width: 7rem; right: 16%; bottom: -1rem; }
.cloud a { color: var(--yellow); }

/* ---------- La tour de PC du flyer, ventilateurs en marche ---------- */
.rig { display: block; width: min(100%, 22rem); margin-inline: auto; overflow: visible; animation: float 5s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-.7rem) rotate(-1.5deg); } }
.blades { animation: spin var(--spin, 1.6s) linear infinite; transform-origin: 0 0; }
.rig:hover { --spin: .35s; }
.rig .led { animation: led 2.4s ease-in-out infinite; }
.rig .led:nth-of-type(2n) { animation-delay: .8s; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes led { 50% { opacity: .25; } }
.rig--dead .blades, .rig--dead .led, .rig--dead { animation: none; }

/* ---------- Bande défilante ---------- */
.ticker { background: var(--yellow); border-block: var(--o); overflow: hidden; rotate: -1.2deg; margin: 1rem -2rem; box-shadow: 0 6px 0 var(--ink); }
.ticker__track { display: flex; width: max-content; animation: ticker 38s linear infinite; }
.ticker:hover .ticker__track { animation-play-state: paused; }
.ticker span { font: italic 900 1.05rem/1 var(--display); padding: .85rem 1.25rem; white-space: nowrap; }
.ticker span::after { content: "✦"; margin-left: 2.5rem; color: var(--blue); font-style: normal; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { padding-block: clamp(2.75rem, 7vw, 5rem); }
.section-head { margin-bottom: 2.25rem; }
.section-head p { font-weight: 600; font-size: 1.1rem; margin-top: 1rem; max-width: 42rem; }

/* Panneaux en arche, comme au recto du flyer */
.arches { display: grid; gap: 2rem; }
@media (min-width: 46rem) { .arches { grid-template-columns: 1fr 1fr; gap: 2.5rem; } }
.arch {
  position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 1rem;
  background: var(--blue); color: var(--white); text-decoration: none;
  border: var(--o); border-radius: 12rem 12rem 2rem 2rem; box-shadow: var(--hard);
  padding: 4rem 2rem 2.25rem; transition: transform .2s, box-shadow .2s;
}
.arch:hover { transform: translate(-4px, -8px) rotate(-1deg); box-shadow: 12px 14px 0 var(--ink); }
.arch:nth-child(even):hover { transform: translate(-4px, -8px) rotate(1deg); }
.arch__icon { width: 5.5rem; height: 5.5rem; display: grid; place-items: center; background: var(--yellow); border: var(--o); border-radius: 50%; font-size: 2.4rem; transition: transform .4s; }
.arch:hover .arch__icon { transform: rotate(360deg) scale(1.1); }
.arch h3 { font-size: clamp(1.6rem, 3.2vw, 2.2rem); color: var(--yellow); }
.arch p { font-weight: 600; }
.arch__go { margin-top: auto; padding-top: .5rem; font-weight: 900; color: var(--yellow); }

/* ---------- Espace vidéo : l'écran du portable du flyer ---------- */
.laptop { max-width: 54rem; margin-inline: auto; }
.laptop__screen { position: relative; aspect-ratio: 16 / 9; background: var(--ink); border: var(--o); border-width: 14px 14px 18px; border-color: #c9d1da; border-radius: 1.4rem 1.4rem 0 0; outline: var(--o); overflow: hidden; }
.laptop__screen video { width: 100%; height: 100%; object-fit: cover; display: block; background: #000; }
.laptop__empty {
  position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 1rem; text-align: center; padding: 1rem;
  color: var(--white); font-weight: 800;
  background: repeating-linear-gradient(135deg, var(--blue) 0 2.5rem, var(--blue-deep) 2.5rem 5rem);
}
.laptop__play { width: clamp(4rem, 12vw, 6.5rem); aspect-ratio: 1; display: grid; place-items: center; background: var(--yellow); color: var(--ink); border: var(--o); border-radius: 50%; box-shadow: var(--hard); font-size: clamp(1.6rem, 5vw, 2.6rem); padding-left: .3rem; animation: pulse 2.2s ease-in-out infinite; }
.laptop__base { height: 1.6rem; margin-inline: -5%; background: #c9d1da; border: var(--o); border-radius: .3rem .3rem 1.4rem 1.4rem; box-shadow: var(--hard); position: relative; }
.laptop__base::after { content: ""; position: absolute; left: 50%; top: 0; width: 16%; height: .45rem; translate: -50% 0; background: var(--gray); border-radius: 0 0 .5rem .5rem; }

/* ---------- Panneaux génériques ---------- */
.panel { background: var(--blue); color: var(--white); border: var(--o); border-radius: 2rem; box-shadow: var(--hard); padding: clamp(1.4rem, 3.5vw, 2.5rem); }
.panel--white { background: var(--paper); color: var(--ink); }
.panel--yellow { background: var(--yellow); color: var(--ink); }
.panel a { text-decoration-color: currentColor; }
.note { font-weight: 700; margin-top: 2rem; }

.cta { text-align: center; }
.cta h2 { margin-bottom: 1rem; }
.cta__mail { display: inline-block; margin-top: 1.25rem; font: italic 900 clamp(1.3rem, 5vw, 3rem)/1.1 var(--display); color: var(--yellow); text-shadow: 3px 4px 0 var(--ink); overflow-wrap: anywhere; text-decoration: none; transition: rotate .2s, scale .2s; }
.cta__mail:hover { rotate: -2deg; scale: 1.04; }
.cta .actions { justify-content: center; }

.site-foot { background: var(--ink); color: var(--white); margin-top: 2rem; font-weight: 600; font-size: .9rem; }
.site-foot__in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem; padding-block: 1.5rem; }
.site-foot a { color: var(--yellow); }

/* ---------- Apparition au défilement ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(2rem) rotate(-1.5deg); transition: opacity .6s, transform .6s cubic-bezier(.2, .9, .3, 1.3); transition-delay: var(--d, 0s); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- Dépannage : cartes à cocher et ticket ---------- */
.shop { display: grid; gap: 2rem; }
.shop > * { min-width: 0; }
@media (min-width: 62rem) { .shop { grid-template-columns: minmax(0, 1fr) 21rem; gap: 2.5rem; align-items: start; } }
.svc-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 16.5rem), 1fr)); gap: 1.4rem; counter-reset: svc; }
.svc { counter-increment: svc; }
.svc__in {
  position: relative; height: 100%; display: flex; flex-direction: column; gap: .6rem;
  background: var(--blue); color: var(--white); border: var(--o); border-radius: 1.5rem; box-shadow: var(--hard);
  padding: 1.2rem 1.2rem 1.1rem; transition: transform .15s, box-shadow .15s, background .15s, color .15s;
}
label.svc__in { cursor: pointer; }
.svc:hover .svc__in { transform: translate(-2px, -3px) rotate(-.6deg); box-shadow: 9px 10px 0 var(--ink); }
.svc.is-on .svc__in { background: var(--yellow); color: var(--ink); transform: translate(3px, 3px); box-shadow: 2px 2px 0 var(--ink); }
.svc input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.svc:focus-within .svc__in { outline: 3px solid var(--yellow); outline-offset: 3px; }
.svc__name { font: italic 900 1.12rem/1.2 var(--display); letter-spacing: -.01em; padding-right: 2.2rem; }
.svc__name::before { content: counter(svc, decimal-leading-zero) " "; color: var(--yellow); font-style: normal; font-size: .8em; }
.svc.is-on .svc__name::before { color: var(--blue); }
.svc__desc { font-size: .92rem; font-weight: 500; line-height: 1.45; opacity: .92; }
.svc__foot { margin-top: auto; padding-top: .5rem; display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
.svc__price { font: italic 900 1.7rem/1 var(--display); color: var(--yellow); text-shadow: 2px 2px 0 var(--ink); white-space: nowrap; }
.svc.is-on .svc__price { color: var(--blue); text-shadow: none; }
.svc__box { position: absolute; top: 1rem; right: 1rem; width: 1.7rem; height: 1.7rem; display: grid; place-items: center; background: var(--white); border: var(--o); border-radius: 50%; font-weight: 900; color: transparent; transition: transform .2s, background .15s; }
.svc.is-on .svc__box { background: var(--blue); color: var(--yellow); transform: rotate(360deg) scale(1.15); }
.svc__variants { display: flex; gap: .5rem; width: 100%; }
.svc__variants button {
  flex: 1; font: italic 900 1.25rem/1 var(--display); color: var(--ink); background: var(--white);
  border: var(--o); border-radius: 1rem; padding: .55rem .4rem; cursor: pointer; transition: transform .12s, background .15s;
}
.svc__variants button small { display: block; font: 700 .72rem/1 var(--sans); margin-top: .3rem; text-transform: uppercase; letter-spacing: .05em; }
.svc__variants button:hover { transform: translateY(-2px); }
.svc__variants button[aria-pressed="true"] { background: var(--blue); color: var(--yellow); }

.ticket { background: var(--paper); border: var(--o); border-radius: 1.5rem; padding: 1.25rem; }
.ticket__title { font-size: 1.3rem; color: var(--blue); text-shadow: none; padding-bottom: .8rem; border-bottom: 3px dashed var(--ink); }
.ticket__empty { font-size: .95rem; padding: 1rem 0; }
.ticket__lines { list-style: none; margin: 0; padding: 0; }
.ticket__lines li { display: flex; justify-content: space-between; gap: 1rem; font-size: .88rem; font-weight: 600; line-height: 1.35; padding: .55rem 0; border-bottom: 2px dotted var(--gray); animation: pop .3s cubic-bezier(.2, .9, .3, 1.4); }
@keyframes pop { from { opacity: 0; transform: scale(.9) translateX(-.5rem); } }
.ticket__lines li span:last-child { white-space: nowrap; font-weight: 900; }
.ticket__count { font-size: .85rem; font-weight: 700; margin-top: 1rem; }
.ticket__discount { display: flex; justify-content: space-between; gap: 1rem; font-weight: 900; font-size: .9rem; color: #0a7a35; margin-top: .4rem; }
.ticket__total { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-top: .4rem; font-weight: 800; }
.ticket__total > span { font-size: .85rem; white-space: nowrap; }
.ticket__total strong { font: italic 900 2rem/1 var(--display); color: var(--blue); white-space: nowrap; }
.ticket__total s { font-size: 1.1rem; color: var(--gray); margin-right: .2rem; }
.ticket__est, .ticket__note { font-size: .82rem; margin-top: .5rem; }
.ticket .btn { width: 100%; margin-top: 1.1rem; }
@media (min-width: 62rem) { .ticket { position: sticky; top: 5.5rem; box-shadow: var(--hard); rotate: 1deg; } }
@media (max-width: 61.99rem) {
  /* Sur mobile, le ticket devient une barre fixe en bas de l'écran */
  .ticket {
    position: fixed; inset: auto 0 0 0; z-index: 50; border-radius: 1.5rem 1.5rem 0 0; border-bottom: 0;
    display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0 1rem; align-items: center;
    padding: .8rem 1.1rem calc(.8rem + env(safe-area-inset-bottom)); box-shadow: 0 -6px 0 var(--ink);
    transition: transform .35s cubic-bezier(.2, .9, .3, 1.2), visibility .35s;
  }
  .ticket.is-empty { transform: translateY(110%); visibility: hidden; }
  .ticket__title, .ticket__empty, .ticket__lines, .ticket__note, .ticket__est, .ticket__discount span:first-child { display: none; }
  .ticket__count { margin-top: 0; }
  .ticket__discount { justify-content: flex-start; margin-top: 0; font-size: .8rem; }
  .ticket__discount span:last-child::after { content: " de réduction"; }
  .ticket__total { justify-content: flex-start; margin-top: 0; }
  .ticket__total > span { display: none; }
  .ticket__total strong { font-size: 1.8rem; }
  .ticket .btn { width: auto; margin-top: 0; padding-inline: 1.1rem; }
  .ticket .btn .long { display: none; }
  .has-ticket .site-foot { padding-bottom: 6.5rem; }
}

/* ---------- Maison connectée ---------- */
.sols { display: grid; gap: 1.75rem; }
@media (min-width: 52rem) { .sols { grid-template-columns: 1fr 1fr; } .sols > :last-child:nth-child(odd) { grid-column: 1 / -1; } }
.sol { transition: transform .2s, box-shadow .2s; }
.sol:hover { transform: translate(-3px, -4px); box-shadow: 10px 11px 0 var(--ink); }
.sol header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem; margin-bottom: 1.1rem; }
.sol h3 { font-size: 1.7rem; color: var(--yellow); }
.sol .sticker { font-size: .75rem; padding: .35rem .75rem; box-shadow: 3px 3px 0 var(--ink); }
.sol dl { margin: 0; display: grid; gap: .9rem; }
.sol dt { font-weight: 900; font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--yellow); }
.sol dd { margin: .15rem 0 0; font-size: .95rem; font-weight: 500; }
@media (min-width: 52rem) { .sols > :last-child:nth-child(odd) dl { grid-template-columns: 1fr 1fr; column-gap: 2.5rem; } }

.table-wrap { overflow-x: auto; background: var(--paper); border: var(--o); border-radius: 1.5rem; box-shadow: var(--hard); }
table { border-collapse: collapse; width: 100%; min-width: 44rem; font-size: .92rem; }
th, td { padding: .85rem 1rem; text-align: left; vertical-align: top; border-bottom: 2px solid #c9d6ea; }
thead th { background: var(--blue); color: var(--yellow); font-weight: 900; border-bottom: var(--o); white-space: nowrap; }
tbody th { font-weight: 900; }
tbody tr:last-child > * { border-bottom: 0; }
tbody tr:hover > * { background: #fff6bf; }
.scroll-hint { font-size: .85rem; font-weight: 700; margin-top: 1rem; }
@media (min-width: 52rem) { .scroll-hint { display: none; } }

.plist { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.5rem; counter-reset: p; }
@media (min-width: 46rem) { .plist { grid-template-columns: 1fr 1fr; } }
@media (min-width: 68rem) { .plist { grid-template-columns: repeat(3, 1fr); } }
.plist li { counter-increment: p; position: relative; background: var(--paper); border: var(--o); border-radius: 1.5rem; box-shadow: var(--hard); padding: 2.2rem 1.3rem 1.3rem; margin-top: 1rem; transition: transform .2s; }
.plist li:hover { transform: rotate(-1deg) translateY(-4px); }
.plist li::before { content: counter(p); position: absolute; top: -1.3rem; left: 1.1rem; width: 2.8rem; height: 2.8rem; display: grid; place-items: center; background: var(--yellow); border: var(--o); border-radius: 50%; font: italic 900 1.3rem/1 var(--display); rotate: -8deg; }
.plist h3 { color: var(--blue); margin-bottom: .5rem; }
.plist p { font-size: .95rem; }

/* ---------- Contact ---------- */
.split { display: grid; gap: 2rem; }
.split > * { min-width: 0; }
@media (min-width: 60rem) { .split { grid-template-columns: 19rem minmax(0, 1fr); gap: 3rem; align-items: start; } }
.form { display: grid; gap: 1.4rem; scroll-margin-top: 6rem; }
.form__pair { display: grid; gap: 1.4rem; }
@media (min-width: 40rem) { .form__pair { grid-template-columns: 1fr 1fr; } }
.field label { display: block; font-weight: 900; font-size: .9rem; margin-bottom: .35rem; }
.field label small { font-weight: 500; font-size: 1em; }
.req { color: #c4161c; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; color: var(--ink); background: var(--white);
  border: var(--o); border-radius: .9rem; padding: .7rem .9rem; transition: box-shadow .15s, transform .15s;
}
.field textarea { resize: vertical; min-height: 9rem; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; box-shadow: 5px 5px 0 var(--blue); transform: translate(-2px, -2px); }
.consent { display: grid; grid-template-columns: auto 1fr; gap: .9rem; padding: 1rem; background: #fff6bf; border: var(--o); border-radius: 1rem; font-size: .9rem; line-height: 1.5; cursor: pointer; }
.consent input { width: 1.25rem; height: 1.25rem; margin: .15rem 0 0; accent-color: var(--blue); }
.form__end { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; }
.form__end p { font-size: .85rem; }
.banner-msg { border: var(--o); border-radius: 1rem; padding: 1rem 1.1rem; font-weight: 800; }
.banner-msg--ok { background: #c9f5d6; }
.banner-msg--err { background: #ffd3cf; }
.policy { margin: 0; display: grid; gap: 1.4rem; }
.policy dt { font: italic 900 1.15rem/1.2 var(--display); color: var(--yellow); }
.policy dd { margin: .3rem 0 0; font-size: .95rem; }
@media (min-width: 52rem) { .policy { grid-template-columns: 1fr 1fr; column-gap: 3rem; } }

/* ---------- Page 404 ---------- */
.e404 { min-height: calc(100vh - 5rem); display: grid; place-items: center; padding-block: 2rem; text-align: center; }
.e404__code { display: flex; align-items: center; justify-content: center; gap: .1em; font: italic 900 clamp(6rem, 30vw, 17rem)/.9 var(--display); color: var(--yellow); text-shadow: var(--text-outline), 10px 12px 0 var(--ink); letter-spacing: -.04em; }
.e404__code span { display: inline-block; animation: jolt 3.5s steps(1) infinite; }
.e404__code span:last-child { animation-delay: 1.2s; }
@keyframes jolt { 0%, 100% { transform: none; } 92% { transform: translate(-6px, 3px) skewX(-8deg); } 94% { transform: translate(5px, -2px) skewX(6deg); } 96% { transform: translate(-2px, 1px); } }
/* Le zéro change selon la rubrique : ventilateur, ampoule ou enveloppe. Un clic lui ajoute .is-on */
.e404__zero { width: .82em; height: .82em; flex: none; overflow: visible; filter: drop-shadow(8px 10px 0 var(--ink)); cursor: pointer; transition: scale .12s; }
.e404__zero:active { scale: .95; }
.e404__zero .blades { --spin: 5s; }
.e404__zero:hover .blades, .e404__zero.is-on .blades { --spin: .3s; }
.bulb__glass { fill: var(--gray); transition: fill .2s; }
.bulb__rays { opacity: 0; transition: opacity .2s; }
.e404__zero.is-on .bulb__glass { fill: var(--yellow); }
.e404__zero.is-on .bulb__rays { opacity: 1; animation: led 1.6s ease-in-out infinite; }
.env__letter { transition: transform .35s cubic-bezier(.2, .9, .3, 1.4); }
.env__flap { transition: opacity .15s; }
.e404__zero.is-on .env__letter { transform: translateY(-15px); }
.e404__zero.is-on .env__flap { opacity: 0; }
.e404 .cloud { margin-inline: auto; }
.e404 .actions { justify-content: center; }
.e404__log { display: inline-block; text-align: left; margin-top: 1.5rem; font: 600 .85rem/1.7 ui-monospace, Consolas, monospace; background: var(--ink); color: #7dffa0; border-radius: 1rem; padding: 1rem 1.25rem; max-width: 100%; overflow-wrap: anywhere; }
.e404__log b { color: var(--yellow); }
.e404__log .cur { display: inline-block; width: .6em; height: 1em; background: #7dffa0; vertical-align: -.15em; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* ---------- Mouvement réduit ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}
