/* Boulangerie Martin · Sablé-sur-Sarthe · direction « Le coup de lame »
   Farine #EDEEE8 · Croûte #2B1F19 · Brique #A83A24 · Mie #D9C9A8 · Seigle #6E6B55
   Titres Bricolage Grotesque (600, 800) · Texte Literata (400, 500, italique 400) */

@font-face { font-family: "Bricolage Grotesque"; src: url("polices/bricolage-grotesque.woff2?v=11f6ab2d") format("woff2"); font-weight: 600 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Literata"; src: url("polices/literata.woff2?v=a7ad7aea") format("woff2"); font-weight: 400 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Literata"; src: url("polices/literata-italique.woff2?v=567bcd5e") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }

:root {
  --farine: #EDEEE8;
  --croute: #2B1F19;
  --brique: #A83A24;
  --mie: #D9C9A8;
  --seigle: #6E6B55;
  --filet: rgba(43, 31, 25, .18);
  --filet-sombre: rgba(237, 238, 232, .22);
  --titre: "Bricolage Grotesque", "Arial Narrow", system-ui, sans-serif;
  --texte: "Literata", Georgia, "Times New Roman", serif;
  --large: 1240px;
  --marge: 40px;
  --entete: 78px;
  --rapide: .24s;
  --sortie: cubic-bezier(.22, .61, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 0; }
body {
  margin: 0; background: var(--farine); color: var(--croute);
  font: 400 16px/1.6 var(--texte);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  -webkit-tap-highlight-color: rgba(168, 58, 36, .15);
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--titre); font-weight: 800; margin: 0; text-wrap: balance; }
p { margin: 0; }
button, input, textarea, select { font: inherit; color: inherit; }
a, button, label, summary, input, textarea { touch-action: manipulation; }
a[href^="tel:"] { white-space: nowrap; }
:focus-visible { outline: 2px solid var(--brique); outline-offset: 3px; }
.sombre :focus-visible { outline-color: var(--mie); }

.aller-contenu {
  position: absolute; left: 12px; top: -60px; z-index: 50;
  background: var(--croute); color: var(--farine); padding: 12px 18px;
  font: 600 14px var(--titre); text-decoration: none; transition: transform var(--rapide) var(--sortie);
}
.aller-contenu:focus { transform: translateY(72px); }

.cadre { width: 100%; max-width: calc(var(--large) + 2 * var(--marge)); margin: 0 auto; padding: 0 var(--marge); }

/* Fonds alternés */
.clair { background: var(--farine); color: var(--croute); }
.sombre { background: var(--croute); color: var(--farine); }

/* Surtitre en petites capitales espacées */
.surtitre {
  display: inline-flex; align-items: center; gap: 0;
  font: 600 13px/1.3 var(--titre); letter-spacing: .2em; text-transform: uppercase;
  color: var(--seigle); margin: 0 0 18px;
}
.sombre .surtitre { color: var(--mie); }
.surtitre::before {
  content: ""; width: 0; height: 2px; background: var(--brique); margin-right: 0;
  transition: width .4s var(--sortie), margin-right .4s var(--sortie);
}
.sombre .surtitre::before { background: var(--mie); }
.vise .surtitre::before { width: 28px; margin-right: 12px; }

h2 { font-size: clamp(2.2rem, 3.4vw, 3.4rem); line-height: 1.06; letter-spacing: -.025em; }
.chapeau { max-width: 34em; margin-top: 20px; }

/* Lien texte : trait brique qui se trace */
.lien {
  font: 600 15px/1.4 var(--titre); text-decoration: none; display: inline-flex; align-items: center; gap: 10px;
  min-height: 44px; background: linear-gradient(var(--brique), var(--brique)) 0 calc(100% - 8px) / 100% 2px no-repeat;
}
.sombre .lien { background-image: linear-gradient(var(--mie), var(--mie)); }
.lien .fleche { transition: transform var(--rapide) var(--sortie); }
.lien:hover .fleche { transform: translateX(4px); }

