/* ============================================================
   Duck Race Niort — feuille de style unique
   Toutes les valeurs proviennent des tokens ci-dessous (charte §11).
   Aucune valeur en dur ailleurs dans le fichier.
   ============================================================ */

/* ---------- 1. Tokens ---------- */

:root {
  /* Couleurs */
  --color-ink: #0B2A5B;
  --color-duck: #FFD500;
  --color-orange: #DD4404;
  --color-orange-dark: #B83A00;
  --color-water: #00A0F0;
  --color-water-dark: #0077C2;
  --color-sun: #FFE89C;
  --color-cream: #FDEEDA;
  --color-rose: #F2ADB9;
  --color-white: #FFFFFF;

  /* Polices */
  --font-title: "Luckiest Guy", "Arial Black", sans-serif;
  --font-accent: "Kaushan Script", "Brush Script MT", cursive;
  --font-body: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Tailles de texte */
  --text-h1: clamp(2.75rem, 9vw, 5.5rem);
  --text-h2: clamp(2.25rem, 6vw, 3.75rem);
  --text-accent: clamp(1.5rem, 4vw, 2.5rem);
  --text-h3: 1.5rem;
  --text-body: 1.0625rem;
  --text-small: 0.9375rem;
  --text-button: 1.1875rem;

  /* Espacements */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;

  /* Formes */
  --radius-sm: 12px;
  --radius-card: 24px;
  --radius-pill: 999px;
  --border-sticker: 2px solid var(--color-ink);
  --shadow-sticker: 4px 4px 0 var(--color-ink);
  --shadow-sticker-hover: 6px 6px 0 var(--color-ink);
  --shadow-title: 3px 4px 0 rgba(11, 42, 91, 0.18);

  /* Mise en page */
  --container: 1120px;
  --gutter: var(--space-5);
  --section-gap: var(--space-9);

  /* Mouvement */
  --ease-pop: cubic-bezier(0.34, 1.56, 0.64, 1);
  --duration: 180ms;
}

@media (max-width: 767px) {
  :root { --section-gap: var(--space-8); }
}

@media (min-width: 900px) {
  :root { --gutter: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  :root { --duration: 0ms; }
}

/* ---------- 2. Base ---------- */

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

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: 1.6;
  color: var(--color-ink);
  background: var(--color-white);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { max-width: 100%; height: auto; display: block; }

a { color: var(--color-orange-dark); }
a:hover { color: var(--color-orange); }

:focus-visible {
  outline: 3px solid var(--color-water-dark);
  outline-offset: 3px;
  border-radius: var(--space-1);
}

/* Lien d'évitement pour la navigation au clavier */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--color-ink);
  color: var(--color-duck);
  padding: var(--space-3) var(--space-5);
  font-weight: 800;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; }

/* ---------- 3. Typographie ---------- */

h1, .h1 {
  font-family: var(--font-title);
  font-size: var(--text-h1);
  line-height: 1.0;
  font-weight: 400;
  text-transform: uppercase;
  text-shadow: var(--shadow-title);
  letter-spacing: 0.01em;
}

h2, .h2 {
  font-family: var(--font-title);
  font-size: var(--text-h2);
  line-height: 1.05;
  font-weight: 400;
  text-transform: uppercase;
  text-shadow: var(--shadow-title);
  letter-spacing: 0.01em;
}

.accent {
  font-family: var(--font-accent);
  font-size: var(--text-accent);
  line-height: 1.2;
  color: var(--color-orange);
  text-shadow: none;
  display: block;
}

h3, .h3 {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: var(--text-h3);
  line-height: 1.25;
}

p { max-width: 65ch; }
.small { font-size: var(--text-small); line-height: 1.5; }
.strong { font-weight: 800; }

/* Titres centrés sur mobile, alignés à gauche à partir de 900 px */
.section__head { text-align: center; margin-bottom: var(--space-7); }
.section__head p { margin-left: auto; margin-right: auto; }

