/* ==========================================================================
   BMCI — Front-end du site public
   Auteur : reproduction à partir des captures écran fournies
   Structure :
     1. Polices & variables
     2. Reset & bases
     3. Composants génériques (boutons, titres, icônes)
     4. En-tête (topbar, header, navigation, fil d'ariane)
     5. Hero / slider
     6. Bandeau d'accès rapides
     7. Pourquoi devenir client
     8. Notre sélection
     9. Trouver une agence / Prendre rendez-vous
    10. La vie de la BMCI
    11. Témoignages
    12. Contacts
    13. Aide
    14. Simuler, évaluer & comparer
    15. Footer
    16. Barre d'outils fixe + retour en haut
    17. Responsive
   ========================================================================== */

/* ------------------------------------------------------------------ 1. Polices */
@font-face {
  font-family: 'Oswald';
  src: url('../fonts/oswald-latin.woff2') format('woff2');
  font-weight: 200 700;
  font-display: swap;
}
@font-face {
  font-family: 'Open Sans';
  src: url('../fonts/opensans-latin.woff2') format('woff2');
  font-weight: 300 800;
  font-display: swap;
}

:root {
  /* Couleurs de marque */
  --green: #00875a;
  --green-700: #006b48;
  --green-900: #005c4f;
  --green-contacts: #008578;
  --teal: #17b39b;
  --mint: #cde7de;
  --orange: #e8730f;
  --orange-bright: #fe790d;
  --orange-soft: #ff9f51;
  --sky: #a9d8ee;

  /* Neutres */
  --ink: #1d1d1b;
  --ink-soft: #4a4a48;
  --grey-50: #f9f9f8;
  --grey-100: #f2f1ef;
  --grey-200: #e6e5e3;
  --line: #dddedf;
  --white: #fff;

  /* Typo */
  --font-head: 'Oswald', 'Arial Narrow', 'Helvetica Neue', Arial, sans-serif;
  --font-body: 'Open Sans', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;

  /* Rythme */
  --container: 1240px;
  --gutter: clamp(1rem, 3vw, 2.5rem);
  --section-y: clamp(2.5rem, 5vw, 4.5rem);
  --radius: 2px;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .08);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, .12);
  --shadow-lg: 0 18px 50px rgba(0, 0, 0, .18);
  --dock-h: 62px;
}

/* ------------------------------------------------------------------ 2. Reset & bases */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  padding-bottom: var(--dock-h); /* place pour la barre d'outils fixe */
  overflow-x: hidden;
}

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

img { height: auto; }

a { color: inherit; text-decoration: none; }

button { font: inherit; color: inherit; }

ul { margin: 0; padding: 0; list-style: none; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 600;
  letter-spacing: .01em;
  line-height: 1.12;
  text-transform: uppercase;
  margin: 0;
}

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 2px;
}

.container {
  width: min(100% - (2 * var(--gutter)), var(--container));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 200;
  background: var(--green-900);
  color: #fff;
  padding: .7rem 1.2rem;
  font-weight: 700;
  transition: top .2s;
}
.skip-link:focus { top: .6rem; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ------------------------------------------------------------------ 3. Composants */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: .95rem;
  letter-spacing: .07em;
  text-transform: uppercase;
  line-height: 1;
  padding: .95rem 1.5rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s;
}
.btn .ico { width: 1.15em; height: 1.15em; flex: none; }
.btn:active { transform: translateY(1px); }

