/*
Theme Name: Gracia
Theme URI: https://crystal-solutions.cm
Author: Crystal Solutions
Description: Thème de la Polyclinique Gracia (Bertoua) — sans extension, polices et icônes servies par le thème, coordonnées dans Apparence › Personnaliser.
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 8.1
Text Domain: gracia
*/

/* ═════════════════════════════════════════════════════════════════════
   Polices (servies par le thème — licence SIL OFL dans assets/fonts)
   ═════════════════════════════════════════════════════════════════════ */
@font-face {
    font-family: "Lora";
    src: url("assets/fonts/lora.woff2") format("woff2");
    font-weight: 400 700;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Mulish";
    src: url("assets/fonts/mulish.woff2") format("woff2");
    font-weight: 400 800;
    font-style: normal;
    font-display: swap;
}

/* ═════════════════════════════════════════════════════════════════════
   Jetons
   Le bleu et le rouge viennent du logo de Gracia. Le bleu du logo (#5a9bcd)
   est trop clair pour du texte : il sert aux ornements, et un bleu nuit de la
   même famille porte les textes et les boutons (contraste > 9:1 sur blanc).
   Le rouge reste rare : la croix, et ce qui est urgent.
   ═════════════════════════════════════════════════════════════════════ */
:root {
    --navy: #17456e;
    --navy-deep: #0f3354;
    --blue: #5a9bcd;
    --sky: #eaf3fa;
    --tint: #f5f8fb;
    --red: #c8202b;
    --red-soft: #fdf0f0;
    --ink: #1b2733;
    --muted: #4b5a68;
    --line: #dbe5ee;
    --white: #ffffff;

    --font-title: "Lora", Georgia, "Times New Roman", serif;
    --font-body: "Mulish", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

    --radius: 14px;
    --radius-lg: 22px;
    --shadow: 0 1px 2px rgba(15, 51, 84, .06), 0 8px 24px rgba(15, 51, 84, .07);
    --wrap: 1180px;
    --gutter: clamp(1.1rem, 4vw, 2rem);
    --bar-h: 0px;
}

/* ═════════════════════════════════════════════════════════════════════
   Base
   ═════════════════════════════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
    margin: 0;
    padding-bottom: var(--bar-h);
    background: var(--white);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 1.0625rem;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

img, svg, video, iframe { max-width: 100%; }
img { height: auto; display: block; }

h1, h2, h3, h4 {
    font-family: var(--font-title);
    font-weight: 600;
    line-height: 1.18;
    color: var(--navy-deep);
    margin: 0 0 .6em;
    letter-spacing: -.01em;
    text-wrap: balance;
}
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.65rem, 3.4vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.4rem); }
h4 { font-size: 1.1rem; }

p { margin: 0 0 1em; }
a { color: var(--navy); text-underline-offset: .2em; }
a:hover { color: var(--navy-deep); }

:where(a, button, input, iframe):focus-visible {
    outline: 3px solid var(--blue);
    outline-offset: 3px;
    border-radius: 4px;
}

.lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--muted); }
.mb-0 { margin-bottom: 0; }
.text-center { text-align: center; }

.skip-link {
    position: absolute; left: 1rem; top: -4rem; z-index: 100;
    background: var(--navy); color: var(--white); padding: .6rem 1rem; border-radius: 8px;
}
.skip-link:focus { top: 1rem; color: var(--white); }

.container { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.container--wide { max-width: 1320px; }
.container--narrow { max-width: 780px; }

.eyebrow {
    display: inline-flex; align-items: center; gap: .55rem;
    margin-bottom: .9rem;
    color: var(--navy);
    font-size: .8125rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase;
}
.eyebrow::before {
    content: ""; width: .55rem; height: .55rem; border-radius: 2px;
    background: var(--red);
}

/* ═════════════════════════════════════════════════════════════════════
   Boutons
   ═════════════════════════════════════════════════════════════════════ */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
    min-height: 48px;
    padding: .7rem 1.25rem;
    border: 2px solid transparent; border-radius: 999px;
    font: 700 .975rem/1.2 var(--font-body);
    text-decoration: none; white-space: nowrap;
    cursor: pointer;
    transition: background-color .15s ease, color .15s ease, border-color .15s ease, transform .1s ease;
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 1.2em; height: 1.2em; flex: none; }
.btn--lg { min-height: 54px; padding-inline: 1.5rem; font-size: 1.025rem; }
.btn--sm { min-height: 40px; padding: .45rem .9rem; font-size: .9rem; }
.btn--primary { background: var(--navy); color: var(--white); }
.btn--primary:hover { background: var(--navy-deep); color: var(--white); }
.btn--ghost { background: transparent; color: var(--navy); border-color: #b7cde0; }
.btn--ghost:hover { border-color: var(--navy); color: var(--navy-deep); }
.btn--light { background: var(--white); color: var(--navy-deep); }
.btn--light:hover { background: var(--sky); color: var(--navy-deep); }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; }

.link-arrow {
    display: inline-flex; align-items: center; gap: .4rem;
    font-weight: 800; color: var(--navy); text-decoration: none;
}
.link-arrow svg { width: 1.1em; height: 1.1em; transition: transform .15s ease; }
.link-arrow:hover svg, .card:hover .link-arrow svg { transform: translateX(3px); }

