/* Accueil Wilder Labs — socle commun aux trois directions (audioguide, atlas, casting).
 * Structure, composants et états. Chaque direction (audioguide.css, atlas.css, casting.css)
 * pose les variables de couleur / typographie et habille son haut de page. */

:root {
  --bg: #fff; --bg2: #f5f5f5; --ink: #111; --soft: #555; --line: #d9d9d9; --card: #fff;
  --acc: #0a5bd8; --on-acc: #fff; --link: #0a5bd8; --focus: #0a5bd8; --mark: var(--acc);
  --bub: #eee; --on-bub: #111; --bub-who: #555; --kick: #555; --bd: #111; --star: #8a5a00;
  --field-bg: #fff; --field-ink: #111; --field-bd: #6b6b6b;
  --hf: system-ui, sans-serif; --hw: 700; --hls: -.02em;
  --bf: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: ui-monospace, Menlo, Consolas, monospace;
  --br: 12px; --cr: 18px; --gut: clamp(16px, 4vw, 48px); --maxw: 1240px; --nav-h: 76px;
  color-scheme: light;
}
@media (max-width: 760px) { :root { --nav-h: 64px; } }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 17px/1.55 var(--bf); overflow-x: clip; -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
[hidden] { display: none !important; }
h1, h2, h3, h4 { font-family: var(--hf); font-weight: var(--hw); letter-spacing: var(--hls); margin: 0; text-wrap: balance; }
p { margin: 0; }
a { color: inherit; }
.sr-only {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}
.skip { position: absolute; left: -9999px; top: 8px; z-index: 300; background: #fff; color: #000; padding: 12px 18px; border-radius: 8px; font-weight: 700; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
[id] { scroll-margin-top: calc(var(--nav-h) + 12px); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gut); }
.wrap-narrow { max-width: 900px; }

/* ── Navigation ──────────────────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 50; display: flex; align-items: center; gap: clamp(14px, 2.4vw, 32px);
  height: var(--nav-h); padding: 0 var(--gut); background: var(--nav-bg, var(--bg));
}
.nav .brand { margin-right: auto; text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
.nav .l { display: inline-flex; align-items: center; min-height: 44px; padding: 0 4px; text-decoration: none; font-weight: 600; font-size: 15px; }
.nav .l:hover { text-decoration: underline; text-underline-offset: 7px; text-decoration-thickness: 2px; }
.menu-btn {
  display: none; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0;
  border: 0; border-radius: 12px; background: transparent; color: inherit; cursor: pointer;
}
.menu-btn .i-close { display: none; }
.menu-btn.is-open .i-open { display: none; }
.menu-btn.is-open .i-close { display: inline-flex; }
.menu-btn span { display: inline-flex; }
.menu-btn:hover { background: var(--menu-hover, rgba(127, 127, 127, .16)); }
.menu-panel {
  position: fixed; left: 0; right: 0; top: var(--nav-h); z-index: 49; display: flex; flex-direction: column;
  padding: 4px var(--gut) 18px; background: var(--nav-bg, var(--bg)); border-bottom: 1px solid var(--line);
  box-shadow: 0 18px 30px rgba(0, 0, 0, .18); max-height: calc(100dvh - var(--nav-h)); overflow-y: auto;
}
.menu-panel a { display: flex; align-items: center; min-height: 52px; text-decoration: none; font-weight: 700; font-size: 18px; border-bottom: 1px solid var(--line); }
.menu-panel a:last-child { border-bottom: 0; }
.menu-panel a:hover { text-decoration: underline; text-underline-offset: 6px; }
@media (max-width: 760px) {
  .nav .l, .nav .nav-cta { display: none; }
  .menu-btn { display: inline-flex; }
}
@media (min-width: 761px) { .menu-panel { display: none !important; } }

/* ── Boutons ─────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 22px;
  border: 2px solid transparent; border-radius: var(--br); font: 700 15px/1.1 var(--bf); text-decoration: none; cursor: pointer;
  transition: transform .15s ease, background-color .15s ease, color .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.btn svg { flex: none; }
.btn-p { background: var(--acc); color: var(--on-acc); }
.btn-g { background: transparent; color: var(--ink); border-color: var(--bd); }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn[disabled] { opacity: .65; cursor: progress; transform: none; }
.more { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 700; color: var(--link); text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 2px; }
.more:hover { text-decoration-thickness: 3px; }

/* ── Sections ────────────────────────────────────────────────────────────── */
.sec { padding: clamp(52px, 8vw, 104px) 0; }
.sec-alt { background: var(--bg2); }
.sec-head { max-width: 760px; margin-bottom: clamp(24px, 4vw, 48px); }
.sec-head h2, .contact-main h2 { font-size: clamp(1.85rem, 3.6vw, 2.9rem); line-height: 1.1; }
.sec-lead { margin-top: 14px; font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: var(--soft); max-width: 60ch; }
.kick { font: 500 12.5px/1.4 var(--kickf, var(--mono)); letter-spacing: .14em; text-transform: uppercase; color: var(--kick); margin-bottom: 12px; }
.sub { font-size: clamp(1.25rem, 2vw, 1.6rem); line-height: 1.2; margin: clamp(36px, 5vw, 64px) 0 20px; }

