/* ============================================================
   Panify — identité « Croûte » (direction A, 21/10/2026)
   Une couleur forte (la croûte), le reste en farine.
   Polices : Schibsted Grotesk (titres + texte), DM Mono (chiffres, repères).
   ============================================================ */
:root {
  --farine: #F9F7F3;       /* fond principal */
  --blanc: #FFFFFF;
  --mie: #F0EBE2;          /* fonds alternés, encarts */
  --four: #191613;         /* texte, sections sombres */
  --four-2: #24201C;       /* cartes sur fond sombre */
  --seigle: #6B635B;       /* texte secondaire */
  --cendre: #A59C92;       /* texte secondaire sur sombre */
  --trait: #E7E1D7;        /* filets */
  --trait-fort: #D2C9BB;
  --croute: #CC4616;       /* actions, chiffres clés */
  --croute-hover: #B23B10;
  --croute-texte: #B83F13; /* orange lisible en petit sur clair */
  --dore: #F2B33D;         /* accent rare, surtout sur sombre */
  --dore-doux: #FCEFD3;

  --fam-pain: #B83F13;  --fam-pain-bg: #FBE6DA;
  --fam-vien: #2F5E8C;  --fam-vien-bg: #E3ECF5;
  --fam-pat: #9C3A66;   --fam-pat-bg: #F6E2EC;
  --fam-trait: #4C7636; --fam-trait-bg: #E4EEDB;

  --f-sans: 'Schibsted Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --f-mono: 'DM Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  --r-btn: 6px;
  --r-card: 10px;
  --ombre: 0 1px 2px rgba(25,22,19,.06), 0 22px 44px -16px rgba(25,22,19,.24);
  --gouttiere: 24px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { background: var(--farine); color: var(--four); font: 400 17px/1.6 var(--f-sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input { font: inherit; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 var(--gouttiere); }
@media (max-width: 640px) { :root { --gouttiere: 16px; } }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--four); color: var(--farine); padding: 8px 12px; border-radius: 4px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--croute); outline-offset: 3px; }

/* ---------- typo ---------- */
.titre { font-weight: 800; letter-spacing: -0.035em; line-height: 1.02; }
.titre em { font-style: normal; color: var(--croute); }
h2.titre { font-size: clamp(32px, 4vw, 50px); text-wrap: balance; }
p, blockquote, .coches li span { text-wrap: pretty; }
h3 { font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; }
.chapo { font-size: 19px; color: var(--seigle); line-height: 1.6; max-width: 580px; }
.mono { font-family: var(--f-mono); }
.tab { font-variant-numeric: tabular-nums; }

