/* =====================================================================
   FESTIVAL OGOBAGNA — Feuille de styles du site public
   ---------------------------------------------------------------------
   Conception mobile d'abord (exigence 15). Aucune police externe n'est
   chargee : la typographie repose sur les polices deja presentes sur
   l'appareil, ce qui supprime plusieurs requetes reseau et evite le
   clignotement du texte en connexion lente (exigence 18).

   Palette : ocres et terres cuites des falaises de Bandiagara, indigo des
   tissus, or des parures. Contrastes verifies pour rester lisibles.
   ===================================================================== */

:root {
  color-scheme: light;

  /* Couleurs */
  --terre: #8c3a1e;
  --terre-sombre: #6d2c14;
  --terre-claire: #b8542f;
  --ocre: #c98b2e;
  --or: #e0a94a;
  --indigo: #23364f;
  --indigo-clair: #35506f;
  --sable: #f7f0e4;
  --sable-fonce: #ebdfc9;
  --blanc: #ffffff;
  --nuit: #241a12;
  --texte: #2b2118;
  --texte-doux: #6b5b4c;
  --bordure: #e0d3bd;

  --succes: #2f6b46;
  --succes-fond: #e7f2eb;
  --alerte: #9a5b12;
  --alerte-fond: #fbf0dd;
  --danger: #97281f;
  --danger-fond: #fbeae8;
  --info-fond: #e9eef5;

  /* Typographie */
  --police-titre: Georgia, "Iowan Old Style", "Palatino Linotype", "Book Antiqua", serif;
  --police-texte: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  /* Mesures */
  --largeur-max: 1180px;
  --largeur-texte: 68ch;
  --rayon: 6px;
  --rayon-large: 12px;
  --espace: 1rem;
  --ombre: 0 1px 2px rgba(36, 26, 18, .06), 0 4px 14px rgba(36, 26, 18, .07);
  --ombre-forte: 0 6px 28px rgba(36, 26, 18, .16);
  --transition: .18s ease;
}

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

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

body {
  margin: 0;
  font-family: var(--police-texte);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--texte);
  background: var(--sable);
  overflow-wrap: break-word;
}

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

a { color: var(--terre); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--terre-sombre); }

h1, h2, h3, h4 {
  font-family: var(--police-titre);
  font-weight: 700;
  line-height: 1.22;
  color: var(--indigo);
  margin: 0 0 .6em;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(1.7rem, 4.5vw, 2.6rem); }
h2 { font-size: clamp(1.35rem, 3.2vw, 1.85rem); }
h3 { font-size: clamp(1.12rem, 2.4vw, 1.3rem); }
h4 { font-size: 1.02rem; }

p, ul, ol { margin: 0 0 1rem; }

hr { border: 0; border-top: 1px solid var(--bordure); margin: 2rem 0; }

blockquote {
  margin: 1.4rem 0;
  padding: .2rem 0 .2rem 1.1rem;
  border-left: 4px solid var(--ocre);
  color: var(--texte-doux);
  font-style: italic;
}

code {
  font-family: ui-monospace, "Cascadia Mono", Menlo, Consolas, monospace;
  font-size: .92em;
  background: var(--sable-fonce);
  padding: .1em .35em;
  border-radius: 3px;
}

:focus-visible {
  outline: 3px solid var(--indigo-clair);
  outline-offset: 2px;
  border-radius: 3px;
}

/* --- Structure -------------------------------------------------------- */
.conteneur {
  width: 100%;
  max-width: var(--largeur-max);
  margin-inline: auto;
  padding-inline: 1rem;
}

.section { padding-block: clamp(2rem, 5vw, 3.5rem); }
.section--sable { background: var(--sable-fonce); }
.section--blanc { background: var(--blanc); }

.page { padding-block: clamp(1.5rem, 4vw, 2.5rem) 3.5rem; }

.lien-evitement {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--indigo);
  color: #fff;
  padding: .7rem 1.1rem;
  z-index: 100;
}
.lien-evitement:focus { left: .5rem; top: .5rem; }

/* --- Bandeau de motif dogon ------------------------------------------ */
.bande-motif {
  height: 8px;
  background:
    repeating-linear-gradient(90deg,
      var(--terre) 0 14px,
      var(--ocre) 14px 28px,
      var(--indigo) 28px 42px,
      var(--or) 42px 56px);
}

