/* ==========================================================
   Ardoise Démarches — identité « cabinet sobre »
   ========================================================== */

@font-face { font-family: "Public Sans"; font-weight: 400; font-display: swap; src: url("../fonts/public-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Public Sans"; font-weight: 500; font-display: swap; src: url("../fonts/public-sans-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Public Sans"; font-weight: 600; font-display: swap; src: url("../fonts/public-sans-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Source Serif 4"; font-weight: 500; font-display: swap; src: url("../fonts/source-serif-4-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Source Serif 4"; font-weight: 600; font-display: swap; src: url("../fonts/source-serif-4-latin-600-normal.woff2") format("woff2"); }

:root {
  --ardoise: #2d3945;
  --ardoise-2: #3f4e5d;
  --encre: #1e252d;
  --gris: #5a6572;
  --filet: #d8dde3;
  --craie: #f3f5f7;
  --blanc: #ffffff;
  --laiton: #9a7436;

  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Public Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --bs-body-font-family: var(--sans);
  --bs-body-color: var(--encre);
  --bs-body-bg: var(--blanc);
  --bs-border-color: var(--filet);
  --bs-link-color-rgb: 45, 57, 69;
  --bs-link-hover-color-rgb: 30, 37, 45;
  --bs-secondary-color: var(--gris);
}

body { font-size: 1rem; line-height: 1.6; -webkit-font-smoothing: antialiased; }
h1, h2, h3, .serif { font-family: var(--serif); font-weight: 600; letter-spacing: -0.01em; color: var(--encre); }
h1 { font-size: clamp(2rem, 1.4rem + 2.4vw, 3rem); line-height: 1.12; }
h2 { font-size: clamp(1.5rem, 1.25rem + 1vw, 1.875rem); line-height: 1.2; }
h3 { font-size: 1.2rem; line-height: 1.3; }
p, li { max-width: 68ch; }
a { text-underline-offset: .18em; text-decoration-thickness: 1px; }
.text-muted-ardoise { color: var(--gris); }
.lead { font-size: 1.15rem; color: var(--gris); }

:focus-visible { outline: 2px solid var(--ardoise); outline-offset: 3px; border-radius: 2px; }
.skip-link { position: absolute; left: 0; transform: translateY(-120%); top: 0; z-index: 1000; background: var(--ardoise); color: #fff; padding: .5rem 1rem; }
.skip-link:focus { left: 1rem; top: 1rem; transform: none; }

/* --- Boutons ---------------------------------------------------- */
.btn { border-radius: 4px; font-weight: 500; padding: .6rem 1.1rem; }
.btn-ardoise { background: var(--ardoise); color: #fff; border: 1px solid var(--ardoise); }
.btn-ardoise:hover, .btn-ardoise:focus-visible { background: var(--encre); border-color: var(--encre); color: #fff; }
.btn-ligne { background: transparent; color: var(--ardoise); border: 1px solid var(--ardoise); }
.btn-ligne:hover { background: var(--ardoise); color: #fff; }
.btn-dark { background: var(--ardoise); border-color: var(--ardoise); }

/* --- En-tête ---------------------------------------------------- */
.site-header { border-bottom: 1px solid var(--filet); background: var(--blanc); }
.site-header .navbar { padding: .9rem 0; }
.brand { display: inline-flex; align-items: center; gap: .65rem; color: var(--encre); text-decoration: none; font-family: var(--serif); font-weight: 600; font-size: 1.2rem; }
.brand-mark { width: 26px; height: 26px; background: var(--ardoise); border-radius: 3px; position: relative; flex: none; }
.brand-mark::after { content: ""; position: absolute; left: 6px; right: 6px; bottom: 7px; height: 2px; background: #e9edf1; }
.site-nav .nav-link { color: var(--gris); font-weight: 500; padding: .4rem .9rem !important; }
.site-nav .nav-link:hover { color: var(--encre); }
.site-nav .nav-link.active { color: var(--encre); box-shadow: inset 0 -2px 0 var(--ardoise); }
.navbar-toggler { border-color: var(--filet); }
.navbar-toggler:focus { box-shadow: none; }

/* --- Accueil : en-tête et ardoise -------------------------------- */
.hero { padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(2.5rem, 5vw, 4rem); }
.hero h1 { max-width: 24ch; }
.hero .lead { max-width: 46ch; margin-top: 1.25rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }

.ardoise {
  background: var(--ardoise);
  color: #e9edf1;
  border-radius: 6px;
  padding: 1.75rem 1.75rem 1.25rem;
  box-shadow: inset 0 0 0 10px #26303a;
}
.ardoise-title { font-family: var(--serif); font-size: 1.1rem; color: #fff; margin: 0 .5rem .75rem; }
.ardoise ul { list-style: none; margin: 0; padding: 0; }
.ardoise li { max-width: none; }
.ardoise a {
  display: grid; grid-template-columns: 1fr auto; gap: .1rem 1rem; align-items: baseline;
  padding: .85rem .5rem; color: #fff; text-decoration: none; border-top: 1px solid rgba(233,237,241,.16);
}
.ardoise li:first-child a { border-top: 0; }
.ardoise a:hover .ardoise-label { text-decoration: underline; text-decoration-color: rgba(255,255,255,.6); }
.ardoise a:focus-visible { outline-color: #fff; }
.ardoise-label { font-family: var(--serif); font-size: 1.15rem; font-weight: 500; }
.ardoise-count { font-size: .85rem; color: #b8c2cc; white-space: nowrap; }
.ardoise-hint { grid-column: 1 / -1; font-size: .875rem; color: #b8c2cc; }

/* --- Sections ---------------------------------------------------- */
.section { padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.section-craie { background: var(--craie); }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: .5rem 2rem; margin-bottom: 1.75rem; }
.section-head p { margin: 0; color: var(--gris); }

/* --- Annuaire des partenaires ------------------------------------ */
.annuaire { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--encre); }
.annuaire > li { max-width: none; border-bottom: 1px solid var(--filet); }
.fiche-ligne {
  display: grid; grid-template-columns: 52px minmax(0, 5fr) minmax(0, 4fr) 12rem; gap: 1.25rem; align-items: center;
  padding: 1.25rem .25rem; color: inherit; text-decoration: none;
}
.fiche-ligne:hover { background: var(--craie); }
.fiche-ligne:hover .fiche-nom { text-decoration: underline; }
.monogramme {
  width: 52px; height: 52px; border-radius: 4px; background: var(--craie); border: 1px solid var(--filet);
  display: grid; place-items: center; font-family: var(--serif); font-weight: 600; font-size: 1.1rem; color: var(--ardoise);
}
.fiche-ligne:hover .monogramme { background: var(--blanc); }
img.portrait { object-fit: cover; padding: 0; background: var(--craie); }
.fiche-nom { font-family: var(--serif); font-weight: 600; font-size: 1.2rem; display: block; color: var(--encre); }
.fiche-titre { display: block; color: var(--gris); font-size: .95rem; }
.fiche-specialites { color: var(--encre); font-size: .95rem; }
.fiche-prix { text-align: right; font-size: .95rem; white-space: nowrap; }
.fiche-prix strong { display: block; font-weight: 600; }
.fiche-prix span { color: var(--gris); font-size: .85rem; }

@media (max-width: 767.98px) {
  .fiche-ligne { grid-template-columns: 44px 1fr; gap: .35rem 1rem; }
  .monogramme { width: 44px; height: 44px; grid-row: span 3; align-self: start; }
  .fiche-specialites { grid-column: 2; }
  .fiche-prix { grid-column: 2; text-align: left; }
  .fiche-prix strong { display: inline; margin-right: .35rem; }
}

/* --- Filtres par domaine ----------------------------------------- */
.filtres { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 1.75rem; padding: 0; list-style: none; }
.filtres li { max-width: none; }
.filtres a {
  display: inline-block; padding: .4rem .85rem; border: 1px solid var(--filet); border-radius: 999px;
  color: var(--encre); text-decoration: none; font-size: .925rem; background: var(--blanc);
}
.filtres a:hover { border-color: var(--ardoise); }
.filtres a[aria-current="page"] { background: var(--ardoise); border-color: var(--ardoise); color: #fff; }
.filtres small { color: inherit; opacity: .7; margin-left: .25rem; }

/* --- Étapes (vraie séquence) ------------------------------------- */
.etapes { list-style: none; counter-reset: etape; margin: 0; padding: 0; display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.etapes li { counter-increment: etape; max-width: none; padding-top: 1rem; border-top: 1px solid var(--encre); }
.etapes li::before { content: counter(etape); display: block; font-family: var(--serif); font-size: 1.75rem; font-weight: 600; color: var(--laiton); line-height: 1; margin-bottom: .75rem; }
.etapes h3 { margin-bottom: .4rem; }
.etapes p { color: var(--gris); margin: 0; }

/* --- Engagements ------------------------------------------------- */
.engagements { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.engagements div { padding-top: 1rem; border-top: 1px solid var(--filet); }
.engagements h3 { font-size: 1.1rem; }
.engagements p { color: var(--gris); margin: 0; }

.bandeau-contact { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1.5rem; }
.bandeau-contact h2 { margin: 0 0 .35rem; }
.bandeau-contact p { margin: 0; color: var(--gris); }

/* --- Fiche partenaire ------------------------------------------- */
.fil-ariane { font-size: .9rem; color: var(--gris); padding: 1.25rem 0 0; }
.fil-ariane a { color: var(--gris); }
.fiche-entete { display: flex; gap: 1.25rem; align-items: center; padding: 1.5rem 0 1rem; }
.fiche-entete .monogramme { width: 96px; height: 96px; font-size: 1.75rem; flex: none; }
.fiche-entete h1 { margin: 0; }
.fiche-entete p { margin: .2rem 0 0; color: var(--gris); }
.fiche-description p { font-size: 1.05rem; }
.domaines-tags { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0 0 1.5rem; padding: 0; list-style: none; }
.domaines-tags li { max-width: none; font-size: .85rem; padding: .2rem .65rem; border: 1px solid var(--filet); border-radius: 999px; color: var(--gris); }

.encart { border: 1px solid var(--filet); border-radius: 6px; padding: 1.5rem; background: var(--blanc); }
@media (min-width: 992px) { .encart-collant { position: sticky; top: 1.5rem; } }
.encart h2 { font-size: 1.25rem; margin-bottom: 1rem; }
.encart-liste { list-style: none; margin: 0 0 1.25rem; padding: 0; }
.encart-liste li { display: flex; justify-content: space-between; gap: 1rem; padding: .55rem 0; border-bottom: 1px solid var(--filet); max-width: none; font-size: .95rem; }
.encart-liste li:last-child { border-bottom: 0; }
.encart-note { font-size: .875rem; color: var(--gris); margin: .75rem 0 0; }

.prestations-groupe { margin-top: 2.5rem; }
.prestations-groupe h2 { font-size: 1.3rem; padding-bottom: .6rem; border-bottom: 1px solid var(--encre); margin-bottom: 0; }
.prestations { list-style: none; margin: 0; padding: 0; }
.prestation { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .25rem 1.5rem; padding: 1rem 0; border-bottom: 1px solid var(--filet); max-width: none; }
.prestation-nom { font-weight: 600; }
.prestation-detail { color: var(--gris); font-size: .925rem; margin: .15rem 0 0; }
.prestation-meta { list-style: none; display: flex; flex-wrap: wrap; gap: .25rem 1rem; margin: .35rem 0 0; padding: 0; font-size: .85rem; color: var(--gris); }
.prestation-meta li { max-width: none; }
.prestation-droite { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: .35rem; }
.prestation-prix { font-weight: 600; white-space: nowrap; }
.prestation-prix.devis { font-weight: 500; color: var(--gris); }
.prestation-droite a { font-size: .875rem; }
@media (max-width: 575.98px) {
  .prestation { grid-template-columns: 1fr; }
  .prestation-droite { flex-direction: row; justify-content: space-between; align-items: baseline; text-align: left; }
}

/* Groupes entièrement sur devis : liste compacte + une seule demande */
.devis-liste { list-style: none; margin: 0; padding: 1rem 0 0; columns: 2 18rem; column-gap: 2.5rem; }
.devis-liste li { break-inside: avoid; padding: .3rem 0 .3rem 1rem; position: relative; max-width: none; }
.devis-liste li::before { content: ""; position: absolute; left: 0; top: 1em; width: 6px; height: 1px; background: var(--gris); }
.devis-pied { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .75rem; padding: 1rem 0; border-bottom: 1px solid var(--filet); color: var(--gris); font-size: .925rem; }

/* --- FAQ -------------------------------------------------------- */
.faq details { border-bottom: 1px solid var(--filet); padding: 1rem 0; }
.faq summary { cursor: pointer; font-weight: 600; list-style-position: outside; }
.faq summary::marker { color: var(--gris); }
.faq details p { margin: .75rem 0 0; color: var(--encre); }

/* --- Formulaires ------------------------------------------------- */
.form-control, .form-select { border-radius: 4px; border-color: #c4ccd4; padding: .6rem .8rem; }
.form-control:focus, .form-select:focus { border-color: var(--ardoise); box-shadow: 0 0 0 3px rgba(45,57,69,.15); }
.form-label { font-weight: 500; }
.form-check-input:checked { background-color: var(--ardoise); border-color: var(--ardoise); }
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; margin: -1px; padding: 0; border: 0; } /* sans décalage à gauche : pas de défilement en arabe (RTL) */
.coordonnees dt { font-weight: 500; color: var(--gris); font-size: .9rem; }
.coordonnees dd { margin-bottom: 1rem; }

/* --- Pages légales ----------------------------------------------- */
.texte-legal { max-width: 72ch; }
.texte-legal h2 { font-size: 1.3rem; margin-top: 2.25rem; }
.texte-legal mark { background: #fff3cd; padding: 0 .2em; }

/* --- Pied de page ------------------------------------------------ */
.site-footer { border-top: 1px solid var(--filet); padding: 3rem 0 2rem; margin-top: 0; font-size: .925rem; color: var(--gris); }
.site-footer h2 { font-family: var(--sans); font-size: .95rem; font-weight: 600; color: var(--encre); margin-bottom: .75rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .4rem; }
.site-footer a { color: var(--gris); }
.site-footer a:hover { color: var(--encre); }
.footer-bas { border-top: 1px solid var(--filet); margin-top: 2rem; padding-top: 1.25rem; }

/* --- Comptes (étape 2) ------------------------------------------- */
.qr svg { display: block; width: 200px; height: 200px; }
.code-input { letter-spacing: .3em; font-variant-numeric: tabular-nums; max-width: 14rem; }
.setup-steps li { margin-bottom: 1.5rem; }
.recovery-codes { display: grid; grid-template-columns: repeat(2, 1fr); gap: .5rem 1.5rem; font-size: 1.05rem; }
.mail-text { white-space: pre-wrap; }

.alert { border-radius: 4px; }

@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }

/* --- Inscription IFM ------------------------------------------- */
.inscription .bloc { border: 0; padding: 0 0 1.75rem; margin: 0; min-width: 0; }
.inscription legend { float: left; width: 100%; font-family: var(--serif); font-weight: 600; font-size: 1.25rem; border-top: 1px solid var(--encre); padding-top: 1rem; margin-bottom: 1rem; }
.inscription legend + * { clear: left; }
.formules { display: grid; gap: .5rem; }
.formule { display: grid; grid-template-columns: auto 1fr auto; gap: .9rem; align-items: start; padding: .9rem 1rem; border: 1px solid var(--filet); border-radius: 6px; cursor: pointer; background: var(--blanc); }
.formule:hover { border-color: var(--ardoise); }
.formule:has(input:checked) { border-color: var(--ardoise); box-shadow: inset 0 0 0 1px var(--ardoise); background: var(--craie); }
.formule input { margin-top: .3rem; accent-color: var(--ardoise); }
.formule-nom { display: block; font-weight: 600; }
.formule-detail { display: block; color: var(--gris); font-size: .9rem; }
.formule-prix { font-weight: 600; white-space: nowrap; }
.choix-ligne { display: flex; flex-wrap: wrap; gap: .5rem; }
.choix { display: inline-flex; align-items: center; gap: .45rem; padding: .45rem .8rem; border: 1px solid var(--filet); border-radius: 999px; cursor: pointer; font-size: .95rem; }
.choix:has(input:checked) { border-color: var(--ardoise); background: var(--craie); }
.choix input { accent-color: var(--ardoise); }
[data-bloc][hidden] { display: none !important; }
.encart-etapes { padding-left: 1.2rem; margin: 0 0 1rem; }
.encart-etapes li { margin-bottom: .45rem; }
.recap { display: grid; grid-template-columns: max-content 1fr; gap: .5rem 2rem; border-top: 1px solid var(--encre); padding-top: 1rem; }
.recap dt { color: var(--gris); font-weight: 500; }
.recap dd { margin: 0; }
@media (max-width: 575.98px) { .recap { grid-template-columns: 1fr; gap: 0; } .recap dd { margin-bottom: .6rem; } }

/* ==========================================================
   Finitions : en-tête, recherche, annuaire, bandeaux
   ========================================================== */

/* En-tête fixe, translucide, condensé au défilement */
.site-header { position: sticky; top: 0; z-index: 1030; background: rgba(255,255,255,.88); -webkit-backdrop-filter: saturate(160%) blur(12px); backdrop-filter: saturate(160%) blur(12px); transition: box-shadow .2s ease, padding .2s ease; }
.site-header .navbar { transition: padding .2s ease; }
.site-header.is-scrolled { box-shadow: 0 1px 0 var(--filet), 0 6px 24px rgba(30,37,45,.06); }
.site-header.is-scrolled .navbar { padding: .45rem 0; }
.btn-craie { background: #f3f5f7; color: var(--ardoise); border: 1px solid #f3f5f7; font-weight: 600; }
.btn-craie:hover, .btn-craie:focus-visible { background: #fff; color: var(--encre); }

/* Accueil */
.hero { padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(2.5rem, 5vw, 4rem); background:
  linear-gradient(to bottom, transparent calc(100% - 1px), var(--filet) 0) , var(--blanc); }
.hero h1 { max-width: 22ch; }

.recherche { position: relative; z-index: 20; margin-top: 2rem; max-width: 40rem; }
.recherche-champ { display: flex; align-items: center; gap: .5rem; background: var(--blanc); border: 1px solid #c4ccd4; border-radius: 8px; padding: .35rem .35rem .35rem .9rem; box-shadow: 0 1px 2px rgba(30,37,45,.04); transition: border-color .15s ease, box-shadow .15s ease; }
.recherche-champ:focus-within { border-color: var(--ardoise); box-shadow: 0 0 0 4px rgba(45,57,69,.12); }
.recherche-icone { width: 20px; height: 20px; color: var(--gris); flex: none; }
.recherche input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 1.05rem; padding: .55rem .25rem; color: var(--encre); }
.recherche input::placeholder { color: #8a949f; }
.recherche input::-webkit-search-cancel-button { cursor: pointer; }
.recherche .btn { padding: .6rem 1.2rem; border-radius: 6px; }
.recherche-page { max-width: 46rem; }

.suggestions { position: absolute; z-index: 1040; left: 0; right: 0; top: calc(100% + 6px); list-style: none; margin: 0; padding: .35rem; background: var(--blanc); border: 1px solid var(--filet); border-radius: 8px; box-shadow: 0 18px 40px rgba(30,37,45,.14); max-height: min(70vh, 26rem); overflow: auto; }
.suggestions li { max-width: none; }
.suggestions a { display: grid; grid-template-columns: 1fr auto; gap: .1rem 1rem; padding: .6rem .75rem; border-radius: 6px; color: var(--encre); text-decoration: none; }
.suggestions a[aria-selected="true"], .suggestions a:hover { background: var(--craie); }
.suggestion-nom { font-weight: 600; }
.suggestion-prix { font-size: .9rem; white-space: nowrap; color: var(--encre); }
.suggestion-partenaire { grid-column: 1 / -1; font-size: .85rem; color: var(--gris); }
.suggestion-vide { padding: .75rem; color: var(--gris); font-size: .95rem; }
.suggestions .suggestion-tout { display: block; text-align: center; font-size: .9rem; color: var(--ardoise); border-top: 1px solid var(--filet); border-radius: 0 0 6px 6px; margin-top: .25rem; }

.raccourcis { list-style: none; padding: 0; margin: 1rem 0 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.raccourcis li { max-width: none; }
.raccourcis a { display: inline-block; font-size: .875rem; padding: .3rem .75rem; border-radius: 999px; background: var(--craie); color: var(--encre); text-decoration: none; border: 1px solid transparent; }
.raccourcis a:hover { border-color: var(--ardoise); background: var(--blanc); }

.preuve { display: flex; align-items: center; gap: 1rem; margin-top: 2rem; }
.preuve p { margin: 0; font-size: .95rem; color: var(--gris); line-height: 1.45; }
.preuve strong { color: var(--encre); font-weight: 600; }
.visages { display: flex; flex: none; }
.visages img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; border: 2px solid var(--blanc); box-shadow: 0 0 0 1px var(--filet); }
.visages img + img { margin-left: -10px; }

/* Ardoise : compteur discret, flèche au survol */
.ardoise a { position: relative; padding-right: 2.25rem; transition: background-color .15s ease; border-radius: 4px; }
.ardoise a::after { content: ""; position: absolute; right: .75rem; top: 50%; width: 8px; height: 8px; border-right: 2px solid #b8c2cc; border-top: 2px solid #b8c2cc; transform: translateY(-50%) rotate(45deg); transition: transform .15s ease, border-color .15s ease; }
.ardoise a:hover { background: rgba(255,255,255,.05); }
.ardoise a:hover::after { transform: translate(3px, -50%) rotate(45deg); border-color: #fff; }
.ardoise-count { white-space: nowrap; text-align: center; font-size: .8rem; padding: .15rem .6rem; border-radius: 999px; background: rgba(255,255,255,.1); color: #e9edf1; }

/* Annuaire enrichi */
.annuaire { border-top: 0; display: grid; gap: .6rem; }
.annuaire > li { border-bottom: 0; }
.fiche-ligne { grid-template-columns: 64px minmax(0, 4fr) minmax(0, 5fr) 11.5rem 20px; padding: 1rem 1.25rem; background: var(--blanc); border: 1px solid var(--filet); border-radius: 8px; transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease; }
.fiche-ligne:hover { background: var(--blanc); border-color: #b9c2cb; box-shadow: 0 10px 28px rgba(30,37,45,.08); transform: translateY(-1px); }
.fiche-ligne:hover .fiche-nom { text-decoration: none; }
.fiche-ligne .monogramme { width: 64px; height: 64px; border-radius: 6px; }
.fiche-domaines { display: flex; flex-wrap: wrap; gap: .3rem; margin-top: .4rem; }
.fiche-domaines span { font-size: .75rem; padding: .1rem .5rem; border-radius: 999px; background: var(--craie); color: var(--gris); }
.fiche-fleche { width: 20px; height: 20px; color: #9aa4ae; transition: transform .15s ease, color .15s ease; }
.fiche-ligne:hover .fiche-fleche { transform: translateX(3px); color: var(--ardoise); }
@media (max-width: 991.98px) {
  .fiche-ligne { grid-template-columns: 56px minmax(0, 1fr) auto; }
  .fiche-ligne .monogramme { width: 56px; height: 56px; }
  .fiche-specialites { grid-column: 2 / -1; }
  .fiche-fleche { display: none; }
}
@media (max-width: 575.98px) {
  .fiche-ligne { grid-template-columns: 48px 1fr; padding: .9rem; }
  .fiche-ligne .monogramme { width: 48px; height: 48px; grid-row: span 3; align-self: start; }
  .fiche-specialites, .fiche-prix { grid-column: 2; text-align: left; }
}

/* Étapes reliées par un trait */
@media (min-width: 992px) {
  .etapes-reliees { grid-template-columns: repeat(4, 1fr); }
  .etapes-reliees li { border-top: 0; padding-top: 0; position: relative; }
  .etapes-reliees li::before { width: 2.5rem; height: 2.5rem; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--encre); background: var(--blanc); font-size: 1.15rem; color: var(--encre); position: relative; z-index: 1; }
  .etapes-reliees li:not(:last-child)::after { content: ""; position: absolute; top: 1.25rem; left: 2.5rem; right: -2rem; height: 1px; background: var(--filet); }
}

/* Bandeau et pied de page en ardoise */
.bandeau-ardoise { background: var(--ardoise); color: #e9edf1; padding: clamp(2.5rem, 5vw, 3.5rem) 0; }
.bandeau-ardoise h2 { color: #fff; }
.bandeau-ardoise p { color: #b8c2cc; }
.site-footer-ardoise { background: #26303a; color: #b8c2cc; border-top: 0; }
.site-footer-ardoise h2 { color: #fff; }
.site-footer-ardoise a, .site-footer-ardoise .brand { color: #d5dce2; }
.site-footer-ardoise a:hover { color: #fff; }
.site-footer-ardoise .brand-mark { background: #3f4e5d; }
.site-footer-ardoise .footer-bas { border-top-color: rgba(255,255,255,.1); }

/* Résultats de recherche */
.resultats { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--encre); }
.resultat { display: grid; grid-template-columns: 52px 1fr auto; gap: 1rem 1.25rem; align-items: center; padding: 1rem 0; border-bottom: 1px solid var(--filet); max-width: none; }
.resultat .monogramme { width: 52px; height: 52px; }
.resultat-nom { font-weight: 600; color: var(--encre); text-decoration: none; }
.resultat-nom:hover { text-decoration: underline; }
.resultat-detail { margin: .1rem 0; color: var(--gris); font-size: .925rem; }
.resultat-partenaire { font-size: .875rem; color: var(--gris); }
.resultat-action { display: flex; flex-direction: column; align-items: flex-end; gap: .4rem; }
@media (max-width: 575.98px) { .resultat { grid-template-columns: 44px 1fr; } .resultat .monogramme { width: 44px; height: 44px; } .resultat-action { grid-column: 2; flex-direction: row; justify-content: space-between; align-items: center; } }
.vide { border: 1px dashed #c4ccd4; border-radius: 8px; padding: 2rem; text-align: center; }
.vide p { margin-left: auto; margin-right: auto; color: var(--gris); }

/* Entrée de la page d'accueil : une seule séquence, à l'ouverture */
@keyframes entree { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.entree { animation: entree .6s cubic-bezier(.2,.7,.2,1) both; }
.entree-2 { animation-delay: .08s; }
.entree-3 { animation-delay: .16s; }
.entree-4 { animation-delay: .24s; }
@media (prefers-reduced-motion: reduce) { .entree { animation: none; } .fiche-ligne:hover { transform: none; } }

/* ==========================================================
   Accueil : partenaire à la une (piste C)
   ========================================================== */
.une { background: var(--ardoise); color: #e9edf1; padding: clamp(3.5rem, 7vw, 5.5rem) 0; }
.une-tete { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 1rem 2rem; margin-bottom: 3rem; }
.une-tete h2 { color: #fff; margin: 0; font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.5rem); }
.une a { color: #fff; }
.une-tete a:hover { color: #e9edf1; }

.une-panneau { display: flex; flex-wrap: wrap; gap: clamp(2rem, 4vw, 3rem); align-items: center; }
.une-panneau[hidden] { display: none; }
.une-photo { border: 0; flex: 0 1 420px; width: 100%; max-width: 420px; aspect-ratio: 1 / 1; height: auto; object-fit: cover; border-radius: 12px; box-shadow: 0 0 0 10px #26303a; }
.une span.une-photo { display: grid; place-items: center; font-size: 4rem; background: #3f4e5d; color: #fff; border: 0; }
.une-corps { flex: 999 1 480px; min-width: 0; display: flex; flex-direction: column; gap: .85rem; }
.une-metier { align-self: flex-start; font-size: .875rem; font-weight: 500; padding: .3rem .75rem; border-radius: 999px; background: #3f4e5d; color: #fff; }
.une-corps h3 { margin: 0; color: #fff; font-size: clamp(2rem, 1.4rem + 2vw, 3rem); line-height: 1.1; }
.une-titre { margin: 0; font-size: 1.1rem; color: #c5ced6; }
.une-texte { margin: .35rem 0 0; font-size: 1.15rem; line-height: 1.55; color: #fff; max-width: 36rem; }
.une-prestations { list-style: none; padding: 0; margin: .75rem 0 0; max-width: 36rem; border-top: 1px solid #4a5968; }
.une-prestations li { display: flex; justify-content: space-between; gap: 1rem; padding: .75rem 0; border-bottom: 1px solid #4a5968; max-width: none; }
.une-prestations a { color: #e9edf1; text-decoration: none; }
.une-prestations a:hover { color: #fff; text-decoration: underline; }
.une-prestations strong { color: #fff; font-weight: 600; white-space: nowrap; }
.une-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: .75rem; }
.une .btn-craie { color: var(--ardoise); padding: .8rem 1.25rem; }
.btn-contour-clair { border: 1px solid #c5ced6; color: #fff; padding: .8rem 1.25rem; }
.btn-contour-clair:hover, .btn-contour-clair:focus-visible { background: rgba(255,255,255,.08); color: #fff; border-color: #fff; }

.une-vignettes { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: .75rem; margin-top: 3rem; }
.une-vignette { display: flex; align-items: center; gap: .75rem; min-height: 64px; padding: .6rem .75rem; border-radius: 10px; background: #26303a; border: 1px solid #26303a; color: #fff; text-decoration: none; font-weight: 500; line-height: 1.25; transition: background-color .15s ease, border-color .15s ease; }
.une-vignette:hover { background: #33404c; color: #fff; }
.une-vignette[aria-selected="true"], .une-vignette[aria-current="true"] { background: #3f4e5d; border-color: #f3f5f7; }
.une-vignette:focus-visible { outline-color: #fff; }
.une-mini { border: 0; width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex: none; }
.une span.une-mini { display: grid; place-items: center; font-size: .9rem; background: #3f4e5d; color: #fff; border: 0; }
@keyframes une-apparition { from { opacity: 0; } to { opacity: 1; } }
.une-panneau.is-change { animation: une-apparition .25s ease both; }
@media (prefers-reduced-motion: reduce) { .une-panneau.is-change { animation: none; } }

/* Partenaire représenté par plusieurs personnes (ex. IFM) */
.une-equipe { flex: 0 1 420px; width: 100%; max-width: 420px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 10px; background: #26303a; border-radius: 16px; }
.une-equipe figure { margin: 0; position: relative; }
.une-equipe-photo { border: 0; width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; object-position: center 20%; border-radius: 10px; display: block; }
.une span.une-equipe-photo { display: grid; place-items: center; font-size: 2.5rem; background: #3f4e5d; color: #fff; }
.une-equipe figcaption { position: absolute; left: 10px; bottom: 10px; font-size: .9rem; font-weight: 600; padding: .25rem .7rem; border-radius: 999px; background: #1e252d; color: #fff; }
.une-minis { display: flex; flex: none; }
.une-minis .une-mini + .une-mini { margin-left: -14px; box-shadow: 0 0 0 2px #26303a; }
.une-vignette[aria-selected="true"] .une-minis .une-mini + .une-mini, .une-vignette[aria-current="true"] .une-minis .une-mini + .une-mini { box-shadow: 0 0 0 2px #3f4e5d; }
.fiche-equipe { display: flex; flex: none; }
.fiche-equipe .monogramme { width: 84px; height: 84px; border-radius: 50%; border: 3px solid var(--blanc); }
.fiche-equipe .monogramme + .monogramme { margin-left: -18px; }
.fiche-entete .fiche-equipe-noms { margin-top: .35rem; font-size: .95rem; color: var(--encre); }

/* ==========================================================
   Mobile
   ========================================================== */
.recherche-bouton-icone { display: none; width: 20px; height: 20px; }

@media (max-width: 767.98px) {
  .container { padding-left: 1.1rem; padding-right: 1.1rem; }
  .row.g-5, .row.g-4 { --bs-gutter-x: 2.2rem; } /* sinon la grille déborde de 6 px */
  .site-header .navbar { padding: .6rem 0; }
  .brand { font-size: 1.1rem; }

  /* Accueil : en-tête */
  .hero { padding: 1.75rem 0 2.5rem; }
  .hero h1 { font-size: 2rem; line-height: 1.15; }
  .hero .lead { font-size: 1.05rem; margin-top: .9rem; }

  /* Recherche : champ pleine largeur, bouton icône */
  .recherche { margin-top: 1.5rem; }
  .recherche-champ { padding: .3rem .3rem .3rem .75rem; }
  .recherche input { font-size: 1rem; padding: .6rem .2rem; }
  .recherche-bouton { width: 44px; height: 44px; padding: 0; display: grid; place-items: center; }
  .recherche-bouton-texte { display: none; }
  .recherche-bouton-icone { display: block; }

  /* Raccourcis : une seule ligne qui défile */
  .raccourcis { flex-wrap: nowrap; overflow-x: auto; margin-right: -1.1rem; padding-right: 1.1rem; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .raccourcis::-webkit-scrollbar { display: none; }
  .raccourcis a { white-space: nowrap; }

  /* Visages : plus petits, texte à côté sans se tasser */
  .preuve { gap: .75rem; margin-top: 1.5rem; }
  .visages img { width: 32px; height: 32px; }
  .visages img + img { margin-left: -9px; }
  .preuve p { font-size: .9rem; }

  /* Tableau d'ardoise compact : intitulé, puis précision et compteur sur une ligne */
  .ardoise { padding: 1.1rem 1rem .6rem; box-shadow: inset 0 0 0 6px #26303a; }
  .ardoise-title { margin: 0 .25rem .4rem; }
  .ardoise a { grid-template-columns: 1fr; padding: .8rem 1.75rem .8rem .25rem; gap: .15rem; }
  .ardoise a::after { right: .5rem; }
  .ardoise-label { font-size: 1.05rem; }
  .ardoise-count { grid-row: 3; justify-self: start; background: none; padding: 0; font-size: .8rem; color: #c5ced6; }
  .ardoise-hint { grid-row: 2; font-size: .85rem; }

  /* Partenaire à la une : photo moins haute, titres plus petits */
  .une { padding: 2.5rem 0 3rem; }
  .une-tete { margin-bottom: 1.5rem; }
  .une-tete h2 { font-size: 1.6rem; }
  .une-panneau { gap: 1.5rem; }
  .une-photo { flex-basis: 100%; max-width: 100%; aspect-ratio: 4 / 3; object-position: center 20%; box-shadow: 0 0 0 6px #26303a; }
  .une-equipe { flex-basis: 100%; max-width: 100%; padding: 6px; }
  .une-equipe-photo { aspect-ratio: 1 / 1; }
  .une-corps { flex-basis: 100%; gap: .6rem; }
  .une-corps h3 { font-size: 1.9rem; }
  .une-texte { font-size: 1rem; }
  .une-prestations li { font-size: .95rem; }
  .une-actions .btn { flex: 1 1 100%; text-align: center; }
  .une > .container { display: flex; flex-direction: column; }
  .une-vignettes { order: 1; margin: 0 0 1.5rem; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; }
  .une-panneau { order: 2; }
  .une-vignette { min-height: 56px; padding: .5rem .6rem; font-size: .9rem; gap: .55rem; }
  .une-mini { width: 36px; height: 36px; }

  /* Sections */
  .section { padding: 2.5rem 0; }
  .section-head { margin-bottom: 1.25rem; }
  .bandeau-contact .btn { width: 100%; text-align: center; }
}

@media (max-width: 374.98px) {
  .hero h1 { font-size: 1.75rem; }
  .une-vignettes { grid-template-columns: 1fr; }
}

/* Le tableau d'ardoise n'apparaît qu'à côté du titre, sur grand écran */
@media (max-width: 991.98px) { .hero-ardoise { display: none; } }

/* Mobile : partenaire à la une en vue complète (photo à côté du nom, description visible) */
@media (max-width: 767.98px) {
  .une-panneau { display: grid; grid-template-columns: 96px minmax(0, 1fr); column-gap: 1rem; row-gap: .45rem; align-items: center; }
  .une-panneau[hidden] { display: none; }
  .une-corps { display: contents; }
  .une-photo { grid-column: 1; grid-row: 1 / span 3; align-self: start; width: 96px; height: 96px; max-width: none; aspect-ratio: auto; border-radius: 12px; box-shadow: 0 0 0 4px #26303a; }
  .une span.une-photo { font-size: 2rem; }
  .une-metier { grid-column: 2; grid-row: 1; align-self: end; justify-self: start; font-size: .8rem; }
  .une-corps h3 { grid-column: 2; grid-row: 2; font-size: 1.45rem; }
  .une-titre { grid-column: 2; grid-row: 3; align-self: start; font-size: .9rem; }
  .une-texte, .une-prestations, .une-actions { grid-column: 1 / -1; }
  .une-texte { margin-top: .5rem; }
  /* Plusieurs personnes (IFM) : les photos au-dessus, sur toute la largeur */
  .une-panneau:has(.une-equipe) .une-equipe { grid-column: 1 / -1; grid-row: auto; margin-bottom: .5rem; }
  .une-panneau:has(.une-equipe) .une-metier,
  .une-panneau:has(.une-equipe) .une-corps h3,
  .une-panneau:has(.une-equipe) .une-titre { grid-column: 1 / -1; grid-row: auto; align-self: start; }
  .une-panneau:has(.une-equipe) .une-metier { justify-self: start; }
  .une-equipe-photo { aspect-ratio: 4 / 3; }
}

/* ==========================================================
   Prise de rendez-vous
   ========================================================== */
.rdv-etapes { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; padding: 0; margin: 1.5rem 0 0; }
.rdv-etapes li { display: flex; align-items: center; gap: .5rem; color: var(--gris); font-weight: 500; max-width: none; }
.rdv-etapes span { width: 1.8rem; height: 1.8rem; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--filet); font-size: .85rem; }
.rdv-etapes .actuelle { color: var(--encre); }
.rdv-etapes .actuelle span { background: var(--ardoise); border-color: var(--ardoise); color: #fff; }
.rdv-etapes .fait span { background: var(--craie); color: var(--ardoise); }
.rdv-pros { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: .75rem; }
.rdv-pro { display: grid; grid-template-columns: 64px 1fr auto; gap: 1rem; align-items: center; padding: 1rem 1.1rem; border: 1px solid var(--filet); border-radius: 8px; color: var(--encre); text-decoration: none; background: var(--blanc); transition: border-color .15s, box-shadow .15s; }
.rdv-pro:hover { border-color: var(--ardoise); box-shadow: 0 8px 22px rgba(30,37,45,.07); }
.rdv-photo { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; border: 0; }
.rdv-pro-nom { display: block; font-family: var(--serif); font-weight: 600; font-size: 1.15rem; }
.rdv-pro-titre, .rdv-pro-modes { display: block; color: var(--gris); font-size: .9rem; }
.rdv-pro-prix { font-weight: 600; white-space: nowrap; }
.rdv-choix { display: flex; align-items: center; gap: .9rem; padding: .8rem 1rem; border: 1px solid var(--filet); border-radius: 8px; background: var(--craie); margin-bottom: .6rem; }
.rdv-choix > div { flex: 1; display: flex; flex-direction: column; }
.rdv-choix span { color: var(--gris); font-size: .9rem; }
.rdv-choix a { font-size: .9rem; }
.rdv-photo-petite { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; border: 0; }
.rdv-formules { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: .75rem; }
.rdv-formule { display: flex; flex-direction: column; gap: .2rem; padding: 1rem 1.1rem; border: 1px solid var(--filet); border-radius: 8px; color: var(--encre); text-decoration: none; background: var(--blanc); }
.rdv-formule:hover { border-color: var(--ardoise); }
.rdv-formule.complet { opacity: .65; }
.rdv-formule-nom { font-weight: 600; }
.rdv-formule-prix { font-family: var(--serif); font-size: 1.4rem; font-weight: 600; }
.rdv-formule-dispo { color: var(--gris); font-size: .85rem; }
.rdv-jours { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: .75rem; }
.rdv-jour { border: 1px solid var(--filet); border-radius: 8px; padding: .9rem 1rem; background: var(--blanc); }
.rdv-jour h3 { font-size: 1rem; margin: 0 0 .6rem; }
.rdv-heures { display: flex; flex-wrap: wrap; gap: .4rem; }
.rdv-heures a { display: inline-block; min-width: 4.6rem; text-align: center; padding: .45rem .6rem; border: 1px solid var(--ardoise); border-radius: 6px; color: var(--ardoise); text-decoration: none; font-weight: 600; font-variant-numeric: tabular-nums; }
.rdv-heures a:hover, .rdv-heures a:focus-visible { background: var(--ardoise); color: #fff; }
@media (max-width: 575.98px) { .rdv-pro { grid-template-columns: 52px 1fr; } .rdv-photo { width: 52px; height: 52px; } .rdv-pro-prix { grid-column: 2; } }

/* Mes paiements (Stripe Connect) */
.statut-stripe-actif { color: #0b6b4b; }
.statut-stripe-en_verification, .statut-stripe-incomplet { color: #a16207; }
.statut-stripe-restreint { color: #b91c1c; }
.liste-etapes { padding-left: 1.2rem; }
.liste-etapes li { margin-bottom: .6rem; max-width: none; }

/* ── Section « Pour les professionnels » : canaux → Ardoise → demandes ── */
.section-canaux { overflow: hidden; }
.canaux-grille { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(2rem, 4vw, 4rem); align-items: center; }
.canaux-schema { position: relative; aspect-ratio: 580 / 440; background: var(--blanc); border: 1px solid var(--filet); border-radius: 18px; box-shadow: 0 18px 50px -24px rgba(30, 37, 45, .28); }
.canaux-liens { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.canaux-liens path { fill: none; stroke: var(--filet); stroke-width: 1.5; stroke-dasharray: 4 4; vector-effect: non-scaling-stroke; }
.canaux-liens .point-entree { fill: var(--laiton); }
.canaux-liens .point-sortie { fill: var(--ardoise); }
.canaux-sources { list-style: none; margin: 0; padding: 0; }
.canaux-sources li { position: absolute; left: 2%; width: 24.5%; height: 12.3%; display: flex; align-items: center; gap: .55rem; padding: 0 .7rem;
  background: var(--blanc); border: 1px solid var(--filet); border-radius: 10px; font-size: clamp(.62rem, .45rem + .4vw, .8rem); font-weight: 600; color: var(--encre); line-height: 1.15; }
.canaux-sources svg { width: 1.6em; height: 1.6em; flex: none; padding: .25em; border-radius: 6px; background: var(--craie); color: var(--ardoise); }
.canaux-centre { position: absolute; left: 42.4%; top: 39.5%; width: 15.5%; aspect-ratio: 1; border-radius: 50%; background: var(--ardoise); display: grid; place-items: center;
  box-shadow: 0 0 0 8px rgba(45, 57, 69, .07), 0 10px 28px rgba(45, 57, 69, .35); }
.canaux-centre::before, .canaux-centre::after { content: ""; position: absolute; inset: -12%; border-radius: 50%; border: 1.5px solid rgba(45, 57, 69, .18); animation: canaux-onde 2.4s ease-out infinite; }
.canaux-centre::after { animation-delay: .8s; }
.canaux-centre .brand-mark { width: 38%; height: 38%; background: var(--craie); border-radius: 18%; position: relative; }
.canaux-centre .brand-mark::after { content: ""; position: absolute; left: 22%; right: 22%; bottom: 24%; height: 9%; background: var(--ardoise); }
@keyframes canaux-onde { from { transform: scale(.9); opacity: 1; } to { transform: scale(1.35); opacity: 0; } }
.canaux-panneau { position: absolute; right: 1.5%; top: 3%; bottom: 3%; width: 32%; background: var(--craie); border-radius: 0 14px 14px 0; border-left: 1px solid var(--filet); padding: 3% 2.5%; display: flex; flex-direction: column; }
.canaux-panneau-titre { font-size: clamp(.5rem, .4rem + .25vw, .64rem); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--gris); margin: 0 0 .6rem; }
.canaux-panneau ol { list-style: none; margin: 0; padding: 0; flex: 1; display: flex; flex-direction: column; gap: 5%; overflow: hidden; }
.canaux-carte { display: grid; grid-template-columns: 1fr; gap: .2rem .4rem; background: var(--blanc); border: 1px solid var(--filet); border-radius: 8px; padding: .45rem .55rem;
  font-size: clamp(.55rem, .42rem + .3vw, .72rem); opacity: 0; animation: canaux-carte 12s ease infinite; }
.canaux-objet { font-weight: 700; color: var(--encre); }
.canaux-montant { font-weight: 700; color: var(--ardoise); text-align: right; white-space: nowrap; }
.canaux-statut { justify-self: start; grid-column: 1 / -1; font-size: .9em; font-weight: 600; border-radius: 4px; padding: .05rem .4rem; }
.canaux-statut-ok { background: #e3f1ea; color: #0b6b4b; } .canaux-statut-att { background: #fbf1dc; color: #8a5a10; }
.canaux-statut-info { background: #e6ebf1; color: var(--ardoise); } .canaux-statut-neuf { background: #f3e8e2; color: #8c3f22; }
@keyframes canaux-carte { 0% { opacity: 0; transform: translateY(8px); } 6%, 82% { opacity: 1; transform: none; } 92%, 100% { opacity: 0; transform: translateY(-4px); } }
.canaux-total { display: flex; justify-content: space-between; align-items: flex-end; border-top: 1px solid var(--filet); padding-top: .5rem; margin-top: .5rem; font-size: clamp(.5rem, .4rem + .25vw, .65rem); color: var(--gris); text-transform: uppercase; letter-spacing: .05em; }
.canaux-total strong { font-family: var(--serif); font-size: 1.5em; color: var(--ardoise); text-transform: none; letter-spacing: 0; line-height: 1; }
.surtitre { font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--laiton); margin-bottom: .75rem; }
.canaux-texte h2 { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.3rem); margin-bottom: 1rem; }
.canaux-texte > p:not(.surtitre) { color: var(--gris); font-size: 1.05rem; }
.canaux-encadre { margin: 1.4rem 0 1.6rem; padding: 1rem 1.2rem; background: #fbf6ee; border: 1px solid #ecdcc0; border-radius: 10px; color: #6f531f; font-weight: 600; }
/* positions (pas de style en ligne : politique de sécurité du site) */
.canaux-sources li:nth-child(1) { top: 5.23%; }
.canaux-sources li:nth-child(2) { top: 20.68%; }
.canaux-sources li:nth-child(3) { top: 36.14%; }
.canaux-sources li:nth-child(4) { top: 51.59%; }
.canaux-sources li:nth-child(5) { top: 67.05%; }
.canaux-sources li:nth-child(6) { top: 82.50%; }
.canaux-carte:nth-child(1) { animation-delay: 0.0s; }
.canaux-carte:nth-child(2) { animation-delay: 1.2s; }
.canaux-carte:nth-child(3) { animation-delay: 2.4s; }
.canaux-carte:nth-child(4) { animation-delay: 3.6s; }
.canaux-carte:nth-child(5) { animation-delay: 4.8s; }
@media (max-width: 991.98px) { .canaux-grille { grid-template-columns: 1fr; } .canaux-texte { order: -1; } }
@media (max-width: 575.98px) { .canaux-schema { display: none; } }
@media (prefers-reduced-motion: reduce) {
  .canaux-liens circle { display: none; } .canaux-centre::before, .canaux-centre::after { animation: none; opacity: 0; }
  .canaux-carte { animation: none; opacity: 1; }
}

/* ── Accueil : bloc « Quelle est votre démarche ? » en schéma animé (fond ardoise) ── */
.flux-hero .flux-hero-schema { position: relative; aspect-ratio: 460 / 520; margin-top: .5rem; }
.flux-hero-liens { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.flux-hero-liens path { fill: none; stroke: rgba(243, 245, 247, .22); stroke-width: 1.4; stroke-dasharray: 4 4; vector-effect: non-scaling-stroke; }
.flux-hero-liens .point { fill: #c9a467; }
.flux-hero-liens .point-clair { fill: var(--craie); }
.flux-hero-domaines { list-style: none; margin: 0; padding: 0; }
.flux-hero-domaines li { position: absolute; left: 0; width: 51.3%; height: 11.9%; }
.flux-hero-domaines a { display: flex; flex-direction: column; justify-content: center; height: 100%; padding: 0 .8rem; border-radius: 10px;
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14); color: var(--craie); text-decoration: none; transition: background .2s, border-color .2s, transform .2s; }
.flux-hero-domaines a:hover, .flux-hero-domaines a:focus-visible { background: rgba(255, 255, 255, .13); border-color: rgba(201, 164, 103, .7); transform: translateX(3px); }
.flux-hero-domaines .ardoise-label { font-family: var(--serif); font-weight: 600; font-size: clamp(.78rem, .55rem + .45vw, .98rem); line-height: 1.2; }
.flux-hero-domaines .ardoise-count { font-size: clamp(.62rem, .5rem + .25vw, .74rem); color: rgba(243, 245, 247, .65); margin-top: .1rem; background: none; padding: 0; }
.flux-hero-domaines li:nth-child(1) { top: 5.77%; } .flux-hero-domaines li:nth-child(2) { top: 20.77%; } .flux-hero-domaines li:nth-child(3) { top: 35.77%; }
.flux-hero-domaines li:nth-child(4) { top: 50.77%; } .flux-hero-domaines li:nth-child(5) { top: 65.77%; } .flux-hero-domaines li:nth-child(6) { top: 80.77%; }
.flux-hero-centre { position: absolute; left: 66.1%; top: 29.6%; width: 20%; aspect-ratio: 1; border-radius: 50%; background: var(--craie); display: grid; place-items: center;
  box-shadow: 0 0 0 7px rgba(243, 245, 247, .08), 0 10px 30px rgba(0, 0, 0, .35); }
.flux-hero-centre::before, .flux-hero-centre::after { content: ""; position: absolute; inset: -14%; border-radius: 50%; border: 1.5px solid rgba(243, 245, 247, .22); animation: canaux-onde 2.4s ease-out infinite; }
.flux-hero-centre::after { animation-delay: .8s; }
.flux-hero-centre .brand-mark { width: 40%; height: 40%; background: var(--ardoise); border-radius: 18%; position: relative; }
.flux-hero-centre .brand-mark::after { content: ""; position: absolute; left: 22%; right: 22%; bottom: 24%; height: 9%; background: var(--craie); }
.flux-hero-etapes { position: absolute; left: 57.5%; right: 0; top: 56.5%; list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .45rem; }
.flux-hero-etapes li { display: flex; align-items: center; gap: .45rem; padding: .5rem .6rem; border-radius: 9px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12);
  color: rgba(243, 245, 247, .55); font-size: clamp(.62rem, .48rem + .3vw, .78rem); line-height: 1.25; animation: flux-etape 7.5s ease infinite; }
.flux-hero-etapes li::before { content: ""; flex: none; width: 1.05em; height: 1.05em; border-radius: 50%; border: 1.5px solid currentColor; }
.flux-hero-etapes li:nth-child(2) { animation-delay: 2.5s; } .flux-hero-etapes li:nth-child(3) { animation-delay: 5s; }
@keyframes flux-etape {
  0%, 30% { color: var(--craie); border-color: rgba(201, 164, 103, .75); background: rgba(201, 164, 103, .16); }
  36%, 100% { color: rgba(243, 245, 247, .55); border-color: rgba(255, 255, 255, .12); background: rgba(255, 255, 255, .06); }
}
@media (prefers-reduced-motion: reduce) {
  .flux-hero-liens circle { display: none; } .flux-hero-centre::before, .flux-hero-centre::after { animation: none; opacity: 0; }
  .flux-hero-etapes li { animation: none; color: var(--craie); }
}
.flux-hero .flux-hero-domaines a { display: flex; padding: 0 .8rem; border-top: 1px solid rgba(255, 255, 255, .14); border-radius: 10px; }
.flux-hero .flux-hero-domaines a::after { display: none; }
.flux-hero .flux-hero-domaines a:hover .ardoise-label { text-decoration: none; }

/* Connexion avec Google / Apple */
.sociaux { display: flex; flex-direction: column; gap: 10px; margin-bottom: 1.25rem; }
.btn-social { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 46px; border-radius: 8px; font-weight: 600; text-decoration: none; font-size: .95rem; }
.btn-google { background: #fff; color: #1f1f1f; border: 1px solid #747775; }
.btn-google:hover { background: #f6f8fa; color: #1f1f1f; }
.btn-apple { background: #000; color: #fff; border: 1px solid #000; }
.btn-apple:hover { background: #222; color: #fff; }
.sociaux-ou { display: flex; align-items: center; gap: 10px; margin: 6px 0 0; color: #6b7480; font-size: .85rem; }
.sociaux-ou::before, .sociaux-ou::after { content: ""; flex: 1; height: 1px; background: #dfe4e9; }

/* Choix de la langue */
.choix-langue{position:relative}
.choix-langue summary{list-style:none;cursor:pointer;display:flex;align-items:center;gap:6px;padding:6px 10px;border:1px solid rgba(0,0,0,.15);border-radius:8px;font-size:.85rem;font-weight:600;user-select:none}
.choix-langue summary::-webkit-details-marker{display:none}
.choix-langue ul{position:absolute;right:0;top:calc(100% + 6px);z-index:1050;list-style:none;margin:0;padding:6px;min-width:160px;background:#fff;border:1px solid rgba(0,0,0,.12);border-radius:10px;box-shadow:0 10px 30px rgba(0,0,0,.12)}
.choix-langue li a{display:block;padding:8px 12px;border-radius:6px;color:inherit;text-decoration:none}
.choix-langue li a:hover,.choix-langue li a[aria-current]{background:#f1f3f6}
[dir=rtl] .choix-langue ul{right:auto;left:0}

/* Arabe : lecture de droite à gauche */
[dir=rtl] body{text-align:right}
[dir=rtl] .me-auto{margin-right:0!important;margin-left:auto!important}
[dir=rtl] .ms-auto{margin-left:0!important;margin-right:auto!important}
[dir=rtl] .ms-md-4{margin-left:0!important}
@media (min-width:768px){[dir=rtl] .ms-md-4{margin-right:1.5rem!important}}
[dir=rtl] .text-start{text-align:right!important}
[dir=rtl] .text-end{text-align:left!important}
[dir=rtl] .offset-md-1{margin-left:0;margin-right:8.333333%}
[dir=rtl] input[type=email],[dir=rtl] input[type=tel]{direction:ltr;text-align:right}
[dir=rtl] .skip-link{left:auto;right:0}
[dir=rtl] .skip-link:focus{right:1rem}
[dir=rtl]{overflow-x:hidden}

/* Schéma de l'accueil avec 7 ou 8 domaines (positions calculées comme dans home.php) */
.flux-hero-schema.n7 .flux-hero-domaines li { height: 10.54%; }
.flux-hero-schema.n7 .flux-hero-domaines li:nth-child(1) { top: 5.39%; } .flux-hero-schema.n7 .flux-hero-domaines li:nth-child(2) { top: 18.25%; } .flux-hero-schema.n7 .flux-hero-domaines li:nth-child(3) { top: 31.10%; } .flux-hero-schema.n7 .flux-hero-domaines li:nth-child(4) { top: 43.96%; } .flux-hero-schema.n7 .flux-hero-domaines li:nth-child(5) { top: 56.82%; } .flux-hero-schema.n7 .flux-hero-domaines li:nth-child(6) { top: 69.67%; } .flux-hero-schema.n7 .flux-hero-domaines li:nth-child(7) { top: 82.53%; }
.flux-hero-schema.n8 .flux-hero-domaines li { height: 9.22%; }
.flux-hero-schema.n8 .flux-hero-domaines li:nth-child(1) { top: 5.24%; } .flux-hero-schema.n8 .flux-hero-domaines li:nth-child(2) { top: 16.49%; } .flux-hero-schema.n8 .flux-hero-domaines li:nth-child(3) { top: 27.74%; } .flux-hero-schema.n8 .flux-hero-domaines li:nth-child(4) { top: 38.99%; } .flux-hero-schema.n8 .flux-hero-domaines li:nth-child(5) { top: 50.24%; } .flux-hero-schema.n8 .flux-hero-domaines li:nth-child(6) { top: 61.49%; } .flux-hero-schema.n8 .flux-hero-domaines li:nth-child(7) { top: 72.74%; } .flux-hero-schema.n8 .flux-hero-domaines li:nth-child(8) { top: 83.99%; }

/* Espace pro (/professionnels) */
.pros-hero h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.4rem); max-width: 18ch; line-height: 1.08; }
.pros-hero h1 em { font-style: italic; color: var(--laiton); }
.pros-hero .lead { max-width: 60ch; }
.pros-sur { text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 600; color: var(--laiton); margin-bottom: .6rem; }
.pros-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.6rem 0 2rem; }
.pros-metiers { display: flex; flex-wrap: wrap; gap: .5rem; }
.pros-metiers a { display: inline-flex; align-items: center; gap: .45rem; padding: .5rem .9rem; border: 1px solid var(--filet); border-radius: 999px; text-decoration: none; color: var(--encre); background: #fff; font-size: .95rem; }
.pros-metiers a:hover, .pros-metiers a:focus-visible { border-color: var(--ardoise); background: var(--craie); }
.pros-grille { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.pro-carte { background: #fff; border: 1px solid var(--filet); border-radius: 14px; padding: 1.6rem; display: flex; flex-direction: column; scroll-margin-top: 100px; }
.pro-carte:target { border-color: var(--laiton); box-shadow: 0 0 0 3px rgba(154, 116, 54, .18); }
.pro-icone { font-size: 2rem; line-height: 1; margin-bottom: .8rem; }
.pro-carte h2 { font-size: 1.4rem; margin-bottom: .35rem; }
.pro-accroche { color: var(--gris); margin-bottom: 1rem; }
.pro-carte ul { list-style: none; padding: 0; margin: 0 0 1.2rem; display: grid; gap: .55rem; flex: 1; }
.pro-carte li { position: relative; padding-left: 1.4rem; line-height: 1.45; }
.pro-carte li::before { content: ""; position: absolute; left: 0; top: .5em; width: .55rem; height: .55rem; border-radius: 50%; background: var(--laiton); }
.pro-lien { font-weight: 600; color: var(--ardoise); text-decoration: none; }
.pro-lien:hover { text-decoration: underline; }
@media (min-width: 992px) and (max-width: 1299.98px) { .navbar .nav-link { font-size: .92rem; padding-left: .45rem !important; padding-right: .45rem !important; } }
.pro-ref { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); border: 1px solid var(--filet); border-radius: 16px; overflow: hidden; background: #fff; }
.pro-ref-visuel { min-height: 280px; background: var(--ardoise); }
.pro-ref-visuel img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pro-ref-visuel.sans-image { display: grid; place-items: center; background: linear-gradient(135deg, var(--ardoise), var(--encre)); }
.pro-ref-visuel.sans-image span { font-family: var(--serif); font-size: clamp(2rem, 1.5rem + 2vw, 3rem); color: #fff; font-style: italic; }
.pro-ref-corps { padding: 1.8rem 2rem; }
.pro-ref-corps h3 { font-size: 1.8rem; margin-bottom: .5rem; }
.pro-ref-corps ul { list-style: none; padding: 0; margin: 1rem 0 1.4rem; display: grid; gap: .5rem; }
.pro-ref-corps li { position: relative; padding-left: 1.4rem; }
.pro-ref-corps li::before { content: "✓"; position: absolute; left: 0; color: var(--laiton); font-weight: 700; }
.pro-ref-rejoindre { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1.25rem; padding: 1.2rem 1.5rem; border: 1px dashed var(--laiton); border-radius: 14px; background: #fffaf2; }
.pro-ref-rejoindre p { margin: 0; }
@media (max-width: 767.98px) { .pro-ref { grid-template-columns: 1fr; } .pro-ref-visuel { min-height: 200px; } .pro-ref-corps { padding: 1.4rem; } }
.pro-ref + .pro-ref { margin-top: 1.25rem; }

/* Manuels PDF IFM (/formations/manuels) */
.manuels-grille { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }
.manuel { display: flex; flex-direction: column; border: 1px solid var(--filet); border-radius: 14px; overflow: hidden; background: #fff; }
.manuel.choisi { border-color: var(--laiton); box-shadow: 0 0 0 3px rgba(154, 116, 54, .18); }
.manuel-couv { display: block; background: var(--craie); padding: 1rem 1rem 0; text-align: center; }
.manuel-couv img { width: 100%; max-width: 220px; height: auto; aspect-ratio: 210 / 297; object-fit: cover; box-shadow: 0 10px 24px rgba(30, 37, 45, .18); border-radius: 3px; }
.manuel-corps { padding: 1rem 1.2rem 1.2rem; display: flex; flex-direction: column; flex: 1; }
.manuel-corps h3 { font-size: 1.25rem; margin: 0 0 .2rem; }
.manuel-sous { color: var(--laiton); font-weight: 600; font-size: .9rem; margin-bottom: .5rem; }
.manuel-desc { font-size: .92rem; color: var(--gris); flex: 1; }
.manuel-infos { font-size: .8rem; color: var(--gris); margin-bottom: .8rem; }
.manuel-bas { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.manuel-bas strong { font-size: 1.25rem; font-family: var(--serif); }
.manuel-merci { display: flex; gap: 1.2rem; align-items: center; margin-top: 1rem; }
.manuel-merci img { border-radius: 3px; box-shadow: 0 8px 20px rgba(30, 37, 45, .18); width: 120px; height: auto; }
.dm-hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; margin: -1px; padding: 0; border: 0; }
.manuel-actions { display: inline-flex; gap: .4rem; }
.manuel-achat-bandeau { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem; padding: 1rem 1.2rem; border: 1px solid var(--filet); border-radius: 12px; background: var(--craie); margin: 1.2rem 0 1.5rem; }
.manuel-apercu { display: grid; gap: 1.2rem; }
.manuel-apercu figure { margin: 0; border: 1px solid var(--filet); border-radius: 6px; overflow: hidden; box-shadow: 0 10px 28px rgba(30, 37, 45, .1); background: #fff; }
.manuel-apercu img { width: 100%; height: auto; display: block; -webkit-user-drag: none; user-select: none; }
.manuel-apercu-fin { text-align: center; padding: 2rem 1rem; border: 2px dashed var(--laiton); border-radius: 12px; background: #fffaf2; }

/* Partenaire à la une, option B : trombinoscope (photos rondes en ligne) au-dessus de la fiche ; bande qui défile sur petit écran */
.une-cadre { display: flex; flex-direction: column; }
.une-cadre .une-vignettes { order: -1; display: flex; grid-template-columns: none; gap: .5rem; margin: 0 0 2.75rem; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 6px 2px 4px; }
.une-cadre .une-vignettes::-webkit-scrollbar { display: none; }
.une-cadre .une-vignette { flex: 1 0 128px; flex-direction: column; justify-content: flex-start; text-align: center; gap: .6rem; min-height: 0; padding: .4rem .25rem; background: none; border: 0; scroll-snap-align: start; opacity: .72; transition: opacity .15s ease; }
.une-cadre .une-vignette:hover { background: none; opacity: 1; }
.une-cadre .une-vignette[aria-selected="true"], .une-cadre .une-vignette[aria-current="true"] { background: none; opacity: 1; }
.une-cadre .une-mini { width: 104px; height: 104px; border: 4px solid #26303a; box-shadow: none; transition: box-shadow .15s ease, border-color .15s ease; }
.une-cadre .une-minis .une-mini { width: 76px; height: 104px; border-radius: 52px; }
.une-cadre .une-vignette[aria-selected="true"] .une-mini, .une-cadre .une-vignette[aria-current="true"] .une-mini { border-color: #f07f13; box-shadow: 0 0 0 4px var(--ardoise), 0 0 0 6px #f07f13; }
.une-cadre .une-vignette:focus-visible { outline: 2px solid #fff; outline-offset: 4px; border-radius: 12px; }
.une-v-texte { display: flex; flex-direction: column; min-width: 0; max-width: 100%; }
.une-v-texte b { font-weight: 600; font-size: .95rem; color: #fff; line-height: 1.25; }
.une-v-texte small { font-size: .78rem; color: #c5ced6; font-weight: 400; line-height: 1.3; margin-top: .1rem; }
@media (max-width: 1099.98px) {
  .une-cadre .une-vignettes { margin-bottom: 1.75rem; }
  .une-cadre .une-vignette { flex: 0 0 104px; }
  .une-cadre .une-mini { width: 76px; height: 76px; border-width: 3px; }
  .une-cadre .une-minis .une-mini { width: 56px; height: 76px; }
  .une-v-texte b { font-size: .85rem; }
  .une-v-texte small { font-size: .72rem; }
}

/* Correctifs de l'audit mobile (nov. 2026) */
@media (max-width: 575.98px) {
  .fiche-ligne { grid-template-columns: 48px minmax(0, 1fr); }
  .fiche-ligne > * { min-width: 0; }
  .fiche-prix { white-space: normal; text-align: left; }
  .fiche-specialites { overflow-wrap: anywhere; }
}
.form-check-input { width: 1.25rem; height: 1.25rem; margin-top: .15rem; }
.site-footer-ardoise a { display: inline-block; padding: .35rem 0; }
@media (max-width: 991.98px) { input, select, textarea { font-size: 16px; } } /* pas de zoom automatique sur iPhone */

/* Accueil : partenaire cliquable vers sa fiche */
.une-photo-lien { display: block; line-height: 0; border-radius: 12px; }
.une-photo-lien:focus-visible { outline: 2px solid var(--craie); outline-offset: 3px; }
.une-nom-lien { color: inherit; text-decoration: none; }
.une-nom-lien:hover, .une-nom-lien:focus-visible { text-decoration: underline; }