/* ── Scènes produit : Maya, sa bulle (texte fixe), puis le détail ─────────── */
.scene {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); grid-template-areas: "maya head" "maya body";
  column-gap: clamp(24px, 5vw, 72px); row-gap: 18px; align-items: start; padding: clamp(36px, 6vw, 72px) 0; border-top: 1px solid var(--line);
}
.scene:first-child { border-top: 0; padding-top: 0; }
.scene:nth-child(even) { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); grid-template-areas: "head maya" "body maya"; }
.scene-head { grid-area: head; align-self: end; }
.scene-head h3 { display: flex; align-items: center; gap: 14px; font-size: clamp(1.9rem, 3.4vw, 2.8rem); line-height: 1.05; }
.scene-tag { margin-top: 10px; font-size: 1.12rem; color: var(--soft); max-width: 48ch; }
.scene-maya { grid-area: maya; align-self: end; display: flex; flex-direction: column; align-items: center; gap: 18px; min-width: 0; }
.scene .maya, .contact-maya .maya { display: block; width: auto; height: clamp(300px, 34vw, 440px); max-width: 100%; object-fit: contain; }
.scene-body { grid-area: body; }
.scene-lead { font-size: 1.12rem; max-width: 62ch; }
.ticks { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 10px; max-width: 62ch; }
.ticks li { position: relative; padding-left: 26px; }
.ticks li::before { content: ""; position: absolute; left: 3px; top: .6em; width: 10px; height: 10px; border-radius: 50%; background: var(--mark); }
.presse { margin-top: 16px; font-size: .95rem; color: var(--soft); }
.presse a { color: var(--link); font-weight: 700; text-underline-offset: 4px; }
.scene-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

.bubble {
  position: relative; width: 100%; max-width: 440px; padding: 14px 18px; border-radius: var(--cr);
  background: var(--bub); color: var(--on-bub); font: 500 16px/1.45 var(--bf); transition: box-shadow .25s ease;
}
.bubble .who { font: 600 11px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--bub-who); margin-bottom: 6px; }
.bubble::after {
  content: ""; position: absolute; bottom: -8px; left: 50%; width: 18px; height: 18px; margin-left: -9px;
  background: inherit; transform: rotate(45deg); border-radius: 3px;
}
.bubble.flash { box-shadow: 0 0 0 4px var(--acc); }

@media (max-width: 760px) {
  .scene, .scene:nth-child(even) { grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "maya" "body"; row-gap: 16px; }
  .scene-maya { flex-direction: row-reverse; align-items: flex-end; gap: 12px; }
  .scene .maya, .contact-maya .maya { width: 104px; height: auto; flex: none; }
  .scene-maya .bubble { flex: 1; width: auto; max-width: none; margin-bottom: 24px; font-size: 15px; }
  .scene-maya .bubble::after { left: -7px; right: auto; bottom: 26px; margin: 0; width: 14px; height: 14px; }
}