/* Repère de section : trois grignes + libellé en mono (notre signature, pas d'étiquette orange) */
.repere { display: inline-flex; align-items: center; gap: 10px; font-family: var(--f-mono); font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--seigle); }
.repere::before { content: ""; width: 20px; height: 12px; flex: none; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 12'%3E%3Cg stroke='%23CC4616' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M2 11 5 1M8.5 11l3-10M15 11l3-10'/%3E%3C/g%3E%3C/svg%3E") no-repeat center / contain; }
.sombre .repere { color: var(--cendre); }
.sombre .repere::before { filter: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 12'%3E%3Cg stroke='%23F2B33D' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M2 11 5 1M8.5 11l3-10M15 11l3-10'/%3E%3C/g%3E%3C/svg%3E"); }

/* ---------- boutons ---------- */
.btn { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 15.5px; line-height: 1.2; padding: 14px 22px; border-radius: var(--r-btn); border: 1px solid transparent; cursor: pointer; transition: background .15s, border-color .15s, color .15s; white-space: nowrap; }
.btn .fl { font-family: var(--f-mono); font-weight: 400; transition: transform .15s; }
.btn .dur { margin-left: -5px; }
.btn:hover .fl { transform: translateX(3px); }
.btn-croute { background: var(--croute); color: #fff; }
.btn-croute:hover { background: var(--croute-hover); }
.btn-trait { background: transparent; color: var(--four); border-color: var(--trait-fort); }
.btn-trait:hover { border-color: var(--four); }
.sombre .btn-trait { color: var(--farine); border-color: #4A423B; }
.sombre .btn-trait:hover { border-color: var(--farine); }
.lien { font-weight: 600; color: var(--croute-texte); display: inline-flex; gap: 8px; align-items: center; }
.lien .fl { font-family: var(--f-mono); transition: transform .15s; }
.lien:hover .fl { transform: translateX(3px); }

/* ---------- logo ---------- */
.logo { display: inline-flex; align-items: center; gap: 9px; }
.logo img { width: 30px; height: 30px; }
.logo span { font-weight: 800; font-size: 24px; letter-spacing: -0.045em; line-height: 1; }

/* ---------- navigation ---------- */
.nav { position: sticky; top: 0; z-index: 40; background: rgba(249,247,243,.92); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--trait); }
.nav .wrap { display: flex; align-items: center; gap: 36px; height: 72px; }
.nav .liens { display: flex; gap: 28px; font-size: 15px; font-weight: 500; color: var(--seigle); }
.nav .liens a { white-space: nowrap; }
@media (max-width: 1100px) { .nav .wrap { gap: 24px; } .nav .liens { gap: 20px; } }
.nav .liens a:hover, .nav .connexion:hover { color: var(--four); }
.nav .liens a[aria-current="page"] { color: var(--four); }
.nav .esp { flex: 1; }
.nav .connexion { font-size: 15px; font-weight: 500; }
.nav .btn { padding: 11px 18px; font-size: 14.5px; }
@media (max-width: 920px) { .nav .liens, .nav .connexion { display: none; } }
@media (max-width: 640px) { .nav .wrap { height: 64px; gap: 12px; } .nav .btn { padding: 9px 13px; font-size: 13.5px; } .nav .btn .fl { display: none; } }
@media (max-width: 370px) { .nav .btn .dur { display: none; } }

/* ---------- feuille du jour (objet signature) ---------- */
.feuille { background: var(--blanc); border: 1px solid var(--trait); border-radius: var(--r-card); box-shadow: var(--ombre); font-size: 14px; overflow: hidden; }
.feuille .f-tete { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--trait); font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--seigle); }
.feuille .f-tete b { color: var(--four); font-weight: 500; }
.feuille .f-tete > * { white-space: nowrap; }
@media (max-width: 520px) { .feuille .f-tete .pg { display: none; } }
.feuille .f-fam { padding: 12px 18px 4px; }
.feuille .f-ligne { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 7px 18px; min-height: 36px; }
.feuille .f-ligne + .f-ligne { border-top: 1px dashed var(--trait); }
.feuille .f-ligne.base { font-weight: 600; }
.feuille .f-ligne .nom small { display: block; font-weight: 400; font-size: 12px; color: var(--seigle); margin-top: 1px; }
.feuille .f-ligne .nom .j { display: inline-block; font-family: var(--f-mono); font-size: 10.5px; font-weight: 500; letter-spacing: .04em; color: var(--seigle); border: 1px solid var(--trait-fort); border-radius: 3px; padding: 0 4px; margin-left: 6px; vertical-align: 1px; }
/* quantités en colonne : chiffre calé à droite, unité calée à gauche, sur toutes les lignes */
.feuille .q { display: inline-flex; align-items: center; justify-content: flex-end; font-family: var(--f-mono); font-size: 13px; font-weight: 400; white-space: nowrap; font-variant-numeric: tabular-nums; flex: none; }
.feuille .q .n { min-width: 7ch; text-align: right; font-weight: 500; color: var(--four); }
.feuille .q .u { font-weight: 400; min-width: 7.2ch; padding-left: .7ch; text-align: left; color: var(--seigle); }
.feuille .base .q .n { color: var(--four); }
.feuille .base .q .n span, .feuille .q .n.fort span { background: var(--dore-doux); padding: 1px 4px; margin-right: -4px; border-radius: 3px; }
.feuille .f-pied { margin-top: 10px; padding: 12px 18px 14px; background: #FBF9F5; border-top: 1px solid var(--trait); font-family: var(--f-mono); font-size: 11.5px; color: var(--seigle); display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px 14px; }
.feuille .f-pied .p-t { grid-column: 1 / -1; letter-spacing: .1em; text-transform: uppercase; font-size: 10.5px; }
.feuille .f-pied > span:not(.p-t) { display: flex; flex-direction: column; gap: 1px; white-space: nowrap; }
.feuille .f-pied b { color: var(--four); font-weight: 500; font-size: 12.5px; }

.puce { display: inline-flex; align-items: center; gap: 6px; font-family: var(--f-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; padding: 4px 9px; border-radius: 4px; }
.puce::before { content: ""; width: 7px; height: 7px; border-radius: 2px; background: currentColor; }
.puce.pain { color: var(--fam-pain); background: var(--fam-pain-bg); }
.puce.vien { color: var(--fam-vien); background: var(--fam-vien-bg); }
.puce.pat { color: var(--fam-pat); background: var(--fam-pat-bg); }
.puce.trait { color: var(--fam-trait); background: var(--fam-trait-bg); }

/* ---------- sections ---------- */
.bloc { padding: 112px 0; }
.bloc + .bloc { border-top: 1px solid var(--trait); }
.bloc.mie { background: var(--mie); border-top: 0; }
.bloc.blanc { background: var(--blanc); }
.sombre { background: var(--four); color: var(--farine); }
.sombre .chapo { color: var(--cendre); }
.tete-bloc { display: grid; grid-template-columns: 240px 1fr; gap: 40px; margin-bottom: 56px; align-items: baseline; }
.tete-bloc h2 { max-width: 820px; }
.tete-bloc .chapo { margin-top: 16px; }
@media (max-width: 860px) { .bloc { padding: 72px 0; } .tete-bloc { grid-template-columns: 1fr; gap: 14px; margin-bottom: 36px; } }

.coches { list-style: none; margin-top: 28px; }
.coches li { position: relative; padding: 12px 0 12px 34px; border-top: 1px solid var(--trait); }
.coches li:last-child { border-bottom: 1px solid var(--trait); }
.coches li::before { content: ""; position: absolute; left: 0; top: 18px; width: 18px; height: 11px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 12'%3E%3Cg stroke='%23CC4616' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M2 11 5 1M8.5 11l3-10M15 11l3-10'/%3E%3C/g%3E%3C/svg%3E") no-repeat center / contain; }
.coches li b { font-weight: 600; }
.coches li span { display: block; color: var(--seigle); font-size: 15.5px; margin-top: 2px; }

/* apparition au défilement (désactivée si mouvement réduit) */
.apparait { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.apparait.vu { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .apparait { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* ---------- icônes maison (brand/icones.svg) ---------- */
.ic { width: 24px; height: 24px; flex: none; color: var(--four); --ic-a: var(--croute); --ic-fond: var(--blanc); }
.sombre .ic { color: var(--farine); --ic-a: var(--dore); --ic-fond: var(--four); }
.pastille-ic { width: 44px; height: 44px; border-radius: 11px; background: var(--mie); display: grid; place-items: center; flex: none; transition: transform .5s var(--ease), background .3s; }
.pastille-ic .ic { width: 24px; height: 24px; --ic-fond: var(--mie); }
.sombre .pastille-ic { background: var(--four-2); border: 1px solid #36302A; }
.sombre .pastille-ic .ic { --ic-fond: var(--four-2); }

/* ---------- mouvement ---------- */
:root { --ease: cubic-bezier(.16, 1, .3, 1); }
.nav { transition: box-shadow .35s var(--ease), background .35s; }
.nav.defile { box-shadow: 0 10px 30px -18px rgba(25,22,19,.28); }
.btn { transition: background .2s, border-color .2s, color .2s, translate .3s var(--ease), box-shadow .3s; }
.btn:hover { translate: 0 -1px; }
.btn:active { scale: .98; }
.btn-croute:hover { box-shadow: 0 10px 22px -12px rgba(204,70,22,.7); }

/* apparitions (seulement si le JS tourne : sans JS, tout est visible) */
.js [data-reveal] { opacity: 0; translate: 0 18px; transition: opacity .9s var(--ease), translate .9s var(--ease), scale .9s var(--ease); transition-delay: var(--d, 0ms); }
.js [data-reveal="fade"] { translate: none; }
.js [data-reveal="zoom"] { translate: none; scale: .96; }
.js [data-reveal="gauche"] { translate: -18px 0; }
.js [data-reveal].vu { opacity: 1; translate: none; scale: none; }
.js [data-pas] { opacity: 0; translate: 0 6px; transition: opacity .5s var(--ease), translate .5s var(--ease), background .6s; transition-delay: var(--d, 0ms); }
.js [data-pas].vu { opacity: 1; translate: none; }

/* repère : les trois grignes se tracent */
.js .repere::before { clip-path: inset(0 100% 0 0); transition: clip-path .8s var(--ease) .15s; }
.js .repere.vu::before { clip-path: inset(0 0 0 0); }

/* titre mot par mot */
.mot { display: inline-block; overflow: hidden; vertical-align: top; padding: 0 .02em .1em; margin: 0 -.02em -.1em; }
.mot > span { display: inline-block; }
.js:not(.charge) .mot > span { translate: 0 108%; }
.js .mot > span { transition: translate 1.1s var(--ease); transition-delay: var(--d, 0ms); }

/* inclinaison sous la souris */
[data-tilt] { transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .5s var(--ease), box-shadow .5s var(--ease); will-change: transform; }

.js [data-reveal][data-tilt] { transition: opacity .9s var(--ease), translate .9s var(--ease), scale .9s var(--ease), transform .5s var(--ease), box-shadow .5s var(--ease); transition-delay: var(--d, 0ms), var(--d, 0ms), var(--d, 0ms), 0ms, 0ms; }

/* parallaxe */
[data-parallax] { translate: 0 var(--py, 0px); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0s !important; animation-duration: 0s !important; animation-iteration-count: 1 !important; }
  [data-tilt] { transform: none; }
}

/* ---------- pied de page ---------- */
.pied { background: var(--farine); border-top: 1px solid var(--trait); padding: 72px 0 36px; font-size: 15px; }
.pied .grille { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 32px; }
.pied p { color: var(--seigle); margin-top: 16px; max-width: 300px; font-size: 14.5px; }
.pied h4 { font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; font-weight: 400; color: var(--seigle); height: 30px; display: flex; align-items: center; margin-bottom: 18px; }
.pied .col a { display: block; padding: 4px 0; }
.pied .col a:hover { color: var(--croute-texte); }
.pied .col a + h4 { margin-top: 26px; }
.pied .bas { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 56px; padding-top: 22px; border-top: 1px solid var(--trait); font-size: 13.5px; color: var(--seigle); }
@media (max-width: 900px) { .pied .grille { grid-template-columns: 1fr 1fr; } .pied .marque { grid-column: 1 / -1; } }

/* ---------- bulle de contact (brand/rappel.js) ---------- */
.rappel { position: fixed; right: 20px; bottom: 20px; z-index: 80; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; font-family: var(--f-sans); }
.rappel-lanceur { all: unset; box-sizing: border-box; position: relative; display: inline-flex; align-items: center; gap: 0; height: 52px; min-width: 52px; padding: 0 15px; border-radius: 99px; background: var(--croute); color: #fff; cursor: pointer; box-shadow: 0 0 0 1px rgba(255, 255, 255, .18) inset, 0 10px 30px -10px rgba(25, 22, 19, .6); transition: background .25s, translate .35s var(--ease), box-shadow .35s; }
.rappel-lanceur .ic { width: 22px; height: 22px; color: #fff; --ic-a: var(--dore); --ic-fond: var(--croute); flex: none; }
.rappel-lanceur .rappel-lib { max-width: 0; overflow: hidden; white-space: nowrap; font-weight: 600; font-size: 14.5px; opacity: 0; transition: max-width .45s var(--ease), opacity .3s, margin .45s var(--ease); }
.rappel-lanceur:hover, .rappel-lanceur:focus-visible { background: #B23B10; translate: 0 -2px; }
.rappel-lanceur:hover .rappel-lib, .rappel-lanceur:focus-visible .rappel-lib { max-width: 140px; opacity: 1; margin-left: 10px; }
.rappel-lanceur:focus-visible { outline: 2px solid var(--dore); outline-offset: 3px; }
.rappel-point { position: absolute; top: 2px; right: 2px; width: 12px; height: 12px; border-radius: 50%; background: var(--dore); border: 2px solid #fff; display: none; }
.rappel.nouveau .rappel-point { display: block; }
.rappel.nouveau .rappel-point::after { content: ""; position: absolute; inset: -2px; border-radius: 50%; background: var(--dore); animation: rappel-pouls 2s ease-out infinite; z-index: -1; }
@keyframes rappel-pouls { from { transform: scale(1); opacity: .6; } to { transform: scale(2.6); opacity: 0; } }
.rappel-carte { width: 340px; max-width: calc(100vw - 32px); background: var(--blanc); border: 1px solid var(--trait); border-radius: 14px; box-shadow: 0 2px 6px rgba(25, 22, 19, .06), 0 30px 60px -20px rgba(25, 22, 19, .45); transform-origin: 100% 100%; opacity: 0; translate: 0 12px; scale: .96; transition: opacity .25s var(--ease), translate .35s var(--ease), scale .35s var(--ease); }
.rappel.ouvert .rappel-carte { opacity: 1; translate: 0 0; scale: 1; }
.rappel-haut { display: flex; align-items: center; gap: 10px; padding: 12px 12px 12px 16px; border-bottom: 1px solid var(--trait); }
.rappel-av { width: 32px; height: 32px; border-radius: 50%; background: var(--mie); display: grid; place-items: center; flex: none; }
.rappel-qui { flex: 1; display: flex; flex-direction: column; line-height: 1.25; }
.rappel-qui b { font-size: 14px; }
.rappel-qui span { display: inline-flex; align-items: center; gap: 6px; font-family: var(--f-mono); font-size: 11px; color: var(--seigle); }
.rappel-qui i { width: 7px; height: 7px; border-radius: 50%; background: var(--fam-trait); }
.rappel-x { all: unset; box-sizing: border-box; width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; font: 400 20px/1 var(--f-mono); color: var(--seigle); cursor: pointer; transition: background .2s, color .2s; }
.rappel-x:hover { background: var(--mie); color: var(--four); }
.rappel-x:focus-visible { outline: 2px solid var(--croute); outline-offset: 1px; }
.rappel-corps { padding: 16px; display: grid; gap: 10px; }
.rappel-corps[hidden] { display: none; }
.rappel-titre { font-weight: 700; font-size: 17px; letter-spacing: -.015em; line-height: 1.3; }
.rappel-txt { font-size: 14px; color: var(--seigle); line-height: 1.5; }
.rappel-btns { display: grid; gap: 8px; margin-top: 4px; }
.rappel-btns .btn, .rappel-corps > .btn { justify-content: center; padding: 11px 14px; font-size: 14.5px; }
.rappel-champ { display: grid; gap: 6px; font-size: 13.5px; font-weight: 600; }
.rappel-champ small { font-weight: 400; color: var(--seigle); }
.rappel-champ input { font: 400 16px/1.25 var(--f-sans); color: var(--four); background: var(--farine); border: 1px solid var(--trait-fort); border-radius: 8px; padding: 11px 12px; transition: border-color .2s, box-shadow .2s, background .2s; }
.rappel-champ input:focus { outline: none; border-color: var(--four); background: var(--blanc); box-shadow: 0 0 0 3px rgba(204, 70, 22, .14); }
.rappel-err { font-size: 13px; color: var(--croute-texte); min-height: 0; }
.rappel-err:empty { display: none; }
.rappel-err a { text-decoration: underline; }
.rappel-merci { justify-items: start; }
.rappel-ok { width: 34px; height: 34px; border-radius: 50%; background: var(--fam-trait); display: grid; place-items: center; animation: rappel-saute .5s var(--ease); }
.rappel-ok::after { content: ""; width: 12px; height: 6px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; rotate: -45deg; translate: 0 -2px; }
@keyframes rappel-saute { from { scale: .3; } 60% { scale: 1.15; } }
@media (max-width: 520px) { .rappel { right: 12px; bottom: 12px; } .rappel-lanceur { height: 48px; min-width: 48px; padding: 0 13px; } }
@media (prefers-reduced-motion: reduce) { .rappel-carte, .rappel-lanceur, .rappel-lanceur .rappel-lib { transition: none; } .rappel.nouveau .rappel-point::after { animation: none; } }
@media print { .rappel { display: none !important; } }