@media (min-width: 900px) {
  .section__head { text-align: left; }
  .section__head p { margin-left: 0; margin-right: 0; }
}

.section__head--center { text-align: center; }
.section__head--center p { margin-left: auto; margin-right: auto; }

.lead { margin-top: var(--space-4); }

/* ---------- 4. Mise en page ---------- */

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: var(--section-gap);
  position: relative;
}

.section--white  { background: var(--color-white); }
.section--sun    { background: var(--color-sun); }
.section--cream  { background: var(--color-cream); }
.section--rose   { background: var(--color-rose); }
.section--ink    { background: var(--color-ink); color: var(--color-white); }

.stack > * + * { margin-top: var(--space-4); }
.stack-lg > * + * { margin-top: var(--space-6); }

/* ---------- 5. En-tête ---------- */

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--color-white);
  border-bottom: var(--border-sticker);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  min-height: 72px;
  padding-block: var(--space-3);
}

/* Wordmark : construit en HTML/CSS, jamais en image (charte §2) */
.wordmark {
  display: inline-block;
  text-decoration: none;
  line-height: 1;
  padding-bottom: var(--space-2);
}

.wordmark__main {
  display: block;
  white-space: nowrap;
  font-family: var(--font-title);
  font-size: 1.5rem;
  line-height: 1;
  color: var(--color-ink);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.wordmark__accent {
  display: block;
  font-family: var(--font-accent);
  font-size: 1.125rem;
  line-height: 1;
  color: var(--color-orange);
  transform: rotate(-4deg);
  transform-origin: left center;
  margin-top: -0.35em;
  margin-left: 0.15em;
}

/* Variante footer : fond sombre */
.wordmark--light .wordmark__main { color: var(--color-duck); }

@media (min-width: 900px) {
  .wordmark__main { font-size: 1.875rem; }
  .wordmark__accent { font-size: 1.375rem; }
}

/* Navigation */
.nav { display: flex; align-items: center; gap: var(--space-5); }

.nav__list {
  display: flex;
  align-items: center;
  gap: var(--space-5);
}

.nav__link {
  font-weight: 700;
  font-size: var(--text-small);
  color: var(--color-ink);
  text-decoration: none;
  padding: var(--space-2) 0;
  border-bottom: 2px solid transparent;
}

.nav__link:hover,
.nav__link[aria-current="page"] {
  color: var(--color-ink);
  border-bottom-color: var(--color-duck);
}

/* La case a cocher reste accessible au clavier mais invisible a l ecran. */
.nav__checkbox {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.nav__toggle {
  display: none;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-weight: 800;
  font-size: var(--text-small);
  color: var(--color-ink);
  background: var(--color-white);
  border: var(--border-sticker);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-sticker);
  padding: var(--space-2) var(--space-4);
  cursor: pointer;
  user-select: none;
}

.nav__toggle-icon { width: 24px; height: 24px; }

/* Icone croix seulement quand le menu est ouvert */
.nav__toggle-icon--close { display: none; }
.nav__checkbox:checked ~ .nav__toggle .nav__toggle-icon--open { display: none; }
.nav__checkbox:checked ~ .nav__toggle .nav__toggle-icon--close { display: block; }

/* Anneau de focus reporte sur le label, la case etant invisible */
.nav__checkbox:focus-visible ~ .nav__toggle {
  outline: 3px solid var(--color-water-dark);
  outline-offset: 3px;
}

/* En dessous de 900 px : menu burger */
@media (max-width: 899px) {
  .nav__toggle { display: inline-flex; }

  /* Ferme par defaut : c est l etat qui compte quand JavaScript ne tourne pas. */
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--color-white);
    border-bottom: var(--border-sticker);
    padding: var(--space-4) var(--gutter) var(--space-6);
  }

  .nav__checkbox:checked ~ .nav { display: flex; }

  .nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav__link {
    display: block;
    font-size: var(--text-body);
    padding: var(--space-4) 0;
    border-bottom: 1px solid var(--color-sun);
  }

  .nav__link:hover,
  .nav__link[aria-current="page"] { border-bottom-color: var(--color-duck); }

  .nav__toggle-label { display: none; }
  .cta-extra { display: none; }
  .nav__toggle { padding: var(--space-2) var(--space-3); }
  .wordmark__main { font-size: 1.25rem; }
  .wordmark__accent { font-size: 1rem; }
}

