/* Gamelle Claire, feuille de style */

@font-face {
  font-family: "Fraunces";
  src: url("/fonts/fraunces-latin-opsz-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("/fonts/fraunces-latin-opsz-italic.woff2") format("woff2");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/fonts/inter-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --creme: #fbf6ee;
  --creme-2: #f3eadc;
  --peche: #f8e3cf;
  --peche-2: #f2cfae;
  --sauge: #e2eee7;
  --vert: #1e6b5c;
  --vert-vif: #2a8a76;
  --vert-fonce: #134a3f;
  --nuit: #0d2f28;
  --ambre: #e08a2b;
  --ambre-clair: #f5c27c;
  --corail: #e8735b;
  --encre: #1b2725;
  --texte: #3a4744;
  --doux: #66726f;
  --ligne: #e6dccb;
  --blanc: #ffffff;
  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --rayon: 22px;
  --ombre: 0 18px 40px -18px rgba(13, 47, 40, 0.28);
  --ombre-douce: 0 10px 30px -16px rgba(13, 47, 40, 0.22);
  --largeur: 1240px;
  --gouttiere: clamp(16px, 5vw, 64px);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }

body {
  margin: 0;
  background: var(--creme);
  color: var(--texte);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  overflow-x: clip;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--vert); text-underline-offset: 3px; }
a:hover { color: var(--vert-fonce); }

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

.saut { position: absolute; left: -9999px; }
.saut:focus { left: 16px; top: 16px; background: var(--blanc); padding: 8px 12px; z-index: 100; }

.wrap {
  width: 100%;
  max-width: var(--largeur);
  margin: 0 auto;
  padding-left: var(--gouttiere);
  padding-right: var(--gouttiere);
}

h1, h2, h3 {
  font-family: var(--display);
  color: var(--encre);
  line-height: 1.08;
  letter-spacing: -0.015em;
  font-weight: 650;
  font-variation-settings: "opsz" 96;
}
h2 { font-size: clamp(1.9rem, 4.2vw, 3.1rem); margin: 0 0 16px; }
h3 { font-size: 1.3rem; margin: 0 0 8px; font-variation-settings: "opsz" 36; }

.surtitre {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ambre);
  margin-bottom: 14px;
}
.surtitre::before {
  content: "";
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
}
.surtitre--clair { color: var(--ambre-clair); }

/* Boutons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 26px;
  border-radius: 999px;
  font-weight: 650;
  font-size: 1rem;
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease, color 0.25s ease;
}
.btn svg { width: 18px; height: 18px; transition: transform 0.25s ease; }
.btn:hover svg { transform: translateX(4px); }
.btn--plein { background: var(--vert); color: var(--blanc); box-shadow: 0 12px 24px -12px rgba(30, 107, 92, 0.7); }
.btn--plein:hover { background: var(--vert-fonce); color: var(--blanc); transform: translateY(-2px); }
.btn--contour { border: 2px solid var(--encre); color: var(--encre); }
.btn--contour:hover { background: var(--encre); color: var(--creme); transform: translateY(-2px); }
.btn--ambre { background: var(--ambre); color: var(--nuit); }
.btn--ambre:hover { background: var(--ambre-clair); color: var(--nuit); transform: translateY(-2px); }

/* En-tête */
.entete {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 246, 238, 0.86);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.entete.est-defile { border-bottom-color: var(--ligne); box-shadow: 0 8px 24px -20px rgba(13, 47, 40, 0.5); }
.entete .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 74px;
}
.marque {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--encre);
  text-decoration: none;
  font-family: var(--display);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.marque svg { width: 38px; height: 38px; flex: none; transition: transform 0.4s ease; }
.marque:hover svg { transform: rotate(-8deg) scale(1.05); }
.nav { display: flex; align-items: center; gap: 6px 28px; }
.nav a:not(.btn) {
  position: relative;
  color: var(--texte);
  text-decoration: none;
  font-size: 0.97rem;
  font-weight: 550;
}
.nav a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 2px;
  background: var(--ambre);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.nav a:not(.btn):hover::after,
.nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav .btn { min-height: 44px; padding: 0 20px; font-size: 0.93rem; }

/* Héros */
.heros {
  position: relative;
  padding: clamp(36px, 6vw, 80px) 0 clamp(56px, 7vw, 96px);
  background:
    radial-gradient(circle at 12% 18%, rgba(245, 194, 124, 0.28), transparent 42%),
    radial-gradient(circle at 92% 80%, rgba(42, 138, 118, 0.12), transparent 40%),
    var(--creme);
}
.heros__grille {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.puce {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px 7px 10px;
  border-radius: 999px;
  background: var(--blanc);
  box-shadow: var(--ombre-douce);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--vert-fonce);
  margin-bottom: 22px;
}
.puce__point {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--vert-vif);
  box-shadow: 0 0 0 0 rgba(42, 138, 118, 0.6);
  animation: pulsation 2.4s infinite;
}
.heros h1 {
  font-size: clamp(2.6rem, 6.4vw, 5.2rem);
  line-height: 1.02;
  margin: 0 0 22px;
  font-weight: 700;
  font-variation-settings: "opsz" 144;
}
.souligne {
  position: relative;
  font-style: italic;
  color: var(--vert);
  white-space: nowrap;
}
.souligne svg {
  position: absolute;
  left: -2%;
  bottom: -0.16em;
  width: 104%;
  height: 0.32em;
  overflow: visible;
}
.souligne path {
  fill: none;
  stroke: var(--ambre);
  stroke-width: 7;
  stroke-linecap: round;
  stroke-dasharray: 320;
  stroke-dashoffset: 320;
  animation: trace 1.1s 0.5s ease forwards;
}
.heros__chapo { font-size: clamp(1.08rem, 1.6vw, 1.25rem); color: var(--texte); max-width: 36em; margin: 0 0 30px; }
.heros__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 30px; }
.heros__preuves {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.92rem;
  font-weight: 550;
  color: var(--vert-fonce);
}
.heros__preuves li { display: inline-flex; align-items: center; gap: 8px; }
.heros__preuves svg { width: 18px; height: 18px; flex: none; }

/* Visuel du héros */
.visuel {
  position: relative;
  aspect-ratio: 1 / 0.95;
  border-radius: 36px;
  background:
    radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.55), transparent 45%),
    linear-gradient(160deg, var(--peche) 0%, var(--peche-2) 100%);
  box-shadow: var(--ombre);
  overflow: hidden;
  isolation: isolate;
}
.visuel::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(19, 74, 63, 0.11) 1.6px, transparent 1.6px);
  background-size: 22px 22px;
  z-index: -1;
}
.visuel__gamelle {
  position: absolute;
  z-index: 1;
  left: 50%;
  bottom: 7%;
  width: 72%;
  transform: translateX(-50%);
}
.visuel__gamelle svg { display: block; width: 100%; height: auto; }
.croquette { animation: flotte 4.5s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.croquette:nth-of-type(2n) { animation-duration: 5.5s; animation-delay: -1.5s; }
.croquette:nth-of-type(3n) { animation-duration: 6.2s; animation-delay: -3s; }

.etiquette {
  position: absolute;
  z-index: 2;
  top: 9%;
  left: 7%;
  width: 46%;
  padding: 16px 18px 18px;
  background: var(--blanc);
  border-radius: 16px;
  box-shadow: var(--ombre);
  transform: rotate(-5deg);
  animation: balance 7s ease-in-out infinite;
}
.etiquette__titre {
  margin: 0 0 10px;
  font-size: clamp(0.62rem, 1vw, 0.78rem);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--vert-fonce);
}
.etiquette__titre + .etiquette__titre,
.ligne + .etiquette__titre { margin-top: 14px; }
.ligne {
  display: block;
  height: 8px;
  border-radius: 6px;
  background: var(--creme-2);
  margin-bottom: 8px;
}
.ligne--1 { width: 92%; background: linear-gradient(90deg, var(--ambre-clair), var(--peche-2)); }
.ligne--2 { width: 74%; }
.ligne--3 { width: 84%; }
.ligne--4 { width: 58%; }
.ligne--5 { width: 66%; }
.ligne--6 { width: 48%; }

