/* ==========================================================================
   ST AVENIR CONSEILS — feuille de style du site
   Charte : DESIGN.md (bleu marine dominant, or en accent, ivoire qui respire)
   ========================================================================== */

/* ---------- Polices hébergées sur le site (RGPD : aucun appel à Google) ---------- */
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/cormorant-garamond-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/cormorant-garamond-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: italic; font-weight: 500; font-display: swap; src: url("../fonts/cormorant-garamond-500-italic.woff2") format("woff2"); }
@font-face { font-family: "Nunito Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/nunito-sans-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Nunito Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/nunito-sans-600-normal.woff2") format("woff2"); }

/* ---------- Jetons de la charte ---------- */
:root {
  --marine-900: #050F1D;
  --marine-800: #081F38;
  --marine-700: #0E2B4A;
  --marine-600: #173A5E;
  --marine-300: #8FA3BC;
  --marine-100: #E3E9F1;
  --or-500: #C9A063;
  --or-300: #E6C68E;
  --or-700: #8A6A36;
  --ivoire: #F2F0EB;
  --papier: #FAF8F4;
  --blanc: #FFFFFF;
  --ardoise: #5B6270;
  --encre: #0B1A2C;
  --argent: #C9CED6;
  --clair: #F7F5F0;
  --trait: rgba(11, 26, 44, .14);

  --font-titre: "Cormorant Garamond", Garamond, "Times New Roman", serif;
  --font-texte: "Avenir Next", "Avenir", "Nunito Sans", "Segoe UI", sans-serif;

  --t-hero: clamp(2.6rem, 6vw, 4.75rem);
  --t-h1: clamp(2.3rem, 4.6vw, 3.6rem);
  --t-h2: clamp(2rem, 3.6vw, 3rem);
  --t-h3: 1.5rem;

  --rayon: 2px;
  --largeur-page: 1180px;
  --largeur-texte: 62ch;
  --transition: 320ms cubic-bezier(.2, .7, .2, 1);
}
@media (prefers-reduced-motion: reduce) { :root { --transition: 0ms; } }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { color-scheme: light; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--papier);
  color: var(--encre);
  font: 400 1.0625rem/1.65 var(--font-texte);
  overflow-wrap: break-word;
}
img { display: block; max-width: 100%; height: auto; }
article, section, li, div { min-width: 0; }

a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: var(--or-500);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  transition: color var(--transition), text-decoration-color var(--transition);
}
a:hover { color: var(--or-700); }
a:focus-visible, summary:focus-visible, button:focus-visible {
  outline: 2px solid var(--or-500);
  outline-offset: 3px;
}

/* ---------- Typographie ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-titre);
  font-weight: 600;
  color: var(--marine-800);
  line-height: 1.1;
  letter-spacing: -.005em;
}
h1 { font-size: var(--t-h1); margin: .4em 0 .45em; max-width: 22ch; }
h2 { font-size: var(--t-h2); margin: 0 0 .5em; max-width: 26ch; }
h3 { font-size: var(--t-h3); line-height: 1.2; margin: 1.4em 0 .4em; }
h4 { font-size: 1.25rem; line-height: 1.25; margin: 1.2em 0 .3em; }
h1 em, h2 em { font-style: italic; font-weight: 500; color: var(--or-700); }
p { max-width: var(--largeur-texte); margin: 0 0 1em; }
strong { font-weight: 600; }
small { font-size: .875rem; }

.eyebrow, .hero-copy > p:first-child {
  font: 600 .8125rem/1.4 var(--font-texte);
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--or-700);
  margin: 0 0 1rem;
}

ul, ol { padding-left: 1.4rem; }
li { margin: .45rem 0; }
li::marker { color: var(--or-700); }

/* ---------- Conteneur ---------- */
.wrap { max-width: var(--largeur-page); margin: 0 auto; padding: 0 1.5rem; }

.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 10;
  background: var(--or-500); color: var(--marine-900);
  padding: .6rem 1rem; border-radius: var(--rayon);
}
.skip:focus { top: 1rem; }

/* ---------- En-tête ---------- */
.masthead { background: var(--marine-800); color: var(--clair); border-bottom: 1px solid var(--marine-600); }
.masthead .wrap {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 1rem 2rem; padding-top: 1rem; padding-bottom: 1rem;
}
.brand { display: inline-flex; align-items: center; gap: .85rem; text-decoration: none; color: var(--clair); }
.brand:hover { color: var(--clair); }
.brand img { width: 52px; height: 52px; border-radius: 50%; }
.brand span { font: 600 1.5rem/1.1 var(--font-titre); letter-spacing: .02em; }
.brand small {
  display: block; margin-top: .25rem;
  font: 400 .75rem/1.3 var(--font-texte); letter-spacing: .16em; text-transform: uppercase;
  color: var(--argent);
}

.navigation { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem 1.5rem; }
.navigation a { font-size: .9375rem; text-decoration: none; padding: .35rem 0; border-bottom: 1px solid transparent; }
.masthead .navigation a { color: var(--argent); }
.masthead .navigation a:hover { color: var(--clair); border-bottom-color: var(--or-500); }
.masthead .navigation a[aria-current=page] { color: var(--clair); border-bottom-color: var(--or-500); }

/* ---------- Menu principal : méga-menu animé ---------- */
:root { --ressort: cubic-bezier(.16, 1, .3, 1); }
html { scroll-padding-top: 9rem; }
.masthead { position: sticky; top: 0; z-index: 30; transition: background .35s ease, box-shadow .35s ease; }
.masthead.defile {
  background: rgba(8, 31, 56, .9);
  -webkit-backdrop-filter: saturate(150%) blur(16px); backdrop-filter: saturate(150%) blur(16px);
  box-shadow: 0 12px 32px -8px rgba(5, 15, 29, .45);
}
.masthead .wrap { transition: padding .45s var(--ressort); }
.masthead.defile .wrap { padding-top: .55rem; padding-bottom: .55rem; }
.brand img { transition: width .45s var(--ressort), height .45s var(--ressort); }
.masthead.defile .brand img { width: 42px; height: 42px; }
.menu-bascule { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.menu-bouton { display: none; }
.menu-declencheur { appearance: none; -webkit-appearance: none; }

/* Liens et cartes des panneaux */
.menu-grille { list-style: none; margin: 0; padding: 0; display: grid; gap: .3rem; }
.menu-grille li { margin: 0; }
.menu-lien {
  display: block; position: relative; padding: .8rem 2.2rem .8rem .95rem; border-radius: 12px; text-decoration: none;
  transition: background .3s ease, transform .45s var(--ressort);
}
.masthead .menu .menu-lien { padding: .8rem 2.2rem .8rem .95rem; border-bottom: 0; color: inherit; }
.masthead .menu .menu-lien:hover { border-bottom: 0; }
.menu-lien strong { display: block; font: 600 1rem/1.3 var(--font-texte); color: var(--clair); transition: color .25s ease; }
.menu-lien small { display: block; margin-top: .2rem; font-size: .8125rem; line-height: 1.4; color: var(--marine-300); }
.menu-lien::after {
  content: "→"; position: absolute; right: .95rem; top: 50%; color: var(--or-500);
  opacity: 0; transform: translate(-8px, -50%); transition: opacity .25s ease, transform .4s var(--ressort);
}
.menu-lien:hover, .menu-lien:focus-visible { background: rgba(201, 160, 99, .1); }
.menu-lien:hover strong, .menu-lien:focus-visible strong, .menu-lien[aria-current=page] strong { color: var(--or-300); }
.menu-lien:hover::after, .menu-lien:focus-visible::after { opacity: 1; transform: translate(0, -50%); }
.menu-lien:focus-visible { outline: 2px solid var(--or-500); outline-offset: 2px; }
.menu-famille { margin: 0 0 .3rem; padding: 0 .95rem; font-size: .6875rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--or-500); }
.masthead .menu-tout {
  display: inline-flex; align-items: center; gap: .5rem; margin: 1rem 0 0 .95rem; padding: 0; border: 0;
  font-size: .875rem; font-weight: 600; color: var(--or-300); text-decoration: none;
}
.masthead .menu-tout::after { content: "→"; transition: transform .4s var(--ressort); }
.masthead .menu-tout:hover { color: var(--clair); }
.masthead .menu-tout:hover::after { transform: translateX(5px); }
.menu-vedette {
  display: flex; flex-direction: column; justify-content: space-between; gap: 1rem; padding: 1.5rem;
  border-radius: 14px; border: 1px solid rgba(201, 160, 99, .3);
  background: radial-gradient(120% 90% at 100% 0%, rgba(201, 160, 99, .28), transparent 60%), linear-gradient(160deg, rgba(23, 58, 94, .9), rgba(8, 31, 56, .9));
}
.menu-vedette .menu-vedette-titre { margin: 0; font: 600 1.6rem/1.15 var(--font-titre); color: var(--clair); }
.menu-vedette p { margin: 0; font-size: .875rem; line-height: 1.5; color: var(--argent); }
.masthead .menu-vedette a {
  align-self: flex-start; padding: .7rem 1.1rem; border: 0; border-radius: 999px; background: var(--or-500);
  color: var(--marine-900); font-size: .8125rem; font-weight: 700; letter-spacing: .04em; text-decoration: none;
  transition: background .25s ease, transform .35s var(--ressort), box-shadow .35s ease;
}
.masthead .menu-vedette a:hover { background: var(--or-300); color: var(--marine-900); transform: translateY(-2px); box-shadow: 0 10px 24px -8px rgba(201, 160, 99, .7); }