.btn--green { background: var(--green); color: #fff; }
.btn--green:hover { background: var(--green-700); }

.btn--orange { background: var(--orange-bright); color: #fff; }
.btn--orange:hover { background: var(--orange); }

.btn--ghost {
  background: #f6f6f6;
  color: var(--ink);
  border-color: #d9d9d9;
}
.btn--ghost:hover { background: #fff; border-color: #bfbfbf; }

.btn--outline-light {
  background: transparent;
  color: #fff;
  border-color: #fff;
}
.btn--outline-light:hover { background: #fff; color: var(--orange-bright); }

.btn--sm { padding: .7rem 1.1rem; font-size: .82rem; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-family: var(--font-head);
  font-size: .95rem;
  letter-spacing: .05em;
  text-transform: uppercase;
  border-bottom: 2px solid currentColor;
  padding-bottom: 2px;
  transition: gap .2s, opacity .2s;
}
.link-arrow:hover { gap: .6rem; opacity: .85; }

/* Titres de section avec filet */
.section-title {
  font-size: clamp(1.65rem, 3.1vw, 2.35rem);
  font-weight: 600;
}
.section-title::after {
  content: '';
  display: block;
  width: 88px;
  height: 4px;
  margin-top: .8rem;
  background: currentColor;
}
.section-title--center { text-align: center; }
.section-title--center::after { margin-inline: auto; }

.section-title--white { color: #fff; }
.section-title--white::after { background: rgba(255, 255, 255, .85); }

.section-title--sm { font-size: clamp(1.35rem, 2.4vw, 1.8rem); }

.eyebrow {
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .78rem;
  color: var(--orange);
  margin-bottom: .5rem;
}

.ico { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.ico--solid { fill: currentColor; stroke: none; }

/* Apparition au scroll (désactivée si mouvement réduit) */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity .6s ease, transform .6s ease;
  }
  .reveal.is-visible { opacity: 1; transform: none; }
}

/* ------------------------------------------------------------------ 4. En-tête */
.topbar {
  background: linear-gradient(#f7f7f7, #ececec);
  border-bottom: 1px solid #e2e2e2;
  font-size: .78rem;
  color: #6d6d6d;
}
.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: .5rem;
  min-height: 28px;
}
.topbar__close {
  width: 26px; height: 26px;
  display: grid; place-items: center;
  background: #fff;
  border: 1px solid #e2e2e2;
  color: #8a8a8a;
  cursor: pointer;
  margin-left: .4rem;
}
.topbar__close:hover { color: var(--ink); }
.topbar__close .ico { width: 14px; height: 14px; }

.site-header {
  background: linear-gradient(#e9eaeb, #dcddde 60%, #e9eaeb);
  border-bottom: 1px solid #d5d6d7;
  position: relative;
  z-index: 60;
}
.site-header__inner {
  display: flex;
  align-items: center;
  gap: clamp(.75rem, 2vw, 1.75rem);
  padding: .65rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: .7rem;
  flex: none;
  line-height: 0;
}
.brand svg,
.brand img { width: clamp(132px, 13.5vw, 168px); height: auto; }

.header-tagline {
  border-left: 1px solid #b9bbbc;
  padding-left: 1.25rem;
  margin: 0;
  font-family: var(--font-head);
  font-weight: 400;
  font-size: clamp(.95rem, 1.3vw, 1.15rem);
  color: #3d3d3b;
  letter-spacing: .01em;
  white-space: nowrap;
}

.header-actions {
  margin-left: auto;
  display: flex;
  gap: .5rem;
  align-items: stretch;
}
.header-actions .btn {
  white-space: nowrap;
  min-height: 46px;
  border-radius: 0;
}

.nav-toggle {
  display: none;
  width: 48px; height: 46px;
  background: var(--green);
  color: #fff;
  border: 0;
  border-radius: 0;
  cursor: pointer;
  place-items: center;
}
.nav-toggle .ico { width: 24px; height: 24px; }

.main-nav {
  background: #fff;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(0, 0, 0, .02);
  position: relative;
  z-index: 55;
}
.main-nav__list {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: clamp(1rem, 3vw, 2.6rem);
}
.main-nav__link {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .95rem 0;
  font-family: var(--font-head);
  font-size: .95rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #2b2b2a;
  border-bottom: 2px solid transparent;
  transition: color .2s, border-color .2s;
}
.main-nav__link:hover { color: var(--orange-bright); border-bottom-color: var(--orange-bright); }
.main-nav__link[aria-current='page'] { color: var(--orange-bright); }
.main-nav__link--ar { font-family: 'Segoe UI', Tahoma, sans-serif; letter-spacing: 0; }

.breadcrumb {
  background: var(--grey-100);
  font-size: .8rem;
  color: #6f6f6d;
}
.breadcrumb .container {
  display: flex;
  align-items: center;
  gap: .45rem;
  min-height: 34px;
}
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb .ico { width: 10px; height: 10px; }

/* ------------------------------------------------------------------ 5. Hero */
.hero {
  position: relative;
  background: #8d8377;
  color: #fff;
  overflow: hidden;
}
.hero__viewport { position: relative; }

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(1rem, 3vw, 3rem);
  padding-block: clamp(2rem, 4vw, 3.5rem);
  opacity: 0;
  visibility: hidden;
  transition: opacity .7s ease;
}
.hero-slide.is-active { opacity: 1; visibility: visible; position: relative; }
.hero-slide:not(.is-active) { pointer-events: none; }

.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, .42) 0%, rgba(0, 0, 0, .18) 45%, rgba(0, 0, 0, 0) 70%),
    linear-gradient(0deg, rgba(0, 0, 0, .28), rgba(0, 0, 0, 0) 45%);
}
.hero__content { position: relative; z-index: 1; min-width: 0; padding-left: var(--gutter); }
.hero__aside {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding-right: var(--gutter);
}

.hero__title {
  font-size: clamp(1.9rem, 4.4vw, 3.35rem);
  font-weight: 600;
  line-height: 1.05;
  max-width: 15ch;
  text-shadow: 0 2px 14px rgba(0, 0, 0, .35);
}
.hero__title .u {
  display: block;
  position: relative;
  padding-bottom: .42em;
}
.hero__title .u::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: min(58%, 220px);
  height: 4px;
  background: rgba(0, 0, 0, .6);
}
.hero__subtitle {
  margin-top: 1rem;
  font-family: var(--font-head);
  font-weight: 400;
  font-size: clamp(1rem, 1.6vw, 1.35rem);
  text-shadow: 0 2px 10px rgba(0, 0, 0, .45);
}
.hero__cta { margin-top: 1.6rem; }

