/* Tibok, site vitrine. Charte « jouet bonbon » du jeu : panneaux lilas, encre, nuit, miel. */

@font-face {
  font-family: "Baloo 2";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(/fonts/baloo2-800-latin.woff2) format("woff2");
}
@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 600 900;
  font-display: swap;
  src: url(/fonts/nunito-latin.woff2) format("woff2");
}

:root {
  --lilac-1: #ced3fa;
  --lilac-2: #b3bbf3;
  --groove: #939ee8;
  --ink: #241f5c;
  --ink-2: #3c3590;
  --night: #14183a;
  --night-2: #1d2250;
  --night-3: #2a3070;
  --honey: #ffc12e;
  --honey-hi: #ffd86b;
  --honey-edge: #c48a00;
  --blue: #3b8bf0;
  --green: #46c24a;
  --red: #f0533f;
  --on-night: #f4f5ff;
  --on-night-2: #c9cdf5;
  --radius: 28px;
  --radius-s: 18px;
  --font-title: "Baloo 2", "Arial Rounded MT Bold", "Trebuchet MS", system-ui, sans-serif;
  --font-text: "Nunito", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; overflow-wrap: break-word; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--night);
  background-image: radial-gradient(1200px 600px at 50% -10%, #262c6b 0%, rgba(38, 44, 107, 0) 70%);
  color: var(--on-night);
  font-family: var(--font-text);
  font-weight: 700;
  font-size: 1.0625rem;
  line-height: 1.6;
}

main { flex: 1; }

img { max-width: 100%; height: auto; }

