/* ==========================================================================
   sloche.ca — feuille de style
   Trois encres de saveur (framboise bleue, cerise, limonade) imprimées en
   surimpression, comme une affiche risographiée. Le reste reste sobre.
   ========================================================================== */

@font-face {
  font-family: "Anybody";
  src: url("../fonts/anybody.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 50% 150%;
  font-display: swap;
}
@font-face {
  font-family: "Atkinson Hyperlegible Next";
  src: url("../fonts/atkinson.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Atkinson Hyperlegible Next";
  src: url("../fonts/atkinson-italic.woff2") format("woff2");
  font-weight: 200 800;
  font-style: italic;
  font-display: swap;
}

:root {
  --encre: #0E1A5E;
  --encre-douce: #3D4880;
  --bleu: #0096E6;      /* framboise bleue */
  --cerise: #FF2D6F;
  --limonade: #FFDC2E;
  --givre: #EAF5FC;
  --blanc: #FFFFFF;
  --trait: rgba(14, 26, 94, .22);

  --affiche: "Anybody", "Arial Black", system-ui, sans-serif;
  --texte: "Atkinson Hyperlegible Next", "Segoe UI", system-ui, sans-serif;

  --largeur: 1180px;
  --marge: clamp(20px, 5vw, 64px);
  --rayon: 14px;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 16px; }

body {
  margin: 0;
  background: var(--blanc);
  color: var(--encre);
  font-family: var(--texte);
  font-size: 1.0625rem;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}
@media (min-width: 720px) { body { font-size: 1.125rem; } }

img { max-width: 100%; height: auto; display: block; }
p { margin: 0 0 1em; max-width: 62ch; }
strong { font-weight: 700; }

a { color: inherit; text-decoration-thickness: 2px; text-underline-offset: 3px; text-decoration-color: var(--cerise); }
a:hover { text-decoration-color: currentColor; }

:focus-visible { outline: 3px solid var(--cerise); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--limonade); color: var(--encre); }

.evitement {
  position: absolute; left: 12px; top: -60px; z-index: 10;
  background: var(--encre); color: var(--blanc); padding: 10px 16px; border-radius: 8px;
}
.evitement:focus { top: 12px; }

/* ---------- En-tête ---------- */
.entete {
  position: relative; z-index: 3;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px var(--marge);
  max-width: calc(var(--largeur) + 2 * var(--marge));
  margin: 0 auto;
}
.entete__logo img { width: 186px; height: auto; }
.entete__nav { display: flex; align-items: center; gap: 22px; font-size: 1rem; }
.entete__nav a { text-decoration: none; }
.entete__nav a:hover { text-decoration: underline; text-decoration-color: var(--cerise); }
.entete__nav a:not(.entete__cta) { display: none; }
.entete__cta {
  background: var(--encre); color: var(--blanc);
  padding: 8px 16px; border-radius: 999px; font-weight: 700;
}
.entete__cta:hover { background: var(--bleu); color: var(--encre); text-decoration: none !important; }
@media (min-width: 760px) { .entete__logo img { width: 240px; } }
@media (min-width: 900px) { .entete__nav a:not(.entete__cta) { display: inline; } }

/* ---------- Ouverture ---------- */
.ouverture {
  position: relative;
  overflow: hidden;
  padding: 214px var(--marge) clamp(56px, 9vw, 112px);
  margin-top: -88px; /* les encres passent sous l'en-tête */
}
.ouverture__texte { position: relative; z-index: 2; max-width: var(--largeur); margin: 0 auto; }

/* Les trois encres : framboise bleue, cerise, limonade (surimpression) */
.encres {
  position: absolute; z-index: 1; pointer-events: none;
  width: 250px; aspect-ratio: 1; right: -56px; top: -40px;
}
.encre { position: absolute; border-radius: 50%; aspect-ratio: 1; mix-blend-mode: multiply; }
.encre--bleu     { background: var(--bleu);     width: 70%; left: 30%; top: 0; }
.encre--cerise   { background: var(--cerise);   width: 46%; left: 4%;  top: 28%; }
.encre--limonade { background: var(--limonade); width: 36%; left: 50%; top: 58%; }

@media (min-width: 560px) {
  .ouverture { padding-top: 250px; }
  .encres { width: 330px; right: -60px; top: -60px; }
}
@media (min-width: 900px) {
  .ouverture { padding-top: 150px; min-height: min(90vh, 860px); }
  .encres { width: 41vw; right: -5vw; top: 30px; }
}
@media (min-width: 1500px) {
  .encres { width: 620px; right: calc((100vw - 1180px) / 2 - 140px); }
}

/* Titre en surimpression : deux encres légèrement décalées */
.surimpression {
  position: relative;
  isolation: isolate;
  margin: 0 0 .42em;
  max-width: 11ch;
  font-family: var(--affiche);
  font-weight: 880;
  font-stretch: 118%;
  font-size: clamp(3rem, 13.4vw, 5.6rem);
  line-height: .9;
  letter-spacing: -.02em;
  hyphens: none;
}
.surimpression__base { color: var(--cerise); display: block; }
.surimpression__calque {
  position: absolute; inset: 0;
  color: var(--bleu);
  mix-blend-mode: multiply;
  transform: translate(.035em, .028em);
  animation: calage 900ms cubic-bezier(.2, .8, .2, 1) 150ms both;
}
@keyframes calage {
  from { transform: translate(-.22em, .16em); }
  to   { transform: translate(.035em, .028em); }
}

@media (min-width: 900px) { .surimpression { max-width: 52vw; } }
@media (min-width: 1500px) { .surimpression { max-width: 760px; } }

.ouverture__intro { font-size: 1.15em; max-width: 36ch; margin-bottom: 1.4em; }
@media (min-width: 900px) { .ouverture__intro { max-width: 40ch; } }

.tarifs-vedette { display: flex; flex-wrap: wrap; gap: 14px 40px; margin: 0 0 28px; }
.tarifs-vedette div { display: flex; flex-direction: column-reverse; }
.tarifs-vedette dt { font-size: .95rem; color: var(--encre-douce); }
.tarifs-vedette dd {
  margin: 0;
  font-family: var(--affiche); font-weight: 900; font-stretch: 150%;
  font-size: clamp(2.3rem, 7vw, 3.6rem); line-height: 1;
  word-spacing: -.28em;
}

/* ---------- Boutons ---------- */
.bouton {
  display: inline-flex; align-items: center; gap: 14px;
  background: var(--encre); color: var(--blanc);
  font-family: var(--affiche); font-weight: 760; font-stretch: 115%;
  font-size: 1.15rem; line-height: 1;
  padding: 18px 26px 18px 28px;
  border: 0; border-radius: 999px;
  text-decoration: none; cursor: pointer;
  transition: background-color .15s ease, color .15s ease;
}
.bouton::after { /* la pastille cerise du logo, au lieu d'une flèche */
  content: ""; width: .62em; height: .62em; border-radius: 50%;
  background: var(--cerise); flex: none;
}
.bouton:hover { background: var(--bleu); color: var(--encre); }
.bouton:hover::after { background: var(--encre); }
.bouton[disabled] { opacity: .55; cursor: progress; }
.bouton--large { width: 100%; justify-content: center; font-size: clamp(1.02rem, 4.3vw, 1.25rem); padding: 22px 24px; }

/* ---------- Blocs ---------- */
.bloc {
  padding-block: clamp(60px, 9vw, 112px);
  padding-inline: max(var(--marge), calc((100% - var(--largeur)) / 2));
}
.titre {
  font-family: var(--affiche); font-weight: 850; font-stretch: 122%;
  font-size: clamp(2.1rem, 6.4vw, 4.3rem); line-height: .95; letter-spacing: -.015em;
  margin: 0 0 .7em; max-width: 16ch;
}
.point { color: var(--cerise); }
.sous-titre {
  font-family: var(--affiche); font-weight: 780; font-stretch: 112%;
  font-size: 1.35rem; line-height: 1.1; margin: 0 0 .8em;
}
.note { font-size: .92em; color: var(--encre-douce); }

/* ---------- Prix ---------- */
.prix { border-top: 2px solid var(--encre); }
.prix__grille { display: grid; gap: 48px; }
@media (min-width: 900px) { .prix__grille { grid-template-columns: 1fr 1fr; gap: 72px; } }
.prix__colonne > .sous-titre:not(:first-child) { margin-top: 1.8em; }

.liste-prix { list-style: none; padding: 0; margin: 0 0 1.2em; }
.liste-prix li {
  display: grid;
  grid-template-columns: minmax(0, max-content) minmax(1.2em, 1fr) auto;
  align-items: end; column-gap: .4em;
  padding: .45em 0;
}
.liste-prix li::after {
  content: ""; order: 2; height: 0;
  border-bottom: 3px dotted var(--trait);
  margin-bottom: .38em;
}
.liste-prix li > span:first-child { order: 1; }
.liste-prix li > span:last-child {
  order: 3;
  font-family: var(--affiche); font-weight: 860; font-stretch: 140%;
  font-size: 1.45em; line-height: 1; white-space: nowrap;
  word-spacing: -.25em;
}

.zones { list-style: none; margin: 0 0 1em; padding: 0; display: grid; gap: 14px; }
.zones li { display: grid; grid-template-columns: 4.2em 1fr; gap: 12px; align-items: baseline; }
.zones strong {
  font-family: var(--affiche); font-weight: 860; font-stretch: 140%;
  font-size: 1.3em; line-height: 1; white-space: nowrap;
  word-spacing: -.25em;
}

/* ---------- Étapes ---------- */
.etapes { background: var(--blanc); }
.etapes__liste {
  list-style: none; margin: 0; padding: 0; counter-reset: etape;
  display: grid; gap: 36px;
}
@media (min-width: 760px) { .etapes__liste { grid-template-columns: repeat(2, 1fr); gap: 48px 64px; } }
@media (min-width: 1100px) { .etapes__liste { grid-template-columns: repeat(4, 1fr); gap: 40px; } }
.etapes__liste li { counter-increment: etape; }
.etapes__liste li::before {
  content: counter(etape);
  display: block;
  font-family: var(--affiche); font-weight: 900; font-stretch: 150%;
  font-size: 4.6rem; line-height: .9; margin-bottom: 12px;
  color: var(--bleu);
}
.etapes__liste li:nth-child(2)::before { color: var(--cerise); }
.etapes__liste li:nth-child(3)::before { color: #E8B800; }
.etapes__liste li:nth-child(4)::before { color: var(--encre); }
.etapes__liste h3 {
  font-family: var(--affiche); font-weight: 780; font-stretch: 112%;
  font-size: 1.3rem; line-height: 1.1; margin: 0 0 .5em;
}
.etapes__liste p { margin: 0; }

/* ---------- Réservation ---------- */
.reserver { background: var(--givre); }
.reserver__intro { margin-top: -1.4em; margin-bottom: 2em; }

.formulaire__colonnes { display: grid; gap: 28px; }
@media (min-width: 980px) {
  .formulaire__colonnes { grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: start; }
  .formulaire__droite { position: sticky; top: 20px; }
}

.champ-groupe { border: 0; margin: 0 0 32px; padding: 0; min-width: 0; }
.champ-groupe legend {
  font-family: var(--affiche); font-weight: 800; font-stretch: 115%;
  font-size: 1.3rem; line-height: 1.1; padding: 0; margin-bottom: 14px;
}

.options { display: grid; gap: 10px; }
.option {
  display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center;
  background: var(--blanc);
  border: 2px solid var(--trait); border-radius: var(--rayon);
  padding: 14px 16px; cursor: pointer;
  transition: border-color .12s ease;
}
.option:hover { border-color: var(--encre); }
.option:has(input:checked) { border-color: var(--encre); box-shadow: inset 0 0 0 1px var(--encre); }
.option input {
  appearance: none; -webkit-appearance: none; margin: 0;
  width: 26px; height: 26px; border-radius: 50%;
  border: 2px solid var(--encre); background: var(--blanc);
  display: grid; place-content: center; cursor: pointer;
}
.option input::before {
  content: ""; width: 14px; height: 14px; border-radius: 50%;
  background: var(--cerise); transform: scale(0); transition: transform .12s ease;
}
.option input:checked::before { transform: scale(1); }
.option__texte { display: flex; flex-direction: column; line-height: 1.25; }
.option__texte span { font-size: .9em; color: var(--encre-douce); }
.option__prix {
  font-family: var(--affiche); font-weight: 850; font-stretch: 135%;
  font-size: 1.15rem; white-space: nowrap;
  word-spacing: -.22em;
}
.option__prix--plage { word-spacing: normal; }

.champ { display: flex; flex-direction: column; gap: 6px; margin-top: 14px; }
.champ label { font-weight: 700; }
.facultatif { font-weight: 400; color: var(--encre-douce); }
.champ input, .champ select, .champ textarea {
  font: inherit; color: var(--encre);
  background: var(--blanc);
  border: 2px solid var(--trait); border-radius: 10px;
  padding: 12px 14px; min-height: 50px; width: 100%;
}
.champ select {
  appearance: none; -webkit-appearance: none; padding-right: 44px;
  background-image: linear-gradient(45deg, transparent 50%, var(--encre) 50%), linear-gradient(135deg, var(--encre) 50%, transparent 50%);
  background-position: calc(100% - 22px) 52%, calc(100% - 15px) 52%;
  background-size: 7px 7px; background-repeat: no-repeat;
}
.champ textarea { min-height: 96px; resize: vertical; }
.champ input:focus, .champ select:focus, .champ textarea:focus { border-color: var(--encre); outline: 3px solid var(--cerise); outline-offset: 1px; }
.champ input[aria-invalid="true"] { border-color: var(--cerise); }
.champ--cache { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.champs-livraison, .champs-saveurs { margin-top: 6px; }

/* Calendrier */
.calendrier {
  background: var(--blanc);
  border: 2px solid var(--encre); border-radius: 18px;
  padding: 16px 12px 14px;
}
@media (min-width: 520px) { .calendrier { padding: 20px 20px 16px; } }
.calendrier__tete { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.calendrier__mois {
  margin: 0; font-family: var(--affiche); font-weight: 800; font-stretch: 118%;
  font-size: 1.25rem; text-transform: none;
}
.calendrier__nav {
  width: 44px; height: 44px; border-radius: 50%;
  border: 2px solid var(--encre); background: var(--blanc); color: var(--encre);
  font-size: 1.6rem; line-height: 1; cursor: pointer; display: grid; place-content: center;
  padding-bottom: 3px;
}
.calendrier__nav:hover:not([disabled]) { background: var(--encre); color: var(--blanc); }
.calendrier__nav[disabled] { opacity: .25; cursor: default; }
.calendrier__jours-semaine, .calendrier__grille {
  display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; text-align: center;
}
.calendrier__jours-semaine { font-size: .82rem; color: var(--encre-douce); margin-bottom: 6px; }
.jour {
  aspect-ratio: 1; width: 100%; max-width: 50px; justify-self: center;
  border-radius: 50%; border: 2px solid transparent;
  background: transparent; color: var(--encre);
  font: 700 1rem/1 var(--texte); cursor: pointer;
  display: grid; place-content: center; position: relative;
}
.jour:not([aria-disabled="true"]) { border-color: var(--trait); }
.jour:hover:not([aria-disabled="true"]) { border-color: var(--encre); }
.jour[aria-disabled="true"] { color: rgba(14, 26, 94, .28); cursor: not-allowed; font-weight: 400; }
.jour--pris { text-decoration: line-through; text-decoration-thickness: 2px; background: var(--givre); }
.jour--plage { background: var(--limonade); color: var(--encre) !important; }
.jour--debut, .jour--fin { background: var(--cerise); color: var(--encre) !important; font-weight: 800; }
.jour--aujourdhui::after {
  content: ""; position: absolute; bottom: 5px; left: 50%; width: 5px; height: 5px;
  margin-left: -2.5px; border-radius: 50%; background: currentColor;
}
.calendrier__legende {
  list-style: none; display: flex; flex-wrap: wrap; gap: 6px 18px;
  margin: 12px 0 0; padding: 0; font-size: .85rem; color: var(--encre-douce);
}
.calendrier__legende li { display: flex; align-items: center; gap: 6px; }
.pastille { width: 14px; height: 14px; border-radius: 50%; display: inline-block; }
.pastille--libre { border: 2px solid var(--encre); }
.pastille--prise { background: var(--givre); border: 2px solid var(--trait); }
.pastille--choix { background: var(--cerise); }
.choix-dates { margin: 12px 0 0; font-weight: 700; }

/* Reçu */
.recu {
  background: var(--blanc);
  border: 2px solid var(--encre); border-radius: 18px;
  padding: 20px 20px 16px; margin-bottom: 18px;
}
.recu__titre {
  font-family: var(--affiche); font-weight: 800; font-stretch: 115%;
  font-size: 1.15rem; margin: 0 0 8px;
}
.recu__lignes { list-style: none; margin: 0 0 6px; padding: 0; }
.recu__lignes li { display: flex; justify-content: space-between; gap: 16px; padding: 5px 0; border-bottom: 1px solid var(--trait); }
.recu__lignes li span:last-child { white-space: nowrap; font-weight: 700; }
.recu__total {
  display: flex; justify-content: space-between; align-items: baseline; margin: 10px 0 2px; max-width: none;
  font-family: var(--affiche); font-weight: 900; font-stretch: 140%; font-size: 2rem; line-height: 1;
  word-spacing: -.22em;
}
.recu__total span:first-child { font-size: .55em; font-stretch: 115%; font-weight: 800; }
.recu__depot { margin: 6px 0 0; font-size: .92em; color: var(--encre-douce); max-width: none; }

.accord { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; margin-bottom: 16px; cursor: pointer; }
.accord input { width: 24px; height: 24px; margin: 2px 0 0; accent-color: var(--cerise); }

.erreur {
  background: var(--blanc); border-left: 6px solid var(--cerise);
  padding: 12px 14px; border-radius: 6px; font-weight: 700; max-width: none;
}
.confirmation {
  background: var(--blanc); border: 2px solid var(--encre); border-radius: 18px;
  padding: 28px; max-width: 640px;
}
.confirmation h3 {
  font-family: var(--affiche); font-weight: 880; font-stretch: 125%;
  font-size: 2rem; line-height: 1; margin: 0 0 .5em;
}
.confirmation:focus { outline: none; }

/* ---------- Recettes ---------- */
.recettes__intro { margin-top: -1.4em; margin-bottom: 2.2em; }
.documents { display: grid; grid-template-columns: repeat(2, minmax(0, 260px)); gap: 20px 28px; }
.document { display: flex; flex-direction: column; gap: 6px; text-decoration: none; }
.document img {
  border: 2px solid var(--encre); border-radius: 10px; margin-bottom: 8px;
  transition: transform .15s ease;
}
.document:hover img { transform: translateY(-4px) rotate(-1deg); }
.document__titre {
  font-family: var(--affiche); font-weight: 800; font-stretch: 115%; font-size: 1.15rem; line-height: 1.1;
  text-decoration: underline; text-decoration-color: var(--cerise); text-decoration-thickness: 3px; text-underline-offset: 4px;
}
.document__info { font-size: .92em; color: var(--encre-douce); }

.recettes__grille { display: grid; gap: 40px; }
@media (min-width: 900px) { .recettes__grille { grid-template-columns: auto 1fr; gap: 72px; align-items: start; } }
.menu-recettes .sous-titre { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.menu-recettes .sous-titre .note { font-family: var(--texte); font-weight: 400; font-stretch: 100%; font-size: .72em; }
.menu-recettes__liste {
  list-style: none; margin: 0 0 1.6em; padding: 0;
  columns: 2; column-gap: 28px;
}
.menu-recettes__liste li { padding: 4px 0 4px 20px; position: relative; break-inside: avoid; }
.menu-recettes__liste li::before {
  content: ""; position: absolute; left: 0; top: .72em;
  width: 9px; height: 9px; border-radius: 50%; background: var(--bleu);
}
.menu-recettes__liste + .sous-titre + .menu-recettes__liste li::before { background: var(--cerise); }

.photo-machine { margin: 28px 0 0; }
.photo-machine img { border-radius: 18px; border: 2px solid var(--encre); max-width: 420px; width: 100%; object-fit: cover; }

/* ---------- Questions ---------- */
.questions { border-top: 2px solid var(--encre); }
.faq { max-width: 820px; }
.faq details { border-bottom: 2px solid var(--trait); }
.faq summary {
  list-style: none; cursor: pointer;
  display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: center;
  padding: 18px 0; font-weight: 700; font-size: 1.1em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; width: 14px; height: 14px; border-radius: 50%;
  border: 2px solid var(--encre); transition: background-color .15s ease;
}
.faq details[open] summary::after { background: var(--cerise); border-color: var(--cerise); }
.faq details p { margin: -4px 0 20px; }

/* ---------- Conditions ---------- */
.conditions { background: var(--givre); }
.conditions__liste { max-width: 820px; margin: 0; padding-left: 1.4em; }
.conditions__liste li { padding: 6px 0 6px .3em; }
.conditions__liste li::marker { font-family: var(--affiche); font-weight: 850; font-stretch: 130%; color: var(--encre); }

/* ---------- Pied de page ---------- */
.pied {
  background: var(--encre); color: var(--blanc);
  padding: 64px max(var(--marge), calc((100% - var(--largeur)) / 2)) 32px;
}
.pied a { color: var(--blanc); }
.pied__haut { margin-bottom: 28px; }
.pied__logo { width: 260px; margin-bottom: 20px; }
.pied__autre a { font-weight: 700; }
.pied__confidentialite { max-width: 760px; border-top: 1px solid rgba(255, 255, 255, .25); padding-top: 14px; margin-bottom: 20px; }
.pied__confidentialite summary { cursor: pointer; font-weight: 700; }
.pied__confidentialite p { font-size: .92em; opacity: .9; margin-top: .8em; }
.pied__bas { font-size: .85em; opacity: .75; margin: 0; max-width: none; }

/* ---------- Divers ---------- */
[hidden] { display: none !important; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .surimpression__calque { animation: none; }
  *, *::before, *::after { transition: none !important; }
}

@media print {
  .entete__nav, .encres, .formulaire, .reserver__intro { display: none; }
}

/* Page 404 */
.ouverture--404 { min-height: 70vh; }

.insecable { white-space: nowrap; }