/* Panneau application + QR codes */
.app-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .9rem;
}
.app-panel__brand {
  display: flex;
  align-items: center;
  gap: .5rem;
  color: #fff;
  font-family: var(--font-head);
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
  font-weight: 700;
  letter-spacing: .04em;
  text-shadow: 0 2px 10px rgba(0, 0, 0, .4);
}
.app-panel__on {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  border-radius: 10px;
  background: var(--green);
  font-size: .95rem;
  font-weight: 700;
  letter-spacing: .02em;
}
.qr-row { display: flex; gap: 1.1rem; align-items: flex-start; }
.qr {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .4rem;
}
.qr img {
  width: clamp(74px, 7vw, 96px);
  aspect-ratio: 1;
  background: #fff;
  padding: 4px;
  border-radius: 3px;
}
.store-badge {
  display: flex;
  align-items: center;
  gap: .4rem;
  background: #000;
  color: #fff;
  border-radius: 4px;
  padding: .25rem .5rem;
  min-width: 84px;
  line-height: 1.1;
}
.store-badge .ico { width: 16px; height: 16px; flex: none; }
.store-badge b { font-size: .62rem; font-weight: 600; display: block; letter-spacing: .02em; }
.store-badge span { font-size: .72rem; font-weight: 700; display: block; white-space: nowrap; }

.hero__dots {
  position: absolute;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  display: flex;
  gap: .5rem;
  z-index: 3;
}
.hero__dot {
  width: 11px; height: 11px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .9);
  background: rgba(255, 255, 255, .35);
  cursor: pointer;
  padding: 0;
}
.hero__dot[aria-selected='true'] { background: #fff; }

.hero__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 42px; height: 42px;
  display: grid; place-items: center;
  background: rgba(0, 0, 0, .3);
  color: #fff;
  border: 0;
  cursor: pointer;
  transition: background-color .2s;
}
.hero__nav:hover { background: rgba(0, 0, 0, .55); }
.hero__nav--prev { left: 0; }
.hero__nav--next { right: 0; }
.hero__nav .ico { width: 20px; height: 20px; }

/* ------------------------------------------------------------------ 6. Accès rapides */
.quickstrip {
  background: var(--orange);
  background: linear-gradient(180deg, #ec7a15, #e06f0d);
}
.quickstrip__list {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
}
.quickstrip__item {
  display: flex;
  align-items: center;
  gap: .7rem;
  padding: 1.1rem clamp(.5rem, 1.4vw, 1.1rem);
  color: #fff;
  border-left: 1px solid rgba(255, 255, 255, .35);
  transition: background-color .2s;
}
.quickstrip__item:first-child { border-left: 0; }
.quickstrip__item:hover { background: rgba(0, 0, 0, .1); }
.quickstrip__item .ico {
  width: 34px; height: 34px;
  flex: none;
  stroke-width: 1.4;
}
.quickstrip__label {
  font-family: var(--font-head);
  font-size: .78rem;
  line-height: 1.15;
  letter-spacing: .04em;
  text-transform: uppercase;
}

/* ------------------------------------------------------------------ 7. Pourquoi devenir client */
.why {
  background: #fff;
  padding-block: var(--section-y);
}
.why__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .92fr);
  gap: clamp(1.5rem, 3vw, 3rem);
  align-items: start;
}
.why__video {
  position: relative;
  margin-top: 1.5rem;
  border-radius: 2px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: #222;
}
.why__video img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.why__video-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: .9rem 1rem;
  background: linear-gradient(180deg, rgba(0, 0, 0, .55), rgba(0, 0, 0, 0) 35%, rgba(0, 0, 0, .55));
  color: #fff;
}
.why__video-title {
  font-family: var(--font-head);
  font-size: 1.05rem;
  line-height: 1.2;
  margin: 0;
}
.why__video-meta { font-size: .74rem; opacity: .85; }
.why__play {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 68px; height: 48px;
  display: grid; place-items: center;
  background: #e62117;
  border: 0;
  border-radius: 10px;
  color: #fff;
  cursor: pointer;
  transition: transform .2s, background-color .2s;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .35);
}
.why__play:hover { transform: translate(-50%, -50%) scale(1.07); background: #c81c12; }
.why__play .ico { width: 22px; height: 22px; fill: currentColor; stroke: none; }

.why__side {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  background: #f5f5f4;
}
.why__panel {
  padding: clamp(1.4rem, 2.6vw, 2.4rem);
}
.why__panel-title {
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  margin-bottom: 1.5rem;
}
.why__panel-title span { color: var(--orange); }
.why__list { display: grid; gap: 1.15rem; }
.why__list li {
  display: flex;
  align-items: center;
  gap: .9rem;
  font-family: var(--font-head);
  font-size: clamp(.95rem, 1.3vw, 1.1rem);
  text-transform: uppercase;
  letter-spacing: .02em;
}
.why__list .ico { width: 34px; height: 34px; flex: none; color: var(--green); stroke-width: 1.3; }
.why__cta { margin-top: 1.9rem; }
.why__accent { width: clamp(0px, 6vw, 88px); background: var(--mint); }

/* ------------------------------------------------------------------ 8. Notre sélection */
.selection {
  background: var(--teal);
  color: #fff;
  padding-block: var(--section-y);
  overflow: hidden;
}
.selection__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.5rem, 3.5vw, 3.5rem) clamp(2rem, 5vw, 4.5rem);
  margin-top: clamp(1.75rem, 3.5vw, 3rem);
}
.sel-card {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1fr);
  gap: clamp(.9rem, 2vw, 1.6rem);
  align-items: start;
  color: #fff;
}
.sel-card__figure {
  position: relative;
  margin: 0;
  clip-path: polygon(0 0, 100% 0, 92% 50%, 100% 100%, 0 100%);
  overflow: hidden;
  background: rgba(0, 0, 0, .15);
}
.sel-card__figure img {
  width: 100%;
  height: 100%;
  min-height: 120px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform .5s ease;
}
.sel-card:hover .sel-card__figure img { transform: scale(1.05); }
.sel-card__title {
  font-size: clamp(1.05rem, 1.9vw, 1.5rem);
  margin-bottom: .5rem;
  transition: color .2s;
}
.sel-card__text {
  font-size: .92rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, .95);
  margin-bottom: .85rem;
}
.sel-card .link-arrow { font-size: .85rem; }