.loupe {
  position: absolute;
  z-index: 4;
  top: 14%;
  left: 30%;
  width: 22%;
  animation: scanne 6s ease-in-out infinite;
  filter: drop-shadow(0 14px 18px rgba(13, 47, 40, 0.25));
}
.loupe svg { display: block; width: 100%; height: auto; }

.carte-prix {
  position: absolute;
  z-index: 3;
  right: 5%;
  top: 33%;
  padding: 14px 18px;
  border-radius: 18px;
  background: var(--vert);
  color: var(--blanc);
  box-shadow: var(--ombre);
  transform: rotate(5deg);
  animation: balance-inverse 6s ease-in-out infinite;
  text-align: left;
}
.carte-prix__etiquette {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ambre-clair);
  font-weight: 700;
}
.carte-prix strong {
  display: block;
  font-family: var(--display);
  font-size: clamp(1.4rem, 2.6vw, 2.1rem);
  line-height: 1.1;
  font-weight: 700;
}
.carte-prix span:last-child { font-size: 0.82rem; opacity: 0.85; }

.sceau {
  position: absolute;
  top: 5%;
  right: 5%;
  width: 26%;
  aspect-ratio: 1;
}
.sceau svg { width: 100%; height: 100%; }
.sceau__texte { animation: tourne 22s linear infinite; transform-origin: 60px 60px; }

/* Ruban défilant */
.ruban-zone { position: relative; overflow: hidden; padding: 26px 0; margin-top: -40px; z-index: 2; }
.ruban {
  background: var(--nuit);
  color: var(--creme);
  transform: rotate(-2deg);
  width: 110%;
  margin-left: -5%;
  padding: 16px 0;
  box-shadow: var(--ombre);
}
.ruban__piste {
  display: flex;
  width: max-content;
  animation: defile 38s linear infinite;
}
.ruban__piste span {
  display: inline-flex;
  align-items: center;
  gap: 28px;
  padding-right: 28px;
  font-family: var(--display);
  font-size: clamp(1.05rem, 2vw, 1.5rem);
  font-style: italic;
  font-weight: 500;
  white-space: nowrap;
}
.ruban__piste span::after { content: "✦"; font-style: normal; color: var(--ambre); font-size: 0.8em; }

/* Sections */
.section { padding: clamp(64px, 9vw, 120px) 0; position: relative; }
.section--sauge { background: var(--sauge); }
.section--peche { background: var(--peche); }
.section--nuit { background: var(--nuit); color: rgba(251, 246, 238, 0.82); }
.section--nuit h2, .section--nuit h3 { color: var(--creme); }
.section__tete { max-width: 760px; margin-bottom: clamp(36px, 5vw, 56px); }
.section__tete p { font-size: 1.12rem; margin: 0; }
.section__tete--centre { margin-left: auto; margin-right: auto; text-align: center; }
.section__tete--centre .surtitre { justify-content: center; }

