/* ==========================================================================
   SIDI FRITES — www.sidifrites.ma
   Charte : Rouge #CE202F · Bleu #0066B3 · Jaune #FDB913 · Crème #FFF7EB
   Typo   : Bebas Neue (titres) · Pacifico (script) · Poppins (texte)
   ========================================================================== */

:root {
  --rouge: #CE202F;
  --rouge-fonce: #A81823;
  --bleu: #0066B3;
  --bleu-fonce: #00538F;
  --jaune: #FDB913;
  --jaune-doux: #FFCE4F;
  --creme: #FFF7EB;
  --papier: #F9EEDC;
  --vert: #173D2E;
  --noir: #111111;
  --encre: #2B2118;          /* texte courant : noir chaud */
  --encre-douce: #6B5C4B;    /* texte secondaire */
  --potato: #E3A85C;

  --f-display: "Bebas Neue", "Arial Narrow", Impact, sans-serif;
  --f-script: "Pacifico", "Brush Script MT", cursive;
  --f-body: "Poppins", "Segoe UI", system-ui, sans-serif;

  --radius: 22px;
  --shadow: 0 14px 40px -18px rgba(43, 33, 24, .35);
  --container: 1160px;
  --header-h: 84px;
}

/* --------------------------------- Base --------------------------------- */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 1rem;
  line-height: 1.75;
  color: var(--encre);
  background: var(--creme);
  overflow-x: hidden;
  width: 100%;
}

img, svg { max-width: 100%; height: auto; display: block; }