/* Bouton rendez-vous : reflet lumineux au survol */
.masthead a.btn-rdv { position: relative; overflow: hidden; transition: background .25s ease, transform .35s var(--ressort), box-shadow .35s ease; }
.masthead a.btn-rdv::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .55), transparent); transform: skewX(-20deg);
  transition: left .7s var(--ressort);
}
.masthead a.btn-rdv:hover { transform: translateY(-2px); box-shadow: 0 12px 28px -10px rgba(201, 160, 99, .8); }
.masthead a.btn-rdv:hover::after { left: 130%; }

/* Téléphone dans l’en-tête, à côté du bouton rendez-vous */
.tel-entete { display: inline-flex; align-items: center; gap: .7rem; margin-left: auto; margin-right: 1.4rem; color: var(--clair); text-decoration: none; }
.tel-entete-icone {
  position: relative; display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 50%;
  border: 1px solid rgba(201, 160, 99, .5); background: rgba(201, 160, 99, .08); transition: background .3s ease, border-color .3s ease, transform .4s var(--ressort);
}
.tel-entete-icone svg { width: 1.05rem; height: 1.05rem; fill: var(--or-300); }
.tel-entete-icone::after { content: ""; position: absolute; inset: -1px; border-radius: 50%; border: 1px solid var(--or-300); opacity: 0; animation: tel-onde 3s ease-out 2s infinite; }
@keyframes tel-onde { 0% { transform: scale(1); opacity: .7; } 70%, 100% { transform: scale(1.6); opacity: 0; } }
.tel-entete-texte { font: 600 1.0625rem/1.15 var(--font-texte); letter-spacing: .02em; white-space: nowrap; }
.tel-entete-texte small { display: block; font-size: .6875rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--or-500); }
.tel-entete:hover { color: var(--or-300); }
.tel-entete:hover .tel-entete-icone { background: rgba(201, 160, 99, .2); border-color: var(--or-300); transform: rotate(-12deg) scale(1.05); }
.masthead.defile .tel-entete-icone { width: 2.2rem; height: 2.2rem; }
@media (max-width: 1050px) { .tel-entete-texte small { display: none; } .tel-entete { margin-right: 1rem; } }
@media (max-width: 900px) {
  .tel-entete { margin: 0; }
  .tel-entete-texte { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .tel-entete-icone { width: 2.75rem; height: 2.75rem; }
}
@media (prefers-reduced-motion: reduce) { .tel-entete-icone::after { animation: none; } }

@media (min-width: 901px) {
  .masthead .menu {
    position: relative; width: 100%; gap: .2rem .25rem; padding-top: .85rem;
    border-top: 1px solid rgba(255, 255, 255, .07); transition: padding .45s var(--ressort);
  }
  .masthead.defile .menu { padding-top: .45rem; }
  .masthead .menu > a:not(.btn-rdv), .menu-declencheur {
    position: relative; display: inline-flex; align-items: center; gap: .55rem;
    padding: .75rem 1.05rem; border: 0; border-radius: 999px; background: transparent; cursor: pointer;
    font: 500 1.0625rem/1 var(--font-texte); letter-spacing: .01em; color: rgba(247, 245, 240, .8);
    transition: color .25s ease, background .3s ease;
  }
  .masthead .menu > a:not(.btn-rdv):hover, .menu-declencheur:hover,
  .menu-groupe:hover > .menu-declencheur, .menu-groupe.ouvert > .menu-declencheur { color: var(--clair); background: rgba(255, 255, 255, .07); border-bottom-color: transparent; }
  .masthead .menu > a[aria-current=page]:not(.btn-rdv), .menu-groupe.actif > .menu-declencheur { color: var(--clair); }
  .masthead .menu > a:not(.btn-rdv):focus-visible, .menu-declencheur:focus-visible { outline: 2px solid var(--or-500); outline-offset: 2px; }
  .masthead .navigation.menu > a.menu-rdv-mobile { display: none; }
  html:not(.js) .masthead .menu > a[aria-current=page]:not(.btn-rdv), html:not(.js) .menu-groupe.actif > .menu-declencheur { box-shadow: inset 0 -2px 0 var(--or-500); }

  .menu-declencheur::after {
    content: ""; width: .42em; height: .42em; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
    transform: translateY(-.15em) rotate(45deg); transition: transform .45s var(--ressort);
  }
  .menu-groupe:hover > .menu-declencheur::after, .menu-groupe.ouvert > .menu-declencheur::after,
  .menu-groupe:has(:focus-visible) > .menu-declencheur::after { transform: translateY(.12em) rotate(-135deg); }

  .menu-indicateur {
    position: absolute; left: 0; top: 0; height: 2px; width: 0; border-radius: 2px; pointer-events: none; opacity: 0;
    background: linear-gradient(90deg, var(--or-300), var(--or-500));
    box-shadow: 0 0 14px rgba(230, 198, 142, .75);
    transition: transform .5s var(--ressort), width .5s var(--ressort), opacity .3s ease;
  }

  /* Panneaux pleine largeur */
  .menu-groupe { position: static; }
  .menu-panneau {
    position: absolute; left: 0; right: 0; top: calc(100% + .7rem); z-index: 40;
    opacity: 0; visibility: hidden; transform: translateY(14px) scale(.985); filter: blur(8px); transform-origin: 50% 0;
    transition: opacity .2s ease .1s, transform .3s var(--ressort) .1s, filter .2s ease .1s, visibility 0s linear .4s;
  }
  .menu-panneau::before { content: ""; position: absolute; left: 0; right: 0; top: -1.4rem; height: 1.4rem; }
  .menu-groupe:hover > .menu-panneau, .menu-groupe.ouvert > .menu-panneau, .menu-groupe:has(:focus-visible) > .menu-panneau {
    opacity: 1; visibility: visible; transform: none; filter: none;
    transition: opacity .28s ease, transform .55s var(--ressort), filter .3s ease, visibility 0s;
  }
  .menu-panneau-interieur {
    display: grid; grid-template-columns: minmax(0, 1fr) 17rem; gap: 1.5rem; padding: 1.2rem;
    background: rgba(5, 15, 29, .96); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
    border: 1px solid rgba(201, 160, 99, .22); border-radius: 18px;
    box-shadow: 0 40px 80px -20px rgba(0, 0, 0, .6), inset 0 1px 0 rgba(255, 255, 255, .05);
  }
  .menu-panneau-interieur--simple { grid-template-columns: minmax(0, 1fr); }
  .menu-grille--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .menu-grille--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .3rem 1rem; }

  /* Apparition en cascade */
  .menu-grille > *, .menu-vedette { opacity: 0; transform: translateY(10px); transition: opacity .3s ease, transform .5s var(--ressort); }
  .menu-groupe:hover .menu-grille > *, .menu-groupe.ouvert .menu-grille > *, .menu-groupe:has(:focus-visible) .menu-grille > *,
  .menu-groupe:hover .menu-vedette, .menu-groupe.ouvert .menu-vedette, .menu-groupe:has(:focus-visible) .menu-vedette { opacity: 1; transform: none; }
  .menu-groupe .menu-grille > :nth-child(1) { transition-delay: .06s; }
  .menu-groupe .menu-grille > :nth-child(2) { transition-delay: .1s; }
  .menu-groupe .menu-grille > :nth-child(3) { transition-delay: .14s; }
  .menu-groupe .menu-grille > :nth-child(4) { transition-delay: .18s; }
  .menu-groupe .menu-grille > :nth-child(5) { transition-delay: .22s; }
  .menu-groupe .menu-grille > :nth-child(6) { transition-delay: .26s; }
  .menu-groupe .menu-vedette { transition-delay: .2s; }
}

