/* Microsite Tout Pain Tout Flamme · passe 1.
   Porte la planche finale (piste B « le récit du pain », Kevin, 09/11/2026) habillée
   du design system « Braise » (direction A, Kevin, 09/11/2026). Toutes les valeurs
   viennent de tpf-jetons.css, recopié tel quel : on n'écrit ici que des rôles. */

*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth;scroll-padding-top:72px}
body{
  margin:0;background:var(--tpf-fond);color:var(--tpf-texte);
  font-family:var(--tpf-texte-police);font-size:var(--tpf-t-16);line-height:1.55;
  -webkit-font-smoothing:antialiased;
}
img{display:block;max-width:100%}
a{color:inherit}
h1,h2{font-family:var(--tpf-titre);font-weight:400;font-style:normal;margin:0;text-wrap:balance;letter-spacing:-.005em}
p{margin:0}

/* Le seul geste de la page : Commander (--tpf-agir réservé à lui) */
.btn{
  display:inline-flex;align-items:center;justify-content:center;min-height:var(--tpf-cible);
  padding:0 var(--tpf-e-5);border-radius:var(--tpf-r-pilule);
  background:var(--tpf-agir);color:var(--tpf-sur-agir);
  font-weight:600;font-size:var(--tpf-t-16);text-decoration:none;white-space:nowrap;
  transition:background-color .15s ease;
}
.btn:hover{background:var(--tpf-agir-survol)}
.btn:focus-visible,.liens a:focus-visible,.marque:focus-visible{outline:2px solid var(--tpf-prix);outline-offset:3px}

/* 1 · La barre sombre collée */
.nav{
  position:sticky;top:0;z-index:10;
  display:flex;align-items:center;justify-content:space-between;gap:var(--tpf-e-4);
  padding:var(--tpf-e-2) var(--tpf-e-4);
  background:var(--tpf-fond);border-bottom:1px solid var(--tpf-trait);
}
.marque{font-family:var(--tpf-titre);font-size:var(--tpf-t-16);white-space:nowrap;text-decoration:none;line-height:1.1;min-height:var(--tpf-cible);display:flex;align-items:center}
.liens{display:none;gap:var(--tpf-e-5)}
.liens a{color:var(--tpf-texte-doux);text-decoration:none;min-height:var(--tpf-cible);display:flex;align-items:center}
.liens a:hover{color:var(--tpf-texte)}

/* 2 · L'ouverture : nuit, lueur de braise en haut de page */
.ouverture{background:var(--tpf-lueur)}
.ouverture-texte{padding:var(--tpf-e-7) var(--tpf-e-4) var(--tpf-e-6);display:flex;flex-direction:column;gap:var(--tpf-e-4)}
.sur-titre,.numero{font-size:var(--tpf-t-12);font-weight:600;letter-spacing:.08em;text-transform:uppercase;color:var(--tpf-prix)}
.ouverture h1{font-size:var(--tpf-t-46);line-height:1.02}
.ouverture p{color:var(--tpf-texte-doux);font-size:var(--tpf-t-20);max-width:34ch}
.ouverture-photo{width:100%;aspect-ratio:1/1;object-fit:cover}

/* 3 · Les chapitres : ambiance jour, pour le récit */
.chapitres{background:var(--tpf-fond);color:var(--tpf-texte);display:flex;flex-direction:column}
.chap{padding:var(--tpf-e-6) var(--tpf-e-4);display:flex;flex-direction:column;gap:var(--tpf-e-3)}
.chap + .chap{border-top:1px solid var(--tpf-trait)}
.chap h2{font-size:var(--tpf-t-26);line-height:1.1}
.manque{
  align-self:flex-start;font-size:var(--tpf-t-12);padding:2px var(--tpf-e-2);border-radius:var(--tpf-r-s);
  background:var(--tpf-alerte-lavis);color:var(--tpf-texte);
}

.chap-photo{width:100%;height:auto;aspect-ratio:4/3;object-fit:cover;border-radius:var(--tpf-r-m)}


/* 4 · Les marchés : nuit, le foyer monte du bas */
.marches{background:var(--tpf-foyer)}
.marches-cadre{padding:var(--tpf-e-7) var(--tpf-e-4) var(--tpf-e-8);display:flex;flex-direction:column;gap:var(--tpf-e-5)}
.marches h2{font-size:var(--tpf-t-34);line-height:1.05}
.lieux{display:grid;gap:var(--tpf-e-3)}
.lieu{
  background:var(--tpf-surface);border:1px solid var(--tpf-trait);border-radius:var(--tpf-r-m);
  padding:var(--tpf-e-4);display:flex;flex-direction:column;gap:var(--tpf-e-1);
}
.lieu-jour{font-family:var(--tpf-titre);font-size:var(--tpf-t-26);line-height:1.1}
.lieu-heures{color:var(--tpf-texte-doux);font-size:var(--tpf-t-14)}
.lieu-prochain{color:var(--tpf-prix);font-size:var(--tpf-t-14);font-weight:600}
.lieu-prochain:empty{display:none}
.marches-pied{display:flex;flex-wrap:wrap;align-items:center;gap:var(--tpf-e-3) var(--tpf-e-4)}
.marches-pied span{color:var(--tpf-texte-doux);font-size:var(--tpf-t-14)}

