/* =====================================================================
   Blanc Pur Café — 940 rue Richelieu, Beloeil
   Direction : « porcelaine ». Le nom promet du blanc pur, donc la page
   est un papier porcelaine (#FBFAF7) sans une seule ombre portée ; la
   seule masse sombre est le café lui-même (#17110D) et il sert de
   couleur d'encre pour le texte. Un accent framboise (#8C2F45) paraît
   trois fois et pas plus.

   TITRES — Fraunces, pas Bodoni. L'ancienne version titrait en Bodoni Moda,
   une didone à contraste vertical, très magazine de mode, très froide. Le
   titre d'un café de quartier qui fait des croissants doit être plus rond :
   Fraunces à 144 d'axe optique, SOFT 40 pour des empattements moins coupants,
   WONK 1 pour la petite asymétrie de ses italiques. Hanken Grotesk porte
   tout ce qui se lit.
   ===================================================================== */

:root {
  --porcelaine: #FBFAF7;
  --porcelaine-2: #F2EFE8;
  --encre: #17110D;
  --encre-doux: #4A3F36;
  --cafe: #6B4A32;
  --framboise: #8C2F45;
  --filet: #D9D3C7;

  --affichage: 'Fraunces', Georgia, 'Times New Roman', serif;
  --texte: 'Hanken Grotesk', 'Helvetica Neue', Arial, sans-serif;

  --gouttiere: clamp(1.25rem, 4vw, 4.5rem);
  --large: 78rem;
  --rail: clamp(2.25rem, 6vw, 5rem);
  --ease: cubic-bezier(.22,.61,.36,1);
}

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

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

body {
  margin: 0;
  background: var(--porcelaine);
  color: var(--encre);
  font-family: var(--texte);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; }

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

.saut {
  position: absolute; left: 1rem; top: -4rem; z-index: 60;
  background: var(--encre); color: var(--porcelaine);
  padding: .75rem 1.25rem; text-decoration: none; border-radius: 2px;
  transition: top .2s var(--ease);
}
.saut:focus { top: 1rem; }

:focus-visible {
  outline: 2px solid var(--framboise);
  outline-offset: 3px;
}

/* ---------------------------------------------------------------- entête */
/* L'entête est collant : sans réserve, « La carte » et « La place »
   atterrissaient 22 à 48 px SOUS l'entête au téléphone, titre à moitié caché. */
html { scroll-padding-top: 88px; }

.entete {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--porcelaine) 92%, transparent);
  backdrop-filter: saturate(1.1) blur(8px);
  border-bottom: 1px solid var(--filet);
}
.entete__in {
  max-width: var(--large);
  margin: 0 auto;
  padding: .75rem var(--gouttiere);
  display: flex; align-items: center; gap: 1.5rem;
}
.marque {
  display: flex; align-items: center;
  min-height: 44px; text-decoration: none; margin-right: auto;
}
/* Le logo réel du commerce, pas un faux logotype typographique : c'est un
   mot dessiné en capitales très espacées, donc il tient en hauteur, jamais
   en largeur. On lui donne une hauteur et on laisse la largeur suivre. */
.marque__logo {
  height: clamp(1.15rem, 2.4vw, 1.45rem);
  width: auto;
  max-width: 100%;
}

.nav { display: flex; gap: 1.75rem; }
.nav a {
  display: inline-flex; align-items: center; min-height: 44px;
  text-decoration: none; font-size: .9375rem; color: var(--encre-doux);
  position: relative;
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: left;
  transition: transform .3s var(--ease);
}
.nav a:hover { color: var(--encre); }
.nav a:hover::after { transform: scaleX(1); }

/* La rangée de sections du téléphone. Elle vit sous l'entête collante, sur une
   ligne qui défile. Pas de hamburger : quatre sections, quatre mots, ils
   tiennent en largeur. */