/* ═════════════════════════════════════════════════════════════════════
   Bandeau « à compléter » (administrateurs seulement)
   ═════════════════════════════════════════════════════════════════════ */
.admin-todo {
    background: #fff6d6; border-bottom: 1px solid #e8d48a;
    padding: .65rem 0; font-size: .9rem; color: #4d3d00;
}
.admin-todo a { font-weight: 800; color: #4d3d00; }
.admin-todo__note { opacity: .75; }

/* ═════════════════════════════════════════════════════════════════════
   Barre du haut et en-tête
   ═════════════════════════════════════════════════════════════════════ */
.topbar { background: var(--navy-deep); color: #dfeaf4; font-size: .875rem; }
.topbar__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .35rem 1.5rem; padding-block: .5rem; }
.topbar__item, .topbar__urgent { display: inline-flex; align-items: center; gap: .45rem; }
.topbar svg { width: 1.05em; height: 1.05em; }
.topbar__urgent { color: var(--white); font-weight: 800; text-decoration: none; }
.topbar__urgent svg { color: #ff9a9f; }
a.topbar__urgent:hover { color: var(--white); text-decoration: underline; }

.site-header {
    position: sticky; top: 0; z-index: 50;
    /* Fond opaque, sans backdrop-filter : ce filtre fait de l'en-tête le cadre des
       éléments `position: fixed` qu'il contient, et le menu plein écran du téléphone
       restait enfermé dans la hauteur de l'en-tête. */
    background: var(--white);
    border-bottom: 1px solid var(--line);
}
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 0; } }

.site-header__inner { display: flex; align-items: center; gap: 1.5rem; min-height: 76px; }

.brand { display: inline-flex; align-items: center; gap: .75rem; text-decoration: none; color: inherit; margin-right: auto; }
.brand__mark { width: 42px; height: 42px; flex: none; }
.brand__text { display: flex; flex-direction: column; line-height: 1.05; }
.brand__name { font-family: var(--font-title); font-size: 1.6rem; font-weight: 600; color: var(--navy); letter-spacing: -.01em; }
.brand__tag { font-size: .75rem; font-weight: 700; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; margin-top: .2rem; }