h1, h2, h3 { margin: 0; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
ul { margin: 0; padding: 0; list-style: none; }

a { color: var(--bleu); text-decoration-thickness: 2px; text-underline-offset: 3px; }

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

.container {
  width: min(var(--container), 100% - 2.5rem);
  margin-inline: auto;
}

.skip-link {
  position: absolute; left: 1rem; top: -4rem;
  background: var(--noir); color: var(--creme);
  padding: .6rem 1.2rem; border-radius: 0 0 10px 10px;
  z-index: 200; transition: top .2s;
}
.skip-link:focus { top: 0; }

/* ------------------------------ Typographie ----------------------------- */

.display {
  font-family: var(--f-display);
  font-weight: 400;
  line-height: .92;
  letter-spacing: .01em;
  text-transform: uppercase;
  color: var(--bleu);
  text-wrap: balance;
}

h1.display { font-size: clamp(3.4rem, 8.5vw, 6.8rem); }
h2.display { font-size: clamp(2.4rem, 5.5vw, 4rem); }
h3.display { font-size: clamp(1.5rem, 3vw, 2rem); letter-spacing: .03em; }

.display .rouge { color: var(--rouge); }
.display .jaune { color: var(--jaune); }
.display .creme { color: var(--creme); }

.eyebrow {
  font-family: var(--f-script);
  font-size: clamp(1.15rem, 2.2vw, 1.5rem);
  color: var(--rouge);
  display: block;
  margin-bottom: .5rem;
  transform: rotate(-1.5deg);
}
.eyebrow.bleu { color: var(--bleu); }
.eyebrow.jaune { color: var(--jaune); }

.lede {
  font-size: 1.08rem;
  max-width: 62ch;
  color: var(--encre-douce);
}

.section-head { max-width: 46rem; margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.section-head .lede { margin-top: 1rem; }
.section-head.centered { margin-inline: auto; text-align: center; }
.section-head.centered .lede { margin-inline: auto; }

/* -------------------------------- Boutons ------------------------------- */

.btn {
  display: inline-block;
  font-family: var(--f-body);
  font-weight: 600;
  font-size: .95rem;
  padding: .8rem 1.7rem;
  border-radius: 999px;
  border: 3px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-rouge { background: var(--rouge); color: var(--creme); box-shadow: 0 10px 22px -12px rgba(206, 32, 47, .8); }
.btn-rouge:hover { background: var(--rouge-fonce); }
.btn-bleu { background: var(--bleu); color: var(--creme); box-shadow: 0 10px 22px -12px rgba(0, 102, 179, .8); }
.btn-bleu:hover { background: var(--bleu-fonce); }
.btn-outline { border-color: var(--bleu); color: var(--bleu); background: transparent; }
.btn-outline:hover { background: var(--bleu); color: var(--creme); }
.btn-creme { background: var(--creme); color: var(--rouge); }
.btn-creme:hover { background: #fff; }

/* Ruban script incliné — CTA signature (cf. posts média de la charte) */
.ribbon {
  display: inline-block;
  font-family: var(--f-script);
  font-size: 1.15rem;
  color: var(--creme);
  background: var(--rouge);
  padding: .55rem 1.9rem .8rem;
  text-decoration: none;
  transform: rotate(-2deg);
  clip-path: polygon(2% 8%, 100% 0%, 98% 92%, 0% 100%);
  transition: transform .18s ease, background .18s ease;
}
.ribbon:hover { transform: rotate(0deg) scale(1.03); background: var(--rouge-fonce); }
.ribbon.bleu { background: var(--bleu); }
.ribbon.bleu:hover { background: var(--bleu-fonce); }

.link-fleche {
  font-weight: 600;
  color: var(--bleu);
  text-decoration: none;
  border-bottom: 2px solid var(--jaune);
  padding-bottom: 2px;
}
.link-fleche:hover { color: var(--rouge); border-color: var(--rouge); }

/* ------------------------------- Décorations ---------------------------- */

.section { position: relative; padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.section > .container { position: relative; z-index: 2; }

.deco { position: absolute; z-index: 0; pointer-events: none; }

.dots {
  --dot-c: var(--bleu);
  width: 190px; height: 150px;
  background-image: radial-gradient(var(--dot-c) 2.4px, transparent 3px);
  background-size: 26px 26px;
  opacity: .55;
}
.dots.rouge { --dot-c: var(--rouge); }
.dots.jaune { --dot-c: var(--jaune); }
.dots.creme { --dot-c: var(--creme); }

.blob {
  border-radius: 62% 38% 46% 54% / 60% 46% 54% 40%;
  background: var(--jaune);
  opacity: .9;
}
.blob.rouge { background: var(--rouge); }
.blob.bleu { background: var(--bleu); }

.corner {
  border-radius: 50%;
}

/* fond alternatif crème plus profond */
.section.papier { background: var(--papier); }
.section.bleu-bg { background: var(--bleu); color: var(--creme); }
.section.vert-bg { background: var(--vert); color: var(--creme); }
.section.bleu-bg .lede, .section.vert-bg .lede { color: rgba(255, 247, 235, .82); }

/* ------------------------------ En-tête / nav --------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--creme);
  border-bottom: 1px solid rgba(43, 33, 24, .08);
  transition: box-shadow .2s ease;
}
.site-header.is-scrolled { box-shadow: 0 10px 30px -18px rgba(43, 33, 24, .4); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: var(--header-h);
}

.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand svg { width: 96px; height: 66px; }

.site-nav ul {
  display: flex;
  align-items: center;
  gap: clamp(.4rem, 1.4vw, 1.15rem);
}
.site-nav a:not(.btn) {
  font-family: var(--f-display);
  font-size: 1.12rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--encre);
  text-decoration: none;
  padding: .35rem .25rem;
  border-bottom: 3px solid transparent;
}
.site-nav a:not(.btn):hover { color: var(--rouge); }
.site-nav a.is-active { color: var(--bleu); border-bottom-color: var(--jaune); }
.site-nav .btn { padding: .5rem 1.3rem; font-size: .88rem; }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  padding: .5rem;
  cursor: pointer;
}
.nav-toggle .bar {
  display: block;
  width: 26px; height: 3px;
  background: var(--encre);
  border-radius: 2px;
  margin: 5px 0;
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle[aria-expanded="true"] .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* --------------------------------- Héros -------------------------------- */

.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(3rem, 7vw, 5.5rem) clamp(3.5rem, 8vw, 6rem);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.hero .lede { margin-top: 1.4rem; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.1rem 1.4rem;
  margin-top: 2.2rem;
}

.hero-art { position: relative; }
.hero-art svg { width: 100%; max-width: 460px; margin-inline: auto; }

.hero-tagline {
  font-family: var(--f-script);
  font-size: clamp(1.2rem, 2.4vw, 1.55rem);
  color: var(--jaune);
  text-shadow: 0 1px 0 rgba(43,33,24,.12);
  margin-top: 1.2rem;
  transform: rotate(-1.5deg);
}
.hero-tagline .sep { color: var(--rouge); margin-inline: .35rem; }

/* ------------------------------ Bande ticker ---------------------------- */

.ticker {
  background: var(--rouge);
  color: var(--creme);
  overflow: hidden;
  transform: rotate(-1.2deg) scale(1.02);
  padding-block: .55rem;
  user-select: none;
}
.ticker.bleu { background: var(--bleu); transform: rotate(1.2deg) scale(1.02); }

.ticker-track {
  display: flex;
  gap: 2.5rem;
  width: max-content;
  animation: ticker 26s linear infinite;
}
.ticker span {
  font-family: var(--f-display);
  font-size: 1.5rem;
  letter-spacing: .1em;
  white-space: nowrap;
}
.ticker .dot { color: var(--jaune); }

@keyframes ticker {
  to { transform: translateX(-50%); }
}

/* --------------------------- Bande de réassurance ----------------------- */

.reassurance { padding-block: clamp(2rem, 4vw, 3rem); }

.reassurance-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
}

.reassurance-item {
  display: flex;
  align-items: center;
  gap: .9rem;
  background: #fff;
  border: 2px solid rgba(43, 33, 24, .07);
  border-radius: var(--radius);
  padding: 1rem 1.2rem;
}
.reassurance-item svg { flex: 0 0 auto; width: 42px; height: 42px; }
.reassurance-item strong {
  font-family: var(--f-display);
  font-size: 1.15rem;
  letter-spacing: .05em;
  line-height: 1.1;
  color: var(--encre);
  text-transform: uppercase;
  font-weight: 400;
}

/* ------------------------------ Cartes trio ----------------------------- */

.cards-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.2rem, 3vw, 2rem);
}

.exp-card {
  position: relative;
  background: #fff;
  border-radius: var(--radius);
  padding: 2rem 1.7rem 1.9rem;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.exp-card .exp-art {
  height: 150px;
  border-radius: 16px;
  margin-bottom: 1.4rem;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
}
.exp-card .exp-art svg { width: 110px; height: 110px; }
.exp-card h3 { margin-bottom: .6rem; }
.exp-card p { font-size: .95rem; color: var(--encre-douce); }

.art-jaune { background: var(--jaune); }
.art-bleu { background: var(--bleu); }
.art-rouge { background: var(--rouge); }
.art-creme { background: var(--papier); }
.art-vert { background: var(--vert); }

.exp-art::after {
  content: "";
  position: absolute;
  right: -30px; bottom: -34px;
  width: 110px; height: 110px;
  border-radius: 62% 38% 46% 54% / 60% 46% 54% 40%;
  background: rgba(255, 247, 235, .25);
}

/* ------------------------------- Chiffres ------------------------------- */

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1.5rem, 4vw, 2.5rem);
  text-align: center;
}

.stat b {
  display: block;
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(3rem, 6vw, 4.6rem);
  line-height: 1;
  color: var(--jaune);
  font-variant-numeric: tabular-nums;
}
.stat span { display: block; margin-top: .5rem; font-size: .95rem; color: rgba(255, 247, 235, .85); max-width: 24ch; margin-inline: auto; }

/* ------------------------------ Promesse trio --------------------------- */

.promesse {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  text-align: center;
}
.promesse li {
  font-family: var(--f-display);
  font-size: clamp(1.9rem, 4vw, 3rem);
  line-height: 1;
  padding: 1.8rem 1rem 1.6rem;
  border-radius: var(--radius);
  transform: rotate(-1.2deg);
}
.promesse li:nth-child(2) { transform: rotate(1.2deg); }
.promesse li small {
  display: block;
  font-family: var(--f-script);
  font-size: 1.05rem;
  margin-top: .55rem;
  text-transform: none;
  letter-spacing: 0;
}
.promesse .p-rouge { background: var(--rouge); color: var(--creme); }
.promesse .p-jaune { background: var(--jaune); color: var(--encre); }
.promesse .p-bleu { background: var(--bleu); color: var(--creme); }

/* ------------------------------- Produits ------------------------------- */

.produits-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1.5rem, 4vw, 2.5rem);
}