/* --- En-tete ---------------------------------------------------------- */
.entete {
  background: var(--blanc);
  border-bottom: 1px solid var(--bordure);
  position: sticky;
  top: 0;
  z-index: 40;
}

.entete__barre {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  min-height: 62px;
}

.marque { display: flex; align-items: center; gap: .6rem; text-decoration: none; }
.marque__logo { width: 40px; height: 40px; flex: none; }
.marque__texte { display: flex; flex-direction: column; line-height: 1.15; }
.marque__nom {
  font-family: var(--police-titre);
  font-weight: 700;
  font-size: 1.12rem;
  color: var(--indigo);
}
.marque__slogan { font-size: .74rem; color: var(--texte-doux); }

.entete__actions { display: flex; align-items: center; gap: .35rem; }

.bouton-icone {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .35rem;
  min-width: 42px;
  min-height: 42px;
  padding: 0 .55rem;
  border: 1px solid transparent;
  border-radius: var(--rayon);
  background: transparent;
  color: var(--indigo);
  font: inherit;
  font-size: .88rem;
  cursor: pointer;
  text-decoration: none;
}
.bouton-icone:hover { background: var(--sable); }
.bouton-icone svg { width: 21px; height: 21px; }

.pastille {
  display: inline-block;
  min-width: 19px;
  padding: 0 5px;
  border-radius: 10px;
  background: var(--terre);
  color: #fff;
  font-size: .72rem;
  font-weight: 700;
  line-height: 19px;
  text-align: center;
}