@media (max-width: 900px) {
  .menu-bouton {
    display: inline-flex; align-items: center; gap: .65rem; cursor: pointer; color: var(--clair);
    border: 1px solid rgba(201, 160, 99, .45); border-radius: 999px; padding: .7rem 1.1rem;
    font-size: .8125rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
    transition: background .3s ease, border-color .3s ease;
  }
  .menu-bascule:checked + .menu-bouton { background: rgba(201, 160, 99, .15); border-color: var(--or-500); }
  .menu-bascule:focus-visible + .menu-bouton { outline: 2px solid var(--or-500); outline-offset: 3px; }
  .menu-icone, .menu-icone::before, .menu-icone::after { display: block; width: 1.15rem; height: 1.5px; background: currentColor; transition: transform .45s var(--ressort), background .2s ease; }
  .menu-icone { position: relative; }
  .menu-icone::before, .menu-icone::after { content: ""; position: absolute; left: 0; }
  .menu-icone::before { top: -6px; } .menu-icone::after { top: 6px; }
  .menu-bascule:checked + .menu-bouton .menu-icone { background: transparent; }
  .menu-bascule:checked + .menu-bouton .menu-icone::before { transform: translateY(6px) rotate(45deg); }
  .menu-bascule:checked + .menu-bouton .menu-icone::after { transform: translateY(-6px) rotate(-45deg); }

  .masthead .wrap { flex-wrap: wrap; gap: .8rem 1rem; }
  .brand { flex: 1 1 0; min-width: 0; }
  .brand small { letter-spacing: .08em; font-size: .6875rem; }
  .masthead .menu {
    display: none; width: 100%; flex-direction: column; flex-wrap: nowrap; align-items: stretch; gap: 0;
    max-height: calc(100vh - 7rem); max-height: calc(100dvh - 7rem); overflow-y: auto; overscroll-behavior: contain;
  }
  .menu-bascule:checked ~ .menu { display: flex; animation: menu-ouvre .5s var(--ressort); }
  @keyframes menu-ouvre { from { opacity: 0; transform: translateY(-12px); } }
  .masthead .menu > a:not(.btn-rdv), .menu-groupe { border-top: 1px solid rgba(255, 255, 255, .08); }
  .masthead .menu > a:not(.btn-rdv), .menu-declencheur {
    display: flex; width: 100%; justify-content: space-between; align-items: center; padding: 1rem .2rem;
    border: 0; background: none; cursor: pointer; text-align: left;
    font: 500 1.125rem/1.2 var(--font-texte); color: var(--clair);
  }
  .menu-declencheur::after {
    content: ""; width: .5em; height: .5em; border-right: 1.5px solid var(--or-500); border-bottom: 1.5px solid var(--or-500);
    transform: translateY(-.2em) rotate(45deg); transition: transform .45s var(--ressort);
  }
  .menu-groupe.ouvert > .menu-declencheur::after { transform: translateY(.1em) rotate(-135deg); }
  .menu-groupe.actif > .menu-declencheur, .masthead .menu > a[aria-current=page]:not(.btn-rdv) { color: var(--or-300); }
  .menu-panneau { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .5s var(--ressort); }
  .menu-groupe.ouvert > .menu-panneau, html:not(.js) .menu-panneau { grid-template-rows: 1fr; }
  .menu-panneau-interieur { min-height: 0; overflow: hidden; }
  .menu-panneau-interieur > :first-child { padding-bottom: 1rem; }
  .menu-vedette { display: none; }
  .masthead .menu .menu-lien { padding: .65rem 2rem .65rem .8rem; }
  .menu-lien small { display: none; }
  .menu-grille--4 { gap: .8rem; }
  .masthead .menu-tout { margin: .6rem 0 0 .8rem; }
  .masthead a.btn-rdv.btn-entete { display: none; }
  .masthead .navigation.menu > a.menu-rdv-mobile { display: block; margin: 1.2rem 0 .4rem; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  .masthead, .masthead .wrap, .menu-panneau, .menu-grille > *, .menu-vedette, .menu-indicateur, .menu-lien, .menu-lien::after,
  .masthead a.btn-rdv, .masthead a.btn-rdv::after { transition: none !important; animation: none !important; }
  .menu-panneau { filter: none !important; }
}

/* ---------- Boutons ---------- */
.btn-rdv,
.masthead .navigation a.btn-rdv {
  display: inline-block;
  padding: .95rem 1.6rem;
  background: var(--or-500);
  color: var(--marine-900);
  border: 0;
  border-radius: var(--rayon);
  font: 600 .8125rem/1 var(--font-texte);
  letter-spacing: .18em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background var(--transition), color var(--transition);
}
.btn-rdv:hover,
.masthead .navigation a.btn-rdv:hover { background: var(--or-300); color: var(--marine-900); border-bottom-color: transparent; }
/* Bouton secondaire (contour or, sur fond marine) */
.btn-secondaire {
  display: inline-block; padding: calc(.95rem - 1px) 1.6rem; border: 1px solid var(--or-500); border-radius: var(--rayon);
  font: 600 .8125rem/1 var(--font-texte); letter-spacing: .18em; text-transform: uppercase; text-decoration: none;
  color: var(--clair); transition: background var(--transition), color var(--transition);
}
.home-intro a.btn-secondaire { color: var(--clair); }
.home-intro a.btn-secondaire:hover { background: var(--or-500); color: var(--marine-900); }
.hero-avis { margin: 1.3rem 0 0; font-size: .9375rem; }
.home-intro .hero-avis a { color: var(--argent); text-decoration: none; }
.home-intro .hero-avis a:hover { color: var(--clair); }
.hero-avis .etoiles { margin-right: .4rem; }

/* Accueil : solutions par famille */
.solutions-familles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 2.5rem; margin-top: 2rem; }
.solutions-familles ul { list-style: none; margin: 0; padding: 0; }
.solutions-familles li { margin: 0; }
.solutions-famille { margin: 0 0 .4rem; padding-bottom: .8rem; border-bottom: 1px solid var(--or-500); font-size: .75rem; letter-spacing: .16em; text-transform: uppercase; color: var(--or-700); }
.solution-tuile { display: block; padding: 1.1rem 0; border-bottom: 1px solid var(--trait); text-decoration: none; color: var(--ardoise); }
.solution-tuile strong { display: flex; justify-content: space-between; gap: 1rem; font: 600 1.375rem/1.2 var(--font-titre); color: var(--marine-800); margin-bottom: .35rem; }
.solution-tuile strong::after { content: "→"; font-family: var(--font-texte); font-size: 1rem; color: var(--or-700); transition: transform var(--transition); }
.solution-tuile span { display: block; font-size: .9375rem; line-height: 1.5; }
.solution-tuile:hover strong { color: var(--or-700); }
.solution-tuile:hover strong::after { transform: translateX(4px); }
.solutions-risque { margin-top: 1.8rem; font-size: .8125rem; color: var(--ardoise); }
@media (max-width: 900px) { .solutions-familles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem 2rem; } }
@media (max-width: 560px) { .solutions-familles { grid-template-columns: 1fr; } }
@media (max-width: 650px) { .btn-secondaire { width: 100%; text-align: center; } }

/* Fiches solutions : encadré « L'essentiel » */
main > section.essentiel {
  background: var(--blanc); border: 1px solid var(--trait); border-top: 3px solid var(--or-500);
  border-radius: var(--rayon); padding: 2.2rem 2.4rem 2rem; margin: 0 0 1rem;
}
.essentiel h2 { margin: 0 0 1.4rem; font-size: clamp(1.7rem, 2.6vw, 2.1rem); }
.essentiel dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 2.5rem; margin: 0; }
.essentiel dl > div { padding: 1rem 0; border-top: 1px solid var(--trait); }
.essentiel dt { margin: 0 0 .35rem; font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--or-700); font-weight: 600; }
.essentiel dd { margin: 0; color: var(--encre); line-height: 1.55; }
.essentiel-note { margin: 1.2rem 0 0; padding-top: 1rem; border-top: 1px solid var(--trait); font-size: .875rem; color: var(--ardoise); }
.essentiel-note a { color: var(--marine-800); font-weight: 600; }
@media (max-width: 700px) {
  main > section.essentiel { padding: 1.6rem 1.25rem 1.4rem; }
  .essentiel dl { grid-template-columns: 1fr; }
}

