/*
Theme Name: FMI Expertise Courtage
Theme URI: https://fmiexpertisecourtage.fr
Author: FMI Expertise Courtage
Description: Theme bloc sur mesure du cabinet FMI Expertise Courtage (Troyes). Construit depuis la maquette HTML validee ; contenu 100 % en blocs natifs.
Version: 1.0.4
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: fmi-expertise
Tags: block-theme, full-site-editing, business
*/
/* =========================================================================
   FMI Expertise Courtage — maquette v2
   Registre relevé sur les captures fournies (finance-immo.com pour la surface,
   afrfinancement.fr pour les dispositifs), adapté à la charte FMI :
   titres serif avec italique d'emphase, texte sans-serif, bleu #00137A dominant
   (en-tête, bandeaux, boutons), or #CAA678 en touches (étiquettes, chevrons,
   filets), fonds blanc et beige chaud, cartes blanches arrondies.
   ========================================================================= */

:root {
  --bleu: #00137A;          /* charte */
  --bleu-hover: #0A2290;    /* survol des boutons bleus */
  --or: #CAA678;            /* charte */
  --or-texte: #A6814B;      /* or de la charte assombri, pour les petits textes sur fond clair */
  --beige: #F1ECE3;
  --teinte: #ECEFF8;        /* teinte du bleu : pastilles d'icône, bascule */
  --encre: #0E1A3D;
  --texte: #5A6372;
  --ligne: #E4E6EC;

  --serif: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --sans: 'Figtree', 'Segoe UI', system-ui, sans-serif;
  --r-btn: 10px;
  --r-tuile: 12px;
  --r-carte: 18px;
  --large: 1160px;
  --marge: clamp(20px, 5vw, 48px);
  --ombre: 0 30px 60px -24px rgba(14, 26, 61, .22), 0 0 0 1px rgba(14, 26, 61, .04);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
body { margin: 0; background: #fff; color: var(--texte); font: 400 17.5px/1.65 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
body.demande-ouverte { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
h1, h2, h3, h4 { color: var(--bleu); font-weight: 600; hyphens: none; text-wrap: balance; }
strong { font-weight: 700; color: var(--encre); }
em { font-style: italic; }
button { font: inherit; cursor: pointer; }
.enveloppe { width: 100%; max-width: calc(var(--large) + 2 * var(--marge)); margin-inline: auto; padding-inline: var(--marge); }
.centre { text-align: center; }

/* ---------- icônes : masques CSS ---------- */
.ic { display: inline-block; width: 22px; height: 22px; background: currentColor; flex: none; -webkit-mask: var(--i) center / contain no-repeat; mask: var(--i) center / contain no-repeat; }
.ic-maison    { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2.5 1.8 10.6l1.3 1.6L5 10.7V21h5.5v-6h3v6H19V10.7l1.9 1.5 1.3-1.6Z'/%3E%3C/svg%3E"); }
.ic-renego    { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 11a8 8 0 0 0-14.5-4.5L4 8'/%3E%3Cpath d='M4 3v5h5'/%3E%3Cpath d='M4 13a8 8 0 0 0 14.5 4.5L20 16'/%3E%3Cpath d='M20 21v-5h-5'/%3E%3C/svg%3E"); }
.ic-panier    { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8 7V6a4 4 0 0 1 8 0v1h3.5l1 15h-17l1-15Zm2 0h4V6a2 2 0 0 0-4 0Z'/%3E%3C/svg%3E"); }
.ic-regroupe  { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 6h8M3 12h12M3 18h8'/%3E%3Cpath d='m17 8 4 4-4 4'/%3E%3C/svg%3E"); }
.ic-mallette  { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8 6V4.5A1.5 1.5 0 0 1 9.5 3h5A1.5 1.5 0 0 1 16 4.5V6h4a2 2 0 0 1 2 2v4H2V8a2 2 0 0 1 2-2Zm2 0h4V5h-4ZM2 13.5h8V15h4v-1.5h8V19a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2Z'/%3E%3C/svg%3E"); }
.ic-bouclier  { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2 3.5 5.2v6.3c0 5.2 3.6 9 8.5 10.5 4.9-1.5 8.5-5.3 8.5-10.5V5.2Zm-1.2 13.4-3.6-3.6 1.4-1.4 2.2 2.2 4.6-4.6 1.4 1.4Z'/%3E%3C/svg%3E"); }
.ic-parapluie { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M11 2.05V2h2v.05A10 10 0 0 1 22 12H13v6.5a3.5 3.5 0 0 1-7 0V18h2v.5a1.5 1.5 0 0 0 3 0V12H2a10 10 0 0 1 9-9.95Z'/%3E%3C/svg%3E"); }
.ic-courbe    { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 20h18'/%3E%3Cpath d='m4 15 5-5 4 3 7-7'/%3E%3Cpath d='M15 6h5v5'/%3E%3C/svg%3E"); }
.ic-voiture   { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.3 5h11.4l2.4 6H21a1 1 0 0 1 1 1v6h-2v2h-3v-2H7v2H4v-2H2v-6a1 1 0 0 1 1-1h.9Zm1.4 2-1.6 4h11.8l-1.6-4ZM6 13.5a1.5 1.5 0 1 0 0 3 1.5 1.5 0 0 0 0-3Zm12 0a1.5 1.5 0 1 0 0 3 1.5 1.5 0 0 0 0-3Z'/%3E%3C/svg%3E"); }
.ic-outils    { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M15.5 2a6 6 0 0 1 1.9.3l-3.4 3.4 1 3.3 3.3 1 3.4-3.4A6 6 0 0 1 14 14.3L6.2 22 2 17.8 9.7 10A6 6 0 0 1 15.5 2Z'/%3E%3C/svg%3E"); }
.ic-cle       { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round'%3E%3Ccircle cx='8' cy='16' r='4.5'/%3E%3Cpath d='M11.3 12.7 20 4M16.5 7.5l2.5 2.5M14.2 9.8l2 2'/%3E%3C/svg%3E"); }
.ic-terrain   { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M11 2h2v1h6l-1.5 2L19 7h-6v3.3l7 4.2V20h2v2H2v-2h2v-5.5l7-4.2Z'/%3E%3C/svg%3E"); }
.ic-batiment  { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 2h16v20h-6v-4h-4v4H4Zm3 3v2h3V5Zm7 0v2h3V5ZM7 9v2h3V9Zm7 0v2h3V9Zm-7 4v2h3v-2Zm7 0v2h3v-2Z'/%3E%3C/svg%3E"); }
.ic-euro      { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M18 6.5a7 7 0 1 0 0 11'/%3E%3Cpath d='M4 10h9M4 14h9'/%3E%3C/svg%3E"); }
.ic-personne  { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='7.5' r='4.5'/%3E%3Cpath d='M3 21a9 9 0 0 1 18 0Z'/%3E%3C/svg%3E"); }
.ic-duo       { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='9' cy='8' r='4'/%3E%3Cpath d='M1 21a8 8 0 0 1 16 0Z'/%3E%3Cpath d='M15.5 4.2a4 4 0 0 1 0 7.6M18.5 13.6A8 8 0 0 1 23 21h-4'/%3E%3C/svg%3E"); }
.ic-tel       { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 2h4l2 5-2.5 1.6a11 11 0 0 0 6.9 6.9L17 13l5 2v4a3 3 0 0 1-3 3A17 17 0 0 1 2 5a3 3 0 0 1 3-3Z'/%3E%3C/svg%3E"); }
.ic-mail      { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M2 6a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v.4l-10 6.3L2 6.4Zm0 2.8 10 6.3 10-6.3V18a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2Z'/%3E%3C/svg%3E"); }
.ic-lieu      { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 1.5a8 8 0 0 1 8 8c0 6-8 13-8 13s-8-7-8-13a8 8 0 0 1 8-8Zm0 5a3 3 0 1 0 0 6 3 3 0 0 0 0-6Z'/%3E%3C/svg%3E"); }
.ic-horloge   { --i: 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 1 1 0 20 10 10 0 0 1 0-20Zm-1 5v6l5 3 1-1.7-4-2.4V7Z'/%3E%3C/svg%3E"); }
.ic-coche     { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4.5 12.5 5 5L20 7'/%3E%3C/svg%3E"); }
.ic-coeur     { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 21S2 15.2 2 8.5A5.2 5.2 0 0 1 12 6a5.2 5.2 0 0 1 10 2.5C22 15.2 12 21 12 21Z'/%3E%3C/svg%3E"); }
.ic-sac-euro  { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8 2h8l-2 4h-4Zm2 5h4c4 2 7 6 7 10a5 5 0 0 1-5 5H8a5 5 0 0 1-5-5c0-4 3-8 7-10Zm4.6 5.2a3.5 3.5 0 0 0-5.9 1.3H7.5V15h1v.2H7.5v1.5h1.2a3.5 3.5 0 0 0 5.9 1.3l-1.1-1a2 2 0 0 1-3.2-.3H13v-1.5h-2.9V15H13v-1.5h-2.7a2 2 0 0 1 3.2-.3Z'/%3E%3C/svg%3E"); }
.ic-transmet  { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 3c0 5-3.4 8.6-7 9.4V22h-2v-6.6C7.6 15 5 12.2 5 8.5c3.2 0 5.6 1.6 6.5 4C12.3 7.3 15.4 3 20 3Z'/%3E%3C/svg%3E"); }
.ic-tresor    { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M2 6h20v12H2Zm10 3a3 3 0 1 0 0 6 3 3 0 0 0 0-6ZM4 8v2a2 2 0 0 0 2-2Zm16 8v-2a2 2 0 0 0-2 2Z'/%3E%3C/svg%3E"); }
.ic-doc       { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 2h9l5 5v15H5Zm8 1.5V8h4.5ZM8 12v2h8v-2Zm0 4v2h8v-2Z'/%3E%3C/svg%3E"); }
.ic-chevron   { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 5 7 7-7 7'/%3E%3C/svg%3E"); }
.ic-etoile    { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m12 2 3 6.6 7 .7-5.3 4.8 1.6 7L12 17.4 5.7 21l1.6-7L2 9.3l7-.7Z'/%3E%3C/svg%3E"); }

/* ---------- boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px; padding: 19px 28px;
  border: 0; border-radius: var(--r-btn); font: 700 16.5px/1 var(--sans); letter-spacing: .005em; white-space: nowrap;
  transition: background-color .2s, color .2s, box-shadow .2s, transform .2s;
}
.btn-plein { background: var(--bleu); color: #fff; box-shadow: 0 12px 24px -10px rgba(0, 19, 122, .55); }
.btn-plein::after, .btn-or::after { content: "→"; font-weight: 500; transition: transform .2s; }
.btn-plein:hover { background: var(--bleu-hover); transform: translateY(-1px); }
.btn-plein:hover::after, .btn-or:hover::after { transform: translateX(4px); }
.btn-contour { box-shadow: inset 0 0 0 2px var(--bleu); color: var(--bleu); background: transparent; }
.btn-contour:hover { background: var(--bleu); color: #fff; }
.btn-or { background: var(--or); color: var(--bleu); }
.btn-or:hover { background: #d6b88f; }
.btn-blanc { box-shadow: inset 0 0 0 2px #fff; color: #fff; background: transparent; text-transform: uppercase; letter-spacing: .03em; padding: 22px 34px; }
.btn-blanc:hover { background: #fff; color: var(--bleu); }
.actions { display: flex; flex-wrap: wrap; gap: 16px; }

/* ---------- étiquettes & titres ---------- */
.etiquette { display: inline-flex; align-items: center; gap: 14px; font: 600 15px/1.3 var(--sans); color: var(--or-texte); }
.etiquette::before { content: ""; width: 26px; height: 2px; background: var(--or); flex: none; }
.titre { font-family: var(--serif); font-weight: 500; font-size: clamp(32px, 3.5vw, 46px); line-height: 1.14; letter-spacing: -.01em; color: var(--bleu); }
.titre em { font-weight: 500; }
.titre-barre::after { content: ""; display: block; width: 30px; height: 7px; margin-top: 16px; background: var(--or); }
.intro { margin-top: 22px; font-size: 18px; max-width: 62em; }
.intro strong { color: var(--encre); }
.section { padding: 100px 0; }
.section + .section { border-top: 1px solid var(--ligne); }
.section-beige { background: var(--beige); border-top: 0 !important; }
.section-beige + .section { border-top: 0; }

/* =========================================================================
   EN-TÊTE — barre blanche (logo bleu) + barre bleue des services (AFR)
   ========================================================================= */
.barre-logo { background: #fff; border-bottom: 1px solid var(--ligne); }
.barre-logo .enveloppe { display: flex; align-items: center; gap: 28px; height: 96px; }
.barre-logo .logo img { height: 62px; width: auto; }
.slogan-entete { margin-left: auto; font: italic 500 19px/1 var(--serif); color: var(--bleu); white-space: nowrap; }
.slogan-entete em { color: var(--or-texte); }
.barre-logo .droite { display: flex; align-items: center; gap: 22px; padding-left: 28px; border-left: 1px solid var(--ligne); }
.tel-entete { text-align: right; line-height: 1.15; white-space: nowrap; }
.tel-entete b { display: block; font-size: 20px; font-weight: 800; letter-spacing: .01em; color: var(--bleu); }
.tel-entete small { font-size: 12.5px; color: var(--texte); }
.barre-logo .btn { padding: 15px 20px; font-size: 15px; box-shadow: none; }
.barre-logo .btn::after { content: none; }

.barre-nav { position: sticky; top: 0; z-index: 60; background: var(--bleu); transition: box-shadow .3s; }
.barre-nav.est-defile { box-shadow: 0 10px 30px rgba(0, 10, 60, .25); }
.barre-nav .enveloppe { display: flex; align-items: stretch; height: 58px; overflow-x: auto; scrollbar-width: none; }
.barre-nav .enveloppe::-webkit-scrollbar { display: none; }
.barre-nav a {
  flex: none; display: inline-flex; align-items: center; gap: 9px; padding: 0 18px; white-space: nowrap;
  font-size: 15.5px; font-weight: 600; color: rgba(255, 255, 255, .9); border-bottom: 3px solid transparent; border-top: 3px solid transparent;
  transition: background-color .2s, color .2s, border-color .2s;
}
.barre-nav a:first-child { margin-left: -18px; }
.barre-nav a:last-child { margin-right: -18px; }
.barre-nav a .ic { width: 17px; height: 17px; color: var(--or); }
.barre-nav a:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.barre-nav a.est-courant { color: #fff; border-bottom-color: var(--or); background: rgba(255, 255, 255, .07); }
.barre-nav .a-droite { margin-left: auto; }

/* =========================================================================
   « QUEL EST VOTRE PROJET ? » — tuiles blanches sur bleu (finance-immo)
   ========================================================================= */
.bande-projets { background: var(--bleu); padding: 22px 0 42px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08); }
.bande-projets h2 { font: 600 21px/1.3 var(--serif); color: #fff; margin-bottom: 18px; }
.tete-projets { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; margin-bottom: 18px; }
.tete-projets h2 { margin-bottom: 0; }
.tete-projets p { font: 500 15px var(--sans); color: rgba(255, 255, 255, .72); }
.accueil .bande-projets { padding-top: 34px; }
.grille-projets { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.grille-projets.quatre { grid-template-columns: repeat(4, 1fr); }
.projet {
  display: grid; grid-template-columns: 42px 1fr 18px; align-items: center; gap: 16px; width: 100%;
  padding: 18px 22px 18px 18px; border: 0; border-radius: var(--r-tuile); background: #fff; text-align: left;
  transition: transform .2s, box-shadow .2s;
}
.projet:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -10px rgba(0, 0, 0, .35); }
.projet .pastille { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 10px; background: var(--teinte); color: var(--bleu); }
.projet small { display: block; font-size: 11.5px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: #6B7280; }
.projet b { display: block; font-size: 17px; font-weight: 700; line-height: 1.25; color: var(--encre); }
.projet .ic-chevron { width: 18px; height: 18px; color: var(--or); }

/* =========================================================================
   HÉROS BEIGE — titre serif + carte simulateur (finance-immo)
   ========================================================================= */
.hero { background: var(--beige); padding: 76px 0 100px; }
.hero-grille { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 520px); gap: 64px; align-items: start; }
.fil { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; font-size: 14px; color: var(--texte); }
.fil a { color: var(--bleu); font-weight: 600; }
.fil span::before { content: "›"; margin-right: 8px; color: var(--or); }
.titre-hero { margin-top: 22px; font-family: var(--serif); font-weight: 500; font-size: clamp(42px, 5.2vw, 68px); line-height: 1.07; letter-spacing: -.015em; color: var(--bleu); }
.titre-hero em { font-weight: 500; }
.accueil .titre-hero em { color: var(--or); }
.sous-titre-hero { margin-top: 26px; font: 600 clamp(22px, 2.2vw, 30px)/1.2 var(--serif); color: var(--bleu); max-width: 20em; }
.texte-hero { margin-top: 22px; font-size: 18.5px; line-height: 1.7; max-width: 33em; }
.hero .actions { margin-top: 38px; }
.atouts { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 24px; margin-top: 30px; font-size: 15px; font-weight: 600; color: var(--encre); }
.atouts li { display: inline-flex; align-items: center; gap: 8px; }
.atouts .ic { width: 16px; height: 16px; color: var(--or); }

/* carte photo (pages sans simulateur) */
.carte-photo { position: relative; border-radius: var(--r-carte); overflow: hidden; background: #E3E7EF; box-shadow: var(--ombre); }
.carte-photo img { width: 100%; aspect-ratio: 4 / 4.3; object-fit: cover; }
.carte-photo .legende { position: absolute; left: 18px; right: 18px; bottom: 18px; padding: 18px 20px; border-radius: 14px; background: rgba(255, 255, 255, .96); }
.carte-photo .legende b { display: block; font: 600 20px/1.2 var(--serif); color: var(--bleu); }
.carte-photo .legende span { font-size: 14.5px; }

/* =========================================================================
   SIMULATEUR
   ========================================================================= */
.carte-simu { background: #fff; border-radius: var(--r-carte); padding: 34px 34px 30px; box-shadow: var(--ombre); }
.carte-simu h2 { font: 600 26px/1.2 var(--serif); color: var(--bleu); }
.carte-simu .aide { margin-top: 4px; font-size: 16px; }
.bascule { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin: 24px 0 26px; padding: 5px; background: var(--teinte); border-radius: 12px; }
.bascule p { padding: 12px 8px; border-radius: 9px; text-align: center; font-size: 15px; font-weight: 600; color: var(--bleu); cursor: pointer; user-select: none; }
.bascule p.est-actif { background: #fff; box-shadow: 0 2px 8px rgba(14, 26, 61, .12); }
.curseur { margin-bottom: 24px; }
.curseur-tete { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 12px; }
.curseur-tete label { font-size: 16px; font-weight: 500; color: var(--encre); }
.curseur-tete output { font: 700 21px/1 var(--serif); color: var(--bleu); white-space: nowrap; }
.curseur input[type=range] {
  -webkit-appearance: none; appearance: none; display: block; width: 100%; height: 5px; margin: 0; border-radius: 3px; outline: none; cursor: pointer;
  background: linear-gradient(var(--bleu), var(--bleu)) 0 0 / var(--rempli, 50%) 100% no-repeat, #D9DEEA;
}
.curseur input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: var(--bleu); border: 4px solid #fff; box-shadow: 0 0 0 1.5px var(--bleu), 0 3px 8px rgba(0, 19, 122, .35); }
.curseur input[type=range]::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: var(--bleu); border: 4px solid #fff; box-shadow: 0 0 0 1.5px var(--bleu); }
.curseur input[type=range]:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 1.5px var(--bleu), 0 0 0 6px rgba(202, 166, 120, .55); }
.graduations { position: relative; height: 26px; margin: 10px 11px 0; font-size: 12.5px; color: #7A8291; }
.graduations span { position: absolute; top: 0; padding-top: 8px; white-space: nowrap; }
.graduations span::before { content: ""; position: absolute; top: 0; left: 50%; width: 1px; height: 5px; background: #C9CFDB; }
.mode, .mode-txt { display: none; }
.mode.est-actif { display: block; }
.mode-txt.est-actif { display: inline; }
.resultat { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-top: 4px; padding-top: 22px; border-top: 1px solid var(--ligne); }
.resultat .libelle { font-size: 15px; }
.resultat .detail { margin-top: 6px; font-size: 13.5px; color: #7A8291; }
.resultat .detail b { color: var(--encre); }
.resultat .valeur { font: 600 40px/1 var(--serif); color: var(--bleu); white-space: nowrap; text-align: right; }
.resultat .valeur small { display: block; margin-top: 4px; font: 500 14px var(--sans); color: var(--texte); }
.carte-simu .btn { width: 100%; margin-top: 22px; }
.mention { margin-top: 14px; font-size: 12.5px; line-height: 1.5; color: #7A8291; }

/* =========================================================================
   POURQUOI CHOISIR — colonnes centrées (AFR) avec pastilles rondes (MalBazaar)
   ========================================================================= */
.colonnes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 34px; margin-top: 60px; text-align: center; }
.colonnes.trois { grid-template-columns: repeat(3, 1fr); gap: 48px; }
.colonnes .rond-ic { display: grid; place-items: center; width: 76px; height: 76px; margin: 0 auto 24px; border-radius: 50%; background: var(--teinte); color: var(--bleu); }
.colonnes .rond-ic .ic { width: 32px; height: 32px; }
.colonnes h3 { font: 600 22px/1.3 var(--serif); color: var(--bleu); }
.colonnes p { margin-top: 12px; font-size: 16.5px; }
.colonnes p strong { color: var(--encre); }

/* =========================================================================
   TEXTE + PHOTO (AFR « Nous défendons vos intérêts »)
   ========================================================================= */
.duo { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 72px; align-items: center; }
.duo.inverse > :first-child { order: 2; }
.duo .photo img { width: 100%; aspect-ratio: 4 / 4.4; object-fit: cover; border-radius: var(--r-carte); }
.duo .texte p { margin-top: 18px; font-size: 18px; }
.duo .texte .titre + p { margin-top: 26px; }
.engagements { list-style: none; padding: 0; margin-top: 28px; display: grid; gap: 10px; font: 500 clamp(19px, 1.7vw, 22px)/1.4 var(--serif); color: var(--bleu); }
.engagements strong { color: var(--bleu); font-weight: 700; }
.deux-listes { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 34px; }
.deux-listes h3 { font: 600 21px/1.2 var(--serif); }
.deux-listes h3 em { color: var(--or-texte); }
.coches { list-style: none; padding: 0; margin-top: 14px; display: grid; gap: 10px; font-size: 16px; }
.coches li { display: grid; grid-template-columns: 20px 1fr; gap: 10px; }
.coches li::before { content: ""; width: 18px; height: 18px; margin-top: 4px; background: var(--or);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4.5 12.5 5 5L20 7'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4.5 12.5 5 5L20 7'/%3E%3C/svg%3E") center / contain no-repeat; }
.encadre { margin-top: 30px; padding: 24px 26px; border-radius: 14px; background: var(--beige); border-left: 4px solid var(--or); }
.section-beige .encadre { background: #fff; }
.encadre h3 { font: 600 19px/1.3 var(--serif); }
.encadre p { margin-top: 6px !important; font-size: 16.5px !important; }

/* =========================================================================
   BANDEAU BLEU — grand titre blanc + bouton contour (AFR)
   ========================================================================= */
.bande-cta { background: var(--bleu); padding: 76px 0 84px; }
.bande-cta .enveloppe { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 48px; align-items: center; }
.bande-cta h2 { font: 600 clamp(34px, 4vw, 56px)/1.08 var(--serif); color: #fff; letter-spacing: -.01em; max-width: 15em; }
.bande-cta h2 em { color: var(--or); font-weight: 500; }
.bande-cta p { margin-top: 16px; font-size: 18px; color: rgba(255, 255, 255, .8); max-width: 36em; }

/* =========================================================================
   ÉTAPES — ronds numérotés reliés (finance-immo)
   ========================================================================= */
.etapes { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(var(--n, 3), 1fr); gap: 40px; margin-top: 60px; }
.etapes li { position: relative; }
.etapes li:not(:last-child)::after { content: ""; position: absolute; top: 27px; left: 84px; right: -18px; height: 1px; background: var(--ligne); }
.etapes .num { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; background: var(--bleu); color: #fff; font: 600 20px var(--serif); box-shadow: 0 0 0 7px var(--teinte); }
.etapes h3 { margin-top: 28px; font: 600 21px/1.3 var(--serif); }
.etapes p { margin-top: 10px; font-size: 16.5px; }
.etapes-pied { margin-top: 52px; display: grid; justify-items: center; gap: 18px; }
.note { display: inline-flex; align-items: center; gap: 10px; font-size: 15.5px; }
.note .rond-coche { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--teinte); color: var(--bleu); }
.note .rond-coche .ic { width: 12px; height: 12px; }

/* =========================================================================
   INTERLOCUTEUR — photo + texte + puces (finance-immo)
   ========================================================================= */
.interlocuteur { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 64px; align-items: center; }
.interlocuteur .photo { border-radius: var(--r-carte); overflow: hidden; background: #E3E7EF; }
.interlocuteur .photo img { width: 100%; aspect-ratio: 1 / 1.1; object-fit: cover; }
.interlocuteur .texte > p { margin-top: 22px; font-size: 18px; }
.nom { margin-top: 30px !important; font: 700 22px/1.2 var(--serif) !important; color: var(--bleu); }
.role { margin-top: 4px !important; font-size: 15.5px !important; }
.puces { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.puce { display: inline-flex; align-items: center; gap: 9px; padding: 11px 18px; border-radius: 999px; background: var(--beige); font-size: 15px; font-weight: 500; color: var(--encre); }
.section-beige .puce { background: #fff; }
.puce .ic { width: 14px; height: 14px; color: var(--or-texte); }
.interlocuteur .actions { margin-top: 30px; }

/* =========================================================================
   CHIFFRES — carte blanche sur beige (finance-immo)
   ========================================================================= */
.bande-chiffres { background: var(--beige); padding: 84px 0; }
.chiffres { display: grid; grid-template-columns: repeat(4, 1fr); padding: 42px 0; border-radius: var(--r-carte); background: #fff; box-shadow: var(--ombre); }
.chiffres > div { padding: 0 26px; text-align: center; }
.chiffres > div + div { border-left: 1px solid var(--ligne); }
.chiffres b { display: block; font: 600 clamp(40px, 4vw, 54px)/1 var(--serif); color: var(--bleu); }
.chiffres span { display: block; margin-top: 14px; font-size: 15.5px; line-height: 1.45; }

/* =========================================================================
   TAUX DU MOMENT
   ========================================================================= */
.grille-taux { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 64px; align-items: center; }
.carte-taux { background: #fff; border-radius: var(--r-carte); padding: 32px 34px; box-shadow: var(--ombre); }
.carte-taux .maj { display: flex; justify-content: space-between; gap: 14px; align-items: baseline; }
.carte-taux .maj h3 { font: 600 24px/1.2 var(--serif); }
.carte-taux .maj span { font-size: 14px; color: var(--or-texte); font-weight: 600; white-space: nowrap; }
.table-taux { width: 100%; margin-top: 20px; border-collapse: collapse; font-size: 16.5px; }
.table-taux th, .table-taux td { padding: 15px 10px; text-align: right; border-bottom: 1px solid var(--ligne); }
.table-taux th:first-child, .table-taux td:first-child { text-align: left; padding-left: 0; }
.table-taux thead th { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #7A8291; }
.table-taux tbody td { font-weight: 600; color: var(--encre); font-variant-numeric: tabular-nums; }
.table-taux tbody td:first-child { font: 600 18px var(--serif); color: var(--bleu); }
.table-taux td:last-child, .table-taux th:last-child { background: var(--teinte); }
.table-taux tbody td:last-child { color: var(--bleu); font-weight: 800; }
.table-taux tbody tr:last-child td { border-bottom: 0; }
.carte-taux .btn { width: 100%; margin-top: 22px; }

/* =========================================================================
   GUIDES — 3 colonnes photo + liens (AFR « Nos conseils »)
   ========================================================================= */
.guides { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px; margin-top: 56px; }
.guide img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--r-tuile); }
.guide h3 { margin-top: 24px; font: 600 22px/1.25 var(--serif); }
.guide ul { list-style: none; padding: 0; margin-top: 14px; display: grid; gap: 12px; }
.guide a { font-size: 16px; color: var(--texte); background: linear-gradient(var(--or), var(--or)) 0 100% / 0 1px no-repeat; transition: background-size .25s, color .2s; }
.guide a:hover { color: var(--bleu); background-size: 100% 1px; }

/* =========================================================================
   FAQ
   ========================================================================= */
.faq-grille { display: grid; grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr); gap: 72px; align-items: start; }
.faq-intro { position: sticky; top: 130px; }
.faq-intro .intro { font-size: 17px; }
.faq-intro .btn { margin-top: 30px; }
.faq details { border-bottom: 1px solid var(--ligne); }
.faq details:first-child { border-top: 1px solid var(--ligne); }
.faq summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 1fr 34px; gap: 18px; align-items: center; padding: 24px 0; font-size: 18px; font-weight: 600; color: var(--encre); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--teinte); color: var(--bleu); font: 400 22px/1 var(--sans); transition: transform .25s, background-color .2s, color .2s; }
.faq details[open] summary::after { transform: rotate(45deg); background: var(--bleu); color: #fff; }
.faq summary:hover { color: var(--bleu); }
.faq details > p, .faq details > ul { padding: 0 52px 24px 0; font-size: 16.5px; }
.faq details > ul { padding-left: 22px; }
.faq details > p + p { margin-top: -12px; }

/* =========================================================================
   OFFRES — cartes cliquables (sous-services)
   ========================================================================= */
.offres { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 50px; }
.offre { display: grid; grid-template-columns: 46px 1fr; gap: 4px 16px; align-content: start; width: 100%; padding: 22px; text-align: left; border: 1px solid var(--ligne); border-radius: var(--r-tuile); background: #fff; color: var(--texte); transition: border-color .2s, box-shadow .2s, transform .2s; }
button.offre:hover { border-color: var(--bleu); box-shadow: 0 16px 30px -16px rgba(0, 19, 122, .35); transform: translateY(-2px); }
.offre .pastille { grid-row: span 2; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 10px; background: var(--teinte); color: var(--bleu); }
.offre b { font-size: 17px; line-height: 1.3; color: var(--encre); }
.offre span:last-child { font-size: 15px; line-height: 1.5; }
.offres-titre { margin-top: 44px; font: 600 14px var(--sans); letter-spacing: .09em; text-transform: uppercase; color: var(--or-texte); }
.offres-titre + .offres { margin-top: 16px; }

/* ---------- blocs de liste ---------- */
.blocs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 50px; }
.bloc { background: #fff; border-radius: var(--r-carte); padding: 30px 30px 32px; box-shadow: var(--ombre); }
.bloc h3 { display: flex; align-items: center; gap: 14px; font: 600 21px/1.25 var(--serif); }
.bloc h3 .pastille { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 10px; background: var(--teinte); color: var(--bleu); flex: none; }
.bloc p { margin-top: 14px; font-size: 16px; }
.bloc .coches { margin-top: 18px; }
.blocs + .etapes { margin-top: 80px; }
.hero .coordonnee { box-shadow: none; }

/* =========================================================================
   HÉROS PHOTO — voile bleu, titre centré, pastilles rondes (MalBazaar)
   ========================================================================= */
.hero-photo { position: relative; isolation: isolate; overflow: hidden; padding: 110px 0 100px; text-align: center; color: #fff; }
.hero-photo > img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.hero-photo::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0, 19, 122, .78), rgba(0, 19, 122, .86)); }
.hero-photo .fil { justify-content: center; color: rgba(255, 255, 255, .8); }
.hero-photo .fil a { color: #fff; }
.hero-photo h1 { font: 600 clamp(38px, 4.6vw, 60px)/1.1 var(--serif); color: #fff; letter-spacing: -.01em; max-width: 17em; margin-inline: auto; }
.hero-photo h1 em { color: var(--or); font-weight: 500; }
.hero-photo .texte-hero { margin: 22px auto 0; color: rgba(255, 255, 255, .88); }
.hero-photo .actions { justify-content: center; margin-top: 34px; }
.hero-photo .btn-blanc { text-transform: none; letter-spacing: .005em; padding: 19px 28px; }
.etiquette-claire { display: inline-flex; align-items: center; gap: 14px; margin-bottom: 22px; font-size: 15px; font-weight: 600; color: var(--or); }
.etiquette-claire::before, .etiquette-claire::after { content: ""; width: 26px; height: 2px; background: var(--or); }
.accueil .hero-photo { padding: 96px 0 92px; }
.accueil .hero-photo h1 { font-size: clamp(48px, 6.4vw, 88px); line-height: 1.04; }
.accueil .hero-photo .texte-hero { max-width: 40em; font-size: 19px; }
.accueil .hero-photo .ronds-services { margin-top: 56px; padding-top: 44px; border-top: 1px solid rgba(255, 255, 255, .16); }
.accueil .hero .titre-hero { font-size: clamp(36px, 4vw, 54px); margin-top: 18px; }
.ronds-services { display: flex; justify-content: center; flex-wrap: wrap; gap: 28px 46px; margin-top: 48px; list-style: none; padding: 0; }
.ronds-services a { display: grid; justify-items: center; gap: 12px; font-size: 15.5px; font-weight: 600; color: #fff; }
.ronds-services .rond { display: grid; place-items: center; width: 84px; height: 84px; border-radius: 50%; background: #fff; color: var(--bleu); transition: transform .2s, box-shadow .2s; }
.ronds-services .rond .ic { width: 36px; height: 36px; }
.ronds-services a:hover .rond { transform: translateY(-3px); box-shadow: 0 0 0 5px rgba(202, 166, 120, .6); }

/* =========================================================================
   CONTACT
   ========================================================================= */
.contact-grille { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 56px; align-items: start; }
.coordonnees { display: grid; gap: 12px; }
.coordonnee { display: grid; grid-template-columns: 50px 1fr; gap: 16px; align-items: center; padding: 18px 20px; border-radius: var(--r-tuile); background: #fff; box-shadow: var(--ombre); }
.coordonnee .pastille { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 12px; background: var(--teinte); color: var(--bleu); }
.coordonnee small { display: block; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #7A8291; }
.coordonnee b { display: block; font-size: 17.5px; color: var(--encre); word-break: break-word; }
.carte-form { background: #fff; border-radius: var(--r-carte); padding: 38px 40px; box-shadow: var(--ombre); }
.carte-form h2 { font: 600 28px/1.2 var(--serif); }
.form-ok { display: none; margin-top: 18px; padding: 16px 18px; border-radius: 12px; background: var(--teinte); color: var(--bleu); font-weight: 600; }
.form-ok.est-visible { display: block; }

/* champs communs (contact + demande) */
.champs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px 18px; margin-top: 24px; }
.champ { display: grid; gap: 8px; }
.champ.large { grid-column: 1 / -1; }
.champ label { font-size: 14.5px; font-weight: 600; color: var(--encre); }
.champ label small { font-weight: 400; color: #7A8291; }
.champ input, .champ select, .champ textarea { width: 100%; padding: 14px 15px; border: 1.5px solid #DADFE8; border-radius: var(--r-btn); background: #fff; font: 400 16.5px/1.4 var(--sans); color: var(--encre); transition: border-color .2s, box-shadow .2s; }
.champ textarea { resize: vertical; min-height: 120px; }
.champ input:focus, .champ select:focus, .champ textarea:focus { outline: none; border-color: var(--bleu); box-shadow: 0 0 0 4px var(--teinte); }
.champ .unite { position: relative; }
.champ .unite input { padding-right: 42px; }
.champ .unite::after { content: "€"; position: absolute; right: 15px; top: 50%; transform: translateY(-50%); font-weight: 700; color: #7A8291; }
.consentement { display: grid; grid-template-columns: 22px 1fr; gap: 12px; margin-top: 22px; font-size: 14px; line-height: 1.5; }
.consentement input { width: 19px; height: 19px; margin-top: 2px; accent-color: var(--bleu); }
.consentement a { color: var(--bleu); text-decoration: underline; }
.requis { color: #C0392B; }
.carte-form .btn { margin-top: 24px; }
.est-erreur > span, .est-erreur input, .est-erreur select, .est-erreur textarea { border-color: #C0392B !important; }
.consentement.est-erreur { color: #C0392B; }
.grille-choix.est-erreur .choix > span { border-color: #C0392B; }

/* =========================================================================
   DEMANDE DE RAPPEL — panneau (AFR : bandeau bleu + carte à étapes)
   ========================================================================= */
.demande { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 24px; visibility: hidden; opacity: 0; transition: opacity .25s, visibility .25s; }
.demande.est-ouverte { visibility: visible; opacity: 1; }
.demande-fond { position: absolute; inset: 0; background: rgba(5, 12, 45, .6); backdrop-filter: blur(3px); }
.demande-boite { position: relative; width: min(1000px, 100%); max-height: calc(100vh - 48px); overflow: auto; overscroll-behavior: contain; border-radius: var(--r-carte); background: #fff; box-shadow: 0 40px 90px rgba(0, 8, 50, .45); transform: translateY(16px); transition: transform .3s; }
.demande.est-ouverte .demande-boite { transform: none; }
.demande-tete { position: relative; padding: 34px 44px 30px; background: var(--bleu); color: #fff; }
.demande-tete h2 { font: 600 clamp(24px, 2.6vw, 32px)/1.15 var(--serif); color: #fff; padding-right: 50px; }
.demande-tete p { margin-top: 8px; font-size: 15.5px; color: rgba(255, 255, 255, .8); max-width: 46em; }
.demande-fermer { position: absolute; right: 18px; top: 18px; width: 42px; height: 42px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .12); color: #fff; font-size: 26px; line-height: 1; }
.demande-fermer:hover { background: rgba(255, 255, 255, .25); }
.demande-progres { height: 4px; background: var(--ligne); }
.demande-progres span { display: block; height: 100%; width: 25%; background: var(--or); transition: width .35s; }
.stepper { list-style: none; padding: 26px 44px 22px; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); position: relative; border-bottom: 1px solid var(--ligne); counter-reset: etape; }
.stepper::before { content: ""; position: absolute; top: 40px; left: calc(44px + 12.5%); right: calc(44px + 12.5%); height: 1px; background: var(--ligne); }
.stepper li { position: relative; display: grid; justify-items: center; gap: 8px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #7A8291; counter-increment: etape; }
.stepper li::before { content: counter(etape); display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid #C9CFDB; background: #fff; color: #7A8291; font-size: 13px; letter-spacing: 0; }
.stepper li.est-actif { color: var(--bleu); }
.stepper li.est-actif::before { background: var(--bleu); border-color: var(--bleu); color: #fff; box-shadow: 0 0 0 5px var(--teinte); }
.stepper li.est-fait::before { content: "✓"; background: var(--or); border-color: var(--or); color: var(--bleu); }
.demande-form { padding: 8px 44px 36px; }
.demande-form[data-univers="immo"] .v:not(.v-immo),
.demande-form[data-univers="conso"] .v:not(.v-conso),
.demande-form[data-univers="pro"] .v:not(.v-pro),
.demande-form[data-univers="assurance"] .v:not(.v-assurance),
.demande-form[data-univers="patrimoine"] .v:not(.v-patrimoine) { display: none; }
.etape-form { display: none; border: 0; margin: 0; padding: 0; min-width: 0; }
.etape-form.est-active { display: block; animation: apparaitre .3s ease; }
@keyframes apparaitre { from { opacity: 0; transform: translateX(12px); } to { opacity: 1; transform: none; } }
.demande-titre { margin-top: 30px; font: 600 clamp(22px, 2.2vw, 28px)/1.2 var(--serif); color: var(--bleu); }
.demande-aide { margin-top: 6px; font-size: 15.5px; }
.univers { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.univers p { padding: 9px 16px; border-radius: 999px; background: var(--teinte); font-size: 14.5px; font-weight: 600; color: var(--bleu); cursor: pointer; user-select: none; }
.univers p.est-actif { background: var(--bleu); color: #fff; }
.champ-titre { margin: 28px 0 12px; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--encre); }
.grille-choix { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.grille-choix.larges { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.choix { position: relative; }
.choix input { position: absolute; opacity: 0; pointer-events: none; }
.choix > span { display: grid; justify-items: center; align-content: center; gap: 10px; min-height: 120px; padding: 18px 14px; text-align: center; border: 1.5px solid #DADFE8; border-radius: var(--r-tuile); background: #fff; font-size: 15.5px; font-weight: 700; line-height: 1.25; color: var(--encre); cursor: pointer; transition: border-color .2s, background-color .2s, color .2s, box-shadow .2s; }
.choix > span small { font-weight: 400; font-size: 12.5px; color: #7A8291; }
.choix > span .ic { width: 30px; height: 30px; color: var(--bleu); }
.choix:hover > span { border-color: var(--bleu); }
.choix input:checked + span { background: var(--bleu); border-color: var(--bleu); color: #fff; box-shadow: 0 14px 26px -12px rgba(0, 19, 122, .6); }
.choix input:checked + span .ic, .choix input:checked + span small { color: #fff; }
.choix input:focus-visible + span { box-shadow: 0 0 0 4px rgba(202, 166, 120, .6); }
.grille-choix.compacte .choix > span { min-height: 60px; grid-auto-flow: column; justify-content: start; justify-items: start; text-align: left; padding: 14px 18px; }
.grille-choix.compacte .choix > span .ic { width: 22px; height: 22px; }
.message-erreur { display: none; margin-top: 14px; font-size: 14.5px; font-weight: 600; color: #C0392B; }
.message-erreur.est-visible { display: block; }
.demande-nav { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 34px; padding-top: 24px; border-top: 1px solid var(--ligne); }
.demande-nav .precedent { border: 0; background: none; font-weight: 600; font-size: 15.5px; color: var(--texte); padding: 12px 0; }
.demande-nav .precedent:hover { color: var(--bleu); }
.demande-nav [hidden] { display: none !important; }
.demande-nav .rassurance { margin-right: auto; margin-left: 18px; font-size: 13.5px; color: #7A8291; }
.etape-ok { text-align: center; padding: 40px 0 16px; }
.etape-ok .rond-ok { display: grid; place-items: center; width: 92px; height: 92px; margin: 0 auto; border-radius: 50%; background: var(--teinte); color: var(--bleu); }
.etape-ok .rond-ok .ic { width: 42px; height: 42px; }
.etape-ok h3 { margin-top: 24px; font: 600 30px/1.2 var(--serif); }
.etape-ok p { margin: 12px auto 0; max-width: 32em; font-size: 17px; }
.etape-ok .btn { margin-top: 28px; }
.demande.est-terminee .demande-nav, .demande.est-terminee .stepper { display: none; }

/* =========================================================================
   PIED DE PAGE
   ========================================================================= */
.pied { background: #fff; color: var(--texte); padding: 72px 0 0; font-size: 15px; border-top: 4px solid var(--bleu); }
.pied-haut { display: grid; grid-template-columns: 1.3fr repeat(3, 1fr); gap: 40px; }
.pied-haut .logo img { height: 64px; width: auto; }
.pied-haut .slogan { margin-top: 18px; font: italic 500 22px/1.3 var(--serif); color: var(--bleu); }
.pied-haut .slogan em { color: var(--or-texte); }
.pied h4 { margin-bottom: 14px; font-size: 13px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--or-texte); }
.pied ul { list-style: none; padding: 0; display: grid; gap: 9px; }
.pied ul a { color: var(--encre); }
.pied ul a:hover { color: var(--bleu); text-decoration: underline; text-decoration-color: var(--or); text-underline-offset: 4px; }
.pied-legal { margin-top: 56px; padding: 28px 0 34px; background: var(--bleu); color: rgba(255, 255, 255, .62); font-size: 13px; line-height: 1.6;
  box-shadow: 0 0 0 100vmax var(--bleu); clip-path: inset(0 -100vmax); display: grid; gap: 8px; }
.pied-legal .ligne { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 30px; margin-top: 10px; font-size: 14px; color: rgba(255, 255, 255, .8); }
.pied-legal a:hover { color: #fff; }

/* =========================================================================
   ACTUALITÉS — cartes d'articles, page liste, page article
   ========================================================================= */
.actus { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-top: 52px; }
.carte-actu { display: flex; flex-direction: column; background: #fff; border-radius: var(--r-carte); overflow: hidden; box-shadow: var(--ombre); transition: transform .25s, box-shadow .25s; }
.carte-actu:hover { transform: translateY(-4px); box-shadow: 0 36px 60px -24px rgba(14, 26, 61, .3), 0 0 0 1px rgba(14, 26, 61, .05); }
.carte-actu img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.carte-actu .corps { display: flex; flex-direction: column; gap: 12px; flex: 1; padding: 24px 26px 28px; }
.meta-actu { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; font-size: 13.5px; color: #7A8291; }
.meta-actu .cat { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--or-texte); }
.meta-actu .cat + span::before, .meta-actu span + span::before { content: "·"; margin-right: 12px; color: #C9CFDB; }
.carte-actu h3 { font: 600 22px/1.25 var(--serif); color: var(--bleu); }
.carte-actu p { font-size: 16px; line-height: 1.6; }
.carte-actu .lire { margin-top: auto; padding-top: 6px; font-size: 15px; font-weight: 700; color: var(--bleu); }
.carte-actu .lire::after { content: " →"; transition: margin .2s; }
.carte-actu:hover .lire::after { margin-left: 4px; }
.actus-pied { margin-top: 46px; text-align: center; }
.section-beige .carte-actu { box-shadow: 0 20px 40px -24px rgba(14, 26, 61, .25); }

.filtres { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 34px; }
.filtres p { padding: 10px 18px; border-radius: 999px; background: #fff; font-size: 15px; font-weight: 600; color: var(--bleu); cursor: pointer; user-select: none; box-shadow: inset 0 0 0 1.5px #DADFE8; }
.filtres p.est-actif { background: var(--bleu); color: #fff; box-shadow: none; }
.carte-actu.est-masque { display: none; }
.actus-vide { display: none; margin-top: 40px; padding: 30px; border-radius: var(--r-carte); background: var(--beige); text-align: center; font-size: 17px; }
.actus-vide.est-visible { display: block; }
.actus-vide a { color: var(--bleu); font-weight: 700; text-decoration: underline; text-decoration-color: var(--or); }

.hero-article { background: var(--beige); padding: 56px 0 0; }
.hero-article .enveloppe { max-width: calc(880px + 2 * var(--marge)); }
.hero-article .meta-actu { margin-top: 6px; font-size: 14.5px; }
.hero-article h1 { margin-top: 18px; font: 500 clamp(36px, 4.4vw, 56px)/1.1 var(--serif); color: var(--bleu); letter-spacing: -.01em; }
.hero-article h1 em { font-weight: 500; }
.hero-article .chapo-article { margin-top: 22px; font: 500 clamp(19px, 1.7vw, 22px)/1.55 var(--serif); color: var(--encre); }
.image-article { margin-top: 44px; transform: translateY(70px); margin-bottom: 70px; }
.image-article img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; border-radius: var(--r-carte); box-shadow: var(--ombre); }
.article-corps { max-width: 760px; margin: 0 auto; padding: 120px 0 90px; }
.article-corps h2 { margin-top: 46px; font: 600 clamp(25px, 2.4vw, 31px)/1.25 var(--serif); color: var(--bleu); }
.article-corps h2:first-child { margin-top: 0; }
.article-corps > p { margin-top: 16px; font-size: 18px; line-height: 1.75; }
.article-corps .coches { margin-top: 18px; font-size: 17.5px; gap: 12px; }
.article-corps ol.liste-num { margin-top: 18px; padding: 0; list-style: none; counter-reset: n; display: grid; gap: 14px; }
.article-corps ol.liste-num li { display: grid; grid-template-columns: 38px 1fr; gap: 14px; font-size: 17.5px; counter-increment: n; }
.article-corps ol.liste-num li::before { content: counter(n); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--bleu); color: #fff; font: 600 15px var(--serif); box-shadow: 0 0 0 5px var(--teinte); }
.article-corps .encadre { margin-top: 34px; }
.article-corps > p a { color: var(--bleu); font-weight: 700; text-decoration: underline; text-decoration-color: var(--or); text-underline-offset: 4px; }
.article-corps .actions { margin-top: 30px; }
.auteur { display: grid; grid-template-columns: 64px 1fr; gap: 18px; align-items: center; margin-top: 54px; padding: 24px 26px; border-radius: var(--r-carte); background: var(--beige); }
.auteur .initiales { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--bleu); color: #fff; font: 600 21px var(--serif); }
.auteur b { display: block; font: 700 19px/1.2 var(--serif); color: var(--bleu); }
.auteur span { font-size: 15px; }

/* ---------- utilitaires (remplacent les styles en ligne : l'éditeur WordPress les refuse) ---------- */
.mt-0 { margin-top: 0 !important; }
.mt-18 { margin-top: 18px !important; }
.mt-22 { margin-top: 22px !important; }
.mt-32 { margin-top: 32px !important; }
.mt-34 { margin-top: 34px !important; }
.etapes.n-3 { --n: 3; }
.etapes.n-4 { --n: 4; }
.coches-carte { margin-top: 20px !important; gap: 14px !important; font-size: 16.5px !important; }
.hero-court { padding-bottom: 84px !important; }
.hero-legal { padding: 60px 0 64px !important; }
.mention-taux { margin-top: 10px !important; }
.sous-form { margin-top: 6px; font-size: 16px; }

/* ---------- mentions légales ---------- */
.texte-legal { max-width: 820px; }
.texte-legal h2 { margin-top: 50px; font: 600 26px/1.2 var(--serif); }
.texte-legal h2:first-child { margin-top: 0; }
.texte-legal p { margin-top: 12px; font-size: 17px; }
.a-completer { background: #FFF1C9; color: var(--encre); padding: 0 6px; border-radius: 4px; font-weight: 600; }

/* =========================================================================
   ADAPTATIF
   ========================================================================= */
@media (max-width: 1200px) {
  .barre-nav a { padding: 0 13px; font-size: 15px; }
  .barre-nav a:first-child { margin-left: -13px; }
  .grille-projets.quatre { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1080px) {
  .slogan-entete { display: none; }
  .barre-logo .droite { margin-left: auto; }
  .barre-nav .a-droite { margin-left: 0; }
  .barre-nav a { padding: 0 11px; gap: 7px; font-size: 14.5px; }
  .barre-nav a:first-child { margin-left: -11px; }
  /* la barre des services défile au doigt au lieu de se replier dans un menu */
  .barre-nav .enveloppe { -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent); mask-image: linear-gradient(90deg, #000 88%, transparent); }
}
@media (max-width: 960px) {
  .hero-grille, .duo, .interlocuteur, .grille-taux, .faq-grille, .contact-grille { grid-template-columns: 1fr; }
  .hero-grille { gap: 48px; }
  .duo.inverse > :first-child { order: 0; }
  .duo .photo img, .interlocuteur .photo img { aspect-ratio: 16 / 11; }
  .grille-projets { grid-template-columns: repeat(2, 1fr); }
  .colonnes { grid-template-columns: repeat(2, 1fr); row-gap: 48px; }
  .colonnes.trois, .guides, .blocs, .offres { grid-template-columns: 1fr 1fr; }
  .etapes { grid-template-columns: 1fr; gap: 30px; }
  .etapes li { display: grid; grid-template-columns: 54px 1fr; column-gap: 24px; }
  .etapes .num { grid-row: 1 / span 2; }
  .etapes h3 { margin-top: 12px; }
  .etapes li:not(:last-child)::after { top: 68px; bottom: -24px; left: 27px; right: auto; width: 1px; height: auto; }
  .chiffres { grid-template-columns: 1fr 1fr; row-gap: 34px; }
  .chiffres > div:nth-child(3) { border-left: 0; }
  .bande-cta .enveloppe { grid-template-columns: 1fr; }
  .faq-intro { position: static; }
  .pied-haut { grid-template-columns: 1fr 1fr; }
  .actus { grid-template-columns: 1fr 1fr; }
  .image-article img { aspect-ratio: 16 / 9; }
}
@media (max-width: 640px) {
  body { font-size: 16.5px; }
  .actus { grid-template-columns: 1fr; }
  .image-article { transform: translateY(40px); margin-bottom: 40px; }
  .article-corps { padding: 80px 0 60px; }
  .article-corps > p { font-size: 17px; }
  .section { padding: 72px 0; }
  .barre-logo .enveloppe { height: 74px; gap: 12px; }
  .barre-logo .logo img { height: 42px; }
  .barre-logo .droite { padding-left: 0; border-left: 0; }
  .barre-logo .btn { display: none; }
  .tel-entete b { font-size: 15.5px; }
  .tel-entete small { display: none; }
  .barre-nav .enveloppe { height: 52px; }
  .barre-nav a { padding: 0 12px; font-size: 14.5px; }
  .hero { padding: 48px 0 70px; }
  .titre-hero { font-size: 44px; }
  .actions .btn { width: 100%; }
  .colonnes, .colonnes.trois, .guides, .blocs, .offres, .deux-listes, .chiffres { grid-template-columns: 1fr; }
  .grille-projets, .grille-projets.quatre { grid-template-columns: 1fr 1fr; gap: 10px; }
  .projet { grid-template-columns: 34px 1fr; gap: 10px; padding: 14px 12px; }
  .projet .pastille { width: 34px; height: 34px; }
  .projet small, .projet .ic-chevron { display: none; }
  .projet b { font-size: 14.5px; }
  .chiffres > div + div { border-left: 0; border-top: 1px solid var(--ligne); padding-top: 28px; }
  .carte-simu, .carte-taux, .carte-form { padding: 26px 20px; }
  .resultat { flex-direction: column; align-items: start; }
  .resultat .valeur { text-align: left; }
  .table-taux { font-size: 14.5px; }
  .table-taux th, .table-taux td { padding: 12px 5px; }
  .faq summary { font-size: 16.5px; }
  .faq details > p, .faq details > ul { padding-right: 0; }
  .champs { grid-template-columns: 1fr; }
  .pied-haut { grid-template-columns: 1fr; }
  .hero-photo { padding: 80px 0 70px; }
  .ronds-services { gap: 22px 26px; }
  .ronds-services .rond { width: 70px; height: 70px; }
  .demande { padding: 0; }
  .demande-boite { max-height: 100vh; height: 100%; border-radius: 0; }
  .demande-tete { padding: 24px 20px 22px; }
  .stepper { padding: 20px 12px 16px; }
  .stepper::before { left: calc(12px + 12.5%); right: calc(12px + 12.5%); top: 34px; }
  .stepper li { font-size: 0; }
  .demande-form { padding: 4px 20px 28px; }
  .grille-choix { grid-template-columns: repeat(2, 1fr); }
  .grille-choix.larges { grid-template-columns: 1fr; }
  .choix > span { min-height: 100px; font-size: 14.5px; }
  .demande-nav .rassurance { display: none; }
}


/* =========================================================================
   COUCHE WORDPRESS — adaptations au balisage des blocs natifs.
   Tout ce qui précède est le CSS de la maquette, inchangé. Ici : les composants
   dont les icônes et décors passent en pseudo-éléments, et les neutralisations
   des styles par défaut des blocs (imprimés avec une spécificité égale ou plus faible).
   ========================================================================= */

/* ---------- neutralisations (blockGap = 0px dans theme.json ; filet à spécificité nulle) ---------- */
:where(.wp-block-group) > :where(*), :where(.wp-block-buttons) { margin-block: 0; }
.wp-site-blocks { padding: 0; }
.wp-site-blocks > * + * { margin-block-start: 0; }
figure.wp-block-image, .wp-block-post-featured-image, figure.wp-block-table { margin: 0; }
img { height: auto; }
.champ-piege { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.est-masque { display: none !important; }
main.wp-block-group { margin: 0; }

/* ---------- en-tête : la barre du logo défile, la barre des services reste collée ---------- */
header.wp-block-template-part { position: sticky; top: -97px; z-index: 60; }
.admin-bar header.wp-block-template-part { top: -65px; }
.barre-logo .wp-block-site-logo { line-height: 0; }
.barre-logo .wp-block-site-logo img, .barre-logo .logo img { height: 62px !important; width: auto !important; max-width: none; }
.tel-entete a { display: block; font-size: 12.5px; line-height: 1.15; color: var(--texte); text-align: right; }
.tel-entete strong { display: block; font-size: 20px; font-weight: 800; letter-spacing: .01em; color: var(--bleu); }
.tel-entete br { display: none; }
.barre-logo .wp-block-buttons { gap: 0; }
.barre-logo .wp-block-button.btn > .wp-block-button__link { padding: 15px 20px; font-size: 15px; box-shadow: none; }
.barre-logo .wp-block-button.btn > .wp-block-button__link::after { content: none; }

.barre-nav .enveloppe { display: block; height: auto; overflow: visible; -webkit-mask-image: none; mask-image: none; }
.barre-nav .menu-services { display: block; width: 100%; }
.barre-nav .menu-services ul.wp-block-navigation__container {
  display: flex; flex-wrap: nowrap; align-items: stretch; gap: 0; width: 100%; height: 58px; margin: 0; padding: 0;
  overflow-x: auto; scrollbar-width: none;
}
.barre-nav .menu-services ul.wp-block-navigation__container::-webkit-scrollbar { display: none; }
.barre-nav .menu-services .wp-block-navigation-item { flex: none; display: flex; }
.barre-nav .menu-services .wp-block-navigation-item__content {
  display: inline-flex; align-items: center; gap: 9px; height: 100%; padding: 0 18px; white-space: nowrap;
  font-size: 15.5px; font-weight: 600; color: rgba(255, 255, 255, .9); text-decoration: none;
  border-top: 3px solid transparent; border-bottom: 3px solid transparent; transition: background-color .2s, color .2s, border-color .2s;
}
/* la maquette retire la marge du premier et du dernier lien (a:first-child / a:last-child) ;
   ici chaque lien est seul dans son <li> : on remet toutes les marges à zéro, puis on cible les <li> */
.barre-nav .menu-services .wp-block-navigation-item__content { margin: 0; }
.barre-nav .menu-services .wp-block-navigation-item:first-child > .wp-block-navigation-item__content { margin-left: -18px; }
.barre-nav .menu-services .wp-block-navigation-item:last-child > .wp-block-navigation-item__content { margin-right: -18px; }
.barre-nav .menu-services .wp-block-navigation-item[class*="ic-"] > .wp-block-navigation-item__content::before {
  content: ""; width: 17px; height: 17px; flex: none; background: var(--or);
  -webkit-mask: var(--i) center / contain no-repeat; mask: var(--i) center / contain no-repeat;
}
.barre-nav .menu-services .wp-block-navigation-item__content:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.barre-nav .menu-services .est-courant > .wp-block-navigation-item__content { color: #fff; border-bottom-color: var(--or); background: rgba(255, 255, 255, .07); }
.barre-nav .menu-services .a-droite { margin-left: auto; }

/* ---------- boutons : la classe du bloc est sur le conteneur, le style sur le lien ---------- */
.wp-block-buttons { gap: 16px; }
.wp-block-button.btn { display: inline-flex; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; color: inherit; }
.wp-block-button.btn::after { content: none; }
.wp-block-button.btn > .wp-block-button__link {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px; padding: 19px 28px; border: 0;
  border-radius: var(--r-btn); font: 700 16.5px/1 var(--sans); letter-spacing: .005em; white-space: nowrap; text-decoration: none;
  transition: background-color .2s, color .2s, box-shadow .2s, transform .2s;
}
.wp-block-button.btn-plein > .wp-block-button__link { background: var(--bleu); color: #fff; box-shadow: 0 12px 24px -10px rgba(0, 19, 122, .55); }
.wp-block-button.btn-plein > .wp-block-button__link:hover { background: var(--bleu-hover); transform: translateY(-1px); }
.wp-block-button.btn-plein > .wp-block-button__link::after,
.wp-block-button.btn-or > .wp-block-button__link::after { content: "→"; font-weight: 500; transition: transform .2s; }
.wp-block-button.btn > .wp-block-button__link:hover::after { transform: translateX(4px); }
.wp-block-button.btn-contour > .wp-block-button__link { background: transparent; color: var(--bleu); box-shadow: inset 0 0 0 2px var(--bleu); }
.wp-block-button.btn-contour > .wp-block-button__link:hover { background: var(--bleu); color: #fff; }
.wp-block-button.btn-or > .wp-block-button__link { background: var(--or); color: var(--bleu); }
.wp-block-button.btn-or > .wp-block-button__link:hover { background: #d6b88f; }
.wp-block-button.btn-blanc > .wp-block-button__link { background: transparent; color: #fff; box-shadow: inset 0 0 0 2px #fff; text-transform: uppercase; letter-spacing: .03em; padding: 22px 34px; }
.wp-block-button.btn-blanc > .wp-block-button__link:hover { background: #fff; color: var(--bleu); }
.hero-photo .wp-block-button.btn-blanc > .wp-block-button__link { text-transform: none; letter-spacing: .005em; padding: 19px 28px; }
.carte-taux .wp-block-buttons { margin-top: 22px; }
.carte-taux .wp-block-button.btn, .carte-taux .wp-block-button.btn > .wp-block-button__link { width: 100%; margin-top: 0; }
.faq-intro .wp-block-buttons { margin-top: 30px; }
.faq-intro .wp-block-button.btn { margin-top: 0; }
.hero-photo .actions { justify-content: center; }

/* ---------- tuiles « Quel est votre projet ? » : pastille et icône en pseudo-éléments ---------- */
.wp-block-group.projet {
  position: relative; display: grid; grid-template-columns: 42px 1fr; grid-template-rows: auto auto; column-gap: 16px; align-content: center;
  padding: 18px 46px 18px 18px; border-radius: var(--r-tuile); cursor: pointer; text-align: left;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23CAA678' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 5 7 7-7 7'/%3E%3C/svg%3E") right 20px center / 18px no-repeat;
}
.wp-block-group.projet::before { content: ""; grid-row: 1 / span 2; grid-column: 1; align-self: center; width: 42px; height: 42px; border-radius: 10px; background: var(--teinte); }
.wp-block-group.projet::after { content: ""; position: absolute; left: 27px; top: 50%; width: 24px; height: 24px; margin-top: -12px; background: var(--bleu); -webkit-mask: var(--i) center / contain no-repeat; mask: var(--i) center / contain no-repeat; }
.wp-block-group.projet .sur { grid-column: 2; font-size: 11.5px; font-weight: 700; letter-spacing: .09em; line-height: 1.3; text-transform: uppercase; color: #6B7280; }
.wp-block-group.projet .nom { grid-column: 2; font-size: 17px; font-weight: 700; line-height: 1.25; color: var(--encre); }
.wp-block-group.projet:focus-visible { outline: 3px solid var(--or); outline-offset: 2px; }

/* ---------- colonnes « Pourquoi choisir » : rond et icône ---------- */
.colonnes > .colonne { position: relative; }
.colonnes > .colonne::before { content: ""; display: block; width: 76px; height: 76px; margin: 0 auto 24px; border-radius: 50%; background: var(--teinte); }
.colonnes > .colonne::after { content: ""; position: absolute; top: 22px; left: 50%; width: 32px; height: 32px; margin-left: -16px; background: var(--bleu); -webkit-mask: var(--i) center / contain no-repeat; mask: var(--i) center / contain no-repeat; }

/* ---------- pastilles rondes des services (héros photo) ---------- */
/* l'écart entre pastilles vient de la maquette (28/46 px, puis 22/26 px sur mobile) : ne pas le redéfinir ici */
.ronds-services { display: flex; justify-content: center; flex-wrap: wrap; }
/* largeur minimale = diamètre du rond, comme dans la maquette où le rond est un vrai élément */
.rond-service a { position: relative; display: grid; justify-items: center; min-width: 84px; padding-top: 96px; font-size: 15.5px; font-weight: 600; color: #fff; }
.rond-service a::before { content: ""; position: absolute; top: 0; left: 50%; width: 84px; height: 84px; margin-left: -42px; border-radius: 50%; background: #fff; transition: box-shadow .2s; }
.rond-service a::after { content: ""; position: absolute; top: 24px; left: 50%; width: 36px; height: 36px; margin-left: -18px; background: var(--bleu); -webkit-mask: var(--i) center / contain no-repeat; mask: var(--i) center / contain no-repeat; }
.rond-service a:hover::before { box-shadow: 0 0 0 5px rgba(202, 166, 120, .6); }

/* ---------- étapes : numéros par compteur CSS ---------- */
.etapes { counter-reset: etape; }
.etapes > .etape { position: relative; counter-increment: etape; }
.etapes > .etape::before { content: counter(etape); display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; background: var(--bleu); color: #fff; font: 600 20px var(--serif); box-shadow: 0 0 0 7px var(--teinte); }
.etapes > .etape:not(:last-child)::after { content: ""; position: absolute; top: 27px; left: 84px; right: -18px; height: 1px; background: var(--ligne); }

/* ---------- chiffres, puces, coches, note ---------- */
.chiffres .valeur { display: block; font: 600 clamp(40px, 4vw, 54px)/1 var(--serif); color: var(--bleu); }
.chiffres .libelle { margin-top: 14px; font-size: 15.5px; line-height: 1.45; }
.puce::before, .atouts li::before, .coches li::before {
  content: ""; background: var(--or);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4.5 12.5 5 5L20 7'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4.5 12.5 5 5L20 7'/%3E%3C/svg%3E") center / contain no-repeat;
}
.puce::before { width: 14px; height: 14px; flex: none; background: var(--or-texte); }
.atouts li { position: relative; display: inline-block; padding-left: 24px; }
.atouts li::before { position: absolute; left: 0; top: 50%; width: 16px; height: 16px; margin-top: -8px; }
.coches li { position: relative; display: block; padding-left: 30px; }
.coches li::before { position: absolute; left: 0; top: 4px; width: 18px; height: 18px; margin: 0; }
.note::before { content: "✓"; display: grid; place-items: center; flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--teinte); color: var(--bleu); font-size: 12px; font-weight: 800; }

/* ---------- titres de blocs avec pastille, coordonnées ---------- */
.bloc h3.avec-ic { position: relative; }
.bloc h3.avec-ic::before { content: ""; flex: none; width: 42px; height: 42px; border-radius: 10px; background: var(--teinte); }
.bloc h3.avec-ic::after { content: ""; position: absolute; left: 9px; top: 50%; width: 24px; height: 24px; margin-top: -12px; background: var(--bleu); -webkit-mask: var(--i) center / contain no-repeat; mask: var(--i) center / contain no-repeat; }
.coordonnee { position: relative; display: grid; grid-template-columns: 50px 1fr; grid-template-rows: auto auto; column-gap: 16px; align-content: center; }
.coordonnee::before { content: ""; grid-row: 1 / span 2; align-self: center; width: 50px; height: 50px; border-radius: 12px; background: var(--teinte); }
.coordonnee::after { content: ""; position: absolute; left: 33px; top: 50%; width: 24px; height: 24px; margin-top: -12px; background: var(--bleu); -webkit-mask: var(--i) center / contain no-repeat; mask: var(--i) center / contain no-repeat; }
.coordonnee .libelle-coord { grid-column: 2; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #7A8291; }
.coordonnee .valeur-coord { grid-column: 2; font-size: 17.5px; font-weight: 700; color: var(--encre); word-break: break-word; }
.coordonnee .valeur-coord a { color: inherit; }

/* ---------- héros photo, carte photo, tableau des taux ---------- */
.hero-photo > .fond-hero { position: absolute; inset: 0; z-index: -2; height: 100%; margin: 0; }
.hero-photo > .fond-hero img { width: 100%; height: 100%; object-fit: cover; }
.carte-photo .wp-element-caption { position: absolute; left: 18px; right: 18px; bottom: 18px; margin: 0; padding: 18px 20px; border-radius: 14px; background: rgba(255, 255, 255, .96); font-size: 14.5px; line-height: 1.5; text-align: left; color: var(--texte); }
.carte-photo .wp-element-caption strong { display: block; font: 600 20px/1.2 var(--serif); color: var(--bleu); }
.carte-photo .wp-element-caption br { display: none; }
figure.wp-block-table.table-taux { margin-top: 20px; overflow-x: auto; }
.wp-block-table.table-taux table { width: 100%; border-collapse: collapse; font-size: 16.5px; }
.wp-block-table.table-taux thead { border-bottom: 0; }
.wp-block-table.table-taux th, .wp-block-table.table-taux td { border: 0; border-bottom: 1px solid var(--ligne); padding: 15px 10px; }
.wp-block-table.table-taux tbody tr:last-child td { border-bottom: 0; }

/* ---------- actualités : boucle de requête ---------- */
ul.actus { margin: 52px 0 0; padding: 0; list-style: none; }
.actus > li { display: flex; flex-direction: column; margin: 0; background: #fff; border-radius: var(--r-carte); overflow: hidden; box-shadow: var(--ombre); transition: transform .25s, box-shadow .25s; }
.actus > li:hover { transform: translateY(-4px); box-shadow: 0 36px 60px -24px rgba(14, 26, 61, .3), 0 0 0 1px rgba(14, 26, 61, .05); }
.section-beige .actus > li { box-shadow: 0 20px 40px -24px rgba(14, 26, 61, .25); }
.actus .vignette { margin: 0; }
.actus .vignette img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.actus .corps { display: flex; flex-direction: column; gap: 12px; flex: 1; padding: 24px 26px 28px; }
.meta-actu .cat, .meta-actu .cat a { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--or-texte); }
.meta-actu .wp-block-post-date::before { content: "·"; margin-right: 12px; color: #C9CFDB; }
.actus .wp-block-post-title { margin: 0; font: 600 22px/1.25 var(--serif); color: var(--bleu); }
.actus .wp-block-post-title a { color: inherit; }
.actus .wp-block-post-excerpt { margin: 0; }
.actus .wp-block-post-excerpt__excerpt { margin: 0; font-size: 16px; line-height: 1.6; }
.actus .wp-block-read-more.lire { margin-top: auto; padding-top: 6px; font-size: 15px; font-weight: 700; color: var(--bleu); }
.actus .wp-block-read-more.lire::after { content: " →"; }
.pagination { display: flex; justify-content: center; gap: 12px; margin-top: 44px; font-weight: 600; color: var(--bleu); }
.filtres { align-items: center; }
.filtres p.tout { padding: 0; background: none; box-shadow: none; }
.filtres .wp-block-categories { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.filtres .tout a, .filtres .cat-item a { display: inline-block; padding: 10px 18px; border-radius: 999px; background: #fff; font-size: 15px; font-weight: 600; color: var(--bleu); box-shadow: inset 0 0 0 1.5px #DADFE8; }
.filtres .current-cat a, .blog .filtres .tout a { background: var(--bleu); color: #fff; box-shadow: none; }

/* ---------- page article ---------- */
.hero-article .wp-block-post-title { margin-top: 18px; font: 500 clamp(36px, 4.4vw, 56px)/1.1 var(--serif); color: var(--bleu); letter-spacing: -.01em; }
.hero-article .chapo-article { margin: 0; }
.hero-article .chapo-article .wp-block-post-excerpt__excerpt { margin-top: 22px; font: 500 clamp(19px, 1.7vw, 22px)/1.55 var(--serif); color: var(--encre); }
.hero-article .meta-actu { margin-top: 6px; font-size: 14.5px; }
.article-corps .wp-block-post-content > p { margin-top: 16px; font-size: 18px; line-height: 1.75; }
.article-corps .wp-block-post-content > p a { color: var(--bleu); font-weight: 700; text-decoration: underline; text-decoration-color: var(--or); text-underline-offset: 4px; }
.article-corps .wp-block-post-content > h2:first-child { margin-top: 0; }
.auteur strong { display: block; font: 700 19px/1.2 var(--serif); color: var(--bleu); }
.auteur p:last-child { font-size: 15px; }
.auteur br { display: none; }

/* ---------- pied de page ---------- */
.pied-haut .wp-block-site-logo img { height: 64px !important; width: auto !important; }
.pied ul.wp-block-list { padding: 0; }
.pied-legal .ligne { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 30px; }

/* ---------- correctifs de recette 1.0.1 ---------- */
/* collision de classe : « .nom » désigne aussi le nom du fondateur (bloc interlocuteur, règle !important) */
.wp-block-group.projet .nom { margin-top: 0 !important; font: 700 17px/1.25 var(--sans) !important; color: var(--encre); }
/* le titre d'étape est le premier enfant du groupe : la règle :first-child du flux WordPress annulait sa marge */
.etapes > .etape > h3 { margin-top: 28px; }

/* ---------- correctifs de recette 1.0.3 ---------- */
/* tuiles : la maquette empile « Demande en 2 min » et le nom dans un seul bloc ; ici ce sont deux lignes de grille,
   l'écart de 16 px hérité de la maquette (gap) s'intercalait entre elles (+12 px par tuile) */
.wp-block-group.projet { row-gap: 0; }
.wp-block-group.projet .sur { line-height: 1.65; }
/* actualités : la liste est le premier enfant du bloc Requête, la règle :first-child du flux annulait sa marge de 52 px */
.wp-block-query > ul.actus { margin-top: 52px; }
/* méta des cartes : la maquette l'affiche en 16 px (règle .carte-actu p), mois avec majuscule */
.actus .meta-actu { font-size: 16px; line-height: 1.6; }
.meta-actu .wp-block-post-date { text-transform: capitalize; }
/* image d'article : marges haute et basse annulées par le flux WordPress */
.hero-article .wp-block-post-featured-image.image-article { margin-top: 44px; margin-bottom: 70px; }
/* encart auteur : dans la maquette le texte est un span dans un bloc de 16,5 px, d'où un interligne de 27,2 px */
.auteur p:last-child { line-height: 1.815; }
/* coordonnées : libellé et valeur sont deux lignes de grille, l'écart de 16 px de la maquette s'intercalait entre elles */
.coordonnee { row-gap: 0; }

/* ---------- adaptatif ---------- */
@media (max-width: 1200px) {
  .barre-nav .menu-services .wp-block-navigation-item__content { padding: 0 13px; font-size: 15px; }
  .barre-nav .menu-services .wp-block-navigation-item:first-child > .wp-block-navigation-item__content { margin-left: -13px; }
}
@media (max-width: 1080px) {
  .barre-nav .menu-services ul.wp-block-navigation__container { -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent); mask-image: linear-gradient(90deg, #000 88%, transparent); }
  .barre-nav .menu-services .a-droite { margin-left: 0; }
  .barre-nav .menu-services .wp-block-navigation-item__content { padding: 0 11px; gap: 7px; font-size: 14.5px; }
  .barre-nav .menu-services .wp-block-navigation-item:first-child > .wp-block-navigation-item__content { margin-left: -11px; }
}
@media (max-width: 960px) {
  .etapes > .etape { display: grid; grid-template-columns: 54px 1fr; column-gap: 24px; }
  .etapes > .etape::before { grid-row: 1 / span 2; }
  .etapes > .etape h3 { margin-top: 12px; }
  .etapes > .etape:not(:last-child)::after { top: 68px; bottom: -24px; left: 27px; right: auto; width: 1px; height: auto; }
}
@media (max-width: 782px) { .admin-bar header.wp-block-template-part { top: -51px; } }
@media (max-width: 640px) {
  header.wp-block-template-part { top: -75px; }
  .hero-article .wp-block-post-featured-image.image-article { margin-bottom: 40px; }
  .article-corps .wp-block-post-content > p { font-size: 17px; }
  .barre-logo .wp-block-site-logo img, .barre-logo .logo img { height: 42px !important; }
  .barre-logo .wp-block-buttons { display: none; }
  .tel-entete a { font-size: 0; }
  .tel-entete strong { font-size: 15.5px; }
  .barre-nav .menu-services ul.wp-block-navigation__container { height: 52px; }
  .barre-nav .menu-services .wp-block-navigation-item__content { padding: 0 12px; font-size: 14.5px; }
  .actions .wp-block-button.btn, .actions .wp-block-button.btn > .wp-block-button__link { width: 100%; }
  .wp-block-group.projet { grid-template-columns: 34px 1fr; column-gap: 10px; padding: 14px 12px; background-image: none; }
  .wp-block-group.projet::before { width: 34px; height: 34px; }
  .wp-block-group.projet::after { left: 19px; width: 20px; height: 20px; margin-top: -10px; }
  .wp-block-group.projet .sur { display: none; }
  .wp-block-group.projet .nom { grid-row: 1 / span 2; font-size: 14.5px !important; }
  .rond-service a { min-width: 70px; padding-top: 82px; }
  .rond-service a::before { width: 70px; height: 70px; margin-left: -35px; }
  .rond-service a::after { top: 19px; width: 32px; height: 32px; margin-left: -16px; }
  .wp-block-table.table-taux table { font-size: 14.5px; }
  .wp-block-table.table-taux th, .wp-block-table.table-taux td { padding: 12px 5px; }
}