/* Bouton « lame » : angle droit à gauche, arrondi à droite */
.bouton {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 56px; padding: 0 26px 0 22px; white-space: nowrap;
  font: 600 16px/1 var(--titre); text-decoration: none; cursor: pointer;
  border: 1.6px solid var(--croute); border-radius: 0 26px 26px 0;
  background: var(--croute); color: var(--farine);
  transition: transform .14s var(--sortie), background-color var(--rapide), color var(--rapide);
}
.bouton .fleche { transition: transform var(--rapide) var(--sortie); flex: none; }
.bouton:hover .fleche { transform: translateX(4px); }
.bouton:active { transform: scale(.97); }
.bouton.trait { background: transparent; color: var(--croute); }
.bouton.trait:hover { background: var(--croute); color: var(--farine); }
.sombre .bouton { background: var(--farine); color: var(--croute); border-color: var(--farine); }
.sombre .bouton.trait { background: transparent; color: var(--farine); }

/* En-tête collant : transparent sur le premier écran, farine opaque après 80 px */
.entete {
  position: fixed; inset: 0 0 auto; z-index: 30; height: var(--entete);
  display: flex; align-items: center;
  transition: height var(--rapide) var(--sortie), background-color var(--rapide), box-shadow var(--rapide);
}
.entete.posee { height: 64px; background: var(--farine); box-shadow: 0 1px 0 var(--filet); }
.entete .cadre { display: flex; align-items: center; gap: 32px; }
.marque { text-decoration: none; display: grid; gap: 2px; margin-right: auto; min-height: 44px; align-content: center; }
.marque b { font: 800 21px/1 var(--titre); letter-spacing: -.02em; }
.marque b span { font-weight: 600; }
.marque small { font: 600 11.5px/1.2 var(--titre); letter-spacing: .14em; text-transform: uppercase; color: var(--seigle); }
.menu { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; }
.menu a {
  font: 600 15px/1 var(--titre); text-decoration: none; display: inline-flex; align-items: center; min-height: 44px;
  background: linear-gradient(var(--brique), var(--brique)) 0 calc(100% - 10px) / 0 2px no-repeat;
  transition: background-size var(--rapide) var(--sortie);
}
.menu a:hover, .menu a[aria-current] { background-size: 100% 2px; }
.entete .bouton { min-height: 46px; font-size: 15px; padding: 0 20px 0 18px; }
.bascule {
  display: none; min-height: 44px; padding: 0 16px; border: 1.6px solid var(--croute); background: transparent;
  font: 600 15px var(--titre); cursor: pointer; border-radius: 0 22px 22px 0;
}

/* Sections de l'accueil : un écran chacune */
.ecran { position: relative; min-height: 100svh; display: flex; align-items: center; padding: 12vh 0; overflow: hidden; }
.ecran > .cadre { position: relative; z-index: 1; }
.insecable { white-space: nowrap; }