/* 5 · Le pied : nom, marchés et les trois pages légales */
.pied{
  padding:var(--tpf-e-5) var(--tpf-e-4) var(--tpf-e-6);border-top:1px solid var(--tpf-trait);
  display:flex;flex-direction:column;gap:var(--tpf-e-1);font-size:var(--tpf-t-14);color:var(--tpf-texte-doux);
}
.pied b{font-family:var(--tpf-titre);font-weight:400;font-size:var(--tpf-t-16);color:var(--tpf-texte)}
.pied-liens{display:flex;flex-wrap:wrap;gap:0 var(--tpf-e-4)}
.pied-liens a{color:var(--tpf-texte-doux);min-height:var(--tpf-cible);display:flex;align-items:center}
.pied-liens a:hover{color:var(--tpf-texte)}

/* 6 · Les pages légales : ambiance jour, une colonne de lecture. Les blancs « à fournir »
   reprennent la pastille .manque des chapitres, pour se voir d'un coup d'œil. */
.legal{background:var(--tpf-fond);color:var(--tpf-texte);padding:var(--tpf-e-6) var(--tpf-e-4) var(--tpf-e-8)}
.legal-texte{max-width:68ch;margin:0 auto;display:flex;flex-direction:column;gap:var(--tpf-e-3)}
.legal h1{font-size:var(--tpf-t-34);line-height:1.05}
.legal h2{font-size:var(--tpf-t-20);line-height:1.2;margin-top:var(--tpf-e-5)}
.legal-date{color:var(--tpf-texte-doux);font-size:var(--tpf-t-14)}
.legal-chapo{font-size:var(--tpf-t-20);color:var(--tpf-texte-doux)}
.legal ul{margin:0;padding-left:var(--tpf-e-5);display:flex;flex-direction:column;gap:var(--tpf-e-2)}
.legal a{color:var(--tpf-agir);font-weight:600}
.legal .manque{display:inline-block;vertical-align:baseline}
.legal .fiche{list-style:none;padding:0;background:var(--tpf-surface);border:1px solid var(--tpf-trait);border-radius:var(--tpf-r-m)}
.legal .fiche li{display:flex;flex-wrap:wrap;justify-content:space-between;gap:var(--tpf-e-1) var(--tpf-e-4);padding:var(--tpf-e-3) var(--tpf-e-4)}
.legal .fiche li + li{border-top:1px solid var(--tpf-trait)}
.legal .fiche b{font-weight:600}

/* Ordinateur : la photo à côté, les trois chapitres en colonnes, les marchés en encart */
@media (min-width:860px){
  .nav{padding:var(--tpf-e-2) var(--tpf-e-7)}
  .liens{display:flex}
  .marque{font-size:var(--tpf-t-20)}
  .ouverture{display:grid;grid-template-columns:1fr 1fr;align-items:stretch}
  .ouverture-texte{padding:var(--tpf-e-8) var(--tpf-e-7);justify-content:center}
  .ouverture h1{font-size:var(--tpf-t-64)}
  .ouverture-photo{height:100%;aspect-ratio:auto;max-height:640px}
  .chapitres{display:grid;grid-template-columns:repeat(3,1fr);gap:var(--tpf-e-6);padding:var(--tpf-e-8) var(--tpf-e-7)}
  .chap{padding:0}
  .chap + .chap{border-top:0}
  /* Sur la planche, les marchés sont un encart sombre posé sur la page claire du récit.
     Le fond reprend celui de .tpf-jour : la classe ne peut pas se poser ici sans
     éclaircir aussi l'encart, les jetons n'ayant pas de classe « nuit ». */
  .marches{padding:0 var(--tpf-e-7) var(--tpf-e-8);background:var(--tpf-mie-200)}
  .marches-cadre{
    max-width:1100px;margin:0 auto;padding:var(--tpf-e-6) var(--tpf-e-6) var(--tpf-e-8);
    border-radius:var(--tpf-r-l);background:var(--tpf-foyer);
  }
  .lieux{grid-template-columns:1fr 1fr}
  .legal{padding:var(--tpf-e-8) var(--tpf-e-7)}
  .legal h1{font-size:var(--tpf-t-46)}
  .pied{flex-direction:row;justify-content:space-between;align-items:center;padding:var(--tpf-e-5) var(--tpf-e-7) var(--tpf-e-6)}
}
@media (min-width:1280px){
  .chapitres,.ouverture-texte{padding-left:var(--tpf-e-8);padding-right:var(--tpf-e-8)}
}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}}
