/* ===========================================================
   HGI AVOCAT — Héloïse Gimbert · Immobilier & Médiation
   Charte : Céline Pous / Infini Graphisme.
   Beige & gris-nuit, accent vert sauge. Titres Marcellus,
   textes DM Sans. Élégant, sobre, professionnel.
   =========================================================== */

:root {
  --sand:      #f5f0ea;   /* beige principal (fond)      */
  --sand-2:    #efe8dd;   /* beige alt (sections)        */
  --paper:     #ffffff;
  --ink:       #1d2631;   /* gris-nuit (texte, sombre)   */
  --ink-2:     #2b3743;
  --ink-deep:  #141b23;   /* sections sombres / footer   */
  --muted:     #5f6b64;   /* texte secondaire (vert-gris)*/
  --line:      #e6ddd0;
  --line-soft: #eee7db;

  --green:       #7a9e8f; /* vert sauge principal        */
  --green-deep:  #527562; /* vert foncé (actions, liens) */
  --green-light: #c2d3ca; /* vert clair (fonds doux)     */

  --grad:       linear-gradient(120deg, #7a9e8f 0%, #527562 55%, #1d2631 100%);
  --grad-soft:  linear-gradient(120deg, #e7efe9 0%, #dfeae2 58%, #eee7db 100%);

  --shadow-sm:  0 2px 14px rgba(29, 38, 49, .05);
  --shadow-md:  0 16px 40px rgba(29, 38, 49, .10);
  --shadow-lg:  0 30px 70px rgba(29, 38, 49, .16);

  --radius:     16px;
  --radius-lg:  26px;
  --maxw:       1160px;

  --sans:       'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --display:    'Marcellus', Georgia, 'Times New Roman', serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
:target { scroll-margin-top: 100px; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--sand);
  line-height: 1.68;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 { font-family: var(--display); font-weight: 400; line-height: 1.16; letter-spacing: .002em; color: var(--ink); margin: 0 0 .5em; }
h1 { font-size: clamp(2.5rem, 6vw, 4.6rem); }
h2 { font-size: clamp(1.95rem, 4vw, 3rem); }
h3 { font-size: 1.32rem; letter-spacing: 0; }
p  { margin: 0 0 1em; }
a  { color: var(--green-deep); text-decoration: none; }
strong { font-weight: 600; }
img { max-width: 100%; display: block; }
::selection { background: var(--green); color: #fff; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 26px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .5em;
  font-size: .74rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase;
  color: var(--green-deep); margin-bottom: 1.1rem; font-family: var(--sans);
}
.eyebrow::before { content: ""; width: 26px; height: 1.5px; background: var(--green); display: inline-block; }

.section { padding: 112px 0; }
.section--sand2 { background: var(--sand-2); }
.section__head { max-width: 720px; margin-bottom: 60px; }
.section__head.center { margin: 0 auto 60px; text-align: center; }
.section__head.center .eyebrow { justify-content: center; }
.section__head p { color: var(--muted); font-size: 1.15rem; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55em;
  padding: .95em 1.9em; border-radius: 999px;
  font-weight: 600; font-size: .96rem; font-family: var(--sans);
  border: 1.5px solid transparent; cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s, color .2s, border-color .2s;
  white-space: nowrap;
}
.btn--primary { background: var(--green-deep); color: #fff; box-shadow: 0 10px 24px rgba(82,117,98,.28); }
.btn--primary:hover { transform: translateY(-2px); background: #446253; box-shadow: 0 16px 32px rgba(82,117,98,.34); }
.btn--dark { background: var(--ink); color: var(--sand); }
.btn--dark:hover { transform: translateY(-2px); background: #000; }
.btn--outline { background: transparent; color: var(--green-deep); border-color: var(--green-deep); }
.btn--outline:hover { background: var(--green-deep); color: #fff; }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--ink); }
.btn--light { background: var(--sand); color: var(--ink); }
.btn--light:hover { transform: translateY(-2px); }

/* ---------- En-tête ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(245,240,234,.85);
  backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--line-soft);
}
.site-header .wrap { max-width: 1260px; }
.nav { display: flex; align-items: center; justify-content: space-between; height: 80px; }
.brand { display: flex; align-items: center; gap: .72rem; font-family: var(--display); font-weight: 400; color: var(--ink); }
.brand__logo { width: 46px; height: 46px; border-radius: 50%; flex: none; display: block; }
.brand__txt { display: flex; flex-direction: column; line-height: 1; }
.brand__txt b { font-family: var(--display); font-weight: 400; font-size: 1.4rem; letter-spacing: .02em; }
.brand__txt b span { color: var(--green-deep); }
.brand__txt small { font-family: var(--sans); font-size: .58rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-top: 3px; }
.nav__links { display: flex; align-items: center; gap: 18px; list-style: none; margin: 0; padding: 0; }
.nav__links a { color: var(--ink); font-weight: 500; font-size: .9rem; position: relative; white-space: nowrap; }
.nav__links a:hover { color: var(--green-deep); }
.nav__links a.active { color: var(--green-deep); }
.nav__links a.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; background: var(--green-deep); border-radius: 2px; }
.nav__cta { display: flex; align-items: center; gap: 14px; }
.nav__toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav__toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; transition: .3s; }

/* ---------- Sous-menus déroulants ---------- */
.nav__links .has-sub { position: relative; }
.nav__links .caret { font-size: .7em; opacity: .6; margin-left: 2px; }
.subnav {
  position: absolute; top: calc(100% + 8px); left: 50%; transform: translateX(-50%) translateY(6px);
  margin: 0; padding: 8px; list-style: none; min-width: 232px;
  background: var(--paper); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-md);
  opacity: 0; visibility: hidden; transition: opacity .18s ease, transform .18s ease, visibility .18s; z-index: 200;
}
.has-sub:hover > .subnav, .has-sub:focus-within > .subnav { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.has-sub::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 12px; }
.subnav li { margin: 0; }
.subnav a { display: block; padding: 9px 13px; border-radius: 9px; font-size: .9rem; color: var(--ink); white-space: nowrap; }
.subnav a::after { display: none; }
.subnav a:hover { background: var(--sand); color: var(--green-deep); }
.has-sub--right > .subnav { left: auto; right: 0; transform: translateX(0) translateY(6px); }
.has-sub--right:hover > .subnav, .has-sub--right:focus-within > .subnav { transform: translateX(0) translateY(0); }
@media (max-width: 940px) {
  .subnav { position: static; transform: none; opacity: 1; visibility: visible; min-width: 0; background: transparent; border: 0; box-shadow: none; padding: 2px 0 6px 16px; }
  .subnav a { padding: 8px 0; }
  .nav__links .caret { display: none; }
  .has-sub::after { display: none; }
  .has-sub--right > .subnav { right: auto; }
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; }
.hero__inner { display: grid; grid-template-columns: 1.15fr .85fr; gap: 60px; align-items: center; padding: 92px 0 64px; }
.hero h1 { margin-bottom: .3em; }
.hero h1 em { font-style: normal; color: var(--green-deep); }
.hero__lead { font-size: 1.22rem; color: var(--muted); max-width: 31em; margin-top: 1.1em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero__media { position: relative; }
.hero__photo { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); aspect-ratio: 4/5; object-fit: cover; width: 100%; }
.hero__stamp {
  position: absolute; left: -22px; bottom: 34px;
  background: var(--paper); border-radius: 16px; padding: 15px 20px;
  box-shadow: var(--shadow-md); display: flex; align-items: center; gap: 13px; max-width: 270px;
}
.hero__stamp .dot { width: 44px; height: 44px; border-radius: 12px; background: var(--grad); display: grid; place-items: center; color: #fff; font-size: 1.2rem; flex: none; }
.hero__stamp strong { display: block; font-family: var(--display); font-weight: 400; font-size: 1rem; color: var(--ink); line-height: 1.2; }
.hero__stamp span { font-size: .8rem; color: var(--muted); }

/* ---------- Chiffres / repères ---------- */
.stats { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 40px 26px; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat__num { font-family: var(--display); font-weight: 400; font-size: 2.9rem; line-height: 1; letter-spacing: -.01em; color: var(--ink); }
.stat__num span { color: var(--green-deep); }
.stat__lbl { color: var(--muted); font-size: .92rem; margin-top: 10px; }

/* ---------- Valeurs ---------- */
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.value { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 34px; transition: transform .2s, box-shadow .2s; }
.value:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.value__ic { width: 52px; height: 52px; border-radius: 14px; background: var(--grad-soft); display: grid; place-items: center; font-size: 1.5rem; margin-bottom: 18px; }
.value h3 { margin-bottom: 8px; }
.value p { color: var(--muted); margin: 0; font-size: .98rem; }

/* ---------- Split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split__media img { border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
.list-check { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 15px; }
.list-check li { display: block; position: relative; padding-left: 35px; color: var(--ink-2); }
.list-check li::before { content: "✓"; color: #fff; background: var(--green); width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: .72rem; position: absolute; left: 0; top: 4px; }
.cards-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 42px; }
.card-aud { background: var(--sand-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; }
.card-aud h3 { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.card-aud p { color: var(--muted); font-size: .95rem; margin: 0; }

/* ---------- Domaines (piliers immobilier / médiation) ---------- */
.pillars { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.pillar { border-radius: var(--radius-lg); padding: 46px; position: relative; overflow: hidden; }
.pillar--immo { background: var(--green-light); }
.pillar--med  { background: var(--sand-2); border: 1px solid var(--line); }
.pillar h3 { font-size: 1.9rem; margin-bottom: 12px; }
.pillar p { color: var(--ink-2); margin-bottom: 20px; }
.pillar ul { list-style: none; padding: 0; margin: 0 0 26px; display: grid; gap: 10px; }
.pillar ul li { padding-left: 22px; position: relative; font-size: .96rem; color: var(--ink-2); }
.pillar ul li::before { content: "→"; position: absolute; left: 0; color: var(--green-deep); }

/* ---------- Bandeaux sombres / secteurs ---------- */
.darkband { position: relative; overflow: hidden; background: var(--ink-deep); color: var(--sand); }
.darkband::before { content:""; position:absolute; inset:0; background: radial-gradient(circle at 12% 15%, rgba(122,158,143,.22), transparent 44%), radial-gradient(circle at 90% 88%, rgba(82,117,98,.20), transparent 46%); }
.darkband .wrap { position: relative; }
.darkband h2, .darkband h3 { color: var(--sand); }
.darkband .section__head p { color: rgba(245,240,234,.74); }
.darkband .eyebrow { color: var(--green-light); }
.darkband .eyebrow::before { background: var(--green); }
.sectors { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.sector { background: rgba(245,240,234,.05); border: 1px solid rgba(245,240,234,.14); border-radius: var(--radius); padding: 30px; transition: transform .2s, background .2s; }
.sector:hover { transform: translateY(-4px); background: rgba(245,240,234,.09); }
.sector__ic { font-size: 1.7rem; margin-bottom: 14px; }
.sector h3 { font-size: 1.25rem; margin-bottom: 8px; }
.sector p { color: rgba(245,240,234,.7); font-size: .93rem; margin: 0; }

/* ---------- Formations ---------- */
.trainings { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.training { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 34px; position: relative; overflow: hidden; transition: transform .2s, box-shadow .2s; }
.training:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.training::after { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--grad); }
.training__tag { font-size: .72rem; font-weight: 600; color: var(--green-deep); letter-spacing: .1em; text-transform: uppercase; font-family: var(--sans); }
.training h3 { margin: 12px 0 10px; font-size: 1.35rem; }
.training p { color: var(--muted); font-size: .95rem; }
.training ul { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 9px; }
.training ul li { font-size: .92rem; color: var(--ink-2); padding-left: 22px; position: relative; }
.training ul li::before { content: "→"; position: absolute; left: 0; color: var(--green-deep); }
.formats { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 48px; }
.format-chip { background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: .62em 1.35em; font-size: .9rem; font-weight: 500; }

/* ---------- Boutique ---------- */
.shop-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.product { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 32px; display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s; position: relative; }
.product:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.product__ic { width: 54px; height: 54px; border-radius: 14px; background: var(--grad-soft); display: grid; place-items: center; font-size: 1.5rem; margin-bottom: 18px; }
.product__tag { position: absolute; top: 24px; right: 24px; font-size: .66rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--green-deep); background: var(--green-light); padding: .35em .8em; border-radius: 999px; }
.product h3 { font-size: 1.3rem; margin-bottom: 8px; }
.product__desc { color: var(--muted); font-size: .94rem; flex: 1; }
.product__meta { list-style: none; padding: 0; margin: 16px 0 20px; display: grid; gap: 8px; }
.product__meta li { font-size: .88rem; color: var(--ink-2); padding-left: 22px; position: relative; }
.product__meta li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 700; }
.product__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 18px; border-top: 1px solid var(--line-soft); }
.product__price { font-family: var(--display); font-size: 1.7rem; color: var(--ink); line-height: 1; }
.product__price small { display: block; font-family: var(--sans); font-size: .68rem; color: var(--muted); font-weight: 500; margin-top: 3px; }
.product .btn { padding: .7em 1.3em; font-size: .9rem; }
.shop-note { max-width: 760px; margin: 44px auto 0; text-align: center; color: var(--muted); font-size: .92rem; background: var(--sand-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 28px; }

/* ---------- Simulateurs ---------- */
.sim-tabs { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-bottom: 40px; }
.sim-tab { background: var(--paper); border: 1.5px solid var(--line); border-radius: 999px; padding: .7em 1.5em; font-family: var(--sans); font-weight: 600; font-size: .94rem; color: var(--ink); cursor: pointer; transition: .2s; }
.sim-tab:hover { border-color: var(--green); }
.sim-tab.active { background: var(--green-deep); color: #fff; border-color: var(--green-deep); }
.sim-panel { display: none; }
.sim-panel.active { display: block; }
.sim-card { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 42px; box-shadow: var(--shadow-sm); }
.sim-form { display: grid; gap: 20px; }
.sim-field label { display: block; font-size: .86rem; font-weight: 600; color: var(--ink); margin-bottom: 7px; }
.sim-field .hint { font-weight: 400; color: var(--muted); font-size: .8rem; }
.sim-field input, .sim-field select {
  width: 100%; padding: .85em 1.05em; border: 1px solid var(--line); border-radius: 12px;
  font-family: inherit; font-size: 1rem; background: var(--sand); color: var(--ink);
}
.sim-field input:focus, .sim-field select:focus { outline: 2px solid var(--green); background: var(--paper); }
.sim-result { background: var(--ink-deep); color: var(--sand); border-radius: var(--radius-lg); padding: 34px; position: relative; overflow: hidden; }
.sim-result::before { content:""; position:absolute; inset:0; background: radial-gradient(circle at 85% 10%, rgba(122,158,143,.25), transparent 46%); }
.sim-result > * { position: relative; }
.sim-result__lbl { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--green-light); font-weight: 600; }
.sim-result__big { font-family: var(--display); font-size: 3rem; line-height: 1.05; margin: 8px 0 4px; color: #fff; }
.sim-result__sub { color: rgba(245,240,234,.7); font-size: .9rem; margin-bottom: 22px; }
.sim-break { list-style: none; padding: 18px 0 0; margin: 18px 0 0; border-top: 1px solid rgba(245,240,234,.16); display: grid; gap: 10px; }
.sim-break li { display: flex; justify-content: space-between; gap: 12px; font-size: .9rem; color: rgba(245,240,234,.82); }
.sim-break li span:last-child { font-weight: 600; color: #fff; }
.sim-break li.total { border-top: 1px solid rgba(245,240,234,.16); padding-top: 12px; margin-top: 4px; font-size: 1rem; }
.sim-range { color: rgba(245,240,234,.7); font-size: .82rem; margin-top: 6px; }
.sim-disclaimer { font-size: .82rem; color: var(--muted); max-width: 820px; margin: 26px auto 0; text-align: center; font-style: italic; }

/* ---------- CTA / bandeau rendez-vous ---------- */
.cta-band { background: var(--ink-deep); color: var(--sand); border-radius: var(--radius-lg); padding: 58px; text-align: center; position: relative; overflow: hidden; }
.cta-band::before { content:""; position:absolute; inset:0; background: radial-gradient(circle at 15% 120%, rgba(122,158,143,.30), transparent 44%), radial-gradient(circle at 88% -10%, rgba(82,117,98,.22), transparent 42%); }
.cta-band > * { position: relative; }
.cta-band h2 { color: var(--sand); }
.cta-band p { color: rgba(245,240,234,.82); max-width: 34em; margin: 0 auto 28px; }
.cta-band .eyebrow { justify-content: center; color: var(--green-light); }
.cta-band .eyebrow::before { background: var(--green); }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.contact__methods { display: grid; gap: 18px; margin-top: 30px; }
.contact__method { display: flex; align-items: center; gap: 15px; }
.contact__method .ic { width: 48px; height: 48px; border-radius: 13px; background: var(--grad-soft); display: grid; place-items: center; font-size: 1.25rem; flex: none; }
.contact__method a { color: var(--ink); font-weight: 600; }
.contact__method span { display: block; font-size: .82rem; color: var(--muted); font-weight: 400; }
.cform { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 38px; box-shadow: var(--shadow-sm); display: grid; gap: 16px; }
.cform label { font-size: .82rem; font-weight: 600; color: var(--ink); display: block; margin-bottom: 6px; }
.cform input, .cform textarea, .cform select { width: 100%; padding: .85em 1.05em; border: 1px solid var(--line); border-radius: 12px; font-family: inherit; font-size: .96rem; background: var(--sand); color: var(--ink); }
.cform input:focus, .cform textarea:focus, .cform select:focus { outline: 2px solid var(--green); background: var(--paper); }
.cform textarea { min-height: 120px; resize: vertical; }
.cform .btn { justify-content: center; }
.form-success { margin-top: 6px; font-weight: 600; display: none; color: var(--green-deep); }
.form-success.show { display: block; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink-deep); color: rgba(245,240,234,.66); padding: 66px 0 32px; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 44px; margin-bottom: 44px; }
.site-footer h4 { color: var(--sand); font-size: .95rem; margin: 0 0 15px; font-family: var(--display); font-weight: 400; letter-spacing: .03em; }
.site-footer a { color: rgba(245,240,234,.66); display: block; padding: 4px 0; font-size: .93rem; }
.site-footer a:hover { color: var(--sand); }
.footer__brand { display: flex; align-items: center; gap: .6rem; color: var(--sand); font-family: var(--display); font-weight: 400; font-size: 1.35rem; margin-bottom: 14px; letter-spacing: .02em; }
.footer__brand img { width: 40px; height: 40px; border-radius: 50%; }
.footer__socials { display: flex; gap: 12px; margin-top: 18px; }
.footer__socials a { width: 42px; height: 42px; border-radius: 12px; background: rgba(245,240,234,.08); display: grid; place-items: center; padding: 0; font-weight: 700; }
.footer__socials a:hover { background: var(--green-deep); color: var(--sand); }
.footer__bottom { border-top: 1px solid rgba(245,240,234,.14); padding-top: 24px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: .82rem; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- En-tête de page (pages internes) ---------- */
.page-hero { padding: 76px 0 20px; }
.page-hero__inner { max-width: 800px; }
.page-hero h1 { font-size: clamp(2.4rem, 5.4vw, 4rem); margin-bottom: .25em; }
.page-hero p { font-size: 1.2rem; color: var(--muted); max-width: 36em; }
.breadcrumb { font-size: .82rem; color: var(--muted); margin-bottom: 20px; letter-spacing: .02em; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--green-deep); }

/* ---------- Grille d'exemples / expertise ---------- */
.examples { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.example { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; transition: transform .2s, box-shadow .2s; position: relative; }
.example:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.example__ic { width: 50px; height: 50px; border-radius: 13px; background: var(--grad-soft); display: grid; place-items: center; font-size: 1.4rem; margin-bottom: 16px; }
.example h3 { font-size: 1.18rem; margin-bottom: 8px; }
.example p { color: var(--muted); font-size: .94rem; margin: 0; }
a.example { display: block; color: inherit; }
.example__more { display: inline-block; margin-top: 12px; color: var(--green-deep); font-weight: 600; font-size: .9rem; }
a.example:hover .example__more { text-decoration: underline; }

/* ---------- Étapes du processus ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.step { position: relative; padding-top: 12px; }
.step__n { font-family: var(--display); font-weight: 400; font-size: 2.4rem; letter-spacing: -.01em; color: var(--green-deep); line-height: 1; }
.step h3 { font-size: 1.1rem; margin: 12px 0 8px; }
.step p { color: var(--muted); font-size: .92rem; margin: 0; }

/* ---------- Fiches formation détaillées ---------- */
.f-list { display: grid; gap: 26px; }
.f-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 40px; display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: start; transition: box-shadow .2s; }
.f-card:hover { box-shadow: var(--shadow-md); }
.f-card__num { font-family: var(--display); font-size: 1rem; color: var(--green-deep); letter-spacing: .1em; }
.f-card h3 { font-size: 1.7rem; margin: 6px 0 12px; }
.f-card__desc { color: var(--muted); font-size: 1rem; }
.f-card__obj { margin-top: 20px; }
.f-card__obj h4 { font-family: var(--display); font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink); margin: 0 0 12px; font-weight: 400; }
.f-card__obj ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.f-card__obj li { font-size: .94rem; color: var(--ink-2); padding-left: 24px; position: relative; }
.f-card__obj li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 700; }
.f-card__side { background: var(--sand-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.f-meta { display: grid; gap: 14px; margin-bottom: 22px; }
.f-meta__row { display: flex; align-items: flex-start; gap: 12px; }
.f-meta__row .ic { font-size: 1.15rem; flex: none; }
.f-meta__row strong { display: block; font-size: .9rem; color: var(--ink); }
.f-meta__row span { font-size: .86rem; color: var(--muted); }
.f-card__side .btn { width: 100%; justify-content: center; }

/* ---------- Ressources / articles ---------- */
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.post { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s; }
.post:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.post__cover { aspect-ratio: 16/10; background: var(--grad-soft); display: grid; place-items: center; font-size: 2.4rem; }
.post__body { padding: 28px; display: flex; flex-direction: column; flex: 1; }
.post__cat { font-size: .72rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--green-deep); }
.post h3 { font-size: 1.28rem; margin: 10px 0 10px; }
.post p { color: var(--muted); font-size: .93rem; flex: 1; margin-bottom: 16px; }
.post__more { color: var(--green-deep); font-weight: 600; font-size: .9rem; }

/* ---------- Carte / cabinet ---------- */
.map-embed { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); border: 1px solid var(--line); line-height: 0; }
.map-embed iframe { width: 100%; height: 420px; border: 0; display: block; filter: grayscale(.15) contrast(1.02); }
.address-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow-sm); }
.address-card h3 { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.address-card address { font-style: normal; color: var(--ink-2); font-size: 1.05rem; line-height: 1.7; }
.zone-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.badge { background: var(--sand-2); border: 1px solid var(--line); border-radius: 999px; padding: .5em 1.1em; font-size: .86rem; font-weight: 500; }

/* ---------- Article (gabarit) ---------- */
main .wrap.prose, article .prose { max-width: 760px; }
.fil-ariane { font-size: .82rem; color: var(--muted); margin-bottom: 22px; letter-spacing: .02em; }
.fil-ariane a { color: var(--muted); }
.fil-ariane a:hover { color: var(--green-deep); }
.art-header { margin-bottom: 34px; }
.art-header h1 { margin-bottom: .35em; }
.chapo { font-size: 1.2rem; color: var(--muted); line-height: 1.6; margin: 0 0 1em; }
.art-meta { font-size: .9rem; color: var(--muted); margin: 0; }
.art-meta a { color: var(--green-deep); font-weight: 600; }
article h2 { margin-top: 1.6em; }
article h3 { margin-top: 1.3em; font-size: 1.18rem; }
a.cta { display: inline-flex; align-items: center; gap: .55em; padding: .95em 1.9em; border-radius: 999px; font-weight: 600; font-size: .96rem; background: var(--green-deep); color: #fff; box-shadow: 0 10px 24px rgba(82,117,98,.28); transition: transform .2s, background .2s; }
a.cta:hover { transform: translateY(-2px); background: #446253; }
.encadre-auteur { background: var(--sand-2); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px 32px; margin-top: 46px; display: flex; gap: 20px; align-items: flex-start; }
.encadre-auteur img { width: 76px; height: 76px; border-radius: 50%; object-fit: cover; flex: none; }
.encadre-auteur h2 { font-size: 1.2rem; margin: 0 0 8px; }
.encadre-auteur p { color: var(--muted); font-size: .95rem; margin: 0; }
.encadre-auteur a { color: var(--green-deep); font-weight: 600; }

/* ---------- Liste de prestations (page pilier) ---------- */
.svc-list { max-width: 880px; }
.svc-item { padding: 30px 0; border-top: 1px solid var(--line); }
.svc-item:first-child { border-top: 0; padding-top: 0; }
.svc-item h3 { font-size: 1.4rem; margin-bottom: 12px; }
.svc-item p { color: var(--ink-2); margin: 0 0 .85em; }
.svc-item p:last-child { margin-bottom: 0; }
.prose { max-width: 760px; }
.prose p { color: var(--ink-2); }
.contact-inline { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; margin: 22px 0 0; font-weight: 600; }
.contact-inline a { color: var(--ink); }

/* ---------- FAQ ---------- */
.faq-list { max-width: 820px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  list-style: none; cursor: pointer; padding: 26px 44px 26px 0; position: relative;
  font-family: var(--display); font-weight: 400; font-size: 1.22rem; color: var(--ink); transition: color .2s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--green-deep); }
.faq-item summary::after { content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%); font-family: var(--sans); font-weight: 400; font-size: 1.7rem; color: var(--green-deep); transition: transform .25s; }
.faq-item[open] summary::after { content: "–"; }
.faq-item__body { padding: 0 44px 28px 0; color: var(--muted); font-size: 1.02rem; }
.faq-item__body p { margin: 0 0 .8em; }

/* ---------- Mentions légales ---------- */
.legal { max-width: 800px; margin: 0 auto; }
.legal h2 { font-size: 1.5rem; margin: 44px 0 14px; }
.legal p, .legal li { color: var(--ink-2); font-size: .98rem; }

/* ---------- Bandeau d'atouts (USP) ---------- */
.usps { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.usps__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.usp { display: flex; gap: 14px; align-items: flex-start; padding: 34px 26px; border-left: 1px solid var(--line); }
.usp:first-child { border-left: 0; padding-left: 0; }
.usp .ic { font-size: 1.5rem; flex: none; line-height: 1.2; }
.usp strong { display: block; font-family: var(--display); font-size: 1.06rem; color: var(--ink); margin-bottom: 3px; letter-spacing: .01em; }
.usp span { color: var(--muted); font-size: .88rem; line-height: 1.45; }

/* ---------- Témoignages ---------- */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.quote { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 34px; display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s; }
.quote:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.quote__stars { color: var(--green); letter-spacing: 3px; margin-bottom: 14px; font-size: .85rem; }
.quote p { font-family: var(--display); font-size: 1.14rem; line-height: 1.5; color: var(--ink-2); flex: 1; margin: 0 0 22px; }
.quote__author { display: flex; align-items: center; gap: 13px; }
.quote__avatar { width: 46px; height: 46px; border-radius: 50%; background: var(--grad-soft); display: grid; place-items: center; font-family: var(--display); color: var(--green-deep); font-size: 1.05rem; flex: none; }
.quote__author strong { display: block; font-size: .92rem; color: var(--ink); }
.quote__author span { font-size: .82rem; color: var(--muted); }

/* ---------- Responsive ---------- */
@media (max-width: 940px) {
  .usps__grid, .quotes { grid-template-columns: 1fr 1fr; }
  .usp { border-left: 0; }
  .hero__inner, .split, .contact, .sim-card { grid-template-columns: 1fr; }
  .hero__media { order: -1; max-width: 360px; margin: 0 auto; }
  .values, .trainings, .cards-2, .pillars, .shop-grid, .sectors, .posts { grid-template-columns: 1fr; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .stat { border-left: 0; border-top: 1px solid var(--line); padding: 30px 0; }
  .examples, .steps { grid-template-columns: 1fr 1fr; }
  .f-card { grid-template-columns: 1fr; gap: 26px; padding: 30px; }
  .footer__grid { grid-template-columns: 1fr; }
  .nav__links { position: fixed; inset: 80px 0 auto 0; background: var(--sand); flex-direction: column; padding: 20px 26px; gap: 4px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-md); transform: translateY(-140%); transition: transform .3s; }
  .nav__links.open { transform: translateY(0); }
  .nav__links a { padding: 12px 0; width: 100%; }
  .nav__toggle { display: block; }
  .nav__cta .btn--ghost, .nav__cta .btn--outline { display: none; }
  .section { padding: 80px 0; }
  .cta-band { padding: 44px 26px; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .trainings, .stats__grid, .examples, .steps, .posts, .usps__grid, .quotes { grid-template-columns: 1fr; }
  .usp { padding: 22px 0; border-top: 1px solid var(--line); }
  .usp:first-child { border-top: 0; }
  .stat { padding: 24px 0; }
  .hero__stamp { display: none; }
  .sim-card { padding: 28px 22px; }
  .brand__txt small { display: none; }
}

/* --- Prise de rendez-vous : deux formules distinctes --- */
.rdv-options { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; max-width: 900px; margin: 26px auto 0; }
.rdv-card { position: relative; background: var(--sand); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 30px 28px; display: flex; flex-direction: column; }
.rdv-card--feature { background: #fff; border-color: var(--green); box-shadow: var(--shadow-md); }
.rdv-card__tag { display: inline-block; align-self: flex-start; font-size: .74rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--green-deep); background: var(--green-light); border-radius: 999px; padding: 5px 12px; margin-bottom: 14px; }
.rdv-card h3 { margin: 0 0 8px; }
.rdv-card p { color: var(--ink-2); font-size: .96rem; flex: 1; }
.rdv-card .btn { margin-top: 18px; width: 100%; justify-content: center; }
.rdv-embed { margin-top: 30px; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); background: #fff; }
.rdv-embed iframe { display: block; width: 100%; border: 0; min-height: 700px; }
@media (max-width: 640px) { .rdv-options { grid-template-columns: 1fr; } }

/* --- Modale de choix de rendez-vous --- */
.rdv-modal { position: fixed; inset: 0; z-index: 1000; display: none; align-items: center; justify-content: center; padding: 20px; }
.rdv-modal.open { display: flex; }
.rdv-modal__overlay { position: absolute; inset: 0; background: rgba(29,38,49,.55); }
.rdv-modal__box { position: relative; background: var(--sand); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); max-width: 620px; width: 100%; padding: 34px 32px; }
.rdv-modal__close { position: absolute; top: 12px; right: 16px; background: none; border: 0; font-size: 1.9rem; line-height: 1; color: var(--ink-2); cursor: pointer; }
.rdv-modal__box h3 { margin: 0 6px 6px 0; }
.rdv-modal__sub { color: var(--ink-2); margin: 0 0 20px; font-size: .96rem; }
.rdv-modal__options { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.rdv-modal__opt { display: flex; flex-direction: column; gap: 5px; text-decoration: none; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 20px; transition: border-color .2s, transform .2s, box-shadow .2s; }
.rdv-modal__opt:hover { border-color: var(--green); transform: translateY(-2px); box-shadow: var(--shadow); }
.rdv-modal__opt--feature { border-color: var(--green); }
.rdv-modal__opt strong { font-family: var(--display); font-size: 1.12rem; }
.rdv-modal__opt > span:last-child { color: var(--ink-2); font-size: .9rem; }
.rdv-modal__tag { align-self: flex-start; font-size: .7rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--green-deep); background: var(--green-light); border-radius: 999px; padding: 4px 10px; }
@media (max-width: 560px) { .rdv-modal__options { grid-template-columns: 1fr; } }
