/* patechinois.ca — feuille de style commune
   Palette : les trois étages du pâté chinois (bœuf, blé d'Inde, purée), la brique du ketchup,
   la nappe à carreaux et le persil. */

@font-face { font-family: 'Nunito Sans'; font-style: normal; font-weight: 200 1000; font-display: swap; src: url('/polices/nunito-sans.woff2') format('woff2'); }
@font-face { font-family: 'Nunito Sans'; font-style: italic; font-weight: 400; font-display: swap; src: url('/polices/nunito-sans-italique.woff2') format('woff2'); }
@font-face { font-family: 'Zilla Slab'; font-style: normal; font-weight: 700; font-display: swap; src: url('/polices/zilla-slab-700.woff2') format('woff2'); }
@font-face { font-family: 'Caveat'; font-style: normal; font-weight: 700; font-display: swap; src: url('/polices/caveat-700.woff2') format('woff2'); }

:root {
  --nappe: #FBF1DD;
  --papier: #FFFCF4;
  --brique: #A8412B;
  --brique-fonce: #8A3320;
  --brique-ombre: #7A2C1B;
  --ble: #E7A93A;
  --ble-pale: #F3C77A;
  --boeuf: #3B2A1D;
  --boeuf-moyen: #7A4A2E;
  --puree: #EFE0BE;
  --persil: #4E6B3B;
  --persil-fonce: #3B5A2B;
  --fonte: #2E2016;
  --texte: #3B2A1D;
  --texte-2: #5B4632;
  --texte-3: #75604A;
  --ligne: #E4D3B4;
  --ligne-douce: #EEDFC0;
  --sable: #F6EAD3;
  --focus: #3B2A1D;

  --f-texte: 'Nunito Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --f-titre: 'Zilla Slab', Georgia, 'Times New Roman', serif;
  --f-main: 'Caveat', 'Bradley Hand', 'Segoe Print', cursive;

  --ombre-carte: 0 20px 50px -28px rgba(90, 50, 20, .55);
  --ombre-douce: 0 8px 26px -20px rgba(90, 50, 20, .5);
  --largeur: 1120px;
  --marge: clamp(16px, 4vw, 32px);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
@view-transition { navigation: auto; }

body {
  margin: 0;
  font-family: var(--f-texte);
  font-size: clamp(1rem, .3vw + .94rem, 1.125rem);
  line-height: 1.65;
  color: var(--texte);
  background: var(--nappe);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; }
img { height: auto; display: block; }
a { color: var(--brique); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--brique-fonce); text-decoration-thickness: 2px; }
p { margin: 0 0 1em; }
sup { line-height: 0; }
h1, h2, h3, h4 { font-family: var(--f-titre); font-weight: 700; line-height: 1.1; margin: 0; color: inherit; text-wrap: balance; }
h1 { font-size: clamp(2.45rem, 5vw + .8rem, 4.25rem); letter-spacing: -.022em; line-height: 1.02; }
h2 { font-size: clamp(1.9rem, 2.4vw + 1rem, 2.75rem); letter-spacing: -.016em; }
h3 { font-size: clamp(1.2rem, .6vw + 1.05rem, 1.4rem); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--ble-pale); color: var(--boeuf); }
input, textarea, select, button { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }

.visuellement-cache {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.evitement { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--boeuf); color: var(--papier); padding: 10px 16px; border-radius: 10px; font-weight: 800; }
.evitement:focus { top: 12px; color: var(--papier); }
.enveloppe { max-width: var(--largeur); margin-inline: auto; padding-inline: var(--marge); }
.etroit { max-width: 760px; }
.main { font-family: var(--f-main); font-weight: 700; color: var(--brique); font-size: 1.6em; line-height: 1.1; }

