/* Chibi Puppies - feuille de style unique.
   Les couleurs d'humeur (jade, bleu, orange) sont celles de la table LED du
   firmware. Elles n'apparaissent jamais comme chrome d'interface, seulement
   comme lumiere : aura, diffuseur, marqueur d'etat. */

:root {
  --lait: #F3F1F8;
  --trait: #CEC7E3;
  --encre: #241E38;
  --encre-doux: #58506F;
  --nuit: #100C1B;
  --nuit-clair: #EDE9F7;

  --joie: #3FD08C;
  --somme: #6C7DE8;
  --eveil: #FF7A45;
  --mood: var(--joie);

  --sans: "Gabarito", "Trebuchet MS", system-ui, sans-serif;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;

  --t-3xl: clamp(2.2rem, 5.4vw, 4.25rem);
  --t-2xl: clamp(1.85rem, 3.2vw, 2.7rem);
  --t-xl: clamp(1.25rem, 1.8vw, 1.5rem);
  --t-l: 1.1875rem;
  --t-m: 1.0625rem;
  --t-s: 0.9375rem;
  --t-xs: 0.8125rem;

  --gutter: clamp(1.25rem, 4vw, 3rem);
  --section: clamp(4.5rem, 8vw, 7.5rem);
  --header-h: 4rem;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--lait);
  color: var(--encre);
  font-family: var(--serif);
  font-size: var(--t-m);
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
}

p { margin: 0 0 1.1em; max-width: 60ch; }
h1, h2, h3 { margin: 0; }
img, svg { max-width: 100%; }

a { color: inherit; text-underline-offset: 0.18em; text-decoration-thickness: from-font; }

:focus-visible {
  outline: 3px solid var(--encre);
  outline-offset: 3px;
  border-radius: 2px;
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}

.skip {
  position: absolute; left: 0.5rem; top: -4rem; z-index: 50;
  background: var(--encre); color: var(--lait);
  font-family: var(--sans); font-weight: 700;
  padding: 0.7em 1.2em; border-radius: 999px; text-decoration: none;
  transition: top 0.15s ease;
}
.skip:focus { top: 0.5rem; }

.wrap { width: 100%; max-width: 74rem; margin-inline: auto; padding-inline: var(--gutter); }
/* Le bord gauche du texte ne bouge jamais d'une section a l'autre : le
   conteneur garde la meme largeur partout, et seuls les blocs qui n'ont pas
   de mesure propre (listes, questions) sont bornes. Un `.wrap.narrow > *`
   global ecraserait la longueur de ligne reglee sur chaque element. */
.wrap.narrow .later,
.wrap.narrow .faq { max-width: 48rem; }

.display { font-family: var(--sans); font-weight: 800; letter-spacing: -0.025em; line-height: 1.06; }
.h2 { font-size: var(--t-2xl); max-width: 20ch; margin-bottom: 0.6em; }
.intro { font-size: var(--t-l); color: var(--encre-doux); max-width: 56ch; margin-bottom: 2.8rem; }

/* --- En-tete -------------------------------------------------------------- */

.masthead {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--lait) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--trait);
}
.masthead-in {
  display: flex; align-items: center; gap: 1.5rem;
  min-height: var(--header-h);
}
.brand {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-family: var(--sans); font-weight: 800; font-size: 1.0625rem;
  letter-spacing: -0.02em; text-decoration: none; margin-right: auto;
}
.brand-mark { display: inline-flex; gap: 3px; }
.brand-mark span {
  width: 7px; height: 11px; border-radius: 4px;
  background: var(--encre);
}
.brand:hover .brand-mark span:first-child { height: 3px; margin-block: 4px; }

.nav { display: none; gap: 1.5rem; font-family: var(--sans); font-size: var(--t-s); font-weight: 500; }
.nav a { text-decoration: none; color: var(--encre-doux); }
.nav a:hover { color: var(--encre); text-decoration: underline; }

.lang {
  font-family: var(--sans); font-size: var(--t-s); font-weight: 700;
  text-decoration: none; padding: 0.4em 0.9em; border-radius: 999px;
  box-shadow: inset 0 0 0 1.5px var(--trait);
}
.lang:hover { box-shadow: inset 0 0 0 1.5px var(--encre); }

@media (min-width: 60rem) { .nav { display: flex; } }