/* Simulateurs interactifs */
.simulateur { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0; margin: 1.8rem 0 1rem; border: 1px solid var(--trait); border-radius: var(--rayon); overflow: hidden; }
.sim-form { background: var(--blanc); padding: 1.8rem 1.8rem 1rem; margin: 0; }
.sim-champ { margin: 0 0 1.2rem; max-width: none; }
.sim-champ label { display: block; font-weight: 600; font-size: .9375rem; color: var(--encre); margin-bottom: .4rem; }
.sim-saisie { display: flex; align-items: stretch; border: 1px solid var(--marine-300); border-radius: var(--rayon); background: var(--blanc); }
.sim-saisie:focus-within, .sim-champ select:focus { outline: 2px solid var(--or-500); outline-offset: 1px; }
.sim-saisie input { flex: 1; min-width: 0; border: 0; padding: .7rem .8rem; font: 500 1.0625rem/1.2 var(--font-texte); color: var(--encre); background: transparent; outline: none; }
.sim-saisie span { display: flex; align-items: center; padding: 0 .9rem; color: var(--ardoise); background: var(--ivoire); border-left: 1px solid var(--marine-300); font-size: .9375rem; }
.sim-champ select { width: 100%; padding: .7rem .8rem; border: 1px solid var(--marine-300); border-radius: var(--rayon); font: 500 1.0625rem/1.2 var(--font-texte); color: var(--encre); background: var(--blanc); }
.sim-champ small { display: block; margin-top: .35rem; font-size: .8125rem; color: var(--ardoise); line-height: 1.45; }
.sim-resultat { background: var(--marine-800); color: var(--argent); padding: 1.8rem; }
.sim-resultat-titre { margin: 0 0 1rem; font-size: .75rem; letter-spacing: .16em; text-transform: uppercase; color: var(--or-500); }
.sim-resultat dl { margin: 0; }
.sim-resultat dl > div { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: .75rem 0; border-top: 1px solid var(--marine-600); }
.sim-resultat dt { font-size: .9375rem; color: var(--argent); font-weight: 400; margin: 0; letter-spacing: 0; text-transform: none; }
.sim-resultat dd { margin: 0; text-align: right; color: var(--clair); font: 600 1.25rem/1.2 var(--font-titre); font-variant-numeric: lining-nums; white-space: nowrap; }
.sim-resultat .sim-principal dd { font-size: 1.9rem; color: var(--or-300); }
.sim-note { font-size: .875rem; color: var(--ardoise); }
.sim-note a { font-weight: 600; }
.sim-noscript { padding: 1rem 1.2rem; background: var(--ivoire); border-left: 3px solid var(--or-500); }
@media (max-width: 800px) {
  .simulateur { grid-template-columns: 1fr; }
  .sim-form, .sim-resultat { padding: 1.4rem 1.2rem; }
  .sim-resultat dd { white-space: normal; }
}

/* Sur fond clair, le bouton principal passe en marine */
main .btn-rdv { background: var(--marine-800); color: var(--clair); }
main .btn-rdv:hover { background: var(--marine-700); color: var(--clair); }

/* ---------- Contenu principal ---------- */
main { padding: 2.5rem 0 4rem; }
main > section, main > article { padding: 3.5rem 0; border-bottom: 1px solid var(--trait); }
main > section:first-child, main > article:first-child { padding-top: 1rem; }
main > section:last-child, main > article:last-child { border-bottom: 0; }
section section { margin: 2.5rem 0 0; }
.section-heading { margin-bottom: 2rem; }
.section-heading p:last-child { color: var(--ardoise); }

.breadcrumbs { font-size: .875rem; color: var(--ardoise); }
.breadcrumbs ol, nav ol { display: flex; flex-wrap: wrap; gap: .3rem 1.2rem; list-style: none; padding: 0; margin: 0; }
.breadcrumbs li { margin: 0; }
.breadcrumbs li + li::before { content: "/"; color: var(--or-500); margin-right: 1.2rem; }

/* Images de contenu : larges, recadrées, sans cadre */
main img { width: 100%; max-height: 440px; object-fit: cover; margin: 1.5rem 0; border-radius: var(--rayon); }
figure { margin: 1.5rem 0; }
figure img { margin: 0; }
figcaption { font-size: .875rem; color: var(--ardoise); margin-top: .6rem; }

/* Grilles éditoriales : colonnes asymétriques, pas de cartes en boîte */
.grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 2.5rem; align-items: start; margin: 1.5rem 0; }
.grid > ol, .grid > ul { margin: 0; }

.card {
  display: block;
  padding: 1.4rem 0;
  border-top: 1px solid var(--trait);
  text-decoration: none;
}
.card:hover { color: var(--encre); }
.card:hover h3, .card:hover strong { color: var(--or-700); }
.card img { margin: 0 0 1rem; max-height: 220px; }
.card h3, .card strong { display: block; font: 600 1.5rem/1.2 var(--font-titre); color: var(--marine-800); margin: .3rem 0 .4rem; transition: color var(--transition); }
.card p { color: var(--ardoise); margin: 0 0 .6rem; }

/* Listes de cartes : deux colonnes numérotées « 01 — » */
main ul:has(> li > .card) {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 3rem;
  counter-reset: carte;
}
main ul:has(> li > .card) > li { margin: 0; counter-increment: carte; }
main ul:has(> li > .card) .card::before {
  content: counter(carte, decimal-leading-zero) " —";
  display: block; font: 500 1rem/1 var(--font-titre); letter-spacing: .1em; color: var(--or-700); margin-bottom: .8rem;
}

/* Encadrés */
aside {
  background: var(--ivoire);
  border-left: 2px solid var(--or-500);
  padding: 1.4rem 1.6rem;
  margin: 2rem 0;
  border-radius: var(--rayon);
}
aside > :last-child { margin-bottom: 0; }
aside h2, aside h3 { font-size: 1.5rem; margin-top: 0; }

blockquote {
  margin: 2rem 0;
  padding: 0 0 0 1.6rem;
  border-left: 1px solid var(--or-500);
  font: italic 500 1.5rem/1.35 var(--font-titre);
  color: var(--marine-800);
}
blockquote p { max-width: 50ch; }
blockquote footer {
  font: 400 .875rem/1.4 var(--font-texte); font-style: normal;
  letter-spacing: .08em; color: var(--ardoise);
  background: none; border: 0; margin: .6rem 0 0; padding: 0;
}

/* FAQ native */
details { border-bottom: 1px solid var(--trait); padding: 1.1rem 0; margin: 0; }
details:first-of-type { border-top: 1px solid var(--trait); }
summary {
  cursor: pointer; list-style: none;
  font: 600 1.375rem/1.3 var(--font-titre); color: var(--marine-800);
  display: flex; justify-content: space-between; gap: 1rem;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--or-700); font-family: var(--font-texte); font-weight: 400; transition: transform var(--transition); }
details[open] summary::after { transform: rotate(45deg); }
details > :not(summary) { margin-top: .8rem; }

/* Définitions et tableaux */
dl { margin: 1.5rem 0; }
dt { font-weight: 600; margin-top: 1rem; color: var(--marine-800); }
dd { margin: .2rem 0 0; color: var(--encre); }
table { border-collapse: collapse; display: block; overflow-x: auto; max-width: 100%; margin: 1.5rem 0; font-size: .9375rem; }
th, td { border-bottom: 1px solid var(--trait); padding: .75rem 1rem; text-align: left; vertical-align: top; }
th { background: var(--marine-100); color: var(--marine-800); font-weight: 600; }

