/* Le Larcin — feuille de style unique du site.
   Couleurs et tailles sont réglées ici, dans le bloc :root. */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/assets/fonts/bricolage-grotesque.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}

:root {
  --encre: #15132e;
  --encre-douce: #2b2853;
  --papier: #efeef7;
  --blanc: #ffffff;
  --larcin: #ffd60a;
  --violet: #5b3df5;
  --baisse: #0b8f63;
  --gris: #63617f;
  --trait: #d6d4e8;
  --police: "Bricolage Grotesque", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --large: 68rem;
  --rayon: 12px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--police);
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--encre);
  background: var(--papier);
}
h1, h2, h3, p, ul, ol, dl, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
img, svg { max-width: 100%; display: block; }
[hidden] { display: none !important; }

:focus-visible { outline: 3px solid var(--violet); outline-offset: 3px; border-radius: 4px; }
.sombre :focus-visible { outline-color: var(--larcin); }

.cadre { width: min(100% - 2.5rem, var(--large)); margin-inline: auto; }
.saut { position: absolute; left: -999px; top: 0; background: var(--larcin); padding: .5rem 1rem; }
.saut:focus { left: 1rem; top: 1rem; z-index: 10; }

/* ---------- En-tête ---------- */
.sombre { background: var(--encre); color: var(--blanc); }
.entete { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 1.1rem; }
.marque { display: inline-flex; align-items: center; gap: .55rem; font-weight: 800; font-size: 1.35rem; letter-spacing: -.02em; text-decoration: none; }
.marque svg { width: 1.6rem; height: 1.6rem; }
.menu { display: flex; gap: 1.25rem; font-size: 1rem; }
.menu a { text-decoration: none; opacity: .85; }
.menu a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Accroche ---------- */
.accroche { padding-block: 2rem 3.5rem; display: grid; gap: 2.5rem; }
.accroche h1 { font-size: clamp(2.2rem, 7.2vw, 3.9rem); line-height: 1.02; letter-spacing: -.035em; font-weight: 750; max-width: 15ch; }
.accroche .chapeau { margin-top: 1.25rem; font-size: 1.15rem; max-width: 34rem; color: #d9d7f2; }

.inscription { margin-top: 1.75rem; display: grid; gap: .6rem; max-width: 30rem; }
.inscription label { font-size: .95rem; color: #d9d7f2; }
.champ { display: flex; gap: .5rem; flex-wrap: wrap; }
.champ input {
  flex: 1 1 13rem; min-width: 0; font: inherit; padding: .85rem 1rem;
  border-radius: var(--rayon); border: 2px solid transparent; background: var(--blanc); color: var(--encre);
}
.champ input:focus-visible { outline: none; border-color: var(--larcin); box-shadow: 0 0 0 3px rgba(255, 214, 10, .35); }
.bouton {
  font: inherit; font-weight: 700; cursor: pointer; text-decoration: none; text-align: center;
  padding: .85rem 1.25rem; border-radius: var(--rayon); border: 2px solid var(--larcin);
  background: var(--larcin); color: var(--encre);
}
.bouton:hover { background: #ffe14d; border-color: #ffe14d; }
.bouton[disabled] { opacity: .5; cursor: not-allowed; }
.bouton.discret { background: transparent; color: var(--blanc); border-color: #55528a; font-weight: 600; }
.bouton.discret:hover { border-color: var(--blanc); background: transparent; }
.petit { font-size: .9rem; color: #bdbbe0; max-width: 32rem; }
.canaux { margin-top: 1.1rem; display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }
.canaux span { font-size: .95rem; color: #d9d7f2; }

/* L'étiquette : la dernière offre relevée, comme une étiquette de prix. */
.etiquette {
  position: relative; background: var(--larcin); color: var(--encre);
  border-radius: 18px; padding: 2.6rem 1.5rem 1.5rem; max-width: 24rem; width: 100%;
  transform: rotate(-2deg); box-shadow: 0 18px 0 -8px rgba(0, 0, 0, .35);
}
.etiquette::before {
  content: ""; position: absolute; top: 1rem; left: 1.5rem; width: 1rem; height: 1rem;
  border-radius: 50%; background: var(--encre);
}
.etiquette .quoi { font-size: .95rem; font-weight: 600; }
.etiquette .produit { margin-top: .35rem; font-size: 1.3rem; line-height: 1.15; font-weight: 700; letter-spacing: -.01em; }
.etiquette .prix { margin-top: .6rem; font-size: clamp(3rem, 12vw, 4.2rem); line-height: .95; font-weight: 800; letter-spacing: -.045em; font-variant-numeric: tabular-nums; }
.etiquette .avant { margin-top: .35rem; font-size: 1rem; }
.etiquette .avant s { opacity: .7; }
.etiquette .ou { margin-top: .9rem; padding-top: .8rem; border-top: 2px dashed rgba(21, 19, 46, .35); font-size: .95rem; }
.etiquette a { font-weight: 700; }
@media (prefers-reduced-motion: no-preference) {
  .etiquette { animation: pose .5s cubic-bezier(.2, .9, .3, 1.2) both; }
  @keyframes pose { from { transform: rotate(-9deg) translateY(-12px); opacity: 0; } to { transform: rotate(-2deg); opacity: 1; } }
}

@media (min-width: 56rem) {
  .accroche { grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); align-items: center; padding-block: 3rem 5rem; }
  .etiquette { justify-self: end; }
}

/* ---------- Sections ---------- */
.section { padding-block: 3.25rem; }
.section h2 { font-size: clamp(1.7rem, 4.6vw, 2.4rem); line-height: 1.1; letter-spacing: -.025em; font-weight: 750; }
.section .intro { margin-top: .75rem; max-width: 40rem; color: var(--gris); }
.section .intro a, .texte a { color: var(--violet); text-underline-offset: 3px; }

/* Offres : une liste, comme un ticket. */
.filtres { margin-top: 1.5rem; display: flex; flex-wrap: wrap; gap: .5rem; }
.filtres button {
  font: inherit; font-size: .95rem; font-weight: 600; cursor: pointer; padding: .4rem .9rem;
  border-radius: 999px; border: 2px solid var(--trait); background: transparent; color: var(--encre);
}
.filtres button[aria-pressed="true"] { background: var(--encre); border-color: var(--encre); color: var(--blanc); }

.ticket { margin-top: 1.25rem; background: var(--blanc); border-radius: 16px; padding: .25rem 1.25rem; }
.offre { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .25rem 1rem; padding-block: 1.15rem; border-bottom: 2px dashed var(--trait); }
.offre:last-child { border-bottom: 0; }
.offre h3 { font-size: 1.15rem; line-height: 1.25; font-weight: 700; letter-spacing: -.01em; }
.offre .detail { grid-column: 1; font-size: .95rem; color: var(--gris); }
.offre .montant { grid-column: 2; grid-row: 1 / span 2; text-align: right; white-space: nowrap; }
.offre .montant strong { display: block; font-size: 1.6rem; line-height: 1.1; font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.offre .montant s { font-size: .95rem; color: var(--gris); margin-right: .4rem; }
.offre .montant .ecart { font-size: .95rem; font-weight: 700; color: var(--baisse); }
.offre .aller { grid-column: 1 / -1; margin-top: .35rem; }
.offre .aller a { color: var(--violet); font-weight: 700; text-underline-offset: 3px; }
.offre .aller small { color: var(--gris); margin-left: .5rem; }
.message { padding: 1.5rem 0; color: var(--gris); }
.sous-ticket { margin-top: .9rem; font-size: .92rem; color: var(--gris); max-width: 44rem; }

/* Étapes : c'est une vraie suite, donc numérotée. */
.etapes { margin-top: 1.75rem; display: grid; gap: 1.5rem; counter-reset: etape; }
.etapes li { counter-increment: etape; display: grid; grid-template-columns: 3rem minmax(0, 1fr); gap: 0 1rem; }
.etapes li::before { grid-row: 1 / span 2; content: counter(etape); font-size: 2.6rem; line-height: 1; font-weight: 800; color: var(--violet); letter-spacing: -.04em; }
.etapes h3 { font-size: 1.2rem; font-weight: 700; }
.etapes p { grid-column: 2; color: var(--gris); max-width: 30rem; }
@media (min-width: 56rem) { .etapes { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* Contrôles : deux colonnes. */
.deux { margin-top: 1.75rem; display: grid; gap: 1.5rem; }
.deux > div { background: var(--blanc); border-radius: 16px; padding: 1.4rem 1.4rem 1.5rem; }
.deux h3 { font-size: 1.15rem; font-weight: 700; }
.deux ul { margin-top: .75rem; display: grid; gap: .55rem; }
.deux li { padding-left: 1.5rem; position: relative; }
.deux li::before { position: absolute; left: 0; font-weight: 800; }
.deux .oui li::before { content: "+"; color: var(--baisse); }
.deux .non li::before { content: "–"; color: var(--gris); }
@media (min-width: 48rem) { .deux { grid-template-columns: 1fr 1fr; } }

/* Questions */
.questions { margin-top: 1.5rem; max-width: 44rem; }
.questions details { border-bottom: 2px solid var(--trait); padding-block: 1rem; }
.questions summary { cursor: pointer; font-weight: 700; font-size: 1.1rem; }
.questions p { margin-top: .6rem; color: var(--gris); }

/* Pages de texte (marchands, mentions, confidentialité) */
.texte { padding-block: 2.5rem 4rem; max-width: 46rem; }
.texte h1 { font-size: clamp(2rem, 6vw, 2.9rem); line-height: 1.05; letter-spacing: -.03em; font-weight: 750; }
.texte h2 { margin-top: 2.25rem; font-size: 1.45rem; line-height: 1.2; letter-spacing: -.015em; font-weight: 700; }
.texte p, .texte ul, .texte ol, .texte table { margin-top: .9rem; }
.texte ul { list-style: disc; padding-left: 1.25rem; display: grid; gap: .4rem; }
.texte .date { color: var(--gris); }
.tableau { width: 100%; border-collapse: collapse; background: var(--blanc); border-radius: 12px; overflow: hidden; font-size: .98rem; }
.tableau th, .tableau td { text-align: left; padding: .7rem .9rem; border-bottom: 1px solid var(--trait); vertical-align: top; }
.tableau th { font-weight: 700; }
.tableau tr:last-child td { border-bottom: 0; }
.defile { overflow-x: auto; }
.etat-ok { color: var(--baisse); font-weight: 700; }
.etat-non { color: #b3261e; font-weight: 700; }

/* Pied de page */
.pied { padding-block: 2.5rem; font-size: .95rem; }
.pied .liens { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; }
.pied p { margin-top: 1rem; color: #bdbbe0; max-width: 46rem; }

.offre .aller small { white-space: nowrap; }
