/* ══════════════════════════════════════════════════════════════════════════
   Thème "Plumecocq" — Cabinet Plumecocq, transactions pharmaceutiques
   Design sobre et classe : blanc dominant, bleu/vert de marque, typo Poppins/Inter.
   ══════════════════════════════════════════════════════════════════════════ */

/* ── Variables ── */
:root {
    color-scheme: light;
    --navy:       #1c2b45;
    --navy-mid:   #24365a;
    --navy-light: #2e4370;
    --blue:       #1657c9;
    --blue-light: #2e8fe0;
    --blue-dark:  #0e3f9c;
    --blue-pale:  #eaf1fd;
    --green:      #2fae64;
    --green-dark: #22914f;
    --green-pale: #e7f7ee;
    /* Verts réservés aux surfaces portant du TEXTE BLANC (boutons, barre CTA).
       --green (#2fae64) ne donne que 2,85:1 avec du blanc et --green-dark 4,01:1 :
       tous deux sous le seuil WCAG AA de 4,5:1 — c'est ce que relevait l'audit
       d'accessibilité. --green-cta atteint 4,72:1, son hover 6,13:1.
       --green et --green-dark restent utilisés pour le décoratif (filets,
       bordures, puces), où le contraste de texte ne s'applique pas. */
    --green-cta:       #1e8449;
    --green-cta-hover: #19703d;
    --slate:      #43536b;
    --white:      #ffffff;
    --bg-soft:    #f5f8fb;
    --text:       #263041;
    --text-muted: #62707f;
    --border:     #e3e8ee;
    --border-strong:#c9d3de;
    --link:       #1657c9;
    --link-hover: #0e3f9c;
    --shadow-sm:  0 1px 4px rgba(20,30,50,.06);
    --shadow:     0 6px 20px rgba(20,30,50,.09);
    --shadow-lg:  0 12px 36px rgba(20,30,50,.14);
    --radius:     8px;
    --radius-lg:  14px;
    --max-w:      1220px;
    --header-max-w: 1620px; /* le header occupe une largeur plus généreuse que le
       container de contenu, comme sur le site actuel (WP) où le bandeau va
       quasiment bord à bord — le corps de page reste lui contenu à --max-w */
    --content-w:  980px;
    --heading:    'Poppins', 'Segoe UI', system-ui, sans-serif;
    --sans:       'Inter', 'Segoe UI', system-ui, sans-serif;
    /* rétro-compatibilité avec le gabarit hérité (juridique) */
    --serif:      var(--heading);
    --gold:       var(--blue);
    --gold-hover: var(--blue-dark);
    --gold-pale:  var(--blue-pale);
    --parchment:  var(--bg-soft);
    --border-gold:var(--border-strong);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--sans); color: var(--text); background: var(--white); font-size: 16px; line-height: 1.7; -webkit-font-smoothing: antialiased; padding-bottom: 0; }
body.has-mobile-cta { padding-bottom: 0; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; transition: color .2s; }
a:hover { color: var(--blue-dark); }
h1,h2,h3,h4,h5,h6 { font-family: var(--heading); }