/* --- Boutons -------------------------------------------------------------- */

.btn {
  display: inline-block;
  font-family: var(--sans); font-weight: 700; font-size: var(--t-m);
  line-height: 1.2; text-decoration: none;
  padding: 0.9em 1.6em; border-radius: 999px;
  transition: transform 0.12s ease, background-color 0.15s ease;
}
.btn-buy { background: var(--encre); color: var(--lait); }
.btn-buy:hover { background: #352C52; }
.btn-buy:active { transform: translateY(1px); }
.btn-quiet { box-shadow: inset 0 0 0 1.5px var(--trait); }
.btn-quiet:hover { box-shadow: inset 0 0 0 1.5px var(--encre); }
.btn-big { font-size: var(--t-l); padding: 1em 2rem; }

@media (prefers-reduced-motion: reduce) { .btn { transition: none; } }

/* --- L'appareil ----------------------------------------------------------- */

.device {
  display: block; width: 100%; max-width: 25rem; margin-inline: auto;
  background: none; border: 0; padding: 0; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.device:focus-visible { outline: 3px solid var(--encre); outline-offset: 10px; border-radius: 28px; }
.device .dev { display: block; width: 100%; height: auto; overflow: visible; }

.aura { opacity: var(--aura-op, 0.85); }
.aura-in { stop-color: var(--mood); stop-opacity: 0.78; }
.aura-mid { stop-color: var(--mood); stop-opacity: 0.26; }
.aura-out { stop-color: var(--mood); stop-opacity: 0; }
.diffuser { stroke: var(--mood); opacity: .5; }
.diffuser-glow { stroke: var(--mood); opacity: calc(var(--aura-op, 0.85) * 0.75); }

.device-still { cursor: default; }

/* --- Section hero --------------------------------------------------------- */

.hero { padding-block: clamp(1.5rem, 6vw, 5rem) var(--section); }
.hero-in { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: center; }

/* Sur petit ecran, le chiot passe devant le titre : la premiere chose que
   l'on doit voir, c'est lui qui regarde. */
.hero-stage { order: -1; }
.hero-stage .device { max-width: 14rem; }

@media (min-width: 60rem) {
  .hero-in { grid-template-columns: 1.05fr 0.95fr; }
  .hero-stage { order: 0; }
  .hero-stage .device { max-width: 27rem; }
}

.hero-text .display { font-size: var(--t-3xl); max-width: 17ch; }
.hero-text .display span { display: block; }

.lead { font-size: var(--t-l); margin-top: 1.4em; max-width: 46ch; color: var(--encre-doux); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; max-width: none; }
.hero-note { font-size: var(--t-s); color: var(--encre-doux); max-width: 40ch; }

.hero-stage { text-align: center; }

.readout {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-family: var(--sans); font-weight: 500; font-size: var(--t-s);
  color: var(--encre-doux);
  margin: 1.5rem 0 0.35rem; max-width: none;
}
.readout-dot {
  width: 0.6rem; height: 0.6rem; border-radius: 50%;
  background: var(--mood);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--mood) 22%, transparent);
}
.hint { font-size: var(--t-s); color: var(--encre-doux); margin-inline: auto; max-width: 34ch; }

/* --- Sections ------------------------------------------------------------- */

.section { padding-block: var(--section); }
.section-dark { background: var(--nuit); color: var(--nuit-clair); }
.section-dark .h2 { max-width: 16ch; }
.section-dark .big {
  font-family: var(--sans); font-weight: 700; font-size: var(--t-xl);
  color: var(--joie); max-width: 30ch; margin-bottom: 1.2em;
}
.section-dark p { color: color-mix(in srgb, var(--nuit-clair) 82%, transparent); }

/* --- Sa journee ----------------------------------------------------------- */

.day { display: grid; gap: clamp(2rem, 4vw, 3.5rem); }
@media (min-width: 60rem) {
  .day { grid-template-columns: 0.85fr 1.15fr; align-items: start; }
}

.day-stage {
  position: sticky; top: calc(var(--header-h) + 0.5rem); z-index: 5;
  padding-block: 0.75rem;
  background: var(--lait);
}
/* Le bandeau colle masque le texte qui passe dessous, puis se fond. */
.day-stage::after {
  content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 2rem;
  background: linear-gradient(var(--lait), transparent); pointer-events: none;
}
.day-stage .device { max-width: 10rem; }
@media (min-width: 60rem) {
  .day-stage { top: calc(var(--header-h) + 2.5rem); background: none; padding-block: 0; }
  .day-stage::after { display: none; }
  .day-stage .device { max-width: 20rem; }
}

