/* Polices hébergées sur le site (licence SIL OFL, voir assets/fonts) */
@font-face { font-family: "Figtree"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/figtree-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Figtree"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/figtree-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Figtree"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/figtree-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/bricolage-grotesque-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/bricolage-grotesque-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 800; font-display: swap; src: url("../fonts/bricolage-grotesque-latin-800-normal.woff2") format("woff2"); }

/* HorecaLink Afrique — feuille de style unique
   Couleurs reprises du logo (marine + bleu Afrique), accent doré. */

:root {
  --marine: #083F73;
  --marine-fonce: #052A4E;
  --bleu: #4B97CC;
  --bleu-fonce: #2F6FA3; /* bleu lisible sur fond clair (5.3:1) */
  --brume: #EAF2F9;
  --encre: #13243A;
  --texte: #3A4D63;
  --trait: #D4E1EE;
  --dore: #D4AF37;
  --dore-fonce: #BF9A2A;
  --blanc: #FFFFFF;

  --f-titre: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --f-texte: "Figtree", "Segoe UI", system-ui, sans-serif;

  --mesure: 68ch;
  --large: 1180px;
  --gouttiere: clamp(16px, 4vw, 40px);
  --rayon: 14px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  background: var(--blanc);
  color: var(--texte);
  font-family: var(--f-texte);
  font-size: 1.0625rem;
  line-height: 1.65;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--marine); text-underline-offset: 3px; }
a:hover { color: var(--bleu-fonce); }
:focus-visible { outline: 3px solid var(--marine); outline-offset: 3px; border-radius: 4px; }
/* Sur fond marine, l'anneau passe en or (5:1) */
.section-marine :focus-visible, .bandeau :focus-visible, .encart :focus-visible, .pied :focus-visible { outline-color: var(--dore); }

h1, h2, h3, h4 {
  font-family: var(--f-titre);
  color: var(--marine);
  line-height: 1.12;
  margin: 0 0 .5em;
  letter-spacing: -0.015em;
}
h1 { font-size: clamp(2.1rem, 5.2vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.35rem); font-weight: 700; }
h3 { font-size: 1.3rem; font-weight: 700; }
p { margin: 0 0 1em; }
ul { margin: 0 0 1em; padding-left: 1.2em; }
li { margin-bottom: .35em; }
li::marker { color: var(--bleu); }
strong { color: var(--encre); font-weight: 600; }