.produit-card {
  position: relative;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2.2rem 2rem 2rem;
  overflow: hidden;
}
.produit-card .calibre {
  position: absolute;
  top: 1.4rem; right: -0.6rem;
  font-family: var(--f-script);
  font-size: .95rem;
  background: var(--bleu);
  color: var(--creme);
  padding: .35rem 1.4rem .5rem;
  transform: rotate(3deg);
  clip-path: polygon(2% 10%, 100% 0%, 100% 100%, 0% 92%);
}
.produit-card .produit-art {
  height: 170px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  margin-bottom: 1.5rem;
}
.produit-card h3 { color: var(--rouge); }
.produit-card .accroche {
  font-family: var(--f-script);
  color: var(--bleu);
  font-size: 1.05rem;
  margin: .3rem 0 1rem;
}
.produit-card dl { margin: 1.2rem 0 0; display: grid; gap: .7rem; }
.produit-card dt {
  font-family: var(--f-display);
  font-size: .95rem;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--bleu);
}
.produit-card dd { margin: 0; font-size: .93rem; color: var(--encre-douce); }
.produit-card > p { font-size: .95rem; color: var(--encre-douce); }

/* ------------------------- Guide « bien choisir » ----------------------- */

.guide { display: grid; gap: 1rem; }
.guide-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1.2rem;
  background: #fff;
  border-radius: var(--radius);
  border: 2px solid rgba(43, 33, 24, .07);
  padding: 1.1rem 1.6rem;
}
.guide-row .fleche {
  font-family: var(--f-display);
  font-size: 1.6rem;
  color: var(--jaune);
}
.guide-row .reco {
  font-family: var(--f-display);
  font-size: 1.3rem;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--rouge);
  text-align: right;
}
.guide-row p { margin: 0; font-weight: 500; }