/* Méthode */
.regles {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 20px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.regle {
  grid-column: span 2;
  position: relative;
  padding: 28px 26px 30px;
  background: var(--blanc);
  border: 1px solid var(--ligne);
  border-radius: var(--rayon);
  box-shadow: 0 2px 0 rgba(13, 47, 40, 0.02);
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
  overflow: hidden;
}
.regle:nth-child(4), .regle:nth-child(5) { grid-column: span 3; }
.regle:hover { transform: translateY(-6px); box-shadow: var(--ombre); border-color: transparent; }
.regle__numero {
  position: absolute;
  top: 10px;
  right: 18px;
  font-family: var(--display);
  font-size: 4.2rem;
  font-weight: 800;
  line-height: 1;
  color: var(--creme-2);
  transition: color 0.35s ease, transform 0.35s ease;
}
.regle:hover .regle__numero { color: var(--peche-2); transform: rotate(-6deg) scale(1.05); }
.regle__icone {
  display: inline-grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: var(--sauge);
  color: var(--vert);
  margin-bottom: 18px;
  transition: background-color 0.35s ease, color 0.35s ease;
}
.regle:hover .regle__icone { background: var(--vert); color: var(--blanc); }
.regle__icone svg { width: 28px; height: 28px; }
.regle h3 { position: relative; }
.regle p { margin: 0; position: relative; }

/* Calcul */
.calcul {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: center;
}
.calcul__texte p { font-size: 1.1rem; }
.formule {
  display: inline-block;
  margin-top: 8px;
  padding: 12px 18px;
  border-radius: 14px;
  background: rgba(251, 246, 238, 0.08);
  border: 1px dashed rgba(245, 194, 124, 0.5);
  font-family: var(--display);
  font-size: 1.05rem !important;
  color: var(--creme);
}
.calculette {
  background: var(--creme);
  color: var(--texte);
  border-radius: 28px;
  padding: clamp(22px, 3.5vw, 40px);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.55);
}
.calculette h3 { color: var(--encre); margin-bottom: 20px; }
.champ { margin-bottom: 22px; }
.champ__tete {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 10px;
  font-weight: 600;
  color: var(--encre);
}
.champ__saisie {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 650;
  color: var(--vert-fonce);
}
.champ__saisie input {
  width: 5.2em;
  padding: 6px 8px;
  border: 1px solid var(--ligne);
  border-radius: 10px;
  background: var(--blanc);
  font: inherit;
  text-align: right;
  color: var(--encre);
}
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 8px;
  border-radius: 8px;
  background: linear-gradient(90deg, var(--vert) var(--remplissage, 20%), var(--creme-2) var(--remplissage, 20%));
  outline-offset: 6px;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--blanc);
  border: 6px solid var(--ambre);
  box-shadow: 0 4px 10px rgba(13, 47, 40, 0.25);
  cursor: grab;
  transition: transform 0.2s ease;
}
input[type="range"]::-webkit-slider-thumb:hover { transform: scale(1.12); }
input[type="range"]::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--blanc);
  border: 6px solid var(--ambre);
  cursor: grab;
}
.resultats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 8px;
}
.resultat {
  padding: 16px 14px;
  border-radius: 16px;
  background: var(--blanc);
  border: 1px solid var(--ligne);
  text-align: center;
}
.resultat--principal { background: var(--vert); border-color: var(--vert); color: var(--blanc); }
.resultat__valeur {
  display: block;
  font-family: var(--display);
  font-size: clamp(1.15rem, 2vw, 1.55rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--encre);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.resultat--principal .resultat__valeur { color: var(--blanc); }
.resultat__unite { font-size: 0.82rem; }
.calculette__note { margin: 16px 0 0; font-size: 0.86rem; color: var(--doux); }

/* Prochains guides */
.guides {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.guide {
  display: flex;
  flex-direction: column;
  background: var(--blanc);
  border-radius: var(--rayon);
  overflow: hidden;
  box-shadow: var(--ombre-douce);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.guide:hover { transform: translateY(-8px) rotate(-0.6deg); box-shadow: var(--ombre); }
.guide__visuel {
  position: relative;
  display: grid;
  place-items: center;
  height: 150px;
  overflow: hidden;
}
.guide__visuel svg { width: 64px; height: 64px; transition: transform 0.5s ease; position: relative; }
.guide:hover .guide__visuel svg { transform: scale(1.12) rotate(-6deg); }
.guide__visuel::after {
  content: "";
  position: absolute;
  width: 170px;
  height: 170px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  right: -50px;
  top: -60px;
}
.guide--1 .guide__visuel { background: var(--peche); color: var(--corail); }
.guide--2 .guide__visuel { background: #dbeafe; color: #1d4e89; }
.guide--3 .guide__visuel { background: #fdf0c4; color: #9a6a12; }
.guide--4 .guide__visuel { background: var(--sauge); color: var(--vert); }
.guide__corps { padding: 22px 22px 26px; }
.etiquette-tag {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--creme-2);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--vert-fonce);
  margin-bottom: 12px;
}
.guide h3 { font-size: 1.18rem; }
.guide p { margin: 0; font-size: 0.97rem; }
.guides__date {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 34px;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--blanc);
  font-weight: 600;
  color: var(--vert-fonce);
  box-shadow: var(--ombre-douce);
}

/* Indépendance */
.engagements {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  list-style: none;
  padding: 0;
  margin: 0 0 34px;
}
.engagement {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 26px;
  border-radius: var(--rayon);
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.9);
}
.engagement__icone {
  flex: none;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--blanc);
  color: var(--corail);
  box-shadow: var(--ombre-douce);
}
.engagement__icone svg { width: 26px; height: 26px; }
.engagement h3 { font-size: 1.15rem; margin-bottom: 6px; }
.engagement p { margin: 0; font-size: 0.97rem; }

