/* Site public Pépées — direction « Le comptoir ».
 *
 * Palette et associations de la charte, sans exception. Aucune police
 * distante, aucun script, aucun cookie, aucun traceur : la page se charge
 * en une requête HTML, une CSS et une police déjà partagée avec le menu.
 */

@import url('/menu/lib/fonts/fonts.css');

:root {
  --terre-cuite: #6b2016;
  --bordeaux: #400b0b;
  --bleu-ciel: #accae3;
  --beurre-doux: #fae7b6;
  --corail: #ed4e39;
  --papier: #fffdf9;
  --filet: rgba(107, 32, 22, 0.16);
  --filet-clair: rgba(255, 253, 249, 0.3);
  --entete: 4.5rem;
  --texte: 40rem;
  --large: 46rem;
  --marge: clamp(1.25rem, 5vw, 3rem);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}

body {
  margin: 0;
  background: var(--papier);
  color: var(--bordeaux);
  font-family: 'Karla', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: clamp(17px, 1.5vw, 18px);
  line-height: 1.6;
  text-rendering: geometricPrecision;
  font-synthesis: none;
  -webkit-text-size-adjust: 100%;
}

/* Tout ce qui reçoit le clavier doit se voir : une seule règle, partout. */
:focus-visible {
  outline: 3px solid var(--terre-cuite);
  outline-offset: 3px;
  border-radius: 2px;
}
.sur-fond-sombre :focus-visible { outline-color: var(--beurre-doux); }

.evitement {
  position: absolute;
  left: 0.5rem;
  top: -100%;
  z-index: 100;
  background: var(--terre-cuite);
  color: var(--papier);
  padding: 0.7rem 1.1rem;
  border-radius: 0 0 6px 6px;
  font-weight: 700;
  text-decoration: none;
}
.evitement:focus { top: 0; }

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

.entete {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--entete);
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0 var(--marge);
  /* Un voile plutôt qu'un bandeau opaque : la page défile dessous sans
     être coupée net. */
  background: rgba(255, 253, 249, 0.86);
  border-bottom: 1px solid rgba(107, 32, 22, 0.1);
}
@supports (backdrop-filter: blur(1px)) {
  .entete { backdrop-filter: blur(12px) saturate(1.1); }
}
@supports not (backdrop-filter: blur(1px)) {
  .entete { background: var(--papier); }
}

.menu { position: static; }
.menu > summary {
  list-style: none;
  display: grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  margin-left: -0.55rem;
  border-radius: 999px;
  cursor: pointer;
  color: var(--terre-cuite);
}
.menu > summary::-webkit-details-marker { display: none; }
.menu > summary:hover { background: var(--beurre-doux); }
.menu-barres { display: block; width: 20px; height: 1.5px; background: currentColor; position: relative; }
.menu-barres::before,
.menu-barres::after {
  content: '';
  position: absolute;
  left: 0;
  width: 20px;
  height: 1.5px;
  background: currentColor;
}
.menu-barres::before { top: -6px; }
.menu-barres::after { top: 6px; }
.menu[open] .menu-barres { background: transparent; }
.menu[open] .menu-barres::before { top: 0; transform: rotate(45deg); }
.menu[open] .menu-barres::after { top: 0; transform: rotate(-45deg); }

/* Ouvert, le menu prolonge l'en-tête sur toute la largeur — pas une bulle
   flottante à coins ronds et ombre portée posée par-dessus la page. */
.menu-panneau {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--papier);
  border-bottom: 1px solid var(--filet);
  padding: 0.5rem var(--marge) 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 2rem;
}
.menu-panneau a {
  padding: 0.5rem 0;
  color: var(--terre-cuite);
  font-weight: 600;
  text-decoration: none;
}
.menu-panneau a:hover { text-decoration: underline; text-underline-offset: 4px; }

.entete-logo { display: flex; align-items: center; color: var(--terre-cuite); margin-left: 0.15rem; }
.entete-logo svg { height: 2.35rem; width: auto; display: block; }

