@font-face{font-family:"Bricolage Grotesque Variable";font-style:normal;font-display:swap;font-weight:200 800;font-stretch:75% 100%;src:url(/fonts/bricolage-grotesque-latin-wdth-normal.woff2) format("woff2-variations");}
@font-face{font-family:"Karla Variable";font-style:normal;font-display:swap;font-weight:200 800;src:url(/fonts/karla-latin-wght-normal.woff2) format("woff2-variations");}
/* Tapatte. Idée de mise en page : la page est un seuil.
   En haut, dehors sous la pluie. Le tapis est posé sur la limite.
   En dessous, le sol propre de la maison. */
:root {
  color-scheme: light;
  --pluie: #16303f;        /* dehors, bleu mouillé */
  --pluie-nuit: #0e222d;   /* pied de page */
  --sol: #f4f6f5;          /* carrelage propre */
  --joint: #e1e7e4;        /* joints du carrelage */
  --encre: #11222c;        /* texte */
  --cire: #ffc928;         /* jaune ciré, réservé aux actions */
  --cire-ombre: #b98a00;
  --boue: #7a5535;
  --boue-claire: #c2915f;
  --blanc: #ffffff;
  --gris-doux: #5a6a73;    /* texte secondaire */
  --titre: "Bricolage Grotesque Variable", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --texte: "Karla Variable", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  --gouttiere: clamp(16px, 5vw, 40px);
  --large: 1080px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--sol);
  color: var(--encre);
  font-family: var(--texte);
  font-size: 1.0625rem;
  line-height: 1.55;
}
img, svg { max-width: 100%; }
[hidden] { display: none !important; }
a { color: inherit; text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible,
textarea:focus-visible, summary:focus-visible, label:focus-within {
  outline: 3px solid var(--cire);
  outline-offset: 3px;
}
h1, h2, h3 { font-family: var(--titre); text-wrap: balance; margin: 0; }
h1, h2 { font-stretch: 75%; font-weight: 800; letter-spacing: -0.01em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }

.invisible {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}
.evitement {
  position: absolute; left: -999px; top: 8px; z-index: 50;
  background: var(--cire); color: var(--encre); padding: 10px 14px; border-radius: 8px;
}
.evitement:focus { left: 8px; }

/* Bandeau et en-tête */
.bandeau {
  background: var(--cire); color: var(--encre);
  font-size: .875rem; font-weight: 600; text-align: center;
  padding: 7px var(--gouttiere);
}
.entete {
  background: var(--pluie); color: var(--blanc);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px var(--gouttiere) 6px;
}
.marque {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--titre); font-stretch: 75%; font-weight: 800;
  font-size: 1.75rem; line-height: 1; letter-spacing: -0.02em;
  color: inherit; text-decoration: none; margin: 0;
}
.marque-patte { width: 26px; height: 26px; fill: var(--cire); transform: rotate(-14deg); }

/* Boutons */
.bouton {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--cire); color: var(--encre);
  font-family: var(--titre); font-stretch: 87%; font-weight: 700; font-size: 1.05rem; line-height: 1.1;
  text-decoration: none; text-align: center;
  padding: 13px 22px; border: 0; border-radius: 12px; cursor: pointer;
  box-shadow: 0 4px 0 var(--cire-ombre);
  transition: transform .12s ease, box-shadow .12s ease;
}
.bouton:hover { transform: translateY(-1px); box-shadow: 0 5px 0 var(--cire-ombre); }
.bouton:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--cire-ombre); }
.bouton-petit { font-size: .95rem; padding: 9px 16px; box-shadow: 0 3px 0 var(--cire-ombre); }
.bouton-grand { font-size: 1.25rem; padding: 17px 28px; }
.bouton-large { width: 100%; }