.moments { list-style: none; margin: 0; padding: 0; }
.moment {
  padding: 1.6rem 0 1.6rem 1.25rem;
  border-top: 1px solid var(--trait);
  border-left: 3px solid transparent;
  transition: border-left-color 0.25s ease, padding-left 0.25s ease;
}
.moment:last-child { border-bottom: 1px solid var(--trait); }
.moment.is-active { border-left-color: var(--mood); }
.moment-name {
  font-family: var(--sans); font-weight: 700; font-size: var(--t-xl);
  letter-spacing: -0.015em; margin-bottom: 0.35em;
}
.moment p { color: var(--encre-doux); margin-bottom: 0; }
@media (prefers-reduced-motion: reduce) { .moment { transition: none; } }

/* --- Ce qu'il y a dedans -------------------------------------------------- */

.specs { margin: 0; }
.spec { padding-block: 1.35rem; border-top: 1px solid var(--trait); }
.spec:last-child { border-bottom: 1px solid var(--trait); }
.spec dt { font-family: var(--sans); font-weight: 700; font-size: var(--t-l); letter-spacing: -0.015em; }
.spec dd { margin: 0.2rem 0 0; color: var(--encre-doux); max-width: 52ch; }
@media (min-width: 48rem) {
  .spec { display: grid; grid-template-columns: minmax(0, 15rem) minmax(0, 1fr); gap: 0 2.5rem; }
  .spec dd { margin-top: 0; }
}


/* --- Ce qui arrivera par le Wi-Fi ----------------------------------------- */

.later { list-style: none; margin: 0 0 2rem; padding: 0; display: grid; gap: 1.5rem; }
.later-name { font-family: var(--sans); font-weight: 700; font-size: var(--t-l); margin-bottom: 0.2em; }
.later p { color: var(--encre-doux); margin-bottom: 0; }
.caveat {
  font-size: var(--t-s); color: var(--encre-doux);
  padding-left: 1rem; border-left: 3px solid var(--somme); max-width: 52ch;
}

/* --- Commander ------------------------------------------------------------ */

.buy { display: grid; gap: clamp(2rem, 4vw, 3.5rem); align-items: start; }
@media (min-width: 52rem) { .buy { grid-template-columns: 1.1fr 0.9fr; } }

.price { font-family: var(--sans); font-weight: 800; font-size: var(--t-3xl); letter-spacing: -0.03em; line-height: 1; margin-bottom: 0.25em; }
.price-note { color: var(--encre-doux); max-width: 34ch; }
.reassure { font-size: var(--t-s); color: var(--encre-doux); max-width: 40ch; margin-top: 1.2rem; }
.buy-offer .btn-big { margin-top: 0.5rem; }

.buy-box { padding-top: 0.5rem; }
.box-title { font-family: var(--sans); font-weight: 700; font-size: var(--t-l); margin-bottom: 0.6em; }
.box-list { list-style: none; margin: 0; padding: 0; }
.box-list li { padding-block: 0.8rem; border-top: 1px solid var(--trait); color: var(--encre-doux); }
.box-list li:last-child { border-bottom: 1px solid var(--trait); }

/* --- Questions ------------------------------------------------------------ */

.faq { margin-top: -0.5rem; }
.qa { border-top: 1px solid var(--trait); }
.qa:last-child { border-bottom: 1px solid var(--trait); }
.qa summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: baseline; gap: 1rem;
  font-family: var(--sans); font-weight: 700; font-size: var(--t-l);
  padding-block: 1.2rem;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after {
  content: "+"; margin-left: auto; font-weight: 500; color: var(--encre-doux);
  font-size: 1.4em; line-height: 1;
}
.qa[open] summary::after { content: "\2212"; }
.qa summary:focus-visible { outline-offset: -3px; }
.qa-body { padding-bottom: 1.2rem; }
.qa-body p { color: var(--encre-doux); margin-bottom: 0; }

/* --- Pied de page --------------------------------------------------------- */