/* ------------------------------------------------------------------ 9. Agence / RDV */
.agency {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .85fr);
  align-items: stretch;
}

/* -- Carte */
.agency__map {
  position: relative;
  background: var(--sky);
  min-height: 520px;
  isolation: isolate;
}
.map-stage {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.map-stage__inner {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  /* largeur/hauteur définies en JS pour conserver le ratio exact de la carte */
  width: 100%;
  height: 100%;
}
.agency__map-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.95) contrast(.98);
}
.agency__map::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(169, 216, 238, .25), rgba(169, 216, 238, 0) 30%, rgba(169, 216, 238, .35));
  pointer-events: none;
}
.agency__map-head {
  position: relative;
  z-index: 2;
  padding: clamp(1.25rem, 2.4vw, 2rem);
}
.agency__map-title {
  font-size: clamp(1.6rem, 3.2vw, 2.35rem);
  color: var(--ink);
  max-width: 8ch;
  line-height: .95;
  text-shadow: 0 1px 0 rgba(255, 255, 255, .35);
}
.agency__map-title::after { display: none; }
.agency__expand {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: var(--green-900);
  color: #fff;
  border: 0;
  padding: .85rem 1.2rem;
  font-family: var(--font-head);
  font-size: .82rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  cursor: pointer;
}
.agency__expand:hover { background: #00483e; }
.agency__expand .ico { width: 14px; height: 14px; }

/* Épingles agences */
.pin {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 2;
  width: 26px; height: 26px;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  transform: translate(-50%, -100%);
  color: #e8730f;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .3));
}
.pin svg { width: 100%; height: 100%; display: block; }
.pin::after {
  content: attr(data-label);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 4px);
  transform: translateX(-50%);
  background: #fff;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: .68rem;
  font-weight: 600;
  padding: .15rem .45rem;
  border-radius: 2px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s;
  box-shadow: var(--shadow-sm);
}
.pin:hover::after, .pin:focus-visible::after { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
  .pin svg { transition: transform .2s; transform-origin: 50% 100%; }
  .pin:hover svg { transform: scale(1.15); }
}