/* Navigation principale */
.navigation { border-top: 1px solid var(--bordure); }
.navigation[hidden] { display: none; }
.navigation__liste {
  list-style: none;
  margin: 0;
  padding: .35rem 0 .6rem;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.navigation__lien {
  display: block;
  padding: .62rem .7rem;
  border-radius: var(--rayon);
  color: var(--indigo);
  text-decoration: none;
  font-weight: 600;
  font-size: .95rem;
}
.navigation__lien:hover { background: var(--sable); color: var(--terre); }
.navigation__lien[aria-current="page"] {
  background: var(--sable);
  color: var(--terre);
  box-shadow: inset 3px 0 0 var(--terre);
}

/* Sous-menus. Sur mobile ils sont simplement deplies sous leur entree :
   pas de survol possible au doigt, et un menu deroulant tactile ajoute
   un geste inutile. */
.navigation__sous-menu {
  list-style: none;
  margin: 0 0 .2rem;
  padding: 0 0 0 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.navigation__sous-lien {
  display: block;
  padding: .42rem .7rem;
  border-radius: var(--rayon);
  color: var(--texte-doux);
  text-decoration: none;
  font-size: .88rem;
}
.navigation__sous-lien:hover,
.navigation__sous-lien:focus-visible { background: var(--sable); color: var(--terre); }

@media (min-width: 900px) {
  .navigation { border-top: 0; }
  .navigation[hidden] { display: block; }
  .entete__barre { min-height: 74px; }
  .navigation__liste {
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    padding: 0 0 .45rem;
    gap: .1rem;
  }
  .navigation__lien { padding: .45rem .7rem; font-size: .93rem; }

  /* Au-dela de 900 px, le sous-menu s'efface et ne reparait qu'au survol
     ou au passage du clavier. « visibility » plutot que « display » pour
     que la transition fonctionne et que le contenu reste annonce aux
     lecteurs d'ecran au moment ou il s'affiche. */
  .navigation__groupe { position: relative; }
  .navigation__sous-menu {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 30;
    min-width: 13rem;
    padding: .35rem;
    margin: 0;
    background: var(--fond);
    border: 1px solid var(--bordure);
    border-radius: var(--rayon);
    box-shadow: 0 10px 24px rgb(0 0 0 / 12%);
    opacity: 0;
    visibility: hidden;
    transition: opacity .12s ease;
  }
  .navigation__groupe:hover .navigation__sous-menu,
  .navigation__groupe:focus-within .navigation__sous-menu {
    opacity: 1;
    visibility: visible;
  }
  .navigation__sous-lien { white-space: nowrap; }
  .navigation__lien[aria-current="page"] {
    box-shadow: inset 0 -3px 0 var(--terre);
    border-radius: var(--rayon) var(--rayon) 0 0;
  }
  .bouton-menu { display: none; }
}

/* --- Fil d'Ariane ----------------------------------------------------- */
.fil-ariane { font-size: .85rem; color: var(--texte-doux); padding-block: .9rem; }
.fil-ariane ol { list-style: none; display: flex; flex-wrap: wrap; gap: .35rem; margin: 0; padding: 0; }
.fil-ariane li::after { content: "›"; margin-left: .35rem; color: var(--bordure); }
.fil-ariane li:last-child::after { content: none; }
.fil-ariane a { color: var(--texte-doux); }

/* --- Boutons ---------------------------------------------------------- */
.bouton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  padding: .68rem 1.15rem;
  border: 1px solid transparent;
  border-radius: var(--rayon);
  background: var(--terre);
  color: #fff;
  font: inherit;
  font-weight: 600;
  font-size: .95rem;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}
.bouton:hover { background: var(--terre-sombre); color: #fff; }
.bouton:active { transform: translateY(1px); }
.bouton[disabled], .bouton[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }

.bouton--secondaire { background: var(--indigo); }
.bouton--secondaire:hover { background: var(--indigo-clair); }
.bouton--contour {
  background: transparent;
  border-color: var(--terre);
  color: var(--terre);
}
.bouton--contour:hover { background: var(--terre); color: #fff; }
.bouton--discret {
  background: transparent;
  border-color: var(--bordure);
  color: var(--indigo);
}
.bouton--discret:hover { background: var(--sable); color: var(--indigo); }
.bouton--danger { background: var(--danger); }
.bouton--danger:hover { background: #7c1f18; }
.bouton--petit { padding: .42rem .75rem; font-size: .85rem; }
.bouton--large { width: 100%; }
.bouton svg { width: 18px; height: 18px; flex: none; }

/* --- Messages --------------------------------------------------------- */
.message {
  display: flex;
  gap: .65rem;
  padding: .85rem 1rem;
  border-radius: var(--rayon);
  border-left: 4px solid;
  margin-bottom: 1rem;
  font-size: .95rem;
}
.message--succes { background: var(--succes-fond); border-color: var(--succes); color: #1f4c31; }
.message--erreur { background: var(--danger-fond); border-color: var(--danger); color: #75201a; }
.message--information { background: var(--info-fond); border-color: var(--indigo-clair); color: var(--indigo); }
.message--alerte { background: var(--alerte-fond); border-color: var(--alerte); color: #7a480c; }

/* --- Formulaires ------------------------------------------------------ */
.champ { margin-bottom: 1.1rem; }
.champ__etiquette {
  display: block;
  font-weight: 600;
  font-size: .92rem;
  margin-bottom: .3rem;
  color: var(--indigo);
}
.champ__obligatoire { color: var(--terre); }
.champ__aide { font-size: .84rem; color: var(--texte-doux); margin-top: .3rem; }
.champ__erreur { font-size: .86rem; color: var(--danger); margin-top: .3rem; font-weight: 600; }

input[type="text"], input[type="email"], input[type="tel"], input[type="password"],
input[type="number"], input[type="search"], input[type="date"], input[type="time"],
input[type="url"], select, textarea {
  width: 100%;
  padding: .62rem .75rem;
  border: 1px solid var(--bordure);
  border-radius: var(--rayon);
  background: var(--blanc);
  font: inherit;
  font-size: 1rem;      /* 16 px : evite le zoom automatique sur iOS */
  color: var(--texte);
  transition: border-color var(--transition), box-shadow var(--transition);
}
textarea { min-height: 140px; resize: vertical; line-height: 1.6; }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--texte-doux) 50%), linear-gradient(135deg, var(--texte-doux) 50%, transparent 50%); background-position: calc(100% - 18px) 52%, calc(100% - 13px) 52%; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; padding-right: 2.2rem; }

input:focus, select:focus, textarea:focus {
  border-color: var(--indigo-clair);
  box-shadow: 0 0 0 3px rgba(53, 80, 111, .15);
  outline: none;
}
input[aria-invalid="true"], textarea[aria-invalid="true"], select[aria-invalid="true"] {
  border-color: var(--danger);
}

.case { display: flex; align-items: flex-start; gap: .55rem; margin-bottom: .6rem; }
.case input { width: 18px; height: 18px; margin-top: .22rem; flex: none; accent-color: var(--terre); }
.case label { font-size: .94rem; }

.grille-champs { display: grid; gap: 0 1rem; }
@media (min-width: 640px) {
  .grille-champs--2 { grid-template-columns: 1fr 1fr; }
  .grille-champs--3 { grid-template-columns: repeat(3, 1fr); }
}

fieldset {
  border: 1px solid var(--bordure);
  border-radius: var(--rayon);
  padding: 1rem 1.1rem .4rem;
  margin: 0 0 1.4rem;
}
legend { font-weight: 700; padding-inline: .4rem; color: var(--indigo); font-family: var(--police-titre); }

/* --- Cartes ----------------------------------------------------------- */
.grille {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}
@media (min-width: 560px) { .grille--2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 760px) { .grille--3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px) { .grille--4 { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 560px) { .grille--auto { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); } }

.carte {
  display: flex;
  flex-direction: column;
  background: var(--blanc);
  border: 1px solid var(--bordure);
  border-radius: var(--rayon-large);
  overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition);
}
.carte:hover { box-shadow: var(--ombre); transform: translateY(-2px); }
.carte__media { position: relative; background: var(--sable-fonce); aspect-ratio: 3 / 2; }
.carte__media img { width: 100%; height: 100%; object-fit: cover; }
.carte__media--portrait { aspect-ratio: 1 / 1; }
.carte__corps { padding: .95rem 1.05rem 1.15rem; display: flex; flex-direction: column; flex: 1; }
.carte__surtitre {
  font-size: .74rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  font-weight: 700;
  color: var(--terre);
  margin-bottom: .3rem;
}
.carte__titre { font-size: 1.08rem; margin: 0 0 .45rem; line-height: 1.3; }
.carte__titre a { color: var(--indigo); text-decoration: none; }
.carte__titre a:hover { color: var(--terre); text-decoration: underline; }
.carte__texte { font-size: .92rem; color: var(--texte-doux); margin: 0 0 .8rem; flex: 1; }
.carte__pied {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .6rem;
  font-size: .84rem;
  color: var(--texte-doux);
}

/* Etiquette d'angle (nouveaute, promotion, rupture) */
.etiquette {
  position: absolute;
  top: .6rem;
  left: .6rem;
  padding: .2rem .55rem;
  border-radius: 3px;
  background: var(--indigo);
  color: #fff;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
}
.etiquette--promotion { background: var(--terre); }
.etiquette--rupture { background: var(--texte-doux); }

/* --- Prix ------------------------------------------------------------- */
.prix { font-family: var(--police-titre); font-size: 1.15rem; font-weight: 700; color: var(--terre); }
.prix--barre { color: var(--texte-doux); font-size: .92rem; text-decoration: line-through; font-weight: 400; margin-right: .4rem; }

/* --- Banniere d'accueil ---------------------------------------------- */
.banniere {
  position: relative;
  background:
    linear-gradient(155deg, rgba(35, 54, 79, .93), rgba(140, 58, 30, .88)),
    var(--indigo);
  color: #fff;
  padding-block: clamp(2.5rem, 8vw, 5rem);
  overflow: hidden;
}
.banniere::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 8px;
  background:
    repeating-linear-gradient(90deg,
      var(--or) 0 14px, transparent 14px 28px);
  opacity: .8;
}
.banniere h1 { color: #fff; margin-bottom: .5rem; text-wrap: balance; }
.banniere__intro { font-size: clamp(1rem, 2.2vw, 1.16rem); max-width: 56ch; color: rgba(255,255,255,.92); }
.banniere__meta {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.2rem;
  margin: 1.1rem 0 1.6rem;
  font-size: .95rem;
  color: var(--or);
  font-weight: 600;
}
.banniere__actions { display: flex; flex-wrap: wrap; gap: .7rem; }
.banniere .bouton--contour { border-color: rgba(255,255,255,.65); color: #fff; }
.banniere .bouton--contour:hover { background: #fff; color: var(--indigo); }

/* --- Titres de section ----------------------------------------------- */
.entete-section {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: .5rem 1rem;
  margin-bottom: 1.4rem;
}
.entete-section h2 { margin: 0; }
.entete-section h2::after {
  content: "";
  display: block;
  width: 46px;
  height: 3px;
  margin-top: .45rem;
  background: var(--ocre);
}

/* --- Programme -------------------------------------------------------- */
.journee { margin-bottom: 2rem; }
.journee__titre {
  position: sticky;
  top: 62px;
  background: var(--sable);
  padding: .5rem 0;
  font-size: 1.05rem;
  color: var(--terre);
  border-bottom: 2px solid var(--sable-fonce);
  z-index: 5;
}
.creneau {
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: .9rem;
  padding: .95rem 0;
  border-bottom: 1px solid var(--bordure);
}
.creneau__heure { font-weight: 700; color: var(--indigo); font-size: .95rem; }
.creneau__titre { margin: 0 0 .25rem; font-size: 1.05rem; }
.creneau__titre a { color: var(--indigo); text-decoration: none; }
.creneau__titre a:hover { color: var(--terre); text-decoration: underline; }
.creneau__details { font-size: .88rem; color: var(--texte-doux); }

/* --- Etiquettes / puces ---------------------------------------------- */
.jeton {
  display: inline-block;
  padding: .18rem .55rem;
  border-radius: 999px;
  background: var(--sable-fonce);
  color: var(--indigo);
  font-size: .78rem;
  font-weight: 600;
  text-decoration: none;
}
a.jeton:hover { background: var(--ocre); color: #fff; }
.jeton--actif { background: var(--terre); color: #fff; }

.liste-jetons { display: flex; flex-wrap: wrap; gap: .45rem; list-style: none; margin: 0 0 1.3rem; padding: 0; }

/* --- Article ---------------------------------------------------------- */
.article { background: var(--blanc); border-radius: var(--rayon-large); padding: clamp(1.1rem, 3vw, 2.2rem); border: 1px solid var(--bordure); }
.article__meta { font-size: .88rem; color: var(--texte-doux); margin-bottom: 1.2rem; display: flex; flex-wrap: wrap; gap: .3rem 1rem; }
.article__chapeau { font-size: 1.08rem; color: var(--indigo); font-weight: 500; margin-bottom: 1.4rem; }
.article__corps { max-width: var(--largeur-texte); }
.article__corps h2, .article__corps h3 { margin-top: 1.8rem; }
.article__corps img { border-radius: var(--rayon); margin-block: 1.2rem; }
.article__illustration { margin: 0 0 1.6rem; border-radius: var(--rayon); overflow: hidden; }
.article__illustration figcaption { font-size: .84rem; color: var(--texte-doux); padding-top: .4rem; }

/* --- Galerie ---------------------------------------------------------- */
.galerie { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .6rem; }
.galerie a { display: block; border-radius: var(--rayon); overflow: hidden; background: var(--sable-fonce); aspect-ratio: 1; }
.galerie img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.galerie a:hover img { transform: scale(1.05); }

.cadre-video {
  position: relative;
  padding-top: 56.25%;
  background: var(--nuit);
  border-radius: var(--rayon);
  overflow: hidden;
}
.cadre-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* --- Tableaux --------------------------------------------------------- */
.tableau-defilant { overflow-x: auto; -webkit-overflow-scrolling: touch; margin-bottom: 1.2rem; }
table { width: 100%; border-collapse: collapse; font-size: .93rem; background: var(--blanc); }
th, td { padding: .65rem .75rem; text-align: left; border-bottom: 1px solid var(--bordure); vertical-align: top; }
th { background: var(--sable-fonce); font-weight: 700; color: var(--indigo); white-space: nowrap; }
td.nombre, th.nombre { text-align: right; white-space: nowrap; }

/* --- Panier et commande ---------------------------------------------- */
.disposition-boutique { display: grid; gap: 1.6rem; }
@media (min-width: 980px) {
  .disposition-boutique { grid-template-columns: 260px 1fr; align-items: start; }
  .disposition-commande { grid-template-columns: 1fr 340px; }
}

.panneau {
  background: var(--blanc);
  border: 1px solid var(--bordure);
  border-radius: var(--rayon-large);
  padding: 1.1rem 1.15rem;
  margin-bottom: 1.2rem;
}
.panneau__titre { font-size: 1.02rem; margin-bottom: .8rem; }
.panneau--resume { position: sticky; top: 84px; }

.ligne-panier {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: .9rem;
  padding: .95rem 0;
  border-bottom: 1px solid var(--bordure);
}
.ligne-panier__image { border-radius: var(--rayon); overflow: hidden; background: var(--sable-fonce); aspect-ratio: 1; }
.ligne-panier__image img { width: 100%; height: 100%; object-fit: cover; }
.ligne-panier__actions { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-top: .5rem; }
.ligne-panier__actions input[type="number"] { width: 76px; }

.totaux { list-style: none; margin: 0; padding: 0; }
.totaux li { display: flex; justify-content: space-between; gap: 1rem; padding: .4rem 0; font-size: .95rem; }
.totaux li:last-child {
  border-top: 2px solid var(--sable-fonce);
  margin-top: .4rem;
  padding-top: .7rem;
  font-size: 1.14rem;
  font-weight: 700;
  color: var(--terre);
  font-family: var(--police-titre);
}

/* Etapes du tunnel de commande */
.etapes { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; margin: 0 0 1.6rem; padding: 0; font-size: .85rem; }
.etapes li { display: flex; align-items: center; gap: .4rem; color: var(--texte-doux); }
.etapes li::after { content: "›"; margin-left: .3rem; color: var(--bordure); }
.etapes li:last-child::after { content: none; }
.etapes__numero {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--sable-fonce);
  font-weight: 700;
  font-size: .78rem;
}
.etapes li[aria-current] { color: var(--terre); font-weight: 700; }
.etapes li[aria-current] .etapes__numero { background: var(--terre); color: #fff; }

/* Choix (mode de livraison, mode de paiement) */
.choix {
  display: block;
  border: 2px solid var(--bordure);
  border-radius: var(--rayon);
  padding: .85rem 1rem;
  margin-bottom: .7rem;
  transition: border-color var(--transition), background var(--transition);
}
.choix:hover { border-color: var(--ocre); }
/* L'entete porte l'etiquette du bouton radio : c'est la zone cliquable. */
.choix__entete {
  display: flex; align-items: center; gap: .6rem;
  font-weight: 600; cursor: pointer;
}
.choix__entete input { width: 18px; height: 18px; accent-color: var(--terre); flex: none; }
.choix__description { font-size: .88rem; color: var(--texte-doux); margin: .35rem 0 0 1.6rem; }
.choix__complement { margin: .8rem 0 0 1.6rem; }
.choix__complement .champ:last-child { margin-bottom: 0; }
.choix:has(input:checked) { border-color: var(--terre); background: #fdf7f1; }

/* --- Suivi de commande ------------------------------------------------ */
.frise { list-style: none; margin: 1.2rem 0; padding: 0 0 0 1.4rem; border-left: 2px solid var(--sable-fonce); }
.frise li { position: relative; padding: 0 0 1.1rem .6rem; font-size: .93rem; }
.frise li::before {
  content: "";
  position: absolute;
  left: -1.95rem;
  top: .35rem;
  width: 11px; height: 11px;
  border-radius: 50%;
  background: var(--bordure);
  border: 2px solid var(--sable);
}
.frise li.est-atteinte::before { background: var(--terre); }
.frise li.est-courante { font-weight: 700; color: var(--terre); }

/* --- Pagination ------------------------------------------------------- */
.pagination { display: flex; flex-wrap: wrap; gap: .3rem; justify-content: center; align-items: center; margin: 2rem 0 0; }
.pagination a, .pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 .6rem;
  border: 1px solid var(--bordure);
  border-radius: var(--rayon);
  background: var(--blanc);
  color: var(--indigo);
  text-decoration: none;
  font-size: .92rem;
}
.pagination a:hover { background: var(--sable-fonce); }
.pagination [aria-current="page"] { background: var(--terre); border-color: var(--terre); color: #fff; font-weight: 700; }
.pagination__resume { width: 100%; text-align: center; font-size: .85rem; color: var(--texte-doux); margin-top: .7rem; }

/* --- Filtres ---------------------------------------------------------- */
.filtres { background: var(--blanc); border: 1px solid var(--bordure); border-radius: var(--rayon-large); padding: 1rem 1.1rem; }
.filtres__groupe { margin-bottom: 1.2rem; }
.filtres__titre { font-size: .82rem; text-transform: uppercase; letter-spacing: .05em; color: var(--texte-doux); font-weight: 700; margin-bottom: .5rem; }
.filtres__liste { list-style: none; margin: 0; padding: 0; }
.filtres__liste li { margin-bottom: .2rem; }
.filtres__liste a { display: flex; justify-content: space-between; gap: .5rem; padding: .32rem .45rem; border-radius: var(--rayon); color: var(--indigo); text-decoration: none; font-size: .92rem; }
.filtres__liste a:hover { background: var(--sable); }
.filtres__liste a[aria-current] { background: var(--sable-fonce); color: var(--terre); font-weight: 700; }
.filtres__compteur { color: var(--texte-doux); font-size: .84rem; }

.barre-outils {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .7rem;
  margin-bottom: 1.2rem;
}
.barre-outils__resultats { font-size: .9rem; color: var(--texte-doux); }

/* --- Fiche produit ---------------------------------------------------- */
.fiche-produit { display: grid; gap: 1.6rem; }
@media (min-width: 860px) { .fiche-produit { grid-template-columns: 1.05fr 1fr; align-items: start; } }

.visionneuse__principale { background: var(--sable-fonce); border-radius: var(--rayon-large); overflow: hidden; aspect-ratio: 4 / 3; }
.visionneuse__principale img { width: 100%; height: 100%; object-fit: cover; }
.visionneuse__vignettes { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: .5rem; margin-top: .6rem; }
.visionneuse__vignettes button {
  padding: 0; border: 2px solid transparent; border-radius: var(--rayon);
  overflow: hidden; background: var(--sable-fonce); cursor: pointer; aspect-ratio: 1;
}
.visionneuse__vignettes button[aria-current="true"] { border-color: var(--terre); }
.visionneuse__vignettes img { width: 100%; height: 100%; object-fit: cover; }

.caracteristiques { list-style: none; margin: 1.2rem 0; padding: 0; border-top: 1px solid var(--bordure); }
.caracteristiques li { display: flex; gap: 1rem; padding: .55rem 0; border-bottom: 1px solid var(--bordure); font-size: .93rem; }
.caracteristiques dt, .caracteristiques .cle { min-width: 130px; font-weight: 600; color: var(--texte-doux); }

.disponibilite { font-weight: 600; font-size: .92rem; }
.disponibilite--ok { color: var(--succes); }
.disponibilite--faible { color: var(--alerte); }
.disponibilite--rupture { color: var(--danger); }

/* --- Partenaires ------------------------------------------------------ */
.logos { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 1rem; align-items: center; }
.logos a, .logos div {
  display: flex; align-items: center; justify-content: center;
  background: var(--blanc); border: 1px solid var(--bordure);
  border-radius: var(--rayon); padding: 1rem; min-height: 92px;
}
.logos img { max-height: 62px; width: auto; object-fit: contain; }

/* Cartouche de logo dans les fiches partenaires. La hauteur est fixe
   pour que les cartes s alignent, et l image s y inscrit quelle que
   soit son orientation : un logo carre comme celui de Toguna ne doit
   pas deborder sur le nom. */
.logo-partenaire { height: 80px; display: flex; align-items: center; margin-bottom: .7rem; }
.logo-partenaire img { max-height: 100%; max-width: 100%; width: auto; object-fit: contain; }

/* --- Pied de page ----------------------------------------------------- */
.pied {
  background: var(--indigo);
  color: rgba(255,255,255,.82);
  padding-block: 2.4rem 1.4rem;
  margin-top: 3rem;
  font-size: .92rem;
}
.pied a { color: #fff; text-decoration: none; }
.pied a:hover { text-decoration: underline; color: var(--or); }
.pied h2 { color: #fff; font-size: 1rem; margin-bottom: .7rem; }
.pied__grille { display: grid; gap: 1.6rem; }
@media (min-width: 700px) { .pied__grille { grid-template-columns: 1.4fr 1fr 1fr; } }
.pied__liste { list-style: none; margin: 0; padding: 0; }
.pied__liste li { margin-bottom: .35rem; }
.pied__reseaux { display: flex; gap: .5rem; margin-top: .9rem; }
.pied__reseaux a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,.12);
}
.pied__reseaux a:hover { background: var(--terre); }
.pied__reseaux svg { width: 20px; height: 20px; fill: currentColor; }
.pied__bas {
  border-top: 1px solid rgba(255,255,255,.16);
  margin-top: 1.8rem;
  padding-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.2rem;
  justify-content: space-between;
  font-size: .85rem;
  color: rgba(255,255,255,.7);
}

/* --- Etats vides et erreurs ------------------------------------------ */
.etat-vide {
  text-align: center;
  padding: 2.6rem 1rem;
  background: var(--blanc);
  border: 1px dashed var(--bordure);
  border-radius: var(--rayon-large);
  color: var(--texte-doux);
}
.etat-vide h2 { color: var(--indigo); }

.page-erreur { text-align: center; padding-block: 4rem; }
.page-erreur__code { font-family: var(--police-titre); font-size: clamp(3.5rem, 14vw, 6rem); color: var(--ocre); line-height: 1; margin: 0; }
.page-erreur p { max-width: 56ch; margin-inline: auto; }
.page-erreur details { text-align: left; max-width: 70ch; margin-inline: auto; }
.page-erreur pre {
  overflow-x: auto; background: var(--blanc); padding: 1rem;
  border-radius: var(--rayon); font-size: .8rem;
}

/* --- Authentification ------------------------------------------------- */
.page-authentification {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 1rem 3rem;
  background:
    linear-gradient(160deg, rgba(35,54,79,.96), rgba(140,58,30,.92)),
    var(--indigo);
}
.carte-authentification {
  width: 100%;
  max-width: 430px;
  background: var(--blanc);
  border-radius: var(--rayon-large);
  padding: 1.8rem 1.6rem 1.6rem;
  box-shadow: var(--ombre-forte);
}
.carte-authentification__marque { text-align: center; margin-bottom: 1.4rem; }
.carte-authentification__marque svg { width: 54px; height: 54px; margin: 0 auto .6rem; }

/* --- Utilitaires ------------------------------------------------------ */
.texte-doux { color: var(--texte-doux); }
.texte-petit { font-size: .86rem; }
.texte-centre { text-align: center; }
.marge-haute { margin-top: 1.5rem; }
.sans-marge { margin: 0; }
.pleine-largeur { width: 100%; }
.visuellement-cache {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.groupe-boutons { display: flex; flex-wrap: wrap; gap: .6rem; }
.groupe-boutons--centre { justify-content: center; }
.entre-deux { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .7rem; }

/* --- Impression ------------------------------------------------------- */
@media print {
  .entete, .pied, .bande-motif, .fil-ariane, .bouton, .pagination { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .article, .panneau, .carte { border: 0; box-shadow: none; padding: 0; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9pt; color: #555; }
}

/* --- Preference de mouvement reduit ---------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

/* --- Sommaire de page et sections ancrees ----------------------------- */
/* Utilise par « Activites du festival » et « Partenaires », dont le menu
   principal pointe directement les sections. */
.sommaire-page {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin: 1.1rem 0 1.6rem;
}
.section-ancree {
  /* Sans cette marge, le titre de la section vient se coller au bord
     superieur de la fenetre quand on arrive par une ancre. */
  scroll-margin-top: 1.5rem;
  margin-top: 2rem;
}

/* Jeton d alerte : employe pour signaler l approche d une limite
   d exploitation (espace occupe par les images, par exemple). */
.jeton--alerte {
  background: var(--alerte-fond);
  color: var(--alerte);
  border-color: currentColor;
  font-weight: 600;
}

/* Encart de conseil : rappel d exploitation, moins alarmant qu une
   alerte mais qui doit se distinguer du texte courant. */
.encart--conseil {
  background: var(--info-fond);
  border-left: 3px solid var(--indigo);
  border-radius: 0 var(--rayon) var(--rayon) 0;
  padding: .9rem 1.1rem;
  margin: 1.2rem 0;
}

/* --- Taille des cibles tactiles --------------------------------------
   WCAG 2.2 niveau AA, critere 2.5.8 : une cible doit mesurer au moins
   24 x 24 px. Les liens du pied de page et les liens autonomes de type
   « Decouvrir le projet ↗ » tombaient a 18 ou 20 px de haut. Ils ne
   beneficient pas de l'exception prevue pour les liens inseres dans une
   phrase : ce sont des liens isoles.

   La regle n'ajoute que la hauteur manquante, pas de marge exterieure :
   la mise en page du pied reste celle de la refonte. */
.pied a,
.pied__reseaux a,
.design-lien,
.lien-blanc {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
}

/* --- Liens de suite d'une page institutionnelle ----------------------- */
.liens-page {
  display: flex;
  flex-wrap: wrap;
  gap: .7rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--bordure);
}