h1, h2, h3 {
  font-family: var(--font-title);
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 .5em;
  letter-spacing: .01em;
}
h1 { font-size: clamp(2rem, 6vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2.1rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1em; }

a { color: var(--honey); text-underline-offset: .18em; text-decoration-thickness: 2px; }
a:hover { color: var(--honey-hi); }

:focus-visible {
  outline: 4px solid var(--honey);
  outline-offset: 3px;
  border-radius: 10px;
}

.skip {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 10;
  padding: 10px 18px;
  background: var(--honey);
  color: var(--ink);
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
}
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.wrap-narrow { max-width: 820px; }

/* ---------- En-tête ---------- */
.site-header { padding: 14px 0; }
.site-header .wrap { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; }
.brand img { display: block; width: 104px; height: auto; }
.brand-icon { width: 40px !important; height: 40px; border-radius: 12px; box-shadow: 0 3px 0 #0b0e26; }
.nav { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.nav a {
  color: var(--on-night);
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 800;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.nav a:hover { background: var(--night-3); color: #fff; }
.nav a[aria-current="page"] { background: var(--night-3); box-shadow: inset 0 -3px 0 var(--honey); }
.lang {
  border: 3px solid var(--lilac-2);
  min-width: 52px;
  justify-content: center;
}

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 10px 26px 12px;
  border: 0;
  border-radius: 999px;
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 1.15rem;
  text-decoration: none;
  color: var(--ink);
  background: linear-gradient(180deg, var(--honey-hi) 0%, var(--honey) 55%);
  box-shadow: inset 0 3px 0 rgba(255, 255, 255, .6), inset 0 -3px 0 rgba(0, 0, 0, .08), 0 6px 0 var(--honey-edge), 0 10px 18px rgba(0, 0, 0, .3);
  transition: transform .08s ease, box-shadow .08s ease;
  cursor: pointer;
}
.btn:hover { color: var(--ink); filter: brightness(1.04); }
.btn:active { transform: translateY(4px); box-shadow: inset 0 3px 0 rgba(255, 255, 255, .6), 0 2px 0 var(--honey-edge), 0 4px 8px rgba(0, 0, 0, .3); }
.btn-lilac {
  background: linear-gradient(180deg, #e3e6fd 0%, var(--lilac-1) 55%);
  box-shadow: inset 0 3px 0 rgba(255, 255, 255, .7), 0 6px 0 var(--groove), 0 10px 18px rgba(0, 0, 0, .25);
}
.btn-lilac:active { box-shadow: inset 0 3px 0 rgba(255, 255, 255, .7), 0 2px 0 var(--groove); }

/* ---------- Panneaux ---------- */
.panel {
  background: linear-gradient(180deg, var(--lilac-1) 0%, var(--lilac-2) 100%);
  color: var(--ink);
  border-radius: var(--radius);
  padding: 24px 20px;
  box-shadow: inset 0 4px 0 rgba(255, 255, 255, .65), inset 0 0 0 3px var(--groove), 0 8px 0 #6f79c9, 0 18px 30px rgba(0, 0, 0, .35);
}
.panel a { color: var(--ink-2); font-weight: 800; }
.panel a:hover { color: var(--ink); }
.panel h1, .panel h2, .panel h3 { color: var(--ink); }
.panel .muted { color: var(--ink-2); }

/* ---------- Accueil ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background-color: #6d6bc0;
  background-image: url(/img/cuisine.jpg);
  background-image: image-set(url(/img/cuisine.webp) type("image/webp"), url(/img/cuisine.jpg) type("image/jpeg"));
  background-size: cover;
  background-position: 50% 30%;
  border-radius: 0 0 40px 40px;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20, 24, 58, .45) 0%, rgba(20, 24, 58, .55) 55%, rgba(20, 24, 58, .92) 100%);
  pointer-events: none;
}
.hero .wrap {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  align-items: end;
  gap: 8px;
  padding-top: 28px;
}
.hero-text { padding-bottom: 8px; }
.hero-logo { width: min(300px, 70vw); height: auto; display: block; margin: 0 0 12px; filter: drop-shadow(0 6px 0 rgba(11, 14, 38, .45)); }
.hero h1 { color: #fff; text-shadow: 0 3px 0 rgba(11, 14, 38, .6); font-size: clamp(1.6rem, 5.2vw, 2.6rem); max-width: 18em; }
.hero-figure { justify-self: center; margin: 0; }
.hero-figure img { display: block; width: min(220px, 55vw); height: auto; filter: drop-shadow(0 14px 18px rgba(0, 0, 0, .45)); }

.soon {
  display: inline-flex;
  flex-direction: column;
  gap: 10px;
  margin: 8px 0 28px;
}
.soon-badge {
  display: inline-block;
  padding: 10px 20px 12px;
  border-radius: 999px;
  background: var(--night);
  color: #fff;
  font-family: var(--font-title);
  font-size: 1.1rem;
  box-shadow: inset 0 0 0 3px var(--honey), 0 5px 0 #0b0e26;
}
.store-badges:empty { display: none; }
.store-badges { display: flex; flex-wrap: wrap; gap: 12px; }

.features { padding-top: 48px; padding-bottom: 24px; }
.features h2 { text-align: center; margin-bottom: 28px; }
.feature-grid { display: grid; grid-template-columns: 1fr; gap: 28px; }
.feature { text-align: center; }
.feature-icon {
  width: 84px;
  height: 84px;
  margin: -54px auto 10px;
  border-radius: 26px;
  display: grid;
  place-items: center;
  box-shadow: inset 0 4px 0 rgba(255, 255, 255, .45), 0 6px 0 rgba(0, 0, 0, .25);
}
.feature-icon svg { width: 48px; height: 48px; }
.fi-honey { background: var(--honey); }
.fi-blue { background: var(--blue); }
.fi-green { background: var(--green); }
.feature { margin-top: 36px; }
.feature p { margin: 0; }

.cta { padding-top: 24px; padding-bottom: 56px; text-align: center; }
.cta p { color: var(--on-night-2); }

/* ---------- Pages de contenu ---------- */
.page { padding-top: 20px; padding-bottom: 56px; }
.page-head { margin: 8px 0 24px; }
.page-head p { color: var(--on-night-2); max-width: 40em; }
.prose h2 { font-size: 1.55rem; margin-top: 1.4em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.2em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1em; }
.prose li { margin: .3em 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 0 0 1em; font-size: .95rem; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; padding: 8px 10px; border-bottom: 2px solid var(--groove); vertical-align: top; }
.prose code { background: rgba(255, 255, 255, .55); padding: 1px 6px; border-radius: 6px; }
.prose blockquote { margin: 0 0 1em; padding: 8px 16px; border-left: 6px solid var(--groove); background: rgba(255, 255, 255, .35); border-radius: 0 12px 12px 0; }
.prose hr { border: 0; height: 3px; background: var(--groove); border-radius: 3px; margin: 1.6em 0; }

.stack > * + * { margin-top: 28px; }
.muted { color: var(--on-night-2); }

.steps { counter-reset: step; list-style: none; padding: 0 !important; }
.steps li {
  counter-increment: step;
  position: relative;
  padding: 4px 0 4px 56px !important;
  min-height: 44px;
  margin: 12px 0 !important;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--honey);
  color: var(--ink);
  font-family: var(--font-title);
  font-size: 1.2rem;
  box-shadow: inset 0 3px 0 rgba(255, 255, 255, .6), 0 4px 0 var(--honey-edge);
}
.path {
  display: inline-block;
  padding: 0 8px;
  border-radius: 8px;
  background: rgba(255, 255, 255, .6);
  white-space: normal;
}

.two-col { display: grid; grid-template-columns: 1fr; gap: 20px; }
.box {
  background: rgba(255, 255, 255, .5);
  border-radius: var(--radius-s);
  padding: 18px 18px 6px;
  box-shadow: inset 0 0 0 3px var(--groove);
}
.box-del { box-shadow: inset 0 0 0 3px var(--red); }
.box-keep { box-shadow: inset 0 0 0 3px var(--green); }
.box h3 { display: flex; align-items: center; gap: 8px; }
.dot { width: 14px; height: 14px; border-radius: 50%; display: inline-block; flex: none; }
.dot-red { background: var(--red); }
.dot-green { background: var(--green); }

.mail {
  display: block;
  word-break: break-word;
  font-family: var(--font-title);
  font-size: 1.3rem;
}

.note {
  border-radius: var(--radius-s);
  padding: 14px 16px;
  background: var(--night-2);
  color: var(--on-night);
  box-shadow: inset 0 0 0 3px var(--honey);
}
.panel .note { color: var(--on-night); }
.panel .note a { color: var(--honey); }

/* FAQ */
.faq details {
  background: rgba(255, 255, 255, .5);
  border-radius: var(--radius-s);
  box-shadow: inset 0 0 0 3px var(--groove);
  margin: 0 0 14px;
}
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 14px 52px 14px 18px;
  position: relative;
  font-family: var(--font-title);
  font-size: 1.15rem;
  min-height: 52px;
  border-radius: var(--radius-s);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--ink);
  color: #fff;
  font-size: 1.2rem;
  line-height: 1;
}
.faq details[open] summary::after { content: "\2212"; }
.faq .answer { padding: 0 18px 8px; }

/* ---------- Pied de page ---------- */
.site-footer {
  background: #0d1030;
  color: var(--on-night-2);
  padding: 32px 0 40px;
  margin-top: 24px;
  font-size: .95rem;
}
.site-footer nav ul { list-style: none; padding: 0; margin: 0 0 16px; display: flex; flex-wrap: wrap; gap: 4px 6px; }
.site-footer nav a { color: var(--on-night); display: inline-flex; min-height: 44px; align-items: center; padding: 0 8px; }
.site-footer p { margin: 0 8px .4em; }

/* ---------- 404 ---------- */
.lost { text-align: center; padding-top: 48px; padding-bottom: 64px; }
.lost .big { font-family: var(--font-title); font-size: clamp(4rem, 18vw, 8rem); color: var(--honey); line-height: 1; margin: 0; text-shadow: 0 6px 0 var(--honey-edge); }
.lost .btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-top: 24px; }

/* ---------- Écrans plus larges ---------- */
@media (min-width: 720px) {
  .panel { padding: 36px 40px; }
  .two-col { grid-template-columns: 1fr 1fr; }
  .feature-grid { grid-template-columns: repeat(3, 1fr); gap: 28px; }
  .hero .wrap { grid-template-columns: 1.3fr 1fr; padding-top: 48px; }
  .hero-text { padding-bottom: 32px; }
  .hero-figure img { width: min(300px, 32vw); }
}
@media (min-width: 1100px) {
  .hero { margin: 0 16px; border-radius: 40px; }
  .hero-figure img { width: 330px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
