/*
Theme Name: ATHENA
Theme URI: https://athenaservicesplus.com
Author: ATHENA Services Plus
Description: Thème bloc sur mesure d'ATHENA Services Plus, flotte partenaire Yango à Abidjan. Généré depuis la maquette validée (méthode Claude-To-WordPress).
Version: 1.0.7
Requires at least: 6.6
Requires PHP: 8.0
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: athena
Tags: block-theme, full-site-editing, business, one-column
*/

/* ATHENA — système de design (référence : bolt.eu, accent remplacé par le bleu ATHENA, validé par le client) */
:root {
  --fond: #F7F9F8;
  --blanc: #FFFFFF;
  --encre: #1B1F1E;
  --texte: #4A504E;
  --sombre: #0F1211;
  --ardoise: #2F313F;
  --gris: #ECEEED;
  --bleu: #3A3FB0;
  --bleu-fonce: #2E3290;
  --sur-sombre: #EEF0EF;
  --r-s: 8px;
  --r-m: 24px;
  --r-l: 32px;
  --r-xl: 40px;
  --large: 1280px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--texte);
  background: var(--fond);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { color: var(--encre); margin: 0; hyphens: none; text-wrap: balance; letter-spacing: -0.025em; }
h1 { font-size: clamp(44px, 7vw, 80px); line-height: 1.02; font-weight: 750; }
h2 { font-size: clamp(34px, 4.6vw, 52px); line-height: 1.08; font-weight: 750; }
h3 { font-size: clamp(22px, 2.2vw, 30px); line-height: 1.2; font-weight: 650; }
p { margin: 0; }

.conteneur { width: min(100% - 32px, var(--large)); margin-inline: auto; }
.etroit { width: min(100% - 32px, 760px); margin-inline: auto; }

/* Boutons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 28px; border-radius: 9999px;
  font-weight: 650; font-size: 17px; text-decoration: none; border: 0; cursor: pointer;
  transition: background .2s, transform .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-bleu { background: var(--bleu); color: #fff; }
.btn-bleu:hover { background: var(--bleu-fonce); }
.btn-gris { background: var(--gris); color: var(--encre); }
.btn-blanc { background: #fff; color: var(--encre); }
.btn-ardoise { background: var(--ardoise); color: #fff; min-height: 40px; padding: 0 18px; font-size: 14px; }
.btn-ligne { background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.5); }

/* En-tête */
.entete { position: sticky; top: 0; z-index: 50; background: rgba(247,249,248,.92); backdrop-filter: blur(10px); }
.entete .conteneur { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.logo { font-weight: 800; font-size: 24px; letter-spacing: -0.04em; color: var(--encre); text-decoration: none; }
.logo span { color: var(--bleu); }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { text-decoration: none; font-weight: 550; font-size: 15px; color: var(--encre); }
.nav a.btn { color: #fff; }
.burger { display: none; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; }
.burger span { display: block; width: 20px; height: 2px; background: var(--encre); margin: 5px auto; }

/* Accueil — hero */
.hero { text-align: center; padding: 72px 0 64px; }
.hero p.chapo { max-width: 620px; margin: 24px auto 0; font-size: 19px; }
.hero .actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 36px; }
.hero .actions .btn { border-radius: 10px; min-width: 240px; }
.hero .preuves { display: flex; gap: 22px; justify-content: center; flex-wrap: wrap; margin-top: 28px; font-size: 14px; font-weight: 550; color: var(--encre); }
.hero .preuves span::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--bleu); margin-right: 8px; vertical-align: 1px; }

.visuel-hero { position: relative; }
.visuel-hero > img { width: 100%; height: clamp(360px, 58vw, 720px); object-fit: cover; object-position: 50% 62%; }
.carte-releve {
  position: absolute; right: max(16px, calc((100% - var(--large)) / 2)); bottom: -72px;
  width: min(360px, calc(100% - 32px));
  background: #fff; border-radius: var(--r-m); padding: 24px 26px;
  box-shadow: 0 30px 60px -20px rgba(15,18,17,.35);
}
.carte-releve .etiquette { font-size: 13px; font-weight: 650; color: var(--bleu); text-transform: none; }
.carte-releve .montant { font-size: 44px; font-weight: 750; color: var(--encre); letter-spacing: -0.03em; line-height: 1.1; margin-top: 6px; }
.carte-releve .ligne { display: flex; justify-content: space-between; font-size: 14px; padding: 9px 0; border-top: 1px solid var(--gris); }
.carte-releve .ligne:first-of-type { margin-top: 14px; }
.carte-releve .ligne b { color: var(--encre); font-weight: 650; }