/* Les deux mêmes pastilles à droite : suivre le café, ou lire la carte. */
.entete-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.entete-carte,
.entete-reseau {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 1.05rem;
  border: 1.5px solid var(--terre-cuite);
  border-radius: 999px;
  color: var(--terre-cuite);
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.entete-carte:hover,
.entete-reseau:hover { background: var(--terre-cuite); color: var(--papier); }
.entete-reseau svg { width: 17px; height: 17px; flex: 0 0 auto; }

/* Sur les petits écrans, l'icône suffit : le mot « Suivez-nous » ferait
   déborder la barre. */
@media (max-width: 34rem) {
  .entete-reseau { padding: 0.45rem 0.6rem; }
  .entete-reseau .mot-suivre { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
}

/* ---------- Information du moment ---------- */

/* Elle vit dans la colonne d'ouverture, sous l'état d'ouverture. Le filet
   est en terre cuite et non en corail : à l'arrivée sur le site, la seule
   couleur d'accent est le bleu de l'état d'ouverture — une de plus rendait
   le haut de page bavard. */
.info {
  max-width: 28rem;
  margin: 2.25rem 0 0;
  padding: 0.1rem 0 0.1rem 0.95rem;
  border-left: 2px solid var(--terre-cuite);
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--terre-cuite);
}

/* ---------- Ouverture ---------- */

.hero {
  position: relative;
  overflow: hidden;
  min-height: calc(100svh - var(--entete));
  display: flex;
  align-items: center;
  padding: clamp(3rem, 10vw, 6rem) var(--marge);
}
.hero > div { position: relative; max-width: var(--texte); margin-inline: auto; width: 100%; }

/* La tasse tient le grand blanc, en grand et derrière le texte : c'est un
   filigrane, pas une illustration posée dans un coin. Réglée en hauteur et
   plafonnée pour tenir entière dans le bloc, quelle que soit la fenêtre. */
.hero-tasse {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  height: min(80vh, 34rem);
  /* Plafond exprimé dans le bloc, pas dans l'écran : sur une fenêtre basse,
     une hauteur en vh dépasse le bloc et la tasse se fait couper en haut et
     en bas par le débordement masqué. */
  max-height: 86%;
  width: auto;
  /* Elle déborde légèrement des bords sur téléphone : c'est un fond, il
     n'a pas à tenir dans la page comme une illustration. */
  max-width: 112vw;
  color: var(--terre-cuite);
  opacity: 0.14;
  pointer-events: none;
}
/* Dès qu'il y a de la place, elle grandit et glisse vers la droite : la
   pastille d'ouverture reste au clair, hors de son anse. */
@media (min-width: 48rem) {
  .hero-tasse { left: 58%; height: min(92vh, 46rem); max-width: 92vw; }
}

h1 {
  font-size: clamp(2.9rem, 14vw, 4.75rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.025em;
  color: var(--terre-cuite);
  margin: 0;
  text-wrap: balance;
}
.lieu {
  margin: 1.4rem 0 0;
  font-size: clamp(1.2rem, 5.2vw, 1.45rem);
  font-weight: 500;
  color: var(--terre-cuite);
}
.statut {
  display: inline-flex;
  /* Sur deux lignes — « Fermé exceptionnellement — réouverture jeudi à
     8h30 » — la puce doit rester sur la première, pas flotter au milieu. */
  align-items: flex-start;
  gap: 0.5rem;
  max-width: 100%;
  margin-top: 1.9rem;
  padding: 0.55rem 1.05rem;
  background: var(--bleu-ciel);
  color: var(--terre-cuite);
  /* Un rayon fixe plutôt qu'une gélule : sur une ligne c'est une pastille,
     sur deux c'est un cartouche — et jamais un gros galet. */
  border-radius: 1.35rem;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.35;
}
.statut-pastille {
  /* Sans cela la puce se fait écraser en ellipse dès que le texte occupe
     deux lignes. */
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  margin-top: 0.45em;
  border-radius: 50%;
  background: var(--terre-cuite);
}
.statut[data-ouvert="non"] .statut-pastille { background: transparent; box-shadow: inset 0 0 0 2px var(--terre-cuite); }

/* ---------- Blocs ---------- */

.bloc { padding: clamp(3rem, 8vw, 5rem) var(--marge); }
/* L'en-tête reste au-dessus : une ancre doit s'arrêter sous lui, pas
   derrière. */
[id] { scroll-margin-top: calc(var(--entete) + 1rem); }
.bloc > div { max-width: var(--texte); margin-inline: auto; }
.bloc--large > div { max-width: var(--large); }
.bloc--bleu { background: var(--bleu-ciel); color: var(--terre-cuite); }
.bloc--terre { background: var(--terre-cuite); color: var(--papier); }

h2 {
  font-size: clamp(1.6rem, 5vw, 2.1rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--terre-cuite);
  margin: 0 0 1.2rem;
  text-wrap: balance;
}
.bloc--terre h2 { color: var(--papier); }
p { margin: 0 0 1.05rem; }
p:last-child { margin-bottom: 0; }
.important { font-size: clamp(1.15rem, 3.4vw, 1.35rem); font-weight: 500; line-height: 1.45; }

/* ---------- La carte ---------- */

.lignes { margin: 0 0 1.9rem; }
.ligne {
  display: flex;
  align-items: baseline;
  gap: 0.8rem;
  padding: 0.5rem 0;
  border-bottom: 1px dashed var(--filet);
}
.ligne-nom { font-weight: 500; color: var(--terre-cuite); }
.ligne-detail { font-size: 0.84em; font-style: italic; opacity: 0.7; }
.ligne-prix {
  margin-left: auto;
  font-weight: 700;
  color: var(--terre-cuite);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.bouton {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  background: var(--terre-cuite);
  color: var(--papier);
  border: 2px solid var(--terre-cuite);
  border-radius: 999px;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}
.bouton:hover { background: var(--bordeaux); border-color: var(--bordeaux); }
.bloc--terre .bouton {
  background: var(--papier);
  color: var(--terre-cuite);
  border-color: var(--papier);
}

/* ---------- Venir ---------- */

.venir { display: grid; gap: clamp(2rem, 5vw, 3rem); }
@media (min-width: 44rem) { .venir { grid-template-columns: 1fr 1fr; } }

.etiquette {
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  margin: 0 0 0.6rem;
  opacity: 0.85;
}
.adresse { font-style: normal; line-height: 1.7; margin: 0 0 1.5rem; }
.adresse:last-child { margin-bottom: 0; }
.venir .etiquette:not(:first-child) { margin-top: 0.25rem; }
.adresse a { color: inherit; text-underline-offset: 3px; }

.horaires { list-style: none; margin: 0; padding: 0; }
.horaires li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.35rem 0;
  border-bottom: 1px dashed var(--filet-clair);
  font-variant-numeric: tabular-nums;
}
.horaires li:last-child { border-bottom: none; }
.horaires .jour { font-weight: 600; }
.horaires .repos { opacity: 0.78; }
.horaires .aujourdhui {
  font-weight: 800;
  border-bottom-color: var(--papier);
}

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

.formulaire {
  display: grid;
  gap: 0.7rem;
  max-width: 34rem;
}
/* Le nom et l'adresse tiennent sur une ligne : le formulaire n'occupe plus
   un écran entier pour trois champs. */
@media (min-width: 34rem) {
  .formulaire { grid-template-columns: 1fr 1fr; }
  .champ--large, .mention-rgpd, .formulaire p { grid-column: 1 / -1; }
}
.champ { display: grid; gap: 0.25rem; }
.champ label { font-weight: 600; font-size: 0.9rem; color: var(--terre-cuite); }
.champ .aide { font-size: 0.85rem; opacity: 0.75; }
.champ input,
.champ textarea {
  font: inherit;
  color: inherit;
  padding: 0.55rem 0.75rem;
  background: #fff;
  border: 1.5px solid var(--filet);
  border-radius: 6px;
}
.champ input:hover,
.champ textarea:hover { border-color: var(--terre-cuite); }
.champ textarea { min-height: 4.75rem; resize: vertical; }
/* Le champ fautif se voit avant qu'on lise l'explication. */
.champ input[aria-invalid="true"],
.champ textarea[aria-invalid="true"] { border-color: var(--corail); }
.faute { font-size: 0.85rem; font-weight: 600; color: var(--corail); }
.leurre { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.mention-rgpd { font-size: 0.78rem; line-height: 1.45; opacity: 0.75; margin: 0; }

/* ---------- Pied de page ---------- */

/* Beurre doux : après l'aplat sombre de « Venir » et le blanc du
   formulaire, la page se ferme sur une note claire et chaude plutôt que sur
   une seconde masse foncée. Terre cuite dessus — l'association est prévue
   par la charte. Trois colonnes, des liens rangés par nature : la maison,
   le site, le légal. */
.pied {
  background: var(--beurre-doux);
  color: var(--terre-cuite);
  padding: clamp(2.75rem, 7vw, 4rem) var(--marge) 1.75rem;
}
.pied a { color: inherit; text-decoration: none; }
.pied a:hover { text-decoration: underline; text-underline-offset: 4px; }

.pied-corps {
  max-width: var(--large);
  margin-inline: auto;
  display: grid;
  gap: 2.25rem;
  align-items: start;
}
@media (min-width: 44rem) {
  .pied-corps { grid-template-columns: 1.5fr 1fr 1fr; gap: 3rem; }
}

.logo-complet {
  --hauteur: clamp(1.9rem, 4.5vw, 2.3rem);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: calc(var(--hauteur) * 0.424);
  color: var(--terre-cuite);
}
.logo-complet .tasse { height: calc(var(--hauteur) * 0.751); width: auto; display: block; }
.logo-complet .mot { height: var(--hauteur); width: auto; display: block; }
.logo-lien { display: inline-block; }
.logo-lien:hover { text-decoration: none; }

.pied-adresse {
  margin: 1.5rem 0 0;
  font-style: normal;
  font-size: 0.92rem;
  line-height: 1.75;
  opacity: 0.92;
}

/* Le lien le plus vivant du pied de page : il se voit comme un bouton, et
   se tient juste sous le logo plutôt qu'en fin de colonne. */
.pied .reseau {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.6rem 1.15rem;
  background: var(--terre-cuite);
  color: var(--beurre-doux);
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
}
.pied .reseau:hover { background: var(--bordeaux); color: var(--beurre-doux); text-decoration: none; }
.pied .reseau svg { width: 19px; height: 19px; flex: 0 0 auto; }

.pied ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.pied-plan a { font-weight: 600; font-size: 0.98rem; }
.pied-legal { margin-top: 1.6rem; }
.pied-legal a { font-size: 0.88rem; opacity: 0.85; }

.pied-bas {
  max-width: var(--large);
  margin: clamp(2.25rem, 5vw, 3rem) auto 0;
  padding-top: 1.1rem;
  border-top: 1px solid rgba(107, 32, 22, 0.2);
  font-size: 0.82rem;
  opacity: 0.75;
}

/* ---------- Accusés du formulaire ---------- */

.accuse {
  margin: 0 0 1.4rem;
  padding: 0.85rem 1.1rem;
  border-left: 3px solid var(--terre-cuite);
  background: var(--beurre-doux);
  color: var(--terre-cuite);
  font-weight: 500;
}
.accuse a { color: inherit; }
.accuse--erreur { border-left-color: var(--corail); }

/* ---------- Pages de texte : mentions, données, accessibilité ---------- */

.page-texte { padding-top: clamp(2.5rem, 7vw, 4rem); }
.page-texte h1 {
  font-size: clamp(1.9rem, 6vw, 2.6rem);
  line-height: 1.05;
  margin: 0 0 1.75rem;
}
.page-texte h2 {
  font-size: clamp(1.15rem, 3.4vw, 1.35rem);
  margin: 2.25rem 0 0.75rem;
}
.page-texte ul { margin: 0 0 1.05rem; padding-left: 1.2rem; }
.page-texte li { margin-bottom: 0.35rem; }
.page-texte a { color: var(--terre-cuite); text-underline-offset: 3px; }
/* ---------- La carte, en page du site ---------- */

/* Les fragments de rendu sont ceux des documents imprimés : ils posent
   .cat, .item, .formule… On les habille ici à l'échelle de l'écran, une
   seule colonne, lisible debout dans la file. */

/* Choix de la langue, en tête de la carte.
   Quelqu'un vient de scanner le QR, debout dans la file : il doit voir en une
   seconde que la carte existe dans sa langue. D'où la place — au-dessus du
   titre — et la taille : ce n'est pas une mention légale. */
.langues { display: flex; gap: 0.5rem; margin: 0 0 1.25rem; font-size: 0.95rem; }
.langue {
  display: inline-block;
  padding: 0.4rem 1rem;
  border: 1px solid currentColor;
  border-radius: 999px;
  text-decoration: none;
  color: var(--terre-cuite, #6b2016);
}
.langue--active {
  background: var(--terre-cuite, #6b2016);
  color: #fff;
  border-color: var(--terre-cuite, #6b2016);
}

.carte-page h1 {
  font-size: clamp(2rem, 6vw, 2.8rem);
  line-height: 1.05;
  margin: 0 0 2rem;
}

.cartes { display: flex; flex-direction: column; gap: 2.5rem; }

.carte-page .cat {
  font-size: clamp(1.15rem, 3.4vw, 1.35rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--terre-cuite);
  margin: 0 0 1rem;
}
.bloc--terre .cat { color: var(--papier); }

.carte-page .item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.8rem;
  padding: 0.5rem 0;
  border-bottom: 1px dashed var(--filet);
}
.carte-page .item-name { font-weight: 500; }
.carte-page .item-price { font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }

/* Contenance à la suite du nom, précision sur la ligne suivante. */
.carte-page .sub-in {
  font-size: 0.84em;
  font-style: italic;
  opacity: 0.72;
  margin-left: 0.4em;
  white-space: nowrap;
}
.carte-page .sub {
  display: block;
  font-size: 0.84em;
  font-style: italic;
  opacity: 0.72;
  margin-top: 0.1em;
  line-height: 1.4;
}

/* Une variante prolonge la ligne de son article : celui-ci perd son filet. */
.carte-page .item--porteur { border-bottom: none; padding-bottom: 0; }
.carte-page .item--variante { padding-top: 0.1rem; }
.carte-page .item--variante .item-name,
.carte-page .item--variante .item-price { font-size: 0.84em; font-style: italic; font-weight: 500; opacity: 0.72; }

/* Cartouche des déclinaisons, sous la catégorie qui le porte. */
.carte-page .declinaisons { margin-top: 1.1rem; }
.carte-page .declinaisons-titre--vide { display: none; }
.carte-page .declinaisons-titre {
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
  opacity: 0.8;
}
.carte-page .declinaisons-liste {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
  column-gap: 1.25rem;
  row-gap: 0.3rem;
  font-size: 0.88rem;
}
.carte-page .declinaisons-liste span { white-space: nowrap; }

/* Formules, sur l'aplat terre cuite. */
.carte-page .formules-grille { display: grid; grid-template-columns: 1fr; column-gap: 2.5rem; }
@media (min-width: 44rem) { .carte-page .formules-grille { grid-template-columns: 1fr 1fr; } }

.carte-page .formule {
  padding: 0.55rem 0;
  border-bottom: 1px dashed var(--filet-clair);
  line-height: 1.45;
}
.carte-page .formule-ligne {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.9rem;
}
.carte-page .f-name { font-weight: 600; }
.carte-page .f-qualifier { font-weight: 400; font-style: italic; }
.carte-page .f-price { font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.carte-page .f-desc { display: block; font-style: italic; opacity: 0.85; font-size: 0.92em; }

.carte-page .note { margin-top: 0.9rem; font-size: 0.88rem; line-height: 1.5; opacity: 0.85; }
.carte-page .footnote { padding-left: 0.62em; text-indent: -0.62em; }

.carte-page .dejeuner {
  margin-top: 1.75rem;
  padding-top: 1.4rem;
  border-top: 1px dashed var(--filet-clair);
}
.carte-page .dejeuner-lead { font-weight: 500; font-size: 1.05rem; }

.mention-prix { font-size: 0.9rem; opacity: 0.75; margin-bottom: 1.5rem; }