.footer { border-top: 1px solid var(--trait); padding-block: 3rem 4rem; }
.footer-brand { font-family: var(--sans); font-weight: 800; letter-spacing: -0.02em; margin-bottom: 0.2em; }
.footer-line { color: var(--encre-doux); font-size: var(--t-s); margin-bottom: 1.5rem; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; font-family: var(--sans); font-size: var(--t-s); font-weight: 500; }
.footer-nav a { color: var(--encre-doux); text-decoration: none; }
.footer-nav a:hover { color: var(--encre); text-decoration: underline; }
.footer-copy { font-size: var(--t-xs); color: var(--encre-doux); margin: 1.75rem 0 0; }

/* --- Pages legales -------------------------------------------------------- */

.legal { max-width: 44rem; }
.legal p { max-width: 62ch; }
.legal a { text-decoration: underline; }

.legal-note {
  font-size: var(--t-s); color: var(--encre-doux);
  padding-left: 1rem; border-left: 3px solid var(--trait);
  margin-bottom: 2.5rem;
}

.legal-block { padding-top: 2.25rem; border-top: 1px solid var(--trait); margin-bottom: 2.25rem; }
.legal-h {
  font-family: var(--sans); font-weight: 700; font-size: var(--t-xl);
  letter-spacing: -0.015em; margin-bottom: 0.7em;
}
.legal-block p:last-child { margin-bottom: 0; }

.legal-list { margin: 0; }
.legal-list > div { padding-block: 0.7rem; border-bottom: 1px solid var(--trait); }
.legal-list > div:first-child { border-top: 1px solid var(--trait); }
.legal-list dt { font-family: var(--sans); font-weight: 500; font-size: var(--t-s); color: var(--encre-doux); }
.legal-list dd { margin: 0.15rem 0 0; }
@media (min-width: 40rem) {
  .legal-list > div { display: grid; grid-template-columns: minmax(0, 14rem) minmax(0, 1fr); gap: 0 1.5rem; }
  .legal-list dd { margin-top: 0; }
}

/* Marque editoriale, pas un element de design : elle doit sauter aux yeux
   tant que l'information manque, et disparaitre avec elle. */
.hole {
  background: #FFE7AE; color: #4E3A0B;
  padding: 0.05em 0.4em; border-radius: 3px;
  box-decoration-break: clone; -webkit-box-decoration-break: clone;
}

.legal-updated { font-size: var(--t-s); color: var(--encre-doux); padding-top: 2.25rem; border-top: 1px solid var(--trait); }

@media print {
  .masthead, .skip, .footer-nav { display: none; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .section { padding-block: 0; }
  .hole { background: none; outline: 1px solid #000; }
}

.legal-quote {
  margin: 1.2rem 0; padding: 1.2rem 1.4rem;
  border-left: 3px solid var(--trait); background: color-mix(in srgb, var(--trait) 22%, transparent);
  border-radius: 0 6px 6px 0;
}
.legal-quote p { margin-bottom: 0.8em; }
.legal-quote p:last-child { margin-bottom: 0; }
.footer-nav a[aria-current="page"] { color: var(--encre); text-decoration: underline; }

/* --- Page 404 ------------------------------------------------------------- */

.notfound { display: grid; gap: 2.5rem; justify-items: start; }
.notfound-art { width: 100%; max-width: 13rem; }
.notfound-art .dev { display: block; width: 100%; height: auto; }
.notfound-text h1 { margin-bottom: 0.5em; }
.notfound-text p { color: var(--encre-doux); }
.notfound-text + .notfound-text { padding-top: 2rem; border-top: 1px solid var(--trait); }
@media (min-width: 46rem) {
  .notfound { grid-template-columns: 13rem minmax(0, 1fr); column-gap: 3.5rem; }
  .notfound-art { grid-row: span 2; }
}

.etapes { counter-reset: etape; list-style: none; margin: 0 0 2rem; padding: 0; }
.etapes li {
  counter-increment: etape; position: relative;
  padding: 0 0 1.4rem 2.6rem; color: var(--encre-doux); max-width: 56ch;
}
.etapes li::before {
  content: counter(etape); position: absolute; left: 0; top: 0.05em;
  width: 1.7rem; height: 1.7rem; border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--sans); font-weight: 700; font-size: var(--t-s);
  color: var(--lait); background: var(--encre);
}
