/* Le Comptoir à blagues : feuille de style unique.
   Direction « Le Comptoir » (planche B, validée le 24/10/2026) : store rayé, ardoise encadrée de chêne,
   carte à pointillés, tickets de caisse. Thème clair par défaut, sombre via [data-theme="sombre"]. */

@font-face { font-family: 'Cabin Sketch'; font-weight: 700; font-display: swap; src: url('/assets/fonts/cabin-sketch-700.woff2') format('woff2'); }
@font-face { font-family: 'Bitter'; font-weight: 400 700; font-display: swap; src: url('/assets/fonts/bitter.woff2') format('woff2'); }
@font-face { font-family: 'Bitter'; font-style: italic; font-weight: 400; font-display: swap; src: url('/assets/fonts/bitter-italique.woff2') format('woff2'); }

:root {
  --ardoise: #2A3530;
  --craie: #F1EEE6;
  --bordeaux: #9E3039;
  --pastis: #E8C65A;
  --chene: #7A5233;
  --chene-fonce: #5E3F27;

  --fond: #ECEFEF;
  --papier: #FFFFFF;
  --encre: #1E2622;
  --discret: #4C5652;
  --trait: rgba(30, 38, 34, .2);
  --lien: #8C2A33;

  --titre: 'Cabin Sketch', 'Bitter', cursive;
  --texte: 'Bitter', Georgia, serif;
  --largeur: 1120px;
}

[data-theme="sombre"] {
  --fond: #1E2622;
  --papier: #F1EEE6;
  --encre: #F1EEE6;
  --discret: #B9BFB9;
  --trait: rgba(241, 238, 230, .22);
  --lien: #E8C65A;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--fond); color: var(--encre); font: 400 1.0625rem/1.6 var(--texte); }
a { color: var(--lien); }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--pastis); outline-offset: 2px; }
img { max-width: 100%; height: auto; }
mark { background: none; color: var(--bordeaux); font-weight: 700; }