/* ---------- Boutons ---------- */
.bouton {
  --fond: var(--brique); --ecrit: #FFF7EA; --ombre: var(--brique-ombre);
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 46px; padding: .7em 1.35em; border-radius: 999px; border: 0;
  background: var(--fond); color: var(--ecrit); box-shadow: 0 3px 0 var(--ombre);
  font-weight: 800; font-size: 1rem; line-height: 1.2; text-decoration: none; text-align: center;
  transition: transform .12s ease, box-shadow .12s ease, background-color .12s ease;
}
.bouton:hover { color: var(--ecrit); background: var(--brique-fonce); text-decoration: none; }
.bouton:active { transform: translateY(3px); box-shadow: 0 0 0 var(--ombre); }
.bouton--papier { --fond: var(--papier); --ecrit: var(--boeuf); --ombre: var(--ligne); box-shadow: inset 0 0 0 2px var(--ligne), 0 3px 0 var(--ligne); }
.bouton--papier:hover { background: #fff; color: var(--boeuf); }
.bouton--sombre { --fond: var(--boeuf); --ombre: #1F150C; }
.bouton--sombre:hover { background: #2a1d13; }
.bouton--ble { --fond: var(--ble-pale); --ecrit: var(--boeuf); --ombre: #C79A45; }
.bouton--ble:hover { background: #f7d48f; color: var(--boeuf); }
.bouton--persil { --fond: var(--persil); --ombre: #2F4422; }
.bouton--persil:hover { background: var(--persil-fonce); }
.bouton--petit { min-height: 38px; padding: .45em 1em; font-size: .9rem; }
.bouton[disabled] { opacity: .6; cursor: progress; }

/* ---------- En-tête ---------- */
.entete { background: rgba(251, 241, 221, .94); border-bottom: 2px solid #EAD8B6; position: relative; z-index: 40; }
@supports (backdrop-filter: blur(8px)) { .entete { backdrop-filter: blur(8px); } }
.entete__barre { max-width: var(--largeur); margin-inline: auto; padding: 10px var(--marge); display: flex; align-items: center; gap: 16px; }
.marque { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--boeuf); flex: 0 0 auto; }
.marque:hover { color: var(--boeuf); }
.marque__logo { width: 46px; height: 20px; flex: 0 0 auto; filter: drop-shadow(0 1px 1px rgba(122, 74, 46, .45)) drop-shadow(0 3px 5px rgba(122, 74, 46, .28)); }
.marque__mot { font-family: var(--f-main); font-weight: 700; font-size: 29px; line-height: 1; padding-top: 2px; white-space: nowrap; }
.marque__mot span { color: var(--brique); }
.nav { margin-left: auto; }
.nav__liste { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; }
.nav__liste a { display: block; padding: 8px 12px; border-radius: 9px; color: var(--texte-2); font-weight: 700; font-size: .95rem; text-decoration: none; white-space: nowrap; }
.nav__liste a:hover { background: var(--sable); color: var(--boeuf); }
.nav__liste a[aria-current="page"] { color: var(--brique); box-shadow: inset 0 -3px 0 var(--brique); border-radius: 9px 9px 0 0; }
.entete__cta { flex: 0 0 auto; }

@media (min-width: 990px) {
  .entete { position: sticky; top: 0; }
}
/* Écrans moyens : la barre se resserre pour garder les six liens sur une ligne */
@media (min-width: 990px) and (max-width: 1100px) {
  .entete__barre { gap: 12px; }
  .nav__liste a { padding: 8px 9px; font-size: .9rem; }
}
@media (max-width: 989px) {
  .entete__barre { flex-wrap: wrap; row-gap: 4px; padding-bottom: 6px; }
  .nav { order: 3; flex: 0 0 calc(100% + 2 * var(--marge)); min-width: 0; margin: 0 calc(-1 * var(--marge)); }
  .nav__liste { overflow-x: auto; padding: 2px var(--marge) 6px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .nav__liste::-webkit-scrollbar { display: none; }
  .nav__liste a { background: var(--papier); border: 1px solid var(--ligne-douce); padding: 6px 13px; border-radius: 999px; font-size: .92rem; }
  .nav__liste a[aria-current="page"] { box-shadow: none; border-color: var(--brique); border-radius: 999px; }
  .entete__cta { margin-left: auto; }
}
@media (max-width: 420px) {
  .marque__mot { font-size: 25px; }
  .marque__logo { width: 38px; height: 17px; }
  .entete__cta { padding-inline: 1em; font-size: .92rem; min-height: 42px; }
}

/* ---------- Sections ---------- */
.section { padding-block: clamp(56px, 8vw, 104px); }
.section--brique { background: var(--brique); color: #FFF7EA; --focus: #FFF7EA; }
.section--fonte { background: var(--fonte); color: #F0E2C7; --focus: var(--ble-pale); }
.section--persil { background: var(--persil); color: #FFF7EA; --focus: #FFF7EA; }
.section--sable { background: #F5E6C8; }
.entete-section { margin-bottom: clamp(26px, 4vw, 44px); }
.entete-section--centre { text-align: center; }
.entete-section--centre .chapeau { margin-inline: auto; }
.chapeau { max-width: 60ch; font-size: 1.06em; color: var(--texte-2); margin: .55em 0 0; }
.section--brique .chapeau { color: #FBE4CB; }
.section--fonte .chapeau { color: #D8C6A6; }
.section--persil .chapeau { color: #E8F0DC; }
/* Annotation manuscrite : le mot de mémère dans la marge, accroché au titre */
.note-main { display: block; font-family: var(--f-main); font-weight: 700; font-size: clamp(1.45rem, 1vw + 1.1rem, 1.8rem); line-height: 1; color: var(--brique); transform: rotate(-2deg); transform-origin: left bottom; margin-bottom: 6px; }
.entete-section--centre .note-main { transform-origin: center bottom; }
.section--brique .note-main { color: var(--ble-pale); }
.section--fonte .note-main { color: var(--ble); }
.section--persil .note-main { color: var(--ble-pale); }

/* ---------- Accueil : la nappe et la coupe ---------- */
.nappe {
  background-color: #F3E1BF;
  background-image:
    linear-gradient(0deg, rgba(168, 65, 43, .14) 25%, transparent 25%, transparent 75%, rgba(168, 65, 43, .14) 75%),
    linear-gradient(90deg, rgba(168, 65, 43, .14) 25%, transparent 25%, transparent 75%, rgba(168, 65, 43, .14) 75%);
  background-size: 46px 46px;
  padding: clamp(14px, 3.4vw, 44px) clamp(10px, 3vw, 32px);
}
.hero { max-width: 1120px; margin-inline: auto; background: var(--papier); border-radius: clamp(20px, 3vw, 30px); border: 1px solid #F0E2C4; box-shadow: 0 24px 60px -30px rgba(90, 50, 20, .55); padding: clamp(26px, 5vw, 64px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: clamp(24px, 4vw, 52px); align-items: center; }
.hero__accroche { font-family: var(--f-main); font-weight: 700; font-size: clamp(1.6rem, 1.4vw + 1.1rem, 2.05rem); color: var(--brique); line-height: 1; margin: 0 0 10px; }
.hero h1 { margin-bottom: .35em; }
.hero__texte { font-size: clamp(1.05rem, .5vw + .95rem, 1.22rem); color: var(--texte-2); max-width: 36em; margin-bottom: 1.5em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__coupe { margin: 0; }
.hero__coupe .coupe-cadre { transform: rotate(-1.5deg); }
.hero__coupe figcaption { text-align: center; font-family: var(--f-main); font-weight: 700; font-size: clamp(1.15rem, .6vw + 1rem, 1.45rem); color: var(--texte-3); margin-top: 10px; line-height: 1.15; }
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; }
  .hero__coupe { order: -1; max-width: 520px; margin-inline: auto; width: 100%; }
}

.coupe { width: 100%; height: auto; display: block; overflow: visible; }
.coupe .etiquette { font-family: var(--f-main); font-weight: 700; font-size: 30px; fill: var(--boeuf); }
.coupe .etiquette--rouge { fill: var(--brique); }
.coupe .fleche { fill: none; stroke: var(--boeuf); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
@media (prefers-reduced-motion: no-preference) {
  .coupe .etage { animation: pose .55s cubic-bezier(.3, 1.4, .5, 1) both; transform-box: fill-box; }
  .coupe .etage--bas { animation-delay: .1s; }
  .coupe .etage--milieu { animation-delay: .38s; }
  .coupe .etage--dessus { animation-delay: .66s; }
  .coupe .paprika { animation: saupoudre .5s ease-out 1.1s both; }
  .coupe .annotations { animation: apparait .6s ease-out 1.25s both; }
}
@keyframes pose { from { transform: translateY(-46px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes saupoudre { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
@keyframes apparait { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Histoire ---------- */
.histoire { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.histoire__texte p { font-size: 1.06em; line-height: 1.75; color: #4A3826; max-width: 62ch; }
.faits { list-style: none; margin: 0; padding: 0; border-top: 2px dashed var(--ligne); }
.faits li { display: grid; grid-template-columns: 44px 1fr; gap: 4px 14px; padding: 18px 0; border-bottom: 2px dashed var(--ligne); }
.faits__icone { grid-row: span 2; width: 44px; height: 44px; object-fit: contain; }
.faits strong { font-family: var(--f-titre); font-size: 1.16rem; }
.faits span:last-child { color: var(--texte-2); font-size: .97rem; line-height: 1.55; }
@media (max-width: 860px) { .histoire { grid-template-columns: 1fr; } }

/* ---------- Le débat ---------- */
.debat { max-width: 920px; margin-inline: auto; }
.debat__choix { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; margin: 0; }
.vote {
  display: block; width: 100%; text-align: left; background: var(--papier); color: var(--boeuf);
  border: 3px solid var(--papier); border-radius: 20px; padding: 22px 22px 20px; box-shadow: 0 8px 0 var(--brique-ombre);
  transition: transform .12s ease, box-shadow .12s ease;
}
.vote:hover { transform: translateY(-2px); box-shadow: 0 10px 0 var(--brique-ombre); }
.vote:active { transform: translateY(6px); box-shadow: 0 2px 0 var(--brique-ombre); }
.vote[aria-pressed="true"] { border-color: var(--ble-pale); box-shadow: 0 8px 0 var(--brique-ombre), 0 0 0 5px rgba(243, 199, 122, .55); }
.vote[disabled]:not([aria-pressed="true"]) { opacity: .72; cursor: default; transform: none; }
.vote__embleme { width: 64px; height: 64px; object-fit: contain; display: block; filter: drop-shadow(0 2px 0 rgba(59, 42, 29, .25)); }
.vote__nom { display: block; font-family: var(--f-titre); font-weight: 700; font-size: 1.5rem; margin: 8px 0 4px; }
.vote__desc { display: block; font-size: .97rem; line-height: 1.5; color: var(--texte-2); }
.vote__action { display: block; margin-top: 12px; font-weight: 800; color: var(--brique); }
/* Le pointage du débat : une affiche de papier, trait d'encre et aplats, comme les illustrations */
.pointage {
  --encre: #3B2A1D;
  position: relative; margin-top: 38px; color: var(--boeuf);
  display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 4px clamp(8px, 3vw, 28px);
  padding: clamp(20px, 3.6vw, 34px) clamp(16px, 3.6vw, 38px) clamp(18px, 2.8vw, 26px);
  background: var(--papier); border: 3px solid var(--encre); border-radius: 22px;
  box-shadow: 8px 9px 0 var(--brique-ombre);
}
.pointage__equipe { display: grid; grid-template-columns: auto auto; justify-content: center; align-items: center; column-gap: clamp(10px, 2.4vw, 22px); text-align: left; min-width: 0; }
.pointage__embleme { grid-row: 1 / span 4; width: clamp(70px, 13vw, 128px); height: clamp(70px, 13vw, 128px); object-fit: contain; transition: transform .3s ease; }
#equipe-etage .pointage__embleme { transform: rotate(-5deg); }
#equipe-melange .pointage__embleme { transform: rotate(5deg); }
.pointage__nom { margin: 0; font-family: var(--f-main); font-weight: 700; font-size: clamp(1.5rem, 1.4vw + 1.1rem, 2.1rem); line-height: 1; }
.pointage__chiffre { margin: 0; font-family: var(--f-titre); font-weight: 700; line-height: .95; letter-spacing: -.02em; font-size: clamp(2.9rem, 7.4vw, 5rem); font-variant-numeric: tabular-nums; }
#equipe-etage .pointage__nom, #equipe-etage .pointage__chiffre { color: var(--brique); }
#equipe-melange .pointage__nom, #equipe-melange .pointage__chiffre { color: var(--persil-fonce, #3C5630); }
.pointage__pct { font-size: .4em; vertical-align: 1em; margin-left: .08em; }
.pointage__votes { margin: 2px 0 0; font-size: .92rem; font-weight: 700; color: var(--texte-2); min-height: 1.5em; }
.pointage__toi { justify-self: start; margin: 4px 0 0; padding: 2px 12px; border: 2px solid var(--encre); border-radius: 999px; background: var(--ble); color: var(--boeuf); font-weight: 800; font-size: .82rem; line-height: 1.4; transform: rotate(-2deg); }
.pointage__equipe.est-mon-equipe .pointage__embleme { transform: rotate(0) scale(1.08); }
.pointage__milieu { display: flex; align-items: center; justify-content: center; }
.pointage__contre { font-family: var(--f-main); font-weight: 700; font-size: clamp(1.3rem, 2.6vw, 1.9rem); color: var(--texte-3); transform: rotate(-6deg); }
/* La barre : un pâté chinois vu de côté. À gauche il est étagé, à droite il est mélangé. */
.pointage__barre { grid-column: 1 / -1; position: relative; display: flex; height: 46px; margin-top: 20px; border: 3px solid var(--encre); border-radius: 12px; overflow: hidden; background: var(--puree); }
.pointage__barre::after { content: ''; position: absolute; left: calc(50% - 1px); bottom: 0; width: 0; height: 0; border: 7px solid transparent; border-bottom-color: var(--encre); margin-left: -6px; }
.pointage__etage { width: 50%; background: url('/img/barre-etage.svg') 0 0 / auto 100% repeat-x; border-right: 3px solid var(--encre); transition: width .9s cubic-bezier(.3, 1, .4, 1); }
.pointage__melange { flex: 1; background: url('/img/barre-melange.svg') 0 0 / auto 100% repeat-x; }
.pointage__total { grid-column: 1 / -1; margin: 12px 0 0; text-align: center; font-weight: 700; color: var(--texte-2); }
@media (prefers-reduced-motion: reduce) { .pointage__etage, .pointage__embleme { transition: none; } }
@media (max-width: 620px) {
  .pointage__equipe { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .pointage__embleme { grid-row: auto; margin-bottom: 6px; }
  .pointage__toi { justify-self: center; }
}
.debat__note { text-align: center; color: #FBE4CB; font-size: .92rem; margin-top: 12px; }

/* ---------- Trois niveaux (accueil) ---------- */
.niveaux { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.niveaux li:nth-child(1) .carte-niveau { transform: rotate(-1.2deg); }
.niveaux li:nth-child(2) .carte-niveau { transform: rotate(.7deg); }
.niveaux li:nth-child(3) .carte-niveau { transform: rotate(-.5deg); }
.carte-niveau { display: block; height: 100%; text-decoration: none; color: var(--boeuf); background: var(--papier); border: 1px solid var(--ligne-douce); border-radius: 8px; padding: 22px 22px 20px; box-shadow: var(--ombre-carte); position: relative; transition: transform .2s ease; }
.carte-niveau__image { display: block; width: 100%; height: 170px; object-fit: contain; margin-bottom: 14px; }
.carte-niveau:hover { color: var(--boeuf); transform: rotate(0) translateY(-3px) !important; }
.carte-niveau__nom { font-family: var(--f-titre); font-weight: 700; font-size: 1.32rem; display: block; margin: 0 -22px 14px; padding: 0 22px 12px; border-bottom: 1px solid rgba(168, 65, 43, .55); }
.carte-niveau__desc { display: block; color: var(--texte-2); font-size: .98rem; line-height: 1.55; }
.carte-niveau__meta { display: block; margin-top: 12px; font-weight: 800; color: var(--brique); font-size: .95rem; }
@media (max-width: 860px) { .niveaux { grid-template-columns: 1fr; } }

.panneau-folie { margin-top: 30px; display: grid; grid-template-columns: auto 1fr auto; gap: 18px 22px; align-items: center; background: var(--persil); color: #FFF7EA; border-radius: 20px; padding: 22px 26px; box-shadow: 0 10px 28px -18px rgba(40, 60, 25, .8); --focus: #FFF7EA; }
.panneau-folie__de { width: 92px; height: auto; flex: none; margin-block: -10px; filter: drop-shadow(0 3px 0 rgba(0, 0, 0, .18)); }
.panneau-folie h3 { font-size: 1.4rem; margin-bottom: 2px; }
.panneau-folie p { margin: 0; color: #E8F0DC; }
@media (max-width: 640px) { .panneau-folie { grid-template-columns: 1fr; text-align: left; } .panneau-folie__de { display: none; } }

/* ---------- Les cousins français ---------- */
.tranche { display: block; width: 100%; height: auto; overflow: visible; }
.cousins { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.cousins--trois { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cousins--grand { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px; }
.cousins li:nth-child(4n+1) .carte-cousin { transform: rotate(-.9deg); }
.cousins li:nth-child(4n+2) .carte-cousin { transform: rotate(.6deg); }
.cousins li:nth-child(4n+3) .carte-cousin { transform: rotate(-.4deg); }
.cousins li:nth-child(4n+4) .carte-cousin { transform: rotate(.8deg); }
.carte-cousin {
  display: flex; flex-direction: column; height: 100%; text-decoration: none; color: var(--boeuf);
  background: var(--papier); border: 1px solid var(--ligne-douce); border-radius: 8px; box-shadow: var(--ombre-carte);
  padding: 18px 20px 20px; transition: transform .2s ease;
}
.carte-cousin:hover { color: var(--boeuf); transform: rotate(0) translateY(-3px) !important; }
.carte-cousin__image { display: block; width: 100%; height: 150px; object-fit: contain; margin: 2px 0 14px; }
.cousins--grand .carte-cousin__image { height: 210px; }
.carte-cousin__surnom { font-family: var(--f-main); font-weight: 700; font-size: 1.35rem; line-height: 1; color: var(--brique); }
.carte-cousin__nom { display: block; font-family: var(--f-titre); font-weight: 700; font-size: 1.24rem; line-height: 1.15; margin: 4px 0 10px; padding-bottom: 10px; border-bottom: 1px solid rgba(168, 65, 43, .45); }
.carte-cousin__desc { flex: 1; color: var(--texte-2); font-size: .96rem; line-height: 1.55; }
.carte-cousin__meta { margin-top: 12px; font-weight: 800; font-size: .92rem; color: var(--brique); }
.cousins--grand .carte-cousin { padding: 24px 26px 24px; }
.cousins--grand .carte-cousin__nom { font-size: 1.5rem; }
.cousins--grand .carte-cousin__desc { font-size: 1.02rem; }
.cousins__retour { margin: 30px 0 0; text-align: center; }
@media (max-width: 1000px) { .cousins { grid-template-columns: repeat(2, minmax(0, 1fr)); } .cousins--trois { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) { .cousins--trois { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .cousins, .cousins--grand { grid-template-columns: 1fr; } }

/* Fil d'Ariane */
.fil { padding-top: clamp(18px, 3vw, 30px); font-size: .93rem; }
.fil ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 8px; }
.fil li + li::before { content: '/'; margin-right: 8px; color: var(--texte-3); }
.fil a { color: var(--texte-2); font-weight: 700; }
.fil [aria-current] { color: var(--texte-3); }

/* Page d'un cousin */
.cousin__tete { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(20px, 4vw, 52px); align-items: center; padding: clamp(14px, 2.5vw, 26px) 0 clamp(24px, 4vw, 40px); }
.cousin__accroche { max-width: 34em; margin: .55em 0 0; font-size: clamp(1.05rem, .5vw + .95rem, 1.22rem); color: var(--texte-2); }
.cousin__image { margin: 0; }
.cousin__illus { display: block; width: 100%; max-width: 480px; height: auto; margin-inline: auto; transform: rotate(-1.5deg); }
.cousin__image figcaption { margin-top: 8px; text-align: center; font-family: var(--f-main); font-weight: 700; font-size: clamp(1.15rem, .6vw + 1rem, 1.4rem); line-height: 1.15; color: var(--texte-3); }
@media (max-width: 760px) { .cousin__tete { grid-template-columns: 1fr; } .cousin__image { max-width: 440px; } }

.atelier--cousin { grid-template-columns: minmax(270px, 340px) minmax(0, 1fr); grid-template-rows: auto 1fr; grid-template-areas: "portions fiche" "recit fiche"; }
.atelier--cousin > #fiche { grid-area: fiche; }
.cousin__portions { grid-area: portions; background: var(--papier); border: 1px solid var(--ligne-douce); border-radius: 18px; box-shadow: var(--ombre-douce); padding: 16px 20px 18px; }
.cousin__portions .reglage__titre { float: none; margin-bottom: 10px; }
.cousin__recit { grid-area: recit; }
.cousin__recit section + section { margin-top: 22px; padding-top: 20px; border-top: 2px dashed var(--ligne); }
.cousin__recit h2 { font-size: 1.4rem; margin-bottom: 10px; }
.cousin__recit p { color: #4A3826; line-height: 1.7; }
.cousin__recit p:last-child { margin-bottom: 0; }
@media (max-width: 899px) { .atelier--cousin { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; grid-template-areas: "portions" "fiche" "recit"; } }

/* La photo de famille */
.famille { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 26px 20px; align-items: start; }
.famille__lien { display: block; text-align: center; text-decoration: none; color: var(--boeuf); }
.famille__lien:hover { color: var(--brique); }
.famille__image { display: block; width: 100%; height: 150px; object-fit: contain; margin-bottom: 10px; transition: transform .2s ease; }
.famille__lien:hover .famille__image { transform: translateY(-3px); }
.famille__nom { display: block; font-family: var(--f-titre); font-weight: 700; font-size: 1.08rem; line-height: 1.2; }
.famille__surnom { display: block; font-family: var(--f-main); font-weight: 700; font-size: 1.15rem; color: var(--brique); line-height: 1.1; margin-top: 2px; }
.famille__etages { list-style: none; margin: 12px 0 0; padding: 10px 0 0; border-top: 1px solid rgba(168, 65, 43, .35); text-align: center; font-size: .9rem; line-height: 1.45; color: var(--texte-2); }
.famille__etages li + li::before { content: ''; display: block; width: 12px; height: 1px; margin: 4px auto; background: var(--ligne); }
@media (max-width: 1000px) { .famille { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 560px) { .famille { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.panneau-retour, .panneau-cousins { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; background: var(--papier); border: 2px dashed var(--ligne); border-radius: 18px; padding: 22px 26px; }
.panneau-retour h2 { font-size: 1.6rem; margin-bottom: 4px; }
.panneau-retour p, .panneau-cousins p { margin: 0; color: var(--texte-2); max-width: 52ch; }
.panneau-cousins { margin-top: 22px; }
.panneau-cousins h3 { font-size: 1.3rem; margin-bottom: 2px; }

/* ---------- Quoi boire ---------- */
.accords { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 30px 34px; }
.accord { border-top: 2px solid rgba(240, 226, 199, .18); padding-top: 18px; }
.accord__tete { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.accord__icone { width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; flex: 0 0 auto; background: var(--puree); box-shadow: 0 0 0 4px rgba(239, 224, 190, .22); }
.accord__picto { width: 40px; height: 40px; object-fit: contain; }
.accord h3 { color: #FFF7EA; font-size: 1.25rem; }
.accord__cepages { color: var(--ble); font-weight: 800; font-size: .92rem; margin: 2px 0 8px; }
.accord p:last-child { color: #D8C6A6; font-size: .98rem; line-height: 1.6; margin: 0; }
.accords__fin { text-align: center; font-family: var(--f-main); font-weight: 700; font-size: 1.6rem; color: var(--ble); margin: 40px 0 0; }

/* ---------- Le carnet (avis) ---------- */
.moyenne { display: inline-flex; align-items: center; gap: 12px; margin-top: 14px; }
.moyenne__note { font-family: var(--f-titre); font-weight: 700; font-size: 2.3rem; color: #C98A1C; line-height: 1; }
.moyenne__etoiles { color: var(--ble); font-size: 1.35rem; letter-spacing: 2px; line-height: 1; }
.moyenne__compte { font-size: .9rem; color: var(--texte-3); font-weight: 700; }
.etoiles { color: var(--ble); letter-spacing: 1px; }

.liste-avis { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.avis { background: var(--papier); border: 1px solid var(--ligne-douce); border-radius: 16px; padding: 20px; display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: 16px; }
.avis__initiale { width: 46px; height: 46px; border-radius: 50%; background: var(--brique); color: #FFF7EA; font-family: var(--f-titre); font-weight: 700; font-size: 1.25rem; display: grid; place-items: center; }
.avis__tete { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; }
.avis__nom { font-family: var(--f-titre); font-weight: 700; font-size: 1.08rem; }
.avis__date { font-size: .85rem; color: var(--texte-3); }
.avis__etoiles { margin: 2px 0 6px; }
.avis__texte { margin: 0; color: #4A3826; overflow-wrap: anywhere; white-space: pre-line; }
.avis__photo { margin-top: 12px; max-height: 260px; width: auto; max-width: 100%; border-radius: 12px; border: 1px solid var(--ligne-douce); }
.carnet__vide { background: var(--papier); border: 2px dashed var(--ligne); border-radius: 16px; padding: 26px; text-align: center; color: var(--texte-2); }
#liste-avis-zone { margin-top: 28px; }
.carnet__barre:not([hidden]) + #liste-avis-zone { margin-top: 0; }
.carnet__barre { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin: 34px 0 16px; }
.carnet__plage { font-size: .92rem; color: var(--texte-3); font-weight: 700; margin: 0; }
.segment { display: inline-flex; gap: 4px; background: var(--sable); border: 1px solid #E8D6B4; border-radius: 999px; padding: 4px; }
.segment button { border: 0; background: transparent; border-radius: 999px; padding: 6px 15px; font-weight: 800; font-size: .9rem; color: var(--texte-3); }
.segment button[aria-pressed="true"] { background: var(--brique); color: #FFF7EA; }
.carnet__plus { text-align: center; margin-top: 22px; display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }

/* Formulaires */
.formulaire { background: var(--papier); border: 1px solid var(--ligne-douce); border-radius: 18px; padding: clamp(18px, 3vw, 26px); box-shadow: var(--ombre-douce); }
.formulaire__titre { font-family: var(--f-titre); font-weight: 700; font-size: 1.3rem; margin: 0 0 14px; }
.champ { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.champ label, .champ legend { font-weight: 800; font-size: .95rem; color: var(--texte-2); padding: 0; }
.champ input[type="text"], .champ input[type="email"], .champ textarea {
  width: 100%; padding: 12px 14px; border-radius: 11px; border: 2px solid var(--ligne); background: #fff; font-size: 1rem; color: var(--boeuf);
}
.champ textarea { resize: vertical; min-height: 110px; }
.champ input:focus-visible, .champ textarea:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; border-color: var(--boeuf); }
::placeholder { color: #8B765C; opacity: 1; }
.aide { font-size: .88rem; color: var(--texte-3); margin: 0; line-height: 1.5; }
.rangee { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0 18px; align-items: start; }
@media (max-width: 560px) { .rangee { grid-template-columns: 1fr; } }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }

.notation { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: 2px; background: #fff; border: 2px solid var(--ligne); border-radius: 11px; padding: 4px 10px; }
.notation input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.notation label { font-size: 30px; line-height: 1.15; color: #D9C9AE; cursor: pointer; padding: 0 1px; transition: color .1s; }
.notation label:hover, .notation label:hover ~ label, .notation input:checked ~ label { color: var(--ble); }
.notation input:focus-visible + label { outline: 3px solid var(--focus); outline-offset: 1px; border-radius: 4px; }

.fichier { display: flex; flex-direction: row; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.fichier__bouton { display: inline-flex; align-items: center; gap: 8px; background: #fff; border: 2px solid var(--ligne); border-radius: 11px; padding: 9px 15px; font-weight: 700; font-size: .95rem; color: var(--texte-2); cursor: pointer; }
.fichier__bouton:hover { border-color: var(--texte-3); }
.fichier input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.fichier input:focus-visible + .fichier__bouton { outline: 3px solid var(--focus); outline-offset: 2px; }
.fichier__apercu { position: relative; }
.fichier__apercu img { height: 58px; width: auto; border-radius: 9px; border: 2px solid var(--ligne); }
.fichier__retirer { position: absolute; top: -9px; right: -9px; width: 26px; height: 26px; border-radius: 50%; border: 0; background: var(--brique); color: #fff; font-weight: 800; line-height: 1; display: grid; place-items: center; }
.pot-de-miel { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.message { border-radius: 11px; padding: 11px 15px; font-size: .95rem; line-height: 1.5; margin: 14px 0 0; }
.message--erreur { background: #FBE4E0; border: 1px solid #D98C7D; color: #7E2E1C; }
.message--ok { background: #E5EFD8; border: 1px solid #A9C48A; color: #34502A; }

/* ---------- Pied de page ---------- */
.pied { background: var(--boeuf); color: #E9D8BF; position: relative; margin-top: 0; --focus: var(--ble-pale); }
.pied::before { content: ''; display: block; height: 18px; background: linear-gradient(to bottom, var(--puree) 0 33%, var(--ble) 33% 66%, var(--boeuf-moyen) 66% 100%); }
.pied__contenu { max-width: var(--largeur); margin-inline: auto; padding: 44px var(--marge) 40px; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 28px 48px; }
.pied .marque { color: #FFF7EA; }
.pied .marque__mot span { color: var(--ble); }
.pied__devise { font-family: var(--f-main); font-weight: 700; font-size: 1.5rem; color: var(--ble); margin: 6px 0 14px; line-height: 1.1; }
.pied__note { font-size: .9rem; color: #C4AE8A; margin: 0; }
.pied__liens { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 18px; }
.pied__liens a { color: #F0E2C7; text-decoration: none; font-weight: 700; }
.pied__liens a:hover { color: #fff; text-decoration: underline; }
.contact { margin-top: 22px; }
.contact summary { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; list-style: none; border: 1px solid rgba(233, 216, 191, .35); border-radius: 999px; padding: 8px 18px; font-weight: 700; font-size: .95rem; }
.contact summary::-webkit-details-marker { display: none; }
.contact summary:hover { background: rgba(255, 255, 255, .06); }
.contact[open] summary { margin-bottom: 14px; }
.contact form { background: rgba(255, 252, 244, .06); border: 1px solid rgba(240, 226, 199, .18); border-radius: 16px; padding: 18px; max-width: 480px; }
.contact .champ label { color: #F0E2C7; }
.contact .champ input, .contact .champ textarea { background: #FFFDF7; }
.contact .aide { color: #C4AE8A; }
@media (max-width: 760px) { .pied__contenu { grid-template-columns: 1fr; } }

/* ---------- Page recette : l'atelier ---------- */
.titre-page { padding: clamp(36px, 6vw, 72px) 0 clamp(20px, 3vw, 32px); }
.titre-page p { max-width: 58ch; color: var(--texte-2); font-size: 1.06em; margin: .6em 0 0; }
.atelier { display: grid; grid-template-columns: minmax(290px, 350px) minmax(0, 1fr); gap: clamp(20px, 3vw, 36px); align-items: start; padding-bottom: clamp(48px, 7vw, 88px); }
@media (max-width: 899px) { .atelier { grid-template-columns: minmax(0, 1fr); } }

.reglages { background: var(--papier); border: 1px solid var(--ligne-douce); border-radius: 18px; box-shadow: var(--ombre-douce); }
@media (min-width: 900px) {
  .reglages { position: sticky; top: 92px; max-height: calc(100vh - 110px); overflow: auto; }
}
.reglages > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 12px; padding: 14px 18px; }
.reglages > summary::-webkit-details-marker { display: none; }
.reglages__titre { font-weight: 800; }
.reglages__etat { color: var(--texte-3); font-size: .92rem; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.reglages__fleche { width: 12px; height: 12px; border-right: 3px solid var(--brique); border-bottom: 3px solid var(--brique); transform: rotate(45deg) translateY(-3px); transition: transform .2s; }
.reglages[open] .reglages__fleche { transform: rotate(-135deg) translate(-2px, -1px); }
.reglages__corps { padding: 6px 20px 20px; }
@media (min-width: 900px) { .reglages > summary { display: none; } .reglages__corps { padding-top: 10px; } }
@media (max-width: 899px) { .reglages[open] .reglages__corps { border-top: 2px dashed var(--ligne); padding-top: 16px; } }
.reglage { padding: 14px 0; border-bottom: 2px dashed var(--ligne); }
.reglage:last-of-type { border-bottom: 0; }
.reglage legend, .reglage__titre { font-family: var(--f-titre); font-weight: 700; font-size: 1.12rem; margin-bottom: 10px; float: left; width: 100%; }
.reglage legend + * { clear: both; }

.compteur { display: flex; align-items: center; gap: 14px; }
.compteur button { width: 46px; height: 46px; border-radius: 12px; border: 2px solid var(--ligne); background: #fff; font-size: 26px; font-weight: 800; color: var(--brique); line-height: 1; display: grid; place-items: center; }
.compteur button:hover { border-color: var(--brique); }
.compteur button:disabled { opacity: .4; cursor: not-allowed; }
.compteur output { min-width: 3.5ch; text-align: center; font-family: var(--f-titre); font-weight: 700; font-size: 2.3rem; line-height: 1; }
.compteur__unite { font-weight: 700; color: var(--texte-3); font-size: .95rem; }
.curseur { width: 100%; margin-top: 14px; accent-color: var(--brique); cursor: pointer; }

.choix-liste { display: flex; flex-direction: column; gap: 9px; }
.choix { position: relative; display: block; cursor: pointer; }
.choix input { position: absolute; opacity: 0; inset: 0; margin: 0; pointer-events: none; }
.choix__boite { display: block; border: 2px solid var(--ligne); border-radius: 14px; padding: 10px 14px; background: #FFFDF7; transition: background-color .15s, border-color .15s, color .15s; }
.choix__label { display: block; font-weight: 800; }
.choix__desc { display: block; font-size: .86rem; line-height: 1.4; margin-top: 2px; color: var(--texte-3); }
.choix input:checked + .choix__boite { background: var(--brique); border-color: var(--brique); color: #FFF7EA; }
.choix input:checked + .choix__boite .choix__desc { color: #FBE4CB; }
.choix input:focus-visible + .choix__boite { outline: 3px solid var(--focus); outline-offset: 2px; }
.choix:hover .choix__boite { border-color: var(--brique); }

.puces { display: flex; flex-wrap: wrap; gap: 8px; }
.puce { position: relative; cursor: pointer; }
.puce input { position: absolute; opacity: 0; inset: 0; margin: 0; pointer-events: none; }
.puce span { display: inline-flex; align-items: center; gap: 7px; border: 2px solid var(--ligne); background: #FFFDF7; border-radius: 999px; padding: 7px 14px; font-weight: 700; font-size: .93rem; transition: background-color .15s, border-color .15s; }
.puce input:checked + span { background: var(--persil); border-color: var(--persil); color: #fff; }
.puce input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.puce:hover span { border-color: var(--persil); }
.lien-folie { display: block; margin-top: 14px; padding: 12px 14px; border-radius: 12px; background: #EEF3E6; color: var(--persil-fonce); font-weight: 800; text-decoration: none; font-size: .95rem; }
.lien-folie:hover { background: #E2EBD6; color: var(--persil-fonce); }

.actions-fiche { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.actions-fiche .bouton { flex: 1 1 40%; }
.actions-fiche .bouton:first-child { flex-basis: 100%; }
@media (min-width: 560px) { .actions-fiche .bouton, .actions-fiche .bouton:first-child { flex: 0 0 auto; } }

/* ---------- La fiche ---------- */
.fiche { background: var(--papier); border: 1px solid var(--ligne-douce); border-radius: 10px; box-shadow: var(--ombre-carte); padding: clamp(20px, 4vw, 40px); position: relative; }
.fiche.est-maj { animation: maj .5s ease; }
@keyframes maj { 0% { box-shadow: var(--ombre-carte), 0 0 0 0 rgba(231, 169, 58, .0); } 30% { box-shadow: var(--ombre-carte), 0 0 0 6px rgba(231, 169, 58, .35); } 100% { box-shadow: var(--ombre-carte), 0 0 0 0 rgba(231, 169, 58, 0); } }
@media (prefers-reduced-motion: reduce) { .fiche.est-maj { animation: none; } }
.fiche__tete { border-bottom: 4px double rgba(168, 65, 43, .65); padding-bottom: 18px; margin-bottom: 4px; }
.fiche__farfelu { display: inline-block; background: var(--persil); color: #FFF7EA; font-family: var(--f-main); font-weight: 700; font-size: 1.35rem; padding: 2px 16px; border-radius: 999px; margin: 0 0 12px; }
.fiche__titre { font-size: clamp(1.75rem, 2.4vw + 1rem, 2.4rem); letter-spacing: -.015em; }
.fiche__sous { color: var(--texte-3); margin: 6px 0 14px; }
.fiche__meta { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.fiche__meta li { display: inline-flex; align-items: center; gap: 6px; background: var(--sable); border: 1px solid #E8D6B4; border-radius: 999px; padding: 5px 12px 5px 9px; font-size: .87rem; font-weight: 700; color: var(--texte-2); }
.fiche__meta .ico { width: 17px; height: 17px; flex: none; color: var(--brique); }
.fiche__meta .fiche__badge { background: var(--persil); border-color: var(--persil); color: #FFF7EA; padding-left: 12px; }
.fiche__meta .fiche__badge .ico { color: inherit; }
.fiche__bloc { padding-top: 22px; }
.fiche__bloc > h3 { color: var(--brique); font-size: 1.4rem; margin-bottom: 14px; }
.fiche__bloc + .fiche__bloc { border-top: 2px dashed var(--ligne); margin-top: 20px; }
.couche { margin-bottom: 18px; }
.couche__titre { font-family: var(--f-titre); font-size: 1.04rem; display: flex; align-items: center; gap: 10px; padding-bottom: 6px; margin-bottom: 6px; border-bottom: 1px solid #F0E2C4; }
.couche__picto { width: 32px; height: 32px; object-fit: contain; flex: 0 0 auto; }
.couche__pastille { width: 28px; height: 13px; border-radius: 3px; flex: 0 0 auto; box-shadow: inset 0 0 0 1px rgba(59, 42, 29, .22); }
.couche--bas .couche__pastille { background: linear-gradient(to bottom, #F7F0E0 0 34%, #F2DDB2 34% 67%, var(--boeuf-moyen) 67%); }
.couche--milieu .couche__pastille { background: linear-gradient(to bottom, #F7F0E0 0 34%, var(--ble) 34% 67%, #D7C2B2 67%); }
.couche--dessus .couche__pastille { background: linear-gradient(to bottom, var(--puree) 0 34%, #F2DDB2 34% 67%, #D7C2B2 67%); box-shadow: inset 0 0 0 1px rgba(59, 42, 29, .22), inset 0 3px 0 0 #E2C88F; }
.couche--gratin .couche__pastille { background: linear-gradient(to bottom, #D99A3E 0 34%, #F2DDB2 34% 67%, #D7C2B2 67%); }
.couche--touche .couche__pastille { background: radial-gradient(circle at 30% 40%, var(--brique) 0 2px, transparent 2.5px), radial-gradient(circle at 70% 60%, var(--brique) 0 2px, transparent 2.5px), var(--puree); }
.ingredients { list-style: none; margin: 0; padding: 0; }
.ingredients li { position: relative; }
.ingredients input { position: absolute; opacity: 0; left: 4px; top: 12px; width: 18px; height: 18px; margin: 0; }
.ingredients label { display: grid; grid-template-columns: 22px minmax(5.6em, max-content) minmax(0, 1fr); gap: 10px; align-items: baseline; padding: 6px 4px; border-radius: 8px; cursor: pointer; line-height: 1.4; }
.ingredients label::before { content: ''; width: 18px; height: 18px; border: 2px solid #D8C4A0; border-radius: 5px; background: #fff; align-self: start; margin-top: .2em; transition: background-color .12s, border-color .12s; }
.ingredients label:hover { background: rgba(246, 234, 211, .7); }
.ing__q { font-weight: 800; color: var(--brique); white-space: nowrap; }
.ing__n { color: #4A3826; }
.ingredients input:checked + label::before { background: var(--persil) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-7' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat; border-color: var(--persil); }
.ingredients input:checked + label .ing__q, .ingredients input:checked + label .ing__n { text-decoration: line-through; text-decoration-thickness: 2px; opacity: .55; }
.ingredients input:focus-visible + label { outline: 3px solid var(--focus); outline-offset: 0; }
.etapes { list-style: none; margin: 0; padding: 0; counter-reset: etape; display: flex; flex-direction: column; gap: 14px; }
.etapes li { counter-increment: etape; display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 0 14px; }
.etapes li::before { content: counter(etape); width: 30px; height: 30px; border-radius: 50%; background: var(--brique); color: #FFF7EA; font-weight: 800; font-size: .92rem; display: grid; place-items: center; margin-top: 1px; }
.etapes p { margin: 0; color: #4A3826; line-height: 1.6; }
.etapes .minuteur { grid-column: 2; justify-self: start; margin-top: 8px; }
.minuteur { display: inline-flex; align-items: center; gap: 6px; border: 2px solid #BCD0A6; background: #F1F6EA; color: var(--persil-fonce); border-radius: 999px; padding: 4px 12px; font-weight: 800; font-size: .85rem; }
.minuteur:hover { border-color: var(--persil); }
.minuteur .ico { width: 16px; height: 16px; flex: none; }
.fiche__mot { margin-top: 22px; background-color: var(--sable); border-left: 5px solid var(--ble); border-radius: 0 12px 12px 0; padding: 12px 18px 14px; }
.fiche__mot-titre { font-family: var(--f-main); font-weight: 700; font-size: 1.45rem; color: var(--brique); margin: 0 0 2px; line-height: 1.1; }
.fiche__mot p:last-child { margin: 0; color: var(--texte-2); line-height: 28px; background-image: repeating-linear-gradient(to bottom, transparent 0 27px, rgba(96, 130, 170, .22) 27px 28px); }
.fiche__avertissement { margin: 14px 0 0; background: #FBE4E0; border: 1px dashed #D98C7D; border-radius: 12px; padding: 12px 16px; font-size: .95rem; color: #7E2E1C; }
.fiche__signature { text-align: center; margin: 24px 0 0; padding-top: 14px; border-top: 1px solid #F0E2C4; font-size: .85rem; color: var(--texte-3); }

/* ---------- À-côtés et trucs ---------- */
.cotes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 900px) { .cotes { grid-template-columns: 1fr; } }
.condiment { background: var(--papier); border: 1px solid var(--ligne-douce); border-radius: 14px; padding: 20px; }
.condiment__emoji { font-size: 30px; line-height: 1; }
.condiment h3 { margin: 8px 0 4px; font-size: 1.22rem; }
.condiment__sous { font-style: italic; color: var(--texte-3); font-size: .95rem; margin: 0 0 10px; }
.condiment details summary { cursor: pointer; font-weight: 800; color: var(--brique); list-style: none; display: inline-flex; align-items: center; gap: 6px; }
.condiment details summary::-webkit-details-marker { display: none; }
.condiment details summary::after { content: '+'; display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; border: 2px solid currentColor; font-size: .95rem; line-height: 1; }
.condiment details[open] summary::after { content: '−'; }
.condiment h4 { font-family: var(--f-texte); font-weight: 800; font-size: .82rem; letter-spacing: .02em; color: var(--brique); margin: 14px 0 6px; }
.condiment ul, .condiment ol { margin: 0; padding-left: 1.2em; font-size: .95rem; color: #4A3826; }
.condiment li { margin-bottom: 4px; }
.trucs { margin-top: 26px; background: var(--papier); border: 2px dashed var(--ligne); border-radius: 16px; padding: 18px 22px; }
.trucs h3 { font-family: var(--f-main); font-size: 1.7rem; color: var(--brique); margin-bottom: 6px; }
.trucs ul { margin: 0; padding-left: 1.2em; }
.trucs li { margin: 4px 0; color: #4A3826; }

/* ---------- Mode cuisine ---------- */
.cuisine { width: min(760px, 100vw); max-width: 100vw; height: min(100dvh, 900px); max-height: 100dvh; margin: auto; padding: 0; border: 0; border-radius: 22px; background: var(--fonte); color: #F7EAD2; --focus: var(--ble-pale); }
@media (max-width: 760px) { .cuisine { border-radius: 0; height: 100dvh; } }
.cuisine::backdrop { background: rgba(30, 20, 12, .72); }
.cuisine__cadre { height: 100%; display: flex; flex-direction: column; padding: clamp(18px, 4vw, 34px); gap: 16px; }
.cuisine__haut { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.cuisine__titre { font-family: var(--f-titre); font-size: 1.05rem; color: #D8C6A6; margin: 0; }
.cuisine__fermer { width: 44px; height: 44px; border-radius: 50%; border: 2px solid rgba(240, 226, 199, .35); background: transparent; color: #F7EAD2; font-size: 1.3rem; line-height: 1; }
.cuisine__progres { height: 8px; border-radius: 999px; background: rgba(240, 226, 199, .15); overflow: hidden; }
.cuisine__progres span { display: block; height: 100%; width: 0; background: linear-gradient(to right, var(--ble), var(--ble-pale)); transition: width .3s ease; }
.cuisine__compte { font-weight: 800; color: var(--ble); margin: 0; font-size: 1rem; }
.cuisine__etape { flex: 1; overflow: auto; font-size: clamp(1.4rem, 2.6vw + .8rem, 2.15rem); line-height: 1.35; font-weight: 600; margin: 0; color: #FFF7EA; }
.cuisine__outils { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; min-height: 46px; }
.cuisine__nav { display: grid; grid-template-columns: 1fr 1.4fr; gap: 12px; }
.cuisine__nav .bouton { min-height: 58px; font-size: 1.08rem; }
.cuisine__ingredients { border-top: 1px solid rgba(240, 226, 199, .18); padding-top: 10px; }
.cuisine__ingredients summary { cursor: pointer; font-weight: 800; color: var(--ble-pale); }
.cuisine__ingredients ul { margin: 8px 0 0; padding-left: 1.2em; max-height: 30vh; overflow: auto; color: #E9D8BF; }
.cuisine__eveil { margin: 0; font-size: .85rem; color: #C4AE8A; }

/* Minuteur flottant */
.chrono { position: fixed; right: 16px; bottom: 16px; z-index: 60; display: flex; align-items: center; gap: 10px; background: var(--boeuf); color: #FFF7EA; border-radius: 999px; padding: 8px 8px 8px 16px; box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .5); font-weight: 800; --focus: var(--ble-pale); }
.chrono__temps { font-variant-numeric: tabular-nums; font-size: 1.1rem; }
.chrono__etiquette { font-weight: 600; color: #D8C6A6; font-size: .85rem; }
.chrono button { border: 0; border-radius: 999px; background: rgba(255, 255, 255, .12); color: #FFF7EA; padding: 6px 12px; font-weight: 800; }
.chrono.est-fini { background: var(--brique); animation: sonne 1s ease-in-out infinite; }
@keyframes sonne { 50% { transform: scale(1.05); } }
@media (prefers-reduced-motion: reduce) { .chrono.est-fini { animation: none; } }
.cuisine .chrono { position: static; box-shadow: none; background: rgba(240, 226, 199, .1); }

/* Message éphémère */
.toast { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 70; background: var(--boeuf); color: #FFF7EA; padding: 11px 18px; border-radius: 12px; font-weight: 700; box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .5); max-width: calc(100vw - 32px); }

/* ---------- Page folie ---------- */
.folie-tete { padding: clamp(40px, 7vw, 80px) 0 clamp(36px, 5vw, 56px); }
.folie-tete h1 { color: #FFF7EA; }
.folie-tete p { max-width: 56ch; color: #E8F0DC; font-size: 1.08em; margin: .6em 0 0; }
.audace { margin-top: 26px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; }
.audace legend { font-weight: 800; margin-bottom: 8px; float: left; width: 100%; }
.audace__choix { display: inline-flex; gap: 6px; background: rgba(0, 0, 0, .14); border-radius: 999px; padding: 5px; clear: both; }
.audace__choix label { position: relative; cursor: pointer; }
.audace__choix input { position: absolute; opacity: 0; inset: 0; margin: 0; pointer-events: none; }
.audace__choix span { display: block; padding: 8px 18px; border-radius: 999px; font-weight: 800; color: #E8F0DC; }
.audace__choix input:checked + span { background: var(--ble-pale); color: var(--boeuf); }
.audace__choix input:focus-visible + span { outline: 3px solid #FFF7EA; outline-offset: 2px; }
.folie-resultat { padding: clamp(32px, 5vw, 56px) 0 clamp(56px, 8vw, 96px); }
.folie-resultat .fiche { max-width: 820px; margin-inline: auto; }
.folie-resultat .actions-fiche { max-width: 820px; margin-inline: auto; margin-bottom: 14px; }

/* ---------- 404 ---------- */
.introuvable { text-align: center; padding-block: clamp(48px, 9vw, 120px); }
.introuvable__image { width: min(340px, 78vw); height: auto; margin: 0 auto 24px; display: block; }
.introuvable p { color: var(--texte-2); max-width: 46ch; margin: 1em auto 1.6em; }
.introuvable .hero__actions { justify-content: center; }

/* ---------- Sans JavaScript ---------- */
.si-pas-js { display: none; }

/* ---------- Impression : voir css/impression.css (chargée avec media="print") ---------- */
.impression-seulement { display: none; }

/* Étiquettes manuscrites posées sur chaque étage de la coupe (en HTML pour rester lisibles sur cellulaire) */
.coupe-cadre { position: relative; }
.coupe__note {
  position: absolute; margin: 0; white-space: nowrap; transform: translateY(-50%) rotate(-2.5deg);
  font-family: var(--f-main); font-weight: 700; font-size: clamp(15px, 1vw + 9px, 22px); line-height: 1.1;
  color: var(--boeuf); background: var(--papier); padding: .12em .55em .2em; border-radius: 3px;
  box-shadow: 0 2px 5px rgba(59, 42, 29, .28);
}
.coupe__note::before { content: ''; position: absolute; left: -10px; top: 50%; width: 26px; height: 13px; background: rgba(255, 255, 255, .62); box-shadow: 0 0 0 1px rgba(59, 42, 29, .06); transform: translateY(-50%) rotate(-38deg); }
.coupe-image { display: block; width: 100%; height: auto; }
.coupe__note--dessus { top: 13%; left: 0; color: var(--brique); }
.coupe__note--milieu { top: 82%; left: -5%; transform: translateY(-50%) rotate(1.8deg); }
.coupe__note--bas { top: 97%; left: 20%; transform: translateY(-50%) rotate(-1.2deg); }
@media (prefers-reduced-motion: no-preference) { .coupe__note { animation: apparait .6s ease-out 1.25s both; } }
.accord__icone--vin { background: #722F1E; box-shadow: 0 0 0 4px rgba(110, 34, 51, .35); }
.accord__icone--biere { background: #7A4A2E; box-shadow: 0 0 0 4px rgba(181, 114, 42, .35); }
.accord__icone--cidre { background: #4E6B3B; box-shadow: 0 0 0 4px rgba(201, 162, 74, .35); }
.accord__icone--lait { background: #8A6B45; box-shadow: 0 0 0 4px rgba(239, 224, 190, .3); }

/* ---------- Illustrations (public/img/illus/) ---------- */
.titre-picto { display: flex; align-items: center; flex-wrap: wrap; gap: 0 .45em; }
.titre-picto__image { width: auto; height: 1.5em; flex: none; }
.entete-section--centre .titre-picto { justify-content: center; }
.histoire__image { margin: 0 0 22px; }
.histoire__vignette { display: block; width: 100%; height: auto; }
.histoire__image figcaption { margin-top: 6px; text-align: center; font-family: var(--f-main); font-weight: 700; font-size: 1.25rem; line-height: 1.1; color: var(--texte-3); }
.condiment__image { display: block; width: auto; height: 92px; margin-bottom: 10px; }
.trucs__image { float: right; width: 68px; height: auto; margin: -4px 0 6px 14px; transform: rotate(8deg); }
.folie-tete > .enveloppe { position: relative; }
.folie-tete__image { float: right; width: clamp(130px, 24vw, 270px); height: auto; margin: -6px 0 12px 24px; filter: drop-shadow(0 6px 0 rgba(0, 0, 0, .18)); }
