/* Électionoël — un journal satirique qui vend des t-shirts.
   Papier blanc, encre noire, un rouge, et le vert sapin des photos. Angles droits, filets fins, pas de cartes. */
@font-face { font-family: "Abril"; src: url("/fonts/abril-fatface-latin-400-normal.woff2") format("woff2"); font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: "Abril"; src: url("/fonts/abril-fatface-latin-ext-400-normal.woff2") format("woff2"); font-display: swap; unicode-range: U+0100-02AF, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF; }
@font-face { font-family: "Franklin"; font-weight: 400; src: url("/fonts/libre-franklin-latin-400-normal.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Franklin"; font-weight: 600; src: url("/fonts/libre-franklin-latin-600-normal.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Franklin"; font-weight: 800; src: url("/fonts/libre-franklin-latin-800-normal.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Franklin"; font-weight: 400; font-style: italic; src: url("/fonts/libre-franklin-latin-400-italic.woff2") format("woff2"); font-display: swap; }

:root {
  --papier: #fff;
  --encre: #111;
  --gris: #5c5c5c;
  --filet: #111;
  --filet-doux: #d9d9d9;
  --rouge: #d61f26;
  --rouge-fonce: #b1151b;
  --sapin: #17382c;
  --sapin-clair: #cfe0d6;
  --titre: "Abril", "Didot", "Bodoni 72", Georgia, serif;
  --texte: "Franklin", "Franklin Gothic Medium", "Helvetica Neue", Arial, sans-serif;
  --marge: clamp(16px, 4vw, 56px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--papier); color: var(--encre); font: 400 17px/1.55 var(--texte); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
h1, h2, h3, p, figure, dl, dd, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--rouge); outline-offset: 3px; }
.cache { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.cache:focus { position: fixed; top: 8px; left: 8px; width: auto; height: auto; clip: auto; background: #fff; padding: 10px 14px; z-index: 100; }

/* ---------- Bandeau de Noël ---------- */
.bandeau { background: var(--rouge); color: #fff; text-align: center; font-size: 14.5px; line-height: 1.3; }
.bandeau a { display: block; padding: 10px var(--marge); text-decoration: none; }
.bandeau strong { font-weight: 800; letter-spacing: .01em; }
.bandeau span::before { content: "·"; margin: 0 .6em; }
@media (max-width: 640px) { .bandeau span { display: block; } .bandeau span::before { content: none; } }

/* ---------- Têtière du journal ---------- */
.une { display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; gap: 16px; padding: 18px var(--marge) 12px; }
.une-date, .une-panier { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.une-panier { justify-self: end; text-decoration: none; padding: 8px 0; }
.une-panier b { display: inline-block; min-width: 1.7em; padding: 1px 6px; margin-left: 6px; background: var(--encre); color: #fff; text-align: center; font-weight: 800; }
.une-panier b[data-vide] { background: none; color: var(--encre); box-shadow: inset 0 0 0 1.5px var(--encre); }
.titre-journal { font: 400 clamp(34px, 6.2vw, 76px)/.9 var(--titre); text-decoration: none; letter-spacing: -.01em; }
.titre-journal i { font-style: normal; color: var(--rouge); }
.sous-une { margin: 0 var(--marge); border-top: 3px solid var(--filet); border-bottom: 1px solid var(--filet); padding: 7px 0; text-align: center; font-size: 12.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.sous-une span + span::before { content: "·"; margin: 0 .9em; }
@media (max-width: 720px) {
  .une { grid-template-columns: 1fr auto; padding-top: 14px; }
  .une-date { display: none; }
  .sous-une span:nth-child(n+2) { display: none; }
}

/* ---------- Boutons ---------- */
.bouton { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; padding: 0 30px; border: 0; background: var(--rouge); color: #fff; font-weight: 800; font-size: 15px; letter-spacing: .08em; text-transform: uppercase; text-decoration: none; cursor: pointer; transition: background .15s; }
.bouton:hover { background: var(--rouge-fonce); }
.bouton[disabled] { background: #9a9a9a; cursor: not-allowed; }
.bouton-noir { background: var(--encre); }
.bouton-noir:hover { background: #333; }
.bouton-trait { background: none; color: var(--encre); box-shadow: inset 0 0 0 2px var(--encre); }
.bouton-trait:hover { background: var(--encre); color: #fff; }
.bouton-large { width: 100%; }
.lien { font-weight: 600; text-underline-offset: 4px; }

/* ---------- Ouverture ---------- */
.ouverture { padding: clamp(28px, 5vw, 64px) var(--marge) clamp(24px, 4vw, 48px); display: grid; grid-template-columns: minmax(0, 1.9fr) minmax(0, 1fr); gap: 24px clamp(24px, 5vw, 80px); align-items: end; }
.ouverture h1 { font: 400 clamp(54px, 11.2vw, 176px)/.86 var(--titre); letter-spacing: -.025em; }
.ouverture h1 em { font-style: normal; color: var(--rouge); }
.chapo { font-size: clamp(17px, 1.5vw, 21px); line-height: 1.45; }
.ouverture .bouton { margin-top: 22px; }
@media (max-width: 860px) { .ouverture { grid-template-columns: 1fr; } }
.pleine img { width: 100%; }
.legende-photo { padding: 10px var(--marge) 0; font-size: 14px; font-style: italic; color: var(--gris); }
.legende-photo b { font-style: normal; font-weight: 800; color: var(--encre); letter-spacing: .06em; text-transform: uppercase; font-size: 12px; margin-right: .6em; }

/* ---------- Rubriques ---------- */
.rubrique { padding: clamp(56px, 8vw, 120px) var(--marge); }
.surtitre { font-size: 13px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--rouge); margin-bottom: 14px; }
.titre { font: 400 clamp(38px, 6vw, 88px)/.92 var(--titre); letter-spacing: -.02em; }
.titre em { font-style: normal; color: var(--rouge); }

/* ---------- Les candidats (mur vert, sans marges entre les photos) ---------- */
.mur { background: var(--sapin); color: #fff; padding: clamp(48px, 7vw, 96px) 0 0; }
.mur-tete { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; padding: 0 var(--marge) clamp(28px, 4vw, 48px); }
.mur .surtitre { color: #fff; opacity: .75; }
.mur-prix { font-size: 16px; text-align: right; }
.mur-prix strong { display: block; font: 400 clamp(30px, 3.4vw, 44px)/1 var(--titre); }
.candidats { display: grid; grid-template-columns: repeat(3, 1fr); }
.candidat { position: relative; display: block; text-decoration: none; color: #fff; }
.candidat-photo { position: relative; aspect-ratio: 3 / 4; overflow: hidden; background: var(--sapin); }
.candidat-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .35s ease, transform .6s ease; }
.candidat-photo .dos { opacity: 0; }
@media (hover: hover) {
  .candidat:hover .face { opacity: 0; }
  .candidat:hover .dos { opacity: 1; }
}
.candidat-texte { display: grid; grid-template-columns: 1fr auto; gap: 2px 16px; padding: 14px var(--marge) 34px; align-items: baseline; }
.candidats .candidat-texte { padding-inline: clamp(14px, 2vw, 28px); }
.candidat-num { grid-column: 1 / -1; font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; opacity: .7; }
.candidat h3 { font: 400 clamp(24px, 2.6vw, 38px)/1 var(--titre); }
.candidat-prix { font: 400 clamp(20px, 2vw, 26px)/1 var(--titre); white-space: nowrap; }
.candidat-phrase { grid-column: 1 / -1; font-style: italic; opacity: .85; font-size: 15.5px; margin-top: 6px; }
@media (max-width: 860px) { .candidats { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) {
  .candidat-texte { grid-template-columns: 1fr; padding-bottom: 26px; }
  .candidat-prix { margin-top: 6px; }
  .candidat-phrase { font-size: 14px; }
}

/* ---------- Devant / Derrière ---------- */
.recto-verso { display: grid; grid-template-columns: 1fr 1fr; background: var(--sapin); color: #fff; }
.recto-verso figure { position: relative; }
.recto-verso img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.recto-verso figcaption { padding: clamp(14px, 2.4vw, 28px) clamp(14px, 3vw, 40px) clamp(26px, 4vw, 56px); }
.recto-verso figcaption b { display: block; font: 400 clamp(24px, 4.2vw, 60px)/.95 var(--titre); margin-bottom: 6px; }
.recto-verso figcaption span { font-size: clamp(13px, 1.3vw, 17px); opacity: .9; }

/* ---------- Qualité ---------- */
.qualite { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(28px, 6vw, 96px); align-items: center; }
.qualite img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.faits { margin-top: clamp(24px, 3vw, 40px); border-top: 3px solid var(--filet); }
.faits div { display: grid; grid-template-columns: minmax(120px, 15ch) 1fr; gap: 6px 24px; padding: 18px 0; border-bottom: 1px solid var(--filet); }
.faits dt { font-weight: 800; }
.faits dd { color: #333; }
@media (max-width: 860px) { .qualite { grid-template-columns: 1fr; } .faits div { grid-template-columns: 1fr; } }

/* ---------- Mode d'emploi ---------- */
.mode { border-top: 3px solid var(--filet); margin: 0 var(--marge); padding-inline: 0; }
.etapes { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 4vw, 64px); margin-top: clamp(28px, 4vw, 56px); counter-reset: etape; }
.etapes li { counter-increment: etape; }
.etapes li::before { content: counter(etape); display: block; font: 400 clamp(64px, 9vw, 132px)/.8 var(--titre); color: var(--rouge); margin-bottom: 14px; }
.etapes b { display: block; font: 400 clamp(22px, 2.2vw, 30px)/1.05 var(--titre); margin-bottom: 8px; }
@media (max-width: 720px) { .etapes { grid-template-columns: 1fr; } .etapes li { display: grid; grid-template-columns: 64px 1fr; column-gap: 12px; } .etapes li::before { grid-row: span 2; font-size: 72px; margin: 0; } }

/* ---------- Questions ---------- */
.questions { max-width: 880px; }
.questions details { border-bottom: 1px solid var(--filet); }
.questions details:first-of-type { border-top: 3px solid var(--filet); margin-top: clamp(24px, 3vw, 40px); }
.questions summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; padding: 20px 0; font: 400 clamp(20px, 2vw, 26px)/1.15 var(--titre); }
.questions summary::-webkit-details-marker { display: none; }
.questions summary::after { content: "+"; font: 400 28px/1 var(--texte); color: var(--rouge); }
.questions details[open] summary::after { content: "–"; }
.questions p { padding: 0 0 22px; max-width: 66ch; color: #333; }

/* ---------- Pied ---------- */
.pied { background: var(--encre); color: #cfcfcf; padding: clamp(40px, 6vw, 72px) var(--marge) 28px; font-size: 14.5px; }
.pied a { color: #fff; text-underline-offset: 3px; }
.pied-haut { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.pied .titre-journal { color: #fff; font-size: clamp(36px, 5vw, 60px); display: inline-block; margin-bottom: 14px; }
.pied h4 { margin: 0 0 12px; color: #fff; font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.pied li { margin-bottom: 8px; }
.pied-bas { margin-top: 40px; padding-top: 18px; border-top: 1px solid #444; font-size: 13px; color: #a8a8a8; max-width: 90ch; }
@media (max-width: 720px) { .pied-haut { grid-template-columns: 1fr; } }

/* ---------- Fiche produit ---------- */
.fiche { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: start; border-top: 1px solid var(--filet); margin-top: 14px; }
.galerie { display: grid; grid-template-columns: 1fr 1fr; background: var(--sapin); }
.galerie img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.galerie-compteur { display: none; }
.achat { position: sticky; top: 0; padding: clamp(24px, 3.4vw, 56px) var(--marge) 40px clamp(24px, 4vw, 64px); }
.fil { font-size: 13px; color: var(--gris); margin-bottom: 18px; }
.fil a { text-decoration: none; }
.fil a:hover { text-decoration: underline; }
.achat .surtitre { margin-bottom: 8px; }
.achat h1 { font: 400 clamp(40px, 4.6vw, 72px)/.92 var(--titre); letter-spacing: -.02em; }
.achat-sous { font-size: 16px; color: var(--gris); margin-top: 8px; }
.achat-prix { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin: 22px 0 4px; }
.achat-prix strong { font: 400 clamp(32px, 3vw, 42px)/1 var(--titre); }
.achat-promo { color: var(--rouge); font-weight: 800; font-size: 15px; }
.achat-ttc { font-size: 13.5px; color: var(--gris); }
.tailles { border: 0; padding: 0; margin: 26px 0 0; }
.tailles legend { padding: 0; margin-bottom: 10px; font-size: 13px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; width: 100%; display: flex; justify-content: space-between; }
.tailles legend a { font-weight: 400; letter-spacing: 0; text-transform: none; }
.tailles-choix { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.tailles label { position: relative; }
.tailles input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.tailles legend span { font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--gris); }
.tailles label span { display: grid; place-items: center; height: 52px; box-shadow: inset 0 0 0 1.5px var(--encre); font-weight: 600; }
.tailles input:checked + span { background: var(--encre); color: #fff; }
.tailles input:focus-visible + span { outline: 3px solid var(--rouge); outline-offset: 2px; }
.tailles.manque label span { box-shadow: inset 0 0 0 2px var(--rouge); }
.tailles-erreur { color: var(--rouge); font-weight: 600; font-size: 14.5px; margin-top: 10px; }
.achat-boutons { display: grid; gap: 10px; margin-top: 22px; }
.achat-note { font-size: 14px; color: var(--gris); margin-top: 14px; }
.achat-note b { color: var(--encre); }
.fermé { margin-top: 14px; padding: 12px 0; border-top: 1px solid var(--filet); border-bottom: 1px solid var(--filet); font-size: 14.5px; }
.pitch { margin-top: 30px; font-size: 18px; line-height: 1.5; }
.pour { margin-top: 12px; font-style: italic; color: #333; }
.details { margin-top: 28px; border-top: 3px solid var(--filet); }
.details div { display: grid; grid-template-columns: 12ch 1fr; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--filet-doux); font-size: 15.5px; }
.details dt { font-weight: 800; }
.au-dos { background: var(--encre); color: #fff; padding: clamp(56px, 9vw, 130px) var(--marge); text-align: center; }
.au-dos .surtitre { color: #fff; opacity: .7; }
.au-dos blockquote { margin: 0; font: 400 clamp(44px, 9vw, 150px)/.92 var(--titre); letter-spacing: -.02em; }
.au-dos cite { display: block; margin-top: 22px; font: italic 400 clamp(17px, 2vw, 26px)/1.2 var(--texte); color: #ff6b70; }
@media (max-width: 900px) {
  .fiche { grid-template-columns: 1fr; margin-top: 10px; }
  .galerie { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .galerie::-webkit-scrollbar { display: none; }
  .galerie img { flex: 0 0 100%; scroll-snap-align: center; }
  .galerie-boite { position: relative; }
  .galerie-compteur { display: block; position: absolute; right: 12px; bottom: 12px; background: rgba(17, 17, 17, .78); color: #fff; font-size: 12.5px; font-weight: 600; padding: 4px 9px; letter-spacing: .04em; }
  .achat { position: static; padding: 22px var(--marge) 36px; }
}

/* Barre d'achat collante (mobile) */
.barre { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: none; grid-template-columns: 1fr auto; gap: 12px; align-items: center; padding: 10px var(--marge) calc(10px + env(safe-area-inset-bottom)); background: #fff; border-top: 2px solid var(--encre); transform: translateY(110%); transition: transform .25s ease; }
.barre.visible { transform: none; }
.barre-nom { font: 400 19px/1 var(--titre); }
.barre-prix { font-size: 14px; color: var(--gris); }
.barre .bouton { min-height: 48px; padding: 0 22px; }
@media (max-width: 900px) { .barre { display: grid; } body.a-barre { padding-bottom: 76px; } }

/* ---------- Panier ---------- */
.page { padding: clamp(24px, 4vw, 56px) var(--marge) clamp(56px, 8vw, 110px); }
.page > h1 { font: 400 clamp(44px, 7vw, 100px)/.9 var(--titre); letter-spacing: -.02em; margin-bottom: clamp(20px, 3vw, 40px); }
.panier { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(280px, 1fr); gap: clamp(24px, 5vw, 80px); align-items: start; }
.lignes { border-top: 3px solid var(--filet); }
.ligne { display: grid; grid-template-columns: 96px 1fr auto; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--filet); align-items: center; }
.ligne img { width: 96px; aspect-ratio: 3 / 4; object-fit: cover; }
.ligne h3 { font: 400 24px/1 var(--titre); }
.ligne h3 a { text-decoration: none; }
.ligne-meta { font-size: 14.5px; color: var(--gris); margin: 6px 0 10px; }
.ligne-prix { font: 400 22px/1 var(--titre); white-space: nowrap; }
.qte { display: inline-flex; align-items: center; box-shadow: inset 0 0 0 1.5px var(--encre); }
.qte button { width: 40px; height: 40px; border: 0; background: none; font-size: 20px; cursor: pointer; }
.qte button:hover { background: var(--encre); color: #fff; }
.qte output { min-width: 30px; text-align: center; font-weight: 600; }
.retirer { background: none; border: 0; padding: 0; margin-left: 14px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; font-size: 14px; color: var(--gris); }
.total { border-top: 3px solid var(--filet); padding-top: 4px; position: sticky; top: 16px; }
.total dl div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--filet-doux); }
.total .remise { color: var(--rouge); font-weight: 600; }
.total .somme { border-bottom: 0; font: 400 30px/1 var(--titre); padding-top: 18px; }
.total .tva { font-size: 13px; color: var(--gris); text-align: right; margin: 2px 0 18px; }
.total-astuce { background: var(--sapin); color: #fff; padding: 12px 14px; font-size: 14.5px; margin: 14px 0 0; }
.total-info { font-size: 13.5px; color: var(--gris); margin-top: 12px; }
.vide { border-top: 3px solid var(--filet); padding-top: 28px; }
.vide p { font-size: 19px; margin-bottom: 22px; }
@media (max-width: 860px) { .panier { grid-template-columns: 1fr; } .total { position: static; } .ligne { grid-template-columns: 76px 1fr; } .ligne img { width: 76px; } .ligne-prix { grid-column: 2; } }

/* ---------- Pages de texte ---------- */
.texte { max-width: 760px; }
.texte h2 { font: 400 28px/1.1 var(--titre); margin: 36px 0 10px; }
.texte p, .texte li { margin-bottom: 12px; color: #222; }
.texte ul { list-style: disc; padding-left: 20px; }
.texte .date { color: var(--gris); font-size: 14px; }

/* ---------- Message d'ajout ---------- */
.avis { position: fixed; z-index: 40; left: 50%; bottom: 24px; width: max-content; transform: translate(-50%, 24px); opacity: 0; pointer-events: none; background: var(--encre); color: #fff; padding: 14px 18px; display: flex; gap: 18px; align-items: center; font-size: 15px; transition: opacity .2s, transform .2s; max-width: calc(100vw - 24px); }
.avis.visible { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.avis span { flex: 1; }
.avis a { color: #fff; font-weight: 800; white-space: nowrap; }
body.a-barre .avis { bottom: 92px; }