/* ---------- 1. Premier écran ---------- */
.accueil { padding-top: calc(var(--entete) + 6vh); }
.accueil-grille { display: grid; grid-template-columns: 52fr 48fr; align-items: center; }
.accueil-texte { max-width: 620px; }
.accueil h1 { font-size: clamp(2.6rem, 3.6vw, 4.25rem); line-height: 1.05; letter-spacing: -.03em; }
.accueil h1 em { font-style: normal; color: var(--brique); }
.accueil .chapeau { margin-top: 26px; font-size: 17px; max-width: 31em; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.bandeau-horaires { margin: 34px 0 0; padding-top: 16px; border-top: 2px solid var(--croute); max-width: 440px; display: grid; gap: 6px; }
.bandeau-horaires div { display: grid; grid-template-columns: 76px 1fr; align-items: baseline; }
.bandeau-horaires dt { font: 600 14px/1.5 var(--titre); }
.bandeau-horaires dd { margin: 0; font-size: 15px; }

.accueil-objet { margin: 0; position: absolute; right: -12vw; top: 54%; width: min(58vw, 1040px); transform: translateY(-50%); pointer-events: none; }
.paton { width: 100%; height: auto; overflow: visible; }
.paton-croute { fill: var(--croute); }
.fleurage circle { fill: var(--farine); opacity: .55; }
.grigne { fill: none; stroke: var(--mie); stroke-width: 22; stroke-linecap: round; transform-box: fill-box; transform-origin: 50% 50%; }
.lame { fill: none; stroke: var(--brique); stroke-width: 5; stroke-linecap: round; stroke-dasharray: 1; }
.accueil-photo { margin: 0; position: absolute; top: 0; right: 0; bottom: 0; width: 48vw; }
.accueil-photo img { width: 100%; height: 100%; object-fit: cover; }

/* Entrée : fondu et 12 px de montée en cascade, la lame se trace, les grignes s'ouvrent. État de repos visible. */
@keyframes monte { from { opacity: 0; transform: translateY(12px); } }
@keyframes trace { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes ouvre { from { transform: scaleY(.2); opacity: .4; } }
@keyframes pose { from { opacity: 0; transform: translateY(-50%) scale(1.03); } }
.entre { animation: monte .5s var(--sortie) both; }
.accueil-texte .entre:nth-child(2) { animation-delay: 70ms; }
.accueil-texte .entre:nth-child(3) { animation-delay: 140ms; }
.accueil-texte .entre:nth-child(4) { animation-delay: 210ms; }
.accueil-texte .entre:nth-child(5) { animation-delay: 280ms; }
.accueil-objet { animation: pose .9s var(--sortie) both; }
.lame { animation: trace .6s ease-out .25s both; }
.grigne { animation: ouvre .4s var(--sortie) both; }
.g1 { animation-delay: .85s; } .g2 { animation-delay: .93s; } .g3 { animation-delay: 1.01s; }

/* ---------- 2. Écran signature : une grigne d'un bord à l'autre ---------- */
.signature { align-items: stretch; }
.grande-grigne { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.grande-mie { fill: none; stroke: var(--mie); stroke-width: 52; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.grande-lame { fill: none; stroke: var(--brique); stroke-width: 5; stroke-linecap: round; vector-effect: non-scaling-stroke; transform: translate(0, -46px); }
.glisse { will-change: transform; }
@supports (animation-timeline: view()) {
  @keyframes avance { from { transform: translateX(-12px); } to { transform: translateX(12px); } }
  .glisse { animation: avance linear both; animation-timeline: view(); }
}
.signature-grille { display: flex; flex-direction: column; justify-content: space-between; gap: 8vh; min-height: calc(76svh); }
.cartouche {
  background: var(--farine); color: var(--croute); max-width: 440px; padding: 30px 40px 26px 32px;
  border-radius: 0 40px 40px 0;
}
.cartouche p { font-size: 17px; line-height: 1.55; }
.cartouche .lien { margin-top: 14px; background-image: linear-gradient(var(--brique), var(--brique)); }
.mot-signature {
  font-size: min(24vw, 340px); line-height: .9; letter-spacing: -.035em; color: var(--mie);
  margin-bottom: 2vh;
}
.cartouche :focus-visible { outline-color: var(--brique); }

/* ---------- 3. Au comptoir : liste à filets + vitrine ---------- */
.comptoir-grille { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.produits { list-style: none; margin: 36px 0 0; padding: 0; border-top: 1px solid var(--filet); }
.produit {
  position: relative; display: grid; grid-template-columns: 56px 1fr 180px; align-items: start;
  padding: 20px 0 18px; border-bottom: 1px solid var(--filet); cursor: default; outline: none;
  opacity: .45; transition: opacity var(--rapide);
}
.produit::before { /* repère de survol, dans la marge gauche */
  content: ""; position: absolute; left: -22px; top: 30px; width: 10px; height: 2px; background: var(--brique);
  transform: scaleX(0); transform-origin: left; transition: transform var(--rapide) var(--sortie);
}
.num { font: 600 15px/1 var(--titre); padding-top: 10px; letter-spacing: .04em; }
.produit h3 {
  font-size: 28px; font-weight: 600; line-height: 1.15; letter-spacing: -.015em; display: inline-block;
  background: linear-gradient(var(--brique), var(--brique)) 0 100% / 0 2px no-repeat;
  transition: background-size var(--rapide) var(--sortie), transform var(--rapide) var(--sortie);
}
.produit p { margin-top: 6px; font-size: 15px; max-width: 30em; opacity: 0; transition: opacity var(--rapide); }
.mention { font: 600 14px/1 var(--titre); text-align: right; padding-top: 11px; white-space: nowrap; }
.produit[data-n="3"] .mention { color: var(--brique); }
/* Ligne active : la 01 par défaut, sinon celle survolée, touchée ou au clavier */
.produits:not(:has(.produit:hover, .produit:focus-visible, .produit.actif)) .produit[data-n="1"],
.produit:hover, .produit:focus-visible, .produit.actif { opacity: 1; }
.produits:not(:has(.produit:hover, .produit:focus-visible, .produit.actif)) .produit[data-n="1"] p,
.produit:hover p, .produit:focus-visible p, .produit.actif p { opacity: 1; }
.produits:not(:has(.produit:hover, .produit:focus-visible, .produit.actif)) .produit[data-n="1"] h3,
.produit:hover h3, .produit:focus-visible h3, .produit.actif h3 { background-size: 100% 2px; transform: translateX(8px); }
.produit:hover::before, .produit:focus-visible::before, .produit.actif::before { transform: scaleX(1); }
.note-prix { margin-top: 22px; font-size: 15px; font-style: italic; }

.vitrine { position: relative; aspect-ratio: 4 / 5; height: min(70svh, 640px); max-width: 100%; justify-self: end; background: var(--mie); }
.vitrine-vue { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity .35s ease; }
.vitrine-vue svg, .vitrine-vue img { width: 100%; height: 100%; object-fit: cover; }
.vitrine-vue[data-n="1"] { opacity: 1; }
.comptoir:has(.produit:hover, .produit:focus-visible, .produit.actif) .vitrine-vue[data-n="1"] { opacity: 0; }
.comptoir:has(.produit[data-n="1"]:hover, .produit[data-n="1"]:focus-visible, .produit[data-n="1"].actif) .vitrine-vue[data-n="1"],
.comptoir:has(.produit[data-n="2"]:hover, .produit[data-n="2"]:focus-visible, .produit[data-n="2"].actif) .vitrine-vue[data-n="2"],
.comptoir:has(.produit[data-n="3"]:hover, .produit[data-n="3"]:focus-visible, .produit[data-n="3"].actif) .vitrine-vue[data-n="3"] { opacity: 1; }
.filigrane { fill: none; stroke: var(--croute); stroke-opacity: .12; stroke-width: 34; stroke-linecap: round; }
.objet { fill: var(--croute); }
.objet-mie { fill: var(--mie); stroke: var(--mie); stroke-width: 0; }
path.objet-mie { fill: none; stroke-width: 16; stroke-linecap: round; }
path.objet-mie.fin { stroke-width: 7; }
.objet-points circle { fill: var(--farine); opacity: .6; }
.coupe { fill: var(--mie); }
.lame-fine { fill: none; stroke: var(--brique); stroke-width: 4; stroke-linecap: round; }

/* ---------- 4. Commander un gâteau ---------- */
.commande-grille { display: grid; grid-template-columns: 45fr 55fr; gap: 72px; align-items: start; }
.etapes { list-style: none; margin: 34px 0 0; padding: 0; border-top: 1px solid var(--filet-sombre); }
.etapes li { display: grid; grid-template-columns: 64px 1fr; align-items: center; min-height: 64px; padding: 10px 0; border-bottom: 1px solid var(--filet-sombre); }
.etape-num { font: 800 36px/1 var(--titre); color: var(--mie); }
.etapes p { font-size: 16px; }
.commande-delai { margin-top: 22px; font-size: 15px; font-style: italic; max-width: 32em; }

.panneau { background: var(--farine); color: var(--croute); border-radius: 0 40px 40px 0; padding: 34px 44px 30px 36px; }
.form-gateau { display: grid; gap: 14px; }
.champ { display: grid; gap: 6px; }
.champ label, .occasion legend { font: 600 14px/1.3 var(--titre); }
.champ input:not([type=radio]):not([type=checkbox]), .champ textarea {
  width: 100%; min-height: 48px; padding: 11px 14px; font-size: 16px;
  background: #fff0; border: 1px solid rgba(43, 31, 25, .45); border-radius: 0; color: var(--croute);
  transition: border-color var(--rapide), box-shadow var(--rapide);
}
.champ textarea { min-height: 84px; resize: vertical; line-height: 1.5; }
.champ input:not([type=radio]):not([type=checkbox]):focus, .champ textarea:focus { outline: none; border-color: var(--croute); box-shadow: inset 0 0 0 1px var(--croute); }
.champ input:focus-visible, .champ textarea:focus-visible { outline: 2px solid var(--brique); outline-offset: 2px; }
.champ [aria-invalid="true"] { border-color: var(--brique) !important; }
.erreur { font: 500 14px/1.4 var(--texte); color: var(--brique); min-height: 0; }
.erreur:empty { display: none; }
.champs-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.occasion { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0 22px; }
.occasion legend { padding: 0; margin-bottom: 4px; width: 100%; }
.choix { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-size: 15.5px; cursor: pointer; padding-right: 4px; }
.choix input { appearance: auto; -webkit-appearance: radio; width: 20px; height: 20px; margin: 0; accent-color: var(--brique); flex: none; cursor: pointer; }
.envoi { width: 100%; margin-top: 6px; background: var(--croute); color: var(--farine); border-color: var(--croute); }
.envoi[aria-busy="true"] { opacity: .8; cursor: progress; }
.form-etat { font-size: 15px; }
.form-etat:empty { display: none; }
.form-etat.echec { color: var(--brique); font-weight: 500; }
.form-note { font-size: 13.5px; line-height: 1.5; color: var(--seigle); }
.form-note a { color: var(--croute); text-underline-offset: 3px; }
.form-merci { padding: 40px 0; outline: none; }
.form-merci-titre { font: 800 34px/1.1 var(--titre); letter-spacing: -.02em; margin-bottom: 10px; }
.panneau :focus-visible { outline-color: var(--brique); }

/* ---------- 5. Horaires et contact ---------- */
.horaires-grille { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.semaine { list-style: none; margin: 34px 0 0; padding: 0; border-top: 1px solid var(--filet); }
.semaine li {
  position: relative; display: grid; grid-template-columns: 210px 1fr; align-items: center;
  min-height: 46px; border-bottom: 1px solid var(--filet); font-size: 16px;
}
.semaine .jour { font: 600 15px/1 var(--titre); white-space: nowrap; }
.semaine .ferme { color: var(--brique); font-weight: 500; }
.semaine li::before { content: ""; position: absolute; left: -18px; top: 10px; bottom: 10px; width: 3px; background: var(--brique); transform: scaleY(0); transition: transform var(--rapide) var(--sortie); }
.semaine li.aujourdhui::before { transform: scaleY(1); }
.semaine li.aujourdhui .jour::after { content: " · aujourd'hui"; font-weight: 600; color: var(--seigle); font-size: 13px; letter-spacing: .02em; }
.devanture { margin: 0; aspect-ratio: 4 / 3; background: var(--mie); width: 100%; max-height: 52svh; }
.devanture svg { width: 100%; height: 100%; }
.banneton circle { fill: none; stroke: var(--croute); stroke-opacity: .5; stroke-width: 3; }
.banneton circle:first-child { fill: var(--croute); fill-opacity: .08; }
.banneton-grigne { fill: none; stroke: var(--brique); stroke-width: 5; stroke-linecap: round; }
.coordonnees { margin: 26px 0 0; border-top: 1px solid var(--filet); }
.coordonnees div { display: grid; grid-template-columns: 140px 1fr; align-items: center; min-height: 52px; border-bottom: 1px solid var(--filet); }
.coordonnees dt { font: 600 14px/1 var(--titre); color: var(--seigle); letter-spacing: .02em; }
.coordonnees dd { margin: 0; font-size: 16px; }

/* ---------- 6. Questions ---------- */
.questions { border-top: 1px solid var(--filet-sombre); }
.questions-grille { display: grid; grid-template-columns: 5fr 7fr; align-items: center; }
.questions-texte { padding-right: 56px; border-right: 1px solid rgba(217, 201, 168, .22); }
.questions-texte .chapeau { max-width: 26em; }
.comptoir-photo { margin: 30px 0 0; aspect-ratio: 3 / 4; height: min(32svh, 300px); background: var(--mie); }
.comptoir-photo svg { width: 100%; height: 100%; }
.faq { padding-left: 56px; border-top: 1px solid var(--filet-sombre); }
.faq details { border-bottom: 1px solid var(--filet-sombre); }
.faq summary {
  list-style: none; cursor: pointer; display: grid; grid-template-columns: 1fr 24px; align-items: center; gap: 20px;
  min-height: 72px; padding: 14px 0; font: 600 20px/1.3 var(--titre); letter-spacing: -.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; width: 18px; height: 18px; justify-self: end;
  background: linear-gradient(var(--mie), var(--mie)) center / 100% 1.6px no-repeat, linear-gradient(var(--mie), var(--mie)) center / 1.6px 100% no-repeat;
  transition: transform var(--rapide) var(--sortie);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--mie); }
.faq details p { padding: 0 48px 22px 0; max-width: 36em; font-size: 16px; }
.faq details[open] p { animation: apparait .3s var(--sortie) both; }
@keyframes apparait { from { opacity: 0; } }

/* ---------- Pied de page compact ---------- */
.pied { padding: 30px 0 30px; border-top: 1px solid var(--filet-sombre); font-size: 14.5px; }
.pied-grille { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; align-items: start; }
.pied .marque b { font-size: 24px; line-height: 44px; }
.pied-marque p { max-width: 30em; color: var(--farine); }
.pied-titre { font: 600 13px/36px var(--titre); letter-spacing: .14em; text-transform: uppercase; color: var(--mie); }
.pied-col p:not(.pied-titre), .pied-col li { line-height: 36px; }
.pied ul { list-style: none; margin: 0; padding: 0; }
.pied a { text-decoration: none; background: linear-gradient(var(--mie), var(--mie)) 0 100% / 0 1px no-repeat; transition: background-size var(--rapide) var(--sortie); }
.pied a:hover { background-size: 100% 1px; }
.pied-bas { display: flex; justify-content: space-between; gap: 20px; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--filet-sombre); font-size: 13px; }
.pied-bas a { display: inline-flex; align-items: center; min-height: 32px; }
.pied-bas p { display: flex; align-items: center; min-height: 32px; }

.barre-action { display: none; }

/* Balayage oblique des images, une seule fois (la classe est posée par le script : sans script, tout est visible) */
.js .revele { clip-path: polygon(0 0, 0 0, -30% 100%, 0 100%); }
.js .revele.vue { clip-path: polygon(0 0, 130% 0, 100% 100%, 0 100%); transition: clip-path .7s var(--sortie); }

/* ---------- Pages légales, merci, 404 ---------- */
.page-simple .entete { background: var(--farine); box-shadow: 0 1px 0 var(--filet); }
.retour { font: 600 15px/1 var(--titre); text-decoration: none; display: inline-flex; align-items: center; gap: 10px; min-height: 44px;
  background: linear-gradient(var(--brique), var(--brique)) 0 calc(100% - 10px) / 100% 2px no-repeat; }
.retour .fleche { transform: scaleX(-1); }
.legal { padding: calc(var(--entete) + 72px) 0 96px; }
.legal .cadre { max-width: 900px; }
.legal h1 { font-size: clamp(2.4rem, 3.4vw, 3.4rem); line-height: 1.06; letter-spacing: -.025em; }
.legal .chapeau { margin-top: 18px; }
.legal h2 { font-size: 24px; letter-spacing: -.01em; margin: 48px 0 14px; }
.legal p { max-width: 42em; margin-top: 10px; }
.legal a { text-underline-offset: 3px; }
.fiche { margin: 0; border-top: 1px solid var(--filet); }
.fiche div { display: grid; grid-template-columns: 220px 1fr; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--filet); }
.fiche dt { font: 600 14px/1.5 var(--titre); color: var(--seigle); }
.fiche dd { margin: 0; }
.message-seul { min-height: calc(100svh - 160px); display: flex; align-items: center; padding: calc(var(--entete) + 40px) 0 64px; }
.message-seul h1 { font-size: clamp(2.6rem, 3.6vw, 4.25rem); line-height: 1.05; letter-spacing: -.03em; max-width: 14em; }
.message-seul .chapeau { margin-top: 20px; font-size: 17px; }
.message-seul .actions { margin-top: 30px; }
.message-seul svg.paton-petit { width: 220px; height: auto; margin-bottom: 28px; overflow: visible; }

/* Passage d'une ancre : les sections arrivent sous l'en-tête sans être masquées */
.ecran { scroll-margin-top: 0; }

/* ---------- Menu replié dès 1 150 px ---------- */
@media (max-width: 1150px) {
  .bascule { display: inline-flex; align-items: center; }
  .menu {
    position: fixed; top: 64px; left: 0; right: 0; flex-direction: column; gap: 0;
    background: var(--farine); padding: 8px var(--marge) 18px; border-bottom: 1px solid var(--filet);
    opacity: 0; transform: translateY(-8px); visibility: hidden;
    transition: opacity var(--rapide), transform var(--rapide) var(--sortie), visibility 0s linear var(--rapide);
  }
  .menu.ouvert { opacity: 1; transform: none; visibility: visible; transition: opacity var(--rapide), transform var(--rapide) var(--sortie); }
  .menu li { border-bottom: 1px solid var(--filet); }
  .menu li:last-child { border-bottom: 0; }
  .menu a { min-height: 52px; font-size: 18px; }
  .entete:has(.menu.ouvert) { background: var(--farine); height: 64px; }
}

/* ---------- Une colonne sous 900 px ---------- */
@media (max-width: 900px) {
  .accueil-grille, .comptoir-grille, .commande-grille, .horaires-grille, .questions-grille { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .commande-grille > *, .horaires-grille > *, .questions-grille > * { min-width: 0; }
  .accueil-objet { position: relative; right: auto; top: auto; transform: none; width: 92vw; margin: 8px calc(-1 * var(--marge) - 14vw) 0 auto; }
  @keyframes pose { from { opacity: 0; transform: scale(1.03); } }
  .comptoir-texte { order: 2; }
  .vitrine { order: 1; justify-self: start; height: min(46svh, 520px); }
  .questions-texte { padding-right: 0; border-right: 0; }
  .faq { padding-left: 0; }
  .pied-grille { grid-template-columns: 1fr 1fr; }
  .pied-marque { grid-column: 1 / -1; }
}

/* ---------- Animations réduites : plus courtes, rien de gelé, rien de caché ---------- */
@media (prefers-reduced-motion: reduce) {
  :root { --rapide: .12s; }
  .entre, .accueil-objet, .lame, .grigne { animation-duration: .2s; animation-delay: 0s; }
  .glisse { animation: none; }
  .js .revele.vue { transition-duration: .2s; }
}

/* ---------- Téléphone (sous 720 px) : toutes les règles mobiles ici ---------- */
@media (max-width: 720px) {
  :root { --marge: 20px; --entete: 64px; }
  body { font-size: 15px; }
  html.aimante { scroll-snap-type: y mandatory; scroll-padding: 0; }
  html.aimante .ecran { scroll-snap-align: start; scroll-snap-stop: always; }
  html.aimante .pied { scroll-snap-align: end; }
  .ecran { min-height: 100svh; padding: calc(var(--entete) + 28px) 0 40px; }
  .entete, .entete.posee { height: 64px; background: var(--farine); box-shadow: 0 1px 0 var(--filet); }
  .entete .cadre { gap: 12px; }
  .entete-action { display: none; }
  .marque b { font-size: 19px; }
  .marque small { font-size: 10.5px; letter-spacing: .12em; }
  .menu { top: 64px; }
  .surtitre { font-size: 12px; margin-bottom: 14px; }
  h2 { font-size: 30px; line-height: 1.1; }

  .accueil { padding-top: calc(var(--entete) + 24px); }
  .accueil h1 { font-size: clamp(2.35rem, 10.4vw, 2.85rem); }
  .accueil .chapeau { font-size: 15.5px; margin-top: 18px; }
  .actions { margin-top: 24px; gap: 10px; }
  .actions .bouton { flex: 1 1 100%; justify-content: space-between; }
  .bandeau-horaires { margin-top: 24px; }
  .accueil-objet { width: 96vw; margin-top: 0; margin-right: -30vw; }

  .signature-grille { min-height: calc(100svh - 140px); }
  .cartouche { padding: 22px 28px 18px 20px; }
  .cartouche p { font-size: 15.5px; }
  .mot-signature { font-size: 28vw; margin-bottom: 64px; }

  .comptoir-grille { gap: 24px; }
  .vitrine { height: 34svh; }
  .produits { margin-top: 22px; }
  .produit { grid-template-columns: 38px 1fr; grid-template-areas: "num corps" ". mention"; padding: 14px 0; opacity: 1; }
  .produit::before { display: none; }
  .num { grid-area: num; padding-top: 6px; }
  .produit-corps { grid-area: corps; }
  .produit h3 { font-size: 22px; transform: none !important; }
  .produit p { opacity: 1; font-size: 14.5px; }
  .mention { grid-area: mention; text-align: left; padding-top: 8px; font-size: 13px; }
  .produit:active { transform: scale(.98); transition: transform .14s; }

  .commande-grille { gap: 28px; }
  .etapes li { grid-template-columns: 44px 1fr; min-height: 52px; }
  .etape-num { font-size: 28px; }
  .etapes p { font-size: 15px; }
  .panneau { padding: 24px 26px 22px 20px; border-radius: 0 28px 28px 0; }
  .champ input:not([type=radio]):not([type=checkbox]) { min-height: 52px; }
  .champs-duo { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
  .champs-duo input { min-width: 0; width: 100%; }
  .choix { min-height: 48px; }

  .horaires-grille { gap: 28px; }
  .semaine li { grid-template-columns: 110px 1fr; min-height: 44px; font-size: 15px; }
  .semaine li::before { left: -12px; }
  .semaine .jour { white-space: normal; }
  .devanture { max-height: 30svh; }
  .coordonnees div { grid-template-columns: 110px 1fr; }

  .comptoir-photo { display: none; }
  .faq summary { font-size: 17px; min-height: 60px; }
  .faq details p { padding-right: 0; font-size: 15px; }

  .pied { padding: 18px 0 calc(86px + env(safe-area-inset-bottom)); text-align: center; font-size: 13.5px; }
  .pied-grille { grid-template-columns: 1fr; gap: 2px; }
  .pied-marque p, .pied-titre, .pied-jours { display: none; }
  .legal { padding: calc(var(--entete) + 36px) 0 64px; }
  .fiche div { grid-template-columns: 1fr; gap: 2px; }
  .page-simple .pied { padding-bottom: calc(14px + env(safe-area-inset-bottom)); }
  .page-simple .marque small { display: none; }
  .pied .marque b { font-size: 16px; line-height: 32px; }
  .pied-col p:not(.pied-titre), .pied-col li { line-height: 1.6; }
  .pied ul { display: flex; justify-content: center; flex-wrap: wrap; gap: 0 18px; }
  .pied ul a, .pied-bas a { display: inline-flex; align-items: center; min-height: 40px; font-size: 13px; }
  .pied-bas { flex-direction: column; align-items: center; gap: 0; margin-top: 6px; padding-top: 6px; font-size: 13px; line-height: 1.45; }
  .pied-bas p { min-height: 0; }

  .barre-action {
    display: grid; grid-template-columns: auto 1fr; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 25;
    padding: 10px 20px calc(10px + env(safe-area-inset-bottom)); background: var(--croute); border-top: 1px solid var(--filet-sombre);
    transition: transform var(--rapide) var(--sortie);
  }
  .barre-action .bouton { min-height: 48px; font-size: 15px; background: var(--farine); color: var(--croute); border-color: var(--farine); justify-content: space-between; }
  .barre-action .bouton.trait { background: transparent; color: var(--farine); }
  .barre-action.cachee { transform: translateY(110%); }
}