/* Pages intérieures */
.page-tete {
  padding: clamp(48px, 7vw, 96px) 0 clamp(40px, 6vw, 72px);
  background:
    radial-gradient(circle at 88% 20%, rgba(245, 194, 124, 0.35), transparent 40%),
    var(--sauge);
  overflow: hidden;
}
.page-tete h1 { font-size: clamp(2.3rem, 5.4vw, 4rem); margin: 0 0 16px; font-weight: 700; }
.page-tete p { font-size: 1.15rem; max-width: 40em; margin: 0; color: var(--texte); }
.fil { font-size: 0.88rem; margin-bottom: 18px; color: var(--doux); }
.fil a { color: var(--doux); }

.page-corps { padding: clamp(48px, 7vw, 96px) 0; }
.mise-en-page {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}
.mise-en-page--gauche { grid-template-columns: 260px minmax(0, 1fr); }
.prose { max-width: 760px; }
.prose h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin: 44px 0 12px; scroll-margin-top: 100px; }
.prose h2:first-child { margin-top: 0; }
.prose ul { padding-left: 22px; }
.prose li { margin-bottom: 8px; }
.encart {
  position: sticky;
  top: 100px;
  padding: 26px;
  border-radius: var(--rayon);
  background: var(--blanc);
  box-shadow: var(--ombre-douce);
}
.encart h2, .encart p.encart__titre {
  font-family: var(--display);
  font-size: 1.25rem;
  font-weight: 650;
  color: var(--encre);
  margin: 0 0 14px;
}
.encart dl { margin: 0; }
.encart dt { font-weight: 650; color: var(--encre); font-size: 0.92rem; margin-top: 14px; }
.encart dt:first-child { margin-top: 0; }
.encart dd { margin: 2px 0 0; font-size: 0.95rem; }
.sommaire { list-style: none; padding: 0; margin: 0; }
.sommaire li { margin-bottom: 4px; }
.sommaire a {
  display: block;
  padding: 7px 12px;
  border-radius: 10px;
  color: var(--texte);
  text-decoration: none;
  font-size: 0.95rem;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.sommaire a:hover { background: var(--sauge); color: var(--vert-fonce); }
.date-maj { font-size: 0.9rem; color: var(--doux); }

/* Pied de page */
.pied {
  background: var(--nuit);
  color: rgba(251, 246, 238, 0.72);
  padding: clamp(56px, 7vw, 88px) 0 32px;
  font-size: 0.95rem;
}
.pied a { color: rgba(251, 246, 238, 0.86); text-decoration: none; }
.pied a:hover { color: var(--ambre-clair); text-decoration: underline; }
.pied__grille {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(251, 246, 238, 0.14);
}
.pied .marque { color: var(--creme); margin-bottom: 14px; }
.pied__accroche { max-width: 30em; margin: 0 0 18px; }
.pied__promesses { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.pied__promesses li {
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid rgba(251, 246, 238, 0.22);
  font-size: 0.82rem;
}
.pied__titre {
  font-family: var(--display);
  font-size: 1.1rem;
  font-weight: 650;
  color: var(--creme);
  margin: 0 0 14px;
}
.pied__liens { list-style: none; padding: 0; margin: 0; }
.pied__liens li { margin-bottom: 8px; }
.pied__bas {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  padding-top: 24px;
  font-size: 0.88rem;
}

/* Apparition au défilement */
.js [data-apparition] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
  transition-delay: var(--delai, 0s);
}
.js [data-apparition].est-visible { opacity: 1; transform: none; }

/* Entrée du haut de page : CSS seul, dès le premier affichage (sans attendre le script) */
[data-entree] { animation: entree 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) both; animation-delay: var(--delai, 0s); }
@keyframes entree { from { opacity: 0; transform: translateY(24px); } }