/* ------------------------------ Étapes / steps -------------------------- */

.steps { display: grid; gap: clamp(1.2rem, 3vw, 1.8rem); }

.step {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 1.4rem;
  background: #fff;
  border-radius: var(--radius);
  padding: 1.7rem 1.8rem;
  box-shadow: var(--shadow);
  align-items: start;
}
.step .num {
  font-family: var(--f-display);
  font-size: 2.4rem;
  line-height: 1;
  display: grid;
  place-items: center;
  width: 74px; height: 74px;
  border-radius: 50% 46% 52% 48% / 48% 52% 46% 54%;
  color: var(--creme);
  background: var(--bleu);
}
.step:nth-child(4n+2) .num { background: var(--rouge); }
.step:nth-child(4n+3) .num { background: var(--jaune); color: var(--encre); }
.step:nth-child(4n+4) .num { background: var(--vert); }
.step h3 { margin-bottom: .4rem; color: var(--encre); }
.step p { font-size: .96rem; color: var(--encre-douce); }

/* ------------------------------ Bénéfices liste ------------------------- */

.benefices {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.1rem;
}
.benefice {
  display: flex;
  gap: .9rem;
  align-items: flex-start;
  background: #fff;
  border-radius: 16px;
  padding: 1.1rem 1.3rem;
  border: 2px solid rgba(43, 33, 24, .07);
}
.benefice svg { flex: 0 0 auto; width: 30px; height: 30px; margin-top: .2rem; }
.benefice strong { display: block; color: var(--bleu); }
.benefice p { margin: 0; font-size: .92rem; color: var(--encre-douce); }

/* -------------------------------- Citation ------------------------------ */

.quote {
  position: relative;
  max-width: 52rem;
  margin-inline: auto;
  text-align: center;
  font-family: var(--f-script);
  font-size: clamp(1.35rem, 3vw, 1.9rem);
  line-height: 1.55;
  color: var(--bleu);
  padding: 1rem 1.5rem;
  transform: rotate(-1deg);
}
.quote::before, .quote::after {
  font-family: var(--f-display);
  font-size: 4.5rem;
  line-height: 0;
  color: var(--jaune);
  position: absolute;
}
.quote::before { content: "“"; top: 1.4rem; left: -0.4rem; }
.quote::after { content: "”"; bottom: -0.6rem; right: -0.2rem; }
.quote footer {
  font-family: var(--f-body);
  font-size: .9rem;
  color: var(--encre-douce);
  margin-top: 1rem;
  transform: rotate(1deg);
}
.section.bleu-bg .quote, .section.vert-bg .quote { color: var(--creme); }

/* ------------------------------- Valeurs -------------------------------- */