.visuellement-cache { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.craie { font-family: var(--titre); font-weight: 700; line-height: 1.05; }

/* ---------------------------------------------------------------- store */
.auvent { position: relative; z-index: 1; filter: drop-shadow(0 8px 6px rgba(0, 0, 0, .28)); }
.auvent-tringle { height: 8px; background: linear-gradient(180deg, #5A4130, #2E2018); }
.auvent-toile {
  height: 50px;
  background:
    linear-gradient(180deg, rgba(0,0,0,.24), rgba(0,0,0,0) 35%, rgba(0,0,0,0) 70%, rgba(0,0,0,.14)),
    repeating-linear-gradient(90deg, var(--bordeaux) 0 40px, #F1EBDD 40px 80px);
}
.auvent-festons {
  height: 20px;
  background:
    radial-gradient(circle at 20px 0, #8C2932 19.5px, transparent 20px) 0 0 / 80px 20px repeat-x,
    radial-gradient(circle at 60px 0, #E2D9C6 19.5px, transparent 20px) 0 0 / 80px 20px repeat-x;
}

/* ---------------------------------------------------------------- en-tête et pied */
.entete, .page, .pied { max-width: var(--largeur); margin: 0 auto; padding-inline: 16px; }
.entete { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; padding-block: 16px 20px; }
.logo { font-family: var(--titre); font-weight: 700; font-size: 1.9rem; line-height: 1; color: var(--encre); text-decoration: none; }
.logo small { display: block; font-family: var(--texte); font-weight: 400; font-style: italic; font-size: .95rem; margin-top: 2px; }
.menu { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.menu a { color: var(--encre); text-decoration: none; padding: 6px 0; }
.menu a:hover { text-decoration: underline; }
.menu a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--bordeaux); text-decoration-thickness: 3px; text-underline-offset: .35em; }
/* Grand écran : le bloc repliable ne compte pas, menu et recherche restent dans la ligne de l'en-tête. */
.entete-repli { display: contents; }
.bouton-menu { display: none; }
.patron { margin-left: auto; }
.patron input { font: inherit; width: 220px; max-width: 100%; padding: 8px 4px; border: 0; border-bottom: 2px solid var(--trait); background: transparent; color: var(--encre); }

.pied { padding-block: 48px 34px; }
/* La tournée du matin : une enveloppe par avion d'où dépasse la blague du jour. */
.tournee { display: flex; flex-wrap: wrap; align-items: center; gap: 28px 44px; padding: 30px 36px; background: #FFFFFF; color: #1E2622; border-radius: 8px; box-shadow: 0 10px 26px rgba(0,0,0,.1); }
.tournee h2 { font-family: var(--titre); margin: 0; font-size: 2rem; line-height: 1.1; }
.tournee p { margin: 6px 0 0; color: #4C5652; }
.tournee-texte { flex: 1 1 360px; }
.tournee-champ { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.tournee-champ input { flex: 1 1 220px; font: inherit; padding: 12px 14px; border: 2px solid #C9CFD1; border-radius: 4px; }
.tournee-petit { font-size: .85rem; }
.enveloppe { position: relative; width: 360px; max-width: 100%; height: 200px; flex-shrink: 0; }
.enveloppe-lettre { position: absolute; left: 34px; right: 34px; top: 0; height: 130px; padding: 14px 18px; box-sizing: border-box; transform: rotate(-2deg); overflow: hidden;
  background: repeating-linear-gradient(180deg, #FFFFFF 0 25px, #E3E8EF 25px 26px); box-shadow: 0 -2px 6px rgba(0,0,0,.12); font-size: .9rem; line-height: 26px; }
.enveloppe-lettre strong { display: block; color: var(--bordeaux); font-size: .78rem; line-height: 1.4; }
.enveloppe-kraft { position: absolute; left: 0; right: 0; bottom: 0; height: 130px; border-radius: 4px; overflow: hidden; box-shadow: 0 10px 18px rgba(0,0,0,.25);
  background: repeating-linear-gradient(28deg, rgba(90,60,20,0) 0 3px, rgba(90,60,20,.05) 3px 4px), #D9BC8C; }
.enveloppe-kraft::before { content: ''; position: absolute; inset: 0;
  background: repeating-linear-gradient(-45deg, var(--bordeaux) 0 14px, #FFFFFF 14px 28px, #1F3E78 28px 42px, #FFFFFF 42px 56px);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 0 0, 8px 8px, 8px calc(100% - 8px), calc(100% - 8px) calc(100% - 8px), calc(100% - 8px) 8px, 8px 8px); }
.enveloppe-kraft::after { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 64px; background: linear-gradient(180deg, #CDAE7C, #D9BC8C); clip-path: polygon(0 0, 100% 0, 50% 100%); }
.enveloppe-timbre { position: absolute; z-index: 1; right: 18px; top: 18px; width: 44px; height: 52px; display: flex; align-items: center; justify-content: center;
  background: #F1EEE6; border: 3px dotted #FFFFFF; font-family: var(--titre); font-weight: 700; font-size: 1.6rem; color: var(--bordeaux); }
.pied-liens { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.pied-editeur { margin: 0; font-size: .9rem; }

/* Sous la tournée : le rebord en zinc du comptoir, puis le lambris (planche série 4, variante A). */
.zinc { position: relative; height: 26px; background: linear-gradient(180deg, #F4F6F6 0, #C5CBCD 18%, #E2E6E7 42%, #A9B1B4 78%, #8D9699 100%); box-shadow: 0 6px 10px rgba(0,0,0,.35); }
.zinc::after { content: ''; position: absolute; left: 0; right: 0; bottom: -12px; height: 12px; background: linear-gradient(180deg, rgba(0,0,0,.45), rgba(0,0,0,0)); }
.lambris { color: var(--craie); background:
  linear-gradient(180deg, rgba(0,0,0,.25), rgba(0,0,0,0) 60px),
  repeating-linear-gradient(90deg, rgba(0,0,0,0) 0 158px, rgba(20,10,4,.55) 158px 160px, rgba(255,220,170,.1) 160px 162px),
  repeating-linear-gradient(91deg, rgba(58,32,14,0) 0 5px, rgba(58,32,14,.3) 5px 6px, rgba(58,32,14,0) 6px 13px),
  repeating-linear-gradient(89deg, rgba(255,215,160,0) 0 9px, rgba(255,215,160,.07) 9px 11px, rgba(255,215,160,0) 11px 23px),
  linear-gradient(180deg, #5B3D25, #4A3120 50%, #3D2819); }
.lambris-int { max-width: var(--largeur); margin: 0 auto; padding: 36px 16px 24px; }
.lambris a { color: var(--craie); text-decoration: none; }
.lambris a:hover { text-decoration: underline; }
/* Les chiffres de la maison, sur des sous-bocks comme ceux de la pagination. */
.bocks { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px 26px; list-style: none; margin: 0 0 36px; padding: 0; }
.bock { width: 132px; height: 132px; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; color: #1E2622;
  background: radial-gradient(circle, #FFFCF5 0 66%, var(--bordeaux) 67% 70%, #EFE7D6 71%); box-shadow: 0 3px 0 #CFC4AC, 0 10px 16px rgba(0,0,0,.4); }
.bock:nth-child(odd) { transform: rotate(-7deg); }
.bock:nth-child(even) { transform: rotate(5deg); }
.bock b { font: 700 2rem/1 var(--titre); color: var(--bordeaux); }
.bock span { font-size: .8rem; line-height: 1.2; max-width: 84px; margin-top: 4px; }
.pied-carte { display: grid; grid-template-columns: 1.25fr 1fr 1fr 1fr; gap: 30px; }
.pied-volet summary { font: 700 1.5rem/1.1 var(--titre); color: var(--pastis); list-style: none; margin-bottom: 12px; pointer-events: none; }
.pied-volet summary::-webkit-details-marker { display: none; }
.pied-volet ul { list-style: none; margin: 0; padding: 0; font-size: .95rem; line-height: 1.35; }
.pied-volet li { margin: 0 0 7px; }
.pied-deux { columns: 2; column-gap: 22px; }
.pied-bas { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; margin-top: 30px; padding-top: 16px;
  border-top: 1px solid rgba(241,238,230,.22); color: #D8D2C4; font-size: .9rem; }
.pied-bas a { color: #D8D2C4; }
.pied-bas a:not(.editeur), .pied-bas .editeur span { text-decoration: underline; text-underline-offset: .18em; }
/* Palmier d'Archipel Web au trait, à la taille du texte (comme sur fleurs et bac-maths). */
.editeur { display: inline-flex; align-items: center; gap: 5px; vertical-align: bottom; text-decoration: none; }
.editeur span { text-decoration: underline; text-underline-offset: .18em; }
.palmier { width: 1.1em; height: 1.1em; fill: none; stroke: currentColor; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }

/* ---------------------------------------------------------------- boutons */
.bouton { display: inline-block; font: 700 1rem var(--texte); padding: 12px 20px; border-radius: 4px; border: 2px solid transparent; text-decoration: none; cursor: pointer; }
.bouton-pastis { background: var(--pastis); color: var(--ardoise); }
.bouton-bordeaux { background: var(--bordeaux); color: var(--craie); }
.bouton-craie { background: transparent; color: var(--craie); border-color: rgba(241, 238, 230, .6); }

/* ---------------------------------------------------------------- matières : chêne, ardoise, craie, papier */
/* Chêne : veinage irrégulier (deux trames de largeurs différentes), nœuds, biseau clair en haut, ombre en bas. */
.bois-h { background:
  linear-gradient(180deg, rgba(255,236,200,.28), rgba(255,236,200,0) 30%, rgba(0,0,0,0) 62%, rgba(20,10,4,.42)),
  radial-gradient(ellipse 46px 7px at 27% 55%, rgba(52,28,12,.55), rgba(52,28,12,0) 70%),
  radial-gradient(ellipse 70px 5px at 71% 40%, rgba(52,28,12,.35), rgba(52,28,12,0) 70%),
  repeating-linear-gradient(179deg, rgba(58,32,14,0) 0 3px, rgba(58,32,14,.38) 3px 4px, rgba(58,32,14,0) 4px 9px, rgba(58,32,14,.2) 9px 10px, rgba(58,32,14,0) 10px 15px),
  repeating-linear-gradient(181deg, rgba(255,215,160,0) 0 6px, rgba(255,215,160,.12) 6px 8px, rgba(255,215,160,0) 8px 19px),
  linear-gradient(90deg, #86593A, #7A5233 30%, #8E6040 55%, #74502F 80%, #835838); }
.bois-v { background:
  linear-gradient(90deg, rgba(255,236,200,.24), rgba(255,236,200,0) 30%, rgba(0,0,0,0) 62%, rgba(20,10,4,.42)),
  radial-gradient(ellipse 7px 50px at 48% 33%, rgba(52,28,12,.5), rgba(52,28,12,0) 70%),
  repeating-linear-gradient(89deg, rgba(58,32,14,0) 0 3px, rgba(58,32,14,.38) 3px 4px, rgba(58,32,14,0) 4px 9px, rgba(58,32,14,.2) 9px 10px, rgba(58,32,14,0) 10px 15px),
  repeating-linear-gradient(91deg, rgba(255,215,160,0) 0 6px, rgba(255,215,160,.12) 6px 8px, rgba(255,215,160,0) 8px 19px),
  linear-gradient(180deg, #86593A, #7A5233 35%, #8E6040 60%, #74502F 85%, #835838); }

/* Cadre à onglets : quatre baguettes coupées à 45° (épaisseur réglable par --bois). */
.cadre-bois { --bois: 30px; position: relative; padding: var(--bois); filter: drop-shadow(0 18px 22px rgba(0,0,0,.35)); }
.baguette { position: absolute; }
.baguette-haut { left: 0; right: 0; top: 0; height: var(--bois); clip-path: polygon(0 0, 100% 0, calc(100% - var(--bois)) 100%, var(--bois) 100%); }
.baguette-bas { left: 0; right: 0; bottom: 0; height: var(--bois); clip-path: polygon(var(--bois) 0, calc(100% - var(--bois)) 0, 100% 100%, 0 100%); }
.baguette-g { left: 0; top: 0; bottom: 0; width: var(--bois); clip-path: polygon(0 0, 100% var(--bois), 100% calc(100% - var(--bois)), 0 100%); }
.baguette-d { right: 0; top: 0; bottom: 0; width: var(--bois); clip-path: polygon(0 var(--bois), 100% 0, 100% 100%, 0 calc(100% - var(--bois))); }

/* Tablette sous l'ardoise, avec deux craies et l'éponge. */
.tablette { position: relative; height: 22px; margin: 0 -12px; border-radius: 0 0 6px 6px; box-shadow: 0 10px 14px rgba(0,0,0,.3); }
.tablette .craie-baton { position: absolute; top: -7px; height: 9px; border-radius: 5px; background: linear-gradient(180deg, #FFFFFF, #E6E1D5 60%, #CFC8B8); }
.tablette .craie-baton:first-child { left: 50px; width: 60px; transform: rotate(-3deg); }
.tablette .craie-baton + .craie-baton { left: 124px; width: 32px; background: linear-gradient(180deg, #FFF3C4, var(--pastis)); }
.tablette .eponge { position: absolute; right: 60px; top: -11px; width: 70px; height: 14px; border-radius: 3px; background: linear-gradient(180deg, #E2C25A, #C9A23C); box-shadow: inset 0 -3px 0 #3B3B3B; }

/* Ardoise : gris-vert profond, traces d'effaçage, voile de craie, ombre du cadre sur la surface. */
.ardoise { background:
  radial-gradient(ellipse 260px 90px at 22% 72%, rgba(241,238,230,.07), rgba(241,238,230,0) 70%),
  radial-gradient(ellipse 340px 120px at 78% 28%, rgba(241,238,230,.06), rgba(241,238,230,0) 70%),
  radial-gradient(ellipse 200px 60px at 60% 88%, rgba(241,238,230,.05), rgba(241,238,230,0) 70%),
  repeating-linear-gradient(115deg, rgba(255,255,255,0) 0 22px, rgba(255,255,255,.018) 22px 24px),
  linear-gradient(160deg, #2F3B35, #26302B 55%, #2B3631);
  box-shadow: inset 0 6px 14px rgba(0,0,0,.55), inset 0 -2px 6px rgba(0,0,0,.35);
  color: var(--craie); padding: 28px 30px 30px; min-height: 380px; display: flex; flex-direction: column; gap: 14px; }
.ardoise .craie { text-shadow: 0 0 1px rgba(241,238,230,.65), 1px 1px 0 rgba(241,238,230,.12); }
.trait-craie { width: 58%; height: 4px; border-radius: 4px; transform: rotate(-1deg);
  background: linear-gradient(90deg, rgba(232,198,90,0), rgba(232,198,90,.85) 8%, rgba(232,198,90,.7) 60%, rgba(232,198,90,.15)); }

/* Papier de carte de brasserie : blanc chaud, fibres très légères, bord un peu plus sombre. */
.papier-carte { background:
  radial-gradient(ellipse at 50% 40%, rgba(255,255,255,0) 55%, rgba(120,90,50,.10)),
  repeating-linear-gradient(17deg, rgba(120,90,50,0) 0 5px, rgba(120,90,50,.025) 5px 6px),
  repeating-linear-gradient(-23deg, rgba(120,90,50,0) 0 7px, rgba(120,90,50,.02) 7px 8px),
  #FFFCF5; color: #1E2622; }

/* ---------------------------------------------------------------- accueil : ardoise + carte */
.une { display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-start; }
.une-ardoise { flex: 1.35 1 420px; min-width: 0; }
.ardoise h1 { margin: 0; font-size: 2.6rem; transform: rotate(-1.5deg); transform-origin: left; }
.ardoise-date { margin: 0; color: var(--pastis); }
.ardoise-texte { font-size: 1.45rem; line-height: 1.45; }
.ardoise-texte mark { color: var(--pastis); }
.ardoise-actions { margin-top: auto; display: flex; flex-wrap: wrap; gap: 12px; }

.carte { position: relative; flex: 1 1 300px; padding: 32px 34px 26px; border-radius: 3px; transform: rotate(.8deg);
  box-shadow: 0 1px 0 #E7E0D0, 0 2px 0 #FFFCF5, 0 3px 0 #E7E0D0, 0 18px 30px rgba(0,0,0,.22); }
.carte::before { content: ''; position: absolute; inset: 12px; border: 1px solid var(--bordeaux); pointer-events: none; }
.carte::after { content: ''; position: absolute; inset: 16px; border: 3px double var(--bordeaux); pointer-events: none; }
.carte > * { position: relative; z-index: 1; }
.carte h2 { text-align: center; margin: 0; font-family: var(--texte); font-style: italic; font-weight: 400; font-size: 2.4rem; line-height: 1.1; }
.carte-fleuron { display: block; margin: 6px auto 4px; }
.carte-sous-titre { text-align: center; font-style: italic; color: #4C5652; margin: 0 0 12px; font-size: .9rem; }
.carte ul { list-style: none; margin: 0; padding: 0; }
.carte a { display: flex; align-items: flex-end; padding: 6px 0; color: inherit; text-decoration: none; }
.carte a span:last-child { font-style: italic; }
.carte a:hover span:first-child { text-decoration: underline; }
.carte-pied { text-align: center; margin: 12px 0 0; font-size: .85rem; font-style: italic; color: var(--bordeaux); }
.pointilles { flex: 1; border-bottom: 2px dotted currentColor; opacity: .35; margin: 0 10px 6px; }

.mur-du-jour { margin-top: 56px; }
.mur-du-jour h2 { font-size: 2rem; margin: 0 0 16px; }

/* ---------------------------------------------------------------- pages intérieures */
.titre-page { font-size: clamp(2.2rem, 5vw, 3.2rem); margin: 8px 0 6px; }
.intro { color: var(--discret); margin-top: 0; }
.fil { font-size: .95rem; color: var(--discret); margin-top: 8px; }

/* Ticket de caisse : une blague dans une liste, ou seule sur sa page. */
.liste-blagues { list-style: none; padding: 0; margin: 24px 0; display: grid; gap: 22px; }
.ticket { position: relative; background: var(--papier); color: #1E2622; padding: 22px 24px 18px; box-shadow: 0 6px 16px rgba(0, 0, 0, .12); max-width: 720px; }
.ticket::after { content: ''; position: absolute; left: 0; right: 0; bottom: -12px; height: 12px;
  background: linear-gradient(-45deg, transparent 9px, var(--papier) 0) 0 0 / 18px 18px repeat-x, linear-gradient(45deg, transparent 9px, var(--papier) 0) 0 0 / 18px 18px repeat-x; }
.ticket-texte { font-size: 1.15rem; line-height: 1.55; }
.ticket-pied { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 14px 0 0; padding-top: 10px; border-top: 2px dashed #9AA19D; font-size: .95rem; }
.ticket-pied a { color: #8C2A33; }
.ticket-seul { margin: 20px auto 36px; }
.ticket-entete { text-align: center; padding-bottom: 12px; margin-bottom: 14px; border-bottom: 2px dashed #9AA19D; font-size: .85rem; color: #4C5652; }
.ticket-entete p { margin: 0; }
.ticket-enseigne { font-weight: 700; font-size: 1rem; color: #1E2622; letter-spacing: .04em; }
.ticket-seul .ticket-texte { font-size: 1.35rem; }
.ticket-total { display: flex; margin: 14px 0 0; padding-top: 10px; border-top: 2px dashed #9AA19D; }
.ticket-servie { margin: 12px 0 0; font-size: .85rem; font-style: italic; color: #4C5652; text-align: center; }
.ticket-total span:last-child { margin-left: auto; font-weight: 700; }

.actions-blague { max-width: 720px; margin: 28px auto 0; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; }
.bouton-contour { background: transparent; color: var(--encre); border-color: var(--trait); }
[data-retour-partage] { max-width: 720px; margin: 6px auto 0; }
.pourboire { max-width: 720px; margin: 0 auto; }
.pourboire h2 { font-size: 1.1rem; }
.pieces { display: grid; grid-template-columns: repeat(5, minmax(0, 52px)); gap: 10px; }
.pieces button { height: 52px; border-radius: 50%; border: 2px solid var(--pastis); background: transparent; color: var(--encre); font: 700 1.05rem var(--texte); cursor: pointer; }
.pieces button:hover, .pieces button[aria-pressed="true"] { background: var(--pastis); color: var(--ardoise); }

.retour { min-height: 1.6em; margin: 10px 0 0; font-weight: 700; color: var(--lien); }
.breve-form { margin-top: 24px; }
.breve-form label { display: block; font-weight: 600; margin-bottom: 4px; }
.breve-form input, .breve-form textarea { width: 100%; font: inherit; padding: 10px 12px; border: 2px solid var(--trait); border-radius: 4px; background: var(--papier); color: #1E2622; }
.piege { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.meme-rayon { max-width: 720px; margin: 36px auto 0; }
.meme-rayon h2 { font-size: 1.8rem; margin-bottom: 4px; }
.meme-rayon ul { list-style: none; padding: 0; margin: 0; }
.meme-rayon li { border-bottom: 1px solid var(--trait); }
.meme-rayon a { display: block; padding: 10px 0; }

/* Devinettes : question, puis chute (repliée dans les listes). */
.ticket-texte p { margin: 0; }
.ticket-texte .chute, .ardoise-texte .chute { margin-top: 10px; font-weight: 700; }
details.chute { font-weight: 400; }
details.chute summary { cursor: pointer; color: #8C2A33; font-size: 1rem; width: fit-content; }
details.chute[open] summary { margin-bottom: 6px; }
details.chute p { font-weight: 700; }

/* ---------------------------------------------------------------- galeries (images, vidéos) */
.rubriques { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 24px; }
.rubriques a { padding: 6px 12px; border: 2px solid var(--trait); border-radius: 999px; text-decoration: none; color: var(--encre); font-size: .95rem; }
.rubriques a span { color: var(--discret); }
.rubriques a[aria-current="page"] { background: var(--ardoise); border-color: var(--ardoise); color: var(--craie); }
.rubriques a[aria-current="page"] span { color: var(--pastis); }

.galerie { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 22px; }
.vignette a { display: flex; flex-direction: column; gap: 8px; color: var(--encre); text-decoration: none; }
.vignette a:hover .vignette-titre { text-decoration: underline; }
.vignette-cadre { position: relative; display: block; aspect-ratio: 4 / 3; border: 8px solid var(--chene); background: var(--ardoise); overflow: hidden; }
.vignette-cadre img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vignette-video::after { content: ''; position: absolute; left: 50%; top: 50%; width: 50px; height: 50px; margin: -25px 0 0 -25px; border-radius: 50%;
  background: var(--bordeaux) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 6v12l10-6z' fill='%23F1EEE6'/%3E%3C/svg%3E") center / 22px no-repeat; }
.vignette-titre { font-weight: 600; line-height: 1.35; }
.galerie-courte { grid-template-columns: repeat(auto-fill, minmax(min(100%, 180px), 1fr)); }

.cadre-chene { --bois: 18px; margin: 16px 0; display: inline-block; max-width: 100%; background: var(--ardoise); }
.cadre-chene img { position: relative; }
.cadre-chene img { display: block; max-height: 80vh; width: auto; }
.voisins { display: flex; justify-content: space-between; gap: 16px; max-width: 900px; }
.fiche-infos { max-width: 720px; }
.fiche-description { font-size: 1.15rem; }
.fiche-meta { color: var(--discret); }
.etiquettes { display: flex; flex-wrap: wrap; gap: 8px; }
.etiquettes a { padding: 3px 10px; background: var(--papier); border: 1px solid var(--trait); border-radius: 4px; text-decoration: none; color: var(--encre); font-size: .9rem; }
.etiquettes a::before { content: '# '; color: var(--discret); }
.breves { max-width: 720px; margin-top: 36px; }
.breves h2 { font-size: 1.8rem; }
.breves ul { list-style: none; padding: 0; margin: 0; }
.breves li { padding: 12px 0; border-bottom: 1px solid var(--trait); }
.breves li p { margin: 0; }
.breve-auteur { font-size: .9rem; color: var(--discret); }
.meme-mur { margin-top: 36px; }
.meme-mur h2 { font-size: 1.8rem; }

/* Télé du bar : façade vidéo. */
.tele { max-width: 900px; margin: 16px 0; }
.tele-ecran { display: block; width: 100%; aspect-ratio: 16 / 9; border: 14px solid #1a1a1a; border-radius: 18px; background: #000 center / cover no-repeat; cursor: pointer; position: relative; padding: 0; }
.tele-play { position: absolute; left: 50%; top: 50%; width: 78px; height: 78px; margin: -39px 0 0 -39px; border-radius: 50%;
  background: var(--bordeaux) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 6v12l10-6z' fill='%23F1EEE6'/%3E%3C/svg%3E") center / 34px no-repeat; box-shadow: 0 6px 18px rgba(0,0,0,.4); }
.tele-ecran:hover .tele-play { transform: scale(1.06); }
.tele-note { color: var(--discret); font-size: .9rem; }

/* ---------------------------------------------------------------- les habitués (humoristes) */
.index-lettres { display: flex; flex-wrap: wrap; gap: 6px; margin: 16px 0 8px; }
.index-lettres a { min-width: 36px; padding: 6px 0; text-align: center; background: var(--papier); border: 1px solid var(--trait); border-radius: 4px; text-decoration: none; color: var(--encre); font-weight: 700; }
.lettre h2 { font-size: 2rem; margin: 28px 0 10px; }
.habitues { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 22px; }
.habitues a { display: flex; flex-direction: column; align-items: center; gap: 8px; text-decoration: none; color: var(--encre); text-align: center; }
.habitues li:nth-child(odd) .polaroid { transform: rotate(-2deg); }
.habitues li:nth-child(even) .polaroid { transform: rotate(1.5deg); }
.polaroid { display: block; width: 140px; padding: 8px 8px 26px; background: #FFFFFF; box-shadow: 0 6px 14px rgba(0, 0, 0, .18); }
.polaroid img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; }
.polaroid-vide { display: flex; align-items: center; justify-content: center; aspect-ratio: 1; background: var(--ardoise); color: var(--craie); font-size: 3rem; }
.habitue-nom { font-weight: 600; }
.fiche-habitue { display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-start; margin-top: 12px; }
.fiche-habitue > div { flex: 1 1 360px; max-width: 720px; }
.autres-habitues { margin-top: 48px; padding-top: 28px; border-top: 2px dashed var(--trait); }
.autres-habitues h2 { font-size: 1.8rem; margin: 0 0 20px; }
.autres-habitues .habitues { grid-template-columns: repeat(auto-fill, minmax(150px, 180px)); }
.autres-habitues p { margin: 22px 0 0; font-weight: 700; }
.polaroid-grand { width: 260px; margin: 0; transform: rotate(-2deg); }
.fiche-bio { font-size: 1.1rem; }
.fiche-habitue h2 { font-family: var(--titre); font-size: 1.6rem; margin: 26px 0 6px; }
.credit-photo { margin-top: 8px; font-size: .75rem; line-height: 1.4; color: #4C5652; }
.credits-liste { list-style: none; padding: 0; display: grid; gap: 10px; }
.credits-liste li { display: flex; gap: 14px; align-items: center; }
.credits-liste img { width: 56px; height: 56px; object-fit: cover; }

/* ---------------------------------------------------------------- recherche et tournée du matin */
.recherche, .tournee-form p:has(input[type=email]) { display: flex; flex-wrap: wrap; gap: 10px; }
.recherche input { flex: 1 1 260px; font: inherit; padding: 11px 12px; border: 2px solid var(--trait); border-radius: 4px; background: var(--papier); color: #1E2622; }
.tournee-form { max-width: 560px; margin-top: 16px; }
.tournee-form label { display: block; font-weight: 600; width: 100%; }
.tournee-form input[type=email] { flex: 1; font: inherit; padding: 11px 12px; border: 2px solid var(--trait); border-radius: 4px; background: var(--papier); color: #1E2622; }
.retour-encadre { padding: 14px 18px; background: var(--papier); border-left: 6px solid var(--pastis); color: #1E2622; max-width: 720px; }

.texte-page { max-width: 720px; }
.texte-page h2 { font-family: var(--titre); font-size: 1.6rem; margin-top: 28px; }
.coordonnees { display: grid; grid-template-columns: max-content 1fr; gap: 4px 16px; }
.coordonnees dt { font-weight: 700; }
.coordonnees dd { margin: 0; }

/* ---------------------------------------------------------------- largeurs */
/* Pages de texte : une colonne de lecture centrée. */
.page-etroite { max-width: 820px; }
.titre-centre { text-align: center; }
.carte-seule { max-width: 560px; margin: 24px auto 0; }
/* Rubrique : les blagues, et la carte en colonne à droite (dessous sur mobile). */
.avec-carte { display: flex; flex-wrap: wrap; gap: 24px 48px; align-items: flex-start; }
.avec-carte-contenu { flex: 999 1 560px; min-width: 0; }
.avec-carte-contenu .ticket { max-width: none; }
.avec-carte-carte { flex: 1 1 300px; position: sticky; top: 20px; max-height: calc(100vh - 40px); overflow-y: auto; overscroll-behavior: contain; }
.avec-carte-carte .carte { transform: none; padding: 28px 28px 22px; }
.avec-carte-carte .carte h2 { font-size: 2rem; }
.carte a[aria-current="page"] { color: var(--bordeaux); font-weight: 700; }
/* Classements, recherche : deux colonnes de tickets en grand écran. */
.liste-deux-colonnes { display: block; columns: 2 420px; column-gap: 32px; }
.liste-deux-colonnes .ticket { max-width: none; break-inside: avoid; margin-bottom: 34px; }

/* Pagination : les numéros sont des sous-bocks en carton, ronds, légèrement de travers. */
.pagination-zone { container-type: inline-size; margin: 40px 0 16px; }
.pagination { display: flex; flex-wrap: nowrap; align-items: center; justify-content: center; gap: 14px 22px; }
.pagination-tournee { white-space: nowrap; }
/* Colonne étroite (rubrique avec la carte à côté) : « Précédente / Suivante » sans « Tournée ». */
.pagination-court { display: none; }
@container (max-width: 800px) { .pagination { gap: 12px 16px; } .pagination-long { display: none; } .pagination-court { display: inline; } }
/* Très étroit (mobile) : les numéros sur une ligne, les deux flèches dessous. */
@container (max-width: 560px) {
  .pagination { flex-wrap: wrap; }
  .pagination .sous-bocks { order: -1; flex: 1 0 100%; gap: 8px; }
  .pagination .sous-bock { width: 42px; height: 42px; }
}
@container (max-width: 420px) {
  .pagination .sous-bocks { gap: 5px; }
  .pagination .sous-bock { width: 36px; height: 36px; font-size: .95rem; }
}
.pagination-tournee { font-weight: 700; text-decoration: none; padding: 10px 4px; }
.pagination-tournee:hover { text-decoration: underline; }
.pagination-inactive { color: var(--discret); opacity: .45; font-weight: 400; }
.sous-bocks { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; list-style: none; margin: 0; padding: 0; }
.sous-bock { display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 50%;
  font: 700 1.05rem var(--texte); color: #1E2622; text-decoration: none;
  background: radial-gradient(circle at 50% 50%, #FFFCF5 0 52%, rgba(158,48,57,0) 53%) , radial-gradient(circle, #FFFCF5 0 62%, var(--bordeaux) 63% 67%, #EFE7D6 68%);
  box-shadow: 0 2px 0 #D6CCB6, 0 6px 10px rgba(0,0,0,.18); transition: transform .15s; }
.sous-bocks li:nth-child(odd) .sous-bock { transform: rotate(-6deg); }
.sous-bocks li:nth-child(even) .sous-bock { transform: rotate(5deg); }
a.sous-bock:hover { transform: rotate(0) translateY(-3px); }
.sous-bock-courant { background: radial-gradient(circle, var(--bordeaux) 0 62%, #FFFCF5 63% 67%, var(--bordeaux) 68%); color: var(--craie); }
.sous-bock-saut { color: var(--discret); font-weight: 700; padding: 0 2px; }
@media (prefers-reduced-motion: reduce) { .sous-bock { transition: none; } }

/* ================================================================ pages détail : image, vidéo, blague */
.fiche-media, .fiche-blague { display: flex; flex-wrap: wrap; gap: 32px 48px; align-items: flex-start; margin-top: 12px; }
.fiche-media-principal, .fiche-blague-principal { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 22px; }
.fiche-media-principal .cadre-chene { margin: 0; }
.fiche-media-principal .tele { width: 100%; margin: 0; }

/* Colonne d'informations : feuille de carte de brasserie, double filet bordeaux. */
.fiche-papier { flex: 1 1 320px; position: relative; padding: 30px 28px 24px; border-radius: 3px;
  box-shadow: 0 1px 0 #E7E0D0, 0 2px 0 #FFFCF5, 0 3px 0 #E7E0D0, 0 16px 28px rgba(0,0,0,.18); }
.fiche-papier::before { content: ''; position: absolute; inset: 10px; border: 1px solid var(--bordeaux); pointer-events: none; }
.fiche-papier > * { position: relative; }
.fiche-papier .fiche-description { font-size: 1.15rem; font-style: italic; margin-top: 0; }
.fiche-papier .fiche-meta { color: #4C5652; }
.fiche-papier .fiche-actions { margin: 18px 0 0; }
.fiche-papier .fiche-actions .bouton { width: 100%; text-align: center; }
.etiquettes a { position: relative; padding: 4px 12px 4px 18px; background: #F4ECD8; border: 1px solid #D8C9A6; border-radius: 3px 10px 10px 3px; }
.etiquettes a::before { content: ''; position: absolute; left: 6px; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: var(--fond); box-shadow: inset 0 0 0 1px #B9A57A; }

/* Panneaux fléchés en bois pour l'image précédente / suivante. */
.panneaux { width: 100%; display: flex; justify-content: space-between; gap: 16px; }
.panneau { display: flex; align-items: center; gap: 12px; max-width: 48%; padding: 10px 34px 10px 12px; color: var(--craie); text-decoration: none;
  clip-path: polygon(0 0, calc(100% - 24px) 0, 100% 50%, calc(100% - 24px) 100%, 0 100%); filter: drop-shadow(0 6px 6px rgba(0,0,0,.25)); }
.panneau-prev { flex-direction: row-reverse; padding: 10px 12px 10px 34px; clip-path: polygon(24px 0, 100% 0, 100% 100%, 24px 100%, 0 50%); }
.panneau img { width: 64px; height: 48px; object-fit: cover; border: 3px solid rgba(241,238,230,.85); flex-shrink: 0; }
.panneau span { display: flex; flex-direction: column; font-weight: 700; line-height: 1.25; text-shadow: 0 1px 0 rgba(0,0,0,.5); overflow: hidden; }
.panneau-prev span { text-align: right; }
.panneau small { font-weight: 400; font-size: .8rem; color: #F3E3C3; }
.panneau .panneau-texte { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.panneau:hover { filter: drop-shadow(0 8px 8px rgba(0,0,0,.3)) brightness(1.08); }
.panneau-vide { flex: 0 0 1px; }

/* Le pourboire : des piles de pièces, de 1 à 5. */
.pourboire { margin: 22px 0 0; max-width: none; }
.pourboire h2 { margin: 0 0 4px; font-family: var(--titre); font-size: 1.6rem; }
.pourboire-explication { margin: 0 0 12px; font-size: .92rem; color: #4C5652; }
.pieces { display: flex; flex-direction: column; gap: 6px; }
.pieces button { display: flex; align-items: center; gap: 10px; width: 100%; height: auto; min-height: 46px; padding: 6px 12px; border: 1px solid #E2D6BC; border-radius: 999px;
  background: #FFFFFF; color: #1E2622; font: inherit; text-align: left; cursor: pointer; transition: background .15s, border-color .15s; }
.pieces button:hover, .pieces button[aria-pressed="true"] { background: #FBF1D2; border-color: var(--pastis); }
.pieces button[aria-pressed="true"] { box-shadow: inset 0 0 0 2px var(--pastis); }
.pile { display: flex; width: 90px; flex-shrink: 0; }
.pieces-libelle { white-space: nowrap; font-size: .95rem; }
.piece { display: block; width: 26px; height: 26px; border-radius: 50%; flex-shrink: 0;
  background: radial-gradient(circle at 35% 30%, #FFF3C4 0 18%, #E8C65A 40%, #B8902F 75%, #8E6E2B);
  box-shadow: inset 0 0 0 2px rgba(255,236,170,.6), inset 0 0 0 4px rgba(142,110,43,.45), 0 1px 2px rgba(0,0,0,.35); }
.pile .piece + .piece { margin-left: -10px; }
.pieces-libelle strong { margin-right: 4px; }
.note-salle { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin: 14px 0 0; font-size: .92rem; }
.note-pieces { position: relative; display: inline-block; }
.note-pieces .piece { width: 18px; height: 18px; display: inline-block; margin-right: 2px; }
.note-pieces-fond .piece { filter: grayscale(1) opacity(.35); }
.note-pieces-plein { position: absolute; left: 0; top: 0; white-space: nowrap; overflow: hidden; }
.pourboire-petit { margin: 8px 0 0; font-size: .82rem; color: #5A6460; }

/* Les brèves de comptoir : petits mots punaisés, et le bon de commande pour en laisser une. */
.breves { max-width: none; width: 100%; margin-top: 30px; }
.breves h2 { font-size: 2rem; margin-bottom: 18px; }
.breves-corps { display: flex; flex-wrap: wrap; gap: 32px 48px; align-items: flex-start; }
.breves-mur { flex: 999 1 520px; min-width: 0; }
.breves-liste { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 26px 22px; }
.breve { position: relative; padding: 22px 18px 14px; background: #FFFDF6; color: #1E2622; box-shadow: 0 8px 16px rgba(0,0,0,.14); }
.breve::before { content: ''; position: absolute; left: 50%; top: -7px; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #E0656E, var(--bordeaux) 60%, #6E1F27); box-shadow: 0 2px 3px rgba(0,0,0,.35); }
.breves-liste li:nth-child(3n+1) .breve, .breves-liste .breve:nth-child(3n+1) { transform: rotate(-1.2deg); }
.breves-liste .breve:nth-child(3n+2) { transform: rotate(.9deg); background: #FFF9E6; }
.breves-liste .breve:nth-child(3n) { transform: rotate(-.4deg); background: #F7FBF8; }
.breve-texte { margin: 0 0 10px; font-size: 1.02rem; }
.breve-auteur { margin: 0; font-size: .85rem; color: #4C5652; }
.breves-vide { font-size: 1.05rem; color: var(--discret); font-style: italic; }
.bon-commande { flex: 1 1 320px; position: relative; padding: 26px 24px 18px; color: #1E2622; box-shadow: 0 10px 20px rgba(0,0,0,.15);
  background: radial-gradient(circle, var(--fond) 0 4px, transparent 5px) 12px 8px / 24px 14px repeat-x, repeating-linear-gradient(180deg, #FFFFFF 0 31px, #DCE6EE 31px 32px); }
.bon-entete { display: flex; align-items: baseline; justify-content: space-between; margin: 6px 0 12px; padding-bottom: 8px; border-bottom: 2px solid var(--bordeaux); color: var(--bordeaux); }
.bon-entete strong { font-family: var(--titre); font-size: 1.5rem; }
.bon-entete span { font-size: .8rem; font-style: italic; }
.bon-commande label { display: block; font-weight: 600; margin-bottom: 4px; }
.bon-commande input, .bon-commande textarea { width: 100%; font: inherit; padding: 9px 10px; border: 0; border-bottom: 2px solid #9AA6AE; background: rgba(255,255,255,.6); color: #1E2622; }
.bon-commande input:focus, .bon-commande textarea:focus { outline: none; border-bottom-color: var(--bordeaux); background: #FFFFFF; }
.bon-petit { font-size: .82rem; color: #5A6460; margin-bottom: 0; }

/* Ticket de caisse de la page blague : bords dentelés, en-tête de caisse, tampon « Servie ». */
.ticket-caisse { position: relative; width: 100%; max-width: 680px; padding: 34px 36px 28px; color: #1E2622; transform: rotate(-.6deg);
  background: linear-gradient(180deg, #FFFFFF, #FBFAF6); filter: drop-shadow(0 12px 18px rgba(0,0,0,.18)); }
.ticket-caisse::before, .ticket-caisse::after { content: ''; position: absolute; left: 0; right: 0; height: 12px; }
.ticket-caisse::before { top: -12px; background: linear-gradient(135deg, transparent 8px, #FFFFFF 0) 0 0 / 16px 12px repeat-x, linear-gradient(-135deg, transparent 8px, #FFFFFF 0) 0 0 / 16px 12px repeat-x; }
.ticket-caisse::after { bottom: -12px; background: linear-gradient(45deg, transparent 8px, #FBFAF6 0) 0 0 / 16px 12px repeat-x, linear-gradient(-45deg, transparent 8px, #FBFAF6 0) 0 0 / 16px 12px repeat-x; }
.caisse-entete { text-align: center; padding-bottom: 14px; margin-bottom: 18px; border-bottom: 3px double #C9CFD1; font-size: .85rem; color: #4C5652; }
.caisse-entete p { margin: 0; }
.caisse-enseigne { font-family: var(--titre); font-size: 1.6rem; color: #1E2622; margin-bottom: 2px !important; }
.caisse-texte { font-size: 1.35rem; line-height: 1.55; }
.caisse-texte p { margin: 0; }
.caisse-texte .chute { margin-top: 14px; font-weight: 700; }
.caisse-pied { margin-top: 22px; padding-top: 12px; border-top: 3px double #C9CFD1; text-align: center; }
.caisse-total { display: flex; justify-content: space-between; margin: 0 0 8px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; font-size: .9rem; }
.caisse-servie, .caisse-merci { margin: 4px 0 0; font-size: .85rem; font-style: italic; color: #4C5652; }
.tampon { position: absolute; right: 26px; top: 64px; padding: 4px 12px; border: 3px double var(--bordeaux); border-radius: 6px; color: var(--bordeaux);
  font: 700 1.1rem var(--texte); text-transform: uppercase; letter-spacing: .12em; transform: rotate(12deg); opacity: .75; mix-blend-mode: multiply; }
/* Page blague : le pourboire posé sous l'addition, les cinq choix sur une ligne. */
.soucoupe { width: 100%; max-width: 680px; padding: 4px 26px 20px; background: #FFFFFF; border-radius: 10px; box-shadow: 0 10px 22px rgba(0,0,0,.1); color: #1E2622; }
.soucoupe .pieces { flex-direction: row; flex-wrap: wrap; }
.soucoupe .pieces button { flex: 1 1 110px; flex-direction: column; gap: 6px; border-radius: 12px; padding: 12px 6px; text-align: center; }
.soucoupe .pile { width: auto; justify-content: center; }
.soucoupe .pieces-libelle { white-space: normal; display: flex; flex-direction: column; font-size: .9rem; }
.fiche-blague-principal .actions-blague { width: 100%; max-width: 680px; margin: 6px 0 0; }
.fiche-papier .meme-rayon { margin: 26px 0 0; max-width: none; }
.fiche-papier .meme-rayon h2 { font-family: var(--titre); font-size: 1.6rem; margin: 0 0 6px; }
.fiche-papier .meme-rayon li { border-bottom: 1px solid #E7DCC4; }

/* Petit écran : l'image, les panneaux, puis la fiche (pourboire) avant les brèves. */
@media (max-width: 900px) {
  .fiche-media-principal { display: contents; }
  .fiche-media > * { width: 100%; }
  .fiche-media .cadre-chene, .fiche-media .tele { order: 1; }
  .fiche-media .panneaux { order: 2; }
  .fiche-media .fiche-papier { order: 3; }
  .fiche-media .breves { order: 4; }
  .fiche-media .cadre-chene { width: auto; align-self: center; }
}

@media (max-width: 640px) {
  .panneau { max-width: 50%; padding-right: 28px; }
  .panneau img { display: none; }
  .ticket-caisse { padding: 28px 22px 22px; transform: none; }
  .tampon { top: 56px; right: 14px; font-size: .9rem; }
}

/* Petit écran : un bouton « Menu » en ardoise ouvre un panneau à la craie (menu, puis la recherche). */
@media (max-width: 760px) {
  .entete { flex-wrap: wrap; gap: 12px; padding-block: 14px 16px; }
  .js .bouton-menu { display: inline-flex; align-items: center; gap: 10px; margin-left: auto; padding: 9px 14px;
    font: 700 1.15rem/1 var(--titre); color: var(--craie); background: var(--ardoise); border: 3px solid var(--chene); border-radius: 4px;
    box-shadow: 0 4px 10px rgba(0,0,0,.2); cursor: pointer; }
  .bouton-menu-traits { position: relative; width: 20px; height: 2px; background: var(--craie); border-radius: 2px; box-shadow: 0 -6px 0 var(--craie), 0 6px 0 var(--craie); }
  .bouton-menu[aria-expanded="true"] .bouton-menu-traits { box-shadow: none; transform: rotate(45deg); }
  .bouton-menu[aria-expanded="true"] .bouton-menu-traits::after { content: ''; position: absolute; inset: 0; background: inherit; transform: rotate(90deg); }
  .entete-repli { display: block; width: 100%; }
  .js .entete-repli { margin-top: 2px; padding: 8px 18px 18px; color: var(--craie); border: 3px solid var(--chene); border-radius: 4px;
    background: linear-gradient(160deg, #2F3B35, #26302B 55%, #2B3631); box-shadow: inset 0 4px 10px rgba(0,0,0,.45), 0 10px 20px rgba(0,0,0,.25); }
  .js .entete-repli:not(.ouvert) { display: none; }
  .js .menu { flex-direction: column; gap: 0; }
  .js .menu a { color: var(--craie); font: 700 1.45rem/1.2 var(--titre); padding: 12px 2px; border-bottom: 2px dashed rgba(241,238,230,.22); }
  .js .menu a[aria-current="page"] { color: var(--pastis); text-decoration: none; }
  .js .patron { margin-left: 0; width: 100%; }
  .js .patron input { width: 100%; color: var(--craie); border-bottom-color: rgba(241,238,230,.5); margin-top: 12px; }
  .js .patron input::placeholder { color: rgba(241,238,230,.7); }
}

@media (max-width: 640px) {
  .patron { margin-left: 0; width: 100%; }
  .patron input { width: 100%; }
  .ardoise { padding: 20px; min-height: 0; }
  .une .cadre-bois { --bois: 18px; }
  .carte { transform: none; padding: 28px 26px 22px; }
  .enveloppe { display: none; }
  .lambris-int { padding-top: 26px; }
  .bocks { flex-wrap: nowrap; gap: 8px; margin-bottom: 18px; }
  .bock { width: 80px; height: 80px; }
  .bock:nth-child(5) { display: none; }
  .bock b { font-size: 1.25rem; }
  .bock span { font-size: .62rem; max-width: 58px; margin-top: 2px; }
  .pied-carte { display: block; }
  .pied-volet { border-bottom: 1px solid rgba(241,238,230,.18); padding: 12px 0; }
  .pied-volet summary { display: flex; justify-content: space-between; margin: 0; pointer-events: auto; cursor: pointer; }
  .pied-volet summary::after { content: '+'; color: var(--craie); }
  .pied-volet[open] summary::after { content: '–'; }
  .pied-volet ul { columns: 2; column-gap: 14px; margin-top: 10px; }
  .pied-volet li { margin-bottom: 9px; }
  .pied-bas { flex-direction: column; align-items: flex-start; border-top: 0; margin-top: 16px; padding-top: 0; }
  .avec-carte-carte { position: static; max-height: none; }
  .ardoise-texte { font-size: 1.25rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