/* ---------- Page d'accueil ---------- */
/* Bandeau marine pleine largeur */
.home-intro, .section-callout {
  background: var(--marine-800);
  box-shadow: 0 0 0 100vmax var(--marine-800);
  clip-path: inset(0 -100vmax);
  color: var(--clair);
}
.home-intro {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 3rem; align-items: center;
  margin-top: -2.5rem; padding: 4.5rem 0 5rem !important; border-bottom: 0 !important;
}
.home-intro h1 { font-size: clamp(2.3rem, 5.2vw, 4.1rem); color: var(--clair); max-width: 15ch; margin-top: 0; }
.home-intro h1 em { color: var(--or-300); }
/* Accroche métier sur deux niveaux : sous-titre doré + étiquettes de lieu */
.home-intro .hero-copy > p.hero-metier {
  margin: -.6rem 0 1rem; font: italic 500 clamp(1.6rem, 2.6vw, 2.05rem)/1.15 var(--font-titre);
  letter-spacing: .005em; text-transform: none; color: var(--or-300);
}
.hero-lieux { list-style: none; margin: 0 0 2.2rem; padding: 0; display: flex; flex-wrap: wrap; gap: .6rem; }
.hero-lieux li {
  margin: 0; display: inline-flex; align-items: center; gap: .55rem; padding: .5rem 1rem; border-radius: 999px;
  border: 1px solid rgba(143, 163, 188, .42); background: rgba(255, 255, 255, .03); color: var(--argent); font-size: .9375rem; line-height: 1.2;
  transition: border-color .3s ease, background .3s ease, color .3s ease;
}
.hero-lieux li:hover { border-color: rgba(201, 160, 99, .65); background: rgba(201, 160, 99, .09); color: var(--clair); }
.hero-lieux svg { width: 1.1rem; height: 1.1rem; flex: none; fill: none; stroke: var(--or-500); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.home-intro p { color: var(--argent); }
.home-intro strong { color: var(--clair); }
.home-intro a:not(.btn-rdv) { color: var(--clair); }
.home-intro .btn-rdv { background: var(--or-500); color: var(--marine-900); }
.home-intro .btn-rdv:hover { background: var(--or-300); color: var(--marine-900); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.6rem; margin-top: 2rem; }
.hero-photo { margin: 0; }
.hero-photo img { height: 460px; max-height: none; object-fit: cover; object-position: 72% center; margin: 0; }
.hero-photo figcaption { color: var(--argent); }

/* Chiffres clés sur marine */
.key-figures { list-style: none; padding: 0; margin: 2rem 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--marine-600); }
.key-figures li { margin: 0; background: var(--marine-800); color: var(--argent); padding: 2.2rem 2rem; font-size: .9375rem; }
.key-figures strong { display: block; font: 600 3.25rem/1 var(--font-titre); color: var(--or-500); margin-bottom: .6rem; }

/* Six domaines : liste éditoriale numérotée */
.objective-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 3rem; counter-reset: objectif; }
.objective-card { margin: 0; padding: 1.6rem 0; border-top: 1px solid var(--trait); counter-increment: objectif; display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: 1.2rem; align-items: center; }
.objective-card > img { width: 7.5rem; height: 5.5rem; max-height: none; margin: 0; }
.objective-card h3 { margin: 0; font-size: 1.375rem; }
.objective-card h3::before { content: counter(objectif, decimal-leading-zero) " —"; display: block; font: 500 .9375rem/1 var(--font-titre); letter-spacing: .1em; color: var(--or-700); margin-bottom: .4rem; }
.objective-card h3 a { text-decoration: none; }
.objective-card h3 a:hover { color: var(--or-700); }

/* Démarche : étapes numérotées */
.process-steps, .method-stages { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0 2.5rem; counter-reset: etape; }
.process-steps > li, .method-stages > li { margin: 0; padding: 1.6rem 0; border-top: 1px solid var(--or-500); counter-increment: etape; }
.process-steps > li::before, .method-stages > li::before { content: counter(etape, decimal-leading-zero); display: block; font: 600 2.75rem/1 var(--font-titre); color: var(--or-700); }
.process-steps h3, .method-stages h2, .method-stages h3 { margin: .8rem 0 .5rem; font-size: 1.5rem; }
.process-steps p { color: var(--ardoise); }

img.panorama { max-height: none; height: 320px; }

/* Page Cabinet : portrait affiché en entier, à côté du texte */
.portrait-bloc { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); column-gap: 3.5rem; align-items: start; }
.portrait-bloc > img { grid-row: 1 / span 6; width: 100%; height: auto; aspect-ratio: 1; max-height: none; margin: 0; object-fit: cover; object-position: 50% 30%; }
.portrait-bloc > :not(img) { grid-column: 2; }
.portrait-bloc > .eyebrow { margin-top: 0; }
@media (max-width: 900px) {
  .portrait-bloc { grid-template-columns: 1fr; }
  .portrait-bloc > img { grid-row: auto; max-width: 320px; margin-bottom: 1.5rem; }
  .portrait-bloc > :not(img) { grid-column: 1; }
}
.process-steps + article { margin-top: 2.5rem; }

/* Blocs qui se suivent dans une même section : respiration entre eux */
main > section > article + article { margin-top: 3.5rem; }

/* Appel final */
.section-callout { padding: 4.5rem 0 !important; border-bottom: 0 !important; margin-top: 3rem; }
.section-callout h2 { color: var(--clair); }
.section-callout p { color: var(--argent); }
.section-callout a:not(.btn-rdv) { color: var(--clair); }
.section-callout .btn-rdv { background: var(--or-500); color: var(--marine-900); }
.section-callout .btn-rdv:hover { background: var(--or-300); }

.faq-layout { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 3rem; align-items: start; }