.agency__search-wrap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: clamp(1.25rem, 3vw, 2.25rem);
  z-index: 3;
  padding-inline: clamp(.75rem, 2vw, 1.5rem);
}
.agency__search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .9fr) minmax(0, .95fr) auto;
  background: #fff;
  box-shadow: var(--shadow-md);
}
.agency__search input,
.agency__search select {
  border: 0;
  border-right: 1px solid #dcdcdc;
  padding: .85rem .8rem;
  font-family: var(--font-body);
  font-size: .82rem;
  color: #3b3b39;
  background: #fff;
  min-width: 0;
  width: 100%;
}
.agency__search select { color: #6c6c6a; }
.agency__search button {
  border: 0;
  background: var(--green-900);
  color: #fff;
  font-family: var(--font-head);
  font-size: .85rem;
  letter-spacing: .08em;
  padding: 0 1.5rem;
  cursor: pointer;
}
.agency__search button:hover { background: #00483e; }
.agency__geoloc {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  margin-top: .5rem;
  font-size: .78rem;
  font-weight: 600;
  color: #fff;
  text-decoration: underline;
  text-shadow: 0 1px 3px rgba(0, 0, 0, .45);
}
.agency__geoloc .ico { width: 15px; height: 15px; }
.agency__credit {
  position: absolute;
  right: .5rem;
  bottom: .2rem;
  z-index: 2;
  font-size: .6rem;
  color: #496069;
  background: rgba(255, 255, 255, .7);
  padding: 0 .3rem;
}

/* -- Formulaire rendez-vous */
.agency__form {
  background: var(--orange-bright);
  color: #fff;
  padding: clamp(1.5rem, 3.2vw, 2.75rem);
}
.agency__form-title { font-size: clamp(1.6rem, 3vw, 2.2rem); line-height: .98; }
.agency__form-title::after {
  content: '';
  display: block;
  width: 62px; height: 3px;
  background: rgba(255, 255, 255, .8);
  margin-top: .9rem;
}
.field { margin-top: 1.15rem; }
.field label,
.field .label {
  display: block;
  font-size: .82rem;
  margin-bottom: .3rem;
  font-weight: 600;
}
.req { font-size: .8em; }
.field input[type='text'],
.field input[type='tel'],
.field input[type='email'],
.field input[type='date'],
.field select {
  width: 100%;
  border: 0;
  background: #fff;
  color: #2c2c2a;
  padding: .68rem .7rem;
  font-family: var(--font-body);
  font-size: .88rem;
  border-radius: 1px;
}
.field input::placeholder { color: #9b9b99; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, #555 50%), linear-gradient(135deg, #555 50%, transparent 50%); background-position: calc(100% - 18px) 55%, calc(100% - 13px) 55%; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; padding-right: 2rem; }

.field--radio .radio-row {
  display: flex;
  gap: 2.25rem;
  align-items: center;
  padding-top: .3rem;
}
.field .radio,
.radio {
  display: inline-flex;
  margin-bottom: 0;
  font-weight: 400;
  align-items: center;
  gap: .5rem;
  font-size: .9rem;
  cursor: pointer;
}
.field .radio > span,
.radio > span { display: inline; }
.radio input {
  appearance: none;
  width: 15px; height: 15px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .9);
  background: #fff;
  display: grid;
  place-items: center;
  margin: 0;
  cursor: pointer;
}
.radio input::after {
  content: '';
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--green);
  transform: scale(0);
  transition: transform .15s;
}
.radio input:checked::after { transform: scale(1); }

.field--date .date-row { display: flex; gap: .35rem; align-items: center; }
.field--date input { width: 3.2rem !important; text-align: center; padding-inline: .2rem; }
.field--date input#yyyy { width: 4.6rem !important; }
.field--date .sep { font-size: .8rem; opacity: .9; }

.agency__form .btn { margin-top: 1.6rem; }
.form-message {
  margin-top: 1rem;
  font-size: .85rem;
  font-weight: 600;
  min-height: 1.2em;
}

/* ------------------------------------------------------------------ 10. La vie de la BMCI */
.life {
  position: relative;
  color: #fff;
  text-align: center;
  padding-block: clamp(3rem, 6vw, 5rem);
  background: #7d8b8d;
  overflow: hidden;
}
.life__bg {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.life::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(20, 45, 55, .35), rgba(20, 45, 55, .12) 50%, rgba(20, 45, 55, .3));
}
.life__inner { position: relative; z-index: 1; }
.life__news { margin-top: 2rem; display: grid; gap: .3rem; justify-items: center; }
.life__date { font-size: .8rem; opacity: .9; }
.life__title {
  font-size: clamp(1.15rem, 2.4vw, 1.75rem);
  max-width: 26ch;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .35);
}
.life__links { margin-top: 1.5rem; display: grid; gap: .5rem; justify-items: center; }
.life__links .link-arrow { font-size: .85rem; }