/* Animations */
@keyframes trace { to { stroke-dashoffset: 0; } }
@keyframes pulsation {
  0% { box-shadow: 0 0 0 0 rgba(42, 138, 118, 0.55); }
  70% { box-shadow: 0 0 0 10px rgba(42, 138, 118, 0); }
  100% { box-shadow: 0 0 0 0 rgba(42, 138, 118, 0); }
}
@keyframes flotte {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-7px) rotate(8deg); }
}
@keyframes balance {
  0%, 100% { transform: rotate(-5deg) translateY(0); }
  50% { transform: rotate(-3deg) translateY(-8px); }
}
@keyframes balance-inverse {
  0%, 100% { transform: rotate(5deg) translateY(0); }
  50% { transform: rotate(3deg) translateY(8px); }
}
@keyframes scanne {
  0%, 100% { transform: translate(0, 0) rotate(-8deg); }
  35% { transform: translate(-55%, 60%) rotate(4deg); }
  70% { transform: translate(-15%, 130%) rotate(-4deg); }
}
@keyframes tourne { to { transform: rotate(360deg); } }
@keyframes defile { to { transform: translateX(-50%); } }

/* Guides : cartes cliquables, pages de guide, fiches marque */
.guide__lien { display: flex; flex-direction: column; height: 100%; color: inherit; text-decoration: none; }
.guide__lien:hover { color: inherit; }
.guide__lien:focus-visible { outline: 3px solid var(--ambre); outline-offset: 4px; border-radius: var(--rayon); }
.guide__suite { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; font-weight: 650; color: var(--vert); }
.guide__suite svg { width: 16px; height: 16px; transition: transform 0.25s ease; }
.guide:hover .guide__suite svg { transform: translateX(4px); }
.guide--bientot { box-shadow: none; border: 1px dashed var(--ligne); background: rgba(255, 255, 255, 0.55); }
.guide--bientot:hover { transform: none; box-shadow: none; }
.guide--bientot .guide__visuel { opacity: 0.7; }
.guides__pied { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 34px; }
.guides__pied .guides__date { margin-top: 0; }
.rubrique + .rubrique { margin-top: clamp(48px, 6vw, 80px); }
.rubrique h2 { margin: 0 0 24px; font-size: clamp(1.5rem, 3vw, 2rem); }
.rubrique h2 a { color: var(--encre); text-decoration: none; }
.rubrique h2 a:hover { color: var(--vert); }
.prose .guides { grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 8px 0 12px; padding-left: 0; }
.page-tete .fil span { color: var(--encre); }
.meta-guide { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin-top: 22px !important; font-size: 0.92rem !important; color: var(--doux) !important; }
.meta-guide .etiquette-tag { margin: 0 6px 0 0; background: var(--blanc); }
.meta-guide a { color: var(--doux); }
.prose h3 { font-size: 1.18rem; margin: 28px 0 8px; }
.prose ol { padding-left: 22px; }
.note { font-size: 0.88rem; color: var(--doux); }
.tableau-defile { overflow-x: auto; margin: 20px 0 10px; border-radius: 16px; border: 1px solid var(--ligne); background: var(--blanc); }
.tableau-defile:focus-visible { outline: 3px solid var(--ambre); outline-offset: 2px; }
.tableau { width: 100%; border-collapse: collapse; font-size: 0.95rem; font-variant-numeric: tabular-nums; }
.tableau th, .tableau td { padding: 11px 14px; text-align: right; border-bottom: 1px solid var(--ligne); white-space: nowrap; }
.tableau th:first-child { text-align: left; }
.tableau thead th { background: var(--sauge); color: var(--encre); font-weight: 650; font-size: 0.88rem; white-space: normal; line-height: 1.25; vertical-align: bottom; }
.tableau tbody th { font-weight: 600; color: var(--encre); }
.tableau tbody tr:last-child > * { border-bottom: 0; }
.tableau tbody tr:hover > * { background: var(--creme); }
.tableau--fiche th, .tableau--fiche td { text-align: left; white-space: normal; vertical-align: top; }
.tableau--fiche th { width: 34%; }
.appel { margin: 32px 0; padding: 26px; border-radius: var(--rayon); background: var(--peche); }
.appel p { margin: 0 0 16px; }
.appel .mention { margin: 12px 0 0; }
.mention { font-size: 0.8rem; color: var(--doux); }
.encart .btn { width: 100%; justify-content: center; margin-top: 20px; }
.encart .mention { margin: 10px 0 0; }
.encart .sommaire { margin-top: 4px; }
.sommaire-guide { margin: 0 0 36px; padding: 20px 24px; border-radius: 18px; background: var(--creme-2); }
.sommaire-guide p { margin: 0 0 8px; font-weight: 650; color: var(--encre); }
.sommaire-guide ol { margin: 0; padding-left: 20px; columns: 2; column-gap: 32px; }
.sommaire-guide li { margin-bottom: 4px; break-inside: avoid; }
.sommaire-guide a { color: var(--texte); }
.avis-liste { list-style: none; padding: 0 !important; margin: 20px 0; display: grid; gap: 14px; }
.avis-liste li { margin: 0; }
.avis { margin: 0; padding: 18px 22px; border-left: 4px solid var(--ambre); border-radius: 0 16px 16px 0; background: var(--blanc); box-shadow: var(--ombre-douce); }
.avis p { margin: 0 0 6px; font-family: var(--display); font-size: 1.08rem; font-style: italic; color: var(--encre); }
.avis footer { font-size: 0.85rem; color: var(--doux); }
.avis footer a { color: var(--doux); }
.barres { display: grid; gap: 10px; margin: 20px 0 10px; padding: 22px; border-radius: 18px; background: var(--blanc); border: 1px solid var(--ligne); }
.barre { display: grid; grid-template-columns: 74px minmax(0, 1fr) 56px; gap: 12px; align-items: center; font-size: 0.9rem; }
.barre__piste { height: 10px; border-radius: 999px; background: var(--creme-2); overflow: hidden; }
.barre__remplie { display: block; height: 100%; border-radius: 999px; background: var(--vert-vif); }
.barre__nombre { text-align: right; font-variant-numeric: tabular-nums; color: var(--encre); }
@media (max-width: 640px) {
  .prose .guides { grid-template-columns: minmax(0, 1fr); }
  .sommaire-guide ol { columns: 1; }
  .tableau th, .tableau td { padding: 9px 8px; font-size: 0.86rem; }
  .tableau thead th { white-space: normal; line-height: 1.25; vertical-align: bottom; }
  .appel { padding: 20px; }
  .appel .btn { width: 100%; justify-content: center; }
}