@media (min-width: 900px) {
  .nav { display: flex; }
  .nav__checkbox, .nav__toggle { display: none; }
}

/* ---------- 6. Boutons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-weight: 800;
  font-size: var(--text-button);
  line-height: 1;
  text-align: center;
  text-decoration: none;
  padding: var(--space-4) 28px;
  border: var(--border-sticker);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-sticker);
  cursor: pointer;
  transition:
    transform var(--duration) var(--ease-pop),
    box-shadow var(--duration) var(--ease-pop),
    background-color var(--duration) ease;
}

.btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: var(--shadow-sticker-hover);
}

.btn:active {
  transform: translate(2px, 2px);
  box-shadow: 0 0 0 var(--color-ink);
}

@media (prefers-reduced-motion: reduce) {
  .btn:hover, .btn:active { transform: none; box-shadow: var(--shadow-sticker); }
}

.btn--primary {
  background: var(--color-orange);
  color: var(--color-white);
}
.btn--primary:hover { background: var(--color-orange-dark); color: var(--color-white); }

.btn--secondary {
  background: var(--color-white);
  color: var(--color-ink);
}
.btn--secondary:hover { color: var(--color-ink); }

.btn--sm { font-size: var(--text-small); padding: var(--space-3) var(--space-5); }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-top: var(--space-6);
}

.btn-row--center { justify-content: center; }

@media (max-width: 479px) {
  .btn-row .btn { width: 100%; }
}

/* ---------- 7. Hero ---------- */

.hero {
  background: var(--color-white);
  padding-top: var(--space-8);
  padding-bottom: var(--space-7);
  text-align: center;
  overflow: hidden;
}

.hero__inner { display: grid; gap: var(--space-6); justify-items: center; }

.hero h1 { color: var(--color-ink); }

.hero__accent { margin-top: var(--space-3); }

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-3);
  margin-top: var(--space-5);
}

.hero__image {
  width: min(100%, 460px);
  margin-top: var(--space-4);
}

.hero .btn-row { justify-content: center; }
.hero__cta { margin-top: 0; }

/* A partir de 900 px, le hero passe en deux colonnes : texte a gauche, canard a droite. */
@media (min-width: 900px) {
  .hero {
    text-align: left;
    padding-block: var(--space-9);
  }

  .hero__inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-areas:
      "text  image"
      "cta   image";
    align-items: center;
    justify-items: stretch;
    column-gap: var(--space-8);
    row-gap: var(--space-6);
  }

  .hero__text { grid-area: text; align-self: end; }
  .hero__cta { grid-area: cta; align-self: start; }
  .hero__image { grid-area: image; align-self: center; }

  .hero__meta { justify-content: flex-start; }
  .hero .btn-row { justify-content: flex-start; }

  .hero__image {
    width: 100%;
    max-width: 560px;
    justify-self: end;
    margin-top: 0;
  }
}

/* Unique animation de la page : le canard du hero qui flotte (charte §10) */
.hero__image img { animation: float 5s ease-in-out infinite; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-12px); }
}

@media (prefers-reduced-motion: reduce) {
  .hero__image img { animation: none; }
}

/* Pastilles d'information (date, lieu) */
.pill {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-weight: 800;
  font-size: var(--text-small);
  color: var(--color-ink);
  background: var(--color-duck);
  border: var(--border-sticker);
  border-radius: var(--radius-pill);
  padding: var(--space-2) var(--space-4);
}

.pill svg { width: 20px; height: 20px; flex: none; }
.pill--white { background: var(--color-white); }