/* ---------- Pied de page ---------- */
footer { background: var(--marine-900); color: var(--argent); margin-top: 0; font-size: .9375rem; }
footer .wrap { padding-top: 3rem; padding-bottom: 3rem; }
footer p { max-width: none; }
footer a { color: var(--clair); }
footer a:hover { color: var(--or-300); }
footer .navigation { margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid var(--marine-600); gap: .4rem 1.6rem; }
footer .navigation a { font-size: .875rem; }
.footer-cabinet { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.5rem 3rem; }
.footer-cabinet strong { display: block; font: 600 1.375rem/1.2 var(--font-titre); color: var(--clair); margin-bottom: .4rem; }
.footer-legal { font-size: .8125rem; color: var(--marine-300, #8FA3BC); margin-top: 1.5rem; }

/* ---------- Tablette ---------- */
@media (max-width: 900px) {
  .home-intro, .grid, .faq-layout { grid-template-columns: 1fr; }
  .home-intro { gap: 2rem; padding: 3rem 0 3.5rem !important; }
  .hero-photo img { height: 340px; }
  .key-figures { grid-template-columns: 1fr; }
}

/* ---------- Mobile ---------- */
@media (max-width: 650px) {
  body { font-size: 1rem; }
  .wrap { padding: 0 1rem; }
  .masthead .wrap { gap: .8rem; }
  .brand img { width: 44px; height: 44px; }
  .brand span { font-size: 1.3rem; }
  .navigation { gap: .2rem 1.1rem; }
  .masthead .navigation a.btn-rdv { width: 100%; text-align: center; margin-top: .4rem; }
  main { padding-top: 1.5rem; }
  main > section, main > article { padding: 2.5rem 0; }
  .home-intro { margin-top: -1.5rem; }
  .hero-photo img { height: 260px; }
  .objective-grid, main ul:has(> li > .card) { grid-template-columns: 1fr; }
  .objective-card { grid-template-columns: 5.5rem minmax(0, 1fr); }
  .objective-card > img { width: 5.5rem; height: 4.5rem; }
  .key-figures li { padding: 1.6rem 1.4rem; }
  .key-figures strong { font-size: 2.75rem; }
  blockquote { font-size: 1.3rem; padding-left: 1.1rem; }
  img.panorama { height: 190px; }
  main img { max-height: 260px; }
  .btn-rdv { width: 100%; text-align: center; }
}

/* ---------- Formulaire de rendez-vous ---------- */
.rdv-grille { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 3rem; align-items: start; }
.rdv-grille > .form-statut { grid-column: 1; }
.formulaire fieldset { border: 0; padding: 0; margin: 0 0 2.5rem; min-width: 0; }
.formulaire legend { font: 600 1.75rem/1.2 var(--font-titre); color: var(--marine-800); padding: 0; margin-bottom: 1.2rem; }
.champ { margin-bottom: 1.4rem; }
.champ > label, .champ > .label { display: block; font-weight: 600; margin-bottom: .45rem; color: var(--encre); }
.requis, .facultatif { font-weight: 400; font-size: .8125rem; color: var(--ardoise); margin-left: .4rem; }
.formulaire input[type=text], .formulaire input[type=tel], .formulaire input[type=email], .formulaire select, .formulaire textarea {
  width: 100%;
  background: var(--blanc);
  border: 1px solid rgba(11, 26, 44, .25);
  border-bottom: 2px solid var(--marine-800);
  border-radius: var(--rayon);
  padding: .85rem 1rem;
  color: var(--encre);
  font: 400 1.0625rem/1.4 var(--font-texte);
  min-height: 48px;
}
.formulaire textarea { resize: vertical; }
.formulaire input:focus, .formulaire select:focus, .formulaire textarea:focus { outline: 2px solid var(--or-500); outline-offset: 2px; }
.formulaire input:user-invalid, .formulaire select:user-invalid { border-bottom-color: #A23B2A; }
.champs-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.5rem; }
.choix { display: flex; flex-wrap: wrap; gap: .6rem; }
.choix label { display: inline-flex; align-items: center; gap: .55rem; padding: .7rem 1rem; min-height: 48px; background: var(--blanc); border: 1px solid rgba(11, 26, 44, .25); border-radius: var(--rayon); cursor: pointer; font-weight: 400; }
.choix label:has(input:checked) { border-color: var(--marine-800); box-shadow: inset 0 0 0 1px var(--marine-800); }
.choix input, .case input { accent-color: var(--marine-800); width: 18px; height: 18px; margin: 0; flex: none; }
.case label { display: flex; gap: .7rem; align-items: flex-start; font-weight: 400; font-size: .9375rem; }
.case input { margin-top: .2rem; }
.aide { font-size: .875rem; color: var(--ardoise); margin: .4rem 0 0; }
.piege { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.formulaire button.btn-rdv { cursor: pointer; min-height: 52px; }
.formulaire button.btn-rdv:disabled { opacity: .6; cursor: wait; }
.form-statut { padding: 1.2rem 1.4rem; border-radius: var(--rayon); font-weight: 600; max-width: none; }
.form-statut.succes { background: var(--ivoire); border-left: 2px solid var(--or-500); color: var(--marine-800); font: 600 1.5rem/1.3 var(--font-titre); }
.form-statut.erreur { background: #FBEDEA; border-left: 2px solid #A23B2A; color: #7A2A1E; }
.rdv-direct { margin: 0; position: sticky; top: 1.5rem; }
.rdv-direct strong { font: 600 1.75rem/1.2 var(--font-titre); color: var(--marine-800); }
@media (max-width: 900px) {
  .rdv-grille { grid-template-columns: 1fr; }
  .rdv-direct { position: static; }
}
@media (max-width: 650px) {
  .champs-duo { grid-template-columns: 1fr; }
  .choix label { width: 100%; }
}

/* ---------- Bloc « en bref » et signature des articles (GEO) ---------- */
.en-bref > p:not(.eyebrow):not(.maj) { font: 500 1.375rem/1.45 var(--font-titre); color: var(--marine-800); max-width: 60ch; }
.fiche { margin: 2rem 0 .8rem; border-top: 1px solid var(--trait); }
.fiche > div { display: grid; grid-template-columns: minmax(0, 12rem) minmax(0, 1fr); gap: 1.5rem; padding: .9rem 0; border-bottom: 1px solid var(--trait); }
.fiche dt { margin: 0; font: 600 .8125rem/1.5 var(--font-texte); letter-spacing: .14em; text-transform: uppercase; color: var(--or-700); }
.fiche dd { margin: 0; }
.maj { font-size: .8125rem; color: var(--ardoise); }
.article-meta { font-size: .9375rem; color: var(--ardoise); margin-top: .5rem; }
.article-meta a { color: var(--marine-800); font-weight: 600; }
@media (max-width: 650px) {
  .fiche > div { grid-template-columns: 1fr; gap: .2rem; }
  .en-bref > p:not(.eyebrow):not(.maj) { font-size: 1.2rem; }
}

/* ---------- Slogan ---------- */
.slogan { display: block; font: italic 500 1.125rem/1.3 var(--font-titre); color: var(--or-300); margin: -.1rem 0 .5rem; }

/* ---------- Avis clients ---------- */
.etoiles { color: var(--or-500); letter-spacing: .18em; font-family: "Segoe UI Symbol", "Apple Symbols", "Noto Sans Symbols 2", sans-serif; font-size: 1.05rem; line-height: 1; }

/* Bandeau marine pleine largeur (accueil) */
.avis-bandeau {
  background: var(--marine-800);
  box-shadow: 0 0 0 100vmax var(--marine-800);
  clip-path: inset(0 -100vmax);
  color: var(--clair);
  padding: 4.5rem 0 3.5rem !important;
  border-bottom: 0 !important;
}
.avis-bandeau h2 { color: var(--clair); margin-bottom: 0; }
.avis-bandeau h2 em { color: var(--or-300); }
.avis-bandeau .eyebrow { color: var(--or-500); }
.avis-entete { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 1rem 3rem; margin-bottom: 2.5rem; }
.avis-note { display: flex; flex-direction: column; gap: .5rem; margin: 0; color: var(--argent); font-size: .9375rem; }
.avis-note .etoiles { font-size: 1.6rem; }
.avis-lien { margin: 2rem 0 0; }
.avis-lien a { color: var(--clair); }

/* Défilement continu, pause au survol / au clavier */
.avis-defile {
  overflow: hidden;
  margin: 0 -1.5rem;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}
.avis-defile:focus-visible { outline: 2px solid var(--or-500); outline-offset: 6px; }
.avis-piste { display: flex; width: max-content; list-style: none; margin: 0; padding: .5rem 0; animation: avis-defile 70s linear infinite; }
.avis-defile:hover .avis-piste, .avis-defile:focus-within .avis-piste, .avis-defile:focus .avis-piste { animation-play-state: paused; }
@keyframes avis-defile { to { transform: translateX(-50%); } }

.avis-carte {
  flex: none;
  width: 22rem;
  margin: 0 1.5rem 0 0;
  padding: 1.8rem 1.8rem 1.5rem;
  background: var(--marine-700);
  border-top: 2px solid var(--or-500);
  border-radius: var(--rayon);
  display: flex; flex-direction: column; gap: 1rem;
}
.avis-carte blockquote { margin: 0; padding: 0; border: 0; flex: 1; font: italic 500 1.25rem/1.4 var(--font-titre); color: var(--clair); }
.avis-carte blockquote p { margin: 0; }
.avis-auteur { display: flex; align-items: center; gap: .8rem; margin: 0; font-size: .875rem; color: var(--argent); }
.avis-auteur strong { display: block; color: var(--clair); font-weight: 600; }
.initiale {
  display: inline-grid; place-items: center; flex: none;
  width: 2.5rem; height: 2.5rem; border-radius: 50%;
  border: 1px solid var(--or-500); color: var(--or-300);
  font: 600 1.25rem/1 var(--font-titre);
}

/* Page Avis */
.avis-hero {
  background: var(--marine-800);
  box-shadow: 0 0 0 100vmax var(--marine-800);
  clip-path: inset(0 -100vmax);
  color: var(--clair);
  margin-top: -2.5rem;
  padding: 3rem 0 4rem !important;
  border-bottom: 0 !important;
}
.avis-hero .breadcrumbs, .avis-hero .breadcrumbs a { color: var(--argent); }
.avis-hero h1 { color: var(--clair); }
.avis-hero h1 em { color: var(--or-300); }
.avis-hero .eyebrow { color: var(--or-500); }
.avis-vedette { margin: 2.5rem 0 0; max-width: 52rem; }
.avis-vedette .etoiles { font-size: 1.5rem; }
.avis-vedette blockquote { margin: 1rem 0; padding: 0; border: 0; font: italic 500 clamp(1.6rem, 3.4vw, 2.4rem)/1.3 var(--font-titre); color: var(--clair); }
.avis-vedette blockquote p { max-width: none; }
.avis-vedette figcaption { color: var(--argent); font-size: .9375rem; letter-spacing: .08em; }
.avis-grille { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr)); gap: 1.5rem; }
.avis-grille .avis-carte { width: auto; margin: 0; }
.avis-provenance { font-size: .875rem; color: var(--ardoise); margin-top: 2rem; }

@media (max-width: 650px) {
  .avis-carte { width: 17.5rem; padding: 1.4rem; }
  .avis-carte blockquote { font-size: 1.125rem; }
  .avis-defile { margin: 0 -1rem; }
  .avis-hero { margin-top: -1.5rem; }
}

/* Animations désactivées par l'utilisateur : pas de défilement, glissement manuel */
@media (prefers-reduced-motion: reduce) {
  .avis-piste { animation: none; }
  .avis-defile { overflow-x: auto; scroll-snap-type: x mandatory; -webkit-mask-image: none; mask-image: none; }
  .avis-carte { scroll-snap-align: start; }
  .avis-carte[aria-hidden="true"] { display: none; }
}
.avis-hero .breadcrumbs { margin-bottom: 1.5rem; }

/* ---------- Documents réglementaires (DER, SFDR) ---------- */
.doc-reglementaire { max-width: 52rem; }
.doc-reglementaire h2 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); margin-top: 2.8rem; padding-top: 1.6rem; border-top: 1px solid var(--trait); max-width: none; }
.doc-reglementaire h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.doc-reglementaire h3 { font-size: 1.3rem; margin-top: 1.8rem; }
.doc-reglementaire table { display: table; width: 100%; }
.doc-reglementaire td { background: var(--blanc); }
.doc-note { max-width: 52rem; }
@media (max-width: 650px) { .doc-reglementaire table { display: block; } }
.doc-intro .breadcrumbs { margin-bottom: 1.5rem; }