/* ── Cartes ──────────────────────────────────────────────────────────────── */
.cards { display: grid; gap: clamp(14px, 2vw, 22px); }
.cards-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cards-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cards-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1000px) { .cards-4, .cards-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 680px) { .cards-2, .cards-3, .cards-4 { grid-template-columns: minmax(0, 1fr); } }
.plain { list-style: none; margin: 0; padding: 0; }
.card {
  display: block; padding: clamp(18px, 2.2vw, 26px); border: 1px solid var(--line); border-radius: var(--cr);
  background: var(--card); color: inherit; text-decoration: none; transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.card h3, .card h4 { font-size: 1.18rem; line-height: 1.25; margin-bottom: 8px; }
.card p { color: var(--soft); }
a.card:hover { transform: translateY(-2px); border-color: var(--ink); }
.sec-alt .card { background: var(--card-alt, var(--card)); }
.ex .kick { margin-bottom: 8px; }
.ex .tags, .tags { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 0; padding: 0; }
.tags li { padding: 4px 12px; border: 1px solid var(--line); border-radius: 999px; font-size: .82rem; color: var(--soft); }
.ex-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; min-height: 44px; font-weight: 700; color: var(--link); }
.post .tag { display: inline-block; margin-bottom: 12px; padding: 3px 12px; border: 1px solid var(--ink); border-radius: 999px; font: 600 11px/1.5 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink); }
.post h4 { color: var(--ink); }
.post .meta { margin-top: 14px; font: 500 12.5px/1.4 var(--mono); color: var(--soft); }

/* ── Retours terrain : avis réels + blog ─────────────────────────────────── */
.avis { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 16px; }
.avis-item { display: flex; flex-direction: column; gap: 12px; }
.avis-item blockquote { margin: 0; flex: 1; color: var(--ink); font-size: 1.02rem; }
.avis-item blockquote p { color: inherit; }
.avis-by { font-size: .9rem; color: var(--soft); }
.avis-by b { color: var(--ink); }
.stars { color: var(--star); letter-spacing: 2px; font-size: 1.05rem; line-height: 1; }
.stars .off { opacity: .3; }
.avis-vide { max-width: 60ch; color: var(--soft); font-size: 1.05rem; }
.avis-cta { margin: 22px 0 0; }
.blog-head { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; margin-top: clamp(36px, 5vw, 64px); }
.blog-head .sub { margin: 0 0 20px; }
.blog-head .more { margin-bottom: 14px; }

/* ── FAQ ─────────────────────────────────────────────────────────────────── */
.faq { display: grid; gap: 10px; }
.faq-item { border: 1px solid var(--line); border-radius: 14px; background: var(--card); transition: border-color .15s ease; }
.faq-item:hover { border-color: var(--ink); }
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 56px; padding: 12px 20px;
  font-weight: 700; cursor: pointer; list-style: none; border-radius: 14px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; flex: none; width: 28px; text-align: center; font: 600 26px/1 var(--bf); }
.faq-item[open] summary::after { content: "\2013"; }
.faq-item p { padding: 0 20px 20px; max-width: 72ch; color: var(--soft); }

/* ── Contact ─────────────────────────────────────────────────────────────── */
.contact-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(24px, 5vw, 72px); align-items: end; }
.contact-maya { display: flex; flex-direction: column; align-items: center; gap: 18px; min-width: 0; }
/* .contact-maya porte aussi .scene-maya, dont « grid-area: maya » créait des colonnes implicites dans .contact-grid
   (formulaire écrasé à 70-170 px en largeur bureau) : placement automatique ici. */