.cards-4 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1.2rem, 3vw, 1.8rem);
}
.valeur-card {
  position: relative;
  border-radius: var(--radius);
  padding: 2rem 1.8rem;
  background: #fff;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.valeur-card::before {
  content: "";
  position: absolute;
  top: -46px; right: -46px;
  width: 130px; height: 130px;
  border-radius: 62% 38% 46% 54% / 60% 46% 54% 40%;
  opacity: .18;
  background: var(--bleu);
}
.valeur-card:nth-child(4n+2)::before { background: var(--rouge); }
.valeur-card:nth-child(4n+3)::before { background: var(--jaune); opacity: .3; }
.valeur-card:nth-child(4n+4)::before { background: var(--vert); }
.valeur-card svg { width: 46px; height: 46px; margin-bottom: 1rem; }
.valeur-card h3 { margin-bottom: .5rem; }
.valeur-card p { font-size: .95rem; color: var(--encre-douce); }

/* ---------------------------- Segments (pros) --------------------------- */

.segment {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  gap: clamp(1.8rem, 4vw, 3.5rem);
  align-items: center;
  padding-block: clamp(1.8rem, 4vw, 2.6rem);
}
.segment + .segment { border-top: 2px dashed rgba(43, 33, 24, .12); }
.segment:nth-child(even) .segment-art { order: 2; }

.segment-art {
  border-radius: var(--radius);
  min-height: 220px;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
}
.segment-art svg { width: 130px; height: 130px; }
.segment-art::after {
  content: "";
  position: absolute;
  left: -36px; top: -40px;
  width: 130px; height: 130px;
  border-radius: 62% 38% 46% 54% / 60% 46% 54% 40%;
  background: rgba(255, 247, 235, .22);
}

.segment h3 { margin-bottom: .6rem; }
.segment .script-note { font-family: var(--f-script); color: var(--rouge); font-size: 1.05rem; display: block; margin-bottom: .8rem; }
.segment ul { margin-top: 1rem; display: grid; gap: .45rem; }
.segment ul li {
  position: relative;
  padding-left: 1.6rem;
  font-size: .95rem;
  font-weight: 500;
}
.segment ul li::before {
  content: "";
  position: absolute;
  left: 0; top: .5em;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--jaune);
  border: 3px solid var(--rouge);
  box-sizing: border-box;
}

/* --------------------------- Engagements qualité ------------------------ */

.engagements {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1.2rem, 3vw, 1.8rem);
}
.engagement {
  background: #fff;
  border-radius: var(--radius);
  padding: 1.9rem 1.7rem;
  box-shadow: var(--shadow);
  border-top: 6px solid var(--bleu);
}
.engagement:nth-child(5n+2) { border-top-color: var(--vert); }
.engagement:nth-child(5n+3) { border-top-color: var(--jaune); }
.engagement:nth-child(5n+4) { border-top-color: var(--rouge); }
.engagement:nth-child(5n+5) { border-top-color: var(--bleu-fonce); }
.engagement h3 { margin-bottom: .5rem; }
.engagement p { font-size: .95rem; color: var(--encre-douce); }

.certifs { display: grid; gap: .8rem; max-width: 46rem; }
.certif {
  display: flex;
  align-items: center;
  gap: .9rem;
  background: rgba(255, 247, 235, .08);
  border: 2px solid rgba(255, 247, 235, .25);
  border-radius: 14px;
  padding: .9rem 1.2rem;
  font-weight: 500;
}
.certif svg { flex: 0 0 auto; width: 26px; height: 26px; }

/* ------------------------------ Bande CTA ------------------------------- */

.cta-band { text-align: center; }
.cta-band .display { margin-bottom: .8rem; }
.cta-band .lede { margin-inline: auto; margin-bottom: 2rem; }
.cta-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.1rem 1.5rem; align-items: center; }

/* ------------------------------- Formulaire ----------------------------- */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr);
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: start;
}

.form-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(1.6rem, 4vw, 2.4rem);
}
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.1rem 1.3rem; }
.field { display: grid; gap: .35rem; }
.field.full { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: .88rem; }
.field label .req { color: var(--rouge); }
.field input, .field select, .field textarea {
  font: inherit;
  font-size: .95rem;
  color: var(--encre);
  background: var(--creme);
  border: 2px solid rgba(43, 33, 24, .14);
  border-radius: 12px;
  padding: .7rem .9rem;
  width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--bleu);
  box-shadow: 0 0 0 3px rgba(0, 102, 179, .18);
}
.field textarea { min-height: 130px; resize: vertical; }