/* Photos */
.visuel--photo { background: var(--peche-2); }
.visuel--photo::before { display: none; }
.visuel__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.visuel--photo .sceau { z-index: 2; top: 4%; right: 4%; width: 21%; filter: drop-shadow(0 10px 18px rgba(13, 47, 40, 0.3)); }
.visuel--photo .carte-prix { top: auto; bottom: 7%; right: auto; left: 6%; }
.guide__visuel--photo { height: 170px; background: var(--creme-2); }
.guide__visuel--photo::after { display: none; }
.guide__visuel--photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.guide:hover .guide__visuel--photo img { transform: scale(1.06); }
.page-tete--photo .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(240px, 380px); gap: clamp(32px, 5vw, 80px); align-items: center; }
.page-tete__photo { position: relative; margin: 0; }
.page-tete__photo::before { content: ""; position: absolute; inset: 8% -5% -5% 8%; border-radius: 30px; background: var(--ambre-clair); opacity: 0.55; transform: rotate(-3deg); }
.page-tete__photo img { position: relative; display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border: 6px solid var(--blanc); border-radius: 30px; box-shadow: var(--ombre); transform: rotate(2deg); }
@media (max-width: 860px) {
  .page-tete--photo .wrap { grid-template-columns: minmax(0, 1fr); }
  .page-tete__photo { max-width: 460px; width: 100%; }
  .page-tete__photo::before { display: none; }
  .page-tete__photo img { aspect-ratio: 16 / 10; transform: none; }
}