.nav-mobile {
  display: flex; gap: 1.5rem;
  padding: 0 var(--gouttiere);
  overflow-x: auto;
  border-top: 1px solid var(--filet);
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.nav-mobile::-webkit-scrollbar { display: none; }
.nav-mobile a {
  flex: 0 0 auto;
  display: inline-flex; align-items: center; min-height: 44px;
  font-size: .875rem; color: var(--encre-doux);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  padding-top: 2px;
}
.nav-mobile a:hover, .nav-mobile a:focus-visible { color: var(--encre); border-bottom-color: var(--framboise); }
@media (min-width: 640px) { .nav-mobile { display: none; } }

/* --------------------------------------------------------------- boutons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: .8rem 1.4rem;
  font-family: var(--texte); font-size: .9375rem; font-weight: 600;
  text-decoration: none; border: 1px solid transparent; border-radius: 2px;
  transition: background-color .2s var(--ease), color .2s var(--ease),
              transform .12s var(--ease), border-color .2s var(--ease);
}
.btn--plein { background: var(--encre); color: var(--porcelaine); }
.btn--plein:hover { background: var(--cafe); }
.btn--plein:active { transform: translateY(1px); }
.btn--grand { padding: 1.05rem 1.9rem; font-size: 1.0625rem; }
.entete__tel { font-variant-numeric: tabular-nums; }

.lien-souligne {
  display: inline-flex; align-items: center; min-height: 44px;
  width: fit-content;
  color: var(--encre);
  text-decoration: underline; text-decoration-thickness: 1px;
  text-underline-offset: .35em;
  text-decoration-color: var(--filet);
  transition: text-decoration-color .2s var(--ease);
}
.lien-souligne:hover { text-decoration-color: var(--framboise); }

/* ------------------------------------------------------------------ rail
   Le numéro de section n'est pas un eyebrow en capitales : c'est un chiffre
   en Fraunces italique, posé dans la marge, qui ne bouge pas avec le texte. */
.rail { display: none; }

h1, h2, h3 {
  font-family: var(--affichage);
  font-weight: 500;
  font-variation-settings: 'SOFT' 40, 'WONK' 1, 'opsz' 144;
  letter-spacing: -.018em;
  text-wrap: balance;
  margin: 0;
}
/* Fraunces porte une hauteur d'x plus forte que Bodoni : le titre perd un cran
   et gagne en tenue, sinon il écrase le chapeau sous lui. */
h1 { font-size: clamp(2.1rem, 6.6vw, 4.5rem); line-height: 1.02; }
h2 { font-size: clamp(1.85rem, 3.4vw, 2.85rem); line-height: 1.08; }
h3 { font-size: 1.0625rem; font-family: var(--texte); font-weight: 700; letter-spacing: 0; }

.chapeau {
  color: var(--encre-doux);
  font-size: 1.0625rem; line-height: 1.65;
  max-width: 46ch;
  margin: 1.25rem 0 0;
}

/* ------------------------------------------------------------------- hero
   La première page est de la porcelaine ; la photo entre par la droite,
   calée au bord de la fenêtre, jamais dans un cadre centré. */
.hero {
  display: grid;
  gap: 0;
  border-bottom: 1px solid var(--filet);
}
.hero__texte {
  padding: clamp(1.75rem, 6vw, 5.5rem) var(--gouttiere) clamp(1.5rem, 4.5vw, 3.5rem);
  max-width: 44rem;
}
.hero__adresse {
  margin: 0 0 1.1rem;
  font-size: .8125rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--encre-doux);
}
h1 em {
  font-style: italic;
  color: var(--framboise);
  font-variation-settings: 'SOFT' 60, 'WONK' 1, 'opsz' 144;
}
.hero__chapeau {
  margin: 1.75rem 0 0;
  font-size: 1.125rem; line-height: 1.6;
  color: var(--encre-doux);
  max-width: 34ch;
}
.hero__actions {
  display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem;
  margin-top: 2rem;
}
.hero__faits {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  margin: 3rem 0 0; padding-top: 1.5rem;
  border-top: 1px solid var(--filet);
  max-width: 38rem;
}
.hero__faits div { min-width: 0; }
.hero__faits dt {
  font-size: .6875rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--encre-doux);
}
.hero__faits dd {
  margin: .35rem 0 0; font-size: .9375rem; font-weight: 600;
  line-height: 1.35;
  /* « 8 h – 16 h » ne se coupe jamais entre le chiffre et son h : au téléphone
     la troisième colonne portait « 8 h – 16 / h », le h seul sur sa ligne. */
  white-space: nowrap;
  text-wrap: balance;
}
@media (max-width: 639px) {
  /* sous 400 px, trois colonnes ne tiennent pas l'horaire d'un seul tenant :
     la note Google descend dans la colonne du milieu, l'horaire garde la sienne. */
  .hero__faits { grid-template-columns: 1fr 1fr; }
  .hero__faits div:nth-child(3) { grid-column: 1 / -1; }
}
.hero__photo { margin: 0; position: relative; overflow: hidden; }
.hero__photo img {
  width: 100%; height: 100%; object-fit: cover;
  aspect-ratio: 4 / 3;
  transform: scale(1.001);
  transition: transform .6s var(--ease);
}
.hero__photo:hover img { transform: scale(1.02); }