.contact-grid > .contact-maya { grid-area: auto; }
.contact-main { min-width: 0; }
.form { display: grid; gap: 16px; margin-top: 28px; max-width: 640px; }
.field { display: grid; gap: 6px; border: 0; margin: 0; padding: 0; min-width: 0; }
.field label, .field legend { font-weight: 700; font-size: .95rem; padding: 0; }
input[type="text"], input[type="email"], textarea {
  width: 100%; min-height: 48px; padding: 12px 14px; border: 2px solid var(--field-bd); border-radius: 10px;
  background: var(--field-bg); color: var(--field-ink); font: inherit; transition: border-color .15s ease, box-shadow .15s ease;
}
textarea { min-height: 140px; resize: vertical; }
input[type="text"]:hover, input[type="email"]:hover, textarea:hover { border-color: var(--ink); }
input[type="text"]:focus-visible, input[type="email"]:focus-visible, textarea:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
input:user-invalid, textarea:user-invalid { border-color: #b42318; }
.form-actions { display: flex; }
.form-msg { padding: 0; font-weight: 600; }
.form-msg:empty { margin-top: -16px; }
.form-msg.ok, .form-msg.ko { padding: 14px 18px; border-radius: 12px; border: 2px solid; }
.form-msg.ok { color: #0b5a2a; background: #e3f6ea; border-color: #0b5a2a; }
.form-msg.ko { color: #8a1c12; background: #fdebe9; border-color: #8a1c12; }
@media (max-width: 760px) {
  .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .contact-maya { flex-direction: row-reverse; align-items: flex-end; gap: 12px; }
  .contact-maya .bubble { flex: 1; width: auto; max-width: none; margin-bottom: 24px; font-size: 15px; }
  .contact-maya .bubble::after { left: -7px; right: auto; bottom: 26px; margin: 0; width: 14px; height: 14px; }
}

/* ── Pied de page ────────────────────────────────────────────────────────── */
.foot { padding: 36px 0 44px; border-top: 1px solid var(--line); color: var(--soft); font-size: .95rem; }
.foot-brand { color: var(--ink); font-weight: 700; margin-bottom: 8px; }
.foot-nav { display: flex; flex-wrap: wrap; gap: 0 6px; margin: 6px 0 10px; }
.foot-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 8px; margin-left: -8px; color: var(--soft); text-underline-offset: 4px; }
.foot-nav a:hover { color: var(--ink); }
.foot-copy { font-size: .85rem; }

/* ── Fenêtre « Donner mon avis » ─────────────────────────────────────────── */
.dlg { width: calc(100% - 32px); max-width: 520px; padding: 0; border: 0; border-radius: var(--cr); background: var(--card); color: var(--ink); box-shadow: 0 30px 80px rgba(0, 0, 0, .4); }
.dlg::backdrop { background: rgba(8, 8, 14, .62); }
.dlg-form { display: grid; gap: 14px; padding: 24px; max-height: calc(100dvh - 32px); overflow-y: auto; }
.dlg-form h2 { font-size: 1.5rem; }
.dlg-sub { color: var(--soft); margin-top: -6px; }
.dlg-msg { font-weight: 600; }
.dlg-msg.ok { color: #0b5a2a; } .dlg-msg.ko { color: #8a1c12; }
.note-row { display: flex; gap: 8px; flex-wrap: wrap; }
.note-row label { position: relative; font-weight: 700; }
.note-row input { position: absolute; opacity: 0; width: 44px; height: 44px; margin: 0; cursor: pointer; }
.note-row span { display: grid; place-items: center; width: 44px; height: 44px; border: 2px solid var(--field-bd); border-radius: 50%; background: var(--field-bg); color: var(--field-ink); transition: background-color .15s ease, color .15s ease; }
.note-row input:checked + span { background: var(--acc); color: var(--on-acc); border-color: var(--acc); }
.note-row input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.consent { display: flex; align-items: flex-start; gap: 10px; font-size: .9rem; color: var(--soft); line-height: 1.5; }
.consent input { flex: none; width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--acc); }
.consent a { color: var(--link); }
.dlg-actions { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; margin-top: 4px; }
