/* Masa Oriental · styles du site, maquette « La Une ». Valeurs dans tokens.css. */

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

html { overflow-x: clip; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; touch-action: manipulation; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  overflow-x: clip;
  background: var(--creme); /* unslop-ignore : fond crème imposé par le moodboard (« Crème de une ») */
  color: var(--bleu-nuit);
  font-family: var(--font-texte);
  font-size: var(--fs-texte);
  line-height: var(--lh-texte);
}

img { max-width: 100%; height: auto; display: block; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-family: var(--font-titre); font-weight: 400; text-wrap: balance; }
p { text-wrap: pretty; }

a { color: inherit; }
a:hover { opacity: .88; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.sur-nuit { --focus: var(--jaune); }

.lien-evitement {
  position: absolute; left: 12px; top: -100px; z-index: 10;
  padding: 12px 18px; background: var(--bleu-nuit); color: var(--creme);
  font-weight: 700; text-decoration: none; --focus: var(--jaune);
}
.lien-evitement:focus { top: 12px; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

.conteneur { max-width: var(--largeur-max); margin: 0 auto; }
.section { padding: var(--section-y) var(--gouttiere); }

/* ---------- Logo (wordmark du moodboard) ---------- */
.logo {
  display: inline-flex; align-items: center;
  font-family: var(--font-titre); line-height: 1; letter-spacing: var(--ls-titre);
  color: var(--bleu-nuit); white-space: nowrap;
}
.logo__disque {
  display: inline-block; width: .78em; height: .78em; border-radius: 50%;
  background: var(--jaune); border: .07em solid var(--bleu-nuit); margin-right: .04em;
}
.logo--sombre { color: var(--creme); }
.logo--sombre .logo__disque { border-color: var(--creme); }

/* ---------- En-tête ---------- */
.entete { padding: 18px var(--gouttiere) 0; }
.entete .conteneur { display: flex; flex-direction: column; gap: 6px; }
.entete__mentions {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px;
  font-size: var(--fs-petit); font-weight: 600; color: var(--ardoise);
  border-bottom: var(--filet) solid var(--bleu-nuit); padding-bottom: 8px;
}
.entete__logo { text-align: center; padding: 6px 0; text-decoration: none; }
.entete__logo { display: block; }
.logo-img { display: block; width: auto; height: var(--logo-h); max-width: 100%; margin-inline: auto; }
.entete__logo .logo-img { --logo-h: var(--logo-h-page); }
.page-une .entete__logo { padding: 10px 0; }
.page-une .entete__logo .logo-img { --logo-h: var(--logo-h-une); }

.nav {
  border-top: var(--filet) solid var(--bleu-nuit);
  border-bottom: 1px solid var(--bleu-nuit);
  padding: 4px 0;
}
.nav ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 2px 26px;
}
.nav a {
  min-height: var(--cible); display: inline-flex; align-items: center;
  font-weight: 600; text-decoration: none;
}
.nav a[aria-current="page"] { font-weight: 700; text-decoration: underline; }

/* ---------- Boutons ---------- */
.bouton {
  display: inline-flex; align-items: center; justify-content: center; text-align: center;
  min-height: var(--cible-bouton); padding: 0 22px; border-radius: var(--rayon-pilule);
  background: var(--jaune); color: var(--bleu-nuit); font-weight: 700; text-decoration: none;
}
.bouton--moyen { min-height: 52px; padding: 0 26px; align-self: flex-start; }
.bouton--grand { min-height: 58px; padding: 0 30px; }
.bouton--geant { min-height: 62px; padding: 0 34px; font-size: var(--fs-lead); }

.lien-fort {
  min-height: var(--cible); display: inline-flex; align-items: center;
  font-weight: 700; color: var(--bleu-nuit);
}

/* ---------- Tampon « Fait maison » ---------- */
.tampon {
  position: absolute; padding: 8px 16px;
  background: var(--orange); color: var(--bleu-nuit); font-weight: 700;
}

/* ---------- Emplacements photo ---------- */
.photo-attente {
  display: flex; align-items: flex-end; padding: 16px;
  border: var(--filet) solid var(--bleu-nuit);
  background: var(--creme);
  font-size: var(--fs-legende); font-weight: 600;
}
.photo-attente--rayee {
  background: repeating-linear-gradient(135deg, var(--jaune), var(--jaune) 18px, var(--rayure-jaune) 18px, var(--rayure-jaune) 36px);
}

/* ---------- Accueil : hero ---------- */
.une { padding: clamp(28px, 4vw, 56px) var(--gouttiere); }
.une .conteneur { display: flex; flex-wrap: wrap; gap: 36px; align-items: flex-start; }
.une__principal { flex: 7 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.une__titre { font-size: var(--fs-h1-une); line-height: .98; letter-spacing: -.025em; }
.une__chapo { font-size: var(--fs-chapo); font-weight: 500; max-width: 640px; }
.une__photo { min-height: 340px; padding: 20px; font-size: var(--fs-petit); }
.une__figure { margin: 0; display: flex; flex-direction: column; gap: 8px; }
.une__figure img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border: var(--filet-fin) solid var(--bleu-nuit); }
.une__figure figcaption { font-size: var(--fs-legende); color: var(--ardoise); }
/* Vidéo verticale de la une : pleine largeur de colonne sur mobile, sous « Cette semaine » dans la colonne de côté */
.une__video { width: 100%; max-width: min(100%, 420px); }
.une__video video {
  display: block; width: 100%; height: auto; aspect-ratio: 9 / 16; object-fit: contain;
  background: var(--bleu-nuit); border: var(--filet-fin) solid var(--bleu-nuit); border-radius: 6px;
}
.une__cote { flex: 3 1 280px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }

.encart-appel {
  position: relative; padding: 28px; background: var(--bleu-nuit); color: var(--creme);
  display: flex; flex-direction: column; gap: 16px;
}
.encart-appel .tampon { top: -18px; right: -8px; transform: rotate(4deg); }
.encart-appel .encart-appel__titre { font-family: var(--font-titre); font-size: 34px; line-height: 1.05; color: var(--jaune); }
.encart-appel p { color: var(--texte-sur-nuit); }

.encart-semaine {
  padding: 22px; border: var(--filet-fin) solid var(--bleu-nuit);
  display: flex; flex-direction: column; gap: 10px;
}
.encart-semaine h2 { font-size: 24px; }
.encart-semaine p { font-weight: 600; }

/* ---------- Bande jaune ---------- */
.bande {
  background: var(--jaune);
  border-top: var(--filet) solid var(--bleu-nuit); border-bottom: var(--filet) solid var(--bleu-nuit);
  padding: 12px 20px; text-align: center; font-family: var(--font-titre); font-size: 21px;
}

/* ---------- Accueil : au menu cette semaine ---------- */
.titre-section {
  font-size: var(--fs-h2); letter-spacing: var(--ls-titre); line-height: 1.05;
}
.semaine .conteneur { display: flex; flex-direction: column; gap: 30px; }
.semaine__tete {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px;
  border-bottom: var(--filet) solid var(--bleu-nuit); padding-bottom: 12px;
}
.colonnes-plats { display: flex; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; }
.colonne-plat {
  flex: 1 1 300px; min-width: 0; padding: 8px 28px;
  display: flex; flex-direction: column; gap: 6px;
  border-left: var(--filet-fin) solid var(--bleu-nuit);
}
.colonne-plat:first-child { padding-left: 0; border-left: 0; }
.colonne-plat:last-child { padding-right: 0; }
.colonne-plat__prix { font-family: var(--font-titre); font-size: var(--fs-prix-geant); line-height: .9; letter-spacing: var(--ls-titre-serre); order: -1; }
.colonne-plat h3 { font-size: var(--fs-plat); line-height: 1.2; }
.colonne-plat p { color: var(--ardoise); }
.colonne-plat[hidden] { display: none; }
.colonne-plat__photo {
  order: -2; width: clamp(140px, 22vw, 220px); height: auto; aspect-ratio: 1; object-fit: contain; object-position: left center; margin-bottom: 8px;
}

/* ---------- Accueil : deux marchés ---------- */
.deux-marches { background: var(--bleu-nuit); color: var(--creme); }
.deux-marches .conteneur { display: flex; flex-wrap: wrap; gap: 40px; align-items: center; }
.deux-marches__texte { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.deux-marches__texte h2 { line-height: 1; color: var(--jaune); }
.deux-marches__texte p { color: var(--texte-sur-nuit); font-size: var(--fs-lead); }
.deux-marches__liste { flex: 1 1 360px; min-width: 0; display: flex; flex-direction: column; gap: 14px; list-style: none; margin: 0; padding: 0; }
.ligne-jour {
  padding: 22px 26px; background: var(--creme); color: var(--bleu-nuit);
  display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: baseline;
}
.ligne-jour--jaune { background: var(--jaune); }
.ligne-jour__jour { font-family: var(--font-titre); font-size: 40px; line-height: 1; }
.ligne-jour__lieu { font-weight: 600; }

/* ---------- Accueil : histoire ---------- */
.histoire .conteneur { display: flex; flex-direction: column; gap: 22px; }
.histoire h2 { line-height: 1; border-top: var(--filet) solid var(--bleu-nuit); padding-top: 14px; }
.histoire__colonnes { column-width: 300px; column-gap: 40px; column-rule: 1px solid var(--bleu-nuit); }
.histoire__colonnes p { margin: 0 0 14px; }
.histoire__colonnes p:last-child { margin-bottom: 0; }
.histoire__colonnes blockquote {
  margin: 0 0 14px; padding: 16px 20px; background: var(--jaune);
  font-family: var(--font-titre); font-size: 23px; line-height: 1.2; break-inside: avoid;
}

/* ---------- Accueil : galerie ---------- */
.galerie { background: var(--jaune); border-top: var(--filet) solid var(--bleu-nuit); }
.galerie .conteneur { display: flex; flex-direction: column; gap: 24px; }
.galerie__grille { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-start; list-style: none; margin: 0; padding: 0; }
.galerie__grille li { min-width: 0; }
.galerie__grille li:nth-child(1) { flex: 2 1 340px; }
.galerie__grille li:nth-child(2) { flex: 1 1 220px; }
.galerie__grille li:nth-child(3) { flex: 1 1 220px; }
.galerie__grille li:nth-child(1) .photo-attente { min-height: 320px; }
.galerie__grille li:nth-child(2) .photo-attente { min-height: 240px; }
.galerie__grille li:nth-child(3) .photo-attente { min-height: 280px; }

/* ---------- Pages intérieures : titre ---------- */
.tete-page { padding: clamp(32px, 5vw, 64px) var(--gouttiere) 16px; }
.tete-page .conteneur { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-end; justify-content: space-between; }
.tete-page h1 { flex: 1 1 480px; min-width: 0; font-size: var(--fs-h1); line-height: .96; letter-spacing: var(--ls-titre-serre); }
.tete-page p { flex: 1 1 280px; max-width: 380px; color: var(--ardoise); font-size: var(--fs-intro); }

/* ---------- Menu ---------- */
.carte { padding: 20px var(--gouttiere) var(--section-y); }
.carte > .conteneur { display: flex; flex-direction: column; gap: 44px; }
.groupe h2 { font-size: var(--fs-h2-groupe); border-top: var(--filet) solid var(--bleu-nuit); padding-top: 10px; margin-bottom: 4px; }
.groupe__note { margin-top: 6px; max-width: 60ch; color: var(--ardoise); }
.famille {
  font-size: var(--fs-famille); line-height: 1.15;
  margin: 22px 0 14px; padding-bottom: 6px; border-bottom: 1px solid var(--bleu-nuit);
}
.groupe ul {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 16px 20px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); align-items: stretch;
}
.plat {
  padding: 14px 18px 14px 14px; border: var(--filet-moyen) solid var(--bleu-nuit); background: var(--blanc);
  display: flex; gap: 16px; align-items: center; min-height: var(--fiche-hauteur);
}
.plat__photo {
  flex: none; width: var(--vignette); height: var(--vignette); padding: 6px;
  object-fit: contain; background: var(--creme); /* unslop-ignore : fond crème du moodboard */
}
.plat__corps { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.plat__tete { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 6px 10px; }
.plat h4 { margin: 0; font-family: var(--font-titre); font-weight: 400; font-size: var(--fs-carte-plat); line-height: 1.15; min-width: 0; text-wrap: balance; }
.plat__prix { font-variant-numeric: tabular-nums; flex: none; padding: 0 12px; background: var(--jaune); font-weight: 700; white-space: nowrap; }
.plat p { color: var(--ardoise); }

.commande {
  position: relative; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 22px;
  padding: 34px clamp(22px, 4vw, 44px); background: var(--bleu-nuit); color: var(--creme);
}
.commande .tampon { top: -16px; left: 28px; padding: 6px 16px; transform: rotate(-3deg); }
.commande__texte { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.commande__texte h2 { font-size: clamp(28px, 4vw, 44px); line-height: 1.05; color: var(--jaune); }
.commande__texte p { color: var(--texte-sur-nuit); }

/* ---------- Marchés ---------- */
.agenda { padding: 20px var(--gouttiere) clamp(40px, 6vw, 80px); }
.agenda .conteneur { display: flex; flex-direction: column; border-top: var(--filet) solid var(--bleu-nuit); }
.marche {
  display: flex; flex-wrap: wrap; gap: 20px 40px; align-items: center;
  padding: 30px 0; border-bottom: var(--filet-fin) solid var(--bleu-nuit);
}
.marche--jaune { background: var(--jaune); padding: 30px 18px; }
.marche__jour { flex: 1 1 260px; min-width: 0; font-family: var(--font-titre); font-size: var(--fs-jour-geant); line-height: .9; letter-spacing: var(--ls-titre-serre); }
.marche__infos { flex: 2 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.marche__infos h2 { font-size: var(--fs-marche); line-height: 1.05; }
.marche__ville { font-weight: 600; }
.marche__horaires { color: var(--ardoise); }
.marche--jaune .marche__horaires { color: var(--bleu-nuit); }
.marche__photo { flex: 1 1 220px; min-width: 0; min-height: 130px; padding: 12px; border-width: var(--filet-moyen); }
.marche__photo.photo-attente--rayee {
  background: repeating-linear-gradient(135deg, var(--jaune), var(--jaune) 14px, var(--rayure-jaune) 14px, var(--rayure-jaune) 28px);
}
@media (min-width: 1024px) {
  .marche { display: grid; grid-template-columns: calc(var(--fs-jour-geant) * 4.95) minmax(0, 1fr) minmax(190px, 240px); }
  .marche--jaune { grid-template-columns: calc(var(--fs-jour-geant) * 4.95 - 18px) minmax(0, 1fr) minmax(190px, 240px); }
}

.question { background: var(--bleu-nuit); color: var(--creme); padding: clamp(40px, 6vw, 80px) var(--gouttiere); }
.question .conteneur { position: relative; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 26px; }
.question .tampon { top: -52px; right: 0; transform: rotate(3deg); }
.question__texte { flex: 1 1 360px; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.question__texte h2 { font-size: var(--fs-h2-bandeau); line-height: 1; letter-spacing: var(--ls-titre); color: var(--jaune); }
.question__texte p { color: var(--texte-sur-nuit); font-size: var(--fs-lead); }

/* ---------- Pages simples (mentions, 404) ---------- */
.texte-courant { padding: 20px var(--gouttiere) var(--section-y); }
.texte-courant .conteneur { max-width: 760px; margin: 0; display: flex; flex-direction: column; gap: 14px; }
.texte-courant h2 { font-size: 30px; border-top: var(--filet) solid var(--bleu-nuit); padding-top: 10px; margin-top: 22px; }
.texte-courant a { font-weight: 600; }
@media (min-width: 1240px) { .texte-courant .conteneur { margin: 0 auto 0 calc((100% - var(--largeur-max)) / 2); } }

/* ---------- Pied de page ---------- */
.pied { padding: 26px var(--gouttiere); background: var(--bleu-nuit); color: var(--texte-sur-nuit); font-size: var(--fs-petit); }
.pied--filet { border-top: var(--filet) solid var(--jaune); }
.pied .conteneur { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; }
.pied .logo-img { --logo-h: var(--logo-h-pied); margin-inline: 0; }
.pied__liens { display: flex; flex-wrap: wrap; align-items: center; gap: 0 6px; margin: 0; }
.pied__liens a { display: inline-flex; align-items: center; min-height: var(--cible); color: var(--texte-sur-nuit); }