/* =====================================================================
   Animations « nouvelle génération »
   ===================================================================== */
html, body { overflow-x: clip; }

/* ---------- Accueil : décor animé ---------- */
.home-intro { position: relative; isolation: isolate; }
.home-intro > .hero-copy, .home-intro > .hero-photo { position: relative; z-index: 1; }
.hero-deco {
  position: absolute; top: 0; bottom: 0; left: 50%; width: 100vw; transform: translateX(-50%); z-index: 0; pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, rgba(0, 0, 0, .35), #000 55%); mask-image: linear-gradient(90deg, rgba(0, 0, 0, .35), #000 55%);
}
.hero-deco::before, .hero-deco::after {
  content: ""; position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55;
}
.hero-deco::before { width: 42vw; height: 42vw; right: -8vw; top: -18vw; background: radial-gradient(circle, rgba(201, 160, 99, .45), transparent 65%); animation: halo-1 18s ease-in-out infinite alternate; }
.hero-deco::after { width: 38vw; height: 38vw; left: 10vw; bottom: -22vw; background: radial-gradient(circle, rgba(23, 58, 94, .9), transparent 70%); animation: halo-2 22s ease-in-out infinite alternate; }
@keyframes halo-1 { to { transform: translate(-10vw, 8vw) scale(1.15); } }
@keyframes halo-2 { to { transform: translate(14vw, -6vw) scale(.9); } }
.hero-deco svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-deco .trame { animation: trame 30s linear infinite; }
@keyframes trame { to { transform: translate(-26px, -26px); } }

/* Entrée du texte et de la photo */
.home-intro .hero-copy > * { animation: entree 1s var(--ressort) both; }
.home-intro .hero-copy > :nth-child(1) { animation-delay: .05s; }
.home-intro .hero-copy > :nth-child(2) { animation-delay: .15s; }
.home-intro .hero-copy > :nth-child(3) { animation-delay: .3s; }
.home-intro .hero-copy > :nth-child(4) { animation-delay: .4s; }
.home-intro .hero-copy > :nth-child(5) { animation-delay: .5s; }
.home-intro .hero-copy > :nth-child(6) { animation-delay: .6s; }
.home-intro .hero-copy > :nth-child(7) { animation-delay: .7s; }
@keyframes entree { from { opacity: 0; transform: translateY(26px); filter: blur(8px); } }
.hero-photo { position: relative; }
.hero-photo img { animation: devoile 1.4s cubic-bezier(.65, 0, .35, 1) .2s both; }
@keyframes devoile { from { clip-path: inset(100% 0 0 0); transform: scale(1.08); } to { clip-path: inset(0); transform: none; } }

/* Badges flottants en verre dépoli */
.hero-badge {
  position: absolute; z-index: 2; display: flex; align-items: center; gap: .7rem; padding: .8rem 1.05rem;
  background: rgba(8, 31, 56, .62); -webkit-backdrop-filter: blur(14px) saturate(160%); backdrop-filter: blur(14px) saturate(160%);
  border: 1px solid rgba(230, 198, 142, .35); border-radius: 14px; color: var(--argent); font-size: .8125rem; line-height: 1.35;
  box-shadow: 0 18px 40px -12px rgba(0, 0, 0, .55);
  opacity: 0; animation: badge-entree .9s var(--ressort) forwards, flotte 6s ease-in-out infinite;
}
.hero-badge strong { display: block; color: var(--clair); font-size: .9375rem; }
.hero-badge--rdv { right: -1.2rem; bottom: 2.6rem; animation-delay: 1.6s, 3.4s; }
.hero-badge-point { width: .6rem; height: .6rem; border-radius: 50%; background: #5BD6A0; box-shadow: 0 0 0 0 rgba(91, 214, 160, .6); animation: ping 2s ease-out infinite; flex: none; }
@keyframes badge-entree { from { opacity: 0; transform: translateY(18px) scale(.94); } to { opacity: 1; transform: none; } }
@keyframes flotte { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes ping { 70% { box-shadow: 0 0 0 9px rgba(91, 214, 160, 0); } 100% { box-shadow: 0 0 0 0 rgba(91, 214, 160, 0); } }

/* Appel final : halo qui dérive */
.section-callout { position: relative; isolation: isolate; }
.section-callout::before {
  content: ""; position: absolute; z-index: -1; width: 40rem; height: 40rem; right: -10rem; top: -14rem; border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 160, 99, .22), transparent 65%); filter: blur(40px); pointer-events: none;
  animation: halo-1 16s ease-in-out infinite alternate;
}

/* ---------- Apparition au défilement (activée par assets/animations.js) ---------- */
.anime .reveal { opacity: 0; transform: translateY(32px); filter: blur(6px); }
.anime .reveal.visible {
  opacity: 1; transform: none; filter: none;
  transition: opacity .8s ease var(--delai, 0ms), transform 1s var(--ressort) var(--delai, 0ms), filter .8s ease var(--delai, 0ms);
}

/* Traits dorés qui se dessinent */
.anime .process-steps > li, .anime .method-stages > li { position: relative; border-top-color: var(--trait); }
.anime .process-steps > li::after, .anime .method-stages > li::after {
  content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 1px; background: linear-gradient(90deg, var(--or-500), var(--or-300));
  transform: scaleX(0); transform-origin: left; transition: transform 1.2s var(--ressort) calc(var(--delai, 0ms) + .2s);
}
.anime .process-steps > li.dessine::after, .anime .method-stages > li.dessine::after { transform: scaleX(1); }

/* ---------- Micro-interactions au survol ---------- */
.objective-card, .solution-tuile { position: relative; }
.objective-card::after, .solution-tuile::after {
  content: ""; position: absolute; left: 0; height: 1px; width: 100%; background: linear-gradient(90deg, var(--or-500), var(--or-300));
  transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ressort);
}
.objective-card::after { top: -1px; }
.solution-tuile::after { bottom: -1px; }
.objective-card:hover::after, .objective-card:focus-within::after, .solution-tuile:hover::after, .solution-tuile:focus-visible::after { transform: scaleX(1); }
.objective-card > img { transition: transform .7s var(--ressort), filter .5s ease; }
.objective-card:hover > img { transform: scale(1.06); filter: saturate(1.15); }
.card { transition: transform .5s var(--ressort); }
.card img { transition: transform .7s var(--ressort), filter .5s ease; }
.card:hover { transform: translateY(-4px); }
.card:hover img { filter: saturate(1.15) brightness(1.04); }
.key-figures li { position: relative; overflow: hidden; transition: background .4s ease; }
.key-figures li::before {
  content: ""; position: absolute; inset: 0; background: radial-gradient(60% 80% at 0% 0%, rgba(201, 160, 99, .16), transparent 70%);
  opacity: 0; transition: opacity .5s ease;
}
.key-figures li:hover::before { opacity: 1; }

/* Reflet lumineux sur tous les boutons */
main .btn-rdv, main .btn-secondaire, .formulaire button.btn-rdv { position: relative; overflow: hidden; transition: background .25s ease, color .25s ease, transform .35s var(--ressort), box-shadow .35s ease; }
main .btn-rdv::after, main .btn-secondaire::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; pointer-events: none;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .45), transparent); transform: skewX(-20deg); transition: left .7s var(--ressort);
}
main .btn-rdv:hover, main .btn-secondaire:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -12px rgba(8, 31, 56, .55); }
.home-intro .btn-rdv:hover, .section-callout .btn-rdv:hover { box-shadow: 0 14px 34px -10px rgba(201, 160, 99, .75); }
main .btn-rdv:hover::after, main .btn-secondaire:hover::after { left: 130%; }

/* Barre de progression de lecture */
.progression-lecture {
  position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 50; pointer-events: none;
  background: linear-gradient(90deg, var(--or-700), var(--or-300)); box-shadow: 0 0 10px rgba(230, 198, 142, .6);
  transform: scaleX(0); transform-origin: left;
}

