/* ==================================================================
   poupouchesafou.site — feuille de style principale
   Charte : bleu marine dominant, rouge pour les appels à l'action,
   vert réservé à WhatsApp, fonds gris-bleu très clairs.
   Polices : Barlow Condensed (titres), Source Sans 3 (texte),
   IBM Plex Mono (références, chiffres, journal).
   Mode sombre automatique selon les réglages de l'appareil.
   ================================================================== */

/* ---------- 1. Variables (couleurs, polices, espacements) ---------- */
:root {
  --marine: #14254f;
  --marine-2: #1d3470;
  --marine-3: #0c1733;
  --rouge: #c8203a;
  --rouge-survol: #a8172e;
  --vert-wa: #0b7a3b;          /* vert WhatsApp foncé : contraste AA avec le blanc */
  --vert-wa-survol: #086130;

  --fond: #f2f5fa;
  --fond-2: #e6ecf5;
  --surface: #ffffff;
  --texte: #1a2236;
  --texte-2: #48546e;
  --titre: #14254f;
  --accent-texte: #b3192f;     /* rouge utilisé pour du texte (liens, surtitres) */
  --bordure: #d3dbe8;
  --ombre: 0 14px 34px -18px rgba(12, 23, 51, .35);

  --police-titre: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --police-texte: 'Source Sans 3', 'Segoe UI', system-ui, sans-serif;
  --police-mono: 'IBM Plex Mono', Consolas, monospace;

  --rayon: 10px;
  --largeur: 1180px;
  --entete-h: 68px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --fond: #0a1124;
    --fond-2: #101a35;
    --surface: #142043;
    --texte: #e6ebf5;
    --texte-2: #a8b3cb;
    --titre: #f1f4fa;
    --accent-texte: #ff7d8f;
    --bordure: #273765;
    --ombre: 0 14px 34px -18px rgba(0, 0, 0, .7);
  }
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--entete-h) + 12px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

body {
  margin: 0;
  background: var(--fond);
  color: var(--texte);
  font-family: var(--police-texte);
  font-size: 1.0625rem;
  line-height: 1.65;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-texte); text-underline-offset: .18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid #f5b400; outline-offset: 2px; border-radius: 4px; }

h1, h2, h3, h4 {
  font-family: var(--police-titre);
  color: var(--titre);
  line-height: 1.08;
  letter-spacing: .005em;
  margin: 0 0 .5em;
  font-weight: 700;
}
h1 { font-size: clamp(2.3rem, 6vw, 4rem); }
h2 { font-size: clamp(1.9rem, 4vw, 2.75rem); }
h3 { font-size: 1.5rem; font-weight: 600; }
h4 { font-size: 1.2rem; font-weight: 600; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.2em; }
.mono { font-family: var(--police-mono); font-size: .9em; }

.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; padding: 0; margin: -1px; }

.evitement {
  position: absolute; left: 1rem; top: -100px; z-index: 1000;
  background: var(--rouge); color: #fff; padding: .7em 1.2em; border-radius: var(--rayon);
}
.evitement:focus { top: 1rem; }

.conteneur { width: 100%; max-width: var(--largeur); margin-inline: auto; padding-inline: 16px; }
@media (min-width: 768px) { .conteneur { padding-inline: 28px; } }