.nav ul { display: flex; gap: .25rem; list-style: none; margin: 0; padding: 0; }
.nav ul a {
    display: block; padding: .55rem .8rem; border-radius: 8px;
    color: var(--ink); font-weight: 700; font-size: .95rem; text-decoration: none; white-space: nowrap;
}
.nav ul a:hover { background: var(--sky); color: var(--navy-deep); }
.nav ul .current-menu-item > a, .nav ul .current_page_item > a { color: var(--navy); box-shadow: inset 0 -2px 0 var(--red); border-radius: 0; }
.nav__actions, .nav-close { display: none; }
.header-actions { display: flex; align-items: center; gap: .6rem; }
.header-actions .btn { white-space: nowrap; }
.brand__tag { white-space: nowrap; }
/* Entre la tablette et le grand écran, le téléphone de l'en-tête se réduit à son icône. */
@media (max-width: 1319px) {
    .header-actions .btn--tel { padding-inline: .8rem; }
    .site-header__inner { gap: 1rem; }
    .nav ul a { padding-inline: .6rem; }
    .header-actions .btn--tel span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

/* Sélecteur de langue FR · EN */
.lang-switch { display: inline-flex; align-items: center; gap: .15rem; padding: .2rem; border: 1px solid var(--line); border-radius: 999px; font-size: .8rem; font-weight: 800; letter-spacing: .04em; }
.lang-switch__item { display: grid; place-items: center; min-width: 2.3rem; min-height: 2rem; padding: 0 .5rem; border-radius: 999px; color: var(--navy); text-decoration: none; }
a.lang-switch__item:hover { background: var(--sky); color: var(--navy-deep); }
.lang-switch__item.is-current { background: var(--navy); color: var(--white); }
.lang-switch--mobile { display: none; }
@media (max-width: 1100px) { .lang-switch--mobile { display: inline-flex; } .lang-switch__item { min-height: 2.4rem; min-width: 2.6rem; } }

/* Petits téléphones : logo, FR · EN et bouton du menu doivent tenir sur une ligne. */
@media (max-width: 480px) {
    .site-header__inner { gap: .5rem; }
    .brand { gap: .55rem; }
    .brand__mark { width: 36px; height: 36px; }
    .brand__name { font-size: 1.35rem; }
    .brand__tag { font-size: .62rem; letter-spacing: .04em; }
    .lang-switch__item { min-width: 2.1rem; min-height: 2.1rem; padding: 0 .35rem; }
    .nav-toggle { width: 44px; height: 44px; }
}

.nav-toggle {
    display: none;
    width: 48px; height: 48px; border: 0; border-radius: 12px;
    background: var(--sky); color: var(--navy); cursor: pointer;
    align-items: center; justify-content: center;
}
.nav-toggle svg { width: 26px; height: 26px; }

@media (max-width: 1100px) {
    .nav-toggle { display: inline-flex; }
    .header-actions { display: none; }
    .nav {
        position: fixed; inset: 0; z-index: 90;
        display: flex; flex-direction: column; gap: 1.5rem;
        padding: 1.25rem var(--gutter) 2rem;
        background: var(--white);
        overflow-y: auto;
        visibility: hidden; opacity: 0; transform: translateY(-8px);
        transition: opacity .18s ease, transform .18s ease, visibility 0s linear .18s;
    }
    .nav[data-open="true"] { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
    .nav-close { display: inline-flex; align-self: flex-end; }
    .nav ul { flex-direction: column; gap: 0; }
    .nav ul a { padding: 1rem .25rem; font-size: 1.2rem; border-bottom: 1px solid var(--line); border-radius: 0; }
    .nav ul .current-menu-item > a { box-shadow: none; color: var(--red); }
    .nav__actions { display: flex; flex-direction: column; gap: .75rem; margin-top: auto; }
    .nav__actions .btn { width: 100%; min-height: 54px; }
}
@media (prefers-reduced-motion: reduce) { .nav { transition: none; } }

/* ═════════════════════════════════════════════════════════════════════
   Sections
   ═════════════════════════════════════════════════════════════════════ */
.section { padding-block: clamp(3.25rem, 7vw, 5.5rem); }
.section--tint { background: var(--tint); }
.section--sky { background: var(--sky); }
.section-head { max-width: 720px; margin-bottom: clamp(1.75rem, 4vw, 2.75rem); }
.section-head h2 { margin-bottom: .45em; }
.section-head .lead { margin: 0; }
.section-head--split { max-width: none; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1.25rem; }
.section-head--split h2 { margin: 0; }
.section-more { margin: 2rem 0 0; }

.grid { display: grid; gap: clamp(1rem, 2.2vw, 1.5rem); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }

/* ═════════════════════════════════════════════════════════════════════
   Héros
   ═════════════════════════════════════════════════════════════════════ */
.hero {
    background:
        radial-gradient(60rem 30rem at 100% 0%, rgba(90, 155, 205, .18), transparent 60%),
        linear-gradient(180deg, var(--sky) 0%, var(--white) 100%);
    padding-block: clamp(2.25rem, 6vw, 5rem) clamp(2.5rem, 6vw, 4.5rem);
}
.hero__inner { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, .65fr); align-items: center; gap: clamp(2rem, 5vw, 4rem); }
.hero h1 { font-size: clamp(2.2rem, 5.2vw, 3.6rem); margin-bottom: .45em; }
.hero h1 em { font-style: normal; color: var(--navy); background: linear-gradient(transparent 68%, rgba(90, 155, 205, .3) 68%); }
.hero__lead { font-size: clamp(1.05rem, 1.7vw, 1.22rem); color: var(--muted); max-width: 36rem; margin-bottom: 1.75rem; }
.hero__facts { list-style: none; margin: 1.75rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .6rem 1.5rem; color: var(--muted); font-weight: 700; font-size: .95rem; }
.hero__facts li { display: inline-flex; align-items: center; gap: .45rem; }
.hero__facts svg { width: 1.15em; height: 1.15em; color: var(--navy); }

.hero__art {
    aspect-ratio: 21 / 22;
    border-radius: var(--radius-lg);
    background: var(--white);
    box-shadow: var(--shadow);
    border: 1px solid var(--line);
    display: grid; place-items: center;
}
.hero__art svg { width: 88%; height: auto; }
.hero__photo img { width: 100%; aspect-ratio: 10 / 11; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow); }

@media (max-width: 860px) {
    .hero__inner { grid-template-columns: 1fr; }
    .hero__visual { order: -1; }
    .hero__art { aspect-ratio: 16 / 7; }
    .hero__art svg { width: auto; height: 92%; }
    .hero__photo img { aspect-ratio: 16 / 10; }
    .hero .btn-row .btn { flex: 1 1 100%; }
}

/* ═════════════════════════════════════════════════════════════════════
   Motifs de consultation ORL
   ═════════════════════════════════════════════════════════════════════ */
.motifs { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: clamp(1rem, 2vw, 1.25rem); }
.motif { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.35rem 1.35rem 1.1rem; background: var(--white); }
.motif h3 { font-size: 1.2rem; margin-bottom: .7rem; }
.motif ul { list-style: none; margin: 0; padding: 0; }
.motif li { display: flex; gap: .55rem; align-items: flex-start; padding: .3rem 0; font-size: .98rem; }
.motif li svg { width: 1.05em; height: 1.05em; margin-top: .3em; flex: none; color: var(--blue); stroke-width: 2.4; }