.fb-bubble {
  position: absolute;
  right: clamp(1rem, 5vw, 4rem);
  top: clamp(1.5rem, 4vw, 3rem);
  z-index: 2;
  display: flex;
  align-items: center;
  gap: .6rem;
  background: #3b5a9a;
  color: #fff;
  border-radius: 12px;
  padding: .7rem 1rem .7rem 2.6rem;
  font-size: .82rem;
  box-shadow: var(--shadow-md);
  transition: background-color .2s, transform .2s;
}
.fb-bubble:hover { background: #2f4a82; transform: translateY(-2px); }
.fb-bubble .fb-badge {
  position: absolute;
  left: -10px;
  bottom: -12px;
  display: grid;
  place-items: center;
  width: 30px; height: 30px;
  border-radius: 6px;
  background: #3b5998;
  border: 2px solid #fff;
}
.fb-bubble .ico { width: 16px; height: 16px; fill: #fff; stroke: none; }

/* ------------------------------------------------------------------ 11. Témoignages */
.testimonials {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  background: #4b4438;
  color: #fff;
  overflow: hidden;
}
.testimonials__body {
  position: relative;
  padding: clamp(2rem, 4vw, 3.5rem) clamp(1.25rem, 4vw, 3.5rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  background:
    radial-gradient(120% 120% at 15% 20%, rgba(120, 130, 120, .55), rgba(40, 38, 32, .9) 70%),
    linear-gradient(120deg, #5c5f4f, #3a362d);
}
.testimonials__title { font-size: clamp(1.5rem, 2.8vw, 2.2rem); margin-bottom: 1.75rem; }
.testimonials__title::after {
  content: '';
  display: block;
  width: 74px; height: 3px;
  background: rgba(255, 255, 255, .75);
  margin: .7rem auto 0;
}
.testimonials__body .testimonials__title { text-align: center; }
.quote {
  position: relative;
  padding-left: 2.2rem;
  max-width: 42ch;
  margin-inline: auto;
}
.quote__mark {
  position: absolute;
  left: 0;
  top: -.15em;
  font-family: Georgia, serif;
  font-size: 3.2rem;
  line-height: 1;
  opacity: .85;
}
.quote__mark--end {
  position: static;
  display: block;
  text-align: right;
  margin-top: -.6rem;
  margin-right: -.6rem;
}
.quote__author {
  font-family: var(--font-head);
  font-size: 1.15rem;
  text-transform: uppercase;
  letter-spacing: .03em;
  margin-bottom: .6rem;
}
.quote__author span { font-family: var(--font-body); font-size: .85rem; text-transform: none; letter-spacing: 0; opacity: .9; margin-left: .25rem; }
.quote__text { font-size: clamp(.95rem, 1.5vw, 1.1rem); line-height: 1.55; }

.testimonials__tabs {
  display: flex;
  justify-content: center;
  gap: .5rem;
  margin-top: 1.75rem;
}
.t-tab {
  display: grid;
  justify-items: center;
  gap: .3rem;
  background: none;
  border: 0;
  color: #fff;
  cursor: pointer;
  padding: .4rem .5rem .5rem;
  font-family: var(--font-head);
  font-size: .82rem;
  letter-spacing: .03em;
  text-transform: uppercase;
  opacity: .85;
  border-bottom: 3px solid transparent;
  transition: opacity .2s, background-color .2s, border-color .2s;
}
.t-tab .ico { width: 28px; height: 28px; opacity: .6; }
.t-tab[aria-selected='true'] {
  background: var(--orange-bright);
  color: #fff;
  opacity: 1;
}
.t-tab:not([aria-selected='true']):hover { background: rgba(255, 255, 255, .12); opacity: 1; }

.testimonials__photo { position: relative; min-height: 340px; }
.testimonials__photo img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 60% 30%;
}
.testimonials__photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(58, 54, 45, .85), rgba(58, 54, 45, 0) 45%);
}

/* ------------------------------------------------------------------ 12. Contacts */
.contacts {
  background: var(--green-contacts);
  color: #fff;
  padding-block: var(--section-y);
}
.contacts__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem);
  margin-top: 2rem;
}
.contact-card {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  background: #fff;
  color: var(--ink);
  min-height: 132px;
  box-shadow: var(--shadow-sm);
}
.contact-card__icon {
  display: grid;
  place-items: center;
  background: var(--orange-soft);
  color: #fff;
}
.contact-card__icon .ico { width: 46px; height: 46px; stroke-width: 1.3; }
.contact-card__body {
  padding: 1rem 1.15rem 1.15rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: .35rem;
}
.contact-card__title {
  font-family: var(--font-head);
  font-size: 1.05rem;
  margin: 0;
  text-transform: none;
  letter-spacing: 0;
}
.contact-card__text { font-size: .82rem; color: #55554f; margin: 0; }
.contact-card__text b { color: var(--ink); font-size: .95rem; }
.contact-card .btn {
  align-self: flex-start;
  margin-top: .45rem;
  font-family: var(--font-body);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  background: linear-gradient(#efefee, #d9d9d7);
  color: #3d3d3b;
  border: 1px solid #cfcfcc;
  padding: .55rem .9rem;
  border-radius: 2px;
}
.contact-card .btn:hover { background: linear-gradient(#fff, #e6e6e4); }
.contact-section__head { max-width: 60ch; }
.contacts__more { display: flex; justify-content: flex-end; margin-top: 2rem; }

/* ------------------------------------------------------------------ 13. Aide */
.help {
  background: var(--green-900);
  color: #fff;
  padding-block: var(--section-y);
}
.help__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.75rem, 4vw, 3.25rem) clamp(2rem, 6vw, 5rem);
  margin-top: clamp(2rem, 4vw, 3rem);
  align-items: start;
}
.help-item { display: grid; align-content: start; gap: .7rem; }
.help-item__head { display: flex; align-items: center; gap: .9rem; }
.help-item__head .ico { width: 38px; height: 38px; flex: none; stroke-width: 1.3; }
.help-item__title {
  font-size: clamp(1.05rem, 1.9vw, 1.35rem);
  border-bottom: 1px solid rgba(255, 255, 255, .45);
  padding-bottom: .45rem;
  flex: 1;
  align-self: center;
}
.help-item p { font-size: .9rem; line-height: 1.6; margin: 0; }
.help-item .num { color: #7fe3cf; }
.help-item .small { font-size: .78rem; opacity: .85; }
.help-item a.link {
  color: #a9e6d9;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.help-item a.link:hover { color: #fff; }
.help__cta { display: flex; justify-content: flex-end; margin-top: 2.5rem; }
.help__cta .btn { min-width: 300px; }

/* ------------------------------------------------------------------ 14. Simulateurs */
.simulators {
  background: var(--grey-100);
  padding-block: var(--section-y);
}
.simulators__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.25rem, 3vw, 2.5rem);
  margin-top: clamp(1.75rem, 3.5vw, 2.75rem);
}
.sim-card {
  display: grid;
  justify-items: center;
  gap: .9rem;
  padding: 1.5rem 1.5rem 1.75rem;
  color: #fff;
  text-align: center;
}
.sim-card--grey { background: #9c9c9a; }
.sim-card--orange { background: #ef7b3f; }
.sim-card__title {
  font-size: 1.05rem;
  letter-spacing: .05em;
  font-weight: 500;
}
.sim-card .ico { width: 52px; height: 52px; stroke-width: 1.4; }
.sim-card .btn {
  width: 100%;
  margin-top: .35rem;
  font-family: var(--font-body);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .02em;
  border-radius: 1px;
}
.sim-card--grey .btn { background: linear-gradient(#6f6f6d, #4e4e4c); color: #fff; border: 1px solid #5c5c5a; }
.sim-card--grey .btn:hover { background: #3f3f3d; }
.sim-card--orange .btn { background: linear-gradient(#f7f7f6, #dcdcda); color: #4a4a48; border: 1px solid #d0d0ce; }
.sim-card--orange .btn:hover { background: #fff; }
.simulators__more { display: flex; justify-content: flex-end; margin-top: 2.25rem; }

/* ------------------------------------------------------------------ 15. Footer */
.site-footer {
  background: #fff;
  border-top: 1px solid var(--line);
  padding-block: 1.5rem 2rem;
}
.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem 1.35rem;
  font-size: .74rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  font-family: var(--font-head);
  color: #3f3f3d;
}
.legal-links a:hover { color: var(--orange-bright); }
.social {
  display: flex;
  gap: .5rem;
}
.social a {
  display: grid;
  place-items: center;
  width: 34px; height: 34px;
  border-radius: 50%;
  color: #fff;
  transition: transform .2s, opacity .2s;
}
.social a:hover { transform: translateY(-2px); opacity: .9; }
.social .ico { width: 17px; height: 17px; fill: #fff; stroke: none; }
.social .fb { background: #3b5998; }
.social .tw { background: #1da1f2; }
.social .yt { background: #cd201f; }
.site-footer__note {
  margin-top: 1.25rem;
  font-size: .72rem;
  color: #8a8a88;
  max-width: 90ch;
}

/* ------------------------------------------------------------------ 16. Dock + retour haut */
.dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  background: var(--green-900);
  color: #fff;
  box-shadow: 0 -6px 24px rgba(0, 0, 0, .18);
}
.dock__inner {
  display: flex;
  align-items: center;
  gap: 0;
  min-height: var(--dock-h);
}
.dock__links {
  display: flex;
  align-items: center;
  gap: clamp(.75rem, 2.4vw, 2.4rem);
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
  padding-right: 1rem;
}
.dock__links::-webkit-scrollbar { display: none; }
.dock__link {
  font-family: var(--font-head);
  font-size: .85rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  white-space: nowrap;
  padding: .6rem 0;
  border-bottom: 2px solid transparent;
}
.dock__link:hover { border-bottom-color: #fff; }
.dock__search {
  display: flex;
  align-items: center;
  background: var(--orange-bright);
  align-self: stretch;
  min-width: 58px;
}
.dock__search input {
  width: 0;
  opacity: 0;
  border: 0;
  transition: width .3s, opacity .3s, padding .3s;
  padding: 0;
  background: #fff;
  color: var(--ink);
  font-size: .85rem;
  height: 70%;
  margin: .5rem 0 .5rem .5rem;
}
.dock__search.is-open input { width: min(210px, 34vw); opacity: 1; padding: 0 .6rem; }
.dock__search button {
  flex: 1;
  align-self: stretch;
  min-width: 58px;
  display: grid;
  place-items: center;
  background: none;
  border: 0;
  color: #fff;
  cursor: pointer;
}
.dock__search button:hover { background: rgba(0, 0, 0, .1); }
.dock__search .ico { width: 22px; height: 22px; }
.dock__tools {
  display: flex;
  align-items: center;
  gap: .6rem;
  align-self: stretch;
  background: #fff;
  color: var(--green-900);
  padding: 0 clamp(1rem, 2.5vw, 2.25rem);
  font-family: var(--font-head);
  font-size: .95rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  transition: background-color .2s;
}
.dock__tools:hover { background: #eef4f2; }
.dock__tools .ico { width: 26px; height: 26px; stroke-width: 1.4; }

.to-top {
  position: fixed;
  right: 1.25rem;
  bottom: calc(var(--dock-h) + 1rem);
  z-index: 89;
  width: 46px; height: 46px;
  display: grid;
  place-items: center;
  background: linear-gradient(#f2f2f1, #dcdcdb);
  color: #2b2b29;
  border: 1px solid #cfcfce;
  border-radius: 3px;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity .25s, transform .25s, visibility .25s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: #fff; }
.to-top .ico { width: 20px; height: 20px; }

/* ------------------------------------------------------------------ 17. Responsive */
@media (max-width: 1180px) {
  .header-tagline { display: none; }
  .quickstrip__item { flex-direction: column; text-align: center; gap: .5rem; }
  .quickstrip__label { font-size: .72rem; }
}

@media (max-width: 1024px) {
  .why__grid { grid-template-columns: 1fr; }
  .why__accent { display: none; }
  .why__side { grid-template-columns: 1fr; }
  .agency { grid-template-columns: 1fr; }
  .agency__map { min-height: 440px; }
  .testimonials { grid-template-columns: 1fr; }
  .testimonials__photo { min-height: 300px; order: -1; }
  .testimonials__photo::after { background: linear-gradient(180deg, rgba(58, 54, 45, 0) 40%, rgba(58, 54, 45, .55)); }
  .hero-slide { grid-template-columns: 1fr; }
  .hero__aside { display: none; }
  .hero__content { padding: 0 var(--gutter); max-width: 40rem; }
  .fb-bubble { position: relative; right: auto; top: 0; margin: 2rem auto 0; width: fit-content; }
  .selection__grid { grid-template-columns: 1fr; }
  .dock__links { gap: 1.1rem; }
  .dock__link { font-size: .78rem; }
}

@media (max-width: 860px) {
  :root { --section-y: 2.5rem; }

  .nav-toggle { display: grid; }
  .header-actions { display: none; }
  .site-header__inner { justify-content: space-between; }

  .main-nav {
    position: absolute;
    left: 0; right: 0;
    top: 100%;
    border-bottom: 0;
    box-shadow: var(--shadow-lg);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s, transform .25s, visibility .25s;
    max-height: 70vh;
    overflow-y: auto;
  }
  .site-header { position: relative; }
  .main-nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .main-nav__list { flex-direction: column; gap: 0; }
  .main-nav__list li { border-bottom: 1px solid var(--line); }
  .main-nav__link { padding: .95rem 1.25rem; width: 100%; }
  .main-nav__link[aria-current='page'] { background: #fdf3e8; }

  .quickstrip__list { grid-template-columns: repeat(3, 1fr); }
  .quickstrip__item { border-left: 1px solid rgba(255, 255, 255, .3); border-bottom: 1px solid rgba(255, 255, 255, .2); }

  .contacts__grid,
  .help__grid,
  .simulators__grid { grid-template-columns: 1fr; }

  .agency__search {
    grid-template-columns: 1fr 1fr;
    row-gap: 1px;
    background: #dcdcdc;
  }
  .agency__search input { grid-column: 1 / -1; }
  .agency__search button { grid-column: 1 / -1; padding: .8rem; }
  .agency__search-wrap { bottom: 0; padding: .75rem 1rem 1rem; }

  .help__cta { justify-content: stretch; }
  .help__cta .btn { min-width: 0; width: 100%; }
  .contacts__more { justify-content: stretch; }
  .contacts__more .btn { width: 100%; }

  .dock__tool-label { display: none; }
  .dock__tools { padding: 0 1rem; }
}

@media (max-width: 620px) {
  .hero__title { font-size: clamp(1.6rem, 7vw, 2.2rem); }
  .hero-slide { min-height: 380px; padding-block: 1.75rem 2.5rem; }
  .quickstrip__list { grid-template-columns: repeat(2, 1fr); }
  .sel-card { grid-template-columns: 1fr; gap: .8rem; }
  .sel-card__figure { clip-path: none; }
  .sel-card__figure img { aspect-ratio: 16 / 9; }
  .contact-card { grid-template-columns: 74px minmax(0, 1fr); }
  .contact-card__icon .ico { width: 34px; height: 34px; }
  .field--radio .radio-row { gap: 1.5rem; }
  .dock__links { gap: .9rem; }
  .dock__link { font-size: .72rem; }
  .dock__search { min-width: 48px; }
  .dock__search button { min-width: 48px; }
  .to-top { right: .75rem; width: 40px; height: 40px; }
  .legal-links { font-size: .68rem; gap: .5rem 1rem; }
}

/* Modale carte */
.map-modal {
  position: fixed;
  inset: 0;
  z-index: 150;
  display: grid;
  place-items: center;
  padding: clamp(1rem, 4vw, 3rem);
  background: rgba(10, 20, 22, .78);
  backdrop-filter: blur(3px);
}
.map-modal__dialog {
  position: relative;
  max-width: 1100px;
  width: 100%;
  background: #fff;
  padding: .6rem;
  box-shadow: var(--shadow-lg);
}
.map-modal__dialog img {
  width: 100%;
  max-height: 74vh;
  object-fit: contain;
  background: var(--sky);
}
.map-modal__caption {
  margin: .5rem 0 0;
  font-size: .75rem;
  color: #6a6a68;
  text-align: center;
}
.map-modal__close {
  position: absolute;
  top: -14px;
  right: -14px;
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 0;
  background: #fff;
  color: var(--ink);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: var(--shadow-md);
}
.map-modal__close:hover { background: var(--grey-200); }

/* Impression */
@media print {
  .dock, .to-top, .hero__nav, .hero__dots, .topbar { display: none !important; }
  body { padding-bottom: 0; }
  .hero-slide { position: relative !important; opacity: 1 !important; visibility: visible !important; }
}