.section { padding-block: clamp(3rem, 7vw, 5.5rem); }
.section--alt { background: var(--fond-2); }
.section--marine { background: var(--marine); color: #dfe6f3; }
.section--marine h2, .section--marine h3 { color: #fff; }

.surtitre {
  display: inline-block;
  font-family: var(--police-mono);
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent-texte);
  margin-bottom: .8rem;
}
.section--marine .surtitre, .bandeau .surtitre, .hero .surtitre { color: #ff9aa8; }

.intro { max-width: 720px; margin-bottom: 2.5rem; }
.intro p { color: var(--texte-2); font-size: 1.12rem; }
.section--marine .intro p { color: #c3cde2; }
.intro--centre { margin-inline: auto; text-align: center; }

/* Filet rouge sous les titres de section, comme sur le cahier des charges */
.filet::after {
  content: ""; display: block; width: 72px; height: 4px;
  background: var(--rouge); margin-top: .9rem; border-radius: 2px;
}
.intro--centre .filet::after { margin-inline: auto; }

/* ---------- 3. Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 48px;
  padding: .75em 1.4em;
  border-radius: 999px;
  border: 2px solid transparent;
  font-family: var(--police-texte);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease, transform .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn svg { width: 1.25em; height: 1.25em; flex-shrink: 0; }
.btn--rouge { background: var(--rouge); color: #fff; }
.btn--rouge:hover { background: var(--rouge-survol); color: #fff; }
.btn--wa { background: var(--vert-wa); color: #fff; }
.btn--wa:hover { background: var(--vert-wa-survol); color: #fff; }
.btn--contour { border-color: currentColor; color: var(--titre); background: transparent; }
.btn--contour:hover { background: var(--titre); color: var(--surface); }
.btn--clair { border-color: rgba(255,255,255,.7); color: #fff; background: transparent; }
.btn--clair:hover { background: #fff; color: var(--marine); }
.btn--petit { min-height: 40px; padding: .5em 1em; font-size: .92rem; }
.btn--bloc { width: 100%; }
.actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.6rem; }

/* ---------- 4. En-tête et navigation ---------- */
.entete {
  position: sticky; top: 0; z-index: 100;
  background: var(--marine);
  color: #fff;
  box-shadow: 0 2px 0 var(--rouge);
}
.entete__inner { display: flex; align-items: center; gap: 1rem; min-height: var(--entete-h); }

.marque { display: flex; align-items: center; gap: .7rem; color: #fff; text-decoration: none; margin-right: auto; min-width: 0; }
.marque__mono {
  display: grid; place-items: center; flex-shrink: 0;
  width: 42px; height: 42px; border-radius: 50%;
  border: 3px solid var(--rouge);
  font-family: var(--police-titre); font-weight: 700; font-size: 1.15rem; letter-spacing: .02em;
}
.marque__nom { display: block; font-family: var(--police-titre); font-weight: 700; font-size: 1.35rem; line-height: 1; letter-spacing: .02em; text-transform: uppercase; }
.marque__role { display: block; font-size: .78rem; color: #b9c4dc; margin-top: .2rem; white-space: nowrap; }

.nav { display: flex; align-items: center; gap: .6rem; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: .15rem; }
.nav a {
  display: block; padding: .55rem .55rem;
  color: #e6ebf5; text-decoration: none;
  font-family: var(--police-titre); font-weight: 600; font-size: 1.12rem; letter-spacing: .03em; text-transform: uppercase;
  border-bottom: 3px solid transparent;
}
.nav a:hover { color: #fff; border-bottom-color: rgba(255,255,255,.4); }
.nav a[aria-current="page"] { color: #fff; border-bottom-color: var(--rouge); }

.nav-bouton {
  display: none;
  width: 44px; height: 44px; border-radius: 8px;
  background: transparent; border: 1px solid rgba(255,255,255,.35); color: #fff; cursor: pointer;
}
.nav-bouton svg { width: 24px; height: 24px; margin: auto; }
.entete__wa span { white-space: nowrap; }

/* Icônes des réseaux sociaux dans l'en-tête */
.nav .nav__social { gap: .3rem; padding-left: .6rem; border-left: 1px solid rgba(255,255,255,.2); }
.nav .nav__social a {
  display: grid; place-items: center; width: 36px; height: 36px; padding: 0;
  border: 1px solid rgba(255,255,255,.3); border-radius: 50%;
}
.nav .nav__social a:hover { background: #fff; color: var(--marine); border-color: #fff; }
.nav__social svg { width: 18px; height: 18px; }
.nav__social-txt { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@media (max-width: 1240px) {
  .nav-bouton { display: grid; place-items: center; }
  .nav {
    position: fixed; left: 0; right: 0; top: var(--entete-h); bottom: 0;
    background: var(--marine-3);
    padding: 1rem 16px 2rem;
    overflow-y: auto;
    display: none;
  }
  .nav.est-ouvert { display: block; }
  .nav ul { flex-direction: column; gap: 0; }
  .nav a { font-size: 1.5rem; padding: .9rem .25rem; border-bottom: 1px solid rgba(255,255,255,.1); }
  .nav a[aria-current="page"] { color: #ff9aa8; border-bottom-color: rgba(255,255,255,.1); }
  /* Dans le menu mobile : icône + libellé visible, côte à côte */
  .nav .nav__social { flex-direction: row; gap: .8rem; border: 0; padding: 1.5rem 0 0; }
  .nav .nav__social a { width: auto; height: 48px; padding: 0 1.1rem; border-radius: 999px; display: inline-flex; gap: .5rem; font-size: 1.1rem; border: 1px solid rgba(255,255,255,.3); }
  .nav__social-txt { position: static; width: auto; height: auto; clip: auto; }
}
@media (max-width: 520px) {
  .marque__role { display: none; }
  .marque__nom { font-size: 1.15rem; }
  .entete__wa { padding-inline: .8em; }
  .entete__wa span { display: none; }
}

/* ---------- 5. Accueil : hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: radial-gradient(1200px 600px at 85% 10%, var(--marine-2), transparent 60%), var(--marine);
  color: #dfe6f3;
  padding-block: clamp(2.5rem, 6vw, 5rem);
}
.hero__grille { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 900px) { .hero__grille { grid-template-columns: 1.15fr .85fr; gap: 3.5rem; } }
.hero h1 { color: #fff; font-size: clamp(2.5rem, 6.5vw, 4.6rem); }
.hero h1 em { font-style: normal; color: #ff8293; }
.hero__lead { font-size: 1.18rem; color: #c9d2e6; max-width: 600px; }
.hero__confiance { margin-top: 2rem; font-size: .92rem; color: #aab6cf; }
.hero__confiance strong { display: block; font-family: var(--police-mono); font-weight: 500; font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: #8796b6; margin-bottom: .35rem; }

.hero__visuel { position: relative; justify-self: center; width: min(420px, 100%); }
.hero__visuel::before {
  /* Anneau rouge, rappel du motif de la couverture du cahier des charges */
  content: ""; position: absolute; width: 78%; aspect-ratio: 1; right: -18%; top: -12%;
  border: 22px solid var(--rouge); border-radius: 50%; z-index: 0;
}
.hero__photo { position: relative; z-index: 1; border-radius: 18px; overflow: hidden; aspect-ratio: 4 / 5; box-shadow: 0 30px 60px -25px rgba(0,0,0,.6); }
.hero__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 58% 30%; }
.hero__etiquette {
  position: absolute; z-index: 2; left: -8px; bottom: 22px;
  background: var(--surface); color: var(--texte);
  border-radius: 12px; padding: .7rem 1rem; box-shadow: var(--ombre);
  font-size: .9rem; line-height: 1.3;
}
.hero__etiquette b { display: block; font-family: var(--police-titre); font-size: 1.15rem; color: var(--titre); }

/* ---------- 6. Bandeau des pages intérieures ---------- */
.bandeau {
  background: var(--marine); color: #c9d2e6;
  padding-block: clamp(2.2rem, 5vw, 3.6rem);
  position: relative; overflow: hidden;
}
.bandeau::after {
  content: ""; position: absolute; right: -90px; top: -90px; width: 260px; height: 260px;
  border: 26px solid var(--rouge); border-radius: 50%; opacity: .9;
}
.bandeau .conteneur { position: relative; z-index: 1; }
.bandeau h1 { color: #fff; max-width: 860px; }
.bandeau p { max-width: 720px; font-size: 1.15rem; margin-bottom: 0; }
.ariane { font-family: var(--police-mono); font-size: .8rem; margin-bottom: 1rem; color: #9aa8c6; }
.ariane a { color: #dfe6f3; }
.ariane ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.ariane li + li::before { content: "/"; margin-right: .4rem; color: #6d7ca0; }
@media (max-width: 600px) { .bandeau::after { width: 160px; height: 160px; border-width: 18px; right: -70px; top: -70px; } }

/* ---------- 7. Chiffres clés ---------- */
.chiffres { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--bordure); border: 1px solid var(--bordure); border-radius: var(--rayon); overflow: hidden; }
@media (min-width: 860px) { .chiffres { grid-template-columns: repeat(4, 1fr); } }
.chiffre { background: var(--surface); padding: 1.5rem 1.25rem; margin: 0; }
.chiffre__valeur { display: block; font-family: var(--police-titre); font-weight: 700; font-size: clamp(2.4rem, 5vw, 3.2rem); line-height: 1; color: var(--titre); }
.chiffre__valeur sup { color: var(--rouge); font-size: .55em; top: -.7em; }
.chiffre__libelle { display: block; margin-top: .5rem; color: var(--texte-2); font-size: .95rem; line-height: 1.4; }
.chiffres-section { margin-top: -2.2rem; position: relative; z-index: 2; }

/* ---------- 8. Cartes ---------- */
.grille { display: grid; gap: 1.25rem; }
.grille--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.grille--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.grille--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); }

.carte {
  background: var(--surface);
  border: 1px solid var(--bordure);
  border-radius: var(--rayon);
  padding: 1.6rem;
  box-shadow: var(--ombre);
  display: flex; flex-direction: column;
}
.carte h3 { margin-bottom: .4rem; }
.carte p { color: var(--texte-2); }
.carte__num { font-family: var(--police-mono); font-size: .8rem; color: var(--accent-texte); letter-spacing: .08em; margin-bottom: .6rem; }
.carte__lien { margin-top: auto; padding-top: .8rem; font-weight: 700; text-decoration: none; }
.carte__lien::after { content: " →"; }
.carte--service { border-top: 4px solid var(--marine); }
@media (prefers-color-scheme: dark) { .carte--service { border-top-color: var(--rouge); } }
.carte--lien { position: relative; transition: transform .15s ease, border-color .15s ease; }
.carte--lien:hover { transform: translateY(-3px); border-color: var(--rouge); }

.puces { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; padding: 0; margin: .4rem 0 0; }
.puces li {
  font-family: var(--police-mono); font-size: .76rem;
  padding: .25em .7em; border-radius: 999px;
  background: var(--fond-2); color: var(--texte); border: 1px solid var(--bordure);
}

/* ---------- 9. Journal des références (motif « journal » comptable ERP) ---------- */
.journal {
  background: var(--surface);
  border: 1px solid var(--bordure);
  border-radius: var(--rayon);
  box-shadow: var(--ombre);
  overflow: hidden;
  font-family: var(--police-mono);
  font-size: .88rem;
}
.journal__entete {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1.5rem;
  padding: .85rem 1.2rem;
  background: var(--marine); color: #dfe6f3;
  font-size: .76rem; letter-spacing: .08em; text-transform: uppercase;
}
.journal__entete b { color: #fff; font-weight: 500; }
.journal table { width: 100%; border-collapse: collapse; }
.journal th, .journal td { text-align: left; padding: .8rem 1.2rem; border-bottom: 1px dashed var(--bordure); vertical-align: top; }
.journal th { font-weight: 500; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--texte-2); background: var(--fond-2); border-bottom: 1px solid var(--bordure); }
.journal tbody tr:nth-child(even) td { background: color-mix(in srgb, var(--fond-2) 45%, transparent); }
.journal td:first-child { color: var(--accent-texte); white-space: nowrap; }
.journal .client { font-family: var(--police-texte); font-weight: 700; font-size: 1rem; color: var(--titre); }
.journal .libelle { font-family: var(--police-texte); font-size: .98rem; color: var(--texte); }
.statut { display: inline-block; padding: .15em .6em; border-radius: 4px; font-size: .74rem; border: 1px solid currentColor; white-space: nowrap; }
.statut--cours { color: var(--vert-wa); }
@media (prefers-color-scheme: dark) { .statut--cours { color: #5fd38f; } }
.statut--livre { color: var(--texte-2); }
.journal__pied { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; padding: .85rem 1.2rem; border-top: 2px solid var(--titre); font-size: .8rem; color: var(--texte-2); }

@media (max-width: 760px) {
  .journal thead { display: none; }
  .journal table, .journal tbody, .journal tr, .journal td { display: block; width: 100%; }
  .journal tr { padding: .9rem 1.1rem; border-bottom: 1px dashed var(--bordure); }
  .journal td { padding: .1rem 0; border: 0; background: none !important; }
  .journal td[data-label]::before { content: attr(data-label) " · "; color: var(--texte-2); font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; }
  .journal .client, .journal .libelle { padding-block: .15rem; }
  .journal .client::before, .journal .libelle::before { display: none; }
}

/* ---------- 10. Mise en avant des livres ---------- */
.livre-carte { display: grid; grid-template-columns: 130px 1fr; gap: 1.25rem; align-items: start; }
@media (min-width: 560px) { .livre-carte { grid-template-columns: 170px 1fr; gap: 1.6rem; } }
.couv { border-radius: 4px 8px 8px 4px; overflow: hidden; box-shadow: 0 18px 30px -14px rgba(0,0,0,.55), inset 4px 0 0 rgba(0,0,0,.15); background: var(--fond-2); }
.couv img { width: 100%; height: auto; }
.livre-carte h3 { margin-bottom: .2rem; }
.livre-carte .sous-titre { font-style: italic; color: var(--texte-2); margin-bottom: .6rem; }
.badge { display: inline-block; font-family: var(--police-mono); font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; padding: .3em .7em; border-radius: 4px; margin-bottom: .6rem; }
.badge--dispo { background: var(--vert-wa); color: #fff; }
.badge--bientot { background: var(--rouge); color: #fff; }

/* ---------- 11. Bloc présentation (photo + texte) ---------- */
.duo { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 900px) { .duo { grid-template-columns: .8fr 1.2fr; gap: 4rem; } .duo--inverse { grid-template-columns: 1.2fr .8fr; } .duo--inverse > :first-child { order: 2; } }
.photo-cadre { position: relative; border-radius: 16px; overflow: hidden; aspect-ratio: 3 / 4; max-width: 440px; margin-inline: auto; box-shadow: var(--ombre); }
.photo-cadre img { width: 100%; height: 100%; object-fit: cover; }
.photo-cadre::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 -6px 0 var(--rouge); pointer-events: none; }

/* ---------- 12. Appel à l'action final ---------- */
.cta-final { text-align: center; }
.cta-final h2 { color: #fff; max-width: 820px; margin-inline: auto; }
.cta-final p { color: #c3cde2; max-width: 620px; margin-inline: auto; font-size: 1.12rem; }
.cta-final .actions { justify-content: center; }

/* ---------- 13. Frise du parcours ---------- */
.frise { list-style: none; padding: 0; margin: 0; position: relative; }
.frise::before { content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px; background: var(--bordure); }
.frise li { position: relative; padding: 0 0 1.8rem 2.2rem; }
.frise li::before { content: ""; position: absolute; left: 0; top: .35rem; width: 16px; height: 16px; border-radius: 50%; background: var(--surface); border: 3px solid var(--marine); }
.frise li.cle::before { border-color: var(--rouge); background: var(--rouge); }
@media (prefers-color-scheme: dark) { .frise li::before { border-color: #8ea2d2; } }
.frise__date { font-family: var(--police-mono); font-size: .82rem; color: var(--accent-texte); }
.frise h3 { font-size: 1.3rem; margin: .1rem 0 .15rem; }
.frise__lieu { font-weight: 600; color: var(--texte); margin-bottom: .3rem; }
.frise p { color: var(--texte-2); margin: 0; }

/* ---------- 14. Listes de définition (fiches techniques) ---------- */
.fiche { display: grid; grid-template-columns: minmax(110px, auto) 1fr; margin: 0; border-top: 1px solid var(--bordure); }
.fiche dt, .fiche dd { margin: 0; padding: .65rem 0; border-bottom: 1px solid var(--bordure); }
.fiche dt { font-family: var(--police-mono); font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--texte-2); padding-right: 1rem; }
.fiche dd { font-weight: 600; }

/* ---------- 15. Fiches services ---------- */
.service { background: var(--surface); border: 1px solid var(--bordure); border-radius: var(--rayon); box-shadow: var(--ombre); overflow: hidden; }
.service + .service { margin-top: 2rem; }
.service__entete { background: var(--marine); color: #c9d2e6; padding: 1.6rem 1.6rem 1.4rem; }
.service__entete h2 { color: #fff; font-size: clamp(1.8rem, 4vw, 2.4rem); margin-bottom: .3rem; }
.service__entete .surtitre { color: #ff9aa8; margin-bottom: .3rem; }
.service__entete p { margin: 0; max-width: 760px; }
.service__corps { display: grid; gap: 1.8rem; padding: 1.6rem; }
@media (min-width: 900px) { .service__corps { grid-template-columns: repeat(3, 1fr); } }
.service__corps h3 { font-size: 1.2rem; text-transform: uppercase; letter-spacing: .04em; color: var(--accent-texte); margin-bottom: .6rem; }
.service__corps ul, .service__corps ol { margin: 0; padding-left: 1.15em; color: var(--texte); }
.service__corps li { margin-bottom: .35rem; }
.service__pied { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; padding: 1.2rem 1.6rem; border-top: 1px solid var(--bordure); background: var(--fond-2); }

.sommaire-services { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; padding: 0; margin: 0 0 2rem; }
.sommaire-services a { display: inline-block; padding: .5em 1em; border-radius: 999px; border: 1px solid var(--bordure); background: var(--surface); text-decoration: none; color: var(--titre); font-weight: 600; }
.sommaire-services a:hover { border-color: var(--rouge); }

/* ---------- 16. Études de cas ---------- */
.filtres { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2rem; }
.filtre {
  min-height: 42px; padding: .45em 1.05em; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--bordure); background: var(--surface); color: var(--titre);
  font: 600 .95rem var(--police-texte);
}
.filtre:hover { border-color: var(--rouge); }
.filtre[aria-pressed="true"] { background: var(--marine); border-color: var(--marine); color: #fff; }
@media (prefers-color-scheme: dark) { .filtre[aria-pressed="true"] { background: var(--rouge); border-color: var(--rouge); } }

.cas { background: var(--surface); border: 1px solid var(--bordure); border-radius: var(--rayon); box-shadow: var(--ombre); padding: 1.6rem; }
.cas[hidden] { display: none; }
.cas + .cas { margin-top: 1.5rem; }
.cas__meta { display: flex; flex-wrap: wrap; gap: .5rem 1rem; font-family: var(--police-mono); font-size: .8rem; color: var(--texte-2); margin-bottom: .6rem; }
.cas__meta .secteur { color: var(--accent-texte); }
.cas h2 { font-size: clamp(1.6rem, 3.5vw, 2.1rem); margin-bottom: .2rem; }
.cas__client { font-weight: 700; color: var(--texte); margin-bottom: 1.2rem; }
.cas__grille { display: grid; gap: 1.2rem; }
@media (min-width: 820px) { .cas__grille { grid-template-columns: repeat(2, 1fr); } }
.cas__grille h3 { font-size: 1.05rem; text-transform: uppercase; letter-spacing: .05em; color: var(--accent-texte); margin-bottom: .3rem; }
.cas__grille p, .cas__grille ul { margin: 0; color: var(--texte); }
.cas__pied { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; margin-top: 1.4rem; padding-top: 1.2rem; border-top: 1px solid var(--bordure); }

/* ---------- 17. Fiche livre ---------- */
.livre-hero { display: grid; gap: 2.5rem; align-items: start; }
@media (min-width: 880px) { .livre-hero { grid-template-columns: 380px 1fr; gap: 3.5rem; } }
.livre-hero .couv { max-width: 380px; margin-inline: auto; width: 100%; }
.livre-hero h1 { font-size: clamp(2.4rem, 5.5vw, 3.8rem); margin-bottom: .2rem; }
.livre-hero .sous-titre { font-size: 1.3rem; font-style: italic; color: var(--texte-2); }
.resume { font-size: 1.12rem; }
.encadre { background: var(--fond-2); border-left: 4px solid var(--rouge); border-radius: 0 var(--rayon) var(--rayon) 0; padding: 1.2rem 1.4rem; }
.encadre p:last-child { margin-bottom: 0; }
.encadre--marine { border-left-color: var(--marine); }
.galerie-dos { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; max-width: 520px; }
.prix { font-family: var(--police-titre); font-size: 1.8rem; font-weight: 700; color: var(--titre); }

/* ---------- 18. Contact ---------- */
.contact-grille { display: grid; gap: 2rem; }
@media (min-width: 960px) { .contact-grille { grid-template-columns: 1fr 1.15fr; gap: 3rem; } }
.ligne-wa { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem 1rem; padding: 1.1rem 0; border-bottom: 1px solid var(--bordure); }
.ligne-wa:first-of-type { border-top: 1px solid var(--bordure); }
.ligne-wa__num { font-family: var(--police-mono); font-size: 1.15rem; font-weight: 500; color: var(--titre); margin-right: auto; user-select: all; }
.ligne-wa__num small { display: block; font-family: var(--police-texte); font-size: .82rem; color: var(--texte-2); font-weight: 400; user-select: none; }
.btn-copier { min-height: 40px; padding: .4em .9em; border-radius: 999px; border: 1px solid var(--bordure); background: var(--surface); color: var(--titre); font: 600 .9rem var(--police-texte); cursor: pointer; }
.btn-copier:hover { border-color: var(--titre); }
.coord { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: .9rem; }
.coord li { display: flex; gap: .8rem; align-items: flex-start; }
.coord svg { width: 22px; height: 22px; flex-shrink: 0; color: var(--accent-texte); margin-top: .15rem; }

.formulaire { background: var(--surface); border: 1px solid var(--bordure); border-radius: var(--rayon); box-shadow: var(--ombre); padding: clamp(1.25rem, 3vw, 2rem); }
.champ { margin-bottom: 1.1rem; }
.champ label, .champ legend { display: block; font-weight: 700; margin-bottom: .35rem; color: var(--titre); }
.champ .aide { font-weight: 400; color: var(--texte-2); font-size: .9rem; }
.champ input, .champ select, .champ textarea {
  width: 100%; min-height: 48px; padding: .7em .9em;
  font: inherit; color: var(--texte); background: var(--fond);
  border: 1px solid var(--bordure); border-radius: 8px;
}
.champ textarea { min-height: 140px; resize: vertical; }
.champ input:focus, .champ select:focus, .champ textarea:focus { outline: 3px solid color-mix(in srgb, var(--marine-2) 45%, transparent); border-color: var(--marine-2); }
.champ fieldset { border: 0; padding: 0; margin: 0; }
.choix { display: grid; gap: .5rem; }
@media (min-width: 560px) { .choix { grid-template-columns: 1fr 1fr; } }
.choix label { display: flex; gap: .6rem; align-items: center; font-weight: 600; padding: .75rem .9rem; border: 1px solid var(--bordure); border-radius: 8px; background: var(--fond); cursor: pointer; margin: 0; }
.choix input { width: 20px; height: 20px; min-height: 0; accent-color: var(--vert-wa); }
.requis { color: var(--accent-texte); }
.erreur { color: var(--accent-texte); font-weight: 600; font-size: .92rem; margin-top: .3rem; }
.mention-form { font-size: .88rem; color: var(--texte-2); margin-top: .9rem; }

/* ---------- 19. Actualités ---------- */
.article { background: var(--surface); border: 1px solid var(--bordure); border-radius: var(--rayon); padding: 1.6rem; box-shadow: var(--ombre); }
.article + .article { margin-top: 1.5rem; }
.article__meta { font-family: var(--police-mono); font-size: .8rem; color: var(--texte-2); margin-bottom: .5rem; }
.article__meta .cat { color: var(--accent-texte); }
.article h2, .article h3 { font-size: clamp(1.5rem, 3vw, 1.9rem); }
.article ol, .article ul { padding-left: 1.2em; }
.article li { margin-bottom: .4rem; }
.vide { border: 2px dashed var(--bordure); border-radius: var(--rayon); padding: 1.6rem; text-align: center; color: var(--texte-2); }

/* ---------- 20. Contenu éditorial (mentions, confidentialité) ---------- */
.prose { max-width: 760px; }
.prose h2 { font-size: 1.9rem; margin-top: 2.2rem; }
.prose h2:first-child { margin-top: 0; }

/* ---------- 21. Pied de page ---------- */
.pied { background: var(--marine-3); color: #b9c4dc; padding-top: 3.5rem; font-size: .98rem; }
.pied a { color: #e6ebf5; text-decoration: none; }
.pied a:hover { color: #fff; text-decoration: underline; }
.pied h2 { font-size: 1.15rem; text-transform: uppercase; letter-spacing: .08em; color: #fff; margin-bottom: 1rem; }
.pied__grille { display: grid; gap: 2rem; padding-bottom: 2.5rem; }
@media (min-width: 720px) { .pied__grille { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1040px) { .pied__grille { grid-template-columns: 1.4fr 1fr 1fr 1.3fr; } }
.pied ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; }
.pied .marque { margin-bottom: 1rem; }
.pied__wa { display: grid; gap: .6rem; margin-top: 1.2rem; max-width: 320px; }
.pied__bas { border-top: 1px solid rgba(255,255,255,.12); padding-block: 1.2rem 6rem; display: flex; flex-wrap: wrap; gap: .6rem 1.5rem; justify-content: space-between; font-size: .88rem; }
.pied__bas ul { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; }
@media (min-width: 720px) { .pied__bas { padding-bottom: 1.4rem; } }
.social { display: flex; gap: .6rem; margin-top: 1rem; }
.social a { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(255,255,255,.25); }
.social svg { width: 20px; height: 20px; }

/* ---------- 22. Bouton WhatsApp flottant ---------- */
.wa-flottant { position: fixed; right: 16px; bottom: 16px; z-index: 200; display: flex; flex-direction: column; align-items: flex-end; gap: .7rem; }
.wa-flottant__bouton {
  display: inline-flex; align-items: center; gap: .55rem;
  min-height: 56px; padding: 0 1.25rem 0 1rem; border-radius: 999px;
  background: var(--vert-wa); color: #fff; text-decoration: none; font-weight: 700;
  box-shadow: 0 12px 28px -10px rgba(0,0,0,.55);
  border: 0; cursor: pointer; font: 700 1rem var(--police-texte);
}
.wa-flottant__bouton:hover { background: var(--vert-wa-survol); color: #fff; }
.wa-flottant__bouton svg { width: 28px; height: 28px; }
@media (max-width: 480px) { .wa-flottant__bouton span { display: none; } .wa-flottant__bouton { padding: 0; width: 58px; justify-content: center; } }
.wa-flottant__panneau {
  width: min(320px, calc(100vw - 32px));
  background: var(--surface); color: var(--texte);
  border: 1px solid var(--bordure); border-radius: 14px; box-shadow: 0 20px 40px -14px rgba(0,0,0,.45);
  padding: 1rem;
}
.wa-flottant__panneau[hidden] { display: none; }
.wa-flottant__titre { font-family: var(--police-titre); font-weight: 700; font-size: 1.3rem; color: var(--titre); margin: 0 0 .2rem; }
.wa-flottant__panneau p { font-size: .9rem; color: var(--texte-2); margin-bottom: .8rem; }
.wa-flottant__panneau .btn { width: 100%; justify-content: flex-start; margin-top: .5rem; font-family: var(--police-mono); font-weight: 500; font-size: .95rem; }

/* ---------- 23. Bandeau cookies (affiché seulement si un outil d'audience est configuré) ---------- */
.cookies { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 300; max-width: 560px; background: var(--surface); color: var(--texte); border: 1px solid var(--bordure); border-radius: 14px; box-shadow: var(--ombre); padding: 1.1rem 1.2rem; }
.cookies p { font-size: .95rem; margin-bottom: .8rem; }
.cookies .actions { margin-top: 0; }

/* ---------- 24. Utilitaires ---------- */
.centre { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.discret { color: var(--texte-2); }
.liste-coche { list-style: none; padding: 0; }
.liste-coche li { position: relative; padding-left: 1.7rem; margin-bottom: .55rem; }
.liste-coche li::before { content: ""; position: absolute; left: 0; top: .45em; width: 12px; height: 7px; border-left: 3px solid var(--rouge); border-bottom: 3px solid var(--rouge); transform: rotate(-45deg); }

/* ---------- 25. Impression ---------- */
@media print {
  .entete, .pied, .wa-flottant, .cookies, .nav-bouton, .actions, .filtres { display: none !important; }
  body { background: #fff; color: #000; }
}

/* Titres de livres cliquables : couleur de titre, pas de soulignement */
.livre-carte h3 a, .livre-hero h2 a { color: var(--titre); text-decoration: none; }
.livre-carte h3 a:hover, .livre-hero h2 a:hover { color: var(--accent-texte); }


/* ---------- 26. Galeries photo ---------- */
.galerie { display: grid; gap: .9rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.galerie figure { margin: 0; position: relative; border-radius: var(--rayon); overflow: hidden; background: var(--fond-2); box-shadow: var(--ombre); aspect-ratio: 4 / 3; }
.galerie a { display: block; height: 100%; }
.galerie img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.galerie a:hover img { transform: scale(1.04); }
.galerie figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 1.6rem .9rem .7rem;
  background: linear-gradient(transparent, rgba(12, 23, 51, .88));
  color: #fff; font-weight: 600; font-size: .92rem; line-height: 1.3;
  pointer-events: none;
}
/* Mosaïque de l'accueil : première photo en grand sur écran large */
@media (min-width: 900px) {
  .galerie--mosaique { grid-template-columns: repeat(4, 1fr); }
  .galerie--mosaique figure:first-child { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
}

/* ---------- 27. Accueil : accroche sur photo d'arrière-plan ---------- */
.hero--photo {
  position: relative; isolation: isolate;
  min-height: min(88vh, 780px);
  display: flex; align-items: center;
  padding-block: clamp(4rem, 9vw, 7rem) clamp(5rem, 9vw, 7.5rem);
  background: var(--marine-3);
}
.hero__fond { position: absolute; inset: 0; z-index: -2; }
.hero__fond img { width: 100%; height: 100%; object-fit: cover; object-position: 68% 30%; }
/* Voile marine : opaque à gauche pour la lisibilité du texte, transparent à droite pour la photo */
.hero--photo::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(12, 23, 51, .97) 0%, rgba(12, 23, 51, .9) 35%, rgba(12, 23, 51, .45) 62%, rgba(12, 23, 51, .1) 100%),
    linear-gradient(0deg, rgba(12, 23, 51, .75) 0%, transparent 30%);
}
.hero--photo .conteneur { position: relative; width: 100%; }
.hero__texte { max-width: 640px; }
.hero--photo .hero__etiquette {
  left: auto; right: 28px; bottom: -2.5rem;
  background: rgba(255, 255, 255, .95); color: #1a2236;
  border-left: 4px solid var(--rouge);
}
.hero--photo .hero__etiquette b { color: var(--marine); }
@media (max-width: 899px) {
  /* Mobile : la photo devient un bandeau visible en haut, le texte passe dessous */
  .hero--photo { display: block; min-height: 0; padding-top: 0; }
  .hero__fond { position: relative; inset: auto; height: 300px; margin-bottom: -70px; }
  .hero__fond img { object-position: 64% 22%; }
  .hero--photo::before { background: linear-gradient(180deg, rgba(12, 23, 51, .05) 0, rgba(12, 23, 51, .25) 150px, rgba(12, 23, 51, .92) 260px, var(--marine-3) 300px, var(--marine-3) 100%); }
  .hero--photo .hero__etiquette { display: none; }
}

/* ---------- 28. Accueil : photo sur la partie droite (écran large) ---------- */
@media (min-width: 900px) {
  .hero--photo .hero__fond { left: auto; width: 64%; }
  .hero--photo .hero__fond img { object-position: 50% 25%; }
  .hero--photo::before {
    background:
      linear-gradient(90deg, #0c1733 0%, #0c1733 36%, rgba(12, 23, 51, .75) 46%, rgba(12, 23, 51, .2) 62%, rgba(12, 23, 51, 0) 80%),
      linear-gradient(0deg, rgba(12, 23, 51, .7) 0%, transparent 28%);
  }
}
@media (max-width: 899px) {
  .hero--photo .hero__fond { width: auto; }
  .hero--photo .hero__fond img { object-position: 50% 20%; }
}

/* ---------- 29. Grande photo avec légende ---------- */
.photo-large { margin: 0 0 2.5rem; border-radius: var(--rayon); overflow: hidden; box-shadow: var(--ombre); background: var(--surface); }
.photo-large img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; object-position: 50% 35%; }
.photo-large figcaption { padding: .8rem 1.2rem; font-size: .95rem; color: var(--texte-2); border-top: 3px solid var(--rouge); }
@media (max-width: 600px) { .photo-large img { aspect-ratio: 4 / 3; object-position: 20% 40%; } }

/* ---------- 30. Cartes des sites internet réalisés ---------- */
.carte--site { border-top: 4px solid var(--rouge); }
.site-domaine { color: var(--accent-texte); margin: 0; }