.conteneur { width: 100%; max-width: var(--large); margin: 0 auto; padding: 0 var(--gouttiere); }
.mesure { max-width: var(--mesure); }
.lien-evitement {
  position: absolute; left: -999px; top: 8px; background: var(--marine); color: #fff;
  padding: 8px 14px; z-index: 100; border-radius: 6px;
}
.lien-evitement:focus { left: 8px; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font-family: var(--f-titre); font-weight: 700; font-size: 1rem;
  padding: .85em 1.4em; border-radius: 999px; text-decoration: none;
  border: 2px solid transparent; cursor: pointer; transition: background .15s, color .15s, border-color .15s;
}
.btn-principal { background: var(--dore); color: var(--marine-fonce); }
.btn-principal:hover { background: var(--dore-fonce); color: var(--marine-fonce); }
.btn-contour { border-color: var(--marine); color: var(--marine); background: transparent; }
.btn-contour:hover { background: var(--marine); color: #fff; }
.btn-clair { border-color: rgba(255,255,255,.7); color: #fff; }
.btn-clair:hover { background: #fff; color: var(--marine); }

/* ---------- En-tête ---------- */
.entete { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--trait); backdrop-filter: saturate(1.4) blur(6px); }
.entete .conteneur { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 76px; }
.logo img { width: 210px; height: auto; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  font-family: var(--f-titre); font-weight: 600; font-size: .98rem; color: var(--encre);
  text-decoration: none; padding: 8px 12px; border-radius: 8px;
}
.nav a:hover { color: var(--marine); background: var(--brume); }
.nav a[aria-current="page"] { color: var(--marine); box-shadow: inset 0 -3px 0 var(--bleu); border-radius: 0; }
.nav .btn { margin-left: 10px; padding: .6em 1.1em; }
.nav .btn:hover { background: var(--dore-fonce); }
.sous-menu { position: relative; }
.sous-menu > button {
  font: 600 .98rem var(--f-titre); color: var(--encre); background: none; border: 0;
  padding: 8px 12px; border-radius: 8px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px;
}
.sous-menu > button:hover { background: var(--brume); color: var(--marine); }
.sous-menu > button::after { content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); }
.sous-menu ul {
  list-style: none; margin: 0; padding: 10px; position: absolute; top: calc(100% + 8px); left: -10px;
  background: #fff; border: 1px solid var(--trait); border-radius: var(--rayon);
  box-shadow: 0 18px 40px rgba(8,63,115,.14); min-width: 300px; display: none;
}
.sous-menu ul li { margin: 0; }
.sous-menu ul a { display: block; padding: 9px 12px; }
.sous-menu.ouvert ul { display: block; }
.burger { display: none; background: none; border: 2px solid var(--marine); border-radius: 10px; width: 46px; height: 44px; cursor: pointer; padding: 0; }
.burger span, .burger span::before, .burger span::after { display: block; width: 20px; height: 2px; background: var(--marine); margin: 0 auto; position: relative; }
.burger span::before, .burger span::after { content: ""; position: absolute; left: 0; }
.burger span::before { top: -6px; } .burger span::after { top: 6px; }

@media (max-width: 980px) {
  .burger { display: block; }
  .logo img { width: 170px; }
  .nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff;
    flex-direction: column; align-items: stretch; padding: 12px var(--gouttiere) 22px; border-bottom: 1px solid var(--trait);
    box-shadow: 0 20px 30px rgba(8,63,115,.12); max-height: calc(100vh - 76px); overflow-y: auto;
  }
  .nav.ouvert { display: flex; }
  .nav a, .sous-menu > button { padding: 12px 6px; font-size: 1.05rem; width: 100%; text-align: left; }
  .nav a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--bleu); padding-left: 12px; }
  .sous-menu ul { position: static; box-shadow: none; border: 0; padding: 0 0 0 12px; min-width: 0; display: block; }
  .sous-menu > button { display: none; }
  .nav .btn { margin: 12px 0 0; }
}