/* ------------------------------------------------------------- sections */
main > section { position: relative; }

.rail__num {
  font-family: var(--affichage); font-style: italic;
  font-variation-settings: 'SOFT' 40, 'WONK' 1, 'opsz' 144;
  font-size: 1rem; color: var(--cafe);
}

/* ----------------------------------------------------------------- carte
   La carte est le cœur de cette version : trois catégories, une ligne par
   item, le prix aligné à droite en chiffres tabulaires. Aucun encadré, aucun
   fond de carte, seulement des filets qui tiennent la colonne. */
.carte {
  padding: clamp(3rem, 7vw, 6rem) var(--gouttiere);
  border-bottom: 1px solid var(--filet);
  background: var(--porcelaine);
}
.carte .bloc { max-width: var(--large); margin: 0 auto; }

.carte__grille {
  display: grid; gap: 0;
  margin-top: 2.5rem;
}
.carte__col { padding: 1.5rem 0 1.75rem; border-top: 1px solid var(--encre); }
.carte__col h3 {
  font-size: .75rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--encre-doux); font-weight: 700;
  margin-bottom: .5rem;
}

/* Une ligne de carte : le nom à gauche, le pointillé qui mange le vide, le
   prix à droite. Le nom long passe sur deux lignes sans pousser le prix. */
.prix { margin: 0; }
.prix > div {
  display: flex; align-items: baseline; gap: .5rem;
  padding: .62rem 0;
  border-bottom: 1px solid color-mix(in srgb, var(--filet) 60%, transparent);
}
.prix > div:last-child { border-bottom: 0; }
.prix dt {
  min-width: 0; flex: 1 1 auto;
  font-size: 1rem; line-height: 1.35;
}
.prix dt small {
  display: block;
  margin-top: .15rem;
  font-size: .8125rem; line-height: 1.4;
  color: var(--encre-doux);
}
.prix dd {
  flex: 0 0 auto; margin: 0;
  font-size: 1rem; font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.trio {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: .5rem 1.25rem;
  margin-top: 2rem; padding: 1.25rem 0;
  border-top: 1px solid var(--encre);
  border-bottom: 1px solid var(--encre);
}
.trio__prix {
  margin: 0;
  font-family: var(--affichage);
  font-variation-settings: 'SOFT' 40, 'WONK' 1, 'opsz' 144;
  font-size: clamp(1.9rem, 3.4vw, 2.4rem); line-height: 1;
  font-weight: 500; color: var(--framboise);
  font-variant-numeric: lining-nums tabular-nums;
}
.trio__txt {
  margin: 0; flex: 1 1 14rem;
  font-size: .9688rem; line-height: 1.55; color: var(--encre-doux);
  max-width: 52ch;
}
.trio__txt strong { color: var(--encre); font-weight: 700; }

.carte__note {
  margin: 1.5rem 0 0;
  font-size: .9375rem; color: var(--encre-doux);
  max-width: 52ch;
}
.carte__photo { margin: 2.5rem 0 0; }
.carte__photo img {
  width: 100%; aspect-ratio: 4/3; object-fit: cover;
  transition: transform .6s var(--ease);
}
.carte__photo { overflow: hidden; }
.carte__photo:hover img { transform: scale(1.02); }

/* ---------------------------------------------------------------- avis
   Les avis sont sur le papier le plus chaud de la page : c'est une section
   qu'on lit assis, pas une section qu'on balaie. La note est le seul chiffre
   écrit en titre. */
.avis {
  padding: clamp(3rem, 7vw, 6rem) var(--gouttiere);
  background: var(--porcelaine-2);
  border-bottom: 1px solid var(--filet);
}
.avis__in { max-width: var(--large); margin: 0 auto; }

.avis__tete {
  display: flex; flex-wrap: wrap; align-items: flex-end;
  justify-content: space-between; gap: 1.5rem 3rem;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid var(--encre);
}
.avis__score {
  display: flex; align-items: baseline; flex-wrap: wrap;
  gap: .35rem 1rem;
}
.avis__note {
  margin: 0;
  font-family: var(--affichage);
  font-variation-settings: 'SOFT' 40, 'WONK' 1, 'opsz' 144;
  font-size: clamp(2.6rem, 5vw, 3.6rem); line-height: .9;
  font-weight: 500;
  font-variant-numeric: lining-nums tabular-nums;
}
.avis__note span {
  font-size: .42em; margin-left: .12em; color: var(--encre-doux);
}
/* Cinq étoiles remplies aux 4,7 de la note : les étoiles vides sont dessous en
   gris, une seconde rangée framboise est coupée à 94 % par-dessus. Le dégradé
   en background-clip:text ne s'affichait pas dans le rendu (constaté) ; deux
   couches de texte se peignent partout. */
.etoiles {
  position: relative;
  margin: 0;
  font-size: 1rem; line-height: 1; letter-spacing: .1em;
  color: var(--filet);
  white-space: nowrap;
}
.etoiles::after {
  content: '★★★★★';
  position: absolute; left: 0; top: 0;
  width: 94%; overflow: hidden;
  color: var(--framboise);
  letter-spacing: .1em;
}
.avis__sur {
  margin: 0;
  font-size: .8125rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--encre-doux);
}