/* Badge solidaire (charte §6) */
.badge-solidaire {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-weight: 700;
  font-size: var(--text-small);
  color: var(--color-ink);
  background: var(--color-rose);
  border-radius: var(--radius-pill);
  padding: var(--space-2) var(--space-4);
}

.badge-solidaire svg { width: 20px; height: 20px; flex: none; }

/* ---------- 8. Vague (hero → section suivante, et avant le footer) ---------- */

.wave {
  display: block;
  width: 100%;
  height: clamp(40px, 7vw, 80px);
  color: var(--color-water);
}

.wave svg { display: block; width: 100%; height: 100%; }

/* ---------- 9. Cartes ---------- */

.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
}

@media (min-width: 640px) { .grid--2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 640px) { .grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .grid--3 { grid-template-columns: repeat(3, 1fr); } }

.card {
  background: var(--color-white);
  border: var(--border-sticker);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-sticker);
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.card__icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  background: var(--color-duck);
  border: var(--border-sticker);
  border-radius: var(--radius-pill);
  color: var(--color-ink);
}

.card__icon svg { width: 24px; height: 24px; }

.card__title { font-weight: 800; font-size: 1.25rem; line-height: 1.25; }
.card p { font-size: var(--text-small); line-height: 1.5; max-width: none; }

/* Carte partenaire : logo affiché tel quel, sur fond blanc (charte §3 et §6) */
.card--logo { align-items: center; text-align: center; }

.card__logo {
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 120px;
  background: var(--color-white);
  border-radius: var(--radius-sm);
}

.card__logo img { max-height: 120px; width: auto; object-fit: contain; }

/* Emplacement en attendant le logo définitif d'un partenaire */
.card__logo--placeholder {
  border: 2px dashed var(--color-ink);
  color: var(--color-ink);
  font-family: var(--font-title);
  font-size: 1.25rem;
  opacity: 0.45;
  text-transform: uppercase;
}

/* Numérotation des étapes du concept */
.card--step { position: relative; }

.card__step-number {
  font-family: var(--font-title);
  font-size: 2.5rem;
  line-height: 1;
  color: var(--color-duck);
  -webkit-text-stroke: 2px var(--color-ink);
  text-shadow: none;
}

/* ---------- 10. Bloc « prix du canard » ---------- */

.price {
  display: grid;
  gap: var(--space-6);
  align-items: center;
}

@media (min-width: 900px) {
  .price { grid-template-columns: auto 1fr; gap: var(--space-8); }
}

.price__pastille {
  justify-self: center;
  display: grid;
  place-items: center;
  width: 200px;
  height: 200px;
  background: var(--color-duck);
  border: var(--border-sticker);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-sticker);
  text-align: center;
}

.price__amount {
  font-family: var(--font-title);
  font-size: 4rem;
  line-height: 1;
  color: var(--color-ink);
  text-shadow: var(--shadow-title);
}

.price__unit {
  display: block;
  font-weight: 800;
  font-size: var(--text-small);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: var(--space-2);
}

/* Répartition de l'argent */
.repartition { margin-top: var(--space-5); }

.repartition li {
  display: flex;
  align-items: baseline;
  gap: var(--space-3);
  padding: var(--space-3) 0;
  border-bottom: 1px solid rgba(11, 42, 91, 0.15);
  font-size: var(--text-small);
}

.repartition li:last-child { border-bottom: none; }

.repartition__part {
  font-family: var(--font-title);
  font-size: 1.375rem;
  line-height: 1;
  color: var(--color-ink);
  min-width: 3.5em;
  text-shadow: none;
}

/* Les deux façons d'acheter */
.buy-ways { margin-top: var(--space-7); }

.buy-way {
  background: var(--color-white);
  border: var(--border-sticker);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-sticker);
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.buy-way__tag {
  align-self: flex-start;
  font-weight: 800;
  font-size: var(--text-small);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: var(--color-sun);
  border-radius: var(--radius-pill);
  padding: var(--space-1) var(--space-4);
}