@media (max-width: 900px) {
  .hero-badge--rdv { right: .8rem; bottom: 2.6rem; }
  .hero-deco { -webkit-mask-image: none; mask-image: none; opacity: .7; }
}
@media (max-width: 650px) {
  .hero-badge { padding: .6rem .8rem; font-size: .75rem; }
  .hero-badge strong { font-size: .8125rem; }
  .hero-deco::before, .hero-deco::after { filter: blur(50px); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-deco::before, .hero-deco::after, .hero-deco .trame, .hero-badge, .hero-badge-point,
  .home-intro .hero-copy > *, .hero-photo img, .section-callout::before { animation: none !important; }
  .hero-badge { opacity: 1; }
  .card, .card:hover, main .btn-rdv:hover, main .btn-secondaire:hover { transform: none; }
}

/* ---------- Bloc d'appel en fin de page ---------- */
.section-callout a.btn-secondaire { color: var(--clair); }
.section-callout a.btn-secondaire:hover { background: var(--or-500); color: var(--marine-900); }
.cta-fin h2 em { color: var(--or-300); }
.cta-fin { margin-top: 3.5rem; }

/* ---------- Barre d'action fixe sur mobile ---------- */
.barre-mobile { display: none; }
@media (max-width: 900px) {
  footer { padding-bottom: 5rem; }
  .barre-mobile {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: grid; grid-template-columns: 1fr 1.6fr; gap: .6rem;
    padding: .65rem 1rem calc(.65rem + env(safe-area-inset-bottom));
    background: rgba(8, 31, 56, .94); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
    border-top: 1px solid rgba(201, 160, 99, .3); box-shadow: 0 -10px 30px -10px rgba(5, 15, 29, .5);
    transition: transform .5s var(--ressort);
  }
  .barre-mobile a {
    display: flex; align-items: center; justify-content: center; gap: .5rem; min-height: 3rem; border-radius: 999px;
    font-size: .875rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; text-decoration: none;
  }
  .barre-mobile-tel { color: var(--clair); border: 1px solid rgba(201, 160, 99, .6); }
  .barre-mobile-tel svg { width: 1.05rem; height: 1.05rem; fill: var(--or-300); }
  .barre-mobile-rdv { background: var(--or-500); color: var(--marine-900); }
  .anime .barre-mobile { transform: translateY(110%); }
  .anime .barre-mobile.montre { transform: none; }
  body:has(.menu-bascule:checked) .barre-mobile { transform: translateY(110%); }
}

/* ---------- Accueil : le mot de Simon ---------- */
.mot-simon { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 3.5rem; align-items: center; }
main img.mot-simon-photo { width: 100%; height: auto; aspect-ratio: 1; max-height: none; margin: 0; object-fit: cover; object-position: 50% 30%; border-radius: 22px; box-shadow: 0 30px 60px -30px rgba(8, 31, 56, .55); }
.mot-simon h2 { margin-top: 0; }
.mot-simon blockquote { margin: 1.2rem 0 1.4rem; padding: 0 0 0 1.4rem; border-left: 2px solid var(--or-500); font: italic 500 clamp(1.15rem, 1.7vw, 1.35rem)/1.55 var(--font-titre); color: var(--encre); }
.mot-simon blockquote p { max-width: 60ch; margin: 0 0 .9rem; }
.mot-simon-signature { margin: 0; font: italic 600 1.6rem/1.1 var(--font-titre); color: var(--marine-800); }
.mot-simon-signature span { display: block; margin-top: .35rem; font: 500 .75rem/1.3 var(--font-texte); letter-spacing: .16em; text-transform: uppercase; color: var(--or-700); }
@media (max-width: 800px) {
  .mot-simon { grid-template-columns: 1fr; gap: 1.8rem; }
  main img.mot-simon-photo { max-width: 220px; }
}

/* ---------- Accueil : combien ça coûte ? ---------- */
.transparence-liste { list-style: none; margin: 2rem 0 1.2rem; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem; }
.transparence-liste li {
  margin: 0; padding: 1.8rem 1.6rem; border-radius: 18px; background: var(--blanc); border: 1px solid var(--trait);
  transition: transform .5s var(--ressort), box-shadow .5s ease, border-color .4s ease;
}
.transparence-liste li:hover { transform: translateY(-4px); border-color: rgba(201, 160, 99, .55); box-shadow: 0 24px 48px -28px rgba(8, 31, 56, .45); }
.transparence-chiffre { display: block; font: 600 2.6rem/1 var(--font-titre); color: var(--or-700); margin-bottom: .8rem; }
.transparence-liste strong { display: block; font: 600 1.25rem/1.25 var(--font-titre); color: var(--marine-800); margin-bottom: .4rem; }
.transparence-liste li > span:last-child { display: block; color: var(--ardoise); font-size: .9375rem; line-height: 1.55; }
.transparence-note { font-size: .875rem; color: var(--ardoise); }
@media (max-width: 800px) { .transparence-liste { grid-template-columns: 1fr; } }

/* ---------- Page Contact ---------- */
.contact-cartes { list-style: none; margin: 2.2rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem; }
.contact-cartes li { margin: 0; }
.contact-carte {
  display: flex; flex-direction: column; gap: .35rem; height: 100%; padding: 1.8rem 1.6rem; border-radius: 18px; text-decoration: none;
  background: var(--blanc); border: 1px solid var(--trait); color: var(--ardoise);
  transition: transform .5s var(--ressort), box-shadow .5s ease, border-color .4s ease;
}
.contact-carte:hover { transform: translateY(-4px); border-color: rgba(201, 160, 99, .6); box-shadow: 0 26px 50px -28px rgba(8, 31, 56, .5); color: var(--ardoise); }
.contact-icone { display: grid; place-items: center; width: 3rem; height: 3rem; margin-bottom: .8rem; border-radius: 50%; background: rgba(201, 160, 99, .14); }
.contact-icone svg { width: 1.3rem; height: 1.3rem; fill: var(--or-700); }
.contact-icone svg.trait { fill: none; stroke: var(--or-700); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.contact-type { font-size: .75rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--or-700); }
.contact-carte strong { font: 600 1.45rem/1.2 var(--font-titre); color: var(--marine-800); overflow-wrap: anywhere; }
.contact-texte { font-size: .9375rem; line-height: 1.5; }
.contact-carte--principale { background: var(--marine-800); border-color: var(--marine-800); color: var(--argent); }
.contact-carte--principale:hover { color: var(--argent); }
.contact-carte--principale strong { color: var(--clair); }
.contact-carte--principale .contact-type { color: var(--or-500); }
.contact-carte--principale .contact-icone { background: rgba(201, 160, 99, .2); }
.contact-carte--principale .contact-icone svg.trait { stroke: var(--or-300); }
.contact-infos { display: grid; grid-template-columns: minmax(0, 260px) minmax(0, 1fr); gap: 3rem; align-items: center; }
.contact-infos h2 { margin-top: 0; }
.contact-infos address { font-style: normal; }
@media (max-width: 800px) {
  .contact-cartes, .contact-infos { grid-template-columns: 1fr; }
  .contact-infos img.mot-simon-photo { max-width: 200px; }
}

/* ---------- En-tête mobile plus compact ---------- */
@media (max-width: 650px) {
  .masthead .wrap { padding-top: .7rem; padding-bottom: .7rem; }
  .brand { gap: .6rem; }
  .brand img, .masthead.defile .brand img { width: 40px; height: 40px; }
  .brand span { font-size: 1.15rem; }
  .brand small { font-size: .625rem; letter-spacing: .05em; line-height: 1.35; }
  .masthead.defile .brand small { display: none; }
  .menu-bouton { padding: .6rem .85rem; }
  .tel-entete-icone { width: 2.6rem; height: 2.6rem; }
}
.contact-intro .breadcrumbs { margin-bottom: 1.5rem; }

/* Lien vers la fiche Google */
.avis-lien { display: flex; flex-wrap: wrap; gap: .8rem 1.8rem; align-items: center; }
a.lien-google {
  display: inline-flex; align-items: center; gap: .5rem; padding: .6rem 1.1rem; border-radius: 999px; text-decoration: none; font-weight: 600; font-size: .9375rem;
  border: 1px solid rgba(201, 160, 99, .6); color: var(--or-300); transition: background .3s ease, color .3s ease, transform .4s var(--ressort);
}
a.lien-google::after { content: "↗"; font-size: .9em; }
a.lien-google:hover { background: var(--or-500); color: var(--marine-900); transform: translateY(-2px); }
.avis-google { margin: 2rem 0 0; }
.avis-google a.lien-google { color: var(--marine-800); border-color: var(--or-500); }
.avis-google a.lien-google:hover { color: var(--marine-900); }
.sr-externe { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
