/* Brigade, page des cuisines pilotes, variante B « Brigade en action ».
   Direction « The product performs » (taste-skill, graine 876046322), charte de Brigade gardée. */

@font-face { font-family: 'Fraunces'; font-weight: 700; font-display: swap; src: url('../../commun/polices/Fraunces-700-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; }
@font-face { font-family: 'Fraunces'; font-weight: 700; font-display: swap; src: url('../../commun/polices/Fraunces-700-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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Plus Jakarta Sans'; font-weight: 400 800; font-display: swap; src: url('../../commun/polices/PlusJakartaSans-400-800-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; }
@font-face { font-family: 'Plus Jakarta Sans'; font-weight: 400 800; font-display: swap; src: url('../../commun/polices/PlusJakartaSans-400-800-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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --creme: #FBF6EE;
  --creme-ton: #F3EADC;
  --blanc: #FFFFFF;
  --encre: #1F2A2E;
  --encre-douce: #5E676B;
  --cuivre: #B4582A;
  --cuivre-texte: #A0512A;
  --cuivre-presse: #9A4A22;
  --cuivre-pale: #FDECDF;
  --basilic: #3F8A5C;
  --basilic-texte: #2F6B47;
  --basilic-fond: #E3F1E8;
  --safran-texte: #8A5E10;
  --safran-fond: #FBEFD6;
  --tomate: #B23A2B;
  --tomate-texte: #8E2A1E;
  --tomate-fond: #F8E1DD;
  --trait: #1F2A2E2E;

  --titre: 'Fraunces', Georgia, serif;
  --texte: 'Plus Jakarta Sans', system-ui, sans-serif;

  /* Les cinq tailles de la page (hors fragments d'interface) */
  --t-chiffre: clamp(120px, 16vw, 240px);
  --t-titre: clamp(44px, 5.2vw, 80px);
  --t-section: clamp(26px, 2.2vw, 32px);
  --t-corps: clamp(16px, 1.25vw, 18px);
  --t-petit: 14px;

  --rayon: 12px;
  --marge: clamp(20px, 3.4vw, 48px);
  --gouttiere: 24px;
  --ecart: 176px;

  --sortie: cubic-bezier(0.22, 1, 0.36, 1);
  --revelation: cubic-bezier(0.16, 1, 0.3, 1);
  --volet: cubic-bezier(0.76, 0, 0.24, 1);
  --doux: cubic-bezier(0.33, 1, 0.68, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 24px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--creme); color: var(--encre);
  font-family: var(--texte); font-size: var(--t-corps); line-height: 1.55;
  overflow-x: clip;
}
[hidden] { display: none !important; }
:where(.grille) p, :where(.grille) li, :where(.grille) figcaption { max-width: 36em; }
/* La fiche s'est élargie : ses lignes internes suivent toute sa largeur */
[data-ui].fiche p { max-width: none; }
img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
h1, h2, h3, p, ol, ul, dl, dd { margin: 0; }
::selection { background: var(--cuivre-pale); color: var(--encre); }
:focus-visible { outline: 2px solid var(--cuivre); outline-offset: 3px; border-radius: 4px; }
html { scrollbar-color: var(--cuivre) var(--creme-ton); }

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

.grille {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gouttiere); padding-inline: var(--marge);
}

.titre-section {
  font-family: var(--titre); font-weight: 700; font-size: var(--t-section);
  line-height: 1.1; letter-spacing: -0.02em; text-wrap: balance;
}

/* Bouton unique de la page : cuivre plein, rayon 12 */
.bouton {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 26px; border: 0; border-radius: var(--rayon);
  background: var(--cuivre); color: var(--blanc);
  font: 700 var(--t-corps)/1.2 var(--texte); text-decoration: none; cursor: pointer;
  transition: transform 140ms var(--sortie), background-color 180ms ease;
  -webkit-tap-highlight-color: transparent;
}
.bouton:active { transform: scale(0.97); background: var(--cuivre-presse); }
.lien {
  color: var(--cuivre-texte); font-weight: 700; text-decoration: underline;
  text-decoration-color: color-mix(in srgb, currentColor 35%, transparent);
  text-underline-offset: 0.22em; text-decoration-thickness: 0.08em;
  transition: text-decoration-color 180ms ease, color 180ms ease;
}
@media (hover: hover) and (pointer: fine) {
  .bouton:hover { background: var(--cuivre-presse); }
  .lien:hover { text-decoration-color: currentColor; color: var(--cuivre-presse); }
}

/* ------------------------------------------------------------ Barre */
.barre { position: absolute; top: 28px; left: 0; right: 0; z-index: 5; align-items: center; }
.marque {
  grid-column: 1 / 5; display: inline-flex; align-items: center; gap: 12px; justify-self: start;
  color: var(--encre); text-decoration: none; font: 700 var(--t-corps)/1 var(--titre); min-height: 44px;
}
.marque img { width: 36px; height: 36px; border-radius: 8px; }
.barre-liens { grid-column: 5 / -1; justify-self: end; display: flex; gap: 32px; }
.barre-liens a {
  color: var(--encre); font-size: var(--t-petit); font-weight: 600; text-decoration: none;
  min-height: 44px; display: inline-flex; align-items: center;
  text-decoration-line: underline; text-decoration-color: transparent; text-underline-offset: 0.3em;
  transition: text-decoration-color 180ms ease;
}
@media (hover: hover) and (pointer: fine) { .barre-liens a:hover { text-decoration-color: var(--cuivre); } }

/* ------------------------------------------------------------ Héros */
.heros { padding-top: 150px; align-items: start; }
.heros-titre {
  grid-column: 1 / 9; grid-row: 1;
  font-family: var(--titre); font-weight: 700; font-size: var(--t-titre);
  line-height: 0.98; letter-spacing: -0.035em;
}
.lignes .ligne { display: block; overflow: hidden; padding-bottom: 0.1em; margin-bottom: -0.1em; }
.lignes [data-ligne] { display: block; }
.heros-texte { grid-column: 1 / 5; grid-row: 2; margin-top: 40px; }
.heros-phrase { max-width: 40ch; }
.formules-tete p, .etat-texte, .tarifs-note, .feuille p { max-width: 36em; }
.heros-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 32px; }

.scene {
  grid-column: 5 / -1; grid-row: 2; margin-top: 40px; margin-right: calc(-1 * var(--marge));
  position: relative; background: var(--cuivre); color: var(--blanc);
  /* L'encoche du bon de cuisine, seule découpe de la page */
  clip-path: polygon(0 64px, 196px 64px, 252px 0, 100% 0, 100% 100%, 0 100%);
  /* La fiche occupe toute la scène : aucune colonne vide à sa droite */
  display: grid; grid-template-columns: minmax(0, 1fr);
  padding: 112px 56px 72px 56px;
}
.heros-logo { width: clamp(180px, 17vw, 260px); margin-top: 56px; border-radius: var(--rayon); }

/* La fiche technique (fragment d'interface de Brigade) */
[data-ui].fiche {
  grid-column: 1; grid-row: 1; background: var(--blanc); color: var(--encre);
  border-radius: var(--rayon); padding: 24px 24px 12px; font-size: 14px; line-height: 1.45;
}
[data-ui] .fiche-titre { font-family: var(--titre); font-size: 22px; line-height: 1.2; letter-spacing: -0.01em; }
[data-ui] .fiche-info { margin-top: 4px; font-size: 13px; color: var(--encre-douce); }
[data-ui] .fiche-curseur { margin-top: 20px; padding: 16px; border-radius: var(--rayon); background: var(--creme); }
[data-ui] .fiche-curseur-tete { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
[data-ui] .fiche-curseur label { font-size: 14px; font-weight: 700; }
[data-ui] .fiche-valeur { font-size: 20px; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--cuivre-texte); }
[data-ui] input[type='range'] {
  -webkit-appearance: none; appearance: none; display: block; width: 100%; height: 44px; margin: 4px 0 0;
  background: transparent; cursor: pointer; touch-action: pan-y;
}
[data-ui] input[type='range']::-webkit-slider-runnable-track { height: 8px; border-radius: 4px; background: var(--cuivre-pale); box-shadow: inset 0 0 0 1px #B4582A33; }
[data-ui] input[type='range']::-moz-range-track { height: 8px; border-radius: 4px; background: var(--cuivre-pale); }
[data-ui] input[type='range']::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; width: 30px; height: 30px; margin-top: -11px; border-radius: 50%;
  background: var(--cuivre); border: 4px solid var(--blanc); box-shadow: 0 1px 4px #1F2A2E40;
  transition: transform 140ms var(--sortie);
}
[data-ui] input[type='range']::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: var(--cuivre); border: 4px solid var(--blanc); box-shadow: 0 1px 4px #1F2A2E40; }
[data-ui] input[type='range']:active::-webkit-slider-thumb { transform: scale(1.12); }
[data-ui] input[type='range']:focus-visible { outline: 2px solid var(--cuivre); outline-offset: 2px; }
[data-ui] .fiche-bornes { display: flex; justify-content: space-between; font-size: 13px; color: var(--encre-douce); }

[data-ui] .fiche-totaux { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 24px; margin-top: 20px; }
[data-ui] .fiche-total dt { font-size: 13px; color: var(--encre-douce); }
[data-ui] .fiche-total dd { font-size: 20px; font-weight: 800; font-variant-numeric: tabular-nums; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
[data-ui] .fiche-total--ratio dd { color: var(--basilic-texte); }
[data-ui].fiche.est-alerte .fiche-total--ratio dd { color: var(--tomate-texte); }
[data-ui] .etiquette, [data-ui].ligne-gm .etiquette {
  display: inline-block; flex: none; white-space: nowrap; padding: 4px 10px; border-radius: 999px;
  font-size: 13px; font-weight: 700; line-height: 1.2; vertical-align: 2px;
}
[data-ui] .etiquette--basilic { background: var(--basilic-fond); color: var(--basilic-texte); }
[data-ui] .etiquette--tomate { background: var(--tomate-fond); color: var(--tomate-texte); }
[data-ui] .etiquette--neutre { background: var(--creme); color: var(--encre-douce); }

[data-ui] .fiche-alerte-place { margin-top: 16px; min-height: 92px; }
[data-ui] .fiche-alerte {
  display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: var(--rayon);
  background: var(--tomate-fond); color: var(--tomate-texte); font-weight: 600; line-height: 1.45;
}
[data-ui] .fiche-alerte svg { flex: none; margin-top: 2px; }
[data-ui] .fiche-alerte:not([hidden]) { animation: alerte-entre 320ms var(--sortie); }
@keyframes alerte-entre { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
[data-ui] .fiche-consigne, [data-ui] .fiche-statique { padding: 12px 14px; border-radius: var(--rayon); background: var(--creme); color: var(--encre-douce); }
[data-ui] .fiche-statique { background: var(--tomate-fond); color: var(--tomate-texte); font-weight: 600; }
.js [data-ui] .fiche-statique { display: none; }
html:not(.js) [data-ui] .fiche-consigne, html:not(.js) [data-ui] input[type='range'], html:not(.js) [data-ui] .fiche-bornes { display: none; }
[data-ui] .fiche-consigne[hidden] { display: none; }

[data-ui] .fiche-lignes { width: 100%; margin-top: 12px; border-collapse: collapse; font-size: 13px; font-variant-numeric: tabular-nums; }
[data-ui] .fiche-lignes th, [data-ui] .fiche-lignes td { padding: 9px 6px; text-align: left; font-weight: 500; }
[data-ui] .fiche-lignes thead th { color: var(--encre-douce); font-weight: 600; padding-top: 4px; }
[data-ui] .fiche-lignes tbody tr { border-top: 1px solid #1F2A2E14; }
[data-ui] .fiche-lignes tbody th { font-weight: 700; }
[data-ui] .fiche-lignes .num { text-align: right; white-space: nowrap; }
[data-ui] .fiche-lignes tr.est-choisie { background: var(--cuivre-pale); }
[data-ui] .fiche-lignes tr.est-choisie > * { color: var(--cuivre-texte); }

/* ------------------------------------------------------------ Vitrine */
/* Film : la vidéo explicative (2026-11-24). Ne se charge qu'au clic sur lecture (preload="none"). */
.film { margin-top: var(--ecart); }
.film-titre, .film-invite, .film-cadre, .film-note, .film-action { grid-column: 1 / -1; }
.film-titre { margin-bottom: 12px; }
.film-invite { margin: 0 0 28px; font-size: 18px; line-height: 1.45; font-weight: 700; color: var(--cuivre-texte); max-width: 60ch; }
.film-action { margin-top: 28px; }
.film-cadre { border-radius: 20px; overflow: hidden; background: var(--encre); aspect-ratio: 16 / 9;
  box-shadow: 0 40px 90px rgba(31, 42, 46, 0.22), 0 8px 24px rgba(31, 42, 46, 0.14); }
.film-video { display: block; width: 100%; height: 100%; object-fit: cover; }
.film-note { margin: 16px 0 0; font-size: 15px; line-height: 1.45; color: var(--encre-douce); max-width: 70ch; }
.vitrine { margin-top: var(--ecart); }
.vitrine-titre { grid-column: 4 / -1; margin-bottom: 96px; }
.etat {
  grid-column: 1 / -1; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gouttiere); align-items: center; margin-bottom: 56px;
}
.etat:last-child { margin-bottom: 0; }
.etat-mot { grid-column: 1 / 4; grid-row: 1; text-align: right; color: var(--encre-douce); font-weight: 600; font-size: var(--t-corps); }
.etat > [data-ui] { grid-column: 4 / 10; grid-row: 1; max-width: 640px; width: 100%; }
.etat-texte { grid-column: 10 / -1; grid-row: 1; }

[data-ui].ligne-gm {
  display: flex; align-items: flex-start; gap: 12px; padding: 16px 20px; border-radius: var(--rayon);
  background: var(--blanc); color: var(--encre); font-size: 14px; line-height: 1.45;
  transition: box-shadow 180ms ease;
}
[data-ui].ligne-gm--ouverte { box-shadow: inset 0 0 0 2px var(--cuivre); }
[data-ui].ligne-gm.est-rangee { box-shadow: none; }
[data-ui] .point { flex: none; width: 10px; height: 10px; margin-top: 7px; border-radius: 50%; background: var(--encre-douce); }
[data-ui] .point--tomate { background: var(--tomate); }
[data-ui] .ligne-gm-corps { flex: 1; min-width: 0; }
[data-ui] .ligne-gm-nom { font-size: 16px; font-weight: 700; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
[data-ui] .ligne-gm-info { margin-top: 2px; font-size: 13px; color: var(--encre-douce); font-variant-numeric: tabular-nums; }
[data-ui] .dlc { color: var(--tomate-texte); font-weight: 600; }
[data-ui] .ligne-gm-categorie { margin-top: 2px; font-size: 13px; color: var(--cuivre-texte); font-weight: 600; }
[data-ui] .ligne-gm-qte { flex: none; font-size: 16px; font-weight: 800; font-variant-numeric: tabular-nums; }
[data-ui] .ligne-gm-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 12px; }
[data-ui] .pas { display: inline-flex; }
[data-ui] .pas-bouton {
  width: 48px; height: 44px; border: 0; background: var(--blanc); color: var(--encre);
  box-shadow: inset 0 0 0 1.5px var(--trait); font: 700 18px/1 var(--texte); cursor: pointer;
  transition: transform 140ms var(--sortie), background-color 180ms ease;
}
[data-ui] .pas-bouton:first-child { border-radius: var(--rayon) 0 0 var(--rayon); }
[data-ui] .pas-bouton:last-child { border-radius: 0 var(--rayon) var(--rayon) 0; margin-left: -1.5px; }
[data-ui] .ui-principal, [data-ui] .ui-discret {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 18px; border: 0; border-radius: var(--rayon);
  font: 700 15px/1.2 var(--texte); cursor: pointer;
  transition: transform 140ms var(--sortie), background-color 180ms ease;
}
[data-ui] .ui-principal { background: var(--cuivre); color: var(--blanc); }
[data-ui] .ui-discret { background: transparent; color: var(--cuivre-texte); padding: 0; margin-top: 8px; }
[data-ui] button:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) {
  [data-ui] .pas-bouton:hover, [data-ui] .ui-discret:hover { background: var(--cuivre-pale); }
  [data-ui] button.ui-principal:hover { background: var(--cuivre-presse); }
}
[data-ui] .est-change { animation: change 360ms var(--sortie); }
@keyframes change { from { opacity: 0.2; transform: translateY(4px); } to { opacity: 1; transform: none; } }

/* ------------------------------------------------------------ Appel et réponse */
.echanges { margin-top: var(--ecart); }
.echanges-colonne { grid-column: 4 / -1; }
.echanges-colonne > .titre-section { max-width: 560px; margin-bottom: 56px; }
.echange > * { max-width: 560px; }
.echange > .reponse { max-width: 504px; }
.echange + .echange { margin-top: 88px; }
.echange-phrase { font-weight: 700; }
.appel { margin-top: 16px; padding: 20px; border-radius: var(--rayon); background: var(--creme-ton); }
[data-ui].appel-ui { font-size: 14px; }
[data-ui] .ui-principal--large { width: 100%; min-height: 48px; cursor: default; }
[data-ui].appel-ui--saisie { display: flex; gap: 10px; align-items: stretch; }
[data-ui] .saisie-texte {
  flex: 1; min-width: 0; padding: 12px 14px; border-radius: var(--rayon); background: var(--blanc);
  box-shadow: inset 0 0 0 1.5px var(--trait); font-size: 15px; line-height: 1.4;
}
[data-ui].appel-ui--saisie .ui-principal { cursor: default; align-self: center; }
[data-ui].appel-ui--onglets { display: flex; justify-content: space-around; padding: 10px 8px; border-radius: var(--rayon); background: var(--blanc); }
[data-ui] .onglet { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 13px; color: var(--encre-douce); min-width: 64px; }
[data-ui] .onglet.est-actif { color: var(--cuivre-texte); font-weight: 700; }

.reponse { margin-top: 24px; margin-left: 56px; }
.reponse figcaption { margin-top: 12px; font-size: var(--t-petit); color: var(--encre-douce); line-height: 1.5; }
.mention-ia { display: block; margin-top: 4px; }
.capture { border-radius: var(--rayon); }
/* Le garde-manger en entier, élargi comme le briefing : aucun mot coupé */
.echange > .reponse--garde-manger { max-width: none; width: min(856px, calc(100% - 56px)); }
/* La capture est sur fond crème comme la page : un pas de ton la détache, sans ombre ni filet */
.capture--entiere { width: 100%; padding: 16px; background: var(--creme-ton); }
.telephone { width: 410px; max-width: 100%; padding: 10px; border-radius: var(--rayon); background: var(--encre); }
.telephone-ecran {
  height: 640px; overflow-y: auto; overscroll-behavior: contain; border-radius: 4px; background: var(--creme);
  scrollbar-width: thin; scrollbar-color: var(--cuivre) var(--creme-ton);
}
.telephone-ecran img { width: 390px; max-width: 100%; }
.echange > .reponse--briefing { max-width: none; width: min(856px, calc(100% - 56px)); display: grid; grid-template-columns: 612px minmax(0, 1fr); column-gap: 32px; align-items: end; }
.reponse--briefing img { width: 612px; }

/* ------------------------------------------------------------ Programme */
.programme { margin-top: var(--ecart); align-items: center; }
.programme-photo { grid-column: 1 / 7; }
.volet { overflow: clip; border-radius: var(--rayon); aspect-ratio: 4 / 3; background: #6E5A44; }
.volet img { width: 100%; height: 100%; object-fit: cover; }
.programme-texte { grid-column: 8 / -1; }
.etapes { list-style: none; padding: 0; margin-top: 36px; display: grid; gap: 18px; }
.etapes li { padding-left: 22px; position: relative; }
.etapes li::before { content: ''; position: absolute; left: 0; top: 0.62em; width: 8px; height: 8px; border-radius: 50%; background: var(--cuivre); }
.demande { margin-top: 40px; padding: 24px; border-radius: var(--rayon); background: var(--cuivre-pale); }
.demande-titre { font-size: var(--t-corps); font-weight: 800; margin-bottom: 6px; }

/* ------------------------------------------------------------ La feuille */
.lettre {
  margin-top: 120px; padding: 128px var(--marge); background: var(--encre);
  display: flex; flex-direction: column; align-items: center;
}
.feuille {
  width: min(640px, 100%); padding: 60px 60px 76px; background: var(--blanc); color: var(--encre);
  border-radius: var(--rayon) var(--rayon) 0 0;
  clip-path: polygon(0 0, 100% 0, 100.000% calc(100% - 12px), 97.917% 100%, 95.833% calc(100% - 12px), 93.750% 100%, 91.667% calc(100% - 12px), 89.583% 100%, 87.500% calc(100% - 12px), 85.417% 100%, 83.333% calc(100% - 12px), 81.250% 100%, 79.167% calc(100% - 12px), 77.083% 100%, 75.000% calc(100% - 12px), 72.917% 100%, 70.833% calc(100% - 12px), 68.750% 100%, 66.667% calc(100% - 12px), 64.583% 100%, 62.500% calc(100% - 12px), 60.417% 100%, 58.333% calc(100% - 12px), 56.250% 100%, 54.167% calc(100% - 12px), 52.083% 100%, 50.000% calc(100% - 12px), 47.917% 100%, 45.833% calc(100% - 12px), 43.750% 100%, 41.667% calc(100% - 12px), 39.583% 100%, 37.500% calc(100% - 12px), 35.417% 100%, 33.333% calc(100% - 12px), 31.250% 100%, 29.167% calc(100% - 12px), 27.083% 100%, 25.000% calc(100% - 12px), 22.917% 100%, 20.833% calc(100% - 12px), 18.750% 100%, 16.667% calc(100% - 12px), 14.583% 100%, 12.500% calc(100% - 12px), 10.417% 100%, 8.333% calc(100% - 12px), 6.250% 100%, 4.167% calc(100% - 12px), 2.083% 100%, 0 calc(100% - 12px));
}
.feuille .titre-section { margin-bottom: 20px; }
.feuille p + p { margin-top: 1em; }
.preuves { list-style: none; padding: 20px 24px; margin-top: 28px; border-radius: var(--rayon); background: var(--creme); font-weight: 600; display: grid; gap: 6px; }
.talon {
  width: min(640px, 100%); margin-top: 10px; min-height: 72px; padding: 12px 24px;
  display: flex; align-items: center; justify-content: center; background: var(--blanc); border-radius: 0 0 var(--rayon) var(--rayon);
}
.talon a { color: var(--cuivre-texte); font-weight: 700; text-underline-offset: 0.22em; overflow-wrap: anywhere; text-align: center; }

/* ------------------------------------------------------------ Formules */
.formules { margin-top: var(--ecart); align-items: start; }
.formules-tete { grid-column: 1 / 5; position: sticky; top: 40px; }
.formules-tete p { margin-top: 20px; }
.formules-chiffre { grid-column: 6 / -1; }
.chiffre-bloc { display: flex; align-items: flex-start; gap: 24px; }
.chiffre {
  display: flex; align-items: baseline; font-family: var(--titre); font-weight: 700;
  font-size: var(--t-chiffre); line-height: 0.85; letter-spacing: -0.045em; color: var(--encre);
}
.chiffre-devise { font-size: 0.5em; align-self: flex-start; margin-left: 0.06em; letter-spacing: 0; }
.chiffre-periode { font-family: var(--texte); font-size: var(--t-corps); font-weight: 700; letter-spacing: 0; color: var(--encre-douce); margin-left: 18px; white-space: nowrap; }
.chiffre-photo { width: clamp(140px, 22vw, 320px); aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--rayon); margin-left: auto; transform: rotate(-2deg); }
.chiffre-inclus { list-style: none; padding: 0; margin-top: 36px; display: grid; gap: 6px; font-weight: 600; }
.formules-chiffre > .bouton { margin-top: 32px; }

.tarifs { width: 100%; margin-top: 80px; border-collapse: separate; border-spacing: 0 8px; caption-side: top; }
.tarifs-titre { text-align: left; font-weight: 800; padding-bottom: 8px; }
.tarifs th, .tarifs td { background: var(--blanc); padding: 22px 24px; text-align: left; vertical-align: middle; font-weight: 400; }
.tarifs th { border-radius: var(--rayon) 0 0 var(--rayon); width: 36%; }
.tarifs td:last-child { border-radius: 0 var(--rayon) var(--rayon) 0; }
.tarif-nom { display: block; font-family: var(--titre); font-weight: 700; font-size: var(--t-section); line-height: 1.1; }
.tarif-accroche { display: block; margin-top: 4px; font-size: var(--t-petit); color: var(--encre-douce); }
.tarif-prix { text-align: right !important; font-weight: 800; white-space: nowrap; font-variant-numeric: tabular-nums; }
.tarifs-note { margin-top: 16px; }

/* ------------------------------------------------------------ Questions */
.questions { margin-top: var(--ecart); align-items: start; }
.questions-liste { grid-column: 1 / 6; }
.questions-liste .titre-section { margin-bottom: 28px; }
.faq { list-style: none; padding: 0; }
.faq-question {
  display: flex; align-items: center; gap: 14px; width: 100%; min-height: 48px; padding: 9px 0;
  border: 0; background: none; text-align: left; cursor: pointer;
  font: 600 var(--t-corps)/1.4 var(--texte); color: var(--encre-douce);
  transition: color 150ms ease, transform 140ms var(--sortie);
}
.faq-question:active { transform: scale(0.99); }
.faq-question[aria-expanded='true'] { color: var(--encre); }
.faq-point { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--encre-douce); transition: background-color 150ms ease; }
.faq-question[aria-expanded='true'] .faq-point { background: var(--cuivre); }
.faq-reponse { padding: 0 0 14px 22px; }
.questions-panneau { grid-column: 7 / -1; position: sticky; top: 120px; padding: 40px; border-radius: var(--rayon); background: var(--cuivre-pale); min-height: 300px; }
.panneau-question { font-size: var(--t-petit); font-weight: 700; color: var(--cuivre-texte); }
.panneau-reponse { margin-top: 16px; font-size: var(--t-section); line-height: 1.3; max-width: 30ch; transition: opacity 150ms ease; }
.questions-panneau.est-change .panneau-reponse, .questions-panneau.est-change .panneau-question { opacity: 0; }
html:not(.js) .questions-panneau { display: none; }
html:not(.js) .questions-liste { grid-column: 1 / 9; }
@media (min-width: 1100px) {
  .js .faq-reponse { display: none; }
}
@media (max-width: 1099px) {
  .questions-panneau { display: none; }
  .js .faq-question[aria-expanded='false'] + .faq-reponse { display: none; }
}

/* ------------------------------------------------------------ Candidature */
.candidature { margin-top: var(--ecart); padding-bottom: 56px; align-items: stretch; }
.candidature-titre { grid-column: 1 / 7; grid-row: 1; margin-bottom: 32px; }
/* Le bon de cuisine : il s'écrit pendant la saisie, puis s'accroche au passe */
.passe-bon { grid-column: 1 / 7; grid-row: 2; border-radius: var(--rayon); background: var(--creme-ton); padding: 40px; }
.passe-bon__colle { position: relative; }
.passe-bon__rail { position: relative; z-index: 2; height: 44px; border-radius: var(--rayon); background: var(--encre); }
.passe-bon__rail::after { content: ''; position: absolute; left: 24px; right: 24px; bottom: 10px; height: 6px; border-radius: 3px; background: var(--cuivre); }
.bon {
  position: relative; z-index: 1; width: min(100%, 420px); margin: 22px auto 0;
  padding: 34px 30px 30px; background: var(--blanc); color: var(--encre);
  border-radius: 0 0 var(--rayon) var(--rayon);
  /* Le bord cranté du haut, comme un bon détaché du carnet */
  clip-path: polygon(0 10px, 4% 0, 8% 10px, 12% 0, 16% 10px, 20% 0, 24% 10px, 28% 0, 32% 10px, 36% 0, 40% 10px, 44% 0, 48% 10px, 52% 0, 56% 10px, 60% 0, 64% 10px, 68% 0, 72% 10px, 76% 0, 80% 10px, 84% 0, 88% 10px, 92% 0, 96% 10px, 100% 0, 100% 100%, 0 100%);
  transform-origin: 50% 0;
}
.bon__tete { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 24px; }
.bon__mot { font-family: var(--titre); font-weight: 700; font-size: clamp(40px, 3.6vw, 56px); line-height: 1; letter-spacing: -0.03em; }
.bon__date { font-size: var(--t-petit); font-weight: 600; color: var(--encre-douce); text-align: right; }
.bon__date:empty { display: none; }
.bon__lignes { display: grid; gap: 16px; }
.bon__ligne { display: grid; gap: 4px; }
.bon__ligne dt { font-size: var(--t-petit); color: var(--encre-douce); font-weight: 600; }
.bon__ligne dd { font-size: 20px; font-weight: 800; line-height: 1.25; min-height: 1.25em; overflow-wrap: anywhere; }
/* Ligne encore vide : la place où le mot va s'écrire, une bande de ton plutôt que des points de suspension */
.bon__ligne dd.est-vide::before { content: ''; display: block; height: 0.95em; margin-top: 0.15em; width: 64%; border-radius: 4px; background: var(--creme-ton); }
.bon__ligne:nth-child(2) dd.est-vide::before { width: 44%; }
.bon__ligne:nth-child(4) dd.est-vide::before { width: 54%; }
.bon__pied { margin-top: 28px; padding-top: 16px; font-size: var(--t-petit); color: var(--cuivre-texte); font-weight: 700; }
.candidature-colonne { grid-column: 8 / -1; grid-row: 1 / 3; max-width: 520px; }
.formulaire { margin-top: 0; }
.champ { margin-bottom: 20px; }
.champ label { display: block; margin-bottom: 8px; font-weight: 700; }
.facultatif { font-weight: 500; color: var(--encre-douce); }
.champ input, .champ select, .champ textarea {
  display: block; width: 100%; min-height: 56px; padding: 0 16px;
  border: 1.5px solid #1F2A2E33; border-radius: var(--rayon); background: var(--blanc); color: var(--encre);
  font: 400 var(--t-corps)/1.4 var(--texte); transition: border-color 180ms ease;
}
.champ textarea { padding: 14px 16px; resize: vertical; min-height: 104px; }
.champ select { appearance: none; padding-right: 44px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%231F2A2E' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; }
.champ input:focus-visible, .champ select:focus-visible, .champ textarea:focus-visible { outline: 2px solid var(--cuivre); outline-offset: 2px; border-color: var(--cuivre); }
.champ-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.bouton--plein { width: 100%; min-height: 56px; margin-top: 8px; }
.formulaire-etat { margin-top: 14px; color: var(--basilic-texte); font-weight: 600; }
.formulaire-etat:empty { display: none; }
.formulaire-mention { margin-top: 14px; font-size: var(--t-petit); color: var(--encre-douce); }
.ensuite { margin-top: 20px; padding: 20px 22px; background: var(--cuivre-pale); border-left: 4px solid var(--cuivre); border-radius: var(--rayon); }
.ensuite__titre { margin: 0 0 10px; font: 600 var(--t-section)/1.15 var(--titre); color: var(--encre); }
.ensuite__etapes { margin: 0; padding-left: 1.4em; display: grid; gap: 8px; color: var(--encre); }
.ensuite__etapes li::marker { color: var(--cuivre-texte); font-weight: 700; }
.ensuite__note { margin: 12px 0 0; font-size: var(--t-petit); color: var(--encre-douce); }

/* ------------------------------------------------------------ Pied de page en tuiles */
.pied {
  margin-top: var(--ecart); padding: 12px; display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 8px;
}
.tuile { border-radius: var(--rayon); padding: 28px; background: var(--blanc); color: var(--encre); min-height: 220px; }
.tuile--declaration { grid-column: 1 / 5; display: flex; flex-direction: column; justify-content: space-between; gap: 24px; }
.pied-titre { font-family: var(--titre); font-weight: 700; font-size: var(--t-section); line-height: 1.1; letter-spacing: -0.02em; }
.pied-credit { font-size: var(--t-petit); color: var(--encre-douce); max-width: 44ch; }
.tuile--liens { grid-column: 5 / 8; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.tuile--liens .lien { min-height: 36px; display: inline-flex; align-items: center; }
.tuile--lieu { grid-column: 8 / 10; background: var(--creme-ton); font-weight: 700; }
.tuile--email { grid-column: 10 / -1; display: flex; align-items: flex-end; }
.pied-email { overflow-wrap: anywhere; }
.tuile--marque {
  grid-column: 1 / 9; min-height: 320px; background: var(--encre); color: var(--creme);
  display: flex; align-items: center; justify-content: center; gap: clamp(20px, 3vw, 48px); overflow: hidden;
}
.tuile--marque img { width: clamp(96px, 12vw, 190px); border-radius: var(--rayon); }
.tuile--marque span { font-family: var(--titre); font-weight: 700; font-size: var(--t-titre); line-height: 1; letter-spacing: -0.04em; padding-block: 0.1em; }
.tuile--action {
  grid-column: 9 / -1; min-height: 320px; background: var(--cuivre); color: var(--blanc); text-decoration: none;
  display: flex; flex-direction: column; justify-content: space-between;
  font-weight: 800; font-size: var(--t-section); line-height: 1.1;
  transition: transform 140ms var(--sortie), background-color 180ms ease;
}
.tuile--action svg { align-self: flex-end; transition: transform 240ms var(--sortie); }
.tuile--action:active { transform: scale(0.98); }
@media (hover: hover) and (pointer: fine) {
  .tuile--action:hover { background: var(--cuivre-presse); }
  .tuile--action:hover svg { transform: translate(4px, -4px); }
}

/* ------------------------------------------------------------ Tablette */
@media (max-width: 1099px) {
  :root { --ecart: 128px; }
  .barre-liens { gap: 20px; }
  .heros { padding-top: 128px; }
  .heros-titre { grid-column: 1 / -1; }
  .heros-texte { grid-column: 1 / -1; margin-top: 28px; }
  .scene {
    grid-column: 1 / -1; grid-row: 3; margin-top: 48px; margin-inline: calc(-1 * var(--marge));
    clip-path: polygon(0 56px, 72px 56px, 120px 0, 100% 0, 100% 100%, 0 100%);
    grid-template-columns: minmax(0, 720px); justify-content: center; padding: 96px var(--marge) 64px;
  }
  .vitrine-titre { grid-column: 1 / -1; margin-bottom: 64px; }
  .etat { row-gap: 10px; }
  .etat > [data-ui] { grid-column: 1 / -1; grid-row: 1; max-width: 640px; }
  .etat-mot { grid-column: 1 / -1; grid-row: 2; text-align: left; }
  .etat-texte { grid-column: 1 / -1; grid-row: 3; max-width: 60ch; }
  .echanges-colonne { grid-column: 1 / -1; }
  .programme-photo, .programme-texte { grid-column: 1 / -1; }
  .programme-texte { margin-top: 48px; }
  .formules-tete { grid-column: 1 / -1; position: static; }
  .formules-chiffre { grid-column: 1 / -1; margin-top: 48px; }
  .questions-liste { grid-column: 1 / -1; }
  .candidature-titre { grid-column: 1 / -1; }
  .tuile--declaration { grid-column: 1 / 8; }
  .tuile--liens { grid-column: 8 / -1; }
  .tuile--lieu { grid-column: 1 / 5; min-height: 140px; }
  .tuile--email { grid-column: 5 / -1; min-height: 140px; }
  .tuile--marque { grid-column: 1 / 8; }
  .tuile--action { grid-column: 8 / -1; }
  .passe-bon { grid-column: 1 / -1; padding: 32px; }
  .candidature-colonne { grid-column: 1 / -1; grid-row: 3; max-width: 560px; margin-top: 40px; }
  .echange > .reponse--briefing { grid-template-columns: minmax(0, 612px); row-gap: 12px; }
  .reponse--briefing img { width: 100%; }
}

/* ------------------------------------------------------------ Téléphone */
@media (max-width: 699px) {
  :root { --gouttiere: 12px; --ecart: 104px; --t-titre: 10.4vw; }
  .barre { top: 16px; }
  .barre-liens { display: none; }
  .heros { padding-top: 96px; }
  .heros-phrase { font-size: 16px; }
  .scene {
    clip-path: polygon(0 48px, 40px 48px, 72px 0, 100% 0, 100% 100%, 0 100%);
    grid-template-columns: minmax(0, 1fr); padding: 72px 16px 40px;
  }
  [data-ui].fiche { padding: 18px 16px 8px; }
  .heros-logo { width: 132px; margin-top: 28px; }
  [data-ui] .col-pertes, [data-ui] .col-prix { display: none; }
  [data-ui] .fiche-totaux { gap: 12px 16px; }
  [data-ui] .fiche-alerte-place { min-height: 112px; }
  .vitrine-titre { margin-bottom: 40px; }
  .etat { margin-bottom: 48px; }
  [data-ui].ligne-gm { padding: 14px 14px; }
  .echange + .echange { margin-top: 64px; }
  .appel { padding: 14px; }
  .reponse { margin-left: 0; }
  [data-ui].appel-ui--saisie { flex-direction: column; }
  [data-ui].appel-ui--saisie .ui-principal { align-self: flex-end; }
  .telephone { width: 100%; }
  .telephone-ecran { height: 520px; }
  .echange > .reponse--briefing { grid-template-columns: minmax(0, 1fr); margin-inline: calc(-1 * var(--marge)); width: auto; }
  .echange > .reponse--garde-manger { width: 100%; }
  .passe-bon { padding: 20px 16px 28px; }
  .bon { padding: 30px 22px 24px; }
  .reponse--briefing img { width: 100%; border-radius: 0; }
  .reponse--briefing figcaption { padding-inline: var(--marge); }
  .lettre { padding: 96px 0; }
  .feuille { padding: 32px 24px 52px; border-radius: 0; }
  .talon { border-radius: 0; }
  .chiffre-bloc { flex-direction: column-reverse; gap: 0; }
  .chiffre { font-size: 34vw; }
  .chiffre-periode { font-size: 16px; margin-left: 12px; white-space: normal; }
  .chiffre-photo { width: 44%; margin-left: auto; margin-bottom: -10px; position: relative; z-index: 0; }
  .formules-chiffre > .bouton { width: 100%; }
  .tarifs, .tarifs tbody, .tarifs tr, .tarifs th, .tarifs td { display: block; width: 100%; }
  .tarifs tr { margin-bottom: 8px; border-radius: var(--rayon); overflow: hidden; background: var(--blanc); }
  .tarifs th, .tarifs td { border-radius: 0 !important; padding: 16px 18px 0; }
  .tarifs td:last-child { padding-bottom: 18px; text-align: left !important; }
  .tarifs caption { display: block; }
  .questions-panneau { display: none; }
  .champ-duo { grid-template-columns: 1fr; }
  .pied { padding: 8px; gap: 6px; grid-template-columns: 1fr 1fr; }
  .tuile { padding: 20px; min-height: 0; }
  .tuile--marque { grid-column: 1 / -1; grid-row: 1; min-height: 160px; justify-content: flex-start; }
  .tuile--marque img { width: 96px; }
  .tuile--marque span { font-size: 16vw; }
  .tuile--action { grid-column: 1 / -1; grid-row: 2; min-height: 160px; }
  .tuile--liens { grid-column: 1; grid-row: 3; }
  .tuile--email { grid-column: 2; grid-row: 3; align-items: flex-start; font-size: var(--t-petit); }
  .tuile--lieu { grid-column: 1; grid-row: 4; }
  .tuile--declaration { grid-column: 2; grid-row: 4; }
  .pied-titre { font-size: 20px; }
}

/* ------------------------------------------------------------ Mouvement (la page réduite est la page finie) */
@media (prefers-reduced-motion: no-preference) {
  .js .heros [data-ligne] { transform: translateY(105%); animation: ligne-monte 860ms var(--revelation) forwards; animation-delay: calc(120ms + var(--i) * 100ms); }
  .js .heros [data-charge] { opacity: 0; transform: translateY(14px); animation: monte 560ms var(--sortie) forwards; animation-delay: var(--d); }
  .js .heros [data-scene-entree] { opacity: 0; transform: translateY(40px); animation: monte 900ms var(--revelation) 260ms forwards; }

  .js [data-revele] { transition: opacity 700ms var(--sortie), transform 900ms var(--sortie); transition-delay: calc(var(--i, 0) * 80ms); }
  .js [data-revele].attente { opacity: 0; transform: translateY(24px); }

  /* Geste signature : l'image s'ouvre comme un volet */
  .js .volet.ferme { clip-path: inset(0 0 100% 0); }
  .js .volet { transition: clip-path 1100ms var(--volet); }
  .js .volet img { transition: transform 1500ms var(--doux); }
  .js .volet.ferme img { transform: scale(1.12); }

  /* Le bon pend un peu de travers ; à l'envoi il glisse et s'accroche au passe */
  .js .bon { transform: rotate(-1.2deg); transition: transform 900ms var(--volet); }
  .js .bon.est-accroche { transform: translateY(-30px) rotate(0deg); }

  @supports (animation-timeline: view()) {
    .chiffre-photo { animation: derive-legere linear both; animation-timeline: view(); animation-range: entry 0% exit 100%; }
  }
}
@keyframes ligne-monte { to { transform: none; } }
@keyframes monte { to { opacity: 1; transform: none; } }
@keyframes derive-legere { from { transform: rotate(-2deg) translateY(10px); } to { transform: rotate(1deg) translateY(-10px); } }