.avis__grille {
  display: grid; gap: 0;
  margin-top: 2rem;
}
/* Une citation n'est pas une carte : pas de fond, pas d'ombre, un filet en
   haut et le texte qui commence directement. */
.citation {
  margin: 0; padding: 1.5rem 0 1.75rem;
  border-top: 1px solid var(--filet);
  display: flex; flex-direction: column; gap: 1rem;
}
.citation:first-child { border-top: 0; padding-top: .5rem; }
.citation blockquote {
  margin: 0;
  font-size: 1rem; line-height: 1.62; color: var(--encre);
  max-width: 46ch;
}
.citation--large blockquote {
  font-family: var(--affichage);
  font-variation-settings: 'SOFT' 60, 'WONK' 1, 'opsz' 144;
  font-size: clamp(1.3rem, 2.2vw, 1.6rem);
  line-height: 1.34; letter-spacing: -.008em;
  text-wrap: pretty;
  max-width: 30ch;
}
.citation figcaption {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: .25rem .6rem;
  font-size: .875rem; font-weight: 700;
  color: var(--encre);
}
.citation figcaption span {
  font-weight: 400; font-size: .8125rem; color: var(--encre-doux);
}

/* ----------------------------------------------------------------- place */
.place { border-bottom: 1px solid var(--filet); }
.place__bande { margin: 0; overflow: hidden; }
.place__bande img {
  width: 100%; max-width: 1280px; margin-inline: auto;
  height: clamp(220px, 42vw, 460px); object-fit: cover;
  object-position: 50% 62%;
}
/* La photo de la salle est montée à l'écran 05 : c'est là qu'on la montre en
   entier, avant l'appel. La bande garde donc un gros plan de l'espresso
   (1280 x 853). Un cadrage centré tombe sur le porte-filtre et le filet qui
   coule, et ce qu'on perd en haut et en bas n'est que du métal flou. */
.place__bande--macro img { object-position: 50% 50%; }
.place__in {
  max-width: var(--large); margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 5rem) var(--gouttiere);
  display: grid; gap: 2.5rem;
  /* le numéro de section a besoin d'une position propre : il est posé en
     absolu dans cette rangée, pas dans la bande photo au-dessus. */
  position: relative;
}
.deux-colonnes {
  display: grid; gap: 1rem 2.5rem;
  margin-top: 1.5rem;
}
.deux-colonnes p { margin: 0; color: var(--encre-doux); line-height: 1.65; }
/* Entre 640 et 1099 px la colonne de texte occupe toute la largeur : sans
   limite, une ligne portait 90 caractères. La mesure de lecture passe avant
   le remplissage de la grille. */