/* ---------- Héros d'accueil : photo sous cloche ---------- */
.heros { padding: clamp(36px, 6vw, 80px) 0 clamp(48px, 7vw, 96px); background: linear-gradient(180deg, var(--brume) 0%, #fff 100%); overflow: hidden; }
.heros .conteneur { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.heros h1 { max-width: 15ch; }
.heros .chapo { font-size: clamp(1.1rem, 1.6vw, 1.25rem); color: var(--encre); max-width: 46ch; margin-bottom: 1.6em; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.heros .rassurance { margin-top: 28px; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px 22px; font-weight: 600; color: var(--marine); font-size: .98rem; }
.heros .rassurance li { display: flex; align-items: center; gap: 8px; margin: 0; }
.heros .rassurance li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--bleu); }

.cloche { position: relative; max-width: 440px; margin: 46px auto 0; }
.cloche img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 999px 999px 18px 18px; }
.cloche::before { /* contour du couvercle, comme dans le logo */
  content: ""; position: absolute; inset: -16px -16px 22% -16px;
  border: 4px solid var(--marine); border-bottom: 0; border-radius: 999px 999px 0 0; pointer-events: none;
}
.cloche::after { /* bouton de la cloche */
  content: ""; position: absolute; top: -40px; left: 50%; width: 30px; height: 30px; margin-left: -15px;
  border: 4px solid var(--marine); border-radius: 50%; background: var(--brume);
}
.cloche .socle { position: absolute; left: -34px; right: -34px; bottom: -10px; height: 8px; border-radius: 8px; background: var(--marine); }

@media (max-width: 860px) {
  .heros .conteneur { grid-template-columns: 1fr; }
  .cloche { max-width: 300px; margin-top: 56px; }
}

/* ---------- Sections ---------- */
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section-brume { background: var(--brume); }
.section-marine { background: var(--marine); color: #DCE8F4; }
.section-marine h2, .section-marine h3 { color: #fff; }
.intro-section { max-width: 60ch; margin-bottom: clamp(28px, 4vw, 48px); }
.intro-section p { font-size: 1.1rem; }

/* Pôles principaux : deux grandes lignes, le reste en liste */
.poles { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 3vw, 36px); margin-bottom: clamp(36px, 5vw, 56px); }
.pole { border-top: 4px solid var(--marine); padding-top: 22px; }
.pole h3 { font-size: clamp(1.4rem, 2.4vw, 1.75rem); }
.pole ul { padding-left: 1.1em; }
.pole .lien-fort { font-family: var(--f-titre); font-weight: 700; text-decoration: none; display: inline-block; margin-top: 4px; padding: 10px 0; }
.pole .lien-fort:hover { text-decoration: underline; }
.autres-services { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); column-gap: 32px; border-top: 1px solid var(--trait); }
.autres-services li { margin: 0; border-bottom: 1px solid var(--trait); }
.autres-services a { display: block; padding: 18px 18px 18px 0; text-decoration: none; color: var(--texte); height: 100%; }
.autres-services a strong { display: block; font-family: var(--f-titre); color: var(--marine); font-size: 1.08rem; margin-bottom: 2px; }
.autres-services a:hover strong { color: var(--bleu-fonce); text-decoration: underline; }
@media (max-width: 860px) { .autres-services { grid-template-columns: 1fr 1fr; } }
@media (max-width: 760px) { .poles { grid-template-columns: 1fr; } .autres-services { grid-template-columns: 1fr; } }

/* Étapes : vrai processus séquentiel */
.etapes { list-style: none; counter-reset: etape; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.etapes li { counter-increment: etape; margin: 0; padding: 0 22px 0 0; position: relative; }
.etapes li::before {
  content: counter(etape); display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
  background: var(--bleu-fonce); color: #fff; font: 800 1.15rem var(--f-titre); margin-bottom: 16px; position: relative; z-index: 1;
}
.etapes li::after { content: ""; position: absolute; top: 22px; left: 46px; right: 0; height: 2px; background: rgba(255,255,255,.25); }
.etapes li:last-child::after { display: none; }
.etapes h3 { font-size: 1.15rem; margin-bottom: .35em; }
.etapes p { font-size: .98rem; margin: 0; }
@media (max-width: 860px) {
  .etapes { grid-template-columns: 1fr; gap: 26px; }
  .etapes li { padding: 0 0 0 66px; }
  .etapes li::before { position: absolute; left: 0; top: 0; margin: 0; }
  .etapes li::after { top: 46px; left: 22px; width: 2px; height: calc(100% - 20px); right: auto; }
}

/* Portrait de la dirigeante */
.portrait { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.portrait figure { margin: 0; }
.portrait img { width: 100%; max-width: 380px; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 999px 999px 16px 16px; }
.portrait .signature { font-family: var(--f-titre); font-weight: 700; color: var(--marine); margin: 0; }
.portrait .fonction { margin: 0; font-size: .95rem; }
@media (max-width: 760px) { .portrait { grid-template-columns: 1fr; } .portrait img { max-width: 280px; } }

/* Bandeau d'appel à l'action */
.bandeau { background: var(--marine); color: #DCE8F4; padding: clamp(44px, 6vw, 72px) 0; }
.bandeau .conteneur { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.bandeau h2 { color: #fff; margin-bottom: .25em; }
.bandeau p { margin: 0; max-width: 52ch; }

/* ---------- Pages de service ---------- */
.entete-page { background: var(--brume); padding: clamp(28px, 4vw, 48px) 0 clamp(40px, 6vw, 72px); }
.fil { font-size: .92rem; margin-bottom: 18px; }
.fil ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.fil li { margin: 0; }
.fil li + li::before { content: "/"; margin-right: 6px; color: var(--bleu); }
.fil a { color: var(--texte); }
.entete-page .grille { display: grid; grid-template-columns: 1.3fr .7fr; gap: clamp(24px, 5vw, 64px); align-items: end; }
.entete-page.sans-image .grille { grid-template-columns: 1fr; }
.entete-page h1 { font-size: clamp(2rem, 4.6vw, 3.1rem); max-width: 20ch; }
.entete-page .chapo { font-size: clamp(1.08rem, 1.5vw, 1.22rem); color: var(--encre); max-width: 56ch; }
.entete-page figure { margin: 0; }
.entete-page figure img { width: 100%; max-width: 340px; margin-left: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 999px 999px 16px 16px; }
@media (max-width: 860px) { .entete-page .grille { grid-template-columns: 1fr; } .entete-page figure img { max-width: 260px; margin: 0; } }

.contenu { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(32px, 5vw, 72px); align-items: start; }
.contenu article > section { margin-bottom: clamp(36px, 5vw, 56px); }
.contenu article > section:last-child { margin-bottom: 0; }
.liste-detail { list-style: none; padding: 0; margin: 0; }
.liste-detail li { padding: 16px 0; border-bottom: 1px solid var(--trait); margin: 0; }
.liste-detail li:first-child { border-top: 1px solid var(--trait); }
.liste-detail h3 { font-size: 1.12rem; margin-bottom: .3em; }
.liste-detail p { margin: 0; }
.liste-colonnes { columns: 2; column-gap: 40px; }
.liste-colonnes li { break-inside: avoid; }
@media (max-width: 600px) { .liste-colonnes { columns: 1; } }

.encart { position: sticky; top: 100px; background: var(--marine); color: #DCE8F4; border-radius: var(--rayon); padding: 28px; }
.encart h2 { color: #fff; font-size: 1.35rem; }
.encart p { font-size: .98rem; }
.encart .btn { width: 100%; margin-top: 6px; }
.encart .tel { display: block; margin-top: 18px; color: #fff; font-weight: 600; text-decoration: none; }
.encart .tel:hover { text-decoration: underline; }
@media (max-width: 960px) { .contenu { grid-template-columns: 1fr; } .encart { position: static; } }

.formules { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 1px solid var(--trait); border-radius: var(--rayon); overflow: hidden; }
.formule { padding: 24px; border-right: 1px solid var(--trait); }
.formule:last-child { border-right: 0; }
.formule h3 { margin-bottom: .2em; }
.formule .cible { font-size: .94rem; margin-bottom: .8em; }
.formule .prix { font-family: var(--f-titre); font-weight: 700; color: var(--marine); background: var(--brume); display: inline-block; padding: 4px 12px; border-radius: 999px; font-size: .95rem; margin-bottom: 1em; }
.formule ul { font-size: .97rem; padding-left: 1.1em; margin: 0; }
@media (max-width: 860px) { .formules { grid-template-columns: 1fr; } .formule { border-right: 0; border-bottom: 1px solid var(--trait); } .formule:last-child { border-bottom: 0; } }

.faq details { border-bottom: 1px solid var(--trait); padding: 14px 0; }
.faq details:first-of-type { border-top: 1px solid var(--trait); }
.faq summary { cursor: pointer; font-family: var(--f-titre); font-weight: 700; color: var(--marine); font-size: 1.06rem; list-style-position: inside; }
.faq details p { margin: 10px 0 0; }

.voisins { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.voisins li { margin: 0; }
.voisins a { display: inline-block; padding: 8px 16px; border: 1.5px solid var(--trait); border-radius: 999px; text-decoration: none; font-weight: 600; background: #fff; }
.voisins a:hover { border-color: var(--marine); }

/* ---------- Contact ---------- */
.contact-grille { display: grid; grid-template-columns: 1.25fr .75fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
@media (max-width: 900px) { .contact-grille { grid-template-columns: 1fr; } }
.formulaire { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.formulaire .plein { grid-column: 1 / -1; }
.champ label { display: block; font-weight: 600; color: var(--encre); margin-bottom: 6px; font-size: .97rem; }
.champ .facultatif { font-weight: 400; color: var(--texte); }
.champ input, .champ select, .champ textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--encre); background: #fff;
  border: 1.5px solid #6B819A; border-radius: 10px; padding: 12px 14px;
}
.champ textarea { min-height: 150px; resize: vertical; }
.champ input:focus, .champ select:focus, .champ textarea:focus { outline: none; border-color: var(--marine); box-shadow: 0 0 0 3px rgba(75,151,204,.3); }
.formulaire .mentions { font-size: .9rem; margin: 0; }
.cache { position: absolute !important; left: -9999px !important; }
.retour-formulaire { grid-column: 1 / -1; padding: 14px 16px; border-radius: 10px; font-weight: 600; display: none; }
.retour-formulaire.succes { display: block; background: #E3F4EA; color: #145A32; }
.retour-formulaire.erreur { display: block; background: #FDECEA; color: #8A1C12; }
@media (max-width: 600px) { .formulaire { grid-template-columns: 1fr; } }

.coordonnees { background: var(--brume); border-radius: var(--rayon); padding: 28px; }
.coordonnees dl { margin: 0; }
.coordonnees dt { font-family: var(--f-titre); font-weight: 700; color: var(--marine); margin-top: 16px; }
.coordonnees dt:first-child { margin-top: 0; }
.coordonnees dd { margin: 2px 0 0; }
.carte { margin-top: 20px; border-radius: 12px; overflow: hidden; border: 1px solid var(--trait); }
.carte iframe { display: block; width: 100%; height: 260px; border: 0; }

/* ---------- Pied de page ---------- */
.pied { background: var(--marine-fonce); color: #B9CDE2; padding: 56px 0 28px; font-size: .97rem; }
.pied a { color: #fff; text-decoration: none; }
.pied a:hover { text-decoration: underline; color: #fff; }
.pied .colonnes { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 36px; }
.pied h2 { color: #fff; font-size: 1.05rem; margin-bottom: .8em; }
.pied ul { list-style: none; padding: 0; margin: 0; }
.pied li { margin-bottom: 2px; }
.pied li a { display: inline-block; padding: 10px 0; } /* zone tactile >= 44px */
.pied .logo-pied { background: #fff; display: inline-block; padding: 10px 14px; border-radius: 10px; margin-bottom: 14px; }
.pied .logo-pied img { width: 180px; }
.pied .bas { border-top: 1px solid rgba(255,255,255,.15); margin-top: 40px; padding-top: 20px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: .9rem; }
@media (max-width: 860px) { .pied .colonnes { grid-template-columns: 1fr; } }

/* Bouton WhatsApp discret */
.whatsapp {
  position: fixed; right: 18px; bottom: 18px; z-index: 40; width: 54px; height: 54px; border-radius: 50%;
  background: #168A43; display: grid; place-items: center; box-shadow: 0 8px 22px rgba(0,0,0,.2);
}
.whatsapp:hover { background: #11703A; }
.whatsapp svg { width: 28px; height: 28px; fill: #fff; }

/* 404 */
.page-404 { text-align: left; padding: clamp(64px, 10vw, 140px) 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}
.coordonnees h2 { font-size: 1.4rem; }
.encart .tel, .bandeau .btn { white-space: nowrap; }

/* ---------- Correctifs v2 (audit UI UX Pro Max) ---------- */
.nav a, .sous-menu > button { min-height: 44px; display: inline-flex; align-items: center; }
.sous-menu ul a { display: flex; min-height: 44px; }
.fil ol { align-items: center; }
.fil li { display: flex; align-items: center; }
.fil a { display: inline-flex; align-items: center; min-height: 44px; }
.faq summary { padding: 8px 0; }
@media (max-width: 980px) { .nav a, .sous-menu > button { display: flex; } body.menu-ouvert { overflow: hidden; } }
/* Le bouton WhatsApp ne doit pas masquer le bas de page sur mobile */
@media (max-width: 600px) { .pied { padding-bottom: 96px; } .cloche { max-width: 250px; } }
.pied .bas a { display: inline-block; padding: 10px 0; }

/* ---------- v3 : SEO / IA ---------- */
.essentiel { background: var(--brume); border-left: 4px solid var(--marine); border-radius: 0 var(--rayon) var(--rayon) 0; padding: 18px 22px; }
.essentiel p { margin: 0; color: var(--encre); font-size: 1.04rem; }
.maj { font-size: .9rem; color: var(--texte); margin: 0 0 clamp(28px,4vw,40px); }
.contenu article > .faq { margin-bottom: clamp(36px, 5vw, 56px); }
.legal h2 { font-size: 1.35rem; margin-top: 1.6em; }
.a-completer { background: #FFF4D6; padding: 0 4px; border-radius: 4px; }
.pied .bas { align-items: center; }
.pied .liens-bas { display: flex; flex-wrap: wrap; column-gap: 24px; }

/* ---------- v4 ---------- */
.espace-haut { margin-top: 1.2em; }
.liste-etapes { counter-reset: e; list-style: none; padding: 0; }
.liste-etapes li { counter-increment: e; position: relative; padding: 4px 0 12px 46px; margin: 0; }
.liste-etapes li::before { content: counter(e); position: absolute; left: 0; top: 2px; width: 30px; height: 30px; border-radius: 50%; background: var(--brume); color: var(--marine); font: 700 .95rem var(--f-titre); display: grid; place-items: center; }
.a-lire ul { padding-left: 1.1em; }
.meta-article { font-size: .95rem; margin: 0; }
.article h2 { margin-top: 1.6em; }
.article .essentiel + h2 { margin-top: 1.2em; }
.encart-article { margin-top: 40px; background: var(--brume); border-radius: var(--rayon); padding: 22px 24px; }
.encart-article h2 { font-size: 1.2rem; margin: 0 0 .4em; }
.encart-article p { margin: 0; }
.liste-guides { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 860px) { .liste-guides { grid-template-columns: 1fr; } }
.aide-candidat { background: #FFF4D6; color: var(--encre); border-radius: 10px; padding: 12px 14px; margin: 0; }
.aide-candidat[hidden] { display: none; }
.encart .tel + .tel { margin-top: 10px; }
/* Colonnes de lecture alignées sur l'en-tête de page (et non centrées) */
.conteneur.mesure { max-width: var(--large); }
.conteneur.mesure > * { max-width: 68ch; }

/* ---------- v5 : contenus détaillés (volets mis à jour) ---------- */
.entete-page .accroche { font-family: var(--f-titre); font-weight: 700; color: var(--bleu-fonce); font-size: clamp(1.12rem, 1.7vw, 1.32rem); line-height: 1.3; max-width: 44ch; margin-bottom: .9em; }
.entete-page .chapo + .chapo { font-size: 1.04rem; color: var(--texte); }
.entete-page .actions { margin-top: 1.4em; }
.entete-page h1 { max-width: 24ch; }

/* Sommaire de page */
.sommaire { margin: 22px 0 clamp(32px, 4vw, 48px); }
.sommaire ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.sommaire li { margin: 0; }
.sommaire a { display: inline-flex; align-items: center; min-height: 40px; padding: 6px 14px; border-radius: 999px; border: 1.5px solid var(--trait); text-decoration: none; font-weight: 600; font-size: .94rem; color: var(--marine); background: #fff; }
.sommaire a:hover { border-color: var(--marine); background: var(--brume); }

/* Blocs de prestations numérotés */
.blocs { list-style: none; padding: 0; margin: 0; counter-reset: bloc; }
.bloc { counter-increment: bloc; border-top: 1px solid var(--trait); padding: 30px 0 26px; margin: 0; }
.bloc:last-child { border-bottom: 1px solid var(--trait); }
.bloc > h3 { display: flex; gap: 14px; align-items: baseline; font-size: clamp(1.22rem, 2vw, 1.45rem); margin-bottom: .6em; }
.bloc > h3::before { content: counter(bloc, decimal-leading-zero); font-size: .8em; color: var(--bleu-fonce); font-weight: 800; flex: none; }
.bloc > p:last-child { margin-bottom: 0; }
ul.deux-col { columns: 2; column-gap: 36px; }
ul.deux-col li { break-inside: avoid; }
@media (max-width: 640px) { ul.deux-col { columns: 1; } }

.objectif { background: var(--brume); border-radius: 10px; padding: 12px 16px; color: var(--encre); }
.note { font-size: .93rem; border-left: 3px solid var(--trait); padding-left: 12px; color: #4A5D73; }
.lien-action { font-family: var(--f-titre); font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; }
.lien-action::after { content: "→"; transition: transform .15s; }
.lien-action:hover { text-decoration: underline; }
.lien-action:hover::after { transform: translateX(3px); }

/* Familles de métiers */
.familles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 36px; margin-bottom: 1.2em; }
.famille h3 { font-size: 1.08rem; padding-bottom: 8px; border-bottom: 2px solid var(--bleu); margin-bottom: .7em; }
.famille ul { padding-left: 1.1em; margin: 0; font-size: .98rem; }
.famille li { margin-bottom: .2em; }
@media (max-width: 640px) { .familles { grid-template-columns: 1fr; } }

/* Atouts / cartes */
.atouts { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.atouts li { margin: 0; background: #fff; border: 1px solid var(--trait); border-top: 3px solid var(--marine); border-radius: 0 0 var(--rayon) var(--rayon); padding: 18px 20px; }
.atouts h3 { font-size: 1.06rem; margin-bottom: .4em; }
.atouts p { margin: 0; font-size: .98rem; }
@media (max-width: 640px) { .atouts { grid-template-columns: 1fr; } }

/* Liste à préparer */
.checklist { background: var(--brume); border-radius: var(--rayon); padding: 22px 24px; }
.checklist h3 { font-size: 1.08rem; }
.checklist ul { list-style: none; padding: 0; columns: 2; column-gap: 32px; margin: 0; }
.checklist li { break-inside: avoid; position: relative; padding-left: 30px; }
.checklist li::before { content: ""; position: absolute; left: 0; top: .3em; width: 17px; height: 17px; border-radius: 5px; border: 2px solid var(--marine); background: #fff; }
.checklist li::after { content: ""; position: absolute; left: 6px; top: calc(.3em + 3px); width: 5px; height: 9px; border: solid var(--bleu-fonce); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.checklist .note { margin: 1em 0 0; border-left-color: #B9CDE2; }
@media (max-width: 640px) { .checklist ul { columns: 1; } }

/* Étapes avec titre */
.liste-etapes li { padding-bottom: 18px; }
.liste-etapes li::before { background: var(--marine); color: #fff; }
.liste-etapes h3 { font-size: 1.08rem; margin: 3px 0 .3em; }
.liste-etapes p { margin: 0 0 .4em; }

/* Formules */
.formules-texte .formule p { font-size: .98rem; }
.formules-texte .formule p:last-child { margin-bottom: 0; }
.formules-immocare .formule { display: flex; flex-direction: column; }
.formules-immocare .nom-formule { font: 700 .8rem var(--f-titre); text-transform: uppercase; letter-spacing: .08em; color: var(--bleu-fonce); margin: 0; }
.formules-immocare .formule h3 { font-size: 1.45rem; }
.formules-immocare .cible { font-weight: 600; color: var(--encre); }
.formules-immocare .formule > p { font-size: .96rem; }
.formules-immocare .lead { font-weight: 600; color: var(--encre); margin-bottom: .4em; }
.formules-immocare .formule ul { margin-bottom: 1em; }
.formules-immocare .prix { align-self: flex-start; margin-top: auto; }
.formules-immocare .formule:nth-child(2) { background: #F6F9FC; }
.formules-immocare .formule:nth-child(3) { background: var(--brume); }
.formules-immocare { grid-template-columns: 1fr; }
.formules-immocare .formule { border-right: 0; border-bottom: 1px solid var(--trait); }
.formules-immocare .formule:last-child { border-bottom: 0; }
.formules-immocare .formule ul { columns: 2; column-gap: 32px; }
.formules-immocare .formule li { break-inside: avoid; }
@media (max-width: 640px) { .formules-immocare .formule ul { columns: 1; } }

/* Section encadrée */
.encadre { background: var(--brume); border-radius: var(--rayon); padding: clamp(22px, 3vw, 32px); }
.encadre h2 { font-size: clamp(1.35rem, 2.6vw, 1.75rem); }
.encadre > p:last-child { margin-bottom: 0; }
.encadre .note { border-left-color: #B9CDE2; }
.offres-vide { border: 2px dashed var(--trait); border-radius: var(--rayon); padding: 20px 22px; }
.offres-vide p:last-child { margin: 0; }
.coord { margin: 0 0 1.2em; display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; }
.coord dt { font-family: var(--f-titre); font-weight: 700; color: var(--marine); }
.coord dd { margin: 0; }
@media (max-width: 600px) { .coord { grid-template-columns: 1fr; } .coord dd { margin-bottom: 8px; } }

/* À propos */
.citation { margin: 1.4em 0 0; padding: 18px 22px; border-left: 4px solid var(--dore); background: #FBF7EA; font-family: var(--f-titre); font-weight: 600; font-size: 1.12rem; line-height: 1.45; color: var(--marine); border-radius: 0 var(--rayon) var(--rayon) 0; }
.pole h2 { font-size: clamp(1.4rem, 2.6vw, 1.8rem); }
.poles-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 0; }
.poles-4 .pole h3 { font-size: 1.15rem; }
.poles-4 .pole p { font-size: .98rem; }
@media (max-width: 1000px) { .poles-4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .poles-4 { grid-template-columns: 1fr; } }
.domaines a { display: flex; flex-direction: column; }
.domaines .voir { margin-top: 8px; font-family: var(--f-titre); font-weight: 700; color: var(--marine); font-size: .95rem; }
.domaines .voir::after { content: " →"; }
.etapes-5 { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 860px) { .etapes-5 { grid-template-columns: 1fr; } }
.deux-colonnes { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
@media (max-width: 860px) { .deux-colonnes { grid-template-columns: 1fr; } }

/* ---------- v5.1 : correctifs de l'audit qualité ---------- */
/* Reflow 320 px (WCAG 1.4.10) : les boutons longs peuvent passer à la ligne */
.btn { max-width: 100%; text-align: center; }
@media (max-width: 480px) { .bandeau .btn, .encart .tel { white-space: normal; } .bandeau .actions { width: 100%; } .bandeau .btn { width: 100%; } }
/* Zones cliquables du sommaire : 44 px */
.sommaire a { min-height: 44px; }
/* Focus visible sur la carte intégrée */
iframe:focus-visible { outline: 3px solid var(--marine); outline-offset: 3px; }
/* Focus non masqué par le bouton WhatsApp fixe (WCAG 2.4.11) */
:focus { scroll-margin-bottom: 88px; }
/* Défilement fluide retiré : il empêchait le navigateur d'amener à l'écran l'élément atteint au clavier (WCAG 2.4.11) */
html { scroll-behavior: auto; }
iframe:focus { outline: 3px solid var(--marine); outline-offset: 3px; }
.carte:focus-within { outline: 3px solid var(--marine); outline-offset: 3px; }
/* V6 : sur mobile, l'encart latéral faisait doublon avec le bandeau final (même appel à l'action) */
@media (max-width: 960px) { .contenu > .encart { display: none; } }

/* ---------- V7 : photos horizontales (images fournies en 16:9 et 3:2) ---------- */
/* En-tête des pages de services : texte et photo côte à côte, photo entière */
.entete-page.paysage .grille { grid-template-columns: 1fr 1fr; align-items: center; }
.entete-page figure.paysage img { max-width: 100%; aspect-ratio: auto; height: auto; object-fit: contain; border-radius: 16px; box-shadow: 0 18px 40px -24px rgba(8, 63, 115, .45); }
@media (max-width: 860px) { .entete-page.paysage .grille { grid-template-columns: 1fr; } .entete-page figure.paysage img { max-width: 100%; } }
/* Accueil : la cloche s'élargit pour une photo horizontale */
.heros-paysage .conteneur { grid-template-columns: 1fr 1fr; }
.cloche.paysage { max-width: 600px; margin-top: 30px; }
.cloche.paysage img { aspect-ratio: 3 / 2; border-radius: 50% 50% 18px 18px / 34% 34% 18px 18px; }
.cloche.paysage::before { border-radius: 50% 50% 0 0 / 70% 70% 0 0; inset: -14px -14px 45% -14px; }
.cloche.paysage::after { top: -34px; }
@media (max-width: 860px) { .heros-paysage .conteneur { grid-template-columns: 1fr; } .cloche.paysage { margin: 40px 24px 0; } }