.buy-way ul { font-size: var(--text-small); }

.buy-way li {
  display: flex;
  gap: var(--space-3);
  padding: var(--space-2) 0;
}

.buy-way li svg { width: 20px; height: 20px; flex: none; margin-top: 2px; }

.buy-way .btn { margin-top: auto; align-self: flex-start; }

@media (max-width: 479px) {
  .buy-way .btn { align-self: stretch; }
}

/* ---------- 11. Section association ---------- */

.assoc { display: grid; gap: var(--space-6); align-items: center; }

@media (min-width: 900px) {
  .assoc { grid-template-columns: 320px 1fr; gap: var(--space-8); }
}

.assoc__logo {
  display: grid;
  place-items: center;
  background: var(--color-white);
  border: var(--border-sticker);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-sticker);
  padding: var(--space-6);
  min-height: 200px;
}

.assoc__logo img { max-height: 140px; width: auto; }

/* ---------- 12. Les lots (damier, charte §5) ---------- */

.damier-top,
.damier-bottom {
  height: 32px;
  background-image:
    linear-gradient(45deg, var(--color-ink) 25%, transparent 25%, transparent 75%, var(--color-ink) 75%),
    linear-gradient(45deg, var(--color-ink) 25%, transparent 25%, transparent 75%, var(--color-ink) 75%);
  background-size: 32px 32px;
  background-position: 0 0, 16px 16px;
  background-color: var(--color-white);
}

.lot {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  background: var(--color-white);
  border: var(--border-sticker);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-sticker);
  padding: var(--space-5);
  text-align: center;
  align-items: center;
}

.lot__rank {
  position: absolute;
  top: calc(-1 * var(--space-4));
  left: calc(-1 * var(--space-3));
  z-index: 1;
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: var(--radius-pill);
  border: var(--border-sticker);
  box-shadow: var(--shadow-sticker);
  background: var(--color-duck);
  font-family: var(--font-title);
  font-size: 1.5rem;
  line-height: 1;
  color: var(--color-ink);
}

/* Visuel du lot : fond blanc, image entiere, jamais recadree.
   La hauteur est donnee en pixels, jamais en pourcentage ni via aspect-ratio :
   dans un conteneur dimensionne par aspect-ratio, une hauteur en pourcentage
   retombe sur auto et l image deborde (cas du logo carre E.Leclerc sur iOS). */
.lot__image {
  align-self: stretch;
  display: grid;
  place-items: center;
  min-height: 180px;
  padding: var(--space-3);
  background: var(--color-white);
  border-radius: var(--radius-sm);
}

.lot__image img {
  max-width: 100%;
  max-height: 180px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.lot--1 .lot__rank { background: var(--color-duck); }
.lot--2 .lot__rank { background: var(--color-cream); }
.lot--3 .lot__rank { background: var(--color-rose); }

.lot__prize { font-weight: 800; font-size: 1.25rem; line-height: 1.25; }
.lot p { max-width: none; }

/* Partenaire principal : une carte plus large, au-dessus de la grille */
.partner-lead {
  position: relative;
  display: grid;
  gap: var(--space-5);
  align-items: center;
  text-align: center;
  background: var(--color-sun);
  border: var(--border-sticker);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-sticker);
  padding: var(--space-6);
}

@media (min-width: 640px) {
  .partner-lead {
    grid-template-columns: 260px 1fr;
    gap: var(--space-7);
    text-align: left;
  }
}

.partner-lead .card__logo {
  background: var(--color-white);
  border-radius: var(--radius-sm);
  padding: var(--space-4);
  min-height: 140px;
}

.partner-lead p { max-width: none; font-size: var(--text-small); }

.partner-lead__tag {
  position: absolute;
  top: calc(-1 * var(--space-3));
  left: var(--space-6);
  font-weight: 800;
  font-size: var(--text-small);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: var(--color-duck);
  color: var(--color-ink);
  border: var(--border-sticker);
  border-radius: var(--radius-pill);
  padding: var(--space-1) var(--space-4);
}