/* Services — cartes */
.services { padding: 150px 0 110px; }
.services h2 { text-align: center; }
.services .intro { text-align: center; max-width: 560px; margin: 16px auto 0; font-size: 18px; }
.cartes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 56px; }
.carte {
  position: relative; overflow: hidden; border-radius: var(--r-l); min-height: 560px;
  display: flex; flex-direction: column; justify-content: space-between; padding: 30px;
  text-decoration: none; color: #fff; background: var(--sombre);
}
.carte img { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.carte:hover img { transform: scale(1.04); }
.carte::after { content: ""; position: absolute; inset: 0; z-index: 0; background: linear-gradient(180deg, rgba(15,18,17,.9) 0%, rgba(15,18,17,.55) 30%, rgba(15,18,17,0) 58%); }
.carte > * { position: relative; z-index: 1; }
.carte h3 { color: #fff; }
.carte p { color: rgba(255,255,255,.88); margin-top: 8px; max-width: 280px; }
.carte .btn { align-self: flex-start; }
.carte-bleue { background: var(--bleu); }
.carte-bleue::after { display: none; }

/* Bande bleue — manifeste */
.manifeste { background: var(--bleu); color: #fff; text-align: center; padding: 120px 0; }
.manifeste .surtitre { font-size: 14px; font-weight: 600; opacity: .8; }
.manifeste h2 { color: #fff; font-size: clamp(40px, 6.4vw, 80px); line-height: 1.04; margin-top: 18px; }
.manifeste p { max-width: 640px; margin: 28px auto 0; font-size: 19px; color: rgba(255,255,255,.88); }
.manifeste .btn { margin-top: 36px; }

/* Sections alternées */
.alterne { padding: 110px 0 0; }
.alterne:last-of-type { padding-bottom: 110px; }
.alterne .conteneur { display: grid; grid-template-columns: 1fr 1.15fr; gap: 72px; align-items: center; }
.alterne.inverse .texte { order: 2; }
.alterne .surtitre { font-size: 14px; font-weight: 600; color: var(--texte); }
.alterne h2 { margin-top: 10px; font-size: clamp(28px, 3vw, 36px); line-height: 1.15; }
.alterne .texte p { margin-top: 18px; font-size: 18px; }
.alterne ul { list-style: none; padding: 0; margin: 24px 0 0; }
.alterne li { padding: 12px 0 12px 32px; position: relative; border-top: 1px solid #E1E5E3; color: var(--encre); font-weight: 500; }
.alterne li::before { content: ""; position: absolute; left: 0; top: 19px; width: 14px; height: 14px; border-radius: 50%; background: var(--bleu); box-shadow: inset 0 0 0 4px #DDE0F7; }
.alterne .btn { margin-top: 30px; }
.alterne figure { margin: 0; position: relative; }
.alterne figure img { width: 100%; height: 600px; object-fit: cover; border-radius: var(--r-xl); }

/* Bande sombre — étapes */
.etapes { background: var(--sombre); color: var(--sur-sombre); padding: 120px 0; margin-top: 110px; }
.etapes h2 { color: #fff; text-align: center; }
.etapes .intro { text-align: center; color: rgba(238,240,239,.7); margin: 16px auto 0; max-width: 520px; font-size: 18px; }
.grille-etapes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 60px; }
.etape { background: #1B1F1E; border-radius: var(--r-m); padding: 32px 26px 30px; min-height: 260px; display: flex; flex-direction: column; }
.etape .num { font-size: 64px; font-weight: 750; line-height: 1; color: var(--bleu); letter-spacing: -0.04em; filter: brightness(1.45); }
.etape h3 { color: #fff; font-size: 22px; margin-top: auto; padding-top: 40px; }
.etape p { color: rgba(238,240,239,.7); margin-top: 8px; font-size: 15px; }
.etapes .centre { text-align: center; margin-top: 52px; }

/* Chiffres */
.chiffres { padding: 120px 0 40px; }
.chiffres .conteneur { display: grid; grid-template-columns: 1.1fr 1fr; gap: 16px; }
.bloc-chiffre { border-radius: var(--r-l); padding: 44px; background: #fff; }
.bloc-chiffre.grand { background: var(--bleu); color: #fff; grid-row: span 2; display: flex; flex-direction: column; justify-content: space-between; min-height: 520px; }
.bloc-chiffre.grand h2 { color: #fff; }
.bloc-chiffre .gros { font-size: clamp(56px, 7vw, 96px); font-weight: 750; letter-spacing: -0.045em; line-height: 1; color: inherit; }
.bloc-chiffre.grand p { color: rgba(255,255,255,.85); font-size: 17px; margin-top: 14px; }
.bloc-chiffre .moyen { font-size: 48px; font-weight: 750; letter-spacing: -0.035em; color: var(--encre); line-height: 1; }
.bloc-chiffre .legende { margin-top: 12px; font-size: 16px; }
.note { font-size: 13px; color: #7A807E; margin-top: 18px; text-align: center; }

/* FAQ */
.faq { padding: 100px 0; }
.faq h2 { text-align: center; margin-bottom: 44px; }
.faq details { background: #fff; border-radius: var(--r-m); margin-bottom: 10px; padding: 0 28px; }
.faq summary { list-style: none; cursor: pointer; padding: 24px 40px 24px 0; font-weight: 650; font-size: 18px; color: var(--encre); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-size: 28px; font-weight: 400; color: var(--bleu); }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 0 24px; font-size: 16px; }

/* Appel final */
.final { padding: 0 0 110px; }
.final .boite { background: var(--bleu); border-radius: var(--r-xl); padding: 96px 32px; text-align: center; position: relative; overflow: hidden; }
.final h2 { color: #fff; font-size: clamp(38px, 5.4vw, 68px); }
.final p { color: rgba(255,255,255,.85); font-size: 19px; max-width: 520px; margin: 20px auto 0; }
.final .actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 36px; }

/* Pied de page */
.pied { background: var(--sombre); color: rgba(238,240,239,.72); padding: 80px 0 40px; font-size: 15px; }
.pied .colonnes { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 40px; }
.pied .logo { color: #fff; }
.pied h4 { color: #fff; font-size: 15px; font-weight: 650; margin: 0 0 16px; }
.pied ul { list-style: none; padding: 0; margin: 0; }
.pied li { margin-bottom: 10px; }
.pied a { text-decoration: none; }
.pied a:hover { color: #fff; }
.pied .bas { border-top: 1px solid #262B29; margin-top: 60px; padding-top: 26px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 13px; }

/* WhatsApp flottant (ajout validé : canal principal du client) */
.whatsapp {
  position: fixed; right: 18px; bottom: 18px; z-index: 60;
  width: 58px; height: 58px; border-radius: 50%; background: var(--bleu);
  display: grid; place-items: center; box-shadow: 0 14px 30px -10px rgba(58,63,176,.7);
}
.whatsapp svg { width: 28px; height: 28px; fill: #fff; }

/* Responsive */
@media (max-width: 1000px) {
  .cartes { grid-template-columns: 1fr; }
  .carte { min-height: 440px; }
  .alterne .conteneur { grid-template-columns: 1fr; gap: 40px; }
  .alterne.inverse .texte { order: 0; }
  .alterne figure img { height: 440px; }
  .grille-etapes { grid-template-columns: 1fr 1fr; }
  .chiffres .conteneur { grid-template-columns: 1fr; }
  .bloc-chiffre.grand { min-height: 0; grid-row: auto; gap: 40px; }
  .pied .colonnes { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .nav { display: none; position: absolute; top: 68px; left: 0; right: 0; background: var(--fond); flex-direction: column; align-items: stretch; gap: 0; padding: 8px 16px 20px; box-shadow: 0 20px 30px -20px rgba(0,0,0,.2); }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--gris); }
  .nav a.btn { margin-top: 14px; border: 0; }
  .entete.ouvert .nav { display: flex; }
  .burger { display: block; }
  .hero { padding: 48px 0 44px; }
  .hero p.chapo { font-size: 17px; }
  .hero .actions .btn { width: 100%; }
  .carte-releve { position: relative; right: auto; bottom: auto; margin: -64px auto 0; }
  .services { padding: 72px 0 72px; }
  .manifeste { padding: 80px 0; }
  .alterne { padding-top: 80px; }
  .grille-etapes { grid-template-columns: 1fr; }
  .etape { min-height: 0; }
  .bloc-chiffre { padding: 32px 26px; }
  .final .boite { padding: 64px 22px; border-radius: var(--r-m); }
  .final .actions .btn { width: 100%; }
  .pied .colonnes { grid-template-columns: 1fr; }
}

/* ===== Pages internes (phase 3 — même système, aucun nouveau choix esthétique) ===== */
.hero-interne { padding: 72px 0 56px; }
.hero-interne h1 { font-size: clamp(40px, 5.6vw, 72px); max-width: 980px; margin-inline: auto; }
.hero-interne .chapo { max-width: 680px; margin: 24px auto 0; font-size: 19px; }
.hero-interne .chapo p + p { margin-top: 14px; }
.hero-interne .chapo .actions { margin-top: 32px; }
.visuel-interne img { width: 100%; height: clamp(300px, 42vw, 560px); object-fit: cover; border-radius: var(--r-xl); }

.bloc-texte { padding: 72px 0 0; }
.page-interne main > .bloc-texte:last-child, .page-interne main > .faq:last-child { padding-bottom: 110px; }
.bloc-texte h2 { font-size: clamp(30px, 3.6vw, 44px); margin-bottom: 20px; }
.bloc-texte h3 { font-size: 22px; margin: 32px 0 10px; }
.bloc-texte p { font-size: 17px; margin-top: 14px; }
.bloc-texte p:first-child, .bloc-texte h2 + p { margin-top: 0; }
.bloc-texte b { color: var(--encre); font-weight: 650; }
.bloc-texte em { color: #6A706E; font-size: 15px; }
.bloc-texte ul, .bloc-texte ol { padding: 0; margin: 18px 0 0; list-style: none; counter-reset: n; }
.bloc-texte li { position: relative; padding: 12px 0 12px 34px; border-top: 1px solid #E1E5E3; font-size: 16.5px; }
.bloc-texte ul li::before { content: ""; position: absolute; left: 0; top: 19px; width: 14px; height: 14px; border-radius: 50%; background: var(--bleu); box-shadow: inset 0 0 0 4px #DDE0F7; }
.bloc-texte ol li { counter-increment: n; }
.bloc-texte ol li::before { content: counter(n); position: absolute; left: 0; top: 12px; width: 22px; height: 22px; border-radius: 50%; background: var(--bleu); color: #fff; font-size: 12px; font-weight: 700; display: grid; place-items: center; line-height: 1; }
.bloc-texte .actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.bloc-texte a:not(.btn) { color: var(--bleu); font-weight: 550; }
.suite { font-weight: 550; }
.suite a { text-decoration: none; }

.tableau { margin-top: 24px; background: #fff; border-radius: var(--r-m); overflow-x: auto; }
.tableau table { width: 100%; border-collapse: collapse; font-size: 15px; }
.tableau th { text-align: left; font-weight: 650; color: var(--encre); padding: 16px 18px; border-bottom: 2px solid var(--gris); white-space: nowrap; }
.tableau td { padding: 14px 18px; border-top: 1px solid var(--gris); vertical-align: top; }
.tableau tr:first-child td { border-top: 0; }

.temoignage { margin: 24px 0 0; background: #fff; border-radius: var(--r-m); padding: 30px 32px; }
.temoignage p { font-size: 19px; color: var(--encre); font-weight: 500; margin: 0; }
.temoignage cite { display: block; margin-top: 14px; font-style: normal; font-size: 15px; }

.faq .etroit > p { margin-bottom: 24px; }
.final .boite .actions .btn-gris { background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.5); }
.final .boite .actions .btn-bleu { background: #fff; color: var(--encre); }
.final .boite > p { color: rgba(255,255,255,.85); }
.final .boite h2 + p { margin-top: 20px; }
.page-interne .final { padding-top: 96px; }

/* Éléments à compléter : visibles dans la maquette, à remplacer avant publication */
mark.a-completer { background: #FFF2B3; color: #5C4A00; border-radius: 4px; padding: 0 4px; font-weight: 500; }
.boite mark.a-completer, .manifeste mark.a-completer { background: rgba(255,255,255,.18); color: #fff; }

/* Formulaire d'inscription */
.section-formulaire { padding: 0 0 110px; }
.formulaire { background: #fff; border-radius: var(--r-l); padding: 40px; display: grid; gap: 20px; }
.choix-profil { border: 0; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.choix-profil legend { font-weight: 650; color: var(--encre); margin-bottom: 10px; }
.choix-profil input { position: absolute; opacity: 0; }
.choix-profil span { display: block; text-align: center; padding: 14px 8px; border-radius: var(--r-s); background: var(--gris); font-weight: 600; color: var(--encre); cursor: pointer; }
.choix-profil input:checked + span { background: var(--bleu); color: #fff; }
.champ { display: grid; gap: 8px; font-weight: 600; color: var(--encre); font-size: 15px; }
.champ input, .champ select { font: inherit; font-weight: 400; font-size: 16px; min-height: 52px; padding: 0 16px; border: 1.5px solid #DCE0DE; border-radius: var(--r-s); background: var(--fond); color: var(--encre); }
.champ input:focus, .champ select:focus { outline: 2px solid var(--bleu); outline-offset: 1px; }
.consentement { font-size: 14px; display: flex; gap: 10px; align-items: flex-start; }
.consentement input { margin-top: 4px; }
.consentement a { color: var(--bleu); }
.formulaire .btn { width: 100%; }
.apres { margin-top: 56px; }
.apres h2 { font-size: clamp(28px, 3vw, 36px); }
.apres ol { margin: 18px 0; padding-left: 22px; }
.apres li { margin: 8px 0; }
.apres a { color: var(--bleu); font-weight: 550; }
.pied-intro { margin-top: 16px; max-width: 300px; }

@media (max-width: 760px) {
  .hero-interne { padding: 44px 0 36px; }
  .hero-interne .chapo { font-size: 17px; }
  .visuel-interne img { border-radius: var(--r-m); }
  .bloc-texte { padding-top: 56px; }
  .formulaire { padding: 26px 20px; }
  .choix-profil { grid-template-columns: 1fr; }
  .temoignage { padding: 24px; }
}

/* Carte Google Maps (page Contact) */
.carte-maps { margin: 24px 0; border-radius: 24px; overflow: hidden; aspect-ratio: 4 / 3; background: var(--gris); }
.carte-maps iframe { width: 100%; height: 100%; border: 0; display: block; }

/* Note Google (accueil) */
.hero .note-google { display: inline-flex; align-items: center; gap: 8px; margin-top: 24px; padding: 8px 16px; border-radius: 999px; background: #fff; border: 1px solid var(--gris); color: var(--encre); font-size: 14px; text-decoration: none; }
.hero .note-google .etoiles { color: #F5A623; letter-spacing: 1px; }
.hero .note-google:hover { border-color: var(--bleu); }

/* =====================================================================
   Adaptations WordPress (phase 4) — le CSS de la maquette est au-dessus,
   inchangé. Ici : uniquement ce que le passage en blocs natifs impose.
   ===================================================================== */

img { height: auto; }
:where(.wp-block-group) > :where(*), :where(.wp-block-buttons) { margin-block: 0; }
figure.wp-block-image { margin: 0; }

/* En-tête : le « sticky » passe sur l'élément <header> du template part */
header.wp-block-template-part { position: sticky; top: var(--wp-admin--admin-bar--height, 0px); z-index: 50; }
.entete { position: static; background: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
/* Le flou passe sur un calque : posé sur .entete, il enfermait le menu mobile (position: fixed) dans les 68 px de l'en-tête */
header.wp-block-template-part::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(247,249,248,.92); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.entete-droite { display: flex; align-items: center; gap: 28px; }
.logo a { color: inherit; text-decoration: none; }
.logo strong { color: var(--bleu); font-weight: inherit; }
.menu-principal .wp-block-navigation__container { gap: 28px; }
.menu-principal .wp-block-navigation-item__content { font-weight: 550; font-size: 15px; color: var(--encre); text-decoration: none; }
.wp-block-navigation.menu-principal .wp-block-navigation__responsive-container.is-menu-open {
  background-color: var(--fond) !important; color: var(--encre) !important; padding: 24px 20px;
}
.wp-block-navigation.menu-principal .is-menu-open .wp-block-navigation__container { gap: 0; align-items: stretch; width: 100%; }
.wp-block-navigation.menu-principal .is-menu-open .wp-block-navigation-item { border-bottom: 1px solid var(--gris); width: 100%; }
.wp-block-navigation.menu-principal .is-menu-open .wp-block-navigation-item__content { font-size: 21px; font-weight: 600; padding: 16px 0; }
.wp-block-navigation.menu-principal .is-menu-open .wp-block-navigation__responsive-container-content { padding-top: 64px; }
.wp-block-navigation.menu-principal .is-menu-open .wp-block-navigation__responsive-container-close { top: 22px; right: 20px; }
.wp-block-navigation.menu-principal .is-menu-open .wp-block-navigation__responsive-container-close svg { width: 30px; height: 30px; }
/* menu ouvert : le bouton WhatsApp ne passe pas par-dessus */
html.has-modal-open .whatsapp a { display: none; }

/* Boutons : la classe du bloc atterrit sur le conteneur, le style va sur le lien */
.wp-block-button.b { display: inline-flex; }
.wp-block-button.b > .wp-block-button__link {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; width: 100%;
  min-height: 52px; padding: 0 28px; border-radius: 9999px; border: 0; box-shadow: none;
  font-weight: 650; font-size: 17px; line-height: 1.2; text-decoration: none;
  transition: background .2s, transform .2s;
}
.wp-block-button.b > .wp-block-button__link:hover { transform: translateY(-1px); }
.wp-block-button.b-bleu > .wp-block-button__link { background: var(--bleu); color: #fff; }
.wp-block-button.b-bleu > .wp-block-button__link:hover { background: var(--bleu-fonce); }
.wp-block-button.b-gris > .wp-block-button__link { background: var(--gris); color: var(--encre); }
.wp-block-button.b-blanc > .wp-block-button__link { background: #fff; color: var(--encre); }
.wp-block-button.b-ardoise > .wp-block-button__link { background: var(--ardoise); color: #fff; min-height: 40px; padding: 0 18px; font-size: 14px; }
.wp-block-button.b-ligne > .wp-block-button__link { background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.5); }

.hero .actions .wp-block-button.b { min-width: 240px; }
.hero .actions .wp-block-button.b > .wp-block-button__link { border-radius: 10px; }
.carte .wp-block-buttons { align-self: flex-start; }
.manifeste .wp-block-buttons { margin-top: 36px; justify-content: center; }
.alterne .wp-block-buttons { margin-top: 30px; }
.etapes .centre .wp-block-buttons { justify-content: center; }
.final .boite .actions .wp-block-button.b-gris > .wp-block-button__link { background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.5); }
.final .boite .actions .wp-block-button.b-bleu > .wp-block-button__link { background: #fff; color: var(--encre); }

/* Accueil : éléments devenus des paragraphes */
.hero p.note-google a { color: inherit; text-decoration: none; }
.hero p.note-google a::before { content: "★★★★★"; color: #F5A623; letter-spacing: 1px; margin-right: 8px; }
.hero .preuves p::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--bleu); margin-right: 8px; vertical-align: 1px; }
.visuel-hero > figure.wp-block-image img { width: 100%; height: clamp(360px, 58vw, 720px); object-fit: cover; object-position: 50% 62%; }
.carte-releve strong { color: var(--encre); font-weight: 650; }
.carte > figure.wp-block-image { position: absolute; inset: 0; z-index: 0; }
.carte > figure.wp-block-image img { height: 100%; }
.manifeste p.surtitre { margin: 0; font-size: 14px; max-width: none; color: #fff; }
.alterne .texte p.surtitre { margin-top: 0; font-size: 14px; }
.etape p.num { margin: 0; font-size: 64px; color: var(--bleu); }
.bloc-chiffre.grand p.gros { margin-top: 0; font-size: clamp(56px, 7vw, 96px); color: inherit; }

/* Pages internes */
.bloc-texte strong, .temoignage strong { color: var(--encre); font-weight: 650; }
body:not(.home) .wp-block-post-content > .bloc-texte:last-child,
body:not(.home) .wp-block-post-content > .faq:last-child { padding-bottom: 110px; }
body:not(.home) .final { padding-top: 96px; }
.visuel-interne figure.wp-block-image { margin: 0; }

/* Tableaux (core/table) : le CSS du bloc est imprimé après, d'où les sélecteurs qualifiés */
figure.wp-block-table.tableau { margin: 24px 0 0; }
figure.tableau table.has-fixed-layout { table-layout: auto; }
figure.tableau thead { border: 0; }
figure.tableau th { border: 0; border-bottom: 2px solid var(--gris); padding: 16px 18px; }
figure.tableau td { border: 0; border-top: 1px solid var(--gris); padding: 14px 18px; }
figure.tableau tr:first-child td { border-top: 0; }
/* core/table coupe les mots n'importe où (word-break: break-word) : la 1re colonne s'effondrait lettre par lettre en mobile */
figure.tableau .has-fixed-layout th, figure.tableau .has-fixed-layout td { word-break: normal; overflow-wrap: normal; hyphens: none; }
figure.tableau td:first-child { min-width: 9.5em; }
@media (max-width: 760px) {
  figure.tableau table { font-size: 14px; }
  figure.tableau th, figure.tableau td { padding: 12px 10px; }
  /* les en-têtes peuvent passer à la ligne : ils n'imposent plus leur largeur aux colonnes 2 et 3 */
  figure.tableau th { white-space: normal; }
  figure.tableau td:first-child, figure.tableau th:first-child { width: 38%; min-width: 0; }
}

/* FAQ (core/details) */
.faq .wp-block-details summary { list-style: none; }
.faq .wp-block-details > p { padding: 0 0 24px; font-size: 16px; }
.faq .etroit > .wp-block-details { margin-bottom: 10px; }
/* en mobile, la barre d'admin défile : l'en-tête doit coller tout en haut */
@media (max-width: 600px) { header.wp-block-template-part { top: 0; } }

/* Formulaires du plugin ATHENA Leads : mêmes styles que la maquette */
.athena-form .formulaire .champ input,
.athena-form .formulaire .champ select,
.athena-form .formulaire .champ textarea {
  font: inherit; font-weight: 400; font-size: 16px; min-height: 52px; padding: 0 16px;
  border: 1.5px solid #DCE0DE; border-radius: var(--r-s); background: var(--fond); color: var(--encre); width: 100%;
}
.athena-form .formulaire .champ textarea { padding: 14px 16px; }
.athena-form .formulaire .champ { gap: 8px; font-weight: 600; font-size: 15px; color: var(--encre); }
.athena-form .formulaire .choix-profil { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.athena-form .formulaire .choix-profil legend { font-weight: 650; color: var(--encre); margin-bottom: 10px; }
.athena-form .formulaire .consentement { font-size: 14px; display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
.athena-alerte { border-radius: var(--r-s); }
@media (max-width: 760px) { .athena-form .formulaire .choix-profil { grid-template-columns: 1fr; } }

/* Pied de page */
.pied .wp-block-heading { color: #fff; font-size: 15px; font-weight: 650; margin: 0 0 16px; letter-spacing: 0; }
.pied p.logo a { color: #fff; }
.pied .bas p { margin: 0; }

/* Bouton WhatsApp flottant : vert WhatsApp, reconnu d'un coup d'œil. Pastille avec texte sur ordinateur, rond sur mobile. */
.whatsapp { position: static; width: auto; height: auto; background: none; box-shadow: none; display: block; margin: 0; }
.whatsapp a {
  position: fixed; z-index: 60;
  right: max(18px, env(safe-area-inset-right)); bottom: calc(18px + env(safe-area-inset-bottom));
  display: inline-flex; align-items: center; gap: 10px;
  height: 56px; padding: 0 22px 0 18px; border-radius: 999px;
  background: #25D366; color: #fff; font-size: 15px; font-weight: 650; line-height: 1; text-decoration: none;
  box-shadow: 0 0 0 3px #fff, 0 12px 28px -10px rgba(13,110,58,.6);
  transition: transform .2s, background .2s;
}
.whatsapp a:hover { background: #1EBE5A; transform: translateY(-2px); }
.whatsapp a:focus-visible { outline: 3px solid var(--bleu); outline-offset: 4px; }
.whatsapp a::before {
  content: ""; flex: none; width: 26px; height: 26px; background: #fff;
  -webkit-mask: center / contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 0 0-8.6 15.1L2 22l5-1.3A10 10 0 1 0 12 2Zm0 18.2a8.2 8.2 0 0 1-4.2-1.2l-.3-.2-3 .8.8-2.9-.2-.3A8.2 8.2 0 1 1 12 20.2Zm4.5-6.1c-.2-.1-1.5-.7-1.7-.8-.2-.1-.4-.1-.6.1l-.8 1c-.1.2-.3.2-.5.1a6.7 6.7 0 0 1-3.3-2.9c-.3-.4.2-.4.7-1.3.1-.2 0-.3 0-.4l-.8-1.8c-.2-.5-.4-.4-.6-.4h-.5a1 1 0 0 0-.7.3 3 3 0 0 0-.9 2.2 5.2 5.2 0 0 0 1.1 2.8 11.9 11.9 0 0 0 4.6 4c1.7.7 2.4.8 3.2.6.5 0 1.5-.6 1.7-1.2.2-.6.2-1.1.2-1.2-.1-.1-.3-.2-.6-.3Z'/%3E%3C/svg%3E");
          mask: center / contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 0 0-8.6 15.1L2 22l5-1.3A10 10 0 1 0 12 2Zm0 18.2a8.2 8.2 0 0 1-4.2-1.2l-.3-.2-3 .8.8-2.9-.2-.3A8.2 8.2 0 1 1 12 20.2Zm4.5-6.1c-.2-.1-1.5-.7-1.7-.8-.2-.1-.4-.1-.6.1l-.8 1c-.1.2-.3.2-.5.1a6.7 6.7 0 0 1-3.3-2.9c-.3-.4.2-.4.7-1.3.1-.2 0-.3 0-.4l-.8-1.8c-.2-.5-.4-.4-.6-.4h-.5a1 1 0 0 0-.7.3 3 3 0 0 0-.9 2.2 5.2 5.2 0 0 0 1.1 2.8 11.9 11.9 0 0 0 4.6 4c1.7.7 2.4.8 3.2.6.5 0 1.5-.6 1.7-1.2.2-.6.2-1.1.2-1.2-.1-.1-.3-.2-.6-.3Z'/%3E%3C/svg%3E");
}
@media (max-width: 760px) {
  .whatsapp a { width: 56px; padding: 0; gap: 0; justify-content: center; font-size: 0; right: max(16px, env(safe-area-inset-right)); bottom: calc(16px + env(safe-area-inset-bottom)); }
  .whatsapp a::before { width: 30px; height: 30px; }
  /* le bas du pied de page reste lisible sous le bouton */
  .pied .bas { padding-bottom: 72px; }
}

@media (max-width: 760px) {
  .entete-droite { gap: 12px; }
  .hero .actions .wp-block-button.b, .final .actions .wp-block-button.b { width: 100%; }
}

/* Blog : liste des articles (home.html, archive.html) */
.hero-interne .surtitre { margin: 0 0 14px; font-size: 14px; font-weight: 650; }
.hero-interne .surtitre a { color: var(--bleu); text-decoration: none; }
.hero-interne .wp-block-term-description { max-width: 680px; margin: 24px auto 0; font-size: 19px; }
.filtres { list-style: none; margin: 32px 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.filtres li { margin: 0; }
.filtres a { display: inline-block; padding: 9px 18px; border-radius: 999px; background: #fff; border: 1px solid var(--gris); color: var(--encre); font-size: 14px; font-weight: 600; text-decoration: none; }
.filtres a:hover, .filtres .current-cat a { border-color: var(--bleu); color: var(--bleu); }
.liste-articles { padding: 8px 0 110px; }
.liste-articles .wp-block-post-template { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.liste-articles .wp-block-post-template > li { margin: 0; display: flex; }
.carte-article { background: #fff; border-radius: var(--r-m); overflow: hidden; display: flex; flex-direction: column; width: 100%; }
.carte-article .wp-block-post-featured-image { margin: 0; }
.carte-article .wp-block-post-featured-image img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.carte-article .corps { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.rubrique, .rubrique a { font-size: 13px; font-weight: 650; letter-spacing: .04em; text-transform: uppercase; color: var(--bleu); text-decoration: none; }
.carte-article .wp-block-post-title { font-size: 22px; line-height: 1.25; letter-spacing: -.01em; }
.carte-article .wp-block-post-title a { color: var(--encre); text-decoration: none; }
.carte-article .wp-block-post-title a:hover { color: var(--bleu); }
.carte-article .wp-block-post-excerpt p { margin: 0; font-size: 15.5px; }
.carte-article .wp-block-post-excerpt__more-text { display: none; }
.carte-article .wp-block-post-date { margin-top: auto; padding-top: 6px; font-size: 13.5px; color: #6A706E; }
.liste-articles .wp-block-query-pagination { margin-top: 44px; gap: 14px; font-weight: 600; }
.liste-articles .wp-block-query-pagination a { color: var(--bleu); text-decoration: none; }

/* Blog : article (single.html) */
.tete-article .rubrique { margin-bottom: 18px; }
.tete-article h1 { font-size: clamp(34px, 4.6vw, 58px); }
.meta-article { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; margin-top: 22px; font-size: 14.5px; color: #6A706E; }
.meta-article .wp-block-post-author-name::before { content: "Par "; }
.visuel-interne .wp-block-post-featured-image { margin: 0; }
.article.bloc-texte { padding-bottom: 8px; }
.article .wp-block-post-content > h2 { font-size: clamp(26px, 3vw, 34px); margin: 56px 0 18px; }
.article .wp-block-post-content > :first-child { margin-top: 0; }
.article .wp-block-post-content > .suite { margin-top: 18px; }
.article .retour-blog { margin-top: 56px; padding-top: 24px; border-top: 1px solid #E1E5E3; font-weight: 550; }
.article .retour-blog a { text-decoration: none; }

@media (max-width: 1000px) { .liste-articles .wp-block-post-template { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .liste-articles .wp-block-post-template { grid-template-columns: 1fr; gap: 20px; }
  .liste-articles { padding-bottom: 72px; }
  .article .wp-block-post-content > h2 { margin-top: 44px; }
}