.alert-card {
    display: flex; gap: .9rem; align-items: flex-start;
    margin-top: clamp(1.25rem, 3vw, 2rem);
    padding: 1.1rem 1.25rem;
    border-radius: var(--radius);
    background: var(--red-soft);
    border-left: 4px solid var(--red);
}
.alert-card > svg { width: 1.6rem; height: 1.6rem; flex: none; color: var(--red); }
.alert-card strong { display: block; color: #7d1219; }
.alert-card a { display: inline-block; margin-top: .35rem; font-weight: 800; color: #7d1219; }

/* ═════════════════════════════════════════════════════════════════════
   Cartes de soins
   ═════════════════════════════════════════════════════════════════════ */
.card {
    position: relative;
    display: flex; flex-direction: column;
    border: 1px solid var(--line); border-radius: var(--radius-lg);
    background: var(--white);
    padding: clamp(1.4rem, 3vw, 2rem);
    transition: border-color .15s ease, box-shadow .15s ease;
}
.card:hover { border-color: #b7cde0; box-shadow: var(--shadow); }
.card p { color: var(--muted); }
.card .link-arrow { margin-top: auto; }
.card__icon {
    width: 52px; height: 52px; border-radius: 14px;
    display: grid; place-items: center;
    background: var(--sky); color: var(--navy);
    margin-bottom: 1.1rem;
}
.card__icon svg { width: 28px; height: 28px; }
/* Même taille que la carte soit titrée en h2 (page Nos services) ou en h3 (accueil) ;
   un mot long (« Accompagnement », « hospitalisation ») passe à la ligne au lieu de déborder. */
.card__title { font-size: clamp(1.2rem, 2vw, 1.4rem); overflow-wrap: break-word; hyphens: auto; }
.card__title a { color: inherit; text-decoration: none; }
.card__title a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }  /* toute la carte est cliquable */
.card--feature { background: var(--navy); border-color: var(--navy); }
.card--feature h3, .card--feature .card__title a { color: var(--white); }
.card--feature p { color: #d6e4f1; }
.card--feature .card__icon { background: rgba(255, 255, 255, .12); color: var(--white); }
.card--feature .link-arrow { color: var(--white); }

/* ═════════════════════════════════════════════════════════════════════
   Étapes de la visite
   ═════════════════════════════════════════════════════════════════════ */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: clamp(1rem, 2vw, 1.5rem); counter-reset: step; }
.step { position: relative; padding-top: 1rem; border-top: 2px solid var(--line); }
.step__num {
    display: inline-grid; place-items: center;
    width: 2.1rem; height: 2.1rem; border-radius: 50%;
    background: var(--navy); color: var(--white);
    font-weight: 800; margin-bottom: .8rem;
}
.step h3 { font-size: 1.2rem; margin-bottom: .4rem; }
.step p { color: var(--muted); margin: 0; font-size: .98rem; }

.bring { margin-top: clamp(2rem, 4vw, 3rem); padding: clamp(1.25rem, 3vw, 1.75rem); border-radius: var(--radius-lg); background: var(--sky); }
.bring h3 { font-size: 1.2rem; }
.bring ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .75rem 2rem; }
.bring li { display: inline-flex; align-items: center; gap: .55rem; font-weight: 700; }
.bring svg { width: 1.3em; height: 1.3em; color: var(--navy); }

/* ═════════════════════════════════════════════════════════════════════
   Venir à la clinique
   ═════════════════════════════════════════════════════════════════════ */
.visit { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
.visit:not(:has(.visit__media)) { grid-template-columns: minmax(0, 720px); }
.info-list { list-style: none; margin: 0 0 1.75rem; padding: 0; display: grid; gap: 1.1rem; }
.info-list li { display: flex; gap: .9rem; align-items: flex-start; }
.info-list li > svg { width: 1.45rem; height: 1.45rem; flex: none; margin-top: .15rem; color: var(--navy); }
.info-list strong { display: block; font-size: .8125rem; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.info-list a { font-weight: 800; font-size: 1.1rem; }
.info-list__hint { color: var(--muted); }
.visit__media { display: grid; gap: 1rem; }
.visit__facade { margin: 0; position: relative; }
.visit__facade img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius-lg); }
.visit__facade figcaption { position: absolute; left: .75rem; bottom: .75rem; background: rgba(15, 51, 84, .85); color: var(--white); font-size: .85rem; font-weight: 700; padding: .25rem .7rem; border-radius: 999px; }
.visit__map { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); background: var(--white); }
.visit__map iframe { display: block; width: 100%; height: 340px; border: 0; }
@media (max-width: 860px) { .visit { grid-template-columns: 1fr; } .visit__map iframe { height: 280px; } }

/* ═════════════════════════════════════════════════════════════════════
   Bandeau d'appel
   ═════════════════════════════════════════════════════════════════════ */