/* ---------- 13. Formulaires ---------- */

.form { display: grid; gap: var(--space-5); }

@media (min-width: 640px) {
  .form__row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-5); }
}

.field { display: grid; gap: var(--space-2); }

.field label { font-weight: 800; font-size: var(--text-small); }

.field .hint { font-size: var(--text-small); opacity: 0.75; }

.field input,
.field select,
.field textarea {
  font-family: var(--font-body);
  font-size: var(--text-body);
  color: var(--color-ink);
  background: var(--color-white);
  border: var(--border-sticker);
  border-radius: var(--radius-sm);
  padding: var(--space-3) var(--space-4);
  width: 100%;
}

.field textarea { min-height: 160px; resize: vertical; }

.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
  outline: 3px solid var(--color-water-dark);
  outline-offset: 2px;
}

.checkbox {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: var(--text-small);
}

.checkbox input { width: 20px; height: 20px; flex: none; margin-top: 2px; accent-color: var(--color-orange); }

/* ---------- 14. Formules de partenariat ---------- */

.formule { position: relative; }

.formule__name {
  font-family: var(--font-title);
  font-size: 1.75rem;
  line-height: 1;
  text-shadow: none;
  text-transform: uppercase;
}

.formule__price {
  font-family: var(--font-title);
  font-size: 2.5rem;
  line-height: 1;
  color: var(--color-ink);
  text-shadow: var(--shadow-title);
}

.formule ul { font-size: var(--text-small); }

.formule li {
  display: flex;
  gap: var(--space-3);
  padding: var(--space-2) 0;
  border-bottom: 1px solid rgba(11, 42, 91, 0.12);
}

.formule li:last-child { border-bottom: none; }
.formule li svg { width: 20px; height: 20px; flex: none; margin-top: 2px; color: var(--color-water-dark); }

.formule__flag {
  position: absolute;
  top: calc(-1 * var(--space-3));
  right: var(--space-5);
  font-weight: 800;
  font-size: var(--text-small);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: var(--color-duck);
  color: var(--color-ink);
  border: var(--border-sticker);
  border-radius: var(--radius-pill);
  padding: var(--space-1) var(--space-4);
}

/* ---------- 15. FAQ et infos pratiques ---------- */

.faq { display: grid; gap: var(--space-4); }

.faq details {
  background: var(--color-white);
  border: var(--border-sticker);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-sticker);
  padding: var(--space-5);
}

.faq summary {
  font-weight: 800;
  font-size: 1.125rem;
  line-height: 1.35;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-4);
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "";
  flex: none;
  width: 16px;
  height: 16px;
  margin-top: 6px;
  border-right: 3px solid var(--color-ink);
  border-bottom: 3px solid var(--color-ink);
  transform: rotate(45deg);
  transition: transform var(--duration) ease;
}

.faq details[open] summary::after { transform: rotate(-135deg); margin-top: 10px; }

.faq details > p,
.faq details > ul { margin-top: var(--space-4); font-size: var(--text-small); }

.faq details ul li { padding: var(--space-1) 0 var(--space-1) var(--space-5); position: relative; }
.faq details ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 8px;
  height: 8px;
  border-radius: var(--radius-pill);
  background: var(--color-duck);
  border: 1px solid var(--color-ink);
}

/* Liste d'infos pratiques */
.infos-list { display: grid; gap: var(--space-4); }

.infos-list > li {
  display: flex;
  gap: var(--space-4);
  background: var(--color-white);
  border: var(--border-sticker);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-sticker);
  padding: var(--space-5);
}

.infos-list svg { width: 24px; height: 24px; flex: none; color: var(--color-ink); }
.infos-list .infos-list__label { font-weight: 800; }
.infos-list .infos-list__value { font-size: var(--text-small); }

/* ---------- 16. Pied de page ---------- */

