/* Coop de Gallix — refonte 2026
   Un seul système visuel, tiré de la maquette d'accueil :
   bordures à l'encre, ombres décalées, coins peu arrondis.
   Pour adoucir tout le site, ajuster --bord, --ombre et --rayon ci-dessous. */

:root {
  --encre: #14202b;
  --papier: #f8f3ea;
  --sable: #ebdece;
  --sable-fonce: #e2d3bf;
  --carte: #fffdf9;
  --bleu: #1d486a;
  --bleu-nuit: #163a56;
  --bleu-ombre: #0d2233;
  --vert: #234f32;
  --vert-nuit: #173822;
  --menthe: #e3ead9;
  --texte-doux: #33424e;
  --texte-gris: #44535f;
  --sur-bleu: #e6eef4;
  --sur-vert: #e4eee6;
  --filet-bleu: #5d7d96;

  --bord: 1px solid var(--encre);
  --ombre: 2px 2px 0 var(--encre);
  --ombre-btn: 4px 4px 0 var(--encre);
  --rayon: 10px;
  --rayon-btn: 6px;

  --titres: 'Outfit', 'Figtree', system-ui, sans-serif;
  --corps: 'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--corps);
  font-size: 17px;
  line-height: 1.55;
  color: var(--encre);
  background: var(--papier);
}
img { max-width: 100%; height: auto; }
a { color: var(--bleu); }
a:hover { color: var(--vert); }
:focus-visible { outline: 3px solid #e0a53a; outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, p { margin: 0; }
[id] { scroll-margin-top: 24px; }
[hidden] { display: none !important; }

.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}
.skip { position: absolute; left: -999px; top: 8px; background: var(--carte); padding: 10px 14px; z-index: 10; font-weight: 700; }
.skip:focus { left: 8px; }

