/* ==========================================================================
   MANORIA — Page d'accueil
   Framework : Bootstrap 5.3 — ce fichier ne contient que la surcouche.
   Maquette de référence : 1920px de large.
   Les zones « collage » (hero, équipe) sont positionnées en % à partir de xl
   et repassent en flux classique en dessous.
   ========================================================================== */

/* ---------- 1. Variables ---------- */
:root {
  --c-cream: #f9f6f2;
  --c-beige: #f2ede3;
  --c-dark: #002e30;
  --c-dark-2: #00494c;
  --c-coral: #ff4e36;
  --c-mint: #6adbbd;
  --c-yellow: #ddda68;
  --c-line: #a9b3b4;

  --f-serif: "Source Serif 4", Georgia, serif;
  --f-sans: "Barlow", system-ui, sans-serif;

  /* 1 unité = 1px de la maquette à 960 → 2px en 1920 */
  --u: calc(100vw / 960);

  /* Surcharge Bootstrap */
  --bs-body-bg: var(--c-cream);
  --bs-body-color: var(--c-dark);
  --bs-body-font-family: var(--f-sans);
  --bs-link-color-rgb: 0, 46, 48;
  --bs-link-hover-color-rgb: 255, 78, 54;
}

/* ---------- 2. Base ---------- */
html { scroll-behavior: smooth; }
body {
  background: var(--c-cream);
  color: var(--c-dark);
  font-family: var(--f-sans);
  font-size: 1rem;
  line-height: 1.45;
  overflow-x: hidden;
}
h1, h2, h3, h4, h5, h6 { color: inherit; }
h1, h2, h3, .section-title { font-family: var(--f-serif); font-weight: 400; }
h1 em, h2 em, h3 em { font-style: italic; font-weight: 700; }
a { text-decoration: none; transition: color .2s, background-color .2s, border-color .2s; }
img { display: block; max-width: 100%; }
figure img, figure video { width: 100%; height: 100%; object-fit: cover; }
figure video { display: block; }
.text-coral { color: var(--c-coral) !important; }

/* ---------- 3. Boutons ---------- */
.btn-coral {
  --bs-btn-bg: var(--c-coral);
  --bs-btn-border-color: var(--c-coral);
  --bs-btn-color: #fff;
  --bs-btn-hover-bg: var(--c-dark);
  --bs-btn-hover-border-color: var(--c-dark);
  --bs-btn-hover-color: #fff;
  --bs-btn-active-bg: var(--c-dark);
  --bs-btn-border-radius: 0;
  font-weight: 500;
}

/* Paire téléphone / email
   Survol du duo : le fond du numéro se retire du bas vers le haut,
   celui de l'email descend du haut vers le bas — les deux s'inversent */
.btn-duo { --duo: var(--c-dark); --duo-ink: #fff; display: inline-flex; flex-wrap: wrap; justify-content: center; }
.btn-duo--coral { --duo: var(--c-coral); }
.btn-duo a {
  position: relative; isolation: isolate;
  display: inline-flex; align-items: center;
  min-height: 3.5rem; padding: 0 1.5rem;
  font-size: .8125rem; font-weight: 500;
  color: var(--duo); border: 1px solid var(--duo);
  transition: color .35s ease .05s;
}
.btn-duo a + a { margin-left: -1px; }
.btn-duo a::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--duo);
  transform-origin: top;
  transform: scaleY(0);
  transition: transform .45s cubic-bezier(.65, 0, .35, 1);
}
/* repos : le numéro est plein */
.btn-duo a:first-child { color: var(--duo-ink); }
.btn-duo a:first-child::before { transform: scaleY(1); }
/* survol / focus : inversion */
.btn-duo:is(:hover, :focus-within) a:first-child { color: var(--duo); }
.btn-duo:is(:hover, :focus-within) a:first-child::before { transform: scaleY(0); }
.btn-duo:is(:hover, :focus-within) a:last-child { color: var(--duo-ink); }
.btn-duo:is(:hover, :focus-within) a:last-child::before { transform: scaleY(1); }
@media (prefers-reduced-motion: reduce) { .btn-duo a, .btn-duo a::before { transition: none; } }

/* ---------- 4. Header ---------- */
/* Le header reste en haut de page ; seul le bouton « Se rencontrer » suit le scroll.
   (pas de backdrop-filter ici : il ferait du header le repère du bouton fixe) */
.site-header {
  --logo-w: clamp(120px, 17.45vw, 335px); /* 335px à 1920px */
  position: relative; z-index: 1030;
  background: var(--c-cream);
  padding: 1.25rem 0;
}
.header-spacer { width: 12rem; }
.brand img { width: var(--logo-w); height: auto; }
.header-actions { gap: 0; width: auto; min-height: 3.5rem; justify-content: flex-end; } /* garde la place du bouton */
@media (min-width: 768px) { .header-actions { width: 12rem; } }
@media (max-width: 575.98px) { .header-actions { min-height: 2.75rem; } }