.deux-colonnes p, .points li { max-width: 62ch; }
.points {
  list-style: none; margin: 2.25rem 0 0; padding: 0;
  display: grid; gap: 1rem;
  border-top: 1px solid var(--filet); padding-top: 1.5rem;
}
.points li {
  font-size: .9688rem; line-height: 1.55; color: var(--encre-doux);
  padding-left: 1.1rem; position: relative;
}
.points li::before {
  content: ""; position: absolute; left: 0; top: .62em;
  width: .4rem; height: 1px; background: var(--framboise);
}
.points strong { color: var(--encre); font-weight: 700; }
.place__detail { margin: 0; }
.place__detail img {
  width: min(100%, 22rem);
  aspect-ratio: 1/1; object-fit: cover;
}
@media (max-width: 1099px) {
  .place__detail img { aspect-ratio: 4/3; width: min(100%, 30rem); }
}

/* ---------------------------------------------------------------- visite */
.visite {
  background: var(--encre);
  color: var(--porcelaine);
  padding: clamp(3rem, 7vw, 6rem) var(--gouttiere);
}
.visite__in {
  max-width: var(--large); margin: 0 auto;
  display: grid; gap: 3rem;
}
.visite h2 { color: var(--porcelaine); }
.visite .rail__num { color: #C9B9A6; }
.visite__etat {
  margin: 1.25rem 0 0;
  font-size: .9375rem; font-weight: 600;
  display: inline-flex; align-items: center; gap: .5rem;
}
.visite__etat::before {
  content: ""; width: .5rem; height: .5rem; border-radius: 50%;
  background: #7DBE8A;
}
.visite__etat.est-ferme::before { background: #C08A6A; }

.heures {
  width: 100%; border-collapse: collapse;
  margin-top: 1.75rem;
  font-variant-numeric: tabular-nums;
}
.heures th, .heures td {
  text-align: left; padding: .7rem .25rem;
  border-bottom: 1px solid #3A2E25;
  font-weight: 400;
}
.heures th { color: #C9B9A6; font-size: .9375rem; }
.heures td { text-align: right; font-size: .9375rem; }
.heures tr.est-aujourdhui th,
.heures tr.est-aujourdhui td { color: #fff; font-weight: 700; border-bottom-color: var(--porcelaine); }

.visite__petit {
  margin: .9rem 0 0;
  font-size: .8125rem; line-height: 1.5; color: #B3A493;
  max-width: 40ch;
}
.visite__adresse h3 {
  font-family: var(--affichage);
  font-variation-settings: 'SOFT' 40, 'WONK' 1, 'opsz' 144;
  font-size: 1.6rem; font-weight: 500;
  letter-spacing: -.01em;
}
.visite__adresse p { margin: .35rem 0 0; color: #C9B9A6; }
.visite__adresse .lien-souligne {
  margin-top: .75rem; color: var(--porcelaine);
  text-decoration-color: #5A4A3C;
}
.visite__adresse .lien-souligne:hover { text-decoration-color: var(--porcelaine); }
.visite hr { border: 0; border-top: 1px solid #3A2E25; margin: 1.75rem 0; }
.visite__tel { margin: 0; }
.visite__tel a {
  display: inline-flex; align-items: center; min-height: 44px;
  font-family: var(--texte); font-size: clamp(1.65rem, 3.4vw, 2.05rem);
  font-weight: 600; letter-spacing: -.01em;
  text-decoration: none; font-variant-numeric: tabular-nums;
}
.visite__tel a:hover { text-decoration: underline; text-underline-offset: .2em; }

/* ------------------------------------------------------------------ appel */
.appel {
  padding: clamp(3rem, 7vw, 6rem) var(--gouttiere);
  display: grid; gap: 2.5rem;
  border-bottom: 1px solid var(--filet);
}
.appel .bloc { max-width: 40rem; }
.appel .btn--grand { margin-top: 2rem; }
.appel__fine {
  margin: 1rem 0 0; font-size: .875rem; color: var(--encre-doux);
}
.appel__photo { margin: 0; align-self: end; overflow: hidden; }
/* La salle est presque carrée (1280 x 1024) et elle est le sujet de l'écran :
   aucun recadrage ici, l'image garde son rapport et sa hauteur suit. Un 4/3
   forcé coupait la hotte de cuivre du passe, qu'on ne voit nulle part ailleurs
   sur la page depuis que la bande de l'écran 03 est un gros plan d'espresso. */
.appel__photo img {
  width: 100%; height: auto; object-fit: contain;
  transition: transform .6s var(--ease);
}
.appel__photo:hover img { transform: scale(1.02); }

/* ------------------------------------------------------------------ pied */
.pied { padding: 2.5rem var(--gouttiere) 6rem; }
.pied__in {
  max-width: var(--large); margin: 0 auto;
  display: grid; gap: .75rem;
  font-size: .875rem; color: var(--encre-doux);
}
.pied__marque { margin: 0; font-family: var(--affichage); font-size: 1.1rem; color: var(--encre); }
.pied__liens { margin: 0; display: flex; flex-wrap: wrap; gap: 1.25rem; }
.pied__liens a {
  display: inline-flex; align-items: center; min-height: 44px;
  text-decoration: none; border-bottom: 1px solid var(--filet);
}
.pied__liens a:hover { border-bottom-color: var(--framboise); }
.pied__demo {
  margin: .75rem 0 0; padding-top: 1rem;
  border-top: 1px solid var(--filet);
  font-size: .8125rem; line-height: 1.55; color: #6E6255;
  /* Hanken est large : 68ch de CSS laissaient 81 caractères par ligne en 1440.
     Mesuré au rendu, ramené sous la mesure de lecture. */
  max-width: 58ch;
}
/* La ligne de crédit photo garde la mesure et la couleur du bloc de
   démonstration, un cran plus bas dans la hiérarchie. */
.pied__credit {
  margin: 0;
  font-size: .75rem; line-height: 1.55; color: #6E6255;
  max-width: 58ch;
}

/* ------------------------------------------------------- barre téléphone */
.barre-tel {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: 56px; padding: .5rem 1.25rem;
  background: var(--encre); color: var(--porcelaine);
  text-decoration: none;
  font-variant-numeric: tabular-nums;
}
.barre-tel__l { font-size: .8125rem; letter-spacing: .12em; text-transform: uppercase; color: #C9B9A6; }
.barre-tel__n {
  font-family: var(--affichage);
  font-variation-settings: 'SOFT' 40, 'WONK' 1, 'opsz' 144;
  font-size: 1.15rem;
}

/* La barre attend son tour : elle n'entre qu'une fois le héros sorti de l'écran,
   sinon elle répétait le numéro déjà dans le bouton du héros. */
.barre-tel--auto { visibility: hidden; transform: translateY(100%); transition: transform .28s cubic-bezier(.2,.7,.25,1); }
.barre-tel--auto.est-la { visibility: visible; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) { .barre-tel--auto { transition: none; } }

/* ---------------------------------------------------------------- tablette */
@media (min-width: 640px) {
  /* Deux colonnes dès la tablette : trois colonnes dans le tiers de largeur
     laissé par la photo serraient « Sandwich déjeuner » sur trois lignes. */
  .carte__grille { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 2.5rem; }
  .carte__col:nth-child(3) { grid-column: 1 / -1; }

  .avis__grille { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 2.5rem; }
  .citation:first-child { grid-column: 1 / -1; }
  .citation { border-top: 1px solid var(--filet); padding-top: 1.5rem; }
}

/* ----------------------------------------------------------------- bureau */
@media (min-width: 720px) {
  .hero {
    grid-template-columns: minmax(0, 1.06fr) minmax(0, .94fr);
    align-items: stretch;
  }
  .hero__texte {
    display: flex; flex-direction: column; justify-content: center;
    padding: clamp(2.5rem, 5vw, 4rem) clamp(1.5rem, 3vw, 3rem);
    max-width: none;
  }
  .hero h1 { font-size: clamp(2.1rem, 4.4vw, 4.1rem); }
  .hero__photo img { aspect-ratio: auto; height: 100%; }
  /* a two-column hero may not scroll forever: the picture sets its own floor */
  .hero__photo { min-height: 22rem; }
  /* the hero gets a floor rather than a fixed height: it never clips its own copy, and the
     photograph absorbs whatever height the text leaves */
  .hero { min-height: min(calc(100svh - 5.6rem), 46rem); }
  .hero__texte { min-height: 0; }
}

@media (min-width: 900px) {
  .entete__in { padding-block: .9rem; }
  .marque__logo { height: 1.5rem; }

  .hero {
    grid-template-columns: minmax(0, 1.06fr) minmax(0, .94fr);
    align-items: stretch;
    min-height: min(84vh, 46rem);
  }
  .hero__texte {
    display: flex; flex-direction: column; justify-content: center;
    padding: clamp(3rem, 6vw, 6rem) clamp(2rem, 4vw, 4.5rem)
             clamp(3rem, 6vw, 6rem) max(var(--gouttiere), calc((100vw - var(--large)) / 2 + var(--gouttiere)));
    max-width: none;
  }
  .hero__photo img { aspect-ratio: auto; }

  /* le rail : numéro de section dans la marge, à gauche du titre */
  .rail {
    display: block;
    position: absolute; top: clamp(2.5rem, 5vw, 4rem); left: 0;
    width: 100%; max-width: var(--large);
    padding-left: var(--gouttiere);
    margin: 0 auto; left: 50%; transform: translateX(-50%);
    pointer-events: none;
  }
  .rail__num { display: block; padding-left: .1rem; }

  .carte,
  .place__in,
  .visite,
  .avis,
  .appel,
  .pied { padding-left: 0; padding-right: 0; }

  .carte, .visite, .avis { padding-block: clamp(3.5rem, 7vw, 6rem); }
  .carte .bloc { padding-left: calc(var(--rail) + var(--gouttiere)); padding-right: var(--gouttiere); }
  .carte__photo { margin-top: 0; }
  /* La carte tient sur deux colonnes avec la photo à droite. Une troisième
     colonne de prix à 1440 laissait 190 px par colonne et cassait les noms de
     sandwich ; la lisibilité d'une carte l'emporte sur le nombre de colonnes. */
  .carte { display: grid; grid-template-columns: minmax(0, 1fr) 20rem; gap: 3.5rem; align-items: start; max-width: var(--large); margin: 0 auto; }
  .carte__grille { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 2.5rem; }
  .carte__col:nth-child(3) { grid-column: 1 / -1; }
  .carte__photo img { aspect-ratio: 3/4; }

  .place__in { grid-template-columns: minmax(0, 1fr) 18rem; gap: 3.5rem; align-items: start; }
  /* La bande passe avant le texte dans .place, donc le numéro de section vit
     dans la rangée de texte, pas dans la bande. Avant, il flottait par-dessus
     la photo (constaté au rendu : « 02 » posé sur la tasse). */
  .place > .rail { display: none; }
  .place__in .rail { top: clamp(2.5rem, 5vw, 5rem); }
  .place .bloc { padding-left: calc(var(--rail) + var(--gouttiere)); }
  .deux-colonnes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .points { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
  .place__detail { justify-self: end; }

  /* les avis : la grille suit le même retrait de rail que la carte, pour que
     tous les titres de la page tombent sur la même verticale. */
  .avis__in {
    padding-left: calc(var(--rail) + var(--gouttiere));
    padding-right: var(--gouttiere);
  }
  .avis__tete h2 { max-width: 18ch; }
  .avis__grille { grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr) minmax(0, 1fr); column-gap: 2.5rem; }
  .citation:first-child { grid-column: auto; }
  .citation { border-top: 1px solid var(--filet); padding-top: 1.5rem; }
  .citation:first-child { padding-top: 1.5rem; }

  .visite__in {
    grid-template-columns: minmax(0, 1fr) 20rem;
    gap: 4rem;
    padding-left: calc(var(--rail) + var(--gouttiere));
    padding-right: var(--gouttiere);
  }

  .appel {
    grid-template-columns: minmax(0, 1fr) 24rem;
    gap: 4rem;
    max-width: var(--large); margin: 0 auto;
    padding-block: clamp(3.5rem, 7vw, 6rem);
  }
  .appel .bloc { padding-left: calc(var(--rail) + var(--gouttiere)); }

  .pied__in { padding-inline: var(--gouttiere); }

  .pied { padding-bottom: 2.5rem; }
}

/* La barre d'appel fixe ne vit que sur un téléphone. Sur une tablette, elle
   répétait un troisième numéro déjà présent dans l'en-tête et dans le héros. */
@media (min-width: 720px) {
  .barre-tel { display: none; }
}

@media (min-width: 720px) and (max-height: 860px) {
  .hero__texte { padding-block: clamp(1.5rem, 3.4vw, 2.5rem); }
  .hero__adresse { margin-bottom: .8rem; }
  .hero__chapeau { margin-top: 1.1rem; font-size: 1rem; }
  .hero__actions { margin-top: 1.4rem; }
  .hero__faits { margin-top: 1.6rem; padding-top: 1rem; }
  .hero h1 { font-size: clamp(1.9rem, 3.9vw, 3.3rem); }
}

@media (min-width: 1100px) {
  .carte { grid-template-columns: minmax(0, 1fr) 24rem; }
  .appel { grid-template-columns: minmax(0, 1fr) 28rem; }
}

/* ------------------------------------------------------------- téléphone */
@media (max-width: 639px) {
  .nav { display: none; }
  /* l'entête collante doit réserver la hauteur de la rangée de sections,
     sinon une ancre atterrit sous le texte de la rangée */
  html { scroll-padding-top: 118px; }
  .entete__tel { font-size: .875rem; padding: .65rem 1rem; }
  .marque__logo { height: 1.05rem; }
  .hero__faits { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .6rem; margin-top: 1.6rem; padding-top: 1rem; }
  .hero__faits dd { font-size: .8125rem; }
  .hero__faits dt { font-size: .625rem; letter-spacing: .1em; }
  .hero__chapeau { font-size: 1rem; margin-top: 1.1rem; }
  .hero__actions { margin-top: 1.4rem; }
  .hero__adresse { font-size: .75rem; }
  .carte__photo { margin-inline: calc(var(--gouttiere) * -1); }
  .carte__photo img { aspect-ratio: 5/4; }
  .citation--large blockquote { font-size: 1.25rem; max-width: none; }
  .trio { gap: .4rem; }
}

@media (max-width: 400px) {
  .entete__in { gap: .75rem; padding-inline: 1rem; }
  .marque__logo { height: .95rem; }
  .btn { font-size: .875rem; }
  /* a small phone: one less line of pull quote, tighter facts, so the picture enters the first screen */
  .hero__chapeau { font-size: .9375rem; line-height: 1.5; }
  .hero__faits { margin-top: 1.2rem; padding-top: .85rem; }
  /* 9px (0.5625rem) tombait sous le plancher de 11px tenu partout ailleurs sur la page.
     11px avec un interlettrage réduit tient dans les trois colonnes sans casser le premier écran. */
  .hero__faits dt { font-size: .6875rem; letter-spacing: .04em; }
  .hero__faits dd { font-size: .8125rem; }
  .hero__texte { padding-top: 1.35rem; }
  /* a small phone crops the hero picture harder so it still enters the first screen */
  .hero__photo img { aspect-ratio: 16 / 9; }
  .avis__tete { gap: 1rem 0; }
  .avis__note { font-size: 2.4rem; }
}

/* very short phones (iPhone SE class): the picture gets the last 45px, nothing is cut */
@media (max-width: 430px) and (max-height: 700px) {
  /* 568-667px of viewport cannot hold the hero's copy AND a photograph without dropping the
     text under 14px, so at this size the copy owns the first screen and the picture follows. */
  .hero { min-height: auto; }
  .hero__photo { display: none; }
  .hero__chapeau { font-size: .9375rem; line-height: 1.5; }
}
@media (max-width: 340px) {
  .hero__adresse { margin-bottom: .7rem; font-size: .6875rem; }
  .hero__chapeau { font-size: .875rem; margin-top: .85rem; }
  .hero__actions { margin-top: 1.1rem; }
  .hero__faits { margin-top: 1rem; padding-top: .75rem; }
}

/* bring the photo back (cropped) as soon as the screen can carry it */
@media (max-width: 430px) and (min-height: 701px) {
  .hero__photo { display: block; }
}

/* --------------------------------------------------------- animations */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .hero [data-enter-item] { opacity: 1; transform: none; }
}

/* l'entrée du hero ne se joue que si le JS est là ; sans JS tout est visible */
.js .hero [data-enter-item] { opacity: 0; transform: translateY(14px); }
.js .hero.est-pret [data-enter-item] {
  opacity: 1; transform: none;
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.js .hero.est-pret [data-enter-item]:nth-child(2) { transition-delay: .08s; }
.js .hero.est-pret [data-enter-item]:nth-child(3) { transition-delay: .16s; }
.js .hero.est-pret [data-enter-item]:nth-child(4) { transition-delay: .24s; }
.js .hero.est-pret [data-enter-item]:nth-child(5) { transition-delay: .3s; }
.js .hero.est-pret [data-enter-item]:nth-child(6) { transition-delay: .36s; }