.consent { display: flex; gap: .7rem; align-items: flex-start; font-size: .88rem; grid-column: 1 / -1; }
.consent input { width: 20px; height: 20px; margin-top: .2rem; accent-color: var(--rouge); }

.form-note { font-size: .85rem; color: var(--encre-douce); margin-top: 1rem; }
.form-status { font-weight: 600; margin-top: 1rem; color: var(--vert); }

.coord-card {
  background: var(--bleu);
  color: var(--creme);
  border-radius: var(--radius);
  padding: 2rem 1.8rem;
  position: relative;
  overflow: hidden;
}
.coord-card::after {
  content: "";
  position: absolute;
  right: -60px; bottom: -60px;
  width: 190px; height: 150px;
  background-image: radial-gradient(rgba(255,247,235,.5) 2.4px, transparent 3px);
  background-size: 26px 26px;
}
.coord-card h3 { color: var(--jaune); margin-bottom: 1rem; }
.coord-card ul { display: grid; gap: .9rem; position: relative; z-index: 1; }
.coord-card li { display: flex; gap: .8rem; align-items: flex-start; font-size: .95rem; }
.coord-card li svg { flex: 0 0 auto; width: 24px; height: 24px; margin-top: .15rem; }
.coord-card a { color: var(--creme); }

/* -------------------------------- Footer -------------------------------- */

.site-footer {
  background: var(--bleu);
  color: var(--creme);
  margin-top: clamp(2rem, 6vw, 4rem);
  position: relative;
  overflow: hidden;
}
.site-footer::before {
  content: "";
  position: absolute;
  left: -70px; top: -50px;
  width: 230px; height: 180px;
  background-image: radial-gradient(rgba(255, 247, 235, .35) 2.4px, transparent 3px);
  background-size: 26px 26px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: clamp(1.8rem, 4vw, 3rem);
  padding-block: clamp(2.5rem, 6vw, 4rem) 2rem;
  position: relative;
}
.footer-brand svg { width: 120px; height: 84px; margin-bottom: 1rem; }
.footer-brand .script { font-family: var(--f-script); font-size: 1.25rem; color: var(--jaune); transform: rotate(-1.5deg); display: inline-block; }

.site-footer h3 {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: 1.25rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--jaune);
  margin-bottom: 1rem;
}
.site-footer ul { display: grid; gap: .5rem; }
.site-footer a { color: var(--creme); text-decoration: none; font-size: .95rem; }
.site-footer a:hover { color: var(--jaune); }

.footer-bottom {
  border-top: 1px solid rgba(255, 247, 235, .25);
  padding-block: 1.2rem;
  display: flex;
  flex-wrap: wrap;
  gap: .8rem 2rem;
  justify-content: space-between;
  font-size: .85rem;
  color: rgba(255, 247, 235, .75);
  position: relative;
}

/* ------------------------------- Reveal --------------------------------- */

.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-in { opacity: 1; transform: none; }

/* ------------------------------ Responsive ------------------------------ */

@media (max-width: 1024px) {
  .reassurance-grid { grid-template-columns: repeat(2, 1fr); }
  .site-nav a:not(.btn) { font-size: 1rem; }
}