.footer {
  background: var(--color-ink);
  color: var(--color-white);
  padding-block: var(--space-8) var(--space-6);
}

.footer__grid { display: grid; gap: var(--space-7); }

@media (min-width: 768px) {
  .footer__grid { grid-template-columns: 1.4fr 1fr 1fr; gap: var(--space-8); }
}

.footer h3 {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 1.125rem;
  color: var(--color-white);
  margin-bottom: var(--space-4);
}

.footer p { font-size: var(--text-small); color: var(--color-white); }
.footer li { padding: var(--space-2) 0; }

.footer a {
  color: var(--color-duck);
  text-decoration: underline;
  font-size: var(--text-small);
}

.footer a:hover { color: var(--color-duck); text-decoration-thickness: 2px; }

.footer .wordmark { margin-bottom: var(--space-4); }

.footer__social { display: flex; gap: var(--space-3); margin-top: var(--space-5); }

.footer__social a {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 2px solid var(--color-duck);
  border-radius: var(--radius-pill);
  color: var(--color-duck);
  text-decoration: none;
}

.footer__social svg { width: 22px; height: 22px; }

.footer__bottom {
  margin-top: var(--space-7);
  padding-top: var(--space-5);
  border-top: 1px solid rgba(255, 255, 255, 0.25);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4) var(--space-5);
  justify-content: space-between;
  align-items: center;
}

.footer__bottom p { font-size: var(--text-small); }

/* ---------- 17. Page légale / contenu texte long ---------- */

.prose { max-width: 65ch; }
.prose h2 { font-size: clamp(1.75rem, 4vw, 2.25rem); margin-top: var(--space-7); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: var(--space-6); }
.prose p, .prose ul { margin-top: var(--space-4); }
.prose ul li { padding: var(--space-1) 0 var(--space-1) var(--space-5); position: relative; }
.prose ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 8px;
  height: 8px;
  border-radius: var(--radius-pill);
  background: var(--color-duck);
  border: 1px solid var(--color-ink);
}

/* En-tête de page intérieure */
.page-head {
  background: var(--color-sun);
  padding-block: var(--space-8);
  text-align: center;
}

.page-head h1 { color: var(--color-ink); }
.page-head p { margin: var(--space-4) auto 0; }

/* ---------- 18. Utilitaires ---------- */

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.text-center { text-align: center; }
.mt-6 { margin-top: var(--space-6); }
.mt-7 { margin-top: var(--space-7); }

/* Mention d'information à compléter avant la mise en ligne */
.todo {
  display: inline-block;
  background: var(--color-sun);
  border: 2px dashed var(--color-orange-dark);
  border-radius: var(--radius-sm);
  padding: 0 var(--space-2);
  font-weight: 700;
}

/* ---------- 19. Ancres sous l'en-tête collant ---------- */

[id] { scroll-margin-top: 90px; }

/* Rangs du podium : « 1er » doit tenir sur une seule ligne */
.lot__rank > span { white-space: nowrap; }
.lot__rank sup { font-size: 0.5em; vertical-align: 0.5em; }

/* Footer : « Niort » en orange sur bleu nuit atteint 3,17:1.
   Passé à 24 px, il relève du « grand texte » WCAG, dont le seuil est 3:1. */
.wordmark--light .wordmark__accent { font-size: 1.5rem; }

/* Lot pas encore annonce : cadeau mystere */
.lot__image--soon { color: var(--color-ink, #141413); opacity: .55; border: 2px dashed currentColor; }
.lot__image--soon svg { width: 72px; height: 72px; }

/* Ventes pas encore ouvertes */
.sales-closed { display:flex; gap:var(--space-3); align-items:flex-start; margin:0 0 var(--space-6); padding:var(--space-4) var(--space-5); background:var(--color-sun); border:2px solid var(--color-duck); border-radius:var(--radius-sm); }
.sales-closed svg { width:22px; height:22px; flex:none; margin-top:2px; }
.btn--disabled { opacity:.5; cursor:not-allowed; pointer-events:none; }