/* Bouton « Se rencontrer » + pastille
   Survol : le fond corail se retire du bas vers le haut, la pastille devient carrée */
.cta-meet {
  --h: 3.5rem;
  display: inline-flex; align-items: center;
  color: #fff;
  /* fixe, à la même place que dans le header (padding 1.25rem, gouttière px-3 / px-lg-5) ;
     quand le logo (ratio 1600 × 345) dépasse le bouton en hauteur, on descend de la moitié de l'écart pour rester centré */
  position: fixed; right: 1rem; z-index: 1030;
  top: calc(1.25rem + max(0px, var(--logo-w) * 345 / 1600 - var(--h)) / 2);
}
@media (min-width: 992px) { .cta-meet { right: 3rem; } }
.cta-meet__label {
  position: relative; isolation: isolate;
  display: inline-flex; align-items: center;
  height: var(--h); padding: 0 1.6rem;
  font-size: .875rem; font-weight: 500; white-space: nowrap;
  border: 1px solid var(--c-coral);
  transition: color .35s ease;
}
.cta-meet__label::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--c-coral);
  transform-origin: top;
  transition: transform .45s cubic-bezier(.65, 0, .35, 1);
}
.cta-meet__badge {
  display: block; flex: none;
  width: var(--h); height: var(--h);
  background: var(--c-dark);
  border-radius: 50%;
  margin-left: -1px;
  transition: border-radius .4s cubic-bezier(.65, 0, .35, 1);
}
.cta-meet__badge svg { display: block; width: 100%; height: 100%; }

.cta-meet:hover .cta-meet__label,
.cta-meet:focus-visible .cta-meet__label { color: var(--c-coral); }
.cta-meet:hover .cta-meet__label::before,
.cta-meet:focus-visible .cta-meet__label::before { transform: scaleY(0); }
.cta-meet:hover .cta-meet__badge,
.cta-meet:focus-visible .cta-meet__badge { border-radius: 0; }

@media (max-width: 575.98px) {
  .cta-meet { --h: 2.75rem; }
  .cta-meet__label { padding: 0 1rem; font-size: .8125rem; }
}

/* ---------- 5. Hero ---------- */
.hero { position: relative; z-index: 2; }
.hero-stage { position: relative; padding: 2rem 0 0; }

.hero-kicker { font-size: 1.125rem; font-weight: 500; text-align: center; margin-bottom: 2rem; }
.hero-title { line-height: .95; margin: 0 0 1.5rem; padding: 0 1rem; }
.hero-title span { display: block; }
.hero-title__l1 { font-size: clamp(3.5rem, 7.8vw, 9.5rem); color: var(--c-dark); letter-spacing: -.01em; }
.hero-title__l2 {
  font-size: clamp(3.5rem, 7.8vw, 9.5rem);
  font-style: italic; font-weight: 700; color: var(--c-dark);
  padding-left: .55em;
}
.hero-subtitle { font-size: 1.125rem; font-weight: 500; text-align: center; padding: 0 1rem; }