.cta-band { border-radius: var(--radius-lg); background: var(--navy); color: #dce8f3; overflow: hidden; position: relative; }
.cta-band::after {
    content: ""; position: absolute; right: -3rem; top: -3rem; width: 14rem; height: 14rem;
    border: 2px solid rgba(90, 155, 205, .35); border-radius: 50%;
    box-shadow: 0 0 0 2.2rem rgba(90, 155, 205, .08);
    pointer-events: none;
}
.cta-band__inner { position: relative; z-index: 1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem 2.5rem; padding: clamp(1.75rem, 4vw, 3rem); }
.cta-band h2 { color: var(--white); margin-bottom: .35em; }
.cta-band .lead { color: #cfe0ef; margin: 0; max-width: 36rem; }

/* ═════════════════════════════════════════════════════════════════════
   Pages intérieures et articles
   ═════════════════════════════════════════════════════════════════════ */
.page-hero { background: linear-gradient(180deg, var(--sky), var(--white)); padding-block: clamp(2.25rem, 5vw, 3.75rem) clamp(1.25rem, 3vw, 2rem); }
.page-hero h1 { margin-bottom: .3em; }
.page-hero__lead { max-width: 44rem; margin: 0; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: .45rem; font-size: .9rem; color: var(--muted); margin-bottom: 1rem; }
.breadcrumb a { color: var(--muted); }
.page-figure { margin: 0 0 2.5rem; }
.page-figure img { border-radius: var(--radius-lg); }

.entry-meta { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; margin-top: 1rem; color: var(--muted); font-size: .92rem; }
.entry-meta span { display: inline-flex; align-items: center; gap: .4rem; }
.entry-meta svg { width: 1.05em; height: 1.05em; }

.entry-content { font-size: 1.075rem; }
.entry-content > * + * { margin-top: 1.1em; }
.entry-content h2 { font-size: clamp(1.45rem, 2.8vw, 1.85rem); margin-top: 2em; }
.entry-content h3 { margin-top: 1.6em; }
.entry-content ul, .entry-content ol { padding-left: 1.3rem; }
.entry-content li + li { margin-top: .35em; }
.entry-content li::marker { color: var(--blue); }
.entry-content img, .entry-content video, .entry-content iframe { border-radius: var(--radius); }
.entry-content blockquote { margin: 1.75em 0; padding: .25rem 0 .25rem 1.25rem; border-left: 4px solid var(--blue); font-family: var(--font-title); font-size: 1.2rem; }
.entry-content .wp-block-embed, .entry-content figure { margin-inline: 0; }
.entry-content figcaption { color: var(--muted); font-size: .9rem; margin-top: .5rem; }
.entry-content .is-style-encadre, .entry-content .gr-box {
    padding: 1.1rem 1.25rem; border-radius: var(--radius); background: var(--sky);
}
.entry-content .gr-box--alert { background: var(--red-soft); border-left: 4px solid var(--red); }

.medical-notice { display: flex; gap: .85rem; margin-top: 2.5rem; padding: 1rem 1.2rem; border-radius: var(--radius); background: var(--tint); border: 1px solid var(--line); font-size: .95rem; color: var(--muted); }
.medical-notice svg { width: 1.4rem; height: 1.4rem; flex: none; color: var(--navy); }
.medical-notice p { margin: 0; }

.tag-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.tag-list li, .tag-list a { display: inline-block; padding: .25rem .75rem; border-radius: 999px; background: var(--sky); color: var(--navy); font-size: .875rem; font-weight: 700; text-decoration: none; }

/* Vignettes d'articles */
.post-card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: var(--white); }
.post-card__media { aspect-ratio: 16 / 10; background: linear-gradient(135deg, var(--sky), #d4e6f5); display: grid; place-items: center; }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; }
.post-card__glyph svg { width: 3rem; height: 3rem; color: var(--navy); opacity: .5; }
.post-card__body { display: flex; flex-direction: column; flex: 1; padding: 1.3rem 1.4rem 1.5rem; }
.post-card__meta { display: flex; flex-wrap: wrap; gap: .3rem .9rem; font-size: .85rem; color: var(--muted); margin-bottom: .6rem; }
.post-card__cat { font-weight: 800; text-decoration: none; }
.post-card h3 { font-size: 1.22rem; }
.post-card h3 a { color: inherit; text-decoration: none; }
.post-card h3 a:hover { color: var(--navy); text-decoration: underline; }
.post-card p { color: var(--muted); font-size: .98rem; }
.post-card .link-arrow { margin-top: auto; }

.pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem; margin-top: 2.5rem; }
.pagination .page-numbers { display: inline-grid; place-items: center; min-width: 44px; min-height: 44px; padding: 0 .8rem; border-radius: 999px; border: 1px solid var(--line); text-decoration: none; font-weight: 700; }
.pagination .current { background: var(--navy); color: var(--white); border-color: var(--navy); }

/* Partage */
.share { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.share__label { display: block; font-weight: 800; margin-bottom: .75rem; }
.share__buttons { display: flex; flex-wrap: wrap; gap: .5rem; }
.share__btn {
    display: inline-flex; align-items: center; gap: .45rem; min-height: 44px; padding: .45rem .95rem;
    border: 1px solid var(--line); border-radius: 999px; background: var(--white);
    color: var(--ink); font: 700 .92rem var(--font-body); text-decoration: none; cursor: pointer;
}
.share__btn svg { width: 1.15em; height: 1.15em; }
.share__btn:hover { border-color: var(--navy); }
.share__btn--whatsapp { background: #1f8f4e; border-color: #1f8f4e; color: var(--white); }
.share__btn--x { background: #0f1419; border-color: #0f1419; color: var(--white); }
.share__btn--x:hover { background: #000; color: var(--white); }
.share__btn[hidden] { display: none; }
.share__btn--whatsapp:hover { background: #18773f; color: var(--white); }
.share__copy[data-copied] { border-color: var(--navy); color: var(--navy); }

/* Sept soins : 4 + 3 sur grand écran, 2 par ligne sur tablette, 1 sur téléphone. */
.grid--services { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1100px) { .grid--services { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .grid--services { grid-template-columns: 1fr; } }

/* ═════════════════════════════════════════════════════════════════════
   Identité chrétienne — bandeau de l'accueil
   ═════════════════════════════════════════════════════════════════════ */
.eyebrow--light { color: #a9c9e6; }
.faith { background: var(--navy-deep); color: #d6e4f1; padding-block: clamp(3.5rem, 8vw, 6rem); position: relative; overflow: hidden; }
.faith__inner { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(1.5rem, 5vw, 4rem); align-items: start; }
.faith__mark {
    display: grid; place-items: center;
    width: clamp(5rem, 11vw, 8.5rem); aspect-ratio: 1; border-radius: 50%;
    border: 1.5px solid rgba(169, 201, 230, .35);
    box-shadow: 0 0 0 14px rgba(169, 201, 230, .06), 0 0 0 30px rgba(169, 201, 230, .03);
    color: var(--white);
}
.faith__mark svg { width: 46%; height: 46%; stroke-width: 1.6; }
.faith h2 { color: var(--white); max-width: 22ch; }
.faith__body { max-width: 760px; }
.faith__body > p { font-size: 1.05rem; line-height: 1.7; }
.faith__verse { margin: 1.5rem 0 1.75rem; padding: 0 0 0 1.25rem; border-left: 3px solid var(--red); }
.faith__verse p { margin: 0 0 .5rem; font-family: var(--font-title); font-style: italic; font-size: clamp(1.25rem, 2.4vw, 1.6rem); line-height: 1.45; color: var(--white); }
.faith__verse cite { font-style: normal; font-weight: 800; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; color: #a9c9e6; }
.faith .btn { margin-top: .5rem; }
@media (max-width: 700px) {
    .faith__inner { grid-template-columns: 1fr; }
    .faith__mark { width: 4.5rem; box-shadow: 0 0 0 10px rgba(169, 201, 230, .06); }
}

.faith__values { list-style: none; margin: 0 0 1.75rem; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.faith__values li { padding: .4rem .85rem; border-radius: 999px; border: 1px solid rgba(169, 201, 230, .35); color: var(--white); font-weight: 700; font-size: .9rem; }
.services-intro { max-width: 760px; margin-bottom: clamp(1.75rem, 4vw, 2.5rem); font-size: 1.1rem; }

/* Les sept valeurs dans « Qui sommes-nous » : numérotées, une carte chacune. */
.entry-content ol.gr-values { list-style: none; counter-reset: v; padding: 0; display: grid; gap: .9rem; }
.entry-content ol.gr-values li { counter-increment: v; position: relative; margin: 0; padding: 1.1rem 1.2rem 1.1rem 3.6rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.entry-content ol.gr-values li::before {
    content: counter(v); position: absolute; left: 1.1rem; top: 1.05rem;
    width: 1.75rem; height: 1.75rem; border-radius: 50%; display: grid; place-items: center;
    background: var(--navy); color: var(--white); font-weight: 800; font-size: .85rem;
}
.entry-content ol.gr-values strong { display: block; margin-bottom: .2rem; font-family: var(--font-title); font-size: 1.1rem; color: var(--navy-deep); }

/* Les fondateurs (Qui sommes-nous) */
.founders { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1.25rem, 3vw, 2rem); }
@media (max-width: 860px) { .founders { grid-template-columns: 1fr; } }
.founder { display: grid; grid-template-columns: minmax(0, 200px) minmax(0, 1fr); gap: 1.5rem; align-items: start; padding: clamp(1.25rem, 3vw, 1.75rem); border-radius: var(--radius-lg); background: var(--white); border: 1px solid var(--line); }
@media (max-width: 520px) { .founder { grid-template-columns: 1fr; } .founder__photo { max-width: 240px; } }
.founder__photo { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); }
.founder__name { margin: 0 0 .25rem; font-size: 1.35rem; }
.founder__role { margin: 0 0 1rem; font-weight: 800; font-size: .92rem; color: var(--red); }
.founder__body p:not(.founder__role) { color: var(--muted); }
.founder__body p:last-child { margin-bottom: 0; }
.founders__more { margin: 1.75rem 0 0; text-align: center; }

/* Notre équipe : un groupe par rôle, une carte par personne ; initiales faute de photo. */
.team-group + .team-group { margin-top: clamp(2.25rem, 5vw, 3.25rem); }
.team-group__title { margin: 0 0 1.25rem; font-size: clamp(1.35rem, 2.4vw, 1.7rem); }
.team { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: clamp(1rem, 2.5vw, 1.5rem); list-style: none; margin: 0; padding: 0; }
.member { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 1rem; align-items: start; padding: 1.25rem; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--white); }
.member__avatar { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; }
.member__avatar--initials { display: grid; place-items: center; background: var(--sky); color: var(--navy); font-family: var(--font-title); font-weight: 700; font-size: 1.3rem; letter-spacing: .02em; }
.member__name { margin: 0 0 .2rem; font-size: 1.12rem; overflow-wrap: break-word; }
.member__role { margin: 0 0 .6rem; font-weight: 800; font-size: .88rem; color: var(--red); }
.member__text { margin: 0; color: var(--muted); font-size: .97rem; }
.team-group__intro { margin: 0 0 1rem; font-size: 1.05rem; }
.specialties { display: flex; flex-wrap: wrap; gap: .6rem; list-style: none; margin: 0; padding: 0; }
.specialties li { margin: 0; padding: .55rem 1rem; border: 1px solid var(--line); border-radius: 999px; background: var(--white); font-weight: 700; color: var(--navy-deep); }
.team-group__note { margin: 1rem 0 0; color: var(--muted); font-size: .95rem; }

/* Verset dans les pages (bloc Citation de l'éditeur) */
.entry-content blockquote { margin: 2rem 0; padding: .25rem 0 .25rem 1.25rem; border-left: 3px solid var(--red); }
.entry-content blockquote p { font-family: var(--font-title); font-style: italic; font-size: 1.2rem; line-height: 1.55; color: var(--navy-deep); }
.entry-content blockquote cite { display: block; margin-top: .4rem; font-style: normal; font-weight: 800; font-size: .85rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }

/* ═════════════════════════════════════════════════════════════════════
   Prendre rendez-vous
   ═════════════════════════════════════════════════════════════════════ */
.rdv { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (max-width: 900px) { .rdv { grid-template-columns: 1fr; } }
.rdv__aside .alert-card { margin-top: 0; }
.rdv__steps { margin-top: 1.5rem; padding: clamp(1.25rem, 3vw, 1.75rem); border-radius: var(--radius-lg); background: var(--sky); }
.rdv__steps h2 { font-size: 1.3rem; margin-bottom: 1rem; }
.rdv-steps { list-style: none; counter-reset: s; margin: 0; padding: 0; display: grid; gap: 1rem; }
.rdv-steps li { counter-increment: s; position: relative; padding-left: 2.6rem; color: var(--muted); }
.rdv-steps li::before {
    content: counter(s); position: absolute; left: 0; top: 0;
    width: 1.8rem; height: 1.8rem; border-radius: 50%;
    display: grid; place-items: center;
    background: var(--navy); color: var(--white); font-weight: 800; font-size: .9rem;
}
.rdv-steps strong { display: block; color: var(--ink); }
.rdv__facts { list-style: none; margin: 1.25rem 0 0; padding: 1rem 0 0; border-top: 1px solid #cfe0ee; display: grid; gap: .5rem; }
.rdv__facts li { display: flex; gap: .6rem; align-items: flex-start; }
.rdv__facts svg { width: 1.15rem; height: 1.15rem; flex: none; margin-top: .2rem; color: var(--navy); }
.rdv__call { margin: 1.25rem 0 0; font-weight: 600; }
.rdv__call a { font-weight: 800; white-space: nowrap; }

.rdv-form { display: grid; gap: 1.35rem; }
.field { margin: 0; padding: 0; border: 0; min-width: 0; }
.field__label { display: block; margin-bottom: .45rem; font-weight: 800; color: var(--ink); padding: 0; }
.field__opt { font-weight: 600; color: var(--muted); }
.field__hint { margin: .4rem 0 0; font-size: .9rem; color: var(--muted); }
.field__error { display: flex; gap: .4rem; align-items: flex-start; margin: .45rem 0 0; font-size: .92rem; font-weight: 700; color: #a3121d; }
.field__error svg { width: 1.05rem; height: 1.05rem; flex: none; margin-top: .15rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 520px) { .field-row { grid-template-columns: 1fr; } }

.input {
    display: block; width: 100%; min-height: 52px;
    padding: .75rem .95rem;
    font: inherit; font-size: 1rem; /* 16 px : iOS ne zoome pas sur le champ */
    color: var(--ink); background: var(--white);
    border: 1.5px solid #b7cde0; border-radius: 10px;
    transition: border-color .15s ease, box-shadow .15s ease;
}
textarea.input { min-height: 6.5rem; resize: vertical; }
select.input {
    appearance: none; padding-right: 2.6rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2317456e' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right .85rem center; background-size: 1.1rem;
}
.input:hover { border-color: var(--blue); }
.input:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(90, 155, 205, .35); }
.input[aria-invalid="true"] { border-color: #c8202b; background: #fffafa; }

.choices { display: flex; flex-wrap: wrap; gap: .6rem; }
.choice { position: relative; flex: 1 1 9rem; }
.choice input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.choice span {
    display: flex; align-items: center; justify-content: center; min-height: 52px; padding: .6rem .9rem;
    border: 1.5px solid #b7cde0; border-radius: 10px; background: var(--white);
    font-weight: 700; color: var(--navy); text-align: center; cursor: pointer;
    transition: border-color .15s ease, background-color .15s ease;
}
.choice input:hover + span { border-color: var(--blue); }
.choice input:checked + span { background: var(--navy); border-color: var(--navy); color: var(--white); }
.choice input:focus-visible + span { box-shadow: 0 0 0 3px rgba(90, 155, 205, .5); }
.choices[aria-invalid="true"] .choice span { border-color: #c8202b; }

.check { display: flex; gap: .75rem; align-items: flex-start; cursor: pointer; font-size: .95rem; color: var(--muted); }
.check input { width: 1.35rem; height: 1.35rem; flex: none; margin-top: .1rem; accent-color: var(--navy); }
.check input[aria-invalid="true"] { outline: 2px solid #c8202b; outline-offset: 2px; }

.rdv-form__submit { justify-self: start; }
@media (max-width: 560px) { .rdv-form__submit { justify-self: stretch; } }

.form-alert { display: flex; gap: .8rem; align-items: flex-start; padding: 1rem 1.15rem; border-radius: var(--radius); background: var(--red-soft); border-left: 4px solid var(--red); }
.form-alert:focus { outline: none; }
.form-alert svg { width: 1.4rem; height: 1.4rem; flex: none; color: var(--red); }
.form-alert strong { display: block; color: #7d1219; }
.form-alert span { color: #7d1219; font-size: .95rem; }

.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.rdv-sent { padding: clamp(1.5rem, 4vw, 2.5rem); border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--white); box-shadow: var(--shadow); }
.rdv-sent:focus { outline: none; }
.rdv-sent__icon { display: grid; place-items: center; width: 3.25rem; height: 3.25rem; margin-bottom: 1rem; border-radius: 50%; background: #e6f4ea; color: #1e6b34; }
.rdv-sent__icon svg { width: 1.7rem; height: 1.7rem; stroke-width: 2.6; }
.rdv-sent h2 { margin-bottom: .6rem; }
.rdv-sent__ref { margin: 1.5rem 0 .3rem; padding: 1rem 1.15rem; border-radius: var(--radius); background: var(--sky); font-weight: 700; }
.rdv-sent__ref strong { display: block; margin-top: .2rem; font-family: var(--font-title); font-size: 1.7rem; letter-spacing: .04em; color: var(--navy-deep); }
.rdv-sent .btn-row { margin-top: 1.5rem; }

/* ═════════════════════════════════════════════════════════════════════
   Pied de page
   ═════════════════════════════════════════════════════════════════════ */
.site-footer { background: var(--navy-deep); color: #c9d9e8; padding-block: clamp(3rem, 6vw, 4.5rem) 1.5rem; font-size: .97rem; }
.site-footer a { color: var(--white); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 2rem 2.5rem; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand { display: flex; align-items: center; gap: .75rem; margin-bottom: 1rem; }
.footer-brand .brand__mark { background: var(--white); border-radius: 10px; padding: 5px; width: 46px; height: 46px; }
.footer-brand .brand__name { color: var(--white); }
.footer-brand .brand__tag { color: #a9c1d8; }
.footer-title { font-family: var(--font-body); font-size: .8125rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; color: #a9c1d8; margin-bottom: 1rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.footer-contact li { display: flex; gap: .6rem; align-items: flex-start; }
.footer-contact svg { width: 1.15rem; height: 1.15rem; flex: none; margin-top: .2rem; color: var(--blue); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem; margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid rgba(255, 255, 255, .12); font-size: .85rem; color: #a9c1d8; }

/* ═════════════════════════════════════════════════════════════════════
   Barre d'appel du téléphone
   Fixée en bas, au-dessus de la zone du geste d'accueil (safe-area).
   ═════════════════════════════════════════════════════════════════════ */
.action-bar { display: none; }
/* Menu ouvert : ses propres boutons d'appel suffisent, la barre ne doit pas les couvrir. */
body:has(.nav[data-open="true"]) .action-bar { display: none !important; }
@media (max-width: 760px) {
    :root { --bar-h: calc(64px + env(safe-area-inset-bottom, 0px)); }
    .action-bar {
        position: fixed; left: 0; right: 0; bottom: 0; z-index: 80;
        display: grid; grid-auto-flow: column; grid-auto-columns: 1fr;
        height: var(--bar-h);
        padding-bottom: env(safe-area-inset-bottom, 0px);
        background: var(--white);
        border-top: 1px solid var(--line);
        box-shadow: 0 -6px 20px rgba(15, 51, 84, .08);
    }
    .action-bar__item {
        display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .15rem;
        color: var(--navy); font-size: .8rem; font-weight: 800; text-decoration: none;
        -webkit-tap-highlight-color: transparent;
    }
    .action-bar__item svg { width: 24px; height: 24px; }
    .action-bar__item--call { background: var(--navy); color: var(--white); }
    .action-bar__item--whatsapp svg { color: #1f8f4e; }
    .action-bar__item:active { opacity: .8; }
}

/* ═════════════════════════════════════════════════════════════════════
   Impression : la page « Votre visite » imprimée doit rester lisible
   ═════════════════════════════════════════════════════════════════════ */
@media print {
    .topbar, .site-header, .action-bar, .cta-band, .share, .visit__map, .admin-todo { display: none !important; }
    body { padding: 0; }
}

/* Un numéro de téléphone ne se coupe jamais en deux (« +237 222 24 33 | 73 »). */
a[href^="tel:"] { white-space: nowrap; }
