/* La Novità — feuille de style principale
   Clair-obscur : fonds sombres et chauds comme les photos du four,
   texte couleur farine, une couleur par maison. */

/* Polices (fichiers locaux, libres : Archivo et Caveat, SIL OFL) : ici plutôt qu'une feuille à part, une demande bloquante de moins */
/* latin-ext */
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 400 800;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url(../fonts/archivo-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 400 800;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url(../fonts/archivo-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Caveat';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(../fonts/caveat-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Caveat';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(../fonts/caveat-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Caveat';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(../fonts/caveat-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Caveat';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(../fonts/caveat-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Un élément masqué l'est toujours, même si une règle lui donne un display (B-22) */
[hidden] { display: none !important; }

:root {
  --nuit: #17110e;        /* fond principal, croûte cuite au bois */
  --braise: #231a16;      /* fond secondaire */
  --cendre: #3a2e28;      /* filets, bordures */
  --farine: #f5f1ea;      /* texte principal sur fond sombre */
  --semola: #c9bfb4;      /* texte secondaire */
  --sourdine: #a79c92;    /* texte discret */
  --pomodoro: #d41f16;    /* rouge du logo */

  /* une couleur par maison */
  --charquemont: #d41f16;
  --orchamps: #a85a2c;
  --morteau: #c2185b;
  --pontarlier: #2e7d4f;

  --accent: var(--pomodoro);

  --f: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1320px;
  --gut: clamp(20px, 4vw, 48px);
  --bar-h: 0px;
}






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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  /* supprime le délai de double-tap et le zoom au double-tap sur iOS */
  touch-action: manipulation;
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
}

body {
  margin: 0;
  background: var(--nuit);
  color: var(--farine);
  font-family: var(--f);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-variation-settings: "wdth" 100;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  padding-bottom: var(--bar-h);
  overflow-x: clip;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 800; line-height: 0.92; letter-spacing: -0.01em; font-stretch: 68%; font-variation-settings: "wdth" 68; text-wrap: balance; }

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

.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--farine); color: var(--nuit); padding: 10px 16px; font-weight: 700; }
.skip:focus { top: 12px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: var(--gut); padding-right: var(--gut); }

/* ---------- Typo ---------- */
.display { font-size: clamp(3.4rem, 11vw, 10.5rem); }
.h2 { font-size: clamp(2.6rem, 6.4vw, 5.6rem); }
.h3 { font-size: clamp(1.9rem, 3.4vw, 2.75rem); line-height: 0.95; }
.lead { font-size: clamp(1.125rem, 1.6vw, 1.3rem); line-height: 1.5; color: var(--semola); max-width: 36em; }
.muted { color: var(--sourdine); }
.kicker { font-size: 0.95rem; font-weight: 600; color: var(--accent); margin-bottom: 14px; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 24px;
  border-radius: 999px; border: 1.5px solid currentColor;
  font-weight: 700; font-size: 1rem; text-decoration: none; white-space: nowrap;
  background: transparent; cursor: pointer;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn--plein { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn--farine { background: var(--farine); border-color: var(--farine); color: var(--nuit); }
.btn--petit { min-height: 44px; padding: 0 18px; font-size: 0.9375rem; }
.lien { font-weight: 700; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 5px; }

/* Les effets de survol uniquement sur les appareils qui ont vraiment une souris.
   Sur iPhone, un :hover force un premier tap « survol » avant le clic : c'est
   ce qui oblige à taper deux fois. */
@media (hover: hover) and (pointer: fine) {
  .btn { transition: background-color .15s, color .15s, border-color .15s; }
  .btn:hover { background: var(--farine); border-color: var(--farine); color: var(--nuit); }
  .btn--plein:hover { background: #fff; border-color: #fff; color: var(--nuit); }
  .lien:hover, .nav a:hover { color: var(--accent); }
  .maison-tuile a.tuile-nom:hover { text-decoration: underline; text-underline-offset: 6px; }
}

/* ---------- En-tête ---------- */
.entete { position: absolute; inset: 0 0 auto; z-index: 20; }
.entete .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 88px; }
.logo { display: block; color: var(--farine); width: 150px; }
.logo svg { display: block; width: 100%; height: auto; }
.nav { display: none; gap: 30px; font-weight: 600; font-size: 0.975rem; }
.nav a { text-decoration: none; padding: 8px 0; }
.nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 8px; text-decoration-thickness: 2px; }
.entete-actions { display: none; gap: 10px; }
.menu-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1.5px solid rgba(245, 241, 234, .5); background: rgba(23, 17, 14, .35); font-weight: 700; cursor: pointer; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }

@media (min-width: 980px) {
  .logo { width: 180px; }
  .entete-actions { display: flex; }
}
/* menu complet seulement quand il a la place d'être lisible ; en dessous, le bouton « Menu » (comme sur téléphone) */
@media (min-width: 1280px) {
  .nav { display: flex; }
  .menu-btn { display: none; }
}

/* ---------- Menu mobile (plein écran) ---------- */
dialog.feuille { margin: 0; border: 0; padding: 0; max-width: none; max-height: none; width: 100%; height: 100%; background: var(--nuit); color: var(--farine); }
dialog.feuille::backdrop { background: rgba(0, 0, 0, .6); }
.feuille-in { min-height: 100%; display: flex; flex-direction: column; padding: 0 var(--gut) calc(28px + env(safe-area-inset-bottom)); }
/* même hauteur que l'en-tête : logo et bouton restent exactement à leur place quand le menu s'ouvre */
.feuille-haut { display: flex; justify-content: space-between; align-items: center; height: var(--entete-h, 64px); margin-bottom: 14px; }
.feuille nav a { display: block; text-decoration: none; font-weight: 800; font-stretch: 68%; font-variation-settings: "wdth" 68; font-size: 2.6rem; line-height: 1.15; padding: 4px 0; }
.feuille .maisons-liste { margin-top: auto; border-top: 1px solid var(--cendre); padding-top: 20px; display: grid; gap: 14px; }
/* de l'air entre la dernière entrée du menu et le trait (« Notre histoire » touchait le séparateur) */
.feuille nav { margin-bottom: 28px; }
.feuille .maisons-liste a { display: flex; justify-content: space-between; align-items: center; min-height: 48px; text-decoration: none; font-weight: 600; }
.feuille .maisons-liste a span:last-child { color: var(--semola); font-weight: 500; }

/* ---------- Héros accueil ---------- */
.heros { position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; isolation: isolate; }
.heros-photo { position: absolute; inset: 0; z-index: -1; }
.heros-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.heros-photo::after { content: ""; position: absolute; inset: 0; background:
  linear-gradient(180deg, rgba(23,17,14,.55) 0%, rgba(23,17,14,0) 22%, rgba(23,17,14,0) 38%, rgba(23,17,14,.88) 72%, var(--nuit) 100%); }
.heros > .wrap { width: 100%; }
.heros-texte { padding-top: 140px; padding-bottom: 36px; }
.heros h1 { max-width: 10ch; }
.heros .lead { margin-top: 22px; color: #e6ddd2; }

/* L'unique animation de la page : le titre se dévoile au chargement */
@media (prefers-reduced-motion: no-preference) {
  .reveal span { display: inline-block; opacity: 0; transform: translateY(0.35em); animation: monte .8s cubic-bezier(.2, .7, .1, 1) forwards; }
  .reveal span:nth-child(2) { animation-delay: .08s; }
  .reveal span:nth-child(3) { animation-delay: .16s; }
  .reveal span:nth-child(4) { animation-delay: .24s; }
  .reveal span:nth-child(5) { animation-delay: .32s; }
  .reveal span:nth-child(6) { animation-delay: .40s; }
  @keyframes monte { to { opacity: 1; transform: none; } }
}

/* ---------- Tuiles des maisons (action directe) ---------- */
.maisons-tuiles { display: grid; gap: 12px; padding-bottom: 40px; }
@media (min-width: 700px) { .maisons-tuiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; } }
@media (min-width: 1200px) { .maisons-tuiles { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.maison-tuile { --accent: var(--c); position: relative; background: rgba(35, 26, 22, .82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid rgba(245, 241, 234, .12); border-radius: 22px; padding: 22px 22px 20px; display: flex; flex-direction: column; gap: 16px; }
.maison-tuile::before { content: ""; position: absolute; left: 22px; top: 0; width: 44px; height: 4px; border-radius: 0 0 4px 4px; background: var(--c); }
.tuile-haut { display: flex; flex-direction: column; gap: 4px; }
.tuile-nom { font-weight: 800; font-stretch: 68%; font-variation-settings: "wdth" 68; font-size: clamp(1.8rem, 2.4vw, 2.1rem); line-height: 1; text-decoration: none; }
.tuile-type { color: var(--semola); font-size: 0.9375rem; }
.statut { display: inline-flex; align-items: center; gap: 8px; font-size: 0.9375rem; color: var(--semola); min-height: 1.6em; }
.statut::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--sourdine); flex: none; }
.statut[data-ouvert="1"] { color: var(--farine); }
.statut[data-ouvert="1"]::before { background: #4cc46b; box-shadow: 0 0 0 4px rgba(76, 196, 107, .18); }
.tuile-actions { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.tuile-actions .btn { padding: 0 12px; min-width: 0; }
.tuile-haut { flex-wrap: wrap; }

/* ---------- Sections ---------- */
.section { padding: clamp(52px, 6.5vw, 96px) 0; }
.section--claire { background: var(--farine); color: var(--nuit); }
.section--claire .lead, .section--claire .muted { color: #5c5049; }
.entete-section { display: grid; gap: 22px; margin-bottom: clamp(32px, 4.5vw, 60px); }
@media (min-width: 980px) { .entete-section { grid-template-columns: 1.2fr 1fr; align-items: end; gap: 64px; } }

/* ---------- Ce qu'on met dedans ---------- */
.produits { display: grid; gap: 40px; }
@media (min-width: 980px) { .produits { grid-template-columns: 5fr 7fr; gap: 72px; align-items: start; } }
.produits-photo { position: relative; border-radius: 26px; overflow: hidden; aspect-ratio: 4 / 5; background: var(--braise); }
.produits-photo img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 980px) { .produits-photo { position: sticky; top: 32px; } }
.produits-photo figcaption { position: absolute; left: 18px; bottom: 16px; right: 18px; font-size: .9rem; color: #efe7dd; }
.produits-liste { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--cendre); }
.produits-liste li { display: grid; gap: 6px; padding: 26px 0; border-bottom: 1px solid var(--cendre); }
@media (min-width: 700px) { .produits-liste li { grid-template-columns: 1fr 1.05fr; gap: 32px; align-items: baseline; } }
.produits-liste b { font-weight: 800; font-stretch: 68%; font-variation-settings: "wdth" 68; font-size: clamp(1.9rem, 3.4vw, 2.9rem); line-height: 1; }
.produits-liste span { color: var(--semola); }

/* ---------- Les maisons (univers) ---------- */
.univers { display: grid; gap: clamp(16px, 2vw, 24px); }
.univers-carte { --accent: var(--c); display: grid; border-radius: 28px; overflow: hidden; background: var(--c); color: #fff; text-decoration: none; }
@media (min-width: 900px) {
  .univers-carte { grid-template-columns: 1.35fr 1fr; min-height: 560px; }
  .univers-carte:nth-child(even) { grid-template-columns: 1fr 1.35fr; }
  .univers-carte:nth-child(even) .univers-photo { order: 2; }
}
.univers-photo { min-height: 300px; position: relative; }
.univers-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.univers-texte { padding: clamp(28px, 4vw, 56px); display: flex; flex-direction: column; gap: 18px; justify-content: space-between; }
.univers-texte p { color: rgba(255, 255, 255, .88); max-width: 30em; }
.univers-texte .tag { color: #fff; opacity: .85; font-weight: 600; }
.univers-texte h3 { font-size: clamp(3rem, 6vw, 5.5rem); }
.univers-bas { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.univers-carte .btn { color: #fff; }
.univers-carte .btn--farine { color: var(--nuit); }

/* ---------- Équipe ---------- */
.equipe { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 14px; }
@media (min-width: 700px) { .equipe { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .equipe { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 28px 16px; } }
.portrait { display: flex; flex-direction: column; gap: 10px; }
.portrait-photo { --accent: var(--c, var(--pomodoro)); aspect-ratio: 4 / 5; border-radius: 22px; overflow: hidden; position: relative; background:
  radial-gradient(120% 80% at 30% 20%, color-mix(in srgb, var(--accent) 55%, var(--braise)) 0%, var(--braise) 70%); display: grid; place-items: center; }
.portrait-photo img { width: 100%; height: 100%; object-fit: cover; }
.portrait-photo .initiale { font-weight: 800; font-stretch: 62%; font-variation-settings: "wdth" 62; font-size: clamp(4rem, 8vw, 6rem); line-height: 1; color: rgba(245, 241, 234, .9); }
.portrait-photo .bientot { position: absolute; left: 14px; bottom: 12px; font-size: .8125rem; color: rgba(245, 241, 234, .75); }
.portrait h3 { font-size: 1.6rem; margin-top: 4px; }
.portrait { gap: 6px; }
.portrait .role { font-size: .875rem; line-height: 1.35; }
.portrait p:last-child { font-size: .9rem !important; line-height: 1.4; }
.portrait .role { font-weight: 600; color: var(--c, var(--accent)); filter: brightness(1.35); }
.portrait p:last-child { color: var(--semola); font-size: .975rem; }
.section--claire .portrait p:last-child { color: #5c5049; }
.section--claire .portrait .role { filter: none; }
.equipe-photo { margin-top: 56px; border-radius: 26px; overflow: hidden; }
.equipe-photo img { width: 100%; }
.equipe-photo figcaption { padding: 14px 4px 0; color: var(--sourdine); font-size: .9375rem; }

/* ---------- Frise ---------- */
.frise-wrap { position: relative; }
.frise { list-style: none; margin: 0; padding: 12px var(--gut) 12px; margin-top: -12px; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(260px, 340px); gap: 0; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-left: var(--gut); scrollbar-width: none; overscroll-behavior-x: contain; }
.frise::-webkit-scrollbar { display: none; }
@media (min-width: 1320px) { .frise { padding-left: calc((100vw - var(--wrap)) / 2 + var(--gut)); scroll-padding-left: calc((100vw - var(--wrap)) / 2 + var(--gut)); } }
.frise li { scroll-snap-align: start; position: relative; padding: 34px 32px 0 0; border-top: 2px solid var(--cendre); }
.frise li::before { content: ""; position: absolute; top: -8px; left: 0; width: 14px; height: 14px; border-radius: 50%; background: var(--nuit); border: 2px solid var(--semola); }
.frise li.titre::before { background: var(--pomodoro); border-color: var(--pomodoro); }
.frise .annee { display: block; font-weight: 800; font-stretch: 62%; font-variation-settings: "wdth" 62; font-size: 4.6rem; line-height: .9; letter-spacing: -0.02em; }
.frise li.titre .annee { color: var(--pomodoro); }
.frise h3 { font-size: 1.6rem; margin: 14px 0 10px; line-height: 1; }
.frise p { color: var(--semola); font-size: .975rem; max-width: 26em; }
.frise-nav { display: flex; gap: 10px; }
.rond { width: 52px; height: 52px; border-radius: 50%; border: 1.5px solid var(--cendre); background: transparent; display: grid; place-items: center; cursor: pointer; }
.rond svg { width: 22px; height: 22px; }
@media (hover: hover) and (pointer: fine) { .rond:hover { border-color: var(--farine); } }

.palmares { margin-top: 72px; display: grid; gap: 0; border-top: 1px solid var(--cendre); }
.palmares div { display: grid; grid-template-columns: 4.5rem 1fr; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--cendre); align-items: baseline; }
@media (min-width: 800px) { .palmares div { grid-template-columns: 6rem 1.4fr 1fr; } }
.palmares b { font-weight: 800; font-stretch: 62%; font-variation-settings: "wdth" 62; font-size: 2.4rem; line-height: 1; color: var(--pomodoro); }
.palmares span { font-weight: 600; }
.palmares em { font-style: normal; color: var(--sourdine); grid-column: 2; }
@media (min-width: 800px) { .palmares em { grid-column: auto; } }

/* ---------- Bandeau distributeurs ---------- */

/* ---------- Héros maison ---------- */
.heros-maison { min-height: 92svh; }
.heros-maison .heros-photo::after { background: linear-gradient(180deg, rgba(23,17,14,.6) 0%, rgba(23,17,14,.1) 30%, rgba(23,17,14,.2) 45%, rgba(23,17,14,.92) 78%, var(--nuit) 100%); }
.heros-maison h1 { color: var(--farine); }
.heros-maison .trait { display: block; width: 72px; height: 6px; border-radius: 3px; background: var(--accent); margin-bottom: 22px; }
.heros-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.heros-infos { display: flex; flex-wrap: wrap; gap: 8px 28px; margin-top: 24px; color: var(--semola); }

/* ---------- Commander ---------- */
.commander { display: grid; gap: 16px; }
@media (min-width: 860px) { .commander { grid-template-columns: repeat(3, 1fr); } }
.option { border-radius: 24px; background: var(--braise); padding: 30px; display: flex; flex-direction: column; gap: 14px; min-height: 250px; }
.option--accent { background: var(--accent); color: #fff; }
.option.option--accent p { color: #fff; } /* passe devant « .option p » : blanc plein, 4,5:1 */
.option h3 { font-size: 2.2rem; }
.option p { color: var(--semola); }
.option .btn { margin-top: auto; align-self: flex-start; }
.option .numero { font-weight: 800; font-stretch: 68%; font-variation-settings: "wdth" 68; font-size: 2.4rem; text-decoration: none; line-height: 1; }

/* ---------- Horaires ---------- */
.horaires-grille { display: grid; gap: 48px; }
@media (min-width: 900px) { .horaires-grille { grid-template-columns: 1fr 1fr; gap: 80px; } }
.horaires { width: 100%; border-collapse: collapse; font-size: 1.0625rem; }
.horaires th, .horaires td { text-align: left; padding: 14px 0; border-bottom: 1px solid var(--cendre); font-weight: 500; }
.horaires th { font-weight: 600; width: 40%; }
.horaires td { color: var(--semola); font-variant-numeric: tabular-nums; }
.horaires tr.aujourdhui th, .horaires tr.aujourdhui td { color: var(--farine); font-weight: 700; }
.horaires tr.aujourdhui th::after { content: "aujourd'hui"; margin-left: 10px; font-size: .8125rem; font-weight: 600; color: #fff; background: var(--accent); border-radius: 999px; padding: 2px 10px; vertical-align: 2px; }
.adresse { font-size: clamp(1.6rem, 2.6vw, 2.2rem); font-weight: 700; font-stretch: 80%; font-variation-settings: "wdth" 80; line-height: 1.15; }

/* ---------- Galerie maison ---------- */
.galerie { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
.galerie figure { margin: 0; border-radius: 20px; overflow: hidden; background: var(--braise); aspect-ratio: 1; }
.galerie figure:first-child { grid-column: 1 / -1; aspect-ratio: 16 / 10; }
@media (min-width: 900px) { .galerie { grid-template-columns: 2fr 1fr 1fr; } .galerie figure:first-child { grid-column: auto; grid-row: span 2; aspect-ratio: auto; } }
.galerie img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Carte ---------- */
.carte-heros { padding: 150px 0 40px; }
.carte-onglets { position: sticky; top: 0; z-index: 10; background: rgba(23, 17, 14, .92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--cendre); }
.carte-onglets .wrap { display: flex; gap: 8px; overflow-x: auto; padding-top: 12px; padding-bottom: 12px; scrollbar-width: none; }
.carte-onglets .wrap::-webkit-scrollbar { display: none; }
.carte-onglets a { flex: none; min-height: 44px; display: inline-flex; align-items: center; padding: 0 18px; border-radius: 999px; border: 1px solid var(--cendre); text-decoration: none; font-weight: 600; font-size: .9375rem; }
.carte-onglets a.actif { background: var(--farine); color: var(--nuit); border-color: var(--farine); }
.carte-section { padding: 64px 0 24px; scroll-margin-top: 70px; }
.carte-section h2 { font-size: clamp(2.4rem, 5vw, 4rem); margin-bottom: 8px; }
.carte-section > .wrap > p { color: var(--sourdine); margin-bottom: 26px; }
.plats { list-style: none; margin: 0; padding: 0; display: grid; gap: 0 56px; }
@media (min-width: 900px) { .plats { grid-template-columns: 1fr 1fr; } }
.plat { display: grid; grid-template-columns: 1fr auto; gap: 4px 20px; padding: 18px 0; border-bottom: 1px solid var(--cendre); }
.plat b { font-weight: 700; font-size: 1.125rem; }
.plat .prix { font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.plat .desc { grid-column: 1 / -1; color: var(--semola); font-size: .975rem; }
.plat .prix small { color: var(--sourdine); font-weight: 500; font-size: .8125rem; }
.tailles { display: flex; gap: 22px; color: var(--sourdine); font-size: .9375rem; margin-bottom: 6px; }

/* ---------- Pied de page ---------- */
.pied { border-top: 1px solid var(--cendre); padding: 72px 0 40px; }
.pied-haut { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 16px 40px; padding-bottom: 40px; margin-bottom: 40px; border-bottom: 1px solid var(--cendre); }
.pied-haut p { color: var(--semola); max-width: 26em; }
.pied-grille { display: grid; gap: 36px 24px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 1000px) { .pied-grille { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px; } }
.pied-maison { border-top: 3px solid var(--c); padding-top: 18px; }
.pied-maison h3 a { text-decoration: none; color: var(--farine); }
.pied .pied-tel { color: var(--farine); font-weight: 700; text-decoration: none; }
.reseaux { display: flex; gap: 8px; margin-top: 14px; }
.reseau { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--cendre); color: var(--farine) !important; }
.reseau svg { width: 20px; height: 20px; }
.reseaux-vide { margin-top: 14px; font-size: .875rem !important; }
.pied .logo { width: 220px; color: var(--farine); }
.pied h3 { font-size: clamp(1.9rem, 2.6vw, 2.4rem); margin-bottom: 10px; }
.pied h3 a { font-size: inherit !important; }
.pied p, .pied a { color: var(--semola); font-size: .975rem; }
.pied-bas { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--cendre); color: var(--sourdine); font-size: .875rem; }
.pied-bas a { color: var(--sourdine); }

/* ---------- Barre d'actions mobile ----------
   Liens simples (pas de JavaScript au tap), pas d'effet de survol,
   pas de masquage au défilement : un seul tap suffit, toujours. */
.barre { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; background: rgba(23, 17, 14, .96); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-top: 1px solid var(--cendre); padding: 8px 10px calc(10px + env(safe-area-inset-bottom)); }
.barre-actions { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
.barre-actions a { min-height: 56px; color: var(--farine); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; border-radius: 16px; text-decoration: none; font-weight: 700; font-size: .8125rem; background: var(--braise); }
.barre-actions a svg { width: 22px; height: 22px; }
.barre-actions a.principal { background: var(--accent); color: #fff; font-size: .9375rem; }
@media (min-width: 980px) { .barre { display: none; } }

/* Choix de la maison depuis la barre */
dialog.choix { border: 0; padding: 0; margin: auto auto 0; width: 100%; max-width: 560px; border-radius: 26px 26px 0 0; background: var(--braise); color: var(--farine); }
dialog.choix::backdrop { background: rgba(0, 0, 0, .55); }
.choix-in { padding: 22px 20px calc(20px + env(safe-area-inset-bottom)); }
.choix h2 { font-size: 2rem; margin-bottom: 14px; }
.choix-liste { display: grid; gap: 8px; }
.choix-liste button { --accent: var(--c); display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 64px; padding: 0 18px; border-radius: 16px; border: 1.5px solid var(--cendre); background: var(--nuit); text-align: left; cursor: pointer; }
.choix-liste button[aria-pressed="true"] { border-color: var(--c); box-shadow: inset 0 0 0 1px var(--c); }
.choix-liste b { font-size: 1.125rem; }
.choix-liste .statut { font-size: .875rem; }
.choix .fermer { margin-top: 12px; width: 100%; min-height: 50px; border-radius: 999px; border: 1.5px solid var(--cendre); background: transparent; font-weight: 700; cursor: pointer; }

@media (max-width: 979px) { body { --bar-h: calc(76px + env(safe-area-inset-bottom)); } }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* ---------- Fenêtre « appeler quelle maison ? » ---------- */
.choix p.sous { color: var(--semola); margin: -6px 0 16px; }
.choix-liste a { --accent: var(--c); display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2px 12px; min-height: 68px; padding: 12px 16px 12px 18px; border-radius: 16px; border: 1.5px solid var(--cendre); background: var(--nuit); text-decoration: none; position: relative; }
.choix-liste a::before { content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 4px; border-radius: 0 4px 4px 0; background: var(--c); }
.choix-liste a b { font-size: 1.125rem; }
.choix-liste a .statut { grid-column: 1; font-size: .875rem; }
.choix-liste a .num { grid-row: 1 / span 2; grid-column: 2; display: inline-flex; align-items: center; gap: 8px; font-weight: 700; background: var(--c); color: #fff; border-radius: 999px; padding: 10px 14px; font-size: .9375rem; }
.choix-liste a .num svg { width: 18px; height: 18px; }

/* ---------- Pontarlier : composition de pizzas en attendant les photos ---------- */
.univers-photo--pizzas { background: radial-gradient(90% 90% at 50% 50%, #3d8c5e 0%, var(--pontarlier) 60%, #1f5a38 100%); overflow: hidden; }
.univers-photo--pizzas img { position: absolute; inset: auto; width: 46%; height: auto; aspect-ratio: 1; object-fit: contain; filter: drop-shadow(0 18px 28px rgba(0,0,0,.35)); }
.univers-photo--pizzas img:nth-child(1) { left: 6%; top: 10%; width: 52%; }
.univers-photo--pizzas img:nth-child(2) { right: 4%; top: 4%; width: 36%; }
.univers-photo--pizzas img:nth-child(3) { right: 12%; bottom: -8%; width: 44%; }

/* ---------- Carte ---------- */
.mode { display: inline-grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 5px; border-radius: 999px; background: var(--braise); border: 1px solid var(--cendre); margin-top: 28px; }
.mode button { min-height: 48px; padding: 0 26px; border-radius: 999px; border: 0; background: transparent; font-weight: 700; font-size: 1rem; cursor: pointer; color: var(--semola); }
.mode button[aria-pressed="true"] { background: var(--farine); color: var(--nuit); }
.carte-info { margin-top: 18px; color: var(--semola); max-width: 40em; }
.carte-info strong { color: var(--farine); }
.carte-section { padding: 56px 0 8px; scroll-margin-top: 72px; }
.carte-section h2 { font-size: clamp(2.3rem, 4.6vw, 3.6rem); }
.carte-section .note { color: var(--sourdine); margin-top: 8px; }
.carte-tete { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 10px; border-bottom: 1px solid var(--cendre); padding-bottom: 14px; }
.tailles { display: none; }
.pizzas { list-style: none; margin: 0; padding: 0; }
.pizza { display: grid; grid-template-columns: 64px minmax(0, 1fr); grid-template-areas: "photo txt" "photo prix"; gap: 4px 16px; padding: 16px 0; border-bottom: 1px solid var(--cendre); align-items: center; }
.pizza-photo { grid-area: photo; width: 64px; height: 64px; border-radius: 50%; align-self: start; }
.pizza-photo img { width: 100%; height: 100%; border-radius: 50%; filter: drop-shadow(0 6px 10px rgba(0,0,0,.45)); }
.pizza-photo:empty { background: radial-gradient(circle, rgba(245,241,234,.05) 0 60%, transparent 61%); border: 1px dashed rgba(245,241,234,.12); }
.pizza-txt { grid-area: txt; }
.pizza-txt b { font-weight: 700; font-size: 1.125rem; }
.pizza-txt .desc { display: block; color: var(--semola); font-size: .95rem; line-height: 1.45; margin-top: 2px; }
.pizza-prix { grid-area: prix; display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.pizza-prix span { display: inline-flex; gap: 6px; align-items: baseline; font-weight: 700; font-variant-numeric: tabular-nums; background: var(--braise); border-radius: 10px; padding: 5px 10px; }
.pizza-prix span small { font-weight: 500; color: var(--sourdine); font-size: .78rem; }
@media (min-width: 760px) {
  .tailles { display: grid; grid-template-columns: repeat(var(--n, 3), 76px); text-align: right; color: var(--sourdine); font-size: .9rem; font-weight: 600; }
  .pizza { grid-template-columns: 84px minmax(0, 1fr) auto; grid-template-areas: "photo txt prix"; gap: 0 22px; padding: 14px 0; }
  .pizza-photo { width: 84px; height: 84px; align-self: center; }
  .pizza-prix { display: grid; grid-template-columns: repeat(var(--n, 3), 76px); margin: 0; gap: 0; text-align: right; }
  .pizza-prix span { display: block; background: none; padding: 0; font-size: 1.0625rem; }
  .pizza-prix span small { display: none; }
}
.plats { list-style: none; margin: 0; padding: 0; display: grid; gap: 0 56px; }
@media (min-width: 900px) { .plats { grid-template-columns: 1fr 1fr; } }
.plat { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 20px; padding: 16px 0; border-bottom: 1px solid var(--cendre); align-items: baseline; }
.plat b { font-weight: 700; font-size: 1.0625rem; }
.plat .desc { grid-column: 1; color: var(--semola); font-size: .95rem; line-height: 1.45; }
.plat .region { color: var(--accent); font-weight: 600; font-size: .9rem; margin-left: 8px; }
.plat .prix { grid-column: 2; grid-row: 1 / span 2; text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; display: grid; gap: 2px; }
.plat .prix small { color: var(--sourdine); font-weight: 500; font-size: .8rem; margin-right: 6px; }
.carte-appel { margin: 64px 0 0; border-radius: 26px; background: var(--braise); padding: clamp(26px, 4vw, 48px); display: grid; gap: 18px; }
@media (min-width: 900px) { .carte-appel { grid-template-columns: 1fr auto; align-items: center; } }

/* ---------- Héros : arguments qui défilent ---------- */
.heros-accueil .heros-photo::after { background:
  linear-gradient(90deg, rgba(23,17,14,.78) 0%, rgba(23,17,14,.35) 45%, rgba(23,17,14,0) 70%),
  linear-gradient(180deg, rgba(23,17,14,.6) 0%, rgba(23,17,14,0) 20%, rgba(23,17,14,.1) 45%, rgba(23,17,14,.9) 80%, var(--nuit) 100%); }
.heros-accueil .heros-texte { padding-top: clamp(130px, 22vh, 220px); }
.slogans { display: grid; font-size: clamp(2.7rem, 6.2vw, 5.6rem); line-height: .95; max-width: 13ch; min-height: 2em; }
.slogans > * { grid-area: 1 / 1; align-self: end; }
.heros-lead { margin-top: 20px; max-width: 34em; font-size: clamp(1.05rem, 1.4vw, 1.2rem); line-height: 1.5; color: var(--farine); text-shadow: 0 1px 12px rgba(0,0,0,.6); }
.heros-maison .heros-texte { padding-bottom: 64px; }
.heros-maison .display { font-size: clamp(3.2rem, 9vw, 8rem); }
.a-completer { color: var(--sourdine); font-style: italic; }
.section--claire .a-completer { color: #8a7d74; }
.equipe-photo { margin: 56px 0 0; }
@media (max-width: 979px) {
  .carte-heros { padding: 108px 0 28px; }
  .carte-heros .heros-actions { display: none; } /* la barre du bas porte déjà « Commander » */
}

/* ---------- Slogans qui roulent (piloté par le script) ---------- */
.slogans { overflow: hidden; padding-bottom: .08em; }
.slogans > * { opacity: 0; transition: opacity .5s ease; }
.slogans > .actif { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
  .slogans > * { transform: translateY(105%); transition: transform .75s cubic-bezier(.7, 0, .2, 1), opacity .5s ease; }
  .slogans > .actif { transform: none; }
  .slogans > .sort { transform: translateY(-105%); opacity: 0; }
}
.slogan-progres { display: flex; gap: 6px; margin-top: 18px; max-width: 280px; }
.slogan-progres span { flex: 1; height: 3px; border-radius: 3px; background: rgba(245, 241, 234, .22); overflow: hidden; position: relative; }
.slogan-progres span::after { content: ""; position: absolute; inset: 0; background: var(--farine); transform: scaleX(0); transform-origin: left; }
.slogan-progres span.fait::after { transform: scaleX(1); }
.slogan-progres span.encours::after { animation: progres var(--duree-slogan, 3600ms) linear forwards; }
@keyframes progres { to { transform: scaleX(1); } }

/* ---------- Espacements resserrés ---------- */
.section--serree { padding-top: 0; padding-bottom: clamp(56px, 7vw, 96px); }
.heros-accueil + .section--serree { padding-top: 8px; }
.section--serree + .section { padding-top: clamp(40px, 6vw, 80px); }

/* ---------- Distributeurs ---------- */
.distribs { display: grid; gap: 12px; margin-top: 16px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 700px) { .distribs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .distribs { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.distrib-carte { background: var(--braise); border: 1px solid rgba(245,241,234,.08); border-radius: 20px; padding: 20px; display: flex; flex-direction: column; gap: 4px; }
.distrib-carte h3 { font-size: 1.9rem; }
.distrib-carte p { font-size: .95rem; }
.distrib-carte .statut { margin-top: 6px; }
.distrib-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.distrib-actions .btn[aria-pressed="true"] { background: var(--farine); color: var(--nuit); border-color: var(--farine); }
.plan { margin-top: 12px; border-radius: 20px; overflow: hidden; background: var(--braise); height: clamp(260px, 34vw, 380px); }
.plan iframe { display: block; width: 100%; height: 100%; border: 0; filter: grayscale(.3) contrast(1.05); }

/* ---------- Maisons : liens ---------- */
.univers-lien { color: #fff; margin-left: 6px; }
.exemple { display: inline-block; font-size: .7rem; font-weight: 600; letter-spacing: .02em; color: #8a7d74; border: 1px solid #d8cdc2; border-radius: 999px; padding: 0 7px; vertical-align: 1px; }

/* ---------- Carte : barre collante (mode + rubriques) ---------- */
.carte-collant { position: sticky; top: 0; z-index: 10; background: rgba(23, 17, 14, .94); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--cendre); }
.carte-collant .wrap { display: flex; align-items: center; gap: 14px; padding-top: 10px; padding-bottom: 10px; }
.carte-collant .carte-onglets { position: static; background: none; border: 0; backdrop-filter: none; -webkit-backdrop-filter: none; flex: 1; min-width: 0; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; scroll-padding-left: 0; }
.carte-collant .carte-onglets::-webkit-scrollbar { display: none; }
.carte-collant .carte-onglets[hidden] { display: none; }
.mode--mini { margin: 0; flex: none; padding: 4px; }
.mode--mini button { min-height: 38px; padding: 0 16px; font-size: .9rem; }
.carte-section { scroll-margin-top: 84px; }
@media (max-width: 760px) {
  .carte-collant .wrap { flex-wrap: wrap; gap: 10px; }
  .mode--mini { width: 100%; }
  .mode--mini button { min-height: 40px; }
  .carte-section { scroll-margin-top: 132px; }
}

/* ---------- École de pizzaïoli ---------- */
.ecole { display: grid; gap: 40px; background: var(--braise); border-radius: 28px; padding: clamp(20px, 3vw, 40px); }
@media (min-width: 980px) { .ecole { grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: center; } }
.ecole-photos { display: grid; grid-template-columns: 1.2fr 1fr; grid-template-rows: 1fr 1fr; gap: 10px; aspect-ratio: 1 / .9; }
.ecole-photos figure { margin: 0; border-radius: 18px; overflow: hidden; background: var(--nuit); }
.ecole-photos .e1 { grid-row: 1 / span 2; }
.ecole-photos img { width: 100%; height: 100%; object-fit: cover; }
.ecole-texte { display: flex; flex-direction: column; gap: 18px; }
.ecole-formules { display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 600px) { .ecole-formules { grid-template-columns: 1fr 1fr; } }
.ecole-formules div { border: 1px solid var(--cendre); border-radius: 18px; padding: 18px; }
.ecole-formules h3 { font-size: 1.6rem; margin-bottom: 6px; }
.ecole-formules p { color: var(--semola); font-size: .95rem; }
.ecole-heros { padding: 140px 0 40px; }
.ecole-heros-grille { display: grid; gap: 40px; align-items: center; }
@media (min-width: 980px) { .ecole-heros-grille { grid-template-columns: 1.2fr 1fr; gap: 64px; } }
.ecole-heros .display { font-size: clamp(3rem, 8vw, 7rem); }
.ecole-portrait { margin: 0; border-radius: 26px; overflow: hidden; aspect-ratio: 4 / 5; max-height: 640px; }
.ecole-portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }

/* ---------- Formulaire ---------- */
.formulaire-grille { display: grid; gap: 40px; }
@media (min-width: 980px) { .formulaire-grille { grid-template-columns: 1fr 1.3fr; gap: 72px; align-items: start; } }
.formulaire { display: grid; gap: 16px; }
.champs-2 { display: grid; gap: 16px; }
@media (min-width: 600px) { .champs-2 { grid-template-columns: 1fr 1fr; } }
.formulaire label { display: grid; gap: 6px; font-weight: 600; font-size: .95rem; }
.formulaire input:not([type="radio"]), .formulaire select, .formulaire textarea { font: inherit; font-weight: 400; font-size: 1rem; color: #2a1c15; background: #fff; border: 1.5px solid #d8cdc2; border-radius: 14px; padding: 13px 14px; min-height: 50px; width: 100%; }
.formulaire textarea { resize: vertical; }
.formulaire input:focus, .formulaire select:focus, .formulaire textarea:focus { outline: 3px solid color-mix(in srgb, var(--accent) 40%, transparent); border-color: var(--pomodoro); }
.formulaire fieldset { border: 0; padding: 0; margin: 0; }
.formulaire legend { font-weight: 600; font-size: .95rem; margin-bottom: 8px; }
.choix-radio { display: flex; flex-wrap: wrap; gap: 8px; }
.choix-radio label { display: block; }
.choix-radio input { position: absolute; opacity: 0; }
.choix-radio span { display: inline-flex; align-items: center; min-height: 46px; padding: 0 18px; border-radius: 999px; border: 1.5px solid #d8cdc2; background: #fff; font-weight: 600; cursor: pointer; }
.choix-radio input:checked + span { background: var(--nuit); color: var(--farine); border-color: var(--nuit); }
.choix-radio input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.formulaire .btn--plein { justify-self: start; }
.form-erreur { color: #b3140d; font-weight: 600; }
.form-merci { background: #fff; border-radius: 18px; padding: 20px; border: 1.5px solid #d8cdc2; }
.form-merci h3 { font-size: 1.8rem; margin-bottom: 6px; }
.form-merci p { color: #5c5049; }

/* ---------- Page maison : bloc commande ---------- */
.heros-infos .lien { color: var(--farine); }
.commande { display: grid; gap: 12px; }
@media (min-width: 900px) { .commande { grid-template-columns: 1.05fr 1fr 1fr; } }
.commande-appel { background: var(--accent); color: #fff; border-radius: 24px; padding: clamp(24px, 3vw, 34px); display: flex; flex-direction: column; gap: 16px; }
.commande-appel h2 { font-size: clamp(2rem, 3vw, 2.6rem); }
.commande-appel .numero { font-weight: 800; font-stretch: 68%; font-variation-settings: "wdth" 68; font-size: clamp(2.4rem, 4vw, 3.2rem); line-height: 1; text-decoration: none; }
.commande-appel .btn { align-self: flex-start; }
.etapes { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; counter-reset: etape; }
.etapes li { counter-increment: etape; display: flex; align-items: center; gap: 12px; font-weight: 600; }
.etapes li::before { content: counter(etape); width: 28px; height: 28px; flex: none; border-radius: 50%; background: rgba(255, 255, 255, .2); display: grid; place-items: center; font-size: .875rem; font-weight: 800; }
.commande-carte { position: relative; overflow: hidden; isolation: isolate; background: var(--braise); border: 1px solid rgba(245, 241, 234, .08); border-radius: 24px; padding: clamp(24px, 3vw, 34px); min-height: 300px; display: flex; flex-direction: column; justify-content: flex-end; text-decoration: none; color: var(--farine); }
.commande-carte img { position: absolute; z-index: -1; width: 230px; height: 230px; right: -46px; top: -46px; filter: drop-shadow(0 18px 26px rgba(0, 0, 0, .5)); transition: transform .5s cubic-bezier(.2, .7, .1, 1); }
.cc-txt { display: flex; flex-direction: column; gap: 10px; }
.commande-carte h3 { font-size: clamp(2rem, 3vw, 2.5rem); max-width: 7em; }
.commande-carte p { color: var(--semola); font-size: .975rem; }
.commande-carte .btn { align-self: flex-start; margin-top: 6px; }
@media (hover: hover) and (pointer: fine) { .commande-carte:hover img { transform: rotate(18deg) scale(1.04); } .commande-carte:hover .btn { background: var(--farine); color: var(--nuit); border-color: var(--farine); } }
.commande-carte--liste { justify-content: flex-start; }
.paninoteca { list-style: none; margin: 4px 0 6px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.paninoteca li { border: 1px solid var(--cendre); border-radius: 999px; padding: 8px 14px; font-weight: 600; }

/* ---------- Page maison : carte intégrée ---------- */
.carte-maison { padding: clamp(40px, 5vw, 72px) 0 clamp(40px, 5vw, 72px); border-top: 1px solid var(--cendre); }
.carte-maison-tete { display: grid; gap: 12px; margin-bottom: 24px; }
@media (min-width: 900px) { .carte-maison-tete { grid-template-columns: 1fr 1.2fr; align-items: end; gap: 48px; } }
.carte-maison .carte-info { margin: 0; }
.carte-maison .carte-appel { margin-top: 40px; }

/* ---------- Distributeurs : plan à la demande ---------- */
.plan[hidden] { display: none; }
.plan { position: relative; }
.fermer-plan { position: absolute; top: 12px; right: 12px; min-height: 40px; padding: 0 16px; border-radius: 999px; border: 0; background: var(--nuit); color: var(--farine); font-weight: 700; cursor: pointer; }

/* ---------- Titres « La carte. » plus compacts ---------- */
.carte-heros { padding: 120px 0 28px; }
.carte-heros .display { font-size: clamp(2.8rem, 5.6vw, 5.2rem); }
.carte-maison-tete .h2 { font-size: clamp(2.2rem, 3.6vw, 3.4rem); }
.carte-section h2 { font-size: clamp(2rem, 3.4vw, 3rem); }

/* ---------- Bloc commande plus compact, sans photos ---------- */
.commande-carte { min-height: 0; justify-content: space-between; }
.commande-carte h3 { max-width: none; }
.commande-appel p { color: #fff; } /* blanc plein : 4,5:1 même sur le vert des maisons */

/* ---------- Écart distributeurs → « Ce qu'on met dedans » ---------- */
.section--serree { padding-bottom: 24px; }
.section--serree + .section { padding-top: 48px; }

/* ---------- Accueil desktop : l'info plus haut ---------- */
@media (min-width: 980px) {
  .heros-accueil { min-height: 0; }
  .heros-accueil .heros-texte { padding-top: 132px; padding-bottom: 28px; }
  .heros-accueil .maisons-tuiles { padding-bottom: 36px; }
}
@media (min-width: 980px) {
  .heros-accueil .heros-texte { padding-top: 124px; padding-bottom: 24px; }
  .heros-accueil .heros-lead { margin-top: 14px; }
  .heros-accueil .slogan-progres { margin-top: 14px; }
  .heros-accueil .maison-tuile { padding: 18px 20px 18px; gap: 12px; }
}

/* ---------- Séparation restaurants / distributeurs ---------- */
.heros-accueil + .section--distrib { padding-top: clamp(24px, 3vw, 40px); }
.distrib-sep { border-top: 1px solid var(--cendre); padding-top: clamp(40px, 5vw, 64px); }
.entete-distrib { margin-bottom: clamp(22px, 3vw, 36px); }
.entete-distrib .h2 { font-size: clamp(2.4rem, 4.6vw, 4.2rem); }
/* le titre prend sa place, l'introduction tout le reste : elle tient sur une ligne sur ordinateur */
@media (min-width: 980px) { .entete-distrib { grid-template-columns: auto minmax(0, 1fr); align-items: baseline; } }
.distrib-suite { display: flex; justify-content: flex-end; margin: 36px 0 0; }

/* ---------- Distributeurs : statut et boutons alignés en bas de chaque carte ---------- */
.distrib-carte .statut { margin-top: auto; padding-top: 12px; }
.distrib-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
.distrib-actions .btn { padding: 0 10px; min-width: 0; }
@media (min-width: 1100px) and (max-width: 1279px) { .distrib-actions { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Séparateur artisanal (trait tracé à la main + feuille de basilic) ---------- */
.distrib-sep { border-top: 0; padding-top: 0; }
.sep { display: flex; align-items: center; gap: 14px; margin: 0 0 clamp(40px, 5vw, 60px); color: #6a5a50; }
.sep-trait { flex: 1; height: 12px; overflow: visible; }
.sep-trait path { fill: none; stroke: currentColor; stroke-width: 1.2; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.sep-feuille { width: 30px; height: 19px; flex: none; transform: rotate(-12deg); }
.sep-feuille path { fill: none; stroke: #7fa36a; stroke-width: 1.4; stroke-linejoin: round; }
.sep-feuille .nervure { stroke-width: 1; opacity: .8; }
.sep-trait { flex: 1 1 0; width: 0; min-width: 0; display: block; }

/* ---------- Séparateur : petite pizza au trait ---------- */
.sep-pizza { width: 26px; height: 26px; flex: none; color: #a8806a; }
.sep-pizza circle, .sep-pizza path { fill: none; stroke: currentColor; stroke-width: 1.2; }
.sep-pizza .croute { stroke-width: 1.6; }
.sep-pizza .parts { stroke-width: .9; opacity: .7; }
.sep-pizza .garni { fill: var(--pomodoro); stroke: none; opacity: .85; }

/* ---------- Carte : pizza du mois / du moment ---------- */
.moments { display: grid; gap: 12px; margin-bottom: 28px; }
@media (min-width: 900px) { .moments { grid-template-columns: 1fr 1fr; } }
.moment { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 18px; align-items: center; padding: 18px 22px 18px 18px; border-radius: 22px;
  background: linear-gradient(120deg, color-mix(in srgb, var(--accent) 16%, var(--braise)) 0%, var(--braise) 70%);
  border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent); }
.moment img { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; filter: drop-shadow(0 8px 14px rgba(0, 0, 0, .45)); }
.moment-label { font-weight: 700; font-size: .875rem; color: color-mix(in srgb, var(--accent) 55%, var(--farine)); }
.moment h3 { font-size: clamp(1.7rem, 2.4vw, 2.1rem); margin: 2px 0 6px; }
.moment-desc { color: var(--semola); font-size: .95rem; line-height: 1.45; }
.moment-note { margin-top: 8px; font-size: .8125rem; color: var(--sourdine); }
@media (min-width: 900px) { .moment { grid-template-columns: 120px minmax(0, 1fr); } .moment img { width: 120px; height: 120px; } }

/* ---------- Offre du moment : bandeau sobre avant la carte ---------- */
.offre-section { padding: 8px 0 clamp(28px, 4vw, 48px); }
.offre { position: relative; display: grid; gap: 18px; align-items: center; padding: clamp(20px, 3vw, 30px); padding-left: clamp(20px, 3vw, 30px); border-radius: 26px; overflow: hidden; isolation: isolate;
  background: radial-gradient(120% 140% at 0% 50%, color-mix(in srgb, #c9a96e 22%, var(--braise)) 0%, var(--braise) 55%);
  border: 1px solid rgba(201, 169, 110, .45); }
.offre img { width: 132px; height: 132px; border-radius: 50%; filter: drop-shadow(0 14px 22px rgba(0, 0, 0, .5)); }
@media (min-width: 900px) { .offre { grid-template-columns: 150px minmax(0, 1fr) auto; gap: 32px; } .offre img { width: 150px; height: 150px; } }
.offre-label { font-weight: 700; font-size: .875rem; color: #d8bd88; display: flex; align-items: center; gap: 8px; }
.offre-label .exemple { color: #b9a37c; border-color: rgba(201, 169, 110, .5); }
.offre h2 { font-size: clamp(2rem, 3.4vw, 3rem); margin: 4px 0 8px; }
.offre-txt p:last-child { color: var(--semola); max-width: 38em; }
.offre-cta { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
@media (min-width: 900px) { .offre-cta { align-items: flex-end; } }
.offre-quand { font-weight: 700; font-size: .9rem; color: #d8bd88; }
.lien-demo { opacity: .7; }
@media (max-width: 899px) { .offre img { width: 96px; height: 96px; } }
.sep-pizza { width: 30px; height: 30px; }
.sep-pizza .croute { fill: none; stroke: #b48a6c; stroke-width: 1.5; stroke-linejoin: round; }
.sep-pizza .sauce { fill: none; stroke: #b48a6c; stroke-width: .9; opacity: .55; }
.sep-pizza .garni { fill: var(--pomodoro); stroke: none; opacity: .9; }

/* ---------- Barre mobile : trois boutons de même largeur ---------- */
.barre-actions { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.barre-actions a.principal { font-size: .8125rem; }
/* Charquemont : photo d'équipe devant la maison, cadrée sur l'enseigne et les visages */
[data-maison="charquemont"] .heros-maison .heros-photo img { object-position: 50% 30%; }

/* ---------- Rouge La Novità : bordeaux (bannières et logo officiel) ---------- */
:root { --pomodoro: #9f1219; --charquemont: #9f1219; --pomodoro-texte: #e0575b; }
.kicker { color: color-mix(in srgb, var(--accent) 45%, #f0b3a8); }
.ecole .kicker { color: color-mix(in srgb, var(--accent) 80%, var(--farine)); } /* bloc École sur papier : contraste 4,5:1 */
.frise li.titre .annee, .palmares b { color: var(--pomodoro-texte); }
.frise li.titre::before { background: var(--pomodoro-texte); border-color: var(--pomodoro-texte); }
.plat .region { color: color-mix(in srgb, var(--accent) 40%, var(--farine)); }
.portrait .role { filter: none; color: color-mix(in srgb, var(--c, var(--accent)) 55%, var(--farine)); }
.section--claire .portrait .role { color: var(--c, var(--accent)); }
.sep-pizza .garni { fill: #c4252c; }

/* ---------- Légende de la photo « Ce qu'on met dedans » lisible ---------- */
.produits-photo figcaption { left: 0; right: 0; bottom: 0; padding: 60px 22px 20px; font-size: .975rem; line-height: 1.45; color: #fff; background: linear-gradient(180deg, rgba(23,17,14,0) 0%, rgba(23,17,14,.78) 45%, rgba(23,17,14,.94) 100%); text-shadow: 0 1px 8px rgba(0,0,0,.5); }
@media (max-width: 979px) {
  .produits-photo { aspect-ratio: auto; background: none; overflow: visible; }
  .produits-photo img { aspect-ratio: 4 / 3; border-radius: 22px; }
  .produits-photo figcaption { position: static; padding: 12px 2px 0; background: none; color: var(--semola); text-shadow: none; font-size: .95rem; }
}

/* ---------- Pizza du mois / du moment : en négatif pour ressortir ---------- */
.moment { background: var(--farine); border: 0; color: var(--nuit); box-shadow: 0 18px 40px -22px rgba(0, 0, 0, .7); }
.moment-label { color: var(--accent); font-weight: 800; }
.moment h3 { color: var(--nuit); }
.moment-desc { color: #5c5049; }
.moment-note { color: #8a7d74; font-weight: 600; }
.moment img { filter: drop-shadow(0 10px 16px rgba(60, 30, 20, .35)); }

/* ---------- Menu du haut lisible sur les photos ---------- */
.entete::before { content: ""; position: absolute; inset: 0 0 auto; height: 170px; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgba(23, 17, 14, .88) 0%, rgba(23, 17, 14, .55) 45%, rgba(23, 17, 14, 0) 100%); }
.nav a { text-shadow: 0 1px 10px rgba(0, 0, 0, .55); }
.logo svg { filter: drop-shadow(0 1px 8px rgba(0, 0, 0, .45)); }
.entete::before { height: 190px; background: linear-gradient(180deg, rgba(23, 17, 14, .94) 0%, rgba(23, 17, 14, .74) 42%, rgba(23, 17, 14, .3) 75%, rgba(23, 17, 14, 0) 100%); }

/* =================== Correctifs mobile (novembre) =================== */
.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; }
[tabindex="-1"]:focus { outline: none; }

/* 2. En-tête fixe, toujours accessible */
:root { --entete-h: 72px; }
@media (max-width: 979px) { :root { --entete-h: 64px; } }
.entete { position: fixed; top: 0; left: 0; right: 0; z-index: 40; transition: background-color .25s ease, border-color .25s ease; border-bottom: 1px solid transparent; }
.entete .wrap { height: var(--entete-h); }
.entete::before { transition: opacity .25s ease; }
.entete.defile { background: rgba(23, 17, 14, .92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom-color: var(--cendre); }
.entete.defile::before { opacity: 0; }
@media (max-width: 979px) { .logo { width: 132px; } }
html { scroll-padding-top: calc(var(--entete-h) + 12px); }
.carte-collant { top: var(--entete-h); }
.carte-section { scroll-margin-top: calc(var(--entete-h) + 84px); }
@media (max-width: 760px) { .carte-section { scroll-margin-top: calc(var(--entete-h) + 132px); } }

/* 3. Contour de focus gardé partout (tablette avec clavier comprise) (U-22) */

/* 1. Menu et fenêtres : nom, statut, puis numéro en pleine largeur */
@media (max-width: 560px) {
  .choix-liste a { grid-template-columns: minmax(0, 1fr); gap: 4px; padding: 14px 16px 14px 18px; }
  .choix-liste a .statut { grid-column: 1; }
  .choix-liste a .num { grid-row: auto; grid-column: 1; justify-content: center; margin-top: 8px; padding: 12px 14px; }
  .feuille nav a { font-size: 2.2rem; }
}

/* 4. Tarifs sur toute la largeur */
@media (max-width: 759px) {
  .pizza { grid-template-areas: "photo txt" "prix prix"; }
  .pizza-prix { display: grid; grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); gap: 6px; margin-top: 10px; }
  .pizza-prix span { justify-content: space-between; padding: 8px 10px; }
}

/* 5 & 6. Haut de page mobile : la photo en haut, le texte dessous sur fond sombre */
@media (max-width: 760px) {
  .heros, .heros-maison { min-height: 0; display: block; }
  .heros-photo { position: relative; inset: auto; z-index: 0; height: 52svh; min-height: 300px; max-height: 480px; }
  .heros-photo img, .heros-photo picture img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
  .heros-photo::after, .heros-accueil .heros-photo::after, .heros-maison .heros-photo::after {
    background: linear-gradient(180deg, rgba(23,17,14,.5) 0%, rgba(23,17,14,0) 22%, rgba(23,17,14,0) 58%, var(--nuit) 100%); }
  .heros > .heros-texte, .heros-accueil .heros-texte, .heros-maison .heros-texte { position: relative; z-index: 1; padding-top: 0; margin-top: -36px; }
  .heros-accueil .heros-photo img { object-position: 50% 55%; }
  [data-maison="charquemont"] .heros-maison .heros-photo img { object-position: 50% 35%; }
  .heros-maison .heros-texte { padding-bottom: 40px; }
  .heros-maison .display { font-size: clamp(2.8rem, 12vw, 3.6rem); }
  .heros-maison .trait { margin-bottom: 14px; }
}

/* Menu mobile : les cartes de maison reprennent la mise en page des fenêtres de choix */
.feuille .maisons-liste { display: block; }
.feuille .maisons-liste > p { margin-bottom: 12px; }
.feuille .maisons-liste .choix-liste a { display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; min-height: 0; padding: 14px 16px 14px 18px; font-weight: 400; }
.feuille .maisons-liste .choix-liste a b { font-weight: 700; }
.feuille .maisons-liste .choix-liste a span:last-child { color: #fff; font-weight: 700; }
.feuille .maisons-liste .choix-liste a .num { justify-content: center; margin-top: 8px; padding: 12px 14px; white-space: nowrap; }
@media (min-width: 561px) {
  .feuille .maisons-liste .choix-liste a { grid-template-columns: minmax(0, 1fr) auto; }
  .feuille .maisons-liste .choix-liste a .num { grid-column: 2; grid-row: 1 / span 2; margin-top: 0; }
}
.choix-liste a .num { white-space: nowrap; }

/* =================== Plus chaleureux, plus rustique =================== */
/* Sombres plus chauds (espresso plutôt que noir), textes secondaires plus lisibles */
:root {
  --nuit: #221813; --braise: #30231b; --cendre: #4b392e;
  --semola: #e2d7c9; --sourdine: #bcad9c;
  --grain-sombre: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 .9 0 0 0 0 .78 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --grain-papier: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .45 0 0 0 0 .3 0 0 0 0 .18 0 0 0 .1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
body { background-color: var(--nuit); background-image: var(--grain-sombre); }
.entete.defile { background: rgba(34, 24, 19, .94); }

/* Sections « papier » : on inverse les couleurs, les composants suivent */
.theme-clair {
  --nuit: #f4ebdd; --braise: #ebdfcc; --cendre: #d8c8b0;
  --farine: #2a1c15; --semola: #5b483c; --sourdine: #6a5646; /* contraste 4,5:1 sur les papiers */
  background-color: var(--nuit); background-image: var(--grain-papier); color: var(--farine);
}
.section--claire { background-color: #f4ebdd; background-image: var(--grain-papier); }
/* éléments qui restent sombres ou colorés à l'intérieur du papier */
.theme-clair .univers-carte, .theme-clair .produits-photo, .theme-clair .moment {
  --nuit: #221813; --braise: #30231b; --cendre: #4b392e;
  --farine: #f5f1ea; --semola: #e2d7c9; --sourdine: #bcad9c;
}
.theme-clair .produits-photo { background-color: transparent; }
@media (max-width: 979px) { .theme-clair .produits-photo figcaption { color: #5b483c; } }
/* pizza du mois / du moment : cartes sombres sur le papier, elles ressortent */
.theme-clair .moment { background: #2a1d16; color: var(--farine); box-shadow: 0 18px 36px -20px rgba(60, 30, 15, .55); }
.theme-clair .moment h3 { color: var(--farine); }
.theme-clair .moment-desc { color: var(--semola); }
.theme-clair .moment-note { color: var(--sourdine); }
.theme-clair .moment-label { color: color-mix(in srgb, var(--accent) 45%, #f3c9b9); }
.theme-clair .carte-collant { background: rgba(244, 235, 221, .95); }
.theme-clair .pizza-photo img { filter: drop-shadow(0 6px 10px rgba(80, 40, 20, .28)); }

/* =================== Carte : un bouton + la rubrique en cours =================== */
.carte-collant .wrap { flex-wrap: nowrap; gap: 10px; }
.rubrique { position: relative; flex: 1; min-width: 0; display: flex; align-items: center; }
.rubrique select { -webkit-appearance: none; appearance: none; width: 100%; min-height: 46px; padding: 0 40px 0 16px;
  border-radius: 999px; border: 1px solid var(--cendre); background: var(--nuit); color: var(--farine);
  font: inherit; font-size: 1.125rem; font-weight: 800; font-stretch: 72%; font-variation-settings: "wdth" 72;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; }
.rubrique select[hidden] { display: none; }
.rubrique svg { position: absolute; right: 14px; width: 18px; height: 18px; pointer-events: none; color: var(--accent); }
.carte-section { scroll-margin-top: calc(var(--entete-h) + 80px); }
@media (max-width: 760px) {
  .mode--mini { width: auto; flex: none; }
  .mode--mini button { min-height: 38px; padding: 0 12px; font-size: .9375rem; }
  .carte-section { scroll-margin-top: calc(var(--entete-h) + 72px); }
}
@media (min-width: 761px) { .rubrique { max-width: 360px; } }
@media (max-width: 760px) {
  .carte-collant .wrap { gap: 8px; }
  .mode--mini { padding: 3px; }
  .mode--mini button { min-height: 38px; padding: 0 9px; font-size: .875rem; }
  .rubrique select { padding: 0 34px 0 12px; }
  .rubrique svg { right: 11px; }
}

/* =================== Touches rustiques =================== */
:root { --main: "Caveat", "Segoe Script", cursive; --encre: #8a1219; }

/* Petits dessins au trait */
.croquis { width: 36px; height: 36px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; color: #a7785a; }
.theme-clair .croquis { color: #9a6b4e; }
.produits-liste li { grid-template-columns: 40px minmax(0, 1fr); column-gap: 14px; }
.produits-liste li .croquis { grid-row: 1 / span 2; align-self: start; margin-top: 2px; }
@media (min-width: 700px) {
  .produits-liste li { grid-template-columns: 44px minmax(0, 1fr) minmax(0, 1.05fr); align-items: center; }
  .produits-liste li .croquis { grid-row: auto; width: 40px; height: 40px; margin: 0; }
}
.carte-titre { display: flex; align-items: center; gap: 14px; }
.croquis--rubrique { width: 42px; height: 42px; }
@media (max-width: 760px) { .croquis--rubrique { width: 34px; height: 34px; } }

/* Signature manuscrite */
.signature { position: relative; display: inline-block; margin-top: 14px; font-family: var(--main); font-weight: 700; font-size: clamp(2rem, 3vw, 2.5rem); line-height: 1; color: var(--encre); transform: rotate(-3deg); transform-origin: left center; }
.signature svg { display: block; width: 100%; height: 12px; margin-top: 2px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; opacity: .8; }
:not(.theme-clair) > .wrap .signature, #histoire .signature { color: #e9a19b; }
.theme-clair .signature { color: var(--encre); }

/* 1. Pizza du mois / du moment à l'ardoise */
.theme-clair .moment, .moment {
  --craie: #f2efe6;
  background-color: #2f3331;
  background-image:
    radial-gradient(60% 50% at 25% 30%, rgba(255,255,255,.06), transparent 70%),
    radial-gradient(50% 60% at 80% 75%, rgba(255,255,255,.045), transparent 70%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  border: 7px solid #6f4a31; border-radius: 14px;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.45), inset 0 2px 12px rgba(0,0,0,.35), 0 16px 30px -18px rgba(60, 30, 15, .6);
  color: var(--craie);
}
.theme-clair .moment-label, .moment-label { font-family: var(--main); font-size: 1.45rem; font-weight: 700; line-height: 1; color: #f2d37c; }
.theme-clair .moment h3, .moment h3 { font-family: var(--main); font-weight: 700; font-stretch: normal; font-variation-settings: normal; letter-spacing: 0; font-size: clamp(2.3rem, 3.4vw, 2.8rem); line-height: 1; margin: 2px 0 6px; color: var(--craie); }
.theme-clair .moment-desc, .moment-desc { color: rgba(242, 239, 230, .86); }
.theme-clair .moment-note, .moment-note { font-family: var(--main); font-size: 1.25rem; font-weight: 600; color: rgba(242, 239, 230, .62); }

/* 3. Le liseré du tablier (passepoil crème sur le rouge) */
.maison-tuile::before { width: 56px; height: 5px; background: var(--c); }
.univers-texte { position: relative; }
.univers-texte::after { content: ""; position: absolute; inset: 10px; border: 1px dashed rgba(255, 255, 255, .38); border-radius: 18px; pointer-events: none; }
@media (min-width: 900px) {
  .univers-carte .univers-texte::after { inset: 12px; }
}

/* 4. Pied de page en papier kraft, logo comme tamponné */
.pied {
  --nuit: #c9a47d; --farine: #2e1d14; --semola: #4a3326; --sourdine: #6b4c38; --cendre: rgba(70, 40, 20, .28);
  background-color: #c9a47d;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='f'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.02 .9' numOctaves='2' seed='4'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .22 0 0 0 0 .12 0 0 0 .12 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23f)'/%3E%3C/svg%3E"),
    var(--grain-papier);
  color: var(--farine);
  border-top: 0;
  box-shadow: inset 0 7px 0 #9f1219, inset 0 8.5px 0 #f3e6d3, inset 0 11px 0 #9f1219;
}
.pied .logo { color: #8a1219; opacity: .92; } /* à plat, comme la broderie des vestes */
.pied .logo svg { filter: none; }
.pied .reseau { color: var(--farine) !important; border-color: rgba(70, 40, 20, .35); }
.pied .statut[data-ouvert="1"] { color: var(--farine); }
.pied-maison { border-top-width: 4px; }

/* Carte : un fond un peu plus chaud et des pastilles de prix qui ressortent */
.carte-maison.theme-clair { --nuit: #efe3cf; --braise: #e3d2b8; --cendre: #d3bf9f; }
.carte-maison.theme-clair .carte-collant { background: rgba(239, 227, 207, .96); }
@media (max-width: 759px) {
  .theme-clair .pizza-prix span { background: #dcc6a3; box-shadow: inset 0 0 0 1px rgba(110, 70, 35, .12); }
  .theme-clair .pizza-prix span small { color: #5f4838; }
}

/* =================== Utilitaires (remplacent les styles en ligne) =================== */
.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.m-0 { margin: 0; }
.mt-6 { margin-top: 6px; } .mt-8 { margin-top: 8px; } .mt-10 { margin-top: 10px; } .mt-18 { margin-top: 18px; } .mt-22 { margin-top: 22px; }
.mb-12 { margin-bottom: 12px; } .mb-28 { margin-bottom: 28px; }
.pt-0 { padding-top: 0 !important; } .pt-40 { padding-top: 40px !important; } .pb-40 { padding-bottom: 40px !important; }
.c-farine { color: var(--farine); }
.stack-22 { display: grid; gap: 22px; }
.actions-row { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 10px; }
.n-1 { --n: 1; } .n-2 { --n: 2; } .n-3 { --n: 3; } .n-4 { --n: 4; }
/* Couleur par défaut, sans priorité : la couleur de chaque maison (lieux.css, .c-…) l'emporte toujours. */
:where(.maison-tuile, .univers-carte, .pied-maison, .portrait, .choix-liste a) { --c: #9f1219; }
.ico { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.btn .ico, .barre-actions .ico, .choix-liste .ico { width: 20px; height: 20px; }
.menu-btn .ico { width: 18px; height: 18px; stroke-width: 2; }
/* « Menu » et « Fermer » de la même largeur : le bouton ne change pas de taille à l'ouverture */
.menu-btn { min-width: 122px; justify-content: center; }
.rubrique .ico { position: absolute; right: 14px; width: 18px; height: 18px; pointer-events: none; color: var(--accent); }
.rond .ico { width: 22px; height: 22px; }
img[class*="focus-"] { object-position: 50% 50%; }
.focus-50-20 { object-position: 50% 20%; } .focus-50-30 { object-position: 50% 30%; } .focus-50-40 { object-position: 50% 40%; }

/* Bandeau d'annonce (fermeture exceptionnelle, nouveauté) */
.annonce { position: relative; z-index: 45; background: var(--pomodoro); color: #fff; font-size: .9375rem; }
.annonce .wrap { display: flex; flex-wrap: wrap; gap: 4px 16px; align-items: center; justify-content: center; padding-top: 10px; padding-bottom: 10px; text-align: center; }
.annonce p { font-weight: 700; } .annonce p span { font-weight: 500; opacity: .9; }
.annonce .lien { color: #fff; }
body:has(.annonce) .entete { top: 0; }

/* Étiquettes sur la carte */
.etiquettes { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.etiquette { font-size: .75rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: rgba(110, 70, 35, .1); color: var(--semola); }
.etiquette--vegetarian { background: rgba(70, 120, 60, .14); color: #3f6b33; }
.etiquette--spicy { background: rgba(170, 40, 30, .12); color: #a0261c; }
.etiquette--new { background: var(--accent); color: #fff; }

/* Page maison : fermetures exceptionnelles sous les horaires */
.fermeture { display: flex; gap: 10px; align-items: flex-start; margin-top: 14px; color: var(--semola); }
.fermeture .ico { color: var(--accent); margin-top: 2px; }

/* École : choix de la date */
.commander--deux { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 860px) { .commander--deux { grid-template-columns: 1.2fr 1fr; } }
.ecole-formules--une { grid-template-columns: minmax(0, 1fr) !important; }
.produits-liste--simple li { grid-template-columns: minmax(0, 1fr) !important; }
@media (min-width: 700px) { .produits-liste--simple li { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) !important; } }
.sessions { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: 8px; }
.session { display: block; position: relative; cursor: pointer; }
.session input { position: absolute; opacity: 0; }
.session > span { display: grid; gap: 2px; padding: 12px 14px; border-radius: 14px; border: 1.5px solid #d8cdc2; background: #fff; }
.session b { font-weight: 700; }
.session small { color: #6b5a4e; font-size: .85rem; }
.session input:checked + span { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); background: #fff8f4; }
.session input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.session--complet { opacity: .5; cursor: not-allowed; }

/* Pages simples (mentions, erreurs) */
.page-simple { padding: 160px 0 100px; min-height: 70vh; }
.texte-long { max-width: 44em; margin-top: 40px; display: grid; gap: 14px; }
.texte-long h2 { margin-top: 18px; }
.texte-long p { color: var(--semola); }
.ecole-photos figure:first-child { grid-row: 1 / span 2; }

/* =================== 404 : Novito, la pizza perdue =================== */
.perdu { padding: 130px 0 0; }
.perdu-grille { display: grid; gap: 30px; align-items: center; min-height: 64vh; }
@media (min-width: 900px) { .perdu-grille { grid-template-columns: 1fr 1.1fr; gap: 60px; } }
.mascotte svg { width: min(100%, 420px); height: auto; display: block; margin: 0 auto; overflow: visible; }
.mascotte .ombre { fill: rgba(0, 0, 0, .35); }
.mascotte .croute { fill: #d9a35e; stroke: #8a5a2b; stroke-width: 4; stroke-linejoin: round; }
.mascotte .sauce { fill: #c0392b; }
.mascotte .peperoni { fill: #8e1d1d; }
.mascotte .basilic { fill: #6a9a4a; }
.mascotte .oeil { fill: #fff; stroke: #2a1c15; stroke-width: 3; }
.mascotte .reflet { fill: #2a1c15; }
.mascotte .bouche { fill: none; stroke: #2a1c15; stroke-width: 4; stroke-linecap: round; }
.mascotte .bouche-o { fill: #5a1414; stroke: #2a1c15; stroke-width: 3; opacity: 0; }
.mascotte .jambe, .mascotte .bras { fill: none; stroke: #8a5a2b; stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; } /* brun : visibles sur le papier */
.mascotte .ombre { fill: rgba(90, 60, 35, .22); }
.mascotte .plan { fill: #f4ebdd; stroke: #8a5a2b; stroke-width: 3; stroke-linejoin: round; }
.mascotte .plan-pli { stroke: #c9b394; stroke-width: 2; fill: none; }
.mascotte .plan-route { fill: none; stroke: #9f1219; stroke-width: 3; stroke-dasharray: 4 5; stroke-linecap: round; }
.mascotte .plan-croix { fill: #9f1219; }
/* bulle claire, bord brun, texte foncé : lisible sur le papier (elle était foncée sur foncé) */
.mascotte .bulle path { fill: #fffaf2; stroke: #8a5a2b; stroke-width: 2.5; stroke-linejoin: round; }
.mascotte .bulle text { font: 700 20px var(--main, cursive); fill: #9f1219; text-anchor: middle; }
.mascotte .pizza-volante .croute { stroke-width: 3; }
.mascotte .pizza-volante .part { fill: none; stroke: #8a5a2b; stroke-width: 1.2; opacity: .5; }
@media (prefers-reduced-motion: no-preference) {
  .mascotte .novito { transform-origin: 130px 210px; animation: dandine 2.4s ease-in-out infinite; }
  .mascotte .jambe { animation: pas .6s ease-in-out infinite alternate; transform-origin: 108px 196px; }
  .mascotte .jambe--droite { animation-delay: .3s; transform-origin: 150px 196px; }
  .mascotte .carte-pliee { transform-origin: 56px 160px; animation: cherche 3.2s ease-in-out infinite; }
  /* Novito, poussé au bout : il marche, cligne des yeux, suit la pizza du regard, dit « Miam ? » bouche ouverte,
     et saute quand on le survole ou qu'on le touche (tout s'arrête si l'appareil demande moins d'animations) */
  .mascotte .bulle { animation: bulle 4s ease-in-out infinite; transform-origin: 196px 74px; }
  .mascotte .novito-marche { animation: marche 8s ease-in-out infinite; }
  .mascotte .jambe { animation-duration: .4s; }
  .mascotte .cligne { transform-box: fill-box; transform-origin: center; animation: cligne 5s infinite; }
  .mascotte .pupilles { animation: regarde 4s ease-in-out infinite; }
  .mascotte .bouche { animation: sourit 4s infinite; }
  .mascotte .bouche-o { transform-box: fill-box; transform-origin: center; animation: miam 4s infinite; }
  .mascotte:hover .novito-saut, .mascotte:active .novito-saut { animation: saute .8s ease-out; }
  .mascotte:hover .ombre, .mascotte:active .ombre { transform-box: fill-box; transform-origin: center; animation: ombre-saut .8s ease-out; }
  @keyframes marche { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-22px); } 50% { transform: translateX(0); } 75% { transform: translateX(22px); } }
  @keyframes cligne { 0%, 44%, 50%, 90%, 100% { transform: scaleY(1); } 47%, 93% { transform: scaleY(.08); } }
  @keyframes regarde { 0%, 100% { transform: translate(0, 0); } 12%, 34% { transform: translate(-3px, -3px); } 46%, 62% { transform: translate(3px, -1px); } 74% { transform: translate(0, 1px); } }
  @keyframes sourit { 0%, 8%, 32%, 100% { opacity: 1; } 10%, 30% { opacity: 0; } }
  @keyframes miam { 0%, 8%, 32%, 100% { opacity: 0; transform: scale(.4); } 10%, 18%, 26% { opacity: 1; transform: scale(1); } 14%, 22% { opacity: 1; transform: scale(.7, .55); } }
  @keyframes saute { 0% { transform: translateY(0); } 30% { transform: translateY(-34px) rotate(-8deg); } 55% { transform: translateY(0) rotate(0); } 70% { transform: translateY(-9px); } 85%, 100% { transform: translateY(0); } }
  @keyframes ombre-saut { 0%, 55%, 85%, 100% { transform: scale(1); opacity: 1; } 30% { transform: scale(.6); opacity: .5; } 70% { transform: scale(.88); } }
  /* un lancer de pâte : la pizza monte en tournant, retombe, se pose, puis recommence
     (une rotation continue ressemblait à une icône de chargement : la page semblait ne jamais finir) */
  .mascotte .pizza-tourne { transform-box: fill-box; transform-origin: center; animation: tourne 3.6s ease-in-out infinite; }
  .mascotte .pizza-volante { animation: lance 3.6s infinite; }
  @keyframes tourne { 0%, 8% { transform: rotate(0); } 46%, 100% { transform: rotate(540deg); } }
  @keyframes lance { 0%, 8% { transform: translateY(14px); animation-timing-function: cubic-bezier(.2, .7, .4, 1); } 27% { transform: translateY(-26px); animation-timing-function: cubic-bezier(.6, 0, .8, .4); } 46%, 100% { transform: translateY(14px); } }
  @keyframes dandine { 0%, 100% { transform: rotate(-3deg); } 50% { transform: rotate(3deg) translateY(-4px); } }
  @keyframes pas { to { transform: rotate(12deg); } }
  @keyframes cherche { 0%, 100% { transform: rotate(0); } 40% { transform: rotate(-10deg); } 60% { transform: rotate(6deg); } }
  @keyframes bulle { 0%, 4% { opacity: 0; transform: scale(.6); } 10%, 58% { opacity: 1; transform: scale(1); } 66%, 100% { opacity: 0; transform: scale(.85); } }
}
/* « Réduire les animations » demandé par l'appareil : Novito reste en place, mais cligne des yeux, regarde autour de lui
   et dit « Miam ? » (rien ne bouge à l'écran, seulement des apparitions) */
@media (prefers-reduced-motion: reduce) {
  .mascotte .cligne { transform-box: fill-box; transform-origin: center; animation: cligne 5s infinite; }
  .mascotte .pupilles { animation: regarde 4s ease-in-out infinite; }
  .mascotte .bouche { animation: sourit 4s infinite; }
  .mascotte .bouche-o { animation: miam-doux 4s infinite; }
  .mascotte .bulle { animation: bulle-doux 4s ease-in-out infinite; }
  @keyframes cligne { 0%, 44%, 50%, 90%, 100% { transform: scaleY(1); } 47%, 93% { transform: scaleY(.08); } }
  @keyframes regarde { 0%, 100% { transform: translate(0, 0); } 12%, 34% { transform: translate(-3px, -3px); } 46%, 62% { transform: translate(3px, -1px); } 74% { transform: translate(0, 1px); } }
  @keyframes sourit { 0%, 8%, 32%, 100% { opacity: 1; } 10%, 30% { opacity: 0; } }
  @keyframes miam-doux { 0%, 8%, 32%, 100% { opacity: 0; } 10%, 30% { opacity: 1; } }
  @keyframes bulle-doux { 0%, 4%, 66%, 100% { opacity: 0; } 10%, 58% { opacity: 1; } }
}
.envies { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.envie { background: var(--braise); border-radius: 22px; padding: 22px; display: grid; gap: 8px; justify-items: start; }
.envie img { width: 120px; height: 120px; border-radius: 50%; filter: drop-shadow(0 10px 18px rgba(80, 40, 20, .3)); }
.envie h3 { font-size: 1.8rem; }
.envie p { color: var(--semola); font-size: .95rem; }
.envies-maisons { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.envies-maisons .btn { border-color: var(--c); }
.perdu .display { font-size: clamp(3rem, 6.4vw, 5.6rem); }

/* Fermeture exceptionnelle du jour */
.ferme-jour { display: flex; align-items: center; gap: 10px; margin-top: 18px; padding: 12px 16px; border-radius: 14px; background: rgba(159, 18, 25, .92); color: #fff; font-weight: 700; width: fit-content; }
.ferme-jour .ico { width: 20px; height: 20px; }

/* Un seul produit à l'honneur : l'ardoise prend toute la largeur */
@media (min-width: 900px) {
  .moments--seul { grid-template-columns: minmax(0, 1fr); }
  .moments--seul .moment { grid-template-columns: 170px minmax(0, 1fr); padding: 24px 32px 24px 24px; }
  .moments--seul .moment img { width: 170px; height: 170px; }
  .moments--seul .moment-desc { font-size: 1.05rem; max-width: 46em; }
}
.etiquette { display: inline-flex; align-items: center; gap: 4px; }
.etiquette .ico--tag { width: 12px; height: 12px; stroke-width: 2; }

/* ---------- Fiche d'un produit (toucher la photo) ---------- */
button.pizza-photo { border: 0; padding: 0; background: none; cursor: zoom-in; border-radius: 50%; transition: transform .25s ease; }
button.pizza-photo:hover { transform: rotate(-8deg) scale(1.04); }
button.pizza-photo:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
dialog.fiche { --papier: #f4ebdd; --encre-fiche: #2a1c15; border: 0; padding: 0; width: 100%; max-width: 560px; margin: auto auto 0; overflow: visible; background: transparent; color: var(--encre-fiche); }
dialog.fiche::backdrop { background: rgba(20, 12, 8, .62); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.fiche-in { position: relative; margin-top: 150px; padding: 150px 24px calc(28px + env(safe-area-inset-bottom)); border-radius: 28px 28px 0 0; background: var(--papier); box-shadow: 0 -10px 40px rgba(0, 0, 0, .25); }
.fiche-photo { position: absolute; left: 50%; top: -140px; width: 280px; aspect-ratio: 1; margin: 0; transform: translateX(-50%); }
.fiche-photo img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; box-shadow: 0 22px 40px rgba(40, 20, 8, .45), 0 0 0 6px var(--papier); }
dialog.fiche[open] .fiche-photo img { animation: poser .7s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes poser { from { transform: rotate(-70deg) scale(.7); opacity: 0; } to { transform: none; opacity: 1; } }
.fiche-fermer { position: absolute; right: 14px; top: 164px; z-index: 2; width: 40px; height: 40px; border: 0; border-radius: 50%; display: grid; place-items: center; background: rgba(42, 28, 21, .08); color: var(--encre-fiche); cursor: pointer; }
.fiche-fermer .ico { width: 18px; height: 18px; }
.fiche-txt { text-align: center; }
.fiche-rubrique { margin: 0; font-size: .8125rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.fiche-txt h2 { margin: 6px 0 4px; font-family: var(--main, "Caveat"), cursive; font-size: 2.6rem; line-height: 1; color: var(--encre-fiche); }
.fiche-etiquettes { margin: 0 0 10px; font-size: .875rem; font-weight: 600; color: #6b4c38; }
.fiche-desc { margin: 0 auto 18px; max-width: 34ch; font-size: 1.0625rem; line-height: 1.5; color: #4a3326; }
.fiche-tailles { display: flex; justify-content: center; align-items: flex-end; gap: 18px; margin-bottom: 14px; }
.fiche-tailles .taille { display: grid; justify-items: center; gap: 4px; }
.fiche-tailles .taille i { display: grid; place-items: center; width: calc(var(--k, 1) * 80px); aspect-ratio: 1; border-radius: 50%; font-style: normal; font-size: .75rem; font-weight: 700; color: #6b4c38; white-space: nowrap; background: radial-gradient(circle at 50% 50%, #f6e3c4 0 58%, #e9c592 59% 100%); box-shadow: inset 0 0 0 1px rgba(107, 76, 56, .18); }
.fiche-tailles small { font-size: .75rem; font-weight: 600; color: #6b4c38; }
.fiche-tailles b { font-size: 1.125rem; }
/* « Ma commande » depuis la fiche : chaque taille s'ajoute ; nombre en haut à droite du cercle, « − » en bas à gauche */
.fiche-tailles .taille { position: relative; }
.taille-corps { display: grid; justify-items: center; gap: 4px; padding: 0; border: 0; background: none; color: inherit; font: inherit; }
button.taille-corps { cursor: pointer; -webkit-tap-highlight-color: transparent; }
.fiche-tailles .taille i { position: relative; }
.taille-compte { position: absolute; top: -8px; right: -12px; min-width: 24px; height: 24px; padding: 0 5px; border-radius: 999px; display: grid; place-items: center; font-style: normal; font-size: .8125rem; font-weight: 800; line-height: 1; background: var(--encre-fiche); color: var(--papier); box-shadow: 0 0 0 2px var(--papier); }
.fiche-tailles .taille.choisie i { box-shadow: inset 0 0 0 3px var(--accent); }
.taille.choisie .taille-compte { background: var(--accent); color: #fff; }
.taille-moins { position: absolute; left: calc(50% - var(--k, 1) * 40px - 6px); top: calc(var(--k, 1) * 80px - 22px); width: 26px; height: 26px; padding: 0; border: 0; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--accent); font: inherit; font-size: 1.125rem; font-weight: 800; line-height: 1; box-shadow: 0 0 0 2px var(--papier), 0 2px 6px rgba(40, 20, 8, .25); cursor: pointer; }
.taille-moins::before { content: ""; position: absolute; inset: -8px; }
button.taille-corps:focus-visible, .taille-moins:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 12px; }
.fiche-astuce { margin: -4px 0 12px; font-size: .875rem; font-weight: 600; color: #6b4c38; }
.fiche-allergenes { margin: 0; font-size: .8125rem; color: #6b4c38; }
@media (min-width: 900px) {
  dialog.fiche { max-width: 860px; margin: auto; }
  .fiche-in { display: grid; grid-template-columns: 380px 1fr; align-items: center; gap: 36px; margin-top: 0; padding: 44px 48px 44px 40px; border-radius: 28px; }
  .fiche-photo { position: static; width: 100%; transform: none; }
  .fiche-txt { text-align: left; }
  .fiche-desc { margin-left: 0; }
  .fiche-tailles { justify-content: flex-start; }
  .fiche-fermer { top: 14px; }
}
@media (prefers-reduced-motion: reduce) { dialog.fiche[open] .fiche-photo img { animation: none; } button.pizza-photo:hover { transform: none; } }

/* ---------- Texte associé à chaque slogan (défile avec lui) ---------- */
.heros-leads { display: grid; }
.heros-leads .heros-lead { grid-area: 1 / 1; opacity: 0; transform: translateY(6px); transition: opacity .6s ease .15s, transform .6s ease .15s; }
@media (prefers-reduced-motion: reduce) { .heros-leads .heros-lead { transform: none; transition: opacity .6s ease .15s; } }
.heros-leads .heros-lead.actif { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .heros-leads .heros-lead { transition: none; transform: none; } }


/* ---------- Distributeurs : ce qu'il y a dedans ---------- */
.distrib-contenu { margin: 4px 0 12px; border-top: 1px solid var(--cendre); }
.distrib-contenu summary { list-style: none; cursor: pointer; padding: 10px 0 6px; font-weight: 700; font-size: .9375rem; display: flex; align-items: center; justify-content: space-between; }
.distrib-contenu summary::-webkit-details-marker { display: none; }
.distrib-contenu summary::after { content: "+"; font-size: 1.25rem; line-height: 1; color: var(--accent); transition: transform .2s; }
.distrib-contenu[open] summary::after { transform: rotate(45deg); }
.distrib-contenu ul { list-style: none; margin: 0; padding: 0; }
.distrib-contenu li { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px dashed var(--cendre); font-size: .9375rem; }
.distrib-contenu li b small { font-weight: 400; opacity: .7; }
.distrib-contenu .muted { font-size: .8125rem; margin: 8px 0 0; }

/* ---------- Pages par secteur (Pizzeria à …, communes) ---------- */
.secteur-haut { padding-bottom: 40px; min-height: 0; }
.secteur-haut .lead { max-width: 42em; }
.secteur-maison { max-width: 560px; margin-top: 32px; }
.secteur-texte { max-width: 42em; margin-top: 24px; color: var(--semola); }
.secteur-distrib { max-width: 560px; }
.secteur-faq details { border-top: 1px solid var(--cendre); padding: 16px 0; max-width: 46em; }
.secteur-faq details:last-child { border-bottom: 1px solid var(--cendre); }
.secteur-faq summary { cursor: pointer; font-weight: 700; font-size: 1.0625rem; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.secteur-faq summary::-webkit-details-marker { display: none; }
.secteur-faq summary::after { content: "+"; color: var(--accent); font-size: 1.4rem; line-height: 1; transition: transform .2s; }
.secteur-faq details[open] summary::after { transform: rotate(45deg); }
.secteur-faq details p { margin: 10px 0 0; color: var(--semola); }
.secteur-autres { display: flex; flex-wrap: wrap; gap: 10px; }
.secteur-groupes { display: grid; gap: 18px; }
@media (min-width: 900px) { .secteur-groupes { grid-template-columns: 1fr 1fr; } }
.secteur-communes { color: var(--semola); margin-top: 6px; }
.pied-secteurs { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: baseline; padding: 18px 0 0; font-size: .875rem; }
.pied-secteurs b { font-weight: 700; }

/* ---------- On parle de nous ---------- */
.mentions { display: grid; gap: 16px; }
@media (min-width: 760px) { .mentions { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); } }
.mention { display: grid; gap: 8px; align-content: start; text-align: left; font: inherit; color: inherit; padding: 0 0 18px; border: 1px solid var(--cendre); border-radius: 20px; background: var(--braise); overflow: hidden; cursor: pointer; transition: transform .2s, border-color .2s; }
.mention:hover { transform: translateY(-2px); border-color: var(--accent); }
.mention > :not(.mention-photo) { margin: 0 18px; }
.mention-photo { display: block; aspect-ratio: 16 / 9; overflow: hidden; margin-bottom: 6px; }
.mention-photo img { width: 100%; height: 100%; object-fit: cover; }
.mention-source { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px !important; font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); }
.mention-photo + .mention-source { margin-top: 4px !important; }
.mention-source .ico { width: 15px; height: 15px; }
.mention b { font-size: 1.0625rem; line-height: 1.3; }
.mention-texte { color: var(--semola); font-size: .9375rem; line-height: 1.5; }
.mention small { color: var(--sourdine); font-size: .8125rem; }
dialog.lecture { --papier: #f4ebdd; border: 0; padding: 0; width: min(640px, calc(100% - 24px)); max-height: calc(100% - 48px); border-radius: 26px; background: var(--papier); color: #2a1c15; overflow: auto; }
dialog.lecture::backdrop { background: rgba(20, 12, 8, .62); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
dialog.lecture .fiche-fermer { top: 14px; background: rgba(255, 255, 255, .85); }
.lecture-photo { margin: 0; aspect-ratio: 16 / 9; overflow: hidden; }
.lecture-photo img { width: 100%; height: 100%; object-fit: cover; }
.lecture-txt { padding: 24px 28px 28px; display: grid; gap: 10px; }
.lecture-txt h2 { margin: 0; font-size: 1.5rem; line-height: 1.2; }
.lecture-texte { margin: 0; line-height: 1.6; color: #4a3326; white-space: pre-line; }
.lecture-ligne { margin: 0; font-size: .875rem; color: #6b4c38; }
.lecture-txt .btn { justify-self: start; margin-top: 6px; color: #2a1c15; border-color: rgba(42, 28, 21, .35); }

/* ---------- Ardoise : pierre, craie effacée, cadre en bois, rebord et bâton de craie ---------- */
.theme-clair .moment, .moment {
  --craie: #f1eee6;
  --grain-craie: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='c'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.4' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 -1.4 1.1'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23c)'/%3E%3C/svg%3E");
  position: relative;
  margin-bottom: 18px;
  border: 13px solid transparent;
  border-radius: 12px;
  background:
    /* craie effacée : traînées et nuages laissés par le chiffon */
    radial-gradient(42% 30% at 22% 28%, rgba(235, 240, 236, .085), transparent 72%) padding-box,
    radial-gradient(38% 34% at 74% 68%, rgba(235, 240, 236, .07), transparent 70%) padding-box,
    radial-gradient(26% 18% at 58% 18%, rgba(235, 240, 236, .05), transparent 70%) padding-box,
    repeating-linear-gradient(-14deg, rgba(255, 255, 255, 0) 0 46px, rgba(255, 255, 255, .022) 46px 64px, rgba(255, 255, 255, 0) 64px 120px) padding-box,
    /* grain de la pierre */
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='s'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .8 0 0 0 0 .86 0 0 0 0 .9 0 0 0 .11 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23s)'/%3E%3C/svg%3E") padding-box,
    linear-gradient(160deg, #2c3436 0%, #22292b 55%, #1d2325 100%) padding-box,
    /* cadre en bois veiné */
    repeating-linear-gradient(90deg, rgba(0, 0, 0, .12) 0 2px, transparent 2px 7px, rgba(255, 220, 180, .06) 7px 8px, transparent 8px 13px) border-box,
    linear-gradient(180deg, #8a5d3b 0%, #6b4429 45%, #5a3820 100%) border-box;
  box-shadow:
    inset 0 0 0 1px rgba(0, 0, 0, .55),
    inset 0 0 38px rgba(0, 0, 0, .55),
    0 1px 0 rgba(255, 230, 200, .25),
    0 22px 38px -20px rgba(40, 20, 8, .75);
  color: var(--craie);
}
/* rebord en bois et bâton de craie */
.moment::after {
  content: "";
  position: absolute; left: 8%; right: 8%; bottom: -24px; height: 11px;
  border-radius: 2px 2px 5px 5px;
  background:
    linear-gradient(90deg, transparent 14%, #f4f1ea 14%, #f4f1ea calc(14% + 34px), transparent calc(14% + 34px)) 0 1px / 100% 5px no-repeat,
    linear-gradient(180deg, #7c5234, #4f311c);
  box-shadow: 0 6px 10px -4px rgba(40, 20, 8, .6);
}
/* lettres à la craie */
.theme-clair .moment h3, .moment h3,
.theme-clair .moment-label, .moment-label {
  background: var(--grain-craie), var(--craie);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 1px rgba(241, 238, 230, .25);
}
.theme-clair .moment-label, .moment-label { background: var(--grain-craie), #f0cf6e; -webkit-background-clip: text; background-clip: text; }
/* trait de craie sous le nom */
.moment h3::after {
  content: ""; display: block; width: 88px; height: 8px; margin-top: 4px; opacity: .55;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 88 8'%3E%3Cpath d='M2 5c14-3 30-4 46-2 12 1 24 1 38-2' fill='none' stroke='%23f1eee6' stroke-width='2.4' stroke-linecap='round' stroke-dasharray='30 3 18 2 40'/%3E%3C/svg%3E") no-repeat;
}
.theme-clair .moment-desc, .moment-desc { color: rgba(241, 238, 230, .82); }
.moment img { box-shadow: 0 0 0 3px rgba(241, 238, 230, .14); border-radius: 50%; }
@supports not ((-webkit-background-clip: text) or (background-clip: text)) {
  .moment h3, .moment-label { -webkit-text-fill-color: currentColor; }
}

/* Téléphone : la légende de la photo des produits ne doit pas toucher le trait du premier ingrédient */
@media (max-width: 979px) {
  .produits { gap: 26px; }
  .produits-photo img { height: auto; }
}

/* Piège à robots du formulaire : hors de l'écran, jamais vu ni rempli par les visiteurs */
.piege { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Distributeurs : la photo de chaque machine ---------- */
.distrib-photo { margin: -4px -4px 14px; aspect-ratio: 4 / 3; border-radius: 16px; overflow: hidden; background: var(--braise); }
.distrib-photo img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Distributeurs : grille équilibrée quel que soit leur nombre ---------- */
/* Tablette (2 colonnes) : un dernier distributeur seul prend toute la largeur */
@media (min-width: 700px) and (max-width: 1099px) {
  .distribs > .distrib-carte:last-child:nth-child(odd) { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 24px; align-content: start; }
  .distribs > .distrib-carte:last-child:nth-child(odd) > * { grid-column: 2; }
  .distribs > .distrib-carte:last-child:nth-child(odd) .distrib-photo { grid-column: 1; grid-row: 1 / span 8; margin: -4px 0 -4px -4px; aspect-ratio: auto; min-height: 240px; }
}
/* Ordinateur : autant de colonnes que de distributeurs (3 → 3 colonnes), 4 au maximum */
@media (min-width: 1100px) {
  .distribs { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
}

/* ---------- Distributeurs : fenêtre « Voir les pizzas » ---------- */
.distrib-actions { flex-wrap: wrap; }
.distrib-pizzas { list-style: none; margin: 18px 0; padding: 0; display: grid; gap: 4px; }
.distrib-pizzas li { display: flex; align-items: center; gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--cendre); }
.distrib-pizzas li:last-child { border-bottom: 0; }
.distrib-pizzas .grow { flex: 1; display: grid; gap: 2px; min-width: 0; }
.distrib-pizzas small { color: var(--semola); font-size: .8125rem; line-height: 1.35; }
.distrib-pizza-photo { width: 56px; height: 56px; flex: none; border-radius: 50%; overflow: hidden; }
.distrib-pizza-photo:empty { background: radial-gradient(circle, rgba(245,241,234,.06) 0 60%, transparent 61%); }
.distrib-pizza-photo img { width: 100%; height: 100%; object-fit: cover; }
.distrib-prix { white-space: nowrap; font-size: 1.0625rem; }
.distrib-prix small { font-weight: 400; opacity: .7; }

/* ---------- Menu du haut : au survol, un trait qui se dessine dans la couleur de la maison ---------- */
.nav a { position: relative; text-decoration: none; }
.nav a:hover, .nav a:focus-visible { color: inherit; }
.nav a[aria-current="page"] { text-decoration: none; }
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 1px; height: 2px; border-radius: 2px;
  background: var(--c, var(--accent));
  transform: scaleX(0); transform-origin: left center;
  transition: transform .32s cubic-bezier(.2, .8, .2, 1);
}
.nav a:hover::after, .nav a:focus-visible::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav a:hover::after { transform-origin: left center; }
@media (prefers-reduced-motion: reduce) { .nav a::after { transition: none; } }

/* ---------- Distributeurs : « Y aller | Plan » en un seul bouton, et « Voir les pizzas » ---------- */
.distrib-actions { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
.btn-double { display: flex; min-width: 0; }
.btn-double .btn { min-width: 0; }
.btn-double .btn:first-child { flex: 1; border-top-right-radius: 0; border-bottom-right-radius: 0; justify-content: center; }
.btn-double .btn:last-child { border-top-left-radius: 0; border-bottom-left-radius: 0; padding-inline: 14px; box-shadow: inset 1px 0 0 rgba(255, 255, 255, .28); }
.btn-double .btn[aria-pressed="true"] { background: color-mix(in srgb, var(--accent) 70%, #000); }
.distrib-actions > .btn { justify-content: center; }
.distribs > .distrib-carte .distrib-actions:has(> :only-child) { grid-template-columns: minmax(0, 1fr); }
/* fenêtre « Voir les pizzas » : centrée sur ordinateur */
@media (min-width: 760px) {
  dialog.distrib-dialogue { margin: auto; border-radius: 26px; max-height: calc(100vh - 64px); }
  .distrib-pizzas { max-height: 52vh; overflow-y: auto; }
}
.btn-double .btn[aria-pressed="true"] { background: #fff; color: var(--accent); box-shadow: inset 0 0 0 1.5px var(--accent); }

/* ---------- Mentions légales ---------- */
.legal-sommaire { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 26px; font-weight: 600; font-size: .9375rem; }
.legal-sommaire a { color: var(--semola); text-underline-offset: 5px; }
.legal-fiche { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px 24px; margin: 4px 0 6px; }
@media (min-width: 700px) { .legal-fiche { grid-template-columns: 240px minmax(0, 1fr); } }
.legal-fiche dt { color: var(--sourdine); font-size: .875rem; padding-top: 8px; }
.legal-fiche dd { margin: 0; padding: 0 0 8px; border-bottom: 1px solid var(--cendre); }
@media (min-width: 700px) { .legal-fiche dt { border-bottom: 1px solid var(--cendre); padding: 8px 0; } .legal-fiche dd { padding: 8px 0; } }
.legal-titre { font-size: 1.0625rem; font-weight: 700; margin-top: 14px; }
.a-completer { color: #e0a24f; font-style: italic; }
.texte-long p b { color: var(--farine); }
/* bouton double : deux moitiés égales */
.btn-double:only-child .btn:first-child, .btn-double:only-child .btn:last-child { flex: 1 1 0; justify-content: center; }
/* message sur le stock : bien visible, sans alarmer */
.distrib-stock { display: flex; gap: 12px; align-items: flex-start; margin: 14px 0 4px; padding: 14px 16px; border-radius: 16px; background: rgba(240, 207, 110, .12); box-shadow: inset 3px 0 0 #f0cf6e; color: var(--farine); font-size: .9375rem; line-height: 1.45; }
.distrib-stock .ico { flex: none; width: 22px; height: 22px; color: #f0cf6e; margin-top: 1px; }
.distrib-stock b { color: #f0cf6e; }



/* Carte d'une maison (thème clair, couleurs inversées) : survol des boutons lisible.
   Le bouton plein fonce un peu et garde son texte blanc ; les autres passent en brun foncé. */
@media (hover: hover) and (pointer: fine) {
  .carte-maison.theme-clair .btn:hover,
  .carte-maison.theme-clair .commande-carte:hover .btn { background: #2a1d16; border-color: #2a1d16; color: #fff; }
  .carte-maison.theme-clair .btn--plein:hover { background: color-mix(in srgb, var(--accent) 78%, #000); border-color: color-mix(in srgb, var(--accent) 78%, #000); color: #fff; }
}

/* Encadrés « La carte à emporter / sur place » : le texte occupe toute la hauteur, le bouton se cale en bas,
   à la même hauteur dans chaque encadré, quelle que soit la longueur du texte. */
.cc-txt { flex: 1; }
.cc-txt .btn { margin-top: auto; }
.cc-txt p { margin-bottom: 8px; }

/* FAQ des pages de ville : le tableau d'horaires, comme sur la page de la maison */
.secteur-faq .horaires { margin-top: 10px; max-width: 34em; font-size: 1rem; }
.secteur-faq .horaires th, .secteur-faq .horaires td { padding: 10px 0; }
.secteur-faq .horaires tr:last-child th, .secteur-faq .horaires tr:last-child td { border-bottom: 0; }

/* ---------- Accueil, cartes des maisons : survol lisible et animé ----------
   Boutons à contour : un fond crème glisse de gauche à droite, le texte prend la couleur de la maison.
   « Voir la carte » : se soulève un peu. « Découvrir la maison » : le trait se retire puis se redessine. */
.univers-carte .univers-lien { text-decoration: none; padding-bottom: 4px; background: linear-gradient(currentColor, currentColor) no-repeat 0 100% / 100% 1.5px; }
@media (hover: hover) and (pointer: fine) {
  .univers-carte .btn { transition: background-size .45s cubic-bezier(.2, .7, .2, 1), color .3s, border-color .3s, transform .3s cubic-bezier(.2, .7, .2, 1), box-shadow .3s; }
  .univers-carte .btn:not(.btn--farine) { background: linear-gradient(var(--farine), var(--farine)) no-repeat 0 0 / 0% 100%; }
  .univers-carte .btn:not(.btn--farine):hover { background: linear-gradient(var(--farine), var(--farine)) no-repeat 0 0 / 100% 100%; border-color: var(--farine); color: var(--c); }
  .univers-carte .btn--farine:hover { background: #fff; border-color: #fff; color: var(--c); transform: translateY(-2px); box-shadow: 0 12px 24px -12px rgba(0, 0, 0, .55); }
  .univers-carte .btn svg { transition: transform .3s cubic-bezier(.2, .7, .2, 1); }
  .univers-carte .btn:hover svg { transform: translateX(-1px) scale(1.08); }
  .univers-carte .univers-lien:hover { color: #fff; animation: trait-redessine .7s cubic-bezier(.6, 0, .2, 1); }
}
@keyframes trait-redessine {
  0% { background-position: 100% 100%; background-size: 100% 1.5px; }
  45% { background-position: 100% 100%; background-size: 0% 1.5px; }
  55% { background-position: 0 100%; background-size: 0% 1.5px; }
  100% { background-position: 0 100%; background-size: 100% 1.5px; }
}

/* Fenêtre « Commander par téléphone » : panneau en bas sur téléphone (sous le pouce),
   fenêtre centrée sur ordinateur et tablette. Apparition douce dans les deux cas. */
@media (min-width: 700px) {
  dialog.choix { margin: auto; border-radius: 26px; box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .6); }
  .choix-in { padding: 28px 28px 24px; }
}
@media (prefers-reduced-motion: no-preference) {
  dialog.choix[open] { animation: choix-arrive .32s cubic-bezier(.2, .8, .2, 1); }
  dialog.choix[open]::backdrop { animation: choix-fond .3s ease; }
}
@keyframes choix-arrive { from { opacity: 0; transform: translateY(18px) scale(.98); } }
@keyframes choix-fond { from { opacity: 0; } }

/* ---------- Statut d'une maison + volet « Horaires » (semaine type, dépliée dans la carte) ---------- */
.semaine > summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 10px; cursor: pointer; }
.semaine > summary::-webkit-details-marker { display: none; }
.semaine > summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 6px; }
.semaine-voir { display: inline-flex; align-items: center; gap: 4px; flex: none; font-size: .8125rem; font-weight: 700; color: var(--farine); opacity: .85; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.semaine-voir svg { width: 14px; height: 14px; transition: transform .2s ease; }
.semaine[open] .semaine-voir svg { transform: rotate(180deg); }
.semaine-corps { margin-top: 12px; padding-top: 4px; border-top: 1px solid rgba(245, 241, 234, .1); }
/* Trois colonnes alignées sur toutes les lignes : jour, midi, soir */
.semaine-grille { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; column-gap: 14px; font-size: .875rem; font-variant-numeric: tabular-nums; }
.semaine-grille .jour { display: grid; grid-column: 1 / -1; grid-template-columns: subgrid; align-items: baseline; padding: 6px 0; border-bottom: 1px solid rgba(245, 241, 234, .06); }
.semaine-grille .jour:last-child { border-bottom: 0; }
.semaine-grille .j { font-weight: 600; color: var(--farine); }
.semaine-grille .h { justify-self: end; white-space: nowrap; color: var(--semola); }
.semaine-grille .h--plein { grid-column: 2 / -1; }
.semaine-grille .is-closed .h { color: var(--sourdine); }
.semaine-grille .is-today .j { display: inline-flex; align-items: center; gap: 7px; font-weight: 800; }
.semaine-grille .is-today .j::after { content: "aujourd'hui"; font-size: .6875rem; font-weight: 700; color: #fff; background: var(--accent); border-radius: 999px; padding: 1px 7px; }
.semaine-grille .is-today .h { color: var(--farine); font-weight: 600; }
.semaine-note { display: flex; gap: 8px; align-items: flex-start; margin: 10px 0 0; font-size: .8125rem; line-height: 1.4; color: var(--note-fermeture, #8a3f06); font-weight: 600; } /* brun-orangé sur le papier, ocre clair dans les zones sombres */
.semaine-note svg { width: 15px; height: 15px; flex: none; margin-top: 1px; }
@media (prefers-reduced-motion: no-preference) {
  .semaine[open] .semaine-corps { animation: semaine-ouvre .25s cubic-bezier(.2, .8, .2, 1); }
}
@keyframes semaine-ouvre { from { opacity: 0; transform: translateY(-4px); } }
/* Accueil : les cartes gardent chacune leur hauteur quand une s'ouvre */
.maisons-tuiles { align-items: start; }
/* Haut de la page d'une maison : volet sur toute la ligne, largeur limitée */
.heros-infos .semaine[open] { flex-basis: 100%; }
.heros-infos .semaine .semaine-corps { max-width: 420px; }
.heros-infos .semaine > summary { justify-content: flex-start; gap: 16px; }
/* Fenêtres « Commander / La carte / Itinéraire » : volet sous chaque maison */
.choix-item { display: grid; gap: 0; }
.choix-item .semaine--seule { padding: 8px 18px 4px; }
.choix-item .semaine--seule .semaine-voir { opacity: .7; font-weight: 600; }
.choix-item .semaine-corps { margin-top: 8px; }
.choix-item > div { --accent: var(--c); }

/* Cartes étroites (accueil, pages des villes) : point de couleur au lieu de la pastille « aujourd'hui », colonnes serrées */
.maison-tuile .semaine-grille { column-gap: 10px; font-size: .8125rem; }
.maison-tuile .semaine-grille .is-today .j::after { content: none; }
.maison-tuile .semaine-grille .is-today .j::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex: none; }

/* ---------- Haut de page plus lumineux et plus chaleureux ----------
   Voile couleur braise (plus de noir), photo un peu éclaircie, lueur ambrée du four en bas à gauche,
   et une phrase manuscrite au-dessus du slogan : la touche artisanale, sans surcharger. */
.heros-photo img { filter: brightness(1.08) saturate(1.06); }
.heros-photo::after { background:
  radial-gradient(110% 60% at 12% 100%, rgba(214, 122, 44, .2), rgba(214, 122, 44, 0) 62%),
  linear-gradient(180deg, rgba(40, 24, 15, .35) 0%, rgba(40, 24, 15, 0) 20%, rgba(40, 24, 15, 0) 42%, rgba(33, 21, 14, .78) 76%, var(--nuit) 100%); }
.heros-accueil .heros-photo::after { background:
  radial-gradient(110% 60% at 12% 100%, rgba(214, 122, 44, .22), rgba(214, 122, 44, 0) 62%),
  linear-gradient(90deg, rgba(40, 24, 15, .58) 0%, rgba(40, 24, 15, .2) 45%, rgba(40, 24, 15, 0) 70%),
  linear-gradient(180deg, rgba(40, 24, 15, .35) 0%, rgba(40, 24, 15, 0) 18%, rgba(40, 24, 15, 0) 50%, rgba(33, 21, 14, .74) 82%, var(--nuit) 100%); }
.heros-maison .heros-photo::after { background:
  radial-gradient(110% 60% at 12% 100%, rgba(214, 122, 44, .2), rgba(214, 122, 44, 0) 62%),
  linear-gradient(180deg, rgba(40, 24, 15, .4) 0%, rgba(40, 24, 15, 0) 26%, rgba(40, 24, 15, .08) 45%, rgba(33, 21, 14, .8) 78%, var(--nuit) 100%); }
@media (max-width: 760px) {
  .heros-photo::after, .heros-accueil .heros-photo::after, .heros-maison .heros-photo::after {
    background: linear-gradient(180deg, rgba(40, 24, 15, .32) 0%, rgba(40, 24, 15, 0) 22%, rgba(40, 24, 15, 0) 58%, var(--nuit) 100%); }
}
.heros-main { margin: 0 0 8px; font-family: var(--main); font-weight: 700; font-size: clamp(1.6rem, 2.4vw, 2.15rem); line-height: 1; color: #f3c98c; transform: rotate(-2deg); transform-origin: left center; text-shadow: 0 2px 16px rgba(0, 0, 0, .45); }

/* Galerie à trois photos : une grande, deux petites l'une sous l'autre */
@media (min-width: 900px) { .galerie--3 { grid-template-columns: 2fr 1fr; } .galerie--3 figure:not(:first-child) { aspect-ratio: 4 / 3; } }
/* La grande photo de la galerie suit la hauteur des petites (elle ne l'impose plus) */
@media (min-width: 900px) {
  .galerie figure:first-child { position: relative; min-height: 0; }
  .galerie figure:first-child img { position: absolute; inset: 0; }
}

/* =================== MODE CLAIR : le papier partout, la photo garde son texte blanc ===================
   Les couleurs de base deviennent celles du papier ; les grandes photos du haut (héros) et
   l'en-tête restent sur fond sombre pour que le texte blanc reste lisible. */
:root {
  --nuit: #f4ebdd; --braise: #ebdfcc; --cendre: #d8c8b0;
  --farine: #2a1c15; --semola: #5b483c; --sourdine: #6a5646; /* contraste 4,5:1 sur les papiers */
}
body { background-color: var(--nuit); background-image: var(--grain-papier); color: var(--farine); }
/* zones qui restent sombres : photos du haut, en-tête, fenêtres, barre du bas, fiche produit */
.heros, .entete, dialog.choix, .barre, .feuille, .moment, .univers-carte, .commande-appel, .option--accent {
  --nuit: #221813; --braise: #30231b; --cendre: #4b392e;
  --farine: #f5f1ea; --semola: #e2d7c9; --sourdine: #bcad9c;
  --note-fermeture: #f0b35a;
}
.heros { background-color: #221813; color: var(--farine); }
.entete { color: var(--farine); }

/* ---------- Frise de faïence : la transition entre la photo du haut et la page, comme le bas d'un mur carrelé ----------
   Carreau dessiné en SVG (terre cuite, ocre, bleu de majolique sur fond crème), petit et répété. */
:root {
  --faience: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 48 48'%3E%3Crect width='48' height='48' fill='%23f3e6d0'/%3E%3Cg fill='%23355d80'%3E%3Ccircle r='13'/%3E%3Ccircle cx='48' r='13'/%3E%3Ccircle cy='48' r='13'/%3E%3Ccircle cx='48' cy='48' r='13'/%3E%3C/g%3E%3Cg fill='%23f3e6d0'%3E%3Ccircle r='8.5'/%3E%3Ccircle cx='48' r='8.5'/%3E%3Ccircle cy='48' r='8.5'/%3E%3Ccircle cx='48' cy='48' r='8.5'/%3E%3C/g%3E%3Cg fill='%23355d80'%3E%3Ccircle r='4'/%3E%3Ccircle cx='48' r='4'/%3E%3Ccircle cy='48' r='4'/%3E%3Ccircle cx='48' cy='48' r='4'/%3E%3C/g%3E%3Ccircle cx='24' cy='24' r='12.5' fill='none' stroke='%23d9a640' stroke-width='1.6'/%3E%3Cpath d='M24 12.5C26.3 18.6 29.4 21.7 35.5 24 29.4 26.3 26.3 29.4 24 35.5 21.7 29.4 18.6 26.3 12.5 24 18.6 21.7 21.7 18.6 24 12.5Z' fill='%23bb5a30'/%3E%3Ccircle cx='24' cy='24' r='3.4' fill='%23f3e6d0'/%3E%3Ccircle cx='24' cy='24' r='1.8' fill='%23d9a640'/%3E%3Cg fill='%237a9a6a'%3E%3Cpath d='M24 1.5c1.6 2.4 1.6 4.6 0 7-1.6-2.4-1.6-4.6 0-7Z'/%3E%3Cpath d='M24 39.5c1.6 2.4 1.6 4.6 0 7-1.6-2.4-1.6-4.6 0-7Z'/%3E%3Cpath d='M1.5 24c2.4-1.6 4.6-1.6 7 0-2.4 1.6-4.6 1.6-7 0Z'/%3E%3Cpath d='M39.5 24c2.4-1.6 4.6-1.6 7 0-2.4 1.6-4.6 1.6-7 0Z'/%3E%3C/g%3E%3Crect x='.5' y='.5' width='47' height='47' fill='none' stroke='%23dcc7a6'/%3E%3C/svg%3E");
}
.heros::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; height: 36px;
  background: var(--faience) center 0 / 36px 36px repeat-x;
  box-shadow: 0 -4px 0 #9f1219, 0 -6px 0 #f3e6d0;
}

/* Pages sans grande photo (mentions, villes, école, page introuvable) : en-tête en barre pleine, sans dégradé qui bave */
body:not(:has(.heros)) .entete { background: #221813; }
body:not(:has(.heros)) .entete::before { display: none; }
/* Carte de la maison la plus proche (pages des villes) : carte claire sur le papier */
.secteur-maison, .secteur-groupes .maison-tuile { background: var(--braise); border-color: var(--cendre); -webkit-backdrop-filter: none; backdrop-filter: none; }
/* Téléphone : sous la photo, le haut de page passe en papier (texte foncé, cartes des maisons claires) */
@media (max-width: 760px) {
  .heros {
    --nuit: #f4ebdd; --braise: #ebdfcc; --cendre: #d8c8b0;
    --farine: #2a1c15; --semola: #5b483c; --sourdine: #6a5646; /* contraste 4,5:1 sur les papiers */
    background-color: var(--nuit); background-image: var(--grain-papier);
  }
  .heros .maison-tuile { background: var(--braise); border-color: var(--cendre); -webkit-backdrop-filter: none; backdrop-filter: none; }
  /* jours de fermeture : l'ocre clair se perdait dans le beige ; brun-orangé foncé, en gras */
  .heros { --note-fermeture: #8a3f06; }
  .heros-main { color: #fff; }
  .heros-lead { color: var(--semola); text-shadow: none; }
}
/* Téléphone, haut de page sur papier : barres de progression des phrases visibles */
@media (max-width: 760px) {
  .slogan-progres span { background: rgba(42, 28, 21, .16); }
  .slogan-progres span::after { background: var(--accent); }
}
/* Téléphone : de l'air entre le bas du haut de page et la frise de faïence */
@media (max-width: 760px) {
  .heros-maison .heros-texte { padding-bottom: 76px; }
  .heros-accueil .maisons-tuiles { padding-bottom: 68px; }
}
/* Mode clair : les anciennes sections « claires » (équipe, inscription à l'école) prennent la couleur normale du texte */
.section--claire { color: var(--farine); }
/* Portrait sans photo : une tuile dans la couleur de la maison, l'initiale en crème (lisible sur le papier) */
.portrait-photo:not(:has(img)) { background: radial-gradient(120% 90% at 30% 20%, color-mix(in srgb, var(--accent) 78%, #fff), var(--accent) 55%, color-mix(in srgb, var(--accent) 70%, #000)); }

/* Galerie selon le nombre de photos de la maison : 1 en large, 2 côte à côte */
.galerie--1, .galerie--2 { grid-template-columns: 1fr 1fr; }
.galerie--1 figure:first-child { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
@media (min-width: 900px) {
  .galerie--1 { grid-template-columns: 1fr; }
  .galerie--1 figure:first-child { aspect-ratio: 21 / 9; position: static; }
  .galerie--1 figure:first-child img { position: static; }
  .galerie--2 { grid-template-columns: 1fr 1fr; }
  .galerie--2 figure, .galerie--2 figure:first-child { grid-row: auto; aspect-ratio: 4 / 3; position: static; }
  .galerie--2 figure:first-child img { position: static; }
}

/* Page d'une maison : lien vers l'équipe, et après les portraits, les actions (appeler, la carte, s'y rendre) */
html { scroll-behavior: smooth; }
#equipe { scroll-margin-top: 80px; }
.equipe-cta { display: grid; gap: 18px; justify-items: start; margin-top: clamp(36px, 5vw, 56px); padding-top: clamp(28px, 4vw, 40px); border-top: 1px solid var(--cendre); }
.equipe-cta-texte { margin: 0; font-family: var(--main); font-weight: 700; font-size: clamp(1.9rem, 3vw, 2.5rem); line-height: 1; color: var(--accent); transform: rotate(-1.5deg); transform-origin: left center; }
.equipe-cta-actions { display: flex; flex-wrap: wrap; gap: 10px; }
@media (min-width: 900px) { .equipe-cta { grid-template-columns: 1fr auto; align-items: center; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
/* Mode clair : survol des boutons pleins (« Commander au… ») lisible partout : la couleur fonce, le texte reste blanc */
@media (hover: hover) and (pointer: fine) {
  .btn--plein:hover { background: color-mix(in srgb, var(--accent) 78%, #000); border-color: color-mix(in srgb, var(--accent) 78%, #000); color: #fff; }
}
/* Bloc « Ils vous attendent » : plus serré, et moins de vide avant la section suivante */
.equipe-cta { margin-top: clamp(24px, 3vw, 36px); padding-top: clamp(20px, 2.5vw, 28px); }
#equipe { padding-bottom: clamp(24px, 3vw, 36px); }
#equipe + section { padding-top: clamp(32px, 4vw, 48px); }

/* =================== Page « Nos adresses » : liste + carte =================== */
.adresses-filtres { display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 0 20px; }
.adresses-filtres button { height: 40px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--cendre); background: transparent; color: var(--farine); font: inherit; font-size: .9375rem; font-weight: 600; cursor: pointer; }
.adresses-filtres button[aria-pressed="true"] { background: var(--farine); border-color: var(--farine); color: var(--nuit); }
.adresses { display: grid; gap: 20px; }
.adresses-carte { order: -1; height: 56svh; min-height: 340px; border-radius: 24px; overflow: hidden; background: var(--braise); box-shadow: 0 20px 40px -24px rgba(60, 30, 15, .45); z-index: 0; }
@media (min-width: 900px) {
  .adresses { grid-template-columns: minmax(320px, 400px) minmax(0, 1fr); align-items: start; gap: 28px; }
  .adresses-carte { order: 0; position: sticky; top: 100px; height: calc(100svh - 140px); min-height: 520px; }
}
.adresses-liste { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.lieu-item { --accent: var(--c); position: relative; display: grid; gap: 6px; padding: 16px 18px 16px 22px; border-radius: 18px; background: var(--braise); border: 1px solid var(--cendre); transition: border-color .2s, box-shadow .2s; }
.lieu-item::before { content: ""; position: absolute; left: 0; top: 16px; bottom: 16px; width: 4px; border-radius: 0 4px 4px 0; background: var(--c); }
.lieu-item.is-actif { border-color: var(--c); box-shadow: 0 0 0 1px var(--c), 0 14px 28px -18px rgba(60, 30, 15, .5); }
.adresse-titre { display: flex; align-items: center; gap: 10px; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.adresse-titre b { display: block; font-weight: 800; font-stretch: 62%; font-variation-settings: "wdth" 62; font-size: 1.6rem; line-height: 1; }
.adresse-titre small { display: block; margin-top: 3px; font-size: .8125rem; font-weight: 600; color: var(--c); }
.adresse-repere { width: 12px; height: 12px; border-radius: 50%; background: var(--c); flex: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 22%, transparent); }
.lieu-item--distrib .adresse-repere { border-radius: 3px; }
.adresse-rue, .adresse-jour, .adresse-pizzas { margin: 0; font-size: .9375rem; color: var(--semola); }
.adresse-jour { color: var(--farine); font-weight: 600; }
.adresse-pizzas { font-size: .875rem; }
.adresse-pizzas b { color: var(--farine); }
.adresse-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }

/* Repères sur la carte */
.pin-boite { background: none; border: 0; }
.pin { --c: #9f1219; display: grid; place-items: center; width: 40px; height: 40px; margin: 2px 0 0 2px; border-radius: 50% 50% 50% 4px; transform: rotate(-45deg); background: var(--c); border: 3px solid #fffaf2; box-shadow: 0 8px 16px -6px rgba(40, 20, 10, .55); transition: transform .2s; }
.pin > span { transform: rotate(45deg); color: #fff; font-weight: 800; font-size: 1rem; line-height: 1; }
.pin--distrib { border-radius: 12px 12px 12px 4px; background: #2a1c15; }
.pin--distrib > span { font-size: .6875rem; letter-spacing: -.02em; color: #f3c98c; }
.leaflet-marker-icon:hover .pin { transform: rotate(-45deg) scale(1.08); }

/* Fiche au clic : aux couleurs du site */
.pop-boite .leaflet-popup-content-wrapper { border-radius: 18px; background: #fffaf2; color: #2a1c15; box-shadow: 0 18px 40px -16px rgba(40, 20, 10, .45); }
.pop-boite .leaflet-popup-content { margin: 16px 18px; font-family: var(--f); font-size: .9rem; line-height: 1.45; }
.pop-boite .leaflet-popup-tip { background: #fffaf2; }
.pop p { margin: 0 0 4px; color: #5b483c; }
.pop .pop-type { font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #9f1219; }
.pop .pop-nom { display: block; margin-bottom: 6px; font-weight: 800; font-stretch: 62%; font-variation-settings: "wdth" 62; font-size: 1.5rem; line-height: 1; color: #2a1c15; }
.pop .pop-jour { color: #2a1c15; font-weight: 600; }
.pop-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.pop-actions .btn { min-height: 36px; padding: 0 12px; font-size: .8125rem; color: #2a1c15; }
.pop-actions .btn--plein { color: #fff; }
.leaflet-container a.btn--plein { color: #fff; }
.leaflet-control-attribution { font-size: 10px; }

/* Fond de carte OpenStreetMap adouci, en tons chauds (comme le papier du site) */
.adresses-carte .leaflet-tile-pane { filter: grayscale(.55) sepia(.22) saturate(1.1) contrast(.92) brightness(1.04); }
.adresses-carte.leaflet-container { background: #efe6d6; }
/* Texte des cartes d'adresse : police normale (pas l'étroite des titres) */
.lieu-item, .lieu-item p, .lieu-item .statut { font-stretch: 100%; font-variation-settings: normal; font-weight: 400; }
.lieu-item .adresse-jour { font-weight: 600; }

/* Fenêtre « Venir nous voir » : lien vers la carte de toutes les adresses */
.choix-carte { width: 100%; justify-content: center; margin-top: 10px; white-space: normal; text-align: center; }
/* Menu du haut : jamais sur deux lignes, plus serré sur les écrans moyens */
.nav a { white-space: nowrap; }
@media (min-width: 1280px) and (max-width: 1439px) { .nav { gap: 22px; } }
/* sans le menu complet : le bouton d'appel se range à droite, contre « Menu » */
@media (min-width: 980px) and (max-width: 1279px) { .entete-actions { margin-left: auto; } }

/* « Nous trouver » : adresse plus mesurée sur téléphone, actions juste dessous */
@media (max-width: 760px) { .adresse { font-size: 1.5rem; } }
.adresse-actions-row { margin-top: 20px; }
/* Horaires : la pastille « aujourd'hui » sous le nom du jour (plus collée aux horaires) */
.horaires tr.aujourdhui th::after { display: block; width: fit-content; margin: 6px 0 0; }
.horaires td { text-wrap: balance; }
/* Carte du site sur téléphone : le format au-dessus, le prix dessous (« 1,50 € » ne se coupe plus) */
@media (max-width: 760px) {
  .pizza-prix span { flex-direction: column; align-items: flex-start; justify-content: center; gap: 1px; padding: 7px 10px; }
  .pizza-prix span small { font-size: .72rem; line-height: 1.1; }
  .pizza-prix span { white-space: nowrap; }
  /* prix ronds (sans « Ma commande ») : format et prix sur la même ligne, comme les boutons de commande */
  .pizza-prix span.tarif--ligne { flex-direction: row; align-items: baseline; justify-content: space-between; gap: 6px; padding: 8px 10px; }
  .pizza-prix span.tarif--ligne small { font-size: .78rem; line-height: inherit; }
}
/* Téléphone : chaque jour d'horaires sur une seule ligne (colonne du jour plus étroite, texte un peu plus petit) */
@media (max-width: 760px) {
  .horaires { font-size: .875rem; }
  .horaires th { width: 7.2em; padding-right: 8px; }
  .horaires td { white-space: nowrap; text-align: right; letter-spacing: -.01em; }
}
@media (max-width: 359px) { .horaires { font-size: .8125rem; } }
/* Accueil : l'école puis l'équipe sont sur le même papier, une seule marge entre les deux */
section[aria-labelledby="ecole-titre"] { padding-bottom: clamp(36px, 4.5vw, 64px); }
section[aria-labelledby="ecole-titre"] + #equipe { padding-top: 0; }

/* Horaires en colonnes : le jour, le midi, le soir, alignés d'une ligne à l'autre */
.horaires--colonnes thead th { padding: 0 0 8px; font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--sourdine); border-bottom: 1px solid var(--cendre); text-align: right; }
.horaires--colonnes thead td { border-bottom: 1px solid var(--cendre); }
.horaires--colonnes td { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; padding-left: 14px; }
.horaires--colonnes td[colspan] { text-align: right; }
.horaires--colonnes td.ferme { color: var(--sourdine); }
.horaires--colonnes tbody th { width: auto; }
@media (max-width: 760px) {
  .horaires--colonnes td { padding-left: 10px; letter-spacing: 0; }
  .horaires--colonnes tbody th { width: auto; }
}

/* =================== Retours mobile (17 novembre) =================== */
/* Le jour même : son nom entouré, à la place de la pastille « aujourd'hui » (gagne de la place) */
.horaires tr.aujourdhui th::after { content: none; }
.horaires .jour-nom { display: inline-block; }
.horaires tr.aujourdhui .jour-nom { margin-left: -10px; padding: 2px 10px; border-radius: 999px; background: var(--accent); color: #fff; }
.semaine-grille .is-today .j::after, .maison-tuile .semaine-grille .is-today .j::before { content: none; }
.semaine-grille .is-today .j { justify-self: start; margin-left: -8px; padding: 1px 8px; border-radius: 999px; background: var(--accent); color: #fff; }
/* Un fin séparateur entre le midi et le soir */

/* Accueil, cartes du haut : « Découvrir la maison » sur téléphone */
.tuile-decouvrir { justify-self: center; font-size: .9375rem; }
@media (min-width: 980px) { .tuile-decouvrir { display: none; } }

/* Grandes cartes des maisons : toute la carte mène à la maison, les boutons gardent leur action */
.univers-carte { position: relative; cursor: pointer; }
.univers-tout { position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.univers-texte { pointer-events: none; }
.univers-bas { position: relative; z-index: 2; pointer-events: auto; }
.univers-photo img { transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
@media (hover: hover) and (pointer: fine) { .univers-carte:hover .univers-photo img { transform: scale(1.03); } }
.univers-tout:focus-visible { outline: 3px solid var(--c); outline-offset: 4px; }

/* Fenêtres de choix : horaires et lien vers la maison sur la même ligne */
.choix-plus { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 8px; --accent: var(--c); }
.choix-plus .semaine--seule { grid-column: 1; }
.choix-maison { grid-column: 2; grid-row: 1; display: inline-flex; align-items: center; gap: 2px; padding: 8px 18px 4px 0; font-size: .8125rem; font-weight: 700; color: var(--farine); opacity: .85; text-decoration: none; white-space: nowrap; }
.choix-maison svg { width: 14px; height: 14px; }
.choix-plus:not(:has(.semaine--seule)) .choix-maison { grid-column: 1 / -1; justify-self: end; }

/* Distributeurs : une pizza ouvre sa fiche */
.distrib-pizza--fiche { cursor: pointer; border-radius: 14px; transition: background-color .15s; }
@media (hover: hover) and (pointer: fine) { .distrib-pizza--fiche:hover { background: rgba(245, 241, 234, .06); } }

/* Barre d'actions du bas : toujours visible (Safari iOS la cachait au mauvais moment en défilant) */
/* « La maison » dans les fenêtres de choix : un lien simple (pas le style des grandes cases) */
.choix-liste a.choix-maison { display: inline-flex; grid-template-columns: none; min-height: 0; padding: 8px 2px 4px 0; border: 0; border-radius: 0; background: none; box-shadow: none; color: var(--farine); font-weight: 700; }
.choix-liste a.choix-maison::before { content: none; }
.choix-liste a.choix-maison:hover { color: var(--c); }

/* Horaires en colonnes : Midi et Soir centrés chacun dans leur colonne, sans trait vertical */
#horaires { scroll-margin-top: 96px; }
.horaires--colonnes { table-layout: fixed; }
.horaires--colonnes thead td, .horaires--colonnes tbody tr:first-child th { width: 34%; }
.horaires--colonnes thead th, .horaires--colonnes td, .horaires--colonnes td[colspan] { text-align: center; padding-left: 6px; padding-right: 6px; }
@media (max-width: 599px) {
  .horaires--colonnes thead td, .horaires--colonnes tbody tr:first-child th { width: 28%; }
  .horaires--colonnes thead th, .horaires--colonnes td, .horaires--colonnes td[colspan] { padding-left: 2px; padding-right: 2px; }
}

/* Barre du bas à quatre boutons : libellés et icônes un peu plus compacts */
.barre-actions a { font-size: .75rem; min-height: 54px; }
.barre-actions a.principal { font-size: .75rem; }

/* Semaine type (fenêtres, tuiles) : Midi et Soir séparés par l'espace, sans trait */
.semaine-grille { column-gap: 22px; }

/* Fenêtre « Les horaires » : la semaine de chaque maison déjà dépliée, « La maison » dessous */
.choix-semaine { grid-column: 1 / -1; grid-row: 1; padding: 0 4px; }
.choix-semaine .semaine-corps { margin-top: 2px; border-top: 0; }
.choix-plus:has(.choix-semaine) .choix-maison { grid-column: 1 / -1; grid-row: 2; justify-self: end; }

/* Aperçu dans l'outil (Textes) : bloc visé entouré (B-64) */
.cockpit-cible { outline: 3px solid #e0575b !important; outline-offset: 8px; border-radius: 10px; transition: outline-color .3s; }

/* Téléphone : les maisons ne sont présentées qu'une fois (les tuiles du haut ont déjà leurs boutons) (U-18) */
@media (max-width: 699px) { .maisons-univers { display: none; } }

/* Produit sans photo : un disque discret à la place du trou (U-19) */
.pizza-photo:not(:has(img)) { background: radial-gradient(circle at 50% 50%, rgba(201, 191, 180, .08) 0 58%, rgba(201, 191, 180, .14) 59% 100%); box-shadow: inset 0 0 0 1px rgba(201, 191, 180, .25); }

/* Petites cibles : 44 px au doigt (pied de page, ancres des mentions, zoom de la carte) (U-20) */
@media (pointer: coarse) {
  .pied a { display: inline-flex; align-items: center; min-height: 44px; }
  .legal-sommaire a, .page-simple nav a { display: inline-flex; align-items: center; min-height: 44px; }
  .leaflet-control-zoom a { width: 44px !important; height: 44px !important; line-height: 44px !important; }
}
/* Fenêtre ouverte : la page derrière ne défile plus (U-21) */
html:has(dialog[open]) { overflow: hidden; }
dialog { overscroll-behavior: contain; }

/* Tuiles des maisons (accueil) : même hauteur, boutons alignés en bas, même si le statut passe sur deux lignes */
.maisons-tuiles { align-items: stretch; }
.maison-tuile .tuile-actions { margin-top: auto; }
/* « Horaires » déplie la semaine dans la carte : elle s'agrandit, les autres gardent leur taille */
.maisons-tuiles:has(.tuile-semaine:not([hidden])) { align-items: start; }
.maison-tuile .tuile-semaine .semaine-corps { margin-top: 0; padding-top: 10px; }
.tuile-actions [aria-expanded="true"] { border-color: var(--accent); }
.tuile-actions [aria-expanded="true"] svg { color: var(--accent); }
@media (prefers-reduced-motion: no-preference) {
  .tuile-semaine:not([hidden]) .semaine-corps { animation: semaine-ouvre .25s cubic-bezier(.2, .8, .2, 1); }
}
@media (min-width: 1200px) { .heros-accueil .maisons-tuiles { padding-bottom: 92px; } }
/* Horaires en un seul créneau par jour (pas de colonnes Midi / Soir) : heures alignées à droite */
.horaires--colonnes:not(:has(thead)) td, .horaires--colonnes:not(:has(thead)) td[colspan] { text-align: right; }
/* Haut des pages maison : statut au-dessus des boutons ; sur téléphone, les boutons secondaires vont deux par ligne */
.heros-infos + .heros-actions { margin-top: 18px; }
@media (max-width: 699px) {
  .heros-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .heros-actions .btn { min-width: 0; padding: 0 12px; justify-content: center; white-space: normal; text-align: center; line-height: 1.15; }
  .heros-actions .btn--plein, .heros-actions .btn--farine { grid-column: 1 / -1; }
}
/* Haut des pages maison sur ordinateur : la photo commence SOUS le menu (fond sombre puis dégradé vers la photo),
   sur toute la largeur, à son format (classe format-…) mais pas plus haute que l'écran moins la place du titre ;
   le cadrage « Photo sur ordinateur » (bandeau 3:1) décide de ce qui est visible.
   Titre posé sur son bas, description et boutons dessous. */
@media (min-width: 761px) {
  .heros-maison { min-height: 0; display: block; background: var(--nuit); padding-top: 73px; } /* hauteur du menu */
  /* hauteur : celle de la photo, mais jamais plus que l'écran moins la place du titre (le texte reste visible) */
  .heros-maison .heros-photo { position: relative; inset: auto; z-index: 0; height: min(calc(100vw / var(--format, 1.6)), calc(100svh - 73px - 250px)); min-height: 300px; }
  .heros-maison .heros-photo.format-3-1 { --format: 3; }
  .heros-maison .heros-photo.format-21-9 { --format: 2.3333; }
  .heros-maison .heros-photo.format-2-1 { --format: 2; }
  .heros-maison .heros-photo.format-16-9 { --format: 1.7778; }
  .heros-maison .heros-photo.format-16-10 { --format: 1.6; }
  .heros-maison .heros-photo.format-3-2 { --format: 1.5; }
  .heros-maison .heros-photo.format-4-3 { --format: 1.3333; }
  .heros-maison .heros-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; }
  /* haut : du noir du menu vers la photo ; bas : la photo se fond dans le fond sombre sous le titre */
  .heros-maison .heros-photo::after { background: linear-gradient(180deg, var(--nuit) 0%, rgba(33, 21, 14, .55) 7%, rgba(33, 21, 14, 0) 18%, rgba(33, 21, 14, 0) 76%, rgba(33, 21, 14, .7) 92%, var(--nuit) 100%); }
  .heros-maison .heros-texte { position: relative; z-index: 1; padding-top: 0; margin-top: -64px; padding-bottom: 84px; } /* la frise de faïence (42 px) se pose sur le bas */
  .heros-maison .heros-texte h1 { max-width: none; text-shadow: 0 2px 18px rgba(0, 0, 0, .45); }
  .heros-maison .heros-lead { max-width: 62ch; }
}
/* Fenêtres de choix (menu, Commander, La carte) : « Horaires de la semaine » à gauche, « La maison » à droite
   sur la même ligne ; la semaine dépliée prend toute la largeur (le tableau n'est plus coincé) */
.choix-plus { position: relative; display: block; }
.choix-plus .semaine--seule > summary { padding-right: 116px; }
.choix-liste .choix-plus a.choix-maison, .feuille .maisons-liste .choix-liste .choix-plus a.choix-maison {
  position: absolute; top: 0; right: 0; display: inline-flex; flex-direction: row; align-items: center; gap: 2px;
  grid-template-columns: none; white-space: nowrap; padding: 8px 18px 4px 0; }
.choix-plus:not(:has(.semaine--seule)) { display: flex; flex-direction: column; }
.choix-liste .choix-plus:not(:has(.semaine--seule)) a.choix-maison, .feuille .maisons-liste .choix-liste .choix-plus:not(:has(.semaine--seule)) a.choix-maison { position: static; align-self: flex-end; }
/* Pied de page : les pastilles des réseaux gardent leur forme ronde et leur logo centré
   (la règle « zone de toucher » des liens du pied les passait en ligne, Safari décalait le logo) */
.pied a.reseau { display: grid; place-items: center; flex: none; width: 44px; height: 44px; min-height: 44px; padding: 0; line-height: 0; }
.pied a.reseau svg { display: block; width: 20px; height: 20px; flex: none; }
/* Statut sur deux lignes : le point reste en face de la première ligne */
.pied .statut { align-items: flex-start; }
.pied .statut::before { margin-top: .45em; }
/* Point « ouvert » sur fond clair (pied de page, pages sur papier, haut de page sur téléphone) :
   vert plus soutenu, le vert clair se perdait dans le beige */
.pied .statut[data-ouvert="1"]::before,
body:not(:has(.heros)) main .statut[data-ouvert="1"]::before,
.adresses .statut[data-ouvert="1"]::before { background: #1e8a3f; box-shadow: 0 0 0 4px rgba(30, 138, 63, .2); }
@media (max-width: 760px) {
  .heros .statut[data-ouvert="1"]::before { background: #1e8a3f; box-shadow: 0 0 0 4px rgba(30, 138, 63, .2); }
}
/* Grands écrans : texte à gauche, photo ENTIÈRE à droite (son vrai format), sous le menu.
   Personne n'est coupé et le texte reste visible d'emblée ; fondu de la photo vers le texte. */
@media (min-width: 1100px) {
  /* colonne de texte : la marge de page + environ 600 px de contenu (jamais plus de 52 % de l'écran) */
  /* un peu d'air en haut et en bas (le haut de page respire) */
  .heros-maison { display: grid; grid-template-columns: min(calc(max(0px, (100vw - var(--wrap)) / 2) + var(--gut) + 600px), 52%) minmax(0, 1fr); align-items: center; padding-top: calc(73px + 28px); padding-bottom: 20px; }
  .heros-maison .heros-photo { grid-column: 2; grid-row: 1; height: min(calc((100vw - min(calc(max(0px, (100vw - var(--wrap)) / 2) + var(--gut) + 600px), 52vw)) / var(--format, 1.5)), calc(100svh - 73px - 64px)); min-height: 0; }
  /* fondu long et doux vers le texte (une photo claire comme Morteau ne garde pas d'arête), haut et bas adoucis */
  .heros-maison .heros-photo::after { background:
    linear-gradient(90deg, var(--nuit) 0%, rgba(33, 21, 14, .86) 9%, rgba(33, 21, 14, .58) 19%, rgba(33, 21, 14, .28) 30%, rgba(33, 21, 14, .08) 40%, rgba(33, 21, 14, 0) 48%),
    linear-gradient(180deg, var(--nuit) 0%, rgba(33, 21, 14, .45) 7%, rgba(33, 21, 14, 0) 18%, rgba(33, 21, 14, 0) 82%, rgba(33, 21, 14, .6) 93%, var(--nuit) 100%); }
  .heros-maison .heros-texte.wrap { grid-column: 1; grid-row: 1; max-width: none; margin: 0; padding-top: 36px; padding-bottom: 96px;
    padding-left: max(var(--gut), calc((100vw - var(--wrap)) / 2 + var(--gut))); padding-right: 8px; position: relative; z-index: 1; }
  .heros-maison .heros-texte.wrap { container-type: inline-size; }
  .heros-maison .heros-texte h1 { font-size: clamp(3.4rem, 5.4vw, 6.2rem); line-height: .95; white-space: nowrap; }
  /* nom long : taille calée sur la largeur de la colonne, toujours sur une ligne */
  .heros-maison .heros-texte h1.titre-long { font-size: min(5.4vw, 13.6cqi); }
  /* boutons : Commander et la carte principale en grand, les autres en compact (deux lignes au lieu de trois) */
  .heros-maison .heros-actions { gap: 8px; }
  .heros-maison .heros-actions .btn:not(.btn--plein):not(.btn--farine) { min-height: 0; height: 42px; padding: 0 14px; font-size: .875rem; gap: 7px; }
  .heros-maison .heros-actions .btn:not(.btn--plein):not(.btn--farine) svg { width: 17px; height: 17px; }
}
/* Haut des pages maison : semaine dépliée sous les boutons par « Horaires » */
.heros-maison .tuile-semaine { max-width: 520px; margin-top: 18px; }
.heros-maison .tuile-semaine .semaine-corps { margin-top: 0; padding-top: 10px; }
/* Téléphone : les jours décalés de la largeur du bord de la pastille, qui reste dans la marge (mêmes marges à gauche et à droite) */
@media (max-width: 760px) {
  .heros-maison .tuile-semaine .semaine-grille .j { padding: 1px 8px; }
  .heros-maison .tuile-semaine .semaine-grille .is-today .j { margin-left: 0; }
}
.heros-actions [aria-expanded="true"] { border-color: var(--accent); }
.heros-actions [aria-expanded="true"] svg { color: var(--accent); }

/* =================== Page École : les mêmes codes que les pages maisons =================== */
/* haut de page : titre sur deux lignes (plus long qu'un nom de maison) */
/* titre à la même taille que les maisons ; sur ordinateur, colonne de texte un peu plus large pour qu'il tienne sur une ligne */
.heros-ecole .heros-texte h1 { max-width: none; }
@media (min-width: 1100px) {
  .heros-ecole { grid-template-columns: min(calc(max(0px, (100vw - var(--wrap)) / 2) + var(--gut) + 780px), 62%) minmax(0, 1fr); }
  /* photo à la hauteur de celle des maisons (colonne normale, format 3:2), recadrée plus serré dans sa colonne plus étroite */
  .heros-ecole .heros-photo { height: min(calc((100vw - min(calc(max(0px, (100vw - var(--wrap)) / 2) + var(--gut) + 600px), 52vw)) / 1.5), calc(100svh - 73px - 64px)); }
  .heros-ecole .heros-texte h1 { white-space: nowrap; }
}
.heros-maison .heros-prochaine { display: inline-flex; align-items: center; gap: 8px; color: var(--farine); font-weight: 600; }
.heros-maison .heros-prochaine .ico { width: 18px; height: 18px; flex: none; color: color-mix(in srgb, var(--accent) 55%, #fff); }
@media (max-width: 760px) { .heros-maison .heros-prochaine .ico { color: var(--accent); } }
/* la session, en pratique, le formateur */
@media (min-width: 860px) { .ecole-cartes { grid-template-columns: 1.1fr 1fr 1fr; } }
.ecole-cartes .option { min-height: 0; }
.ecole-cartes .option h2 { font-size: 2.2rem; }
.ecole-pratique { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.ecole-pratique li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; align-items: start; color: var(--semola); font-size: .9375rem; line-height: 1.45; }
.ecole-pratique .ico { width: 20px; height: 20px; color: var(--accent); margin-top: 2px; }
.ecole-pratique b { display: block; color: var(--farine); font-size: 1rem; }
.ecole-formateur-photo { margin: 0; width: 84px; height: 84px; border-radius: 50%; overflow: hidden; box-shadow: 0 0 0 3px var(--nuit), 0 0 0 5px var(--accent); }
.ecole-formateur-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 16%; }
/* inscription : le formulaire posé sur une carte, une phrase manuscrite et une photo à côté */
.inscription-main { font-family: var(--main); font-weight: 700; font-size: clamp(1.9rem, 2.6vw, 2.3rem); line-height: 1.1; color: var(--accent); transform: rotate(-3deg); transform-origin: left center; margin-top: 24px; }
.inscription-photo { margin: 28px 0 0; border-radius: 22px; overflow: hidden; aspect-ratio: 4 / 3; }
.inscription-photo img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 979px) { .inscription-photo { display: none; } }
.formulaire--carte { background: var(--braise); border-radius: 26px; padding: clamp(20px, 3vw, 36px); box-shadow: 0 24px 48px -30px rgba(60, 30, 15, .45), inset 0 0 0 1px var(--cendre); }

/* =================== Page « Nos adresses » : haut de page comme les maisons =================== */


/* =================== Page « Nos distributeurs » =================== */
/* ordinateur : le texte du haut part toujours du même point (trait, titre, boutons alignés d'une page à l'autre),
   au lieu d'être centré sur la hauteur de la photo, qui change selon la longueur du texte */
@media (min-width: 1100px) { .heros-maison { align-items: start; } }
/* titres du haut : même taille que les noms de maisons partout (règles communes de .heros-maison), toujours sur une ligne */
.heros-maison .heros-texte h1 { max-width: none; white-space: nowrap; }
/* très petits téléphones (320 px) : la même taille, réduite juste assez pour tenir sur une ligne */
@media (max-width: 760px) { .heros-maison .heros-texte h1.display { font-size: min(clamp(2.8rem, 12vw, 3.6rem), 13.4vw); } }
/* comment ça marche : trois cartes numérotées, vignette dessinée */
.distrib-etapes { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
@media (min-width: 860px) { .distrib-etapes { grid-template-columns: repeat(3, 1fr); } }
.distrib-etapes li { position: relative; background: var(--braise); border-radius: 24px; padding: 28px 28px 30px; display: grid; gap: 10px; align-content: start; }
.distrib-etapes .croquis { width: 46px; height: 46px; }
.distrib-etapes h3 { font-size: 2.2rem; }
.distrib-etapes p { color: var(--semola); }
.distrib-etape-num { position: absolute; top: 22px; right: 26px; font-weight: 800; font-stretch: 68%; font-variation-settings: "wdth" 68; font-size: 3.4rem; line-height: 1; color: color-mix(in srgb, var(--accent) 22%, transparent); }

/* ---------- « Ma commande » : un prix à emporter ajoute à la liste ; taille et prix sur une ligne, « + » dans le coin ---------- */
.ajout { position: relative; display: inline-flex; gap: 6px; align-items: baseline; justify-content: space-between; white-space: nowrap; font: inherit; font-weight: 700; font-variant-numeric: tabular-nums; color: inherit; background: var(--braise); border: 0; border-radius: 10px; padding: 8px 10px; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.ajout small { font-weight: 500; color: var(--sourdine); font-size: .78rem; }
.ajout-coin { font-style: normal; position: absolute; top: -7px; right: -7px; min-width: 20px; height: 20px; padding: 0 4px; border-radius: 999px; display: grid; place-items: center; background: var(--farine); color: var(--nuit); box-shadow: 0 0 0 2px var(--nuit); }
.ajout-coin .ico { width: 12px; height: 12px; stroke-width: 2.6; }
.ajout-coin em { display: none; font-style: normal; font-size: .75rem; font-weight: 800; line-height: 1; }
.ajout.choisi { background: var(--accent); color: #fff; }
.ajout.choisi small { color: rgba(255, 255, 255, .88); }
.ajout.choisi .ajout-coin { background: #fff; color: var(--accent); }
.ajout.choisi .ajout-coin .ico { display: none; }
.ajout.choisi .ajout-coin em { display: block; }
.carte-bloc .pizza-prix span.ajout-case, .carte-bloc .prix span.ajout-case { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); justify-content: stretch; padding: 0; background: none; box-shadow: none; border-radius: 0; }
.carte-bloc .pizza-prix span.prix-vide, .carte-bloc .prix span.prix-vide { visibility: hidden; } /* format sans tarif : rien, la colonne garde sa place */
.ajout-moins { position: absolute; z-index: 1; bottom: -12px; left: -11px; width: 24px; height: 24px; padding: 0; border: 0; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--accent); box-shadow: 0 0 0 2px var(--nuit), 0 2px 6px rgba(40, 20, 8, .25); cursor: pointer; }
.ajout-moins::before { content: ""; position: absolute; inset: -8px; } /* zone de toucher plus large que la pastille */
.ajout-moins .ico { width: 14px; height: 14px; stroke-width: 2.8; }
.ajout:focus-visible, .ajout-moins:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
@media (hover: hover) and (pointer: fine) { .ajout:hover { box-shadow: inset 0 0 0 1.5px var(--cendre); } .ajout.choisi:hover { box-shadow: none; } }
@media (max-width: 759px) {
  .pizza-prix .ajout { width: 100%; }
  .theme-clair .pizza-prix .ajout { background: #dcc6a3; box-shadow: inset 0 0 0 1px rgba(110, 70, 35, .12); }
  .theme-clair .pizza-prix .ajout small { color: #5f4838; }
  .theme-clair .pizza-prix .ajout.choisi { background: var(--accent); box-shadow: none; }
  .theme-clair .pizza-prix .ajout.choisi small { color: rgba(255, 255, 255, .88); }
}
@media (min-width: 760px) {
  .carte-bloc[data-pour="emporter"] .tailles, .carte-bloc[data-pour="emporter"] .pizza-prix { column-gap: 10px; } /* boutons de couleur jamais collés */
  .carte-bloc[data-pour="emporter"] .tailles span { padding-right: 10px; } /* en-têtes au droit des prix (boutons avec marge intérieure) */
  .pizza-prix .ajout { justify-content: flex-end; margin: -6px 0; padding: 6px 10px; font-size: 1.0625rem; background: transparent; }
  .pizza-prix .ajout-moins { bottom: -12px; left: -6px; width: 22px; height: 22px; }
  .pizza-prix .ajout-moins .ico { width: 12px; height: 12px; }
  .pizza-prix .ajout small { display: none; }
  .pizza-prix .ajout .ajout-coin { top: -6px; right: -4px; }
  .ajout .ajout-coin { background: var(--braise); color: var(--farine); box-shadow: 0 0 0 2px var(--nuit), inset 0 0 0 1px var(--cendre); }
  .pizza-prix .ajout.choisi { background: var(--accent); }
  .ajout.choisi .ajout-coin { background: #fff; color: var(--accent); box-shadow: 0 0 0 2px var(--nuit); }
}
.plat .prix .ajout { justify-self: end; padding: 6px 10px; }
.plat .prix .ajout small { margin-right: 0; }
.plat .prix .ajout + .ajout { margin-top: 8px; }
.carte-astuce { display: flex; gap: 8px; align-items: center; margin-top: 10px; color: var(--farine); font-weight: 600; }
.carte-astuce .ico { width: 16px; height: 16px; padding: 2px; border-radius: 50%; background: var(--farine); color: var(--nuit); stroke-width: 2.6; }

/* Barre « Ma commande » : au-dessus de la barre du bas sur téléphone, en bas à droite sur ordinateur */
.ma-liste-barre { position: fixed; z-index: 45; left: 12px; right: 12px; bottom: calc(86px + env(safe-area-inset-bottom)); }
.ma-liste-barre button { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 10px 10px 18px; border: 0; border-radius: 18px; background: #2a1c15; color: #f5f1ea; font: inherit; text-align: left; cursor: pointer; box-shadow: 0 14px 30px -12px rgba(0, 0, 0, .55); }
.ma-liste-barre-txt { min-width: 0; }
.ma-liste-barre-txt small { display: block; font-size: .8125rem; color: #d9cbb9; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ma-liste-barre-txt b { font-size: 1rem; white-space: nowrap; }
.ma-liste-barre-voir { flex: none; background: var(--accent); color: #fff; border-radius: 999px; padding: 10px 20px; font-weight: 700; font-size: .9375rem; }
@media (min-width: 980px) { .ma-liste-barre { left: auto; right: 24px; bottom: 24px; width: 380px; } }

/* Fenêtre « Ma commande » : feuille du bas sur téléphone, fenêtre au centre sur ordinateur */
dialog.ma-liste { border: 0; padding: 0; margin: auto auto 0; width: 100%; max-width: 520px; max-height: 88vh; max-height: 88dvh; overscroll-behavior: contain; border-radius: 26px 26px 0 0; background: var(--nuit); color: var(--farine); }
dialog.ma-liste::backdrop { background: rgba(20, 12, 8, .55); }
.ma-liste-in { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; padding: 0 20px calc(20px + env(safe-area-inset-bottom)); }
.ma-liste-tete { position: sticky; z-index: 2; top: 0; display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin: 0 -20px; padding: 22px 20px 10px; background: var(--nuit); }
.ma-liste-sous { margin: 6px 0 0; color: var(--sourdine); font-size: .875rem; }
.ma-liste-fermer { flex: none; width: 40px; height: 40px; border: 0; border-radius: 50%; display: grid; place-items: center; background: var(--braise); color: var(--farine); cursor: pointer; }
.ma-liste-fermer .ico { width: 18px; height: 18px; }
.ma-liste-vide { display: grid; gap: 6px; color: var(--semola); }
.ma-liste-vide b { color: var(--farine); }
.ma-liste-pleine { display: grid; gap: 14px; }
.ma-liste-lignes { list-style: none; margin: 0; padding: 0; }
.ma-liste-ligne { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px dashed var(--cendre); }
.ma-liste-article b { display: block; }
.ma-liste-article small { display: block; color: var(--sourdine); font-size: .8125rem; }
.ma-liste-pas { display: inline-flex; align-items: center; border: 1.5px solid var(--cendre); border-radius: 999px; }
.ma-liste-pas button { width: 36px; height: 36px; border: 0; background: none; color: inherit; display: grid; place-items: center; cursor: pointer; }
.ma-liste-pas .ico { width: 14px; height: 14px; stroke-width: 2.4; }
.ma-liste-pas span { min-width: 18px; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.ma-liste-montant { white-space: nowrap; min-width: 56px; text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.ma-liste-somme { margin: 0; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-weight: 800; font-size: 1.15rem; }
.ma-liste-somme b { flex: none; white-space: nowrap; }
.ma-liste-somme small { display: block; font-weight: 500; font-size: .78rem; color: var(--sourdine); }
.ma-liste-appel { width: 100%; justify-content: center; white-space: normal; text-align: center; }
.ma-liste-aide { margin: 0; font-size: .875rem; color: var(--semola); }
.ma-liste-pied { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; font-size: .875rem; color: var(--sourdine); }
.ma-liste-lien { border: 0; background: none; padding: 6px 0; color: var(--farine); text-decoration: underline; font: inherit; font-weight: 600; cursor: pointer; }
.ma-liste-confirme { display: inline-flex; gap: 8px; align-items: center; color: var(--farine); }
.ma-liste-confirme button { border: 1.5px solid var(--cendre); background: none; border-radius: 999px; padding: 6px 14px; font: inherit; font-weight: 600; color: inherit; cursor: pointer; }
.ma-liste-confirme button.oui { background: var(--farine); border-color: var(--farine); color: var(--nuit); }
@media (min-width: 760px) {
  dialog.ma-liste { margin: auto; border-radius: 26px; box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .6); }
  .ma-liste-in { padding: 0 28px 26px; }
  .ma-liste-tete { margin: 0 -28px; padding: 26px 28px 10px; }
}
@media (prefers-reduced-motion: no-preference) {
  .ajout { transition: background-color .15s, color .15s; }
  .ajout.ajoute .ajout-coin { animation: ajout-pop .32s cubic-bezier(.2, .8, .2, 1); }
  @keyframes ajout-pop { 40% { transform: scale(1.35); } }
  dialog.ma-liste[open] { animation: choix-arrive .32s cubic-bezier(.2, .8, .2, 1); }
}

/* ---------- Recherche d'une pizza ou d'une rubrique (carte à emporter) ---------- */
.carte-loupe { flex: none; display: flex; align-items: center; gap: 8px; height: 46px; padding: 0 18px 0 14px; border-radius: 999px; border: 1px solid var(--cendre); background: var(--nuit); color: var(--farine); font: inherit; font-size: .9rem; font-weight: 700; cursor: pointer; } /* même texte que « À emporter / Sur place » */
.carte-loupe .ico { width: 18px; height: 18px; color: var(--accent); }
.carte-loupe[aria-expanded="true"] { background: var(--farine); border-color: var(--farine); color: var(--nuit); }
.carte-loupe[aria-expanded="true"] .ico { color: var(--nuit); }
.carte-loupe:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.carte-collant .carte-recherche { padding-top: 0; }
.carte-recherche-champ { flex: 1; min-width: 0; max-width: 640px; display: flex; align-items: center; gap: 8px; height: 48px; padding: 0 6px 0 14px; border-radius: 14px; border: 1px solid var(--cendre); background: var(--nuit); cursor: text; }
.carte-recherche-champ:focus-within { border-color: var(--farine); box-shadow: 0 0 0 1px var(--farine); }
.carte-recherche-champ > .ico { width: 18px; height: 18px; color: var(--accent); }
.carte-recherche-champ input { flex: 1; min-width: 0; border: 0; background: none; color: var(--farine); font: inherit; font-size: 16px; font-weight: 600; outline: none; } /* 16 px : pas de zoom sur iPhone */
.carte-recherche-champ input::placeholder { color: var(--sourdine); font-weight: 500; }
.carte-recherche-champ input::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; display: none; } /* notre bouton « effacer » le remplace, sur tous les navigateurs */
.carte-recherche-effacer { flex: none; width: 36px; height: 36px; border: 0; border-radius: 50%; display: grid; place-items: center; background: var(--braise); color: var(--farine); cursor: pointer; }
.carte-recherche-effacer .ico { width: 16px; height: 16px; stroke-width: 2.4; }
.carte-collant .carte-recherche-vide { display: block; margin: 0; padding-top: 0; color: var(--semola); font-size: .9375rem; }
/* pendant une recherche : les résultats seuls, sans les titres des rubriques */
.carte-bloc.en-recherche .carte-titre { display: none; }
.carte-bloc.en-recherche .carte-section { padding-top: 20px; }
.carte-bloc.en-recherche .carte-tete { justify-content: flex-end; border-bottom: 0; }
/* clavier du téléphone ouvert sur la recherche : pas de barres flottantes en bas de l'écran */
@media (max-width: 979px) { body.clavier-ouvert .barre, body.clavier-ouvert .ma-liste-barre { display: none; } }
/* téléphone, à emporter : le bouton « Chercher » prend la place de la liste des rubriques */
@media (max-width: 760px) {
  .carte-collant[data-mode-actif="emporter"] .rubrique { display: none; }
  .carte-loupe { flex: 1; min-width: 0; font-size: .875rem; }
}
@media (max-width: 420px) {
  .carte-collant .wrap { gap: 6px; }
  .rubrique select { padding: 0 26px 0 10px; font-size: 1rem; }
  .rubrique svg { right: 8px; }
}

/* =================== Horaires : jours modifiés (fermeture, horaires spéciaux) des 7 prochains jours =================== */
.semaine-grille .j-case { display: inline-flex; align-items: baseline; flex-wrap: wrap; gap: 0 7px; min-width: 0; }
.jour-date { font-size: .75rem; font-weight: 700; white-space: nowrap; color: var(--note-fermeture, #8a3f06); }
.horaires .jour-date { display: block; margin-top: 2px; }
.semaine-grille .est-modifie .h, .horaires tr.est-modifie td { font-weight: 700; color: var(--farine); }
.semaine-grille .est-modifie.is-closed .h, .semaine-grille .est-modifie .h.est-ferme,
.horaires tr.est-modifie td.ferme, .horaires tr.est-modifie td.est-ferme { color: var(--note-fermeture, #8a3f06); }
.motif { display: block; font-size: .75rem; font-weight: 500; line-height: 1.3; white-space: normal; text-wrap: balance; }
/* le motif a sa propre ligne, sur toute la largeur : un texte long n'élargit jamais les colonnes des heures */
.semaine-grille .motif { grid-column: 1 / -1; text-align: right; color: var(--note-fermeture, #8a3f06); }
@media (max-width: 760px) { .heros-maison .tuile-semaine .j-case { gap: 0; } .heros-maison .tuile-semaine .jour-date { padding-left: 8px; } }

/* =================== Moyens de paiement =================== */
.paiements { margin-top: 36px; }
.paiements-liste { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.paiements-liste li { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 14px; background: var(--braise); box-shadow: inset 0 0 0 1px var(--cendre); color: var(--farine); font-size: .9375rem; font-weight: 600; line-height: 1.25; }
.paiements-liste .ico { width: 18px; height: 18px; flex: none; color: var(--accent); }
.paiements-refus { display: flex; align-items: flex-start; gap: 8px; margin: 14px 0 0; color: var(--semola); }
.paiements-refus .ico { width: 18px; height: 18px; flex: none; margin-top: .2em; color: var(--accent); }
.paiements-refus b { color: var(--farine); }
.ma-liste-paiement { font-weight: 600; }
.distrib-carte .distrib-paiement { display: flex; align-items: flex-start; gap: 8px; color: var(--semola); }
.distrib-paiement .ico { width: 18px; height: 18px; flex: none; margin-top: .15em; }
/* en petit, sous les boutons du haut de page */
.paiements-haut { display: grid; gap: 6px; margin-top: 18px; }
.maison-tuile .paiements-haut { margin-top: 0; }
.paiements-haut p { display: flex; align-items: flex-start; gap: 8px; margin: 0; max-width: none; font-size: .8125rem; line-height: 1.4; color: var(--semola); text-shadow: none; }
.paiements-haut .ico { width: 15px; height: 15px; flex: none; margin-top: 1px; }
.paiements-haut b { color: var(--farine); }

/* =================== Référencement : titres principaux =================== */
/* page maison : « Pizzeria La Novità à » en petit au-dessus du nom de la ville (lu par Google avec lui) */
.secteur-haut h1 .titre-avant, .heros-maison h1 .titre-avant { display: block; margin-bottom: .35em; font-family: inherit; font-size: clamp(1rem, 1.4vw, 1.25rem); font-weight: 700; font-stretch: 100%; font-variation-settings: normal; letter-spacing: .01em; line-height: 1.2; white-space: normal; color: var(--semola); }
/* slogans de l'accueil un peu moins grands sur ordinateur (sur téléphone : taille d'origine) */
@media (min-width: 761px) { .heros-accueil .slogans { font-size: clamp(2.4rem, 5.2vw, 4.75rem); } }
/* titre de l'accueil (première phrase) : 4 lignes au plus sur téléphone, 3 sur ordinateur */
.heros.heros-accueil .slogans { max-width: 13ch; }
@media (min-width: 761px) { .heros.heros-accueil .slogans { max-width: 16ch; } }
/* haut de l'accueil : un peu d'air sous le menu sur ordinateur, titre remonté sur la photo sur téléphone */
@media (min-width: 980px) { .heros-accueil .heros-texte { padding-top: 164px; } }
@media (max-width: 760px) {
  .heros-accueil .heros-texte { margin-top: -116px; }
  /* compromis : la photo reste bien visible, le haut du titre se pose sur sa partie qui s'efface dans le papier (sans raccord) */
  .heros-accueil .heros-photo { -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 52%, rgba(0, 0, 0, .45) 74%, transparent 94%); mask-image: linear-gradient(180deg, #000 0%, #000 52%, rgba(0, 0, 0, .45) 74%, transparent 94%); }
  .heros-accueil .heros-photo::after { background: linear-gradient(180deg, rgba(23, 17, 14, .5) 0%, rgba(23, 17, 14, 0) 20%); }
  .heros-accueil .maisons-tuiles { margin-top: -10px; }
}
/* la première phrase du défilement est le titre principal : même allure que les autres phrases */
.slogans > h1 { margin: 0; max-width: none; font: inherit; letter-spacing: inherit; color: inherit; text-wrap: inherit; }
.heros .slogans { margin: 0; font-weight: 800; letter-spacing: -.01em; font-stretch: 68%; font-variation-settings: "wdth" 68; text-wrap: balance; max-width: 10ch; }

/* Cartes « La carte à emporter / sur place » sur ordinateur : la frise de faïence en pied (comme sous la photo du haut) */
@media (min-width: 900px) {
  .commande-carte { padding-bottom: calc(clamp(24px, 3vw, 34px) + 44px); }
  .commande-carte::after { content: ""; position: absolute; z-index: -1; left: 0; right: 0; bottom: 0; height: 44px; background: var(--faience) 0 0 / 44px 44px repeat-x; box-shadow: 0 -4px 0 var(--accent), 0 -6px 0 #f3e6d0; }
}
/* boutons « Voir la carte à emporter / sur place » : pleins (bien visibles), couleur de la maison au survol */
@media (hover: hover) and (pointer: fine) { .commande-carte:hover .btn--farine { background: var(--accent); border-color: var(--accent); color: #fff; } }
/* de 900 à 1023 px : le bloc « Commander » sur toute la largeur, les deux cartes dessous (leurs boutons tiennent) */
@media (min-width: 900px) and (max-width: 1023px) {
  .commande { grid-template-columns: 1fr 1fr; }
  .commande-appel { grid-column: 1 / -1; }
}