/* ── Top bar ── */
.top-bar { background: var(--navy); color: rgba(255,255,255,.7); font-size: .78rem; padding: .45rem 0; border-bottom: 1px solid rgba(255,255,255,.08); }
.top-bar-inner { max-width: var(--max-w); margin: 0 auto; padding: 0 1.5rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.top-bar a { color: rgba(255,255,255,.7); }
.top-bar a:hover { color: var(--green); }
.top-bar-right { display: flex; gap: 1.5rem; }

/* ── Header (fond blanc, sobre) ── */
.site-header { background: var(--header-bg, var(--white)); position: var(--header-position, sticky); top: 0; z-index: 510; box-shadow: 0 1px 0 var(--border), 0 4px 16px rgba(20,30,50,.04); }
.header-inner { max-width: var(--header-max-w); margin: 0 auto; padding: 0 2.25rem; display: flex; align-items: center; justify-content: space-between; height: var(--header-height, 78px); gap: 1.5rem; }
.site-logo { display: flex; align-items: center; gap: .75rem; text-decoration: none; flex-shrink: 0; }
.site-logo img { max-height: 52px; width: auto; }
.logo-icon { width: 42px; height: 42px; background: var(--blue); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; font-family: var(--heading); color: #fff; font-weight: 700; font-size: 1.2rem; flex-shrink: 0; }
.logo-text { font-family: var(--heading); color: var(--navy); font-size: 1.15rem; line-height: 1.2; font-weight: 700; }
.logo-text span { display: block; font-size: .68rem; font-family: var(--sans); font-weight: 400; letter-spacing: .1em; text-transform: uppercase; color: var(--text-muted); margin-top: 2px; }

/* ── Navigation ── */
.site-nav { display: flex; align-items: center; gap: .1rem; flex: 1; justify-content: flex-end; }
.site-nav > li { list-style: none; position: relative; }
.site-nav > li > a { display: block; color: rgba(255,255,255,.88); font-size: 1.05rem; font-weight: 700; padding: .75rem 1.15rem; border-radius: var(--radius); transition: background .18s, color .18s; letter-spacing: .01em; }
.site-nav > li > a:hover, .site-nav > li.active > a { background: rgba(255,255,255,.1); color: var(--green); }
.site-nav > li.active > a { border-bottom: 2px solid var(--green); }

/* Desktop : header blanc → texte de nav foncé */
@media (min-width: 901px) {
    .site-header .site-nav > li > a { color: var(--text); }
    .site-header .site-nav > li > a:hover { background: var(--bg-soft); color: var(--blue); }
    .site-header .site-nav > li.active > a { color: var(--blue); background: transparent; border-bottom: 2px solid var(--blue); }
    .site-header .nav-search-btn { color: var(--text-muted); }
    .site-header .nav-search-btn:hover { background: var(--bg-soft); color: var(--blue); }
    /* Sous-menus au survol : réservé au desktop. Si cette règle n'est pas
       scopée ici, ":hover" reste actif sur mobile (Safari iOS notamment
       déclenche le hover sur un simple tap), ce qui ouvrait les sous-menus
       du dropdown mobile sans clic sur la flèche. */
    .site-nav > li:hover > .sub-menu, .site-nav > li.js-hover > .sub-menu { display: block; }
}

/* Dropdown */
.sub-menu { display: none; position: absolute; top: 100%; left: 0; margin-top: -8px; padding-top: 8px; background: var(--white); border: 1px solid var(--border); border-top: 3px solid var(--blue); border-radius: var(--radius); min-width: 260px; box-shadow: var(--shadow-lg); list-style: none; z-index: 100; }
.sub-menu li a { display: block; padding: .85rem 1.3rem; color: var(--text); font-size: 1rem; font-weight: 700; border-bottom: 1px solid var(--border); transition: background .15s; }
.sub-menu li:last-child a { border-bottom: none; }
.sub-menu li a:hover { background: var(--blue-pale); color: var(--blue-dark); }

.site-nav > li.has-children > a::after { content: '▾'; font-size: .6rem; margin-left: .3rem; vertical-align: middle; opacity: .5; display: inline-block; transition: transform .2s; }
/* Sur mobile, le bouton .sub-toggle en fin de ligne fait déjà office
   d'indicateur de sous-menu — cette flèche collée au texte faisait doublon. */
@media (max-width: 900px) { .site-nav > li.has-children > a::after { display: none; } }
.site-nav > li.has-children:hover > a::after { transform: rotate(-180deg); opacity: 1; }
.sub-toggle { display: none; }
.sub-menu li { position: relative; }
.sub-menu li.has-children > a::after { content: '›'; float: right; margin-left: .5rem; opacity: .5; font-size: 1rem; line-height: 1; }
.sub-menu .sub-menu { display: none; position: absolute; top: -3px; left: 100%; background: var(--white); border: 1px solid var(--border); border-top: 3px solid var(--blue); border-radius: var(--radius); min-width: 200px; box-shadow: var(--shadow); list-style: none; z-index: 100; }
.sub-menu li:hover > .sub-menu { display: block; }
.sub-menu .sub-menu.js-open { display: block; }
.sub-menu li.flyout-left > .sub-menu { left: auto; right: 100%; }

.logo-qcms-icon { width: 38px; height: 38px; flex-shrink: 0; border-radius: 7px; display: block; }

/* Hamburger — foncé (le header est en fond clair --header-bg par défaut) */
.nav-toggle { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: .5rem; background: none; border: none; }
.nav-toggle span { display: block; width: 22px; height: 2px; background-color: var(--navy); background-image: linear-gradient(var(--navy), var(--navy)); border-radius: 2px; transition: .3s; forced-color-adjust: none; }

/* Ex "gold-bar" → simple liseré discret */
.gold-bar { height: 1px; background: var(--border); }

/* ── Boutons CTA d'en-tête (Contact / Téléphone) ── */
.header-ctas { display: flex; align-items: center; gap: .6rem; flex-shrink: 0; }
.header-cta { display: inline-flex; align-items: center; gap: .5rem; padding: .85rem 1.6rem; border-radius: var(--radius); font-weight: 700; font-size: 1.05rem; white-space: nowrap; transition: background-color .15s, box-shadow .15s, transform .15s; }
.header-cta svg { width: 19px; height: 19px; flex-shrink: 0; }
.header-cta--contact { background: var(--blue); color: #fff; }
.header-cta--contact:hover { background: var(--blue-dark); color: #fff; box-shadow: 0 4px 14px rgba(14,63,156,.35); transform: translateY(-1px); }
.header-cta--phone { background: var(--green-cta); color: #fff; }
.header-cta--phone:hover { background: var(--green-cta-hover); color: #fff; box-shadow: 0 4px 14px rgba(34,145,79,.35); transform: translateY(-1px); }
@media (max-width: 900px) { .header-ctas { display: none; } }

/* ── Breadcrumb ── */
.breadcrumb-wrap { background: var(--bg-soft); border-bottom: 1px solid var(--border); padding: .65rem 0; font-size: .8rem; }
.breadcrumb { max-width: var(--max-w); margin: 0 auto; padding: 0 1.5rem; display: flex; align-items: center; gap: .4rem; flex-wrap: wrap; color: var(--text-muted); }
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--blue); }
.breadcrumb .sep { color: var(--border-strong); font-size: .7rem; }
.breadcrumb .current { color: var(--text); font-weight: 500; }

/* ── Hero page interne (titre seul, sobre) ── */
.page-hero { background: var(--bg-soft); color: var(--navy); padding: 3rem 1.5rem 2.25rem; text-align: center; position: relative; overflow: hidden; border-bottom: 1px solid var(--border); }
.page-hero-inner { position: relative; max-width: 820px; margin: 0 auto; }
.page-hero h1 { font-family: var(--heading); font-size: clamp(1.7rem, 3.6vw, 2.6rem); font-weight: 700; line-height: 1.25; color: var(--navy); }
.page-hero p { font-size: 1.05rem; color: var(--text-muted); max-width: 560px; margin: .75rem auto 0; }
/* Variante bleue (acheter-une-pharmacie, temoignage, blog) : sélecteur composé
   ".page-hero.page-hero--blue" pour garantir une spécificité strictement plus
   forte que ".page-hero h1" ci-dessus, quel que soit l'ordre des règles dans
   la feuille — sinon, à spécificité égale, c'est la dernière règle déclarée
   qui l'emporte (bug précédent : le titre restait noir malgré le fond bleu). */
.page-hero.page-hero--blue { background: var(--blue); border-bottom-color: transparent; }
.page-hero.page-hero--blue h1 { color: #fff; }
/* Resserre l'espace au-dessus du bloc de recherche/annonces pour réduire le
   scroll (utilisé uniquement avec .page-hero--blue, cf. page.php) */
.card-padded--tight-top { padding-top: 1.1rem; }
.hero-divider { width: 56px; height: 3px; background: var(--green); margin: 1.15rem auto 0; border-radius: 2px; }

/* ── Hero d'accueil (photo plein cadre) ── */
/* Titre + tiret + sous-titre centrés, comme sur la page d'accueil du site actuel :
   le dégradé d'éclaircissement est repassé en radial centré (au lieu d'un dégradé
   gauche→droite pensé pour un texte aligné à gauche) pour garder un bon contraste
   derrière un texte désormais centré. */
.home-hero { position: relative; min-height: 560px; display: flex; align-items: center; background-size: cover; background-position: center 25%; overflow: hidden; }
.home-hero::after { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse 65% 85% at 50% 50%, rgba(255,255,255,.48) 0%, rgba(255,255,255,.2) 55%, rgba(255,255,255,.03) 85%); pointer-events: none; }
/* z-index:1 indispensable. `.home-hero::after` est le dernier enfant du hero :
   sans ordre d'empilement explicite, le voile blanc se peint PAR-DESSUS le
   texte et le délave. Le titre récupère ainsi son bleu marine plein, et le
   voile ne s'applique plus qu'à la photo. */
.home-hero-inner { position: relative; z-index: 1; max-width: var(--max-w); margin: 0 auto; padding: 3rem 1.5rem; width: 100%; text-align: center; }
.home-hero h1 { font-family: var(--heading); font-weight: 700; font-size: clamp(1.7rem, 4vw, 2.7rem); color: var(--navy); max-width: 640px; line-height: 1.3; margin: 0 auto; }
.home-hero .hero-divider { margin: 1.15rem auto 0; }
.home-hero p { font-size: 1.1rem; color: var(--slate); max-width: 560px; margin: 1.1rem auto 0; }
@media (max-width: 640px) {
    /* Hero mobile — retours client du 02/09/2026 :
       hauteur réduite, texte centré et plus lisible, visage mieux cadré.

       Hauteur : 460 → 340 px. Le bandeau occupait plus de la moitié d'un écran
       de téléphone avant tout contenu utile.

       Cadrage : `cover` ne déforme jamais l'image (il recadre). L'effet de
       visage « écrasé » venait du cadrage vertical à 25 %, qui coupait les
       sujets à mi-hauteur sur un conteneur devenu étroit et haut. À 38 %, les
       visages sont pris dans le tiers supérieur, là où ils se trouvent.

       Lisibilité : le texte est FONCÉ sur photo éclaircie, comme sur desktop.
       Le voile ne sert qu'à calmer la photo derrière — il ne doit jamais passer
       devant le texte (cf. z-index sur .home-hero-inner). Première version
       montée à 88 % : elle délavait complètement le titre, le voile étant peint
       par-dessus. Ramené à 62-72 %, avec le texte au-dessus. */
    .home-hero { min-height: 340px; background-position: center 38%; }
    .home-hero::after { background: radial-gradient(ellipse 120% 75% at 50% 50%, rgba(255,255,255,.72) 0%, rgba(255,255,255,.62) 60%, rgba(255,255,255,.45) 100%); }
    .home-hero-inner {
        padding: 1.75rem 1.25rem;
        display: flex; flex-direction: column;
        align-items: center; justify-content: center;   /* centrage vertical réel */
        min-height: 340px;
    }
    /* Le H1 mentionne désormais « dans les Hauts-de-France » : on resserre
       légèrement la taille et l'interligne pour qu'il tienne sans repousser
       le contenu hors de la zone visible. */
    .home-hero h1 { font-size: 1.55rem; line-height: 1.25; color: var(--navy); }
    .home-hero p  { font-size: 1rem; color: var(--navy-mid); margin-top: .85rem; }
}

/* ── Layout principal ── */
.site-main { max-width: var(--max-w); margin: 0 auto; padding: 2.5rem 1.5rem; }
.site-main.with-sidebar { display: grid; grid-template-columns: 1fr 300px; gap: 2.5rem; align-items: start; }

/* ── Cards ── */
.card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; }
.card-padded { padding: 1.75rem; }

/* ── Image à la une : pleine largeur (desktop + mobile) ──
   L'image remplit toute la largeur de l'écran (100vw) via object-fit:cover ;
   si le fichier source est plus étroit que l'écran, le navigateur l'agrandit
   lui-même (srcset + interpolation lissée) plutôt que d'afficher des bandes
   floutées sur les côtés. */
.full-bleed-figure { width: 100vw; position: relative; left: 50%; right: 50%; margin-left: -50vw; margin-right: -50vw; margin-bottom: 2rem; line-height: 0; overflow: hidden; }
.full-bleed-figure__sharp-img { display: block; margin: 0 auto; width: 100%; max-height: 560px; object-fit: cover; }

/* Image à la une avec titre + tiret surimposés (pages intérieures : témoignages,
   annonces pharmacie, etc.), centrés, comme le hero de l'accueil. */
.full-bleed-figure--titled::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15,23,42,.18) 0%, rgba(15,23,42,.5) 100%); z-index: 1; pointer-events: none; }
.fb-title-overlay { position: absolute; inset: 0; z-index: 2; display: flex; align-items: center; justify-content: center; text-align: center; padding: 1.75rem; }
.fb-title-overlay-inner { max-width: 760px; }
.fb-title-overlay h1 { color: #fff; font-family: var(--heading); font-weight: 700; font-size: clamp(1.6rem, 3.6vw, 2.5rem); line-height: 1.3; margin: 0; text-shadow: 0 2px 12px rgba(0,0,0,.4); }
.fb-title-overlay .hero-divider { margin: 1.1rem auto 0; }

/* ── Page content ── */
.content-header { margin-bottom: 2rem; }
.content-header h1, .article-title { font-family: var(--heading); font-size: clamp(1.6rem, 3.5vw, 2.2rem); font-weight: 700; line-height: 1.3; color: var(--navy); margin-bottom: .6rem; }
.content-header .lead { font-size: 1.1rem; color: var(--text-muted); border-left: 3px solid var(--green); padding-left: .9rem; margin-top: .9rem; font-style: italic; }

.article-body h2 { font-family: var(--heading); font-size: 1.4rem; font-weight: 700; color: var(--navy); margin: 2.5rem 0 .9rem; padding-bottom: .5rem; border-bottom: 2px solid var(--border); position: relative; }
.article-body h2::before { content: ''; position: absolute; bottom: -2px; left: 0; width: 46px; height: 2px; background: var(--green); }
.article-body h3 { font-family: var(--heading); font-size: 1.12rem; color: var(--navy-mid); margin: 1.75rem 0 .6rem; font-weight: 600; }
.article-body h4 { font-weight: 600; margin: 1.25rem 0 .4rem; }
.article-body p { margin-bottom: 1.1rem; line-height: 1.8; }
.article-body ul, .article-body ol { margin: .75rem 0 1.1rem 1.75rem; }
.article-body li { margin-bottom: .4rem; line-height: 1.7; }
.article-body strong { font-weight: 600; color: var(--navy); }
.article-body em { font-style: italic; }
.article-body a:not(.btn), .blog-content a:not(.btn), .cat-editorial a:not(.btn) { color: var(--link); text-decoration: underline; text-decoration-color: rgba(22,87,201,.35); text-underline-offset: 3px; text-decoration-thickness: 1px; transition: color .18s ease, text-decoration-color .18s ease; }
.article-body a:not(.btn):hover, .blog-content a:not(.btn):hover, .cat-editorial a:not(.btn):hover { color: var(--link-hover); text-decoration-color: var(--link-hover); }
.article-body a:not(.btn) strong, .blog-content a:not(.btn) strong, .cat-editorial a:not(.btn) strong { color: inherit; }
.article-body blockquote { margin: 1.5rem 0; padding: 1rem 1.25rem 1rem 1.5rem; border-left: 4px solid var(--green); background: var(--green-pale); border-radius: 0 var(--radius) var(--radius) 0; font-style: italic; color: var(--navy-mid); }
.article-body figure { margin: 1.75rem 0; }
.article-body figure img { border-radius: var(--radius); width: 100%; }
.article-body figcaption { font-size: .8rem; color: var(--text-muted); text-align: center; margin-top: .5rem; }
.article-body table { width: 100%; border-collapse: collapse; margin: 1.25rem 0; font-size: .9rem; }
.article-body th { background: var(--navy); color: #fff; padding: .7rem 1rem; text-align: left; font-weight: 600; font-size: .82rem; text-transform: uppercase; letter-spacing: .05em; }
.article-body td { padding: .65rem 1rem; border-bottom: 1px solid var(--border); }
.article-body tr:last-child td { border-bottom: none; }
.article-body tr:nth-child(even) td { background: var(--bg-soft); }

/* Toutes les images du contenu en pleine largeur sur mobile (bord à bord) */
@media (max-width: 640px) {
    .card-padded .article-body img,
    .card-padded .article-body figure { width: 100vw; position: relative; left: 50%; right: 50%; margin-left: -50vw; margin-right: -50vw; border-radius: 0; }
    .card-padded .article-body figure img { border-radius: 0; }
    .card-padded .article-body figcaption { padding: 0 1.25rem; }
}

/* ── Article meta ── */
/* Barre fine pleine largeur sous l'image à la une, même langage visuel que
   .breadcrumb-wrap/.breadcrumb : fond clair + bordure fine, contenu recentré. */
.post-meta-wrap { background: #f4f7fa; border-bottom: 1px solid var(--border); padding: .55rem 0; }
.article-meta { max-width: var(--max-w); margin: 0 auto; padding: 0 1.5rem; display: flex; flex-wrap: wrap; gap: .4rem 1.25rem; align-items: center; font-size: .78rem; color: var(--text-muted); }
.article-meta .meta-item { display: flex; align-items: center; gap: .35rem; }
.article-meta .meta-item svg { width: 13px; height: 13px; opacity: .6; }
.cat-badge { display: inline-flex; align-items: center; background: var(--blue); color: #fff; font-size: .72rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; padding: .25rem .65rem; border-radius: 999px; text-decoration: none; }
.cat-badge:hover { background: var(--blue-dark); color: #fff; }
.cat-badge--static { cursor: default; }
.cat-badge--static:hover { background: var(--blue); color: #fff; }

/* ── Disclaimer (réutilisé pour messages d'info) ── */
.legal-disclaimer { background: var(--blue-pale); border: 1px solid var(--border-strong); border-left: 4px solid var(--blue); border-radius: var(--radius); padding: .9rem 1.1rem; font-size: .82rem; color: var(--navy-mid); margin: 2rem 0; display: flex; gap: .6rem; }
.legal-disclaimer strong { color: var(--navy); }

/* ── TOC ── */
.toc-box { background: var(--bg-soft); border: 1px solid var(--border); border-top: 3px solid var(--green); border-radius: var(--radius); padding: 1.1rem 1.25rem; margin: 1.75rem 0; font-size: .875rem; }
.toc-box .toc-title { font-family: var(--heading); font-weight: 700; color: var(--navy); margin-bottom: .75rem; font-size: .95rem; display: flex; align-items: center; gap: .4rem; }
.toc-list { list-style: none; }
.toc-list li { padding: .25rem 0; }
.toc-list a { color: var(--navy-mid); font-size: .85rem; display: flex; align-items: baseline; gap: .4rem; }
.toc-list a::before { content: '§'; color: var(--green); font-size: .75rem; flex-shrink: 0; }
.toc-list a:hover { color: var(--green-dark); }
.toc-list:not(.toc-nested) .toc-h3 { padding-left: 1.1rem; }
.toc-list:not(.toc-nested) .toc-h4 { padding-left: 2.2rem; }
.toc-list .toc-h3 a::before { content: '›'; }
.toc-list .toc-h4 a::before { content: '·'; }
.toc-nested, .toc-nested ul { list-style: none; }
.toc-nested ul { padding-left: .9rem; margin: .15rem 0 .15rem .15rem; border-left: 1px solid var(--border); }

/* ── Blog listing ── */
.section-heading { font-family: var(--heading); font-size: 1.55rem; font-weight: 700; color: var(--navy); margin-bottom: 1.5rem; padding-bottom: .75rem; border-bottom: 1px solid var(--border); position: relative; }
.section-heading::after { content: ''; position: absolute; bottom: -1px; left: 0; width: 56px; height: 2px; background: var(--green); }
/* Règle générique : partout où un .section-heading est centré (attribut inline
   style="text-align:center...", pattern utilisé dans tout le contenu édité :
   accueil, pages "compétences", etc.), son tiret ::after doit suivre et se
   recentrer. Remplace les correctifs ponctuels par sélecteur (#competences,
   .home-domains--photo...) qui obligeaient à corriger un par un chaque nouvel
   endroit — source des tirets oubliés signalés par l'utilisateur. */
.section-heading[style*="text-align:center"]::after { left: 50%; transform: translateX(-50%); }
.filter-bar { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.75rem; }
.filter-btn { display: inline-block; padding: .35rem .9rem; border: 1px solid var(--border); border-radius: 999px; font-size: .8rem; color: var(--text-muted); transition: all .18s; font-weight: 500; }
.filter-btn:hover, .filter-btn.active { background: var(--navy); color: #fff; border-color: var(--navy); }

.posts-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.5rem; }
.post-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s; overflow: hidden; }
.post-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.post-card-img { width: 100%; aspect-ratio: 16/10; object-fit: cover; display: block; }
.post-card-body { padding: 1.35rem; flex: 1; display: flex; flex-direction: column; }
.post-card-cat { margin-bottom: .6rem; }
.post-card h2 { font-family: var(--heading); font-size: 1.05rem; color: var(--navy); line-height: 1.4; margin-bottom: .6rem; font-weight: 600; }
.post-card h2 a { color: inherit; }
.post-card h2 a:hover { color: var(--blue); }
.post-card .excerpt { font-size: .875rem; color: var(--text-muted); line-height: 1.65; flex: 1; margin-bottom: .9rem; }
.post-card-footer { padding: .75rem 1.35rem; border-top: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; font-size: .78rem; color: var(--text-muted); background: var(--bg-soft); }
.read-more { font-size: .82rem; font-weight: 600; color: var(--blue); display: flex; align-items: center; gap: .25rem; }
.read-more:hover { color: var(--blue-dark); }

.post-list-item { background: var(--white); border: 1px solid var(--border); border-left: 4px solid transparent; border-radius: var(--radius); padding: 1.25rem 1.5rem; margin-bottom: 1rem; transition: border-left-color .2s, box-shadow .2s; display: flex; gap: 1.25rem; align-items: flex-start; }
.post-list-item:hover { border-left-color: var(--green); box-shadow: var(--shadow-sm); }
.post-list-date { flex-shrink: 0; text-align: center; background: var(--navy); color: #fff; border-radius: var(--radius); padding: .5rem .7rem; min-width: 52px; }
.post-list-date .day { display: block; font-size: 1.3rem; font-weight: 700; line-height: 1; font-family: var(--heading); }
.post-list-date .month { display: block; font-size: .65rem; text-transform: uppercase; letter-spacing: .08em; opacity: .8; }
.post-list-content { flex: 1; }
.post-list-content h2 { font-family: var(--heading); font-size: 1.1rem; color: var(--navy); margin-bottom: .35rem; font-weight: 600; }
.post-list-content h2 a { color: inherit; }
.post-list-content h2 a:hover { color: var(--blue); }
.post-list-content p { font-size: .875rem; color: var(--text-muted); line-height: 1.65; }

/* ── Sidebar ── */
.sidebar { display: flex; flex-direction: column; gap: 1.5rem; }
.sidebar-widget { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; }
.widget-title { background: var(--navy); color: #fff; font-family: var(--heading); font-size: .9rem; font-weight: 600; padding: .75rem 1.1rem; letter-spacing: .03em; display: flex; align-items: center; gap: .5rem; }
.widget-body { padding: 1rem 1.1rem; }
.widget-list { list-style: none; }
.widget-list li { border-bottom: 1px solid var(--border); }
.widget-list li:last-child { border-bottom: none; }
.widget-list a { display: flex; align-items: center; gap: .5rem; padding: .55rem 0; font-size: .875rem; color: var(--text); }
.widget-list a::before { content: '›'; color: var(--green); font-weight: 700; }
.widget-list a:hover { color: var(--blue); }
.widget-list .count { margin-left: auto; background: var(--bg-soft); color: var(--text-muted); font-size: .72rem; padding: .1rem .45rem; border-radius: 999px; border: 1px solid var(--border); }
.toc-widget .toc-list { padding: 0; }
.toc-widget .toc-list > li { border-bottom: 1px solid var(--border); }
.toc-widget .toc-list > li:last-child { border-bottom: none; }
.toc-widget .toc-nested ul li { border-bottom: none; }
.toc-widget .toc-list a { padding: .5rem 0; }

.sidebar-widget-title { background: var(--navy); color: #fff; font-family: var(--heading); font-size: .9rem; font-weight: 600; padding: .75rem 1.1rem; letter-spacing: .03em; display: flex; align-items: center; gap: .5rem; }
.sidebar-list { list-style: none; padding: .25rem 0; margin: 0; }
.sidebar-list li { border-bottom: 1px solid var(--border); }
.sidebar-list li:last-child { border-bottom: none; }
.sidebar-list a { display: flex; align-items: center; gap: .5rem; padding: .55rem 1.1rem; font-size: .875rem; color: var(--text); }
.sidebar-list a::before { content: '›'; color: var(--green); font-weight: 700; }
.sidebar-list a:hover { color: var(--blue); }
.sidebar-search { display: flex; gap: .4rem; padding: .75rem 1.1rem; }
.sidebar-search input[type="search"] { flex: 1; border: 1px solid var(--border); border-radius: 4px; padding: .45rem .7rem; font-size: .875rem; background: var(--bg-soft); color: var(--text); outline: none; }
.sidebar-search input[type="search"]:focus { border-color: var(--blue); }
.sidebar-search button { padding: .45rem .75rem; background: var(--navy); color: #fff; border: none; border-radius: 4px; cursor: pointer; font-size: .85rem; line-height: 1; transition: background .15s; }
.sidebar-search button:hover { background: var(--blue); }
.after-content-widgets { max-width: var(--max-w); margin: 2rem auto 0; padding: 0 1.5rem; display: flex; flex-direction: column; gap: 1.25rem; }

/* ── Grille de mise en avant (accueil / archives) ── */
.domains-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin: 1.5rem 0; }
.home-domains-inner--full { max-width: 100%; padding: 0 2rem; }
.home-domains--image .domain-card { padding: 0; overflow: hidden; border-top: none; }
.domain-card-img { width: 100%; height: 170px; background-size: cover; background-position: center; flex-shrink: 0; }
.home-domains--image .domain-card h2, .home-domains--image .domain-card h3 { padding: .7rem 1rem .25rem; }
.home-domains--image .domain-card p { padding: 0 1rem .85rem; }
.home-domains--image .domain-card .domain-icon { display: none; }
.home-domains--minimal .domain-card { background: transparent; border: 1.5px solid var(--border); border-top-color: var(--border); padding: .9rem 1.1rem; }
.home-domains--minimal .domain-card .domain-icon { font-size: 1.5rem; margin-bottom: .35rem; }
.home-domains--minimal .domain-card:hover { background: var(--bg-soft); }
.domain-card { background: var(--white); border: 1px solid var(--border); border-top: 3px solid var(--green); border-radius: var(--radius); padding: 1.25rem; text-align: center; transition: transform .2s, box-shadow .2s; text-decoration: none; color: inherit; }
.domain-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.domain-card .domain-icon { font-size: 2rem; margin-bottom: .6rem; }
/* h2 accepté en plus de h3 : les trois cartes du bloc haut de l'accueil sont
   passées en h2 pour respecter la hiérarchie h1 → h2 (audit « ordre des titres »).
   Le rendu visuel reste identique. */
.domain-card h2, .domain-card h3 { font-family: var(--heading); font-size: .95rem; color: var(--navy); font-weight: 600; margin-bottom: .25rem; }
.domain-card p { font-size: .78rem; color: var(--text-muted); }

/* ── Cartes pleine couleur (accueil : Acheter / Céder) ── */
.domain-card--solid { border: none; padding: 2.25rem 1.75rem; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.domain-card--solid .domain-icon-solid { font-size: 2.5rem; line-height: 1; color: var(--white); margin-bottom: .9rem; }
.domain-card--solid h2, .domain-card--solid h3 { color: var(--white); font-size: 1.2rem; margin-bottom: 0; }
.domain-card--solid .card-divider { width: 42px; height: 2px; background: rgba(255,255,255,.55); margin: .85rem 0; border-radius: 2px; border: none; }
.domain-card--solid p { color: #fff; font-size: .92rem; line-height: 1.55; }
.domain-card--solid:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
/* #2e90f0 ne donnait que 3,30:1 avec du texte blanc (seuil AA : 4,5:1).
   #1974d2 atteint 4,70:1 en restant dans la même famille de bleu. */
.domain-card--solid-blue { background: #1974d2; }
.domain-card--solid-navy { background: #1962ba; }

/* ── Grille tarifs (honoraires) — 2 cartes colorées ── */
.tarifs-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; margin: 1.75rem 0; }
.tarifs-card { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); }
.tarifs-card-head { padding: 1.5rem 1.25rem; text-align: center; color: #fff; }
.tarifs-card-head--green { background: var(--green); }
.tarifs-card-head--coral { background: #e8837f; }
.tarifs-card-label { display: block; font-weight: 700; font-size: 1.02rem; margin-bottom: .4rem; }
.tarifs-card-amount { display: block; font-size: .92rem; opacity: .95; }
.tarifs-card-body { background: var(--white); border: 1px solid var(--border); border-top: none; padding: 1.5rem 1.25rem; text-align: center; }
.tarifs-card-body-title { display: block; font-family: var(--heading); font-weight: 700; font-size: 1.05rem; margin-bottom: .4rem; }
.tarifs-card-body-title--green { color: var(--green-dark); }
.tarifs-card-body-title--coral { color: #d9635e; }
.tarifs-card-body-value { display: block; font-weight: 700; color: var(--navy); }
@media (max-width: 600px) { .tarifs-grid { grid-template-columns: 1fr; } }

/* ── Widget « Trouver une officine » (visuel uniquement, redirige vers les annonces) ── */
.finder-widget { background: #083683; border-radius: var(--radius); padding: 2rem 1.75rem; display: flex; flex-direction: column; text-decoration: none; }
.finder-widget h2, .finder-widget h3 { font-family: var(--heading); font-size: 1.15rem; font-weight: 700; color: var(--white); line-height: 1.3; text-transform: uppercase; letter-spacing: .01em; margin-bottom: 0; text-align: center; }
.finder-widget .card-divider { width: 42px; height: 2px; background: var(--green); margin: .9rem auto 1.35rem; border-radius: 2px; }
.finder-select { width: 100%; padding: .7rem 2.2rem .7rem .9rem; margin-bottom: .85rem; border: 1px solid rgba(255,255,255,.25); border-radius: 6px; background: rgba(255,255,255,.07) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path fill='%23ffffff' d='M4 6l4 4 4-4z'/></svg>") no-repeat right .8rem center/12px; color: rgba(255,255,255,.92); font-size: .88rem; font-family: var(--sans); appearance: none; cursor: pointer; }
.finder-select option { color: var(--text); }
/* Département + ville côte à côte, sur la largeur d'un seul champ.
   `min-width:0` est indispensable : sans lui, un <select> refuse de descendre
   sous la largeur de sa plus longue option (« Boulogne-sur-Mer ») et déborde
   de la grille. La flèche est resserrée pour préserver la place du texte. */
.finder-pair { display: flex; gap: .5rem; }
.finder-pair .finder-select,
.finder-pair .qs-select { flex: 1 1 0; min-width: 0; }
.finder-pair .finder-select { padding-right: 1.7rem; background-position: right .55rem center; text-overflow: ellipsis; }
.finder-widget .btn-green { width: 100%; justify-content: center; margin-top: .35rem; border: none; cursor: pointer; }

/* ── Homepage ── */
.home-intro { max-width: var(--max-w); margin: 0 auto; padding: 3.5rem 1.5rem; }
.home-intro-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.home-intro-grid--search { grid-template-columns: repeat(3, 1fr); gap: 1.75rem; align-items: stretch; }
/* Le moteur de l'accueil garde sa carte verticale d'origine (.finder-widget),
   dans la première case de la grille à trois colonnes. Le module horizontal de
   la page annonces avait été essayé ici : beaucoup trop large pour un tiers de
   largeur, les libellés y étaient tronqués (« Départeme… »). Seule la mise en
   forme diffère désormais entre les deux emplacements — les options et les
   compteurs proviennent du même code (pharmacie-lib.php). */
.home-intro-text h2 { font-family: var(--heading); font-size: 1.75rem; font-weight: 700; color: var(--navy); margin-bottom: 1rem; }
.home-intro-text p { color: var(--text-muted); line-height: 1.8; margin-bottom: .9rem; }
.home-intro-features { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.feature-item { display: flex; align-items: flex-start; gap: .6rem; font-size: .875rem; }
.feature-item::before { content: '✓'; color: var(--green); font-weight: 700; margin-top: .1rem; flex-shrink: 0; }
.home-latest { background: var(--bg-soft); padding: 3.5rem 1.5rem; }
.home-latest .section-heading { text-align: center; border: none; }
.home-latest .section-heading::after { left: 50%; transform: translateX(-50%); background: var(--green); }
.home-latest-inner { max-width: var(--max-w); margin: 0 auto; }
.home-domains { background: var(--white); padding: 3rem 1.5rem; }
.home-domains-inner { max-width: var(--max-w); margin: 0 auto; }

/* Section "Achat / Revente de pharmacies" (#competences) : le H2 est centré
   en ligne (style inline text-align:center) mais le petit tiret vert du
   ::after de .section-heading reste calé à gauche par défaut (left:0) —
   on le recentre ici, comme sur .home-latest. */
#competences .section-heading::after { left: 50%; transform: translateX(-50%); }

/* ── FAQ accordéon accueil ("Mieux nous connaître") ── */
.home-faq { max-width: 960px; margin: 0 auto; }
.home-faq-item { border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: .75rem; background: #fff; overflow: hidden; }
.home-faq-q { width: 100%; text-align: left; background: none; border: none; cursor: pointer; font: inherit; font-family: var(--heading); color: var(--navy); font-weight: 600; font-size: .98rem; line-height: 1.4; padding: 1rem 3.5rem 1rem 1.25rem; position: relative; display: block; }
.home-faq-q:hover { color: var(--blue); }
/* Puce fermée : la plume du logo (au lieu d'un "+" nu) ; puce ouverte :
   carré bleu avec un "–" blanc, pour uniformiser les deux états en bleu. */
.home-faq-q::after {
    content: '';
    position: absolute; right: 1.05rem; top: 50%; transform: translateY(-50%);
    width: 32px; height: 32px;
    background-image: url('img/faq-icon-plume.webp');
    background-size: contain; background-position: center; background-repeat: no-repeat;
}
.home-faq-q[aria-expanded="true"]::after {
    content: '–';
    background-image: none;
    background-color: var(--blue);
    border-radius: 7px;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-weight: 700; font-size: 1.15rem; line-height: 1;
}
.home-faq-a { max-height: 0; overflow: hidden; transition: max-height .28s ease; }
.home-faq-a.is-open { max-height: 20rem; }
.home-faq-a-inner { padding: 0 1.25rem 1.1rem; color: var(--text-muted); font-size: .9rem; line-height: 1.7; }
.home-faq-a-inner p { margin: 0; }

/* ── Variante "photo" : fond bleu uni + plume du logo en filigrane (l'image de
   fond d'origine était illisible sous la surimpression bleue ; remplacée par
   un aplat de la couleur bleue du site, plus net et fiable sur tous les écrans) ── */
.home-domains--photo { position: relative; background: var(--blue); padding: 4.5rem 1.5rem; overflow: hidden; }
.home-domains--photo .home-domains-inner { position: relative; z-index: 1; }
.home-domains--photo .section-heading { color: #fff; border-bottom-color: rgba(255,255,255,.3); }
.home-domains--photo .section-heading::after { background: var(--green); }
.home-domains--photo .section-sub { color: rgba(255,255,255,.85); }
.home-domains--photo > .home-domains-inner > div { color: rgba(255,255,255,.92); }
.home-domains--photo strong { color: #fff; }

/* Image fournie par le client (fond blanc plein, pourtour noir) — utilisée telle quelle,
   sans retraitement, uniquement recadrée. Desktop large : posée sur le côté gauche,
   agrandie tant que la marge le permet, texte toujours centré (max-width:820px), jamais
   de chevauchement. Mobile (<1000px) : plus de place sur le côté, donc plume recentrée
   SOUS le texte (flux normal), en petit format et opacité réduite pour rester discrète. */
.ph-blue-deco {
    display: none;
    position: absolute; top: 0; bottom: 0;
    left: clamp(10px, 2.58vw - 16px, 28px);
    align-items: center;
    opacity: .97;
    pointer-events: none; z-index: 0;
}
/* Taille lissée en continu selon la largeur d'écran (pas de palier brusque) :
   ~65px à 1000px de large, ~240px à 1543px (taille validée), plafonnée à 300px. */
.ph-blue-deco img { height: clamp(65px, 32.23vw - 257px, 300px); width: auto; display: block; }
@media (min-width: 1000px) { .ph-blue-deco { display: flex; } }
@media (max-width: 999px) {
    .home-domains--photo { display: flex; flex-direction: column; }
    .home-domains--photo .home-domains-inner { order: 1; }
    .ph-blue-deco {
        display: flex; position: static; order: 2;
        justify-content: center; margin-top: 1.75rem;
    }
    .ph-blue-deco img { height: auto; max-height: none; width: 130px; }
}
.home-cta { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%); padding: 3.5rem 1.5rem; text-align: center; }
.home-cta h2 { font-family: var(--heading); color: #fff; font-weight: 700; font-size: 1.75rem; margin-bottom: .75rem; }
.home-cta p { color: rgba(255,255,255,.75); margin-bottom: 1.5rem; }

/* ── Home grid section (contenu riche colonnes) ── */
.home-section-inner { max-width: var(--max-w); margin: 0 auto; padding: 0 1.5rem; }
.hgs-header { text-align: center; margin-bottom: 2.5rem; }
.hgs-title { font-family: var(--heading); font-weight: 700; font-size: 1.85rem; margin-bottom: .5rem; }
.hgs-sub { font-size: 1rem; opacity: .75; margin: 0; }
.hgs-row { margin-bottom: 1.5rem; }
.hgs-row:last-child { margin-bottom: 0; }
.hgs-col { min-width: 0; }
.hgs-col-heading { font-family: var(--heading); font-weight: 700; font-size: 1.3rem; margin-bottom: .65rem; }
.hgs-col-body { line-height: 1.75; }
.hgs-col-body h2, .hgs-col-body h3, .hgs-col-body h4 { font-family: var(--heading); margin: 1rem 0 .5rem; }
.hgs-col-body p { margin-bottom: .75rem; }
.hgs-col-body ul, .hgs-col-body ol { padding-left: 1.4rem; margin-bottom: .75rem; }
.hgs-col-body a { color: inherit; text-decoration: underline; }
.hgs-col-figure { margin: 0; }
.hgs-col-figure img { width: 100%; height: auto; display: block; border-radius: 8px; }
.hgs-col-figure figcaption { font-size: .78rem; text-align: center; opacity: .65; margin-top: .4rem; }
.hgs-col-video iframe, .hgs-col-video video { width: 100%; aspect-ratio: 16/9; display: block; border-radius: 8px; border: none; }
.hgs-col-caption { font-size: .78rem; text-align: center; opacity: .65; margin-top: .4rem; }
.hgs-dark .hgs-title, .hgs-dark .hgs-col-heading, .hgs-dark .hgs-col-body { color: #fff; }
.hgs-dark .hgs-sub { color: rgba(255,255,255,.75); }
.hgs-dark .hgs-col-body a { color: rgba(255,255,255,.9); }
.hgs-light .hgs-title, .hgs-light .hgs-col-heading, .hgs-light .hgs-col-body { color: var(--navy); }
.hgs-light .hgs-sub { color: var(--text-muted); }
.section-sub { color: var(--text-muted); text-align: center; margin-bottom: 1.5rem; }

/* ── Boutons génériques ── */
.btn { display: inline-flex; align-items: center; gap: .4rem; padding: .7rem 1.5rem; border-radius: var(--radius); font-weight: 600; font-size: .9rem; cursor: pointer; transition: all .18s; text-decoration: none; letter-spacing: .01em; }
.btn-gold, .btn-blue { background: var(--blue); color: #fff; }
.btn-gold:hover, .btn-blue:hover { background: var(--blue-dark); color: #fff; }
.btn-green { background: var(--green-cta); color: #fff; }
.btn-green:hover { background: var(--green-cta-hover); color: #fff; }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-mid); color: #fff; }
.btn-outline { background: transparent; border: 2px solid currentColor; color: var(--blue); }
.btn-outline:hover { background: var(--blue); color: #fff; border-color: var(--blue); }
.btn-outline-white { color: #fff; border: 1.5px solid rgba(255,255,255,.7); background: rgba(255,255,255,.08); }
.btn-outline-white:hover { background: var(--white); color: var(--navy); border-color: var(--white); }
.btn-lg { padding: .9rem 2rem; font-size: 1rem; }

/* ── Article actions ── */
.article-actions { display: flex; gap: .75rem; flex-wrap: wrap; margin: 2rem 0 0; padding-top: 1.5rem; border-top: 1px solid var(--border); }
.share-btn { display: inline-flex; align-items: center; gap: .35rem; padding: .4rem .85rem; border-radius: 999px; font-size: .8rem; font-weight: 500; border: 1px solid var(--border); color: var(--text-muted); transition: all .18s; cursor: pointer; background: none; }
.share-btn:hover { border-color: var(--blue); color: var(--blue); }

/* ── Footer ── */
.site-footer { background: var(--footer-bg, var(--navy)); color: rgba(255,255,255,.85); margin-top: 0; }
/* Filet de sécurité : tout lien du pied de page qui n'aurait pas de couleur
   propre héritait sinon de `a { color: var(--blue) }` = #1657c9, illisible sur
   fond marine (2,19:1). #93c5fd donne 7,89:1.
   ⚠️ Ne suffit PAS pour les liens de la carte « Nous joindre » : ceux-ci ont
   leurs propres règles, plus spécifiques, et surtout un fond différent —
   voir .footer-joindre-card plus bas. */
.site-footer a { color: #93c5fd; }
.site-footer a:hover { color: #dbeafe; }
/* ── Footer simplifié "Nous joindre" (fidèle au site d'origine) ── */
.footer-joindre { max-width: var(--max-w); margin: 0 auto; padding: 3.5rem 1.5rem 2.5rem; text-align: center; }
.footer-joindre h2 { font-family: var(--heading); color: #fff; font-size: 1.6rem; font-weight: 700; margin-bottom: .85rem; }
.footer-joindre-divider { width: 54px; height: 3px; background: var(--green); margin: 0 auto 1.25rem; border-radius: 2px; }
.footer-joindre-sub { font-size: 1.05rem; color: rgba(255,255,255,.92); margin-bottom: 2.5rem; }
.footer-joindre-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem; margin-bottom: 2.5rem; }
/* Contraste des liens de la carte « Nous joindre ».
   Le fond n'est PAS le marine du pied de page mais le bleu #1657c9 de la carte.
   L'ancienne couleur #bcd6ff donnait 4,38:1 — il manquait 0,12 pour atteindre
   les 4,5:1 du niveau AA, ce qui suffisait à faire échouer l'audit et à bloquer
   le score d'accessibilité à 96. #e3edff monte à 5,50:1 en restant légèrement
   bleuté, ce qui distingue toujours les liens du texte blanc voisin. */
.footer-joindre-card { display: flex; flex-direction: column; align-items: center; }
.footer-joindre-photo { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; margin-bottom: 1rem; border: 2px solid rgba(255,255,255,.35); }
.footer-joindre-label { font-size: .78rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: rgba(255,255,255,.85); margin-bottom: .3rem; }
.footer-joindre-name { color: #fff; font-size: 1.02rem; font-weight: 700; }
.footer-joindre-name-divider { width: 34px; height: 2px; background: rgba(255,255,255,.6); margin: .5rem auto .75rem; }
.footer-joindre-card a { color: #e3edff; font-size: .88rem; display: block; }
.footer-joindre-card a:hover { color: #fff; }
.footer-joindre-region { display: block; color: #fff; font-weight: 600; font-size: .88rem; margin-top: .35rem; }
.footer-joindre-phone { display: block; color: #fff; font-weight: 600; font-size: .88rem; margin-top: .2rem; }
.footer-joindre-phone a { display: inline; color: #e3edff; font-weight: 400; }
.footer-joindre-discover { font-size: .9rem; color: rgba(255,255,255,.9); }
.footer-joindre-discover a { color: #e3edff; text-decoration: underline; }
.footer-joindre-discover a:hover { color: #fff; }
.footer-bottom-bar { background: var(--white); }
.footer-bottom { padding: 1.1rem 1.5rem; max-width: var(--max-w); margin: 0 auto; display: flex; justify-content: center; align-items: center; font-size: .82rem; color: var(--text-muted); flex-wrap: wrap; gap: .5rem; text-align: center; }
.footer-bottom a { color: var(--text-muted); }
.footer-bottom a:hover { color: var(--blue); }
/* Liens légaux obligatoires : soulignés et en bleu de lien pour être repérables
   sans effort — c'est une exigence pratique autant que réglementaire.
   #1657c9 sur le fond blanc de la barre = 6,48:1, largement au-dessus du AA. */
.footer-legal { display: inline-flex; align-items: center; gap: .45rem; flex-wrap: wrap; justify-content: center; }
.footer-legal a { color: var(--link); text-decoration: underline; }
.footer-legal a:hover { color: var(--link-hover); }
.footer-legal > span[aria-hidden] { color: var(--border-strong); }
@media (max-width: 700px) {
    .footer-joindre-grid { grid-template-columns: 1fr; gap: 2rem; }
}

/* ── 404 ── */
.error-page { text-align: center; padding: 5rem 1.5rem; max-width: 540px; margin: 0 auto; }
.error-page .error-code { font-family: var(--heading); font-size: 6rem; color: var(--blue); line-height: 1; font-weight: 700; opacity: .25; }
.error-page h1 { font-family: var(--heading); font-size: 1.8rem; color: var(--navy); margin: 1rem 0 .75rem; }
.error-page p { color: var(--text-muted); margin-bottom: 1.75rem; }

/* ── Reading progress ── */
.reading-progress { position: fixed; top: 0; left: 0; height: 3px; background: linear-gradient(90deg, var(--blue), var(--green)); z-index: 9999; width: 0; transition: width .1s; }

/* ── CTA mobile fixe (Contact / Téléphone) ── */
.mobile-cta-bar { display: none; }
@media (max-width: 900px) {
    .mobile-cta-bar {
        display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 600;
        box-shadow: 0 -4px 18px rgba(20,30,50,.18);
        padding-bottom: env(safe-area-inset-bottom, 0);
    }
    .mobile-cta-bar a {
        flex: 1; display: flex; align-items: center; justify-content: center; gap: .45rem;
        padding: .95rem .5rem; font-weight: 700; font-size: .95rem; color: #fff;
    }
    .mobile-cta-bar a svg { width: 16px; height: 16px; }
    .mobile-cta-bar .mcb-contact { background: var(--blue); }
    .mobile-cta-bar .mcb-phone { background: var(--green-cta); }

    /* Le bouton "Cookies" (rouvrir les préférences, injecté par le plugin
       cookie-notice) est en position fixed bottom:16px codée en inline-style ;
       sur mobile il chevauche la barre CTA fixe. On le remonte au-dessus. */
    #cn-reopen { bottom: calc(64px + env(safe-area-inset-bottom, 0) + 14px) !important; }
}

/* ── Responsive ── */
@media (max-width: 1024px) {
    .site-main.with-sidebar { grid-template-columns: 1fr; }
    .sidebar { display: grid; grid-template-columns: repeat(2, 1fr); }
    .footer-top { grid-template-columns: 1fr 1fr; }
    .home-intro-grid { grid-template-columns: 1fr; gap: 2rem; }
    .home-intro-grid--search { grid-template-columns: 1fr; gap: 1.25rem; }
}

@media (max-width: 900px) {
    .top-bar { display: none; }
    .top-bar.topbar-show-mobile { display: block; }
    /* Header fixe en haut sur mobile (plutôt que "relative") : le dropdown du
       menu (position:fixed, top:var(--mobile-header-height)) reste toujours
       calé pile sous le header, y compris si la page était scrollée à
       l'ouverture du burger — avec "relative" le header défilait avec la page
       alors que le dropdown restait, lui, plaqué en haut de l'écran, d'où le
       chevauchement qui coupait le logo. */
    .site-header { position: fixed; top: 0; left: 0; right: 0; width: 100%; z-index: 510; }
    body { padding-top: var(--mobile-header-height, 64px); }
    .header-inner { height: var(--mobile-header-height, 64px); padding: 0 1rem; justify-content: flex-start; gap: 0; }
    .site-header .site-logo { flex: 1; justify-content: center; }
    /* Le logo peut devenir très large en 92px de hauteur (plafond desktop) —
       sur mobile étroit ça déborde et coupe le texte : on replafonne ici. */
    .site-header .site-logo img { max-height: 44px !important; width: auto; }
    .nav-toggle { display: flex; align-items: center; justify-content: center; flex-shrink: 0; width: 42px; height: 42px; margin-right: .6rem; position: relative; z-index: 520; }
    /* Remplace les 3 barres par la plume du logo (même icône que les puces de la
       FAQ accueil), volontairement plus petite que la plume affichée dans le logo
       juste à côté (32px en FAQ / jusqu'à 76px dans le logo → 26px ici). */
    .nav-toggle span { display: none; }
    .nav-toggle::before {
        content: '';
        width: 26px; height: 26px;
        background-image: url('img/faq-icon-plume.webp');
        background-size: contain; background-position: center; background-repeat: no-repeat;
    }
    .nav-toggle[aria-expanded="true"]::before {
        content: '✕';
        background-image: none;
        display: flex; align-items: center; justify-content: center;
        color: var(--navy); font-weight: 700; font-size: 1.2rem; line-height: 1;
    }
    .nav-overlay { display: none; position: fixed; inset: 0; background: rgba(10,16,28,.55); z-index: 490; }
    .nav-overlay.open { display: block; animation: nvFadeIn .25s ease; }
    @keyframes nvFadeIn { from { opacity: 0; } to { opacity: 1; } }

    .hamburger-right .header-inner { flex-direction: row-reverse; }
    .hamburger-right .site-header .site-logo { justify-content: flex-start; }
    .hamburger-right .nav-toggle { margin-right: 0; margin-left: .6rem; }
    .hamburger-right.mobile-menu-drawer .site-nav { left: auto; right: 0; transform: translateX(100%); box-shadow: -6px 0 40px rgba(0,0,0,.45); border-right: none; border-left: 1px solid rgba(255,255,255,.08); }
    .hamburger-right.mobile-menu-drawer .site-nav.open { transform: translateX(0); }

    .hamburger-left .header-inner { justify-content: flex-start; }
    .hamburger-left .site-header .site-logo { justify-content: center; }

    /* Drawer mobile : fond marine, quel que soit le fond du header desktop */
    .mobile-menu-drawer .site-nav {
        display: flex !important; flex-direction: column; position: fixed; top: 0; left: 0; bottom: 0;
        width: min(290px, 82vw); background: var(--navy); z-index: 500;
        padding-top: var(--mobile-header-height, 64px); padding-bottom: 2.5rem; gap: 0;
        transform: translateX(-100%); transition: transform .32s cubic-bezier(.4,0,.2,1);
        overflow-y: auto; -webkit-overflow-scrolling: touch;
        box-shadow: 6px 0 40px rgba(0,0,0,.45); border-right: 1px solid rgba(255,255,255,.08);
    }
    .mobile-menu-drawer .site-nav.open { transform: translateX(0); }
    .mobile-menu-drawer .site-nav > li { border-bottom: 1px solid rgba(255,255,255,.07); list-style: none; }
    .mobile-menu-drawer .site-nav > li > a { padding: .85rem 1.5rem; font-size: .95rem; border-radius: 0; display: block; color: rgba(255,255,255,.88); }
    .mobile-menu-drawer .site-nav > li.active > a { border-bottom: none; border-left: 3px solid var(--green); padding-left: calc(1.5rem - 3px); color: var(--green); background: rgba(255,255,255,.06); }

    /* Dropdown mobile : position "fixed" + astuce full-bleed (left:50% / margin-left:-50vw)
       pour garantir un collage exact sous le header et une largeur 100% écran,
       quelle que soit la largeur réelle de .site-header (même logique que pour
       les images pleine largeur des articles de blog, cf. .full-bleed-figure). */
    .mobile-menu-dropdown .site-nav { display: none; flex-direction: column; position: fixed; top: var(--mobile-header-height, 64px); left: 50%; right: auto; width: 100vw; margin-left: -50vw; background: var(--navy); padding: 0; gap: 0; border-top: 2px solid var(--green); box-shadow: 0 12px 32px rgba(0,0,0,.35); z-index: 400; max-height: calc(100vh - var(--mobile-header-height, 64px)); overflow-y: auto; }
    .mobile-menu-dropdown .site-nav.open { display: flex; }
    /* Séparateurs pleine largeur bien visibles entre "Services" / "Nos
       Compétences" / "Informations" (l'opacité .07 précédente était quasi
       invisible sauf près du bouton flèche, d'où l'impression de lignes
       tronquées). */
    .mobile-menu-dropdown .site-nav > li { width: 100%; border-bottom: 1px solid rgba(255,255,255,.22); list-style: none; }
    .mobile-menu-dropdown .site-nav > li > a { padding: .8rem 1.5rem; font-size: .95rem; display: block; color: rgba(255,255,255,.88); }

    .site-nav li.has-children { display: flex; flex-wrap: wrap; align-items: stretch; }
    .site-nav li.has-children > a { flex: 1; min-width: 0; }
    .site-nav li.has-children > .sub-menu { flex-basis: 100%; width: 100%; }
    .sub-toggle { display: flex; align-items: center; justify-content: center; min-width: 46px; background: rgba(255,255,255,.07); border: none; border-left: 1px solid rgba(255,255,255,.07); cursor: pointer; color: rgba(255,255,255,.6); font-size: .95rem; transition: background .15s, color .15s; flex-shrink: 0; padding: 0; }
    .sub-toggle:hover, .sub-toggle[aria-expanded="true"] { background: rgba(255,255,255,.13); color: var(--green); }
    .site-nav .sub-menu { position: static; display: none; box-shadow: none; border: none; border-top: 1px solid rgba(255,255,255,.06); min-width: 0; background: rgba(0,0,0,.22); border-radius: 0; }
    .site-nav .sub-menu.open { display: block; }
    .site-nav .sub-menu li a { padding: .65rem 1.5rem .65rem 2.25rem; color: rgba(255,255,255,.7); font-size: .875rem; border-bottom: 1px solid rgba(255,255,255,.05); display: block; }
    .site-nav .sub-menu .sub-menu li a { padding-left: 3.25rem; }
    .site-nav .sub-menu .sub-menu .sub-menu li a { padding-left: 4.25rem; }
    .site-nav .sub-menu .sub-menu .sub-menu .sub-menu li a { padding-left: 5.25rem; }
    .site-nav .sub-menu li:last-child > a { border-bottom: none; }
    .site-nav .sub-menu li a:hover { background: rgba(255,255,255,.08); color: var(--green); }
    .sub-menu li.has-children > a::after { display: none; }

    .footer-top { grid-template-columns: repeat(var(--mobile-footer-cols, 1), 1fr); gap: 1.75rem; }
    .footer-bottom { flex-direction: column; text-align: center; }

    .posts-grid { grid-template-columns: 1fr; }
    .sidebar { grid-template-columns: 1fr; }
    .home-intro-features { grid-template-columns: 1fr; }
    .page-hero { padding: 2.25rem 1.25rem; }
    .domains-grid { grid-template-columns: repeat(2, 1fr) !important; }
    .site-main { padding: 2rem 1.25rem; padding-bottom: calc(2rem + 64px); }
    .breadcrumb { padding: 0 1.25rem; }

    /* Pousse le contenu au-dessus de la barre CTA fixe */
    .site-footer { margin-bottom: 64px; }
    .home-hero, .page-hero { margin-top: 0; }
}

@media (max-width: 480px) {
    .header-inner { padding: 0 .75rem; }
    .post-list-item { flex-direction: column; gap: .75rem; }
    .post-list-date { display: none; }
    .domains-grid { grid-template-columns: 1fr !important; }
    .footer-top { grid-template-columns: 1fr !important; }
    .site-main { padding: 1.5rem 1rem; }
    .page-hero { padding: 2rem 1rem; }
    .home-intro-grid { gap: 1.5rem; }
}

/* ── Print ── */
@media print {
    .site-header, .site-footer, .sidebar, .article-actions, .reading-progress, .breadcrumb-wrap, .mobile-cta-bar { display: none !important; }
    body { background: #fff; color: #000; font-size: 11pt; }
    a { color: #000; text-decoration: underline; }
    .article-body h2 { border-bottom: 1pt solid #000; }
}

/* ── Pagination ── */
.pagination { display: flex; flex-wrap: wrap; gap: .4rem; justify-content: center; margin: 2rem 0; }
.page-btn { display: inline-flex; align-items: center; justify-content: center; min-width: 2.2rem; height: 2.2rem; padding: 0 .6rem; border-radius: 4px; border: 1px solid var(--blue); background: transparent; color: var(--blue); text-decoration: none; font-size: .875rem; transition: background .15s, color .15s; }
.page-btn:hover { background: var(--blue); color: #fff; }
.page-btn.active { background: var(--blue); color: #fff; font-weight: 700; pointer-events: none; }

/* ── Blocs éditoriaux catégorie ── */
.cat-editorial { background: var(--blue-pale); border-left: 3px solid var(--blue); border-radius: 0 8px 8px 0; padding: 1.5rem 1.75rem; margin: 1.75rem 0; line-height: 1.8; }
.cat-editorial h2, .cat-editorial h3 { color: var(--navy); font-family: var(--heading); }
.cat-editorial-bottom { background: var(--bg-soft); border-left-color: var(--navy); }

/* ── Bouton « Revenir en haut » ── */
.back-to-top { display: none; }
@media (max-width: 900px) {
    .back-to-top { position: fixed; right: 16px; bottom: 84px; z-index: 599; width: 44px; height: 44px; padding: 0; border: none; border-radius: 50%; background: var(--navy); color: #fff; box-shadow: 0 4px 14px rgba(0,0,0,.28); display: flex; align-items: center; justify-content: center; cursor: pointer; opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .2s ease, transform .2s ease, visibility .2s; }
    .back-to-top.show { opacity: 1; visibility: visible; transform: none; }
    .back-to-top svg { width: 22px; height: 22px; }
    .back-to-top:active { transform: scale(.94); }
}

/* ── Grille "annonces" (pages enfants d'une page parente) ── */
.child-pages-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.5rem; margin-top: 2rem; align-items: start; }
.child-page-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s; text-decoration: none; color: inherit; display: flex; flex-direction: column; }
.child-page-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.child-page-card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.child-page-card-body { padding: 1.1rem 1.25rem; }
.child-page-card h3 { font-family: var(--heading); font-size: .98rem; color: var(--navy); font-weight: 600; line-height: 1.4; }

/* ── Grille annonces pharmacie : 3 colonnes fixes (fidèle au site d'origine) ── */
.pharmacies-grid-3col { grid-template-columns: repeat(3, 1fr) !important; }
@media (max-width: 980px) { .pharmacies-grid-3col { grid-template-columns: repeat(2, 1fr) !important; } }
@media (max-width: 640px) { .pharmacies-grid-3col { grid-template-columns: 1fr !important; } }

.pharmacy-card { text-decoration: none; }
.pharmacy-card-media { position: relative; display: block; }
.pharmacy-card-media img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; }
/* Pastilles empilées en haut à droite de la vignette. Le conteneur porte le
   positionnement : les pastilles se suivent donc sans espace mort, quelle que
   soit la combinaison (le site d'origine les plaçait à des `top` fixes, ce qui
   laissait un trou sur une officine en exclusivité mais sans coup de cœur). */
.pharmacy-card-badges { position: absolute; top: .75rem; right: .75rem; display: flex; flex-direction: column; align-items: flex-end; gap: .35rem; }
.pharmacy-card-badge { background: var(--green); color: #fff; font-size: .72rem; font-weight: 700; padding: .3rem .7rem; border-radius: 999px; letter-spacing: .01em; }
/* Couleurs reprises du site actuel : #083683 (11,3:1 sur blanc) et #993e8c
   (6,1:1) — toutes deux conformes AA. */
.pharmacy-card-badge--coup { background: #083683; }
.pharmacy-card-badge--excl { background: #993e8c; }
.pharmacy-card-title-link { text-decoration: none; color: inherit; }
.pharmacy-card-title-link h3 { font-size: 1.02rem; }
.pharmacy-card-divider { width: 34px; height: 3px; background: var(--green); margin: .55rem 0 .75rem; border-radius: 2px; }
.pharmacy-card-excerpt { font-size: .86rem; color: var(--text-muted); line-height: 1.6; margin-bottom: 1rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.pharmacy-card-figures { display: flex; justify-content: space-between; align-items: center; font-size: .82rem; color: var(--text); font-weight: 600; border-top: 1px solid var(--border); padding: .75rem 0; margin-bottom: .9rem; }
.pharmacy-card-btn { display: block; text-align: center; width: 100%; }

/* ── Module "Trouver une officine" sur /acheter-une-pharmacie/ (3 colonnes) ── */
.annonces-finder { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 1.75rem 2rem; margin: 1.5rem 0 2.5rem; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.75rem; }
.annonces-finder-col h4 { font-family: var(--heading); font-size: .92rem; font-weight: 700; color: var(--navy); margin-bottom: .55rem; }
.annonces-finder-divider { width: 30px; height: 3px; background: var(--green); border-radius: 2px; margin-bottom: .85rem; }
.annonces-finder-col select { width: 100%; border: 1px solid var(--border-strong); border-radius: var(--radius); padding: .6rem .75rem; font-size: .88rem; font-family: var(--sans); color: var(--text); background: var(--white); cursor: pointer; }
.annonces-finder-col select:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-pale); }
/* Colonne « Localisation » : les deux menus (département / ville) partagent la
   largeur de la colonne, sans l'élargir. Même contrainte min-width:0 que sur le
   widget d'accueil, sinon les noms longs forcent un débordement. */
.annonces-finder-pair { display: flex; gap: .5rem; }
.annonces-finder-pair select,
.annonces-finder-pair .qs-select { flex: 1 1 0; min-width: 0; text-overflow: ellipsis; }

/* ── Menus déroulants personnalisés (select-dropdown.js) ──────────────────────
   Le sens d'ouverture d'un <select> natif n'est pas contrôlable : le navigateur
   bascule la liste vers le haut quand la place manque en dessous. D'où ce
   composant, dont la liste est positionnée en absolu sous le champ — donc
   toujours vers le bas, quelle que soit la position dans la page.
   Le <select> natif reste présent dans le DOM (source de vérité) mais masqué. */
.qs-select { position: relative; }
.qs-select-natif { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.qs-select-btn {
    width: 100%; text-align: left; cursor: pointer; font-family: var(--sans);
    display: flex; align-items: center; justify-content: space-between; gap: .5rem;
}
.qs-select-txt { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* Chevron dessiné en CSS : il pivote à l'ouverture, ce qui signale l'état
   sans dépendre d'une image. */
.qs-select-btn::after {
    content: ''; flex: 0 0 auto; width: .5rem; height: .5rem;
    border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
    transform: rotate(45deg) translate(-2px, -2px); transition: transform .15s;
}
.qs-select.is-ouvert .qs-select-btn::after { transform: rotate(-135deg) translate(-3px, -3px); }
.qs-select-list {
    position: absolute; top: calc(100% + 4px); left: 0; right: 0; z-index: 40;
    margin: 0; padding: .3rem; list-style: none;
    background: var(--white); color: var(--text);
    border: 1px solid var(--border-strong); border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    max-height: 17rem; overflow-y: auto;   /* liste longue = défilement, jamais de bascule */
}
.qs-select-list:focus { outline: none; }
.qs-select-opt {
    padding: .45rem .6rem; border-radius: 4px; cursor: pointer;
    font-size: .88rem; line-height: 1.35;
}
.qs-select-opt:hover,
.qs-select-opt.is-actif { background: var(--blue-pale); }
.qs-select-opt[aria-selected="true"] { font-weight: 700; color: var(--navy); }

/* Reprise de l'habillage des champs de la page annonces */
.annonces-finder-col .qs-select-btn {
    border: 1px solid var(--border-strong); border-radius: var(--radius);
    padding: .6rem .75rem; font-size: .88rem; color: var(--text); background: var(--white);
}
.annonces-finder-col .qs-select.is-ouvert .qs-select-btn { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-pale); }

/* Reprise de l'habillage du widget d'accueil, sur fond bleu foncé.
   La liste, elle, reste sur fond blanc pour rester lisible. */
.finder-widget .qs-select { margin-bottom: .85rem; }
.finder-pair .qs-select { margin-bottom: .85rem; }
.finder-widget .qs-select-btn {
    padding: .7rem .9rem; border: 1px solid rgba(255,255,255,.25); border-radius: 6px;
    background: rgba(255,255,255,.07); color: rgba(255,255,255,.92); font-size: .88rem;
}
.finder-widget .qs-select.is-ouvert .qs-select-btn { border-color: rgba(255,255,255,.5); }
@media (max-width: 700px) { .annonces-finder { grid-template-columns: 1fr; padding: 1.5rem; } }

/* ── Ligne d'information statique sous les 3 menus déroulants de filtre ── */
.annonces-live-note { margin: -1.25rem 0 1.75rem; font-size: .88rem; color: var(--text-muted); font-style: italic; }