.tag {
  display: inline-block;
  font-size: .625rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  padding: .3rem .65rem;
  color: var(--c-dark);
}
.tag--yellow { background: var(--c-yellow); }
.tag--mint { background: var(--c-mint); }
.tag--coral { background: var(--c-coral); color: var(--c-dark); }
.tag--teal { background: #00b19d; }
.tag--sand { background: #daceb3; }
.hero-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin: 1.5rem 0 2rem; padding: 0 1rem; }

.dot {
  display: none; position: absolute; padding: 0; border: 0;
  border-radius: 50%; background: var(--c-mint);
  width: max(10px, calc(10.5 * var(--u))); aspect-ratio: 1;
}
.dot--hotspot { cursor: pointer; z-index: 4; transition: transform .25s ease, box-shadow .25s ease; }
.dot--hotspot::after { content: ""; position: absolute; inset: -60%; border-radius: 50%; } /* zone de survol élargie */

.hero-waves {
  position: absolute; left: 0; right: 0; bottom: 0; height: 60%;
  background: url("../img/wave.svg") center top / 3744px 100% repeat-x;
  z-index: -1;
}
@media (max-width: 575.98px) { .hero-waves { display: none; } } /* mobile : masquées par la grille de photos */

/* Mobile / tablette : grille de photos */
.hero-media {
  display: grid; grid-template-columns: 1fr 1fr; gap: .75rem;
  padding: 0 .75rem;
}
.hero-photo { aspect-ratio: 4 / 5; overflow: hidden; }
.hero-photo--equipe { grid-column: 1 / -1; aspect-ratio: 16 / 9; margin-bottom: -4rem !important; }
.hero-photo--porte img { object-position: 34% center; }

/* Desktop : collage positionné (repère = maquette 960 × 460) */
@media (min-width: 1200px) {
  .hero-stage { aspect-ratio: 960 / 460; padding: 0; }
  .hero-copy, .hero-tags, .hero-media { position: absolute; inset: 0; margin: 0; }
  .hero-kicker { position: absolute; top: 10.9%; left: 0; right: 0; font-size: calc(10 * var(--u)); }
  .hero-title { position: absolute; top: 21%; left: 32.6%; margin: 0; padding: 0; }
  .hero-title__l1, .hero-title__l2 { font-size: calc(75 * var(--u)); }
  .hero-title__l2 { padding-left: 0; margin-left: calc(84 * var(--u)); margin-top: calc(-4 * var(--u)); }
  .hero-subtitle { position: absolute; top: 71.5%; left: 0; right: 0; font-size: calc(10 * var(--u)); line-height: 1.6; }

  .hero-tags { pointer-events: none; z-index: 3; }
  .tag { position: absolute; font-size: calc(4.6 * var(--u)); padding: calc(3.5 * var(--u)) calc(6 * var(--u)); }
  .tag--strategie { left: 67.7%; top: 30.9%; }
  .tag--transmission { left: 83.75%; top: 40.6%; }
  .tag--retraite { left: 70.1%; top: 52.2%; }
  .tag--investissement { left: 76.8%; top: 50.4%; }
  .tag--accompagnement { left: 68.3%; top: 68.1%; }

  .dot { display: block; transform: translate(-50%, -50%); }
  .dot--strategie { left: 73.6%; top: 36.1%; }
  .dot--transmission { left: 82.9%; top: 45.9%; }
  .dot--retraite { left: 66.8%; top: 50.7%; }
  .dot--investissement { left: 75.6%; top: 48.5%; }
  .dot--accompagnement { left: 81.7%; top: 66.3%; }

  .dot--hotspot:hover, .dot--hotspot:focus-visible { transform: translate(-50%, -50%) scale(1.25); }
  .dot--hotspot:focus-visible { outline: 2px solid var(--c-dark); outline-offset: 3px; }

  .hero-waves { top: 38%; height: auto; }

  .hero-media { display: block; padding: 0; pointer-events: none; }
  .hero-photo { position: absolute; aspect-ratio: auto; pointer-events: auto; }
  .hero-photo--porte { left: 3.02%; top: 20.2%; width: 24.27%; height: 63%; }
  .hero-photo--bureau { left: 84.4%; top: 32.6%; width: 15.6%; height: 40.6%; }
  .hero-photo--equipe { left: 55.4%; top: 83.2%; width: 28.9%; height: 35.4%; margin: 0 !important; z-index: 3; }
}

/* Étiquettes masquées, révélées par leur point (écrans avec survol uniquement ;
   sur tactile elles restent affichées) */
@media (min-width: 1200px) and (hover: hover) {
  .hero-tags .tag {
    opacity: 0; visibility: hidden;
    transform: translateY(calc(4 * var(--u))) scale(.92);
    transform-origin: center bottom;
    transition: opacity .25s ease, transform .3s cubic-bezier(.34, 1.56, .64, 1), visibility .25s;
  }
  .dot--strategie:is(:hover, :focus-visible) ~ .hero-tags .tag--strategie,
  .dot--transmission:is(:hover, :focus-visible) ~ .hero-tags .tag--transmission,
  .dot--retraite:is(:hover, :focus-visible) ~ .hero-tags .tag--retraite,
  .dot--investissement:is(:hover, :focus-visible) ~ .hero-tags .tag--investissement,
  .dot--accompagnement:is(:hover, :focus-visible) ~ .hero-tags .tag--accompagnement {
    opacity: 1; visibility: visible; transform: none;
  }

}

/* ---------- 6. Section sombre « Ce qui compte » ---------- */
.section-dark { background: var(--c-dark); color: var(--c-cream); position: relative; z-index: 1; }
.story { padding-top: 7rem; }
.story-quote { font-size: clamp(2rem, 3.6vw, 4.5rem); line-height: 1.25; margin-bottom: 4rem; }
.story-quote em { font-weight: 700; }

.story-body { position: relative; }
.story-text { font-size: .9375rem; line-height: 1.4; padding-bottom: 3rem; }
.story-text p { margin-bottom: 1.25rem; }
.story-lead { font-size: 1.25rem; font-weight: 500; font-style: italic; line-height: 1.35; }
.story-script { margin-top: 1.75rem; }
.story-script img { width: min(100%, 300px); height: auto; }
.story-photo { aspect-ratio: 6 / 5; }
.story-photo img { object-position: 85% center; }

@media (min-width: 992px) {
  .story { padding-top: calc(150 * var(--u)); }
  .story-quote { margin-bottom: calc(90 * var(--u)); }
  .story-body { min-height: calc(400 * var(--u)); display: flex; align-items: center; }
  .story-text { padding: calc(30 * var(--u)) 0; }
  .story-photo { position: absolute; top: 0; right: 0; bottom: 0; width: 50%; aspect-ratio: auto; }
}
@media (min-width: 1400px) {
  .story-text { font-size: calc(7.5 * var(--u)); }
  .story-lead { font-size: calc(10 * var(--u)); }
  .story-script img { width: calc(197 * var(--u)); }
}

/* Bandeaux de rosaces (tuile carrée répétée horizontalement) */
.pattern-band {
  /* tuile SVG 241 × 272 : à 1920px la bande fait 272px de haut (échelle 1) */
  height: clamp(90px, calc(136 * var(--u)), 300px);
  background-repeat: repeat-x;
  background-size: auto 100%;
  background-position: center top;
}
/* Vagues sous « Ce qui compte » : tuile 2178 × 242, à l'échelle 1 à 1920px (242px = 121u) */
.pattern-band--dark {
  background-image: url("../img/pattern_ce_qui_compte_vous_raconte.svg");
  height: clamp(80px, calc(121 * var(--u)), 267px);
}
/* Vagues au-dessus de « Votre histoire » : tuile 2178 × 242, à l'échelle 1 à 1920px (242px = 121u) */
.pattern-band--mint {
  background-image: url("../img/pattern_votre_histoire_est_notre_point_de_depart.svg");
  height: clamp(80px, calc(121 * var(--u)), 267px);
}

/* ---------- 7. Expertises ---------- */
.services { padding: clamp(4rem, calc(70 * var(--u)), 9rem) 0 clamp(4rem, calc(110 * var(--u)), 13rem); }
.section-title { font-size: clamp(2rem, 3.35vw, 4rem); line-height: 1.15; margin-bottom: clamp(2rem, calc(40 * var(--u)), 5rem); }
.section-title em { font-weight: 700; }

/* Accordéon (Bootstrap collapse) */
.services-list { margin: 0; border-top: 1px solid var(--c-line); }
.service-item { border-bottom: 1px solid var(--c-line); transition: background-color .3s; scroll-margin-top: 6rem; } /* sous le bouton « Se rencontrer » fixe */
.service-item:hover, .service-item.is-open { background: var(--c-beige); }

.service-toggle {
  display: block; width: 100%; padding: 0; border: 0; background: none;
  color: inherit; text-align: left; cursor: pointer;
}
.service-toggle .row { min-height: clamp(4.25rem, calc(43.5 * var(--u)), 6rem); padding: .9rem 0; }
.service-toggle:focus-visible { outline: 2px solid var(--c-coral); outline-offset: -2px; }

.service-name { display: block; font-family: var(--f-serif); font-size: clamp(1.15rem, 1.45vw, 1.75rem); letter-spacing: -.01em; line-height: 1.2; }
.service-name em { font-style: italic; font-weight: 700; }
.service-desc { display: block; font-family: var(--f-sans); font-size: .875rem; font-weight: 600; margin-top: .35rem; }
.service-num {
  position: relative; align-self: stretch;
  display: flex; align-items: center; justify-content: flex-end;
  font-family: var(--f-sans); font-size: clamp(1.1rem, 1.35vw, 1.6rem); font-weight: 300;
  transition: color .3s;
}
.service-num::before {
  content: ""; position: absolute; top: -.9rem; right: calc(var(--bs-gutter-x) * .5);
  width: clamp(3rem, calc(58 * var(--u)), 7rem); border-top: 1px solid var(--c-dark);
  transition: border-color .3s;
}
.service-item.is-open .service-num { color: var(--c-coral); }
.service-item.is-open .service-num::before { border-top: 2px solid var(--c-coral); margin-top: -1px; }

/* Contenu déplié */
.service-panel { padding-top: clamp(1.5rem, calc(28 * var(--u)), 4rem); padding-bottom: clamp(3rem, calc(55 * var(--u)), 7rem); }
.service-tagline {
  font-family: var(--f-sans); font-style: italic; font-weight: 500;
  font-size: clamp(1.5rem, calc(15.5 * var(--u)), 2.4rem); line-height: 1.2;
  color: var(--c-coral); margin-bottom: 1.5rem;
}
.service-text { font-size: clamp(.9375rem, calc(7.6 * var(--u)), 1.1rem); line-height: 1.35; }
.service-text p { margin-bottom: 1.4em; }
.service-text p:last-child { margin-bottom: 0; }
.service-photo { aspect-ratio: 1049 / 530; overflow: hidden; margin-top: clamp(1.5rem, calc(28 * var(--u)), 3.5rem); margin-bottom: 0; }

/* Schémas (SVG fournis) */
.service-schema { margin-top: clamp(1.75rem, calc(32 * var(--u)), 4rem); margin-bottom: 0; }
.service-schema img { width: 100%; height: auto; }
@media (max-width: 767.98px) {
  /* schémas larges : défilement horizontal plutôt que texte illisible */
  .service-schema { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .service-schema img { width: auto; height: auto; max-width: none; }
  .service-schema--accompagnement img, .service-schema--placement img, .service-schema--tresorerie img { width: 640px; }
  .service-schema--transmission img { width: 700px; }
}

@media (max-width: 767.98px) {
  .service-num::before { display: none; }
}
@media (min-width: 768px) {
  .service-desc { margin-top: 0; font-size: clamp(.875rem, .8vw, 1.125rem); }
}
@media (min-width: 992px) {
  .service-tagline { margin-bottom: 0; }
}

/* ---------- 8. CTA menthe ---------- */
.section-mint { background: var(--c-mint); }
.cta { padding-bottom: clamp(5rem, calc(95 * var(--u)), 12rem); }
.cta-title { font-size: clamp(2rem, 3.6vw, 4.5rem); line-height: 1.2; margin: clamp(2rem, calc(40 * var(--u)), 5rem) 0 clamp(2rem, calc(38 * var(--u)), 4.5rem); }

/* ---------- 9. Chiffres ---------- */
.stats { position: relative; }
.stats-photo { aspect-ratio: 240 / 274; overflow: hidden; }
.stats-photo img { object-position: 48% center; }
.stat {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 3rem 1rem; min-height: 14rem;
}
.stat-num { font-family: var(--f-serif); font-style: italic; font-weight: 700; font-size: clamp(2.25rem, 3.6vw, 4.5rem); line-height: 1; margin-bottom: .75rem; }
.stat-label { font-size: 1rem; font-weight: 500; text-transform: uppercase; letter-spacing: .03em; margin: 0; }
@media (max-width: 575.98px) { .stat-label { font-size: .875rem; } } /* 14px sur mobile */
.stat { color: #fff; }
.stat--dark { background: var(--c-dark); }
.stat--coral { background: #004f52; }
.stat--yellow { background: #007c81; }

@media (min-width: 1200px) {
  .stats .row { align-items: flex-start; }
  /* la photo déborde légèrement sur la section menthe et sous les blocs */
  .stats-photo { margin-top: calc(-16 * var(--u)) !important; border-top-right-radius: 4px; }
  .stat { aspect-ratio: 1; min-height: 0; padding: 0; }
}

/* ---------- 10. Équipe ---------- */
.team { padding-top: clamp(5rem, calc(140 * var(--u)), 17rem); overflow-x: clip; } /* coupe le débord des vagues pleine largeur (100vw inclut la barre de défilement) */
.team-title { font-size: clamp(2rem, 3.6vw, 4.5rem); line-height: 1.25; margin-bottom: clamp(3rem, calc(65 * var(--u)), 8rem); }
.team-title em { font-weight: 700; }
.tdot { --dot: var(--c-dark); display: inline-block; width: .75em; height: .75em; border-radius: 50%; vertical-align: middle; margin: 0 .25em; background: var(--dot); }
.tdot--yellow { --dot: var(--c-mint); }
.tdot--coral { --dot: var(--c-coral); }
.tdot--dark { --dot: var(--c-dark); }
/* Point en début / fin de ligne : largeur nulle, le rond est dessiné à côté du texte
   → la ligne reste centrée sur son texte seul */
.tdot--start, .tdot--end { position: relative; width: 0; margin: 0; background: none; }
.tdot--start::before, .tdot--end::before {
  content: ""; position: absolute; top: 0;
  width: .75em; height: .75em; border-radius: 50%; background: var(--dot);
}
.tdot--start::before { right: 1.1em; }
.tdot--end::before { left: .9em; top: -.1em; }

/* Mobile / tablette : empilement photo + carte */
.team-stage { position: relative; display: grid; gap: 0; padding: 0 .75rem 5rem; max-width: 720px; margin: 0 auto; }
.team-intro { margin-bottom: 3rem; font-size: .9375rem; }
.team-lead { font-size: 1.5rem; font-weight: 500; font-style: italic; line-height: 1.3; margin-bottom: 2rem; }
.member-photo { aspect-ratio: 1 / 1; overflow: hidden; }
.member-card { margin: -3rem 1.5rem 3.5rem; position: relative; z-index: 2; }
.member-photo--cecile img { object-position: 50% center; }
.member-photo--arnaud img { object-position: 85% top; }
.member-photo--bertrand img { object-position: 39% center; }
.team-waves {
  /* pleine largeur de l'écran, même quand .team-stage est limité (max-width 720px sous 1200px) */
  position: absolute; left: calc(50% - 50vw); right: calc(50% - 50vw); bottom: 0; height: 30%;
  background: url("../img/wave.svg") center top / 3744px 100% repeat-x; z-index: -1;
}

/* Carte membre — bulle beige avec pointe ; le bloc email corail
   complète la forme au survol */
.member-card {
  --tail: 19.5%;            /* largeur de la pointe (et du biseau corail) */
  --line: 2px;              /* filet corail visible au repos */
  font-size: .875rem; line-height: 1.35;
}
.member-card__body { background: var(--c-beige); padding: 1.4rem 1.5rem 1.5rem; }
.member-card__body p { margin: 0; }
.member-card__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.75rem; }
.member-card__name { font-family: var(--f-sans); font-size: .6875rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--c-coral); margin: 0; }
.member-card__in { font-family: var(--f-sans); font-weight: 700; color: var(--c-coral); font-size: 1.35rem; line-height: 1; letter-spacing: -.02em; }
.member-card__in:hover { color: var(--c-dark); }

.member-card__foot {
  position: relative;
  aspect-ratio: 702 / 136;   /* pointe à 45° : hauteur ≈ largeur de la pointe */
  margin-top: -1px;
}
/* la pointe beige */
.member-card__foot::before {
  content: ""; position: absolute; inset: 0;
  background: var(--c-beige);
  clip-path: polygon(0 0, var(--tail) 0, 0 100%);
}
/* le remplissage corail : un simple filet au repos, le trapèze complet au survol */
.member-card__foot::after {
  content: ""; position: absolute; inset: 0;
  background: var(--c-coral);
  clip-path: polygon(var(--tail) 0, 100% 0, 100% var(--line), calc(var(--tail) - var(--line)) var(--line));
  transition: clip-path .45s cubic-bezier(.65, 0, .35, 1);
}
.member-card__foot a {
  position: absolute; z-index: 1;
  top: 50%; transform: translateY(-50%);
  left: calc(var(--tail) * .8); right: 1.25rem;
  display: flex; align-items: center; justify-content: center;
  min-height: 2.25rem; padding: .35rem .5rem;
  color: var(--c-cream); border: 1px solid var(--c-cream);
  font-size: .8125rem; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  opacity: 0; visibility: hidden;
  transition: opacity .25s, visibility .25s, background-color .2s, color .2s;
}
.member-card__foot a:hover { background: var(--c-cream); color: var(--c-coral); }

/* Bertrand : pointe à droite */
.member-card--bertrand .member-card__foot::before { clip-path: polygon(calc(100% - var(--tail)) 0, 100% 0, 100% 100%); }
.member-card--bertrand .member-card__foot::after {
  clip-path: polygon(0 0, calc(100% - var(--tail)) 0, calc(100% - var(--tail) + var(--line)) var(--line), 0 var(--line));
}
.member-card--bertrand .member-card__foot a { left: 1.25rem; right: calc(var(--tail) * .8); }

/* États actifs : survol de la carte ou de la photo, focus clavier */
.member-card:hover .member-card__foot::after,
.member-photo:hover + .member-card .member-card__foot::after,
.member-card:focus-within .member-card__foot::after {
  clip-path: polygon(var(--tail) 0, 100% 0, 100% 100%, 0 100%);
}
.member-card--bertrand:hover .member-card__foot::after,
.member-photo:hover + .member-card--bertrand .member-card__foot::after,
.member-card--bertrand:focus-within .member-card__foot::after {
  clip-path: polygon(0 0, calc(100% - var(--tail)) 0, 100% 100%, 0 100%);
}
.member-card:hover .member-card__foot a,
.member-photo:hover + .member-card .member-card__foot a,
.member-card:focus-within .member-card__foot a {
  opacity: 1; visibility: visible; transition-delay: .2s, .2s, 0s, 0s;
}

/* Écrans tactiles (pas de survol) : email toujours visible */
@media (hover: none) {
  .member-card .member-card__foot::after { clip-path: polygon(var(--tail) 0, 100% 0, 100% 100%, 0 100%); }
  .member-card--bertrand .member-card__foot::after { clip-path: polygon(0 0, calc(100% - var(--tail)) 0, 100% 100%, 0 100%); }
  .member-card .member-card__foot a { opacity: 1; visibility: visible; }
}
@media (prefers-reduced-motion: reduce) {
  .member-card__foot::after, .member-card__foot a { transition: none; }
}

/* Desktop : collage (repère = maquette 960 × 890) */
@media (min-width: 1200px) {
  .team-stage { display: block; max-width: none; padding: 0; aspect-ratio: 960 / 890; }
  .team-stage > * { position: absolute; margin: 0 !important; }
  .team-waves { top: 64%; bottom: 0; height: auto; }
  .team-intro { left: 15.6%; top: 6.2%; width: 19%; font-size: max(.875rem, calc(7.4 * var(--u))); }
  .team-lead { font-size: max(1.25rem, calc(13 * var(--u))); margin-bottom: calc(30 * var(--u)); }
  .member-photo { aspect-ratio: auto; }
  .member-photo--cecile { left: 50.4%; top: 6.2%; width: 34%; height: 33.9%; }
  .member-photo--arnaud { left: 0; top: 32.9%; width: 44.7%; height: 41.3%; }
  .member-photo--bertrand { left: 62.1%; top: 52.2%; width: 37.9%; height: 37.3%; }
  .member-card { font-size: max(11.5px, calc(6.8 * var(--u))); }
  .member-card--cecile { left: 75.6%; top: 1.5%; width: 20.3%; }
  .member-card--arnaud { left: 33%; top: 31%; width: 22.3%; }
  .member-card--bertrand { left: 49.6%; top: 54.6%; width: 22.3%; }
  .member-card__body { padding: calc(14 * var(--u)) calc(12 * var(--u)) calc(14 * var(--u)); }
  .member-card__head { margin-bottom: calc(17 * var(--u)); }
  .member-card__name { font-size: max(9px, calc(5 * var(--u))); }
  .member-card__in { font-size: max(14px, calc(10 * var(--u))); }
  .member-card__foot a { font-size: max(10.5px, calc(6.4 * var(--u))); min-height: 0; height: 58%; right: calc(12 * var(--u)); }
  .member-card--bertrand .member-card__foot a { left: calc(12 * var(--u)); right: calc(var(--tail) * .8); }
}

/* ---------- 11. CTA final ---------- */
.final-cta { padding: clamp(3.5rem, calc(90 * var(--u)), 11rem) 0 clamp(5rem, calc(95 * var(--u)), 12rem); }
.final-cta__title { font-size: clamp(2rem, 3.6vw, 4.5rem); line-height: 1.25; color: var(--c-dark); margin-bottom: clamp(2rem, calc(25 * var(--u)), 3.5rem); }
.final-cta .btn-duo--coral { --duo: var(--c-dark); }

/* ---------- 12. Footer ---------- */
.site-footer {
  /* vagues en haut du footer : tuile 2178 × 242, à l'échelle 1 à 1920px (242px = 121u) */
  --pattern-h: clamp(80px, calc(121 * var(--u)), 267px);
  background-color: var(--c-dark);
  background-image: url("../img/pattern_footer.svg");
  background-repeat: repeat-x;
  background-position: center top;
  background-size: auto var(--pattern-h);
  color: var(--c-mint);
}
.footer-inner { padding: clamp(5rem, calc(55 * var(--u)), 8rem) clamp(1rem, calc(40 * var(--u)), 6rem) 2.5rem; }
.footer-kicker { font-weight: 700; font-size: 1.125rem; margin-bottom: clamp(2rem, calc(40 * var(--u)), 5rem); }
.site-footer a { color: inherit; }

.footer-services li { display: flex; justify-content: space-between; gap: 1rem; font-family: var(--f-serif); font-size: clamp(1.05rem, 1.4vw, 1.7rem); line-height: 1.45; }
.footer-services li span { font-family: var(--f-sans); font-weight: 300; }
.footer-services a:hover { color: var(--c-coral); }
.footer-services em { font-style: italic; font-weight: 700; }

.footer-contact { display: grid; grid-template-columns: auto 1fr; column-gap: clamp(2rem, 7vw, 8rem); row-gap: clamp(1.5rem, calc(30 * var(--u)), 4rem); margin: 0; font-size: clamp(1rem, 1.5vw, 1.8rem); }
.footer-contact dt { color: var(--c-beige); font-weight: 300; text-transform: uppercase; letter-spacing: .14em; }
.footer-contact dd { color: var(--c-beige); font-weight: 700; margin: 0; line-height: 1.1; }
.footer-contact a:hover { color: var(--c-mint); }

.footer-logo { width: 100%; height: auto; margin: clamp(3rem, calc(30 * var(--u)), 4rem) 0 clamp(2rem, calc(25 * var(--u)), 3rem); padding: 0 calc(10 * var(--u)); }

.footer-bottom { font-size: .9rem; }
.footer-bottom ul { font-size: .8125rem; }
.footer-linkedin { color: var(--c-coral) !important; font-weight: 700; }
.footer-bottom a:hover { color: var(--c-coral); }

@media (max-width: 575.98px) {
  .footer-contact { grid-template-columns: 1fr; row-gap: .25rem; }
  .footer-contact dd { margin-bottom: 1rem; }
}

/* ---------- 12b. Page Mentions légales ---------- */
.legal-hero {
  position: relative; overflow: hidden;
  padding: clamp(3rem, calc(60 * var(--u)), 7rem) 0 clamp(3rem, calc(50 * var(--u)), 6rem);
}
.legal-hero::after { /* vagues en bas de l'en-tête, comme sur l'accueil */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 45%; z-index: -1;
  background: url("../img/wave.svg") center top / 3744px 624px repeat-x;
  -webkit-mask: linear-gradient(to bottom, transparent, #000 60%);
          mask: linear-gradient(to bottom, transparent, #000 60%);
}
.legal-breadcrumb { font-size: .8125rem; font-weight: 500; margin-bottom: 1.5rem; }
.legal-breadcrumb a { color: var(--c-dark); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--c-line); }
.legal-breadcrumb a:hover { color: var(--c-coral); text-decoration-color: currentColor; }
.legal-breadcrumb span[aria-hidden] { margin: 0 .4rem; color: var(--c-line); }
.legal-title { font-size: clamp(2.75rem, 5.5vw, 6.5rem); line-height: 1; margin-bottom: 1.25rem; }
.legal-title em { color: var(--c-coral); }
.legal-intro { font-size: clamp(1rem, 1.1vw, 1.25rem); max-width: 34rem; margin: 0; }

.legal-body { background: var(--c-beige); border-top: 1px solid var(--c-line); padding: clamp(3rem, calc(50 * var(--u)), 6rem) 0 clamp(4rem, calc(80 * var(--u)), 9rem); }

/* Sommaire collant */
.legal-toc { position: sticky; top: 7rem; }
.legal-toc__title { font-size: .6875rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--c-coral); margin-bottom: 1rem; }
.legal-toc li { border-top: 1px solid var(--c-line); }
.legal-toc li:last-child { border-bottom: 1px solid var(--c-line); }
.legal-toc a {
  display: flex; gap: .75rem; align-items: baseline;
  padding: .8rem 0; color: var(--c-dark);
  font-family: var(--f-serif); font-size: 1.05rem;
}
.legal-toc a span { font-family: var(--f-sans); font-size: .8125rem; font-weight: 300; min-width: 1.75rem; }
.legal-toc a:hover { color: var(--c-coral); }

/* Sections */
.legal-section { scroll-margin-top: 7rem; font-size: 1rem; line-height: 1.55; }
.legal-section + .legal-section { margin-top: clamp(3rem, calc(45 * var(--u)), 5.5rem); }
.legal-section__head {
  position: relative; display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
  padding-top: 1.1rem; margin-bottom: 1.75rem; border-top: 1px solid var(--c-line);
}
.legal-section__head::after { /* filet corail au-dessus du numéro, comme l'accordéon */
  content: ""; position: absolute; top: -1px; right: 0;
  width: clamp(3rem, calc(58 * var(--u)), 7rem); border-top: 2px solid var(--c-coral);
}
.legal-section h2 { font-size: clamp(1.5rem, 2vw, 2.25rem); margin: 0; line-height: 1.15; }
.legal-section__num { font-size: clamp(1.1rem, 1.35vw, 1.6rem); font-weight: 300; color: var(--c-coral); }
.legal-section a { color: var(--c-dark); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--c-coral); }
.legal-section a:hover { color: var(--c-coral); }

.legal-company { font-family: var(--f-serif); font-style: italic; font-weight: 700; font-size: 1.6rem; margin-bottom: 1rem; }

.legal-dl { display: grid; grid-template-columns: minmax(8rem, 12rem) 1fr; margin: 0; }
.legal-dl dt, .legal-dl dd { padding: .7rem 0; border-bottom: 1px solid rgba(169, 179, 180, .5); margin: 0; }
.legal-dl dt { font-size: .6875rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--c-coral); padding-top: .95rem; }
.legal-dl dd { font-weight: 500; }

.legal-status { margin: 1.5rem 0 2rem; display: grid; gap: 1rem; }
@media (min-width: 768px) { .legal-status { grid-template-columns: 1fr 1fr; } }
.legal-status li { background: var(--c-cream); padding: 1.4rem 1.5rem 1.5rem; border-top: 2px solid var(--c-dark); }
.legal-status h3 { font-family: var(--f-serif); font-size: 1.2rem; line-height: 1.2; margin-bottom: .6rem; }
.legal-status p { font-size: .9375rem; margin: 0; }
.legal-warning {
  margin-top: 1rem !important; padding: .75rem .9rem;
  background: var(--c-beige); border-left: 3px solid var(--c-coral);
  font-size: .875rem !important; font-weight: 600;
}

.legal-callout {
  margin: 2rem 0 0; padding: 1.25rem 1.5rem;
  background: var(--c-dark); color: var(--c-cream);
  font-family: var(--f-serif); font-style: italic; font-size: 1.2rem;
}
.legal-callout::before { content: ""; display: inline-block; width: .55em; height: .55em; border-radius: 50%; background: var(--c-mint); margin-right: .75rem; vertical-align: middle; }

@media (max-width: 575.98px) {
  .legal-dl { grid-template-columns: 1fr; }
  .legal-dl dt { border-bottom: 0; padding-bottom: 0; }
  .legal-dl dd { padding-top: .25rem; }
}

.site-footer a[aria-current="page"] { color: var(--c-coral); }

/* ---------- 13. Accessibilité ---------- */
a:focus-visible, .btn:focus-visible { outline: 2px solid var(--c-coral); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