@media (max-width: 880px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--creme);
    border-bottom: 1px solid rgba(43, 33, 24, .1);
    box-shadow: 0 24px 40px -24px rgba(43, 33, 24, .4);
    display: none;
    padding: 1rem 1.5rem 1.5rem;
  }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; align-items: flex-start; gap: .4rem; }
  .site-nav a:not(.btn) { font-size: 1.3rem; }

  .hero-grid { grid-template-columns: 1fr; }
  .hero-art svg { max-width: 340px; }
  .cards-3, .produits-grid, .cards-4, .engagements, .benefices { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .promesse { grid-template-columns: 1fr; }
  .segment, .contact-grid, .footer-grid { grid-template-columns: 1fr; }
  .segment:nth-child(even) .segment-art { order: 0; }
  .guide-row { grid-template-columns: 1fr; text-align: left; gap: .3rem; }
  .guide-row .fleche { display: none; }
  .guide-row .reco { text-align: left; }
  .form-grid { grid-template-columns: 1fr; }
  .step { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .reassurance-grid, .stats-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  /* Keep the big hero corner bleed from creeping down over the eyebrow
     text on narrow screens (same-color text/background would go unreadable). */
  .deco.corner.bleed-tl { transform: scale(.55); transform-origin: top left; }
  .deco.corner.bleed-tr { transform: scale(.55); transform-origin: top right; }
}

/* ------------------------------ Page légale ------------------------------ */

.legal-hero { padding-block: clamp(2.5rem, 5vw, 4rem) 1.5rem; }
.legal-hero .lede { margin-top: 1rem; }
.legal-updated {
  display: inline-block;
  font-size: .85rem;
  font-weight: 600;
  color: var(--bleu);
  background: var(--papier);
  border-radius: 999px;
  padding: .35rem 1rem;
  margin-top: 1.2rem;
}

.legal-layout {
  display: grid;
  grid-template-columns: minmax(0, 15rem) minmax(0, 46rem);
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: start;
}

.legal-toc {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  background: #fff;
  border-radius: 18px;
  border: 2px solid rgba(43, 33, 24, .08);
  padding: 1.4rem 1.5rem;
}
.legal-toc h2 {
  font-family: var(--f-body);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--encre-douce);
  margin-bottom: .8rem;
}
.legal-toc ol { display: grid; gap: .55rem; counter-reset: toc; }
.legal-toc li { counter-increment: toc; font-size: .92rem; }
.legal-toc li::before { content: counter(toc) ". "; color: var(--rouge); font-weight: 700; }
.legal-toc a { color: var(--encre); text-decoration: none; }
.legal-toc a:hover { color: var(--rouge); }

.legal-body { max-width: 46rem; }
.legal-section { padding-block: 1.8rem; border-top: 1px solid rgba(43, 33, 24, .1); scroll-margin-top: calc(var(--header-h) + 20px); }
.legal-section:first-child { border-top: 0; padding-top: 0; }
.legal-section h2 {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: 1.7rem;
  color: var(--bleu);
  letter-spacing: .01em;
  margin-bottom: .9rem;
}
.legal-section h3 {
  font-family: var(--f-body);
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--encre);
  margin: 1.2rem 0 .5rem;
}
.legal-section p { color: var(--encre-douce); margin-bottom: 1em; }
.legal-section p:last-child { margin-bottom: 0; }
.legal-section ul { margin: .8rem 0 1.2rem; display: grid; gap: .5rem; }
.legal-section ul li {
  position: relative;
  padding-left: 1.4rem;
  color: var(--encre-douce);
  font-size: .96rem;
}
.legal-section ul li::before {
  content: "";
  position: absolute; left: 0; top: .55em;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--jaune);
}
.legal-section a { color: var(--bleu); font-weight: 600; }

.legal-callout {
  background: var(--papier);
  border-left: 4px solid var(--rouge);
  border-radius: 0 14px 14px 0;
  padding: 1.3rem 1.5rem;
  margin: 1.2rem 0;
}
.legal-callout h3 { margin-top: 0; color: var(--rouge); }
.legal-callout p:last-child { margin-bottom: 0; }

.legal-table { width: 100%; border-collapse: collapse; margin: 1rem 0 1.4rem; font-size: .92rem; }
.legal-table th, .legal-table td { text-align: left; padding: .6rem .8rem; border-bottom: 1px solid rgba(43, 33, 24, .1); vertical-align: top; }
.legal-table th { font-family: var(--f-body); font-weight: 700; color: var(--bleu); }
.legal-table td { color: var(--encre-douce); }

@media (max-width: 880px) {
  .legal-layout { grid-template-columns: 1fr; }
  .legal-toc { position: static; }
}

/* ------------------------------ Variantes ------------------------------- */

.stats-grid.stats-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 880px) { .stats-grid.stats-3 { grid-template-columns: 1fr; } }

.engagements .engagement:last-child:nth-child(odd) { grid-column: 1 / -1; }
@media (max-width: 880px) { .engagements .engagement:last-child:nth-child(odd) { grid-column: auto; } }

/* --------------------------- Motion réduite ----------------------------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ticker-track { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .ribbon { transition: none; }
}