/* Poils (canvas posé par app.js) */
.poils { position: fixed; inset: 0; z-index: 40; display: block; width: 100%; height: 100%; pointer-events: none; }
@media print { .poils { display: none; } }

/* Tablettes */
@media (max-width: 1040px) {
  .guides { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .engagements { grid-template-columns: minmax(0, 1fr); }
  .regle, .regle:nth-child(4), .regle:nth-child(5) { grid-column: span 3; }
  .regle:nth-child(5) { grid-column: 1 / -1; }
}

/* Mobiles et petites tablettes */
@media (max-width: 860px) {
  .heros__grille, .calcul, .mise-en-page, .mise-en-page--gauche { grid-template-columns: minmax(0, 1fr); }
  .visuel { max-width: 560px; width: 100%; margin: 0 auto; }
  .encart { position: static; }
  .mise-en-page--gauche .encart { order: -1; }
  .pied__grille { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .pied__grille > div:first-child { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  .nav .btn { display: none; }
  .nav { gap: 14px; }
  .nav a:not(.btn) { font-size: 0.9rem; white-space: nowrap; }
  .marque { font-size: 1.2rem; }
  .marque svg { width: 32px; height: 32px; }
  .regles { grid-template-columns: minmax(0, 1fr); }
  .regle, .regle:nth-child(4), .regle:nth-child(5) { grid-column: auto; }
  .guides { grid-template-columns: minmax(0, 1fr); }
  .resultats { grid-template-columns: minmax(0, 1fr); }
  .resultat { display: flex; justify-content: space-between; align-items: baseline; text-align: left; }
  .heros__actions .btn { flex: 1 1 100%; }
  .ruban-zone { margin-top: -24px; }
  .etiquette { padding: 12px 12px 12px; }
  .ligne { height: 6px; margin-bottom: 6px; }
  .pied__grille { grid-template-columns: minmax(0, 1fr); }
}

/* Mouvement réduit */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .souligne path { stroke-dashoffset: 0; animation: none; }
  [data-entree] { animation: none; }
  .js [data-apparition] { opacity: 1; transform: none; }
  .ruban__piste { animation: none; }
}