/* ---------- Mise en page ---------- */
.wrap { max-width: 1200px; margin: 0 auto; padding-inline: 24px; }
.wrap--narrow { max-width: 820px; }
.section { padding-block: 88px; }
.section--tight { padding-block: 72px; }
.section--flush-top { padding-top: 0; }
.bg-papier { background: var(--papier); }
.bg-sable { background: var(--sable); }
.bg-menthe { background: var(--menthe); }
.bg-bleu { background: var(--bleu); color: #fff; }
.bg-vert { background: var(--vert); color: #fff; }
.rule-top { border-top: var(--bord); }
.rule-bottom { border-bottom: var(--bord); }
.stack { display: flex; flex-direction: column; gap: 28px; }
.stack--lg { gap: 44px; }
.row { display: flex; flex-wrap: wrap; gap: 20px; }
.split { display: flex; flex-wrap: wrap; gap: 48px 72px; align-items: center; }
.split--top { align-items: flex-start; }
.split > * { flex: 1 1 400px; min-width: 0; }
.col { display: flex; flex-direction: column; gap: 20px; align-items: flex-start; min-width: 0; }
.head-row { display: flex; flex-wrap: wrap; gap: 16px 48px; justify-content: space-between; align-items: flex-end; }

/* ---------- Typographie ---------- */
.h-hero { font-family: var(--titres); font-weight: 500; font-size: clamp(44px, 6vw, 84px); line-height: .98; letter-spacing: -.025em; }
.h-page { font-family: var(--titres); font-weight: 500; font-size: clamp(38px, 4.6vw, 60px); line-height: 1.05; letter-spacing: -.01em; }
.h-section { font-family: var(--titres); font-weight: 500; font-size: clamp(34px, 4.4vw, 56px); line-height: 1.02; letter-spacing: -.02em; }
.h-sub { font-family: var(--titres); font-weight: 500; font-size: clamp(30px, 3.4vw, 42px); line-height: 1.1; }
.h-card { font-family: var(--titres); font-weight: 500; font-size: 22px; line-height: 1.2; }
.h-card--lg { font-size: 28px; }
.lead { font-size: 20px; line-height: 1.5; color: var(--texte-doux); max-width: 620px; }
.lead--sm { font-size: 19px; }
.muted { color: var(--texte-doux); }
.small { font-size: 15px; color: var(--texte-gris); }
.bg-bleu .lead, .bg-bleu .muted, .bg-bleu .small { color: var(--sur-bleu); }
.bg-vert .lead, .bg-vert .muted, .bg-vert .small { color: var(--sur-vert); }
.bg-menthe .lead, .bg-menthe .muted, .bg-menthe .small { color: #24382b; }
.bg-menthe .h-page, .bg-menthe .h-section, .bg-menthe .h-sub { color: var(--vert-nuit); }

.kicker { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 16px; color: var(--vert); }
.kicker svg { flex: none; width: 18px; height: 18px; fill: currentColor; }
.bg-bleu .kicker, .bg-vert .kicker, .ardoise .kicker { color: var(--sable); }
.kicker--encre { color: var(--encre); }

.link-strong { font-weight: 700; display: inline-block; padding: 12px 0; }
.arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; }
.arrow svg, .btn svg { flex: none; width: 18px; height: 18px; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font: inherit; font-weight: 700; text-decoration: none; cursor: pointer;
  padding: 15px 24px; border-radius: var(--rayon-btn);
  border: var(--bord); box-shadow: var(--ombre-btn);
  background: var(--bleu); color: #fff;
  transition: transform .12s ease, box-shadow .12s ease;
}
.btn:hover { color: #fff; transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--encre); }
.btn:active { transform: translate(4px, 4px); box-shadow: none; }
.btn--light { background: var(--papier); color: var(--encre); }
.btn--sable { background: var(--sable); color: var(--encre); }
.btn--vert { background: var(--vert); }
.btn--light:hover, .btn--sable:hover { color: var(--encre); }
.btn--sm { padding: 11px 18px; }
.bg-bleu .btn, .bg-vert .btn, .ardoise .btn, .panel--bleu .btn { border-color: var(--bleu-ombre); box-shadow: 4px 4px 0 var(--bleu-ombre); }
.bg-bleu .btn:hover, .bg-vert .btn:hover, .panel--bleu .btn:hover { box-shadow: 2px 2px 0 var(--bleu-ombre); }
.btn--ghost { background: transparent; color: #fff; border-color: #fff !important; box-shadow: none !important; }
.btn--ghost:hover { background: rgba(255, 255, 255, .12); transform: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 8px; }
@media (prefers-reduced-motion: reduce) { .btn { transition: none; } }

/* ---------- Barre du haut + en-tête ---------- */
.topbar { background: var(--bleu-nuit); color: var(--papier); font-size: 14px; }
.topbar .wrap { padding-block: 8px; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; align-items: center; }
.topbar a { color: var(--papier); text-decoration: none; }
.topbar a:hover { text-decoration: underline; }
.topbar__info { display: flex; flex-wrap: wrap; gap: 6px 24px; align-items: center; }
.topbar__hours { display: inline-flex; align-items: center; gap: 8px; }
.topbar__hours svg { width: 14px; height: 14px; fill: var(--sable); flex: none; }
.lang { display: flex; gap: 4px; align-items: center; }
.lang > * { padding: 6px 10px; border-radius: 4px; }
.lang [aria-current] { font-weight: 700; background: var(--papier); color: var(--bleu-nuit); }

.site-header { background: var(--papier); }
.site-header .wrap { padding-block: 14px; display: flex; flex-wrap: wrap; gap: 12px 32px; justify-content: space-between; align-items: center; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--encre); }
.brand:hover { color: var(--encre); }
.brand img { width: 64px; height: 64px; display: block; }
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__name { font-family: var(--titres); font-weight: 500; font-size: 24px; }
.brand__tag { font-size: 14px; color: var(--texte-gris); }
.nav { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; font-weight: 600; font-size: 16px; }
.nav a:not(.btn) { color: var(--encre); text-decoration: none; padding: 12px; }
.nav a:not(.btn):hover { box-shadow: inset 0 -3px 0 var(--sable-fonce); }
.nav a[aria-current="page"]:not(.btn) { box-shadow: inset 0 -3px 0 var(--bleu); }
.nav .btn { margin-left: 8px; box-shadow: 3px 3px 0 var(--encre); }
.nav__long { display: none; }
.menu-toggle {
  display: none; width: 48px; height: 48px; padding: 0; cursor: pointer;
  border: var(--bord); border-radius: var(--rayon-btn); background: var(--carte); color: var(--bleu);
  align-items: center; justify-content: center; box-shadow: 3px 3px 0 var(--encre);
}
@media (max-width: 1040px) {
  .menu-toggle { display: flex; }
  .site-header .wrap { flex-wrap: wrap; }
  .nav { display: none; flex: 1 0 100%; flex-direction: column; align-items: stretch; gap: 0; font-size: 18px; padding-bottom: 8px; }
  .nav.is-open { display: flex; }
  .no-js .nav { display: flex; }
  .no-js .menu-toggle { display: none; }
  .nav a:not(.btn) { padding: 13px 0; border-bottom: 1px solid var(--sable-fonce); }
  .nav a:not(.btn):hover, .nav a[aria-current="page"]:not(.btn) { box-shadow: none; }
  .nav a[aria-current="page"]:not(.btn) { color: var(--bleu); }
  .nav .btn { margin: 16px 4px 4px 0; }
  .nav__short { display: none; }
  .nav__long { display: inline; }
}
@media (max-width: 520px) {
  .wrap { padding-inline: 20px; }
  .topbar { font-size: 13px; }
  .topbar__phone { display: none; }
  .brand img { width: 52px; height: 52px; }
  .brand__name { font-size: 20px; }
  .brand__tag { font-size: 13px; }
  body { font-size: 16px; }
  .section { padding-block: 64px; }
  .section--tight { padding-block: 56px; }
}

/* ---------- Accueil : héros ---------- */
.hero .wrap { padding-block: 72px; display: flex; flex-wrap: wrap; gap: 64px 56px; align-items: center; }
.hero__text { flex: 999 1 500px; min-width: 0; display: flex; flex-direction: column; gap: 24px; align-items: flex-start; }
.ardoise {
  flex: 1 1 380px; min-width: 0; position: relative;
  background: var(--encre); color: var(--papier);
  border-radius: var(--rayon); padding: 32px; box-shadow: 10px 10px 0 var(--bleu);
  display: flex; flex-direction: column; gap: 18px;
}
.ardoise__logo { position: absolute; top: -52px; right: 20px; width: 104px; height: 104px; border-radius: 50%; }
.ardoise__today { display: flex; flex-direction: column; gap: 4px; padding-right: 120px; }
.ardoise__hours { font-family: var(--titres); font-weight: 500; font-size: clamp(34px, 3.6vw, 46px); line-height: 1.05; letter-spacing: -.01em; }
.ardoise table { border-collapse: collapse; width: 100%; font-size: 16px; }
.ardoise th { text-align: left; font-weight: 500; padding: 6px 0; color: #d5dde3; }
.ardoise td { text-align: right; padding: 6px 0; font-weight: 700; }
.pump { display: flex; flex-direction: column; }
.pump__head { display: flex; justify-content: space-between; align-items: baseline; padding-bottom: 8px; }
.pump__row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; border-top: 1px solid #3a4a57; padding: 10px 0; }
.pump__row span:first-child { font-weight: 600; font-size: 18px; }
.pump__price { font-family: var(--titres); font-weight: 500; font-size: 30px; line-height: 1; font-variant-numeric: tabular-nums; }
.pump__note { font-size: 14px; color: #d5dde3; border-top: 1px solid #3a4a57; padding-top: 10px; }
.pump--list { gap: 6px; border-top: 1px solid #3a4a57; padding-top: 14px; }
.pump--list strong { font-size: 18px; font-weight: 600; }
@media (max-width: 520px) {
  .hero .wrap { padding-block: 48px 56px; gap: 76px; }
  .ardoise { padding: 24px; box-shadow: 6px 6px 0 var(--bleu); }
  .ardoise__logo { width: 84px; height: 84px; top: -42px; }
  .ardoise__today { padding-right: 96px; }
}

.photo {
  display: block; width: 100%; object-fit: cover;
  border-radius: var(--rayon); border: var(--bord); box-shadow: var(--ombre);
  background: var(--sable-fonce);
}
.photo--wide { aspect-ratio: 21 / 9; min-height: 240px; }
.photo--43 { aspect-ratio: 4 / 3; }
.bg-bleu .photo, .bg-vert .photo { border-color: var(--bleu-ombre); box-shadow: 6px 6px 0 var(--bleu-ombre); }

/* ---------- Accueil : rayons ---------- */
.rayons { display: flex; flex-wrap: wrap; gap: 24px; }
.rayons__side { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.tile {
  position: relative; overflow: hidden; text-decoration: none;
  border: var(--bord); border-radius: var(--rayon); box-shadow: var(--ombre);
  padding: 30px; display: flex; flex-direction: column; gap: 10px; flex: 1 1 auto;
  transition: transform .12s ease, box-shadow .12s ease;
}
.tile:hover { transform: translate(3px, 3px); box-shadow: 3px 3px 0 var(--encre); }
.tile h3 { font-family: var(--titres); font-weight: 500; font-size: 36px; line-height: 1.05; letter-spacing: -.01em; }
.tile .arrow { margin-top: auto; padding-top: 8px; }
.tile--bleu { background: var(--bleu); color: #fff; }
.tile--bleu p { color: var(--sur-bleu); }
.tile--vert { background: var(--vert); color: #fff; }
.tile--vert p { color: var(--sur-vert); }
.tile--papier { background: var(--papier); color: var(--encre); }
.tile--papier p { color: var(--texte-doux); }
.tile--papier .arrow { color: var(--bleu); }
.tile--bleu:hover, .tile--vert:hover { color: #fff; }
.tile--papier:hover { color: var(--encre); }
.tile--big { flex: 1.5 1 420px; min-width: 0; min-height: 440px; padding: 40px; gap: 16px; }
.tile--big h3 { font-size: clamp(44px, 5vw, 72px); line-height: 1; letter-spacing: -.02em; }
.tile--big p { font-size: 19px; max-width: 440px; }
.tile__motif { position: absolute; right: 36px; bottom: -6px; height: 190px; width: auto; }
@media (max-width: 520px) {
  .tile--big { min-height: 380px; padding: 28px; }
  .tile__motif { height: 130px; right: 20px; }
}
@media (prefers-reduced-motion: reduce) { .tile { transition: none; } }

.ledger { display: flex; flex-wrap: wrap; column-gap: 56px; border-bottom: var(--bord); }
.ledger > * { flex: 1 1 420px; min-width: 0; border-top: var(--bord); padding: 18px 0; display: flex; justify-content: space-between; align-items: baseline; gap: 24px; }
.ledger dt { font-family: var(--titres); font-weight: 500; font-size: 24px; line-height: 1.2; }
.ledger dd { margin: 0; color: var(--texte-doux); text-align: right; }
dl.ledger { margin: 0; }

/* ---------- Cartes ---------- */
.card { background: var(--carte); border: var(--bord); border-radius: 8px; padding: 24px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.card p { color: var(--texte-doux); }
.card--papier { background: var(--papier); }
.card--lift { box-shadow: var(--ombre-btn); }
a.card { text-decoration: none; color: var(--encre); transition: transform .12s ease, box-shadow .12s ease; }
a.card:hover { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--encre); }
a.card .arrow { color: var(--bleu); margin-top: 4px; }
.grid-4 > * { flex: 1 1 250px; }
.grid-3 > * { flex: 1 1 280px; }
.grid-2 > * { flex: 1 1 340px; }
.grid-5 > * { flex: 1 1 200px; }

.panel { border: var(--bord); border-radius: var(--rayon); box-shadow: var(--ombre); padding: clamp(28px, 4vw, 48px); display: flex; flex-direction: column; gap: 12px; align-items: flex-start; min-width: 0; }
.panel--vert { background: var(--vert); color: #fff; }
.panel--vert p { color: var(--sur-vert); }
.panel--menthe { background: var(--menthe); }
.panel--menthe h2, .panel--menthe h3 { color: var(--vert-nuit); }
.panel--menthe p { color: #24382b; }
.panel--bleu { background: var(--bleu); color: #fff; }
.panel--bleu p { color: var(--sur-bleu); }
.panel--bleu a:not(.btn) { color: #fff; }
.panel--carte { background: var(--carte); }
.panel--carte p { color: var(--texte-doux); }
.panel--sm { padding: 28px; gap: 8px; box-shadow: var(--ombre-btn); }
.panel img.photo { box-shadow: none; }

.badge { align-self: flex-start; font-size: 13px; font-weight: 700; background: var(--bleu); color: #fff; padding: 4px 10px; border-radius: 4px; }
.price { font-family: var(--titres); font-weight: 500; font-size: 30px; line-height: 1.1; color: var(--bleu); }
.panel--vert .price { color: #fff; }

/* ---------- Spéciaux ---------- */
.special { flex: 1 1 240px; min-width: 0; background: var(--carte); border: var(--bord); border-radius: 8px; overflow: hidden; display: flex; flex-direction: column; }
.special__photo { aspect-ratio: 4 / 3; background: var(--sable-fonce); border-bottom: var(--bord); display: flex; align-items: center; justify-content: center; }
.special__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.special__photo svg { width: 56px; height: 56px; fill: var(--carte); opacity: .7; }
.special__body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 4px; }
.special__dept { font-size: 14px; font-weight: 700; color: var(--bleu); }
.special__dept--quincaillerie { color: var(--vert); }
.special h3 { font-size: 19px; font-weight: 700; }
.special__price { font-family: var(--titres); font-weight: 500; font-size: 38px; line-height: 1.1; }
.notice { background: var(--carte); border: var(--bord); border-radius: 8px; padding: 28px; display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; justify-content: space-between; }
.notice > div { display: flex; flex-direction: column; gap: 4px; }

/* ---------- Vague ---------- */
.vague { display: block; width: 100%; height: 44px; margin-bottom: -1px; }

/* ---------- Listes numérotées / à puces ---------- */
.steps { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; border-bottom: 1px solid var(--filet-bleu); }
.steps li { border-top: 1px solid var(--filet-bleu); padding: 22px 0; display: flex; gap: 24px; align-items: baseline; }
.steps__n, .num { font-family: var(--titres); font-weight: 500; font-size: 44px; line-height: 1; color: var(--sable); flex: none; width: 36px; }
.steps h3 { font-family: var(--titres); font-weight: 500; font-size: 26px; line-height: 1.15; margin-bottom: 4px; }
.steps p { color: var(--sur-bleu); }
.num--bleu { color: var(--bleu); font-size: 40px; width: auto; }

.perks { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; border-bottom: 2px solid var(--vert); }
.perks li { border-top: 2px solid var(--vert); padding: 20px 0; display: flex; gap: 18px; align-items: center; font-size: 19px; }
.perks img { width: 20px; height: 36px; flex: none; }

/* ---------- Babillard ---------- */
.board { display: flex; flex-direction: column; border-bottom: var(--bord); }
.board a { border-top: var(--bord); padding: 22px 0; display: flex; flex-wrap: wrap; gap: 8px 32px; align-items: baseline; text-decoration: none; color: var(--encre); }
.board a:hover .board__title { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.board__meta { flex: 0 0 220px; font-size: 15px; font-weight: 600; color: var(--texte-gris); }
.board__main { flex: 999 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.board__title { font-size: 21px; font-weight: 700; line-height: 1.3; }
.board__sum { color: var(--texte-doux); }
.board svg { width: 18px; height: 18px; color: var(--bleu); flex: none; }
@media (max-width: 720px) { .board__meta { flex-basis: 100%; } .board svg { display: none; } }

/* ---------- Visite / contact ---------- */
.visit { display: flex; flex-wrap: wrap; gap: 48px 64px; align-items: stretch; }
.visit > .col { flex: 1 1 380px; }
.map { flex: 1.4 1 420px; min-width: 0; min-height: 360px; border: var(--bord); border-radius: var(--rayon); box-shadow: var(--ombre); overflow: hidden; background: #d9c9b3; display: flex; }
.map iframe { border: 0; width: 100%; flex: 1; min-height: 360px; display: block; }
address { font-style: normal; display: flex; flex-direction: column; gap: 2px; font-size: 19px; }
.contact-links { display: flex; flex-direction: column; }
.contact-links a { font-weight: 700; font-size: 19px; padding: 6px 0; }

.info { background: var(--carte); border: var(--bord); border-radius: 8px; padding: 22px 24px; display: flex; gap: 16px; align-items: flex-start; text-decoration: none; color: var(--encre); }
a.info:hover { color: var(--encre); background: #fff; }
.info svg { flex: none; width: 26px; height: 26px; color: var(--bleu); }
.info address, .info > span { display: flex; flex-direction: column; gap: 2px; font-size: inherit; }
.info__label { font-size: 14px; font-weight: 600; color: var(--texte-gris); }
.info__value { font-weight: 700; font-size: 18px; overflow-wrap: anywhere; }

.hours { border-collapse: collapse; width: 100%; font-size: 17px; }
.hours caption { text-align: left; padding-bottom: 6px; font-family: var(--titres); font-weight: 500; font-size: 22px; line-height: 1.2; }
.hours th { text-align: left; font-weight: 500; padding: 10px 0; }
.hours td { text-align: right; padding: 10px 0; font-weight: 700; }
.hours tr + tr { border-top: 1px solid #cdbba3; }

/* ---------- Formulaires ---------- */
.form { display: flex; flex-direction: column; gap: 20px; }
.form__row { display: flex; flex-wrap: wrap; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: 15px; flex: 1 1 220px; min-width: 0; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 17px; font-weight: 400; padding: 13px 14px;
  border: var(--bord); border-radius: var(--rayon-btn); background: #fff; color: var(--encre);
}
.field textarea { resize: vertical; }
.check { display: flex; gap: 12px; align-items: flex-start; padding: 6px 0; }
.check input { width: 22px; height: 22px; flex: none; margin: 2px 0 0; accent-color: var(--vert); }
.form .btn { align-self: flex-start; }
.hp { position: absolute; left: -9999px; }
.form-wrap { display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-start; }
.form-wrap > .panel { flex: 999 1 520px; align-items: stretch; gap: 22px; }
.form-wrap > aside { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }

/* ---------- FAQ ---------- */
.faq { display: flex; flex-direction: column; gap: 12px; }
.faq details { background: var(--papier); border: var(--bord); border-radius: 8px; padding: 4px 22px; }
.faq summary { font-weight: 700; font-size: 18px; padding: 16px 0; cursor: pointer; }
.faq details > div { padding-bottom: 18px; color: var(--texte-doux); }
.faq details > div > :first-child { margin-top: 0; }
.faq details > div > :last-child { margin-bottom: 0; }

/* ---------- En-têtes de page ---------- */
.page-hero .wrap { padding-block: 40px 72px; display: flex; flex-wrap: wrap; gap: 48px; align-items: center; }
.page-hero__text { flex: 999 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }
.page-hero__media { flex: 1 1 380px; min-width: 0; }
.page-hero__logo { flex: 0 1 240px; width: 240px; max-width: 60%; }
.crumbs { font-size: 15px; color: var(--texte-gris); display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.crumbs a { padding: 8px 0; }
.bg-bleu .crumbs, .bg-vert .crumbs { color: var(--sur-bleu); }
.bg-bleu .crumbs a, .bg-vert .crumbs a { color: #fff; }
.facts { display: flex; flex-wrap: wrap; gap: 8px 24px; font-weight: 600; }
.facts span { display: inline-flex; align-items: center; gap: 8px; }
.facts svg { width: 22px; height: 22px; }

.team-card small { font-size: 14px; font-weight: 600; color: var(--texte-gris); }
.team-card strong { font-size: 18px; }
.team-card a { font-size: 15px; font-weight: 600; margin-top: 4px; overflow-wrap: anywhere; }
.date-card .price { font-size: 30px; }

/* ---------- Texte courant (nouvelles, documents…) ---------- */
.prose { max-width: 760px; font-size: 18px; }
.prose > * + * { margin-top: 1.1em; }
.prose h2, .prose h3, .prose h4 { font-family: var(--titres); font-weight: 500; line-height: 1.15; margin-top: 1.8em; }
.prose h2 { font-size: 32px; }
.prose h3 { font-size: 25px; }
.prose h4 { font-size: 20px; }
.prose img { border-radius: 8px; border: var(--bord); display: block; }
.prose img[src$=".svg"] { border: 0; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .4em; }
.prose hr { border: 0; border-top: var(--bord); margin-block: 2em; }
.prose blockquote { margin-inline: 0; padding: 4px 0 4px 20px; border-left: 4px solid var(--bleu); color: var(--texte-doux); }
.prose code { background: var(--sable); padding: 2px 6px; border-radius: 4px; font-size: .92em; overflow-wrap: anywhere; }
.prose table { border-collapse: collapse; width: 100%; display: block; overflow-x: auto; }
.prose th, .prose td { border-bottom: 1px solid #cdbba3; padding: 8px 12px 8px 0; text-align: left; }
.prose object, .prose iframe { max-width: 100%; border: var(--bord); border-radius: 8px; }
.prose a { overflow-wrap: anywhere; }
.pager { display: flex; flex-wrap: wrap; gap: 20px; }
.pager > a { flex: 1 1 300px; }

.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 24px; }
.news-card { padding: 0; overflow: hidden; gap: 0; box-shadow: var(--ombre-btn); }
.news-card__img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; display: block; border-bottom: var(--bord); background: var(--sable-fonce); }
.news-card__body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.news-card time { font-size: 14px; font-weight: 600; color: var(--texte-gris); }
.news-card h2 { font-size: 21px; line-height: 1.25; font-weight: 700; }
.news-card .arrow { margin-top: auto; padding-top: 8px; }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--bleu-nuit); color: var(--papier); }
.site-footer .wrap { padding-block: 48px 32px; display: flex; flex-direction: column; gap: 40px; }
.footer__top { display: flex; flex-wrap: wrap; gap: 40px 64px; justify-content: space-between; }
.footer__brand { display: flex; gap: 20px; align-items: center; flex: 1 1 320px; }
.footer__brand img { width: 112px; height: 112px; flex: none; }
.footer__brand p { color: var(--sur-bleu); max-width: 280px; }
.footer__nav { display: flex; flex-wrap: wrap; gap: 32px 64px; }
.footer__nav div { display: flex; flex-direction: column; gap: 4px; }
.footer__nav strong { margin-bottom: 4px; }
.site-footer a { color: var(--papier); text-decoration: none; padding: 6px 0; }
.site-footer a:hover { text-decoration: underline; }
.footer__legal { border-top: 1px solid var(--filet-bleu); padding-top: 20px; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; font-size: 14px; color: #d5e0e8; }

/* Anciennes nouvelles qui utilisent encore la grille Bootstrap */
.prose .row { display: flex; flex-wrap: wrap; gap: 20px; }
.prose .col { flex: 1 1 280px; }

/* ---------- Catalogue et liste d'achats ---------- */
.only-print { display: none; }
.catalogue { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 40px; align-items: start; }
.catalogue__rayons { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.recherche { margin-bottom: 8px; }
.recherche .field { font-size: 16px; }
.recherche input { font-size: 19px; padding: 15px 16px; }
.recherche .small { min-height: 1.5em; margin-top: 6px; }

.cat { background: var(--carte); border: var(--bord); border-radius: 8px; }
.cat summary { display: flex; align-items: center; gap: 12px; padding: 16px 20px; cursor: pointer; list-style: none; }
.cat summary::-webkit-details-marker { display: none; }
.cat summary::before { content: "+"; font-family: var(--titres); font-size: 26px; line-height: 1; width: 18px; color: var(--bleu); flex: none; }
.cat[open] summary::before { content: "–"; }
.cat[open] summary { border-bottom: var(--bord); }
.cat__titre { font-family: var(--titres); font-weight: 500; font-size: 22px; line-height: 1.2; flex: 1; }
.cat__choisis { font-weight: 700; font-size: 14px; color: var(--vert); }
.cat__n { font-size: 14px; font-weight: 600; color: var(--texte-gris); background: var(--sable); border-radius: 4px; padding: 2px 8px; }
.picks { list-style: none; margin: 0; padding: 12px 12px 16px; columns: 2 240px; column-gap: 12px; }
.picks li { break-inside: avoid; }
.pick { display: flex; align-items: center; gap: 12px; padding: 9px 8px; border-radius: 6px; cursor: pointer; min-height: 44px; }
.pick:hover { background: var(--sable); }
.pick input { width: 22px; height: 22px; flex: none; margin: 0; accent-color: var(--vert); }
.pick:has(input:checked) { background: var(--menthe); font-weight: 600; }
.pick__nom { min-width: 0; overflow-wrap: anywhere; }
.pick__ici { font-size: 12px; font-weight: 700; color: var(--vert); border: 1.5px solid var(--vert); border-radius: 4px; padding: 0 6px; white-space: nowrap; }

.liste { position: sticky; top: 16px; max-height: calc(100vh - 32px); overflow-y: auto; background: var(--carte); border: var(--bord); border-radius: var(--rayon); box-shadow: var(--ombre); padding: 24px; display: flex; flex-direction: column; gap: 16px; }
.liste__compte { color: var(--texte-gris); font-size: 20px; }
.liste__groupe h3 { font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--vert); margin: 4px 0 4px; }
.liste__groupe ul { list-style: none; margin: 0 0 8px; padding: 0; }
.liste__groupe li { display: flex; align-items: center; gap: 10px; padding: 5px 0; border-bottom: 1px solid var(--sable-fonce); }
.liste__case { display: none; }
.liste__nom { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.liste__retirer { flex: none; width: 36px; height: 36px; border: 0; background: none; font-size: 22px; line-height: 1; color: var(--texte-gris); cursor: pointer; border-radius: 6px; }
.liste__retirer:hover { background: var(--sable); color: var(--encre); }
.liste__ajout-ligne { display: flex; gap: 8px; }
.liste__ajout-ligne input { flex: 1; min-width: 0; }
.liste__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn:disabled { opacity: .5; cursor: not-allowed; box-shadow: none; transform: none; }
.liste-barre { display: none; }

@media (max-width: 980px) {
  .catalogue { grid-template-columns: minmax(0, 1fr); }
  .liste { position: static; max-height: none; box-shadow: var(--ombre-btn); }
  .liste-barre {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 5;
    background: var(--encre); color: var(--papier);
    padding: 10px 20px calc(10px + env(safe-area-inset-bottom, 0px));
    align-items: center; justify-content: space-between; gap: 12px;
  }
  .liste-pleine .liste-barre { display: flex; }
  .liste-barre a { color: var(--papier); padding: 10px 0; }
  .liste-barre .btn { border-color: var(--papier); box-shadow: none; }
  .liste-pleine .site-footer { padding-bottom: 72px; }
}

@media print {
  @page { margin: 14mm; }
  .no-print, .topbar, .site-header, .site-footer, .skip, .vague { display: none !important; }
  .only-print { display: block; }
  body { background: #fff; font-size: 12pt; }
  .bg-papier { background: #fff; }
  .wrap, .catalogue { display: block; max-width: none; padding: 0; }
  section { padding: 0 !important; }
  .liste { position: static; max-height: none; overflow: visible; border: 0; box-shadow: none; padding: 0; background: #fff; gap: 10px; }
  .liste__entete { display: flex; align-items: center; gap: 14px; border-bottom: 2px solid #000; padding-bottom: 10px; }
  .liste__entete div { display: flex; flex-direction: column; }
  .liste__entete strong { font-family: var(--titres); font-size: 18pt; font-weight: 500; }
  .liste h2 { display: flex; justify-content: space-between; align-items: baseline; font-size: 20pt; }
  .liste__date { display: inline; font-family: var(--corps); font-size: 11pt; font-weight: 400; }
  #liste-contenu { columns: 2; column-gap: 12mm; }
  .liste__groupe { break-inside: avoid; margin-bottom: 4mm; }
  .liste__groupe h3 { color: #000; font-size: 9pt; }
  .liste__groupe li { border-bottom: 1px solid #bbb; padding: 2.2mm 0; break-inside: avoid; }
  .liste__case { display: inline-block; width: 4.5mm; height: 4.5mm; border: 1.5px solid #000; border-radius: 1mm; flex: none; }
  .liste__retirer { display: none; }
}

.cta-catalogue { background: var(--menthe); border: var(--bord); border-radius: var(--rayon); box-shadow: var(--ombre); padding: clamp(24px, 4vw, 40px); display: flex; flex-wrap: wrap; gap: 20px 40px; align-items: center; justify-content: space-between; }
.cta-catalogue .col { flex: 1 1 420px; max-width: 680px; }
.cta-catalogue .h-sub { color: var(--vert-nuit); }
.cta-catalogue .muted { color: #24382b; }
a.card .arrow, .grid-4 a.card { color: var(--encre); }
a.card .arrow { color: var(--bleu); }