/* Dehors : le héros */
.dehors {
  position: relative;
  background-color: var(--pluie);
  background-image: repeating-linear-gradient(103deg, rgba(255,255,255,.055) 0 1px, transparent 1px 17px);
  color: var(--blanc);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 58px;
  column-gap: 10px;
  padding: 18px var(--gouttiere) 0;
}
.dehors-texte { grid-column: 1; display: grid; gap: 18px; align-content: start; padding-bottom: 30px; }
.dehors h1 {
  font-size: clamp(3.3rem, 16.5vw, 8.2rem);
  line-height: .93;
  text-transform: uppercase;
}
.ici { color: var(--cire); display: inline-block; }
.chapo { font-size: 1.15rem; line-height: 1.45; max-width: 34ch; color: #dfe8ec; }
.dehors-actions { display: grid; gap: 10px; justify-items: start; }
.prix-depart { font-size: .95rem; color: #c5d3da; }

.piste { grid-column: 2; grid-row: 1; position: relative; min-height: 340px; }
.trace { position: absolute; width: 34px; height: 34px; fill: var(--boue-claire); transform: rotate(var(--r, 180deg)); }
.t1 { top: 2%;  left: 0;    --r: 172deg; }
.t2 { top: 17%; left: 24px; --r: 190deg; }
.t3 { top: 33%; left: 0;    --r: 170deg; }
.t4 { top: 49%; left: 24px; --r: 192deg; }
.t5 { top: 65%; left: 2px;  --r: 174deg; }
.t6 { top: 82%; left: 22px; --r: 188deg; }

.seuil {
  grid-column: 1 / -1; margin: 0 0 -74px; position: relative; z-index: 2;
  display: grid; gap: 10px; justify-items: center;
}
.tapis {
  --fibre: #8d989e; --fibre-claire: #aab4b9; --fibre-sombre: #717c82;
  position: relative;
  width: min(100%, 520px);
  aspect-ratio: 8 / 5;
  border-radius: 22px;
  background-color: var(--fibre-sombre);
  background-image:
    radial-gradient(circle at 42% 38%, var(--fibre-claire) 0 12%, var(--fibre) 46%, transparent 62%),
    radial-gradient(circle at 42% 38%, var(--fibre-claire) 0 12%, var(--fibre) 46%, transparent 62%);
  background-size: 20px 20px;
  background-position: 0 0, 10px 10px;
  box-shadow: 0 18px 30px rgba(8, 20, 28, .35), inset 0 0 0 6px rgba(0,0,0,.10), inset 0 0 26px rgba(0,0,0,.12);
  transition: background-color .3s ease;
}
.tapis[data-coloris="camel"] { --fibre: #c59c6e; --fibre-claire: #dab78c; --fibre-sombre: #a98155; }
/* Le tapis se touche : chaque appui pose une empreinte boueuse, que le tapis absorbe. */
.tapis { overflow: hidden; cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: transparent; -webkit-user-select: none; user-select: none; }
.empreinte {
  position: absolute; width: 48px; height: 48px; margin: -24px 0 0 -24px;
  fill: #4a321d; pointer-events: none; opacity: 0;
  transform: rotate(var(--r, 180deg));
  animation: absorbe 2s ease-out forwards;
}
.empreinte-calme { animation: none; opacity: .5; }
@keyframes absorbe {
  0%   { opacity: 0;   transform: rotate(var(--r, 180deg)) scale(.55); }
  9%   { opacity: .95; transform: rotate(var(--r, 180deg)) scale(1.06); }
  20%  { opacity: .9;  transform: rotate(var(--r, 180deg)) scale(1); }
  100% { opacity: 0;   transform: rotate(var(--r, 180deg)) scale(1); }
}
.tapis-invite {
  position: absolute; left: 12px; bottom: 12px; pointer-events: none;
  background: rgba(17, 34, 44, .84); color: var(--blanc);
  font-size: .8rem; font-weight: 700; line-height: 1; padding: 7px 11px; border-radius: 999px;
}
.sur-tapis { fill: #4d3520; opacity: .2; }
.s1 { top: 5%;  left: 74%; --r: 176deg; }
.s2 { top: 28%; left: 64%; --r: 192deg; opacity: .09; }
.seuil figcaption {
  font-size: .9rem; color: var(--gris-doux); text-align: center;
  background: var(--sol); padding: 2px 10px; border-radius: 6px;
}

@media (prefers-reduced-motion: no-preference) {
  .piste .trace { animation: pas .35s ease-out both; }
  .t1 { animation-delay: .15s; } .t2 { animation-delay: .4s; } .t3 { animation-delay: .65s; }
  .t4 { animation-delay: .9s; }  .t5 { animation-delay: 1.15s; } .t6 { animation-delay: 1.4s; }
  .s1 { animation: bu 1.6s ease-out 1.65s both; }
  .s2 { animation: bu2 1.6s ease-out 1.9s both; }
  @keyframes pas { from { opacity: 0; transform: rotate(var(--r)) scale(.5); } to { opacity: 1; transform: rotate(var(--r)) scale(1); } }
  @keyframes bu  { 0% { opacity: 0; } 25% { opacity: .85; } 100% { opacity: .2; } }
  @keyframes bu2 { 0% { opacity: 0; } 25% { opacity: .5; }  100% { opacity: .09; } }
}

/* Dedans : le sol propre */
.dedans {
  background-color: var(--sol);
  background-image:
    linear-gradient(var(--joint) 1px, transparent 1px),
    linear-gradient(90deg, var(--joint) 1px, transparent 1px);
  background-size: 104px 104px;
  padding: 118px var(--gouttiere) 56px;
  display: grid; gap: 64px;
}
.bloc { width: min(100%, var(--large)); margin-inline: auto; display: grid; gap: 22px; }
.bloc > h2 { font-size: clamp(2.1rem, 8.6vw, 3.6rem); line-height: .95; text-transform: uppercase; }
.sous-titre { color: var(--gris-doux); max-width: 46ch; }

.trio { list-style: none; display: grid; gap: 0; }
.trio li { display: grid; gap: 6px; padding: 18px 0; border-top: 2px solid var(--encre); }
.trio h3, .etapes h3 { font-size: 1.3rem; font-weight: 700; font-stretch: 87%; line-height: 1.15; }
.trio p, .etapes p { color: #34454f; max-width: 52ch; }

.etapes { list-style: none; counter-reset: pas; display: grid; gap: 22px; }
.etapes li { counter-increment: pas; display: grid; grid-template-columns: 58px minmax(0, 1fr); column-gap: 14px; row-gap: 4px; }
.etapes li::before {
  content: counter(pas);
  grid-row: 1 / span 2;
  font-family: var(--titre); font-stretch: 75%; font-weight: 800; font-size: 3.6rem; line-height: .8;
  color: var(--encre);
  border-bottom: 6px solid var(--cire); align-self: start; padding-bottom: 8px; text-align: center;
}
.etapes h3, .etapes p { grid-column: 2; }

/* Offres */
.offres { scroll-margin-top: 16px; }
.achat { display: grid; gap: 22px; background: var(--blanc); border: 2px solid var(--encre); border-radius: 20px; padding: clamp(16px, 4vw, 30px); }
.achat fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.lots { display: grid; gap: 12px; }
.lot { position: relative; display: block; cursor: pointer; }
.lot input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.lot-carte {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 12px; row-gap: 2px; align-items: baseline;
  border: 2px solid #c9d2d0; border-radius: 14px; padding: 14px 16px; background: var(--blanc);
  transition: border-color .15s ease, background-color .15s ease;
}
.lot input:checked + .lot-carte { border-color: var(--encre); background: #fff8dc; box-shadow: inset 6px 0 0 var(--cire); }
.lot-nom { font-family: var(--titre); font-stretch: 87%; font-weight: 700; font-size: 1.3rem; line-height: 1.1; }
.lot-prix { font-family: var(--titre); font-stretch: 87%; font-weight: 700; font-size: 1.3rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.lot-usage { grid-column: 1; color: var(--gris-doux); font-size: .95rem; }
.lot-unite { grid-column: 2; grid-row: 2; color: var(--gris-doux); font-size: .9rem; text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.lot-etiquette {
  grid-column: 1 / -1; justify-self: start; margin-top: 6px;
  background: var(--encre); color: var(--blanc); font-size: .8rem; font-weight: 700; padding: 3px 9px; border-radius: 6px;
}

.coloris { display: grid; gap: 10px; }
.coloris legend { font-weight: 700; padding: 0; margin-bottom: 10px; }
.pastilles { display: flex; flex-wrap: wrap; gap: 12px; }
.pastille { position: relative; display: inline-flex; align-items: center; gap: 10px; cursor: pointer; border: 2px solid #c9d2d0; border-radius: 12px; padding: 8px 14px 8px 8px; background: var(--blanc); }
.pastille input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.pastille:has(input:checked) { border-color: var(--encre); background: #fff8dc; }
.pastille-tissu {
  width: 42px; height: 30px; border-radius: 7px;
  background-color: var(--f);
  background-image:
    radial-gradient(circle at 42% 38%, var(--fc) 0 14%, var(--f) 50%, transparent 64%),
    radial-gradient(circle at 42% 38%, var(--fc) 0 14%, var(--f) 50%, transparent 64%);
  background-size: 10px 10px;
  background-position: 0 0, 5px 5px;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.12);
}
.pastille-tissu[data-coloris="gris"] { --f: #8d989e; --fc: #b4bdc2; background-color: #717c82; }
.pastille-tissu[data-coloris="camel"] { --f: #c59c6e; --fc: #e2c199; background-color: #a98155; }
.aide { font-size: .9rem; color: var(--gris-doux); }

.alerte { background: #fff3c2; border-left: 6px solid var(--cire); padding: 12px 14px; border-radius: 8px; font-size: .95rem; }
.assurances { list-style: none; display: grid; gap: 6px; font-size: .95rem; color: #34454f; }
.assurances li { padding-left: 22px; position: relative; }
.assurances li::before { content: ""; position: absolute; left: 0; top: .45em; width: 11px; height: 6px; border-left: 3px solid var(--encre); border-bottom: 3px solid var(--encre); transform: rotate(-45deg); }

/* Fiche, FAQ, garanties */
.fiche { margin: 0; display: grid; }
.fiche div { display: grid; grid-template-columns: minmax(96px, 30%) minmax(0, 1fr); gap: 14px; padding: 13px 0; border-top: 1px solid #c3cdca; }
.fiche div:last-child { border-bottom: 1px solid #c3cdca; }
.fiche dt { font-weight: 700; }
.fiche dd { margin: 0; color: #34454f; }

.faq { display: grid; }
.faq details { border-top: 2px solid var(--encre); }
.faq details:last-child { border-bottom: 2px solid var(--encre); }
.faq summary {
  cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; align-items: center;
  font-family: var(--titre); font-stretch: 87%; font-weight: 700; font-size: 1.15rem; line-height: 1.2; padding: 16px 0;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.6rem; line-height: 1; flex: none; }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 0 18px; max-width: 62ch; color: #34454f; }

.garanties {
  background: var(--pluie); color: var(--blanc); border-radius: 22px;
  padding: clamp(22px, 5vw, 44px); gap: 26px; justify-items: start;
}
.garanties ul { list-style: none; display: grid; gap: 14px; }
.garanties li { font-size: 1.1rem; line-height: 1.3; }
.garanties strong { display: block; font-family: var(--titre); font-stretch: 75%; font-weight: 800; font-size: 2.3rem; line-height: 1; color: var(--cire); text-transform: uppercase; }

/* Pages de texte */
.page { width: min(100%, 720px); margin-inline: auto; padding: 34px var(--gouttiere) 64px; display: grid; gap: 16px; }
.page h1 { font-size: clamp(2.4rem, 10vw, 4rem); line-height: .92; text-transform: uppercase; margin-bottom: 8px; }
.page h2 { font-size: 1.5rem; font-stretch: 87%; font-weight: 700; letter-spacing: 0; line-height: 1.15; margin-top: 18px; }
.page ul, .page ol { padding-left: 1.2em; display: grid; gap: 8px; }
.page .date { color: var(--gris-doux); }
.page-merci h1 { color: var(--pluie); }
.contact-adresse { font-family: var(--titre); font-size: 1.5rem; font-weight: 700; overflow-wrap: anywhere; }
.todo, .a-faire { background: #fff3c2; outline: 2px dashed var(--cire-ombre); outline-offset: 1px; border-radius: 4px; padding: 0 4px; color: var(--encre); }
.a-faire { padding: 10px 12px; }
.tableau { overflow-x: auto; }
.tableau table { border-collapse: collapse; min-width: 560px; width: 100%; font-size: .95rem; }
.tableau th, .tableau td { text-align: left; vertical-align: top; padding: 10px 12px 10px 0; border-top: 1px solid #c3cdca; }

.formulaire { display: grid; gap: 16px; background: var(--blanc); border: 2px solid var(--encre); border-radius: 18px; padding: clamp(16px, 4vw, 26px); }
.champ { display: grid; gap: 6px; }
.champ label { font-weight: 700; }
.champ input, .champ select, .champ textarea {
  font: inherit; font-size: 1rem; color: var(--encre); background: var(--blanc);
  border: 2px solid #9aa8ad; border-radius: 10px; padding: 12px; width: 100%;
}
.champ input[aria-invalid="true"] { border-color: #b3261e; }
.declaration { font-size: .95rem; color: #34454f; }

/* Pied et barre d'achat */
.pied { background: var(--pluie-nuit); color: #d7e1e6; padding: 40px var(--gouttiere) 96px; display: grid; gap: 26px; }
.pied > * { width: min(100%, var(--large)); margin-inline: auto; }
.pied-marque { display: grid; gap: 8px; }
.marque-pied { color: var(--blanc); }
.pied-liens { display: grid; gap: 10px; }
.pied-fin { font-size: .875rem; color: #9fb0b8; }

.barre-achat {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: var(--blanc); border-top: 2px solid var(--encre);
  padding: 10px var(--gouttiere) calc(10px + env(safe-area-inset-bottom, 0px));
}
.barre-achat p { font-size: .95rem; line-height: 1.2; }
.barre-achat .bouton { box-shadow: 0 3px 0 var(--cire-ombre); padding: 11px 18px; font-size: 1rem; }

/* Écrans larges */
@media (min-width: 820px) {
  .dehors { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); column-gap: 40px; padding-top: 34px; }
  .dehors-texte { padding-bottom: 150px; gap: 24px; }
  .chapo { font-size: 1.3rem; }
  .piste { min-height: 300px; width: 120px; justify-self: center; }
  .trace { width: 44px; height: 44px; }
  .t2, .t4, .t6 { left: 58px; }
  .seuil { grid-column: 2; grid-row: 1; align-self: end; margin-bottom: -96px; justify-items: end; }
  .seuil figcaption { justify-self: center; }
  .dedans { padding-top: 150px; gap: 96px; }
  .bloc { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: 48px; align-items: start; }
  .bloc > h2 { grid-column: 1; }
  .bloc > :not(h2) { grid-column: 2; }
  .bloc > .sous-titre { grid-column: 1; grid-row: 2; }
  .offres { grid-template-rows: auto 1fr; }
  .offres > .achat { grid-row: 1 / span 2; }
  .garanties { grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
  .garanties > * { grid-column: auto !important; }
  .garanties ul { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
  .pied { grid-template-columns: 1fr; padding-bottom: 48px; }
  .pied-liens { grid-template-columns: repeat(3, max-content); column-gap: 36px; }
  .barre-achat { display: none !important; }
}
