/* JUNO AVOCAT·ES — styles (mobile first) */

:root {
  --ink: #161616;
  --muted: #5b5a57;
  --blue: #1527ac;
  --blue-deep: #0e1b7e;
  --pink: #f6c1b4;
  --pink-soft: #fbe3dc;
  --gold: #ddae35;
  --paper: #fbf8f3;
  --line: #ddd6cc;
  --orange: #c74624;
  --hh: 64px;
  --gutter: 20px;
  --radius: 22px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --display: Manrope, system-ui, sans-serif;
  --text: 'DM Sans', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--hh); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: 400 1rem/1.7 var(--text);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 4px; }
h1, h2, h3, p { margin-top: 0; }
h2 { font: 800 clamp(2rem, 8.5vw, 4.75rem)/1.05 var(--display); letter-spacing: -.045em; margin-bottom: 28px; text-wrap: balance; }
ul { padding-left: 1.15em; }
li + li { margin-top: 6px; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.section { padding: 72px var(--gutter); }
.section-num { font-size: .8125rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--blue); margin-bottom: 18px; }

/* ---------- Boutons ---------- */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 14px 26px;
  border: 0; border-radius: 999px; cursor: pointer;
  background: var(--blue); color: #fff;
  font-weight: 700; font-size: 1rem; text-decoration: none;
  transition: transform .3s var(--ease), background .3s, box-shadow .3s;
}
.button:hover { background: var(--blue-deep); transform: translateY(-2px); box-shadow: 0 10px 24px -10px rgba(21, 39, 172, .55); }
.button:active { transform: scale(.97); }
.button svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.button-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.button-ghost:hover { background: var(--ink); color: #fff; box-shadow: none; }
.button-light { background: #fff; color: var(--blue); }
.button-light:hover { background: var(--pink); }

/* ---------- En-tête ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  height: var(--hh);
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 0 var(--gutter);
  padding-top: env(safe-area-inset-top);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.site-header::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: rgba(251, 248, 243, .72);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  backdrop-filter: saturate(180%) blur(18px);
  transition: background .3s;
}
.site-header.scrolled { border-color: rgba(0, 0, 0, .08); }
.site-header.scrolled::before { background: rgba(251, 248, 243, .86); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; position: relative; z-index: 2; }
.brand img { width: 84px; }
.brand span { display: none; font-size: .8125rem; font-weight: 700; line-height: 1.3; }

.menu-toggle {
  position: relative; z-index: 2;
  width: 48px; height: 48px; margin-right: -10px;
  border: 0; background: none; cursor: pointer;
}
.menu-toggle i { position: absolute; left: 13px; width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .4s var(--ease); }
.menu-toggle i:first-of-type { top: 19px; }
.menu-toggle i:last-of-type { top: 27px; }
.menu-open .menu-toggle i:first-of-type { transform: translateY(4px) rotate(45deg); }
.menu-open .menu-toggle i:last-of-type { transform: translateY(-4px) rotate(-45deg); }

/* Menu mobile plein écran */
.main-nav {
  position: fixed; inset: 0; z-index: 1;
  display: flex; flex-direction: column; justify-content: center; gap: 4px;
  padding: calc(var(--hh) + 20px) 28px 40px;
  background: var(--paper);
  visibility: hidden; opacity: 0;
  transition: opacity .4s var(--ease), visibility 0s .4s;
}
.main-nav a {
  font: 800 clamp(1.9rem, 9vw, 2.6rem)/1.25 var(--display); letter-spacing: -.04em;
  text-decoration: none; padding: 8px 0;
  opacity: 0; transform: translateY(16px);
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}
.menu-open .main-nav { visibility: visible; opacity: 1; transition: opacity .4s var(--ease); }
.menu-open .main-nav a { opacity: 1; transform: none; }
.menu-open .main-nav a:nth-child(2) { transition-delay: .05s; }
.menu-open .main-nav a:nth-child(3) { transition-delay: .1s; }
.menu-open .main-nav a:nth-child(4) { transition-delay: .15s; }
.menu-open .main-nav a:nth-child(5) { transition-delay: .2s; }
.menu-open { overflow: hidden; }
.menu-open .site-header::before { background: var(--paper); }

/* ---------- Accueil ---------- */
.hero .stage {
  min-height: 100svh;
  display: grid; place-items: center;
  padding: calc(var(--hh) + 24px) var(--gutter) 48px;
  position: relative; overflow: hidden;
}
.hero-logo { display: block; width: min(86%, 440px); height: auto; overflow: visible; }
.hero-logo .lp, .hero-logo .li { transform-box: fill-box; transform-origin: center; }
.hero-logo .lp-sun .li { transform-origin: 50% 100%; }
.hero-copy { max-width: 1240px; text-align: center; }
.eyebrow { font-size: .8125rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--blue); margin-bottom: 18px; }
.hero h1 { font: 800 clamp(2.4rem, min(11vw, 10.5vh), 7rem)/1 var(--display); letter-spacing: -.055em; color: var(--ink); margin-bottom: 24px; }
.hero h1 span { display: block; }
.hero h1 .l2 { color: var(--blue); }
.lead { font-size: 1.0625rem; max-width: 560px; margin: 0 auto 28px; color: #2b2b2b; }
.hero-actions { display: flex; flex-direction: column; gap: 12px; align-items: stretch; max-width: 340px; margin: 0 auto; }
.scroll-hint { display: none; }

/* Sans animation : logo puis texte, l'un sous l'autre */
html:not(.motion) .hero .stage { grid-template-rows: auto auto; gap: 24px; }

.hero-meta {
  display: flex; flex-direction: column; gap: 6px;
  padding: 22px var(--gutter);
  border-block: 1px solid var(--line);
  font-size: .875rem; font-weight: 500;
}

/* ---------- Manifeste (le cabinet) ---------- */
.manifesto { background: var(--pink); }
.manifesto .stage { padding: 80px var(--gutter); display: flex; flex-direction: column; justify-content: center; }
.manifesto .section-num { color: var(--ink); }
.words { font: 800 clamp(1.6rem, min(7.4vw, 6.4vh), 4.4rem)/1.18 var(--display); letter-spacing: -.04em; max-width: 1150px; margin: 0; }
.words b { color: var(--blue); font-weight: 800; }

.cabinet { background: var(--pink-soft); }
.intro-grid { display: grid; gap: 8px; }
.intro-grid p { max-width: 720px; }
.approach { margin-top: 40px; }
.approach-title { font-weight: 700; margin-bottom: 8px; }
.approach-list { list-style: none; padding: 0; margin: 0; }
.approach-list li {
  display: flex; gap: 18px; align-items: baseline;
  padding: 18px 0; margin: 0; border-top: 1px solid rgba(22, 22, 22, .15);
  font: 700 1.25rem/1.35 var(--display); letter-spacing: -.02em;
}
.approach-list span { font: 700 .8125rem var(--text); color: var(--blue); flex: none; }
.commitment { margin-top: 36px; border-top: 1px solid rgba(22, 22, 22, .25); }
.commitment summary { display: flex; justify-content: space-between; align-items: center; padding: 20px 0; font: 700 1.125rem var(--display); cursor: pointer; list-style: none; }
.commitment summary::-webkit-details-marker { display: none; }
.commitment summary::after { content: '+'; font-size: 1.6rem; color: var(--blue); transition: transform .4s var(--ease); }
.commitment[open] summary::after { transform: rotate(45deg); }
.commitment-body { max-width: 760px; padding-bottom: 8px; }

/* ---------- Domaines : cartes empilées ---------- */
.stack { display: grid; gap: 16px; margin-top: 8px; }
.card {
  position: sticky; top: calc(var(--hh) + 12px);
  padding: 28px 22px 30px;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 1px 0 rgba(0, 0, 0, .04), 0 18px 40px -24px rgba(0, 0, 0, .25);
  transform-origin: 50% 0;
  transform: scale(calc(1 - var(--s, 0) * .06));
  filter: brightness(calc(1 - var(--s, 0) * .12));
  will-change: transform;
}
.card-2 { background: var(--pink); }
.card-3 { background: var(--blue); color: #fff; }
.card-4 { background: var(--gold); }
.card-5 { background: #e3e6fb; }
.card-5 .card-num { color: var(--blue); opacity: 1; }
.card-6 { background: #fff; box-shadow: inset 0 0 0 2px var(--gold), 0 18px 40px -24px rgba(0, 0, 0, .25); }
.card-6 .card-num { color: #9a7412; opacity: 1; }
.card-7 { background: var(--ink); color: #fff; }
.card-7 .card-num { color: var(--gold); opacity: 1; }
.card li { font-size: .9375rem; line-height: 1.5; }
@media (max-width: 699px) {
  /* cartes compactes : chacune tient dans l'écran, même sur un petit téléphone */
  .card { padding: 22px 18px 24px; }
  .card-num { margin-bottom: 8px; }
  .card h3 { margin-bottom: 10px; }
  .card p { font-size: .9375rem; line-height: 1.55; margin-bottom: 10px; }
  .card li + li { margin-top: 5px; }
}
.card-num { font: 800 .875rem var(--display); letter-spacing: .1em; opacity: .65; margin-bottom: 14px; }
.card h3 { font: 800 clamp(1.6rem, 6.6vw, 3rem)/1.08 var(--display); letter-spacing: -.04em; margin-bottom: 16px; }
.card p { max-width: 640px; }
.card ul { margin: 0; }

/* ---------- Équipe ---------- */
.team-scene { background: var(--ink); color: #fff; }
.team-scene .stage {
  display: flex; align-items: center; justify-content: center;
  padding: calc(var(--hh) + 16px) var(--gutter) 28px; overflow: hidden;
}
.team-photo { margin: 0; width: 100%; display: flex; flex-direction: column; align-items: center; gap: 18px; }
/* cadre au format exact de l'image : toute la photo est visible et tient dans l'écran */
.frame {
  position: relative; width: min(100%, calc(100svh - var(--hh) - 170px)); aspect-ratio: 1;
  border-radius: 18px; overflow: hidden;
}
.frame picture, .frame img { display: block; width: 100%; height: 100%; object-fit: cover; }
.frame-cloud { display: none; }
.team-photo figcaption { display: grid; gap: 2px; text-align: center; }
.team-photo figcaption .section-num { color: var(--pink); margin-bottom: 4px; }
.team-photo figcaption strong { font: 800 clamp(1.5rem, min(6.5vw, 4.6vh), 3rem)/1.05 var(--display); letter-spacing: -.04em; }

/* « Qui est qui » : étiquettes et flèches dessinées */
.name-tag {
  position: absolute; top: 3%; z-index: 2;
  padding: 6px 13px; border-radius: 999px; background: #fff; color: var(--ink);
  font: 700 .8125rem/1.2 var(--text); white-space: nowrap;
  box-shadow: 0 6px 18px -6px rgba(0, 0, 0, .5);
  opacity: 0; transform: translateY(calc(var(--ty, 0%) - 8px)) scale(.9);
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}
.tag-judith { left: 3%; }
.tag-jade { right: 3%; transition-delay: .25s; }
.who { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .6)); }
.who path { fill: none; stroke: #fff; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.who-wide path { stroke-width: 1.5; }
.who .arrow { transition: stroke-dashoffset .8s var(--ease) .3s; }
.who .head { transition: stroke-dashoffset .3s ease-out 1.05s; }
.who path:nth-of-type(n+3) { transition-delay: .55s; }
.who .head:nth-of-type(4) { transition-delay: 1.3s; }
.who-wide { display: none; }
.names .name-tag { opacity: 1; transform: translateY(var(--ty, 0%)); }
.names .who path { stroke-dashoffset: 0; }

.team { background: #eceefc; }
.team-grid { display: grid; gap: 18px; }
.person { padding: 30px 22px; background: #fff; border-radius: var(--radius); border-top: 6px solid var(--blue); }
.person:nth-child(2) { border-color: var(--gold); }
.person h3 { font: 800 clamp(1.8rem, 7vw, 2.8rem)/1.1 var(--display); letter-spacing: -.04em; margin-bottom: 8px; }
.role { font-weight: 700; color: var(--blue); }
.person-head { display: flex; align-items: center; gap: 16px; margin-bottom: 22px; }
.person-head h3 { margin-bottom: 6px; }
.person-head .role { margin: 0; }
.portrait { flex: none; }
.portrait img { width: 112px; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 14px; box-shadow: 0 14px 28px -16px rgba(0, 0, 0, .55); }
.memberships { padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: .9375rem; }
.person a { font-weight: 700; overflow-wrap: anywhere; display: inline-block; padding: 8px 0; }

/* ---------- Honoraires ---------- */
.fees-grid { display: grid; gap: 30px; }
.fee-options { display: grid; gap: 14px; }
.fee-options article { padding: 22px; border-radius: 18px; background: #fff; border: 1px solid var(--line); }
.fee-options h3 { font: 800 1.25rem var(--display); letter-spacing: -.02em; margin-bottom: 6px; }
.fee-options p { margin: 0; color: var(--muted); }
.fee-note { margin: 30px 0 0; padding: 22px; border-radius: 18px; background: #f3dfa8; }

/* ---------- Contact ---------- */
.contact { background: var(--blue); color: #fff; }
.contact .section-num { color: var(--pink); }
.contact-intro { max-width: 600px; font-size: 1.0625rem; color: #dfe3ff; }
.contact .button { margin: 8px 0 44px; }
.contact-list { display: grid; gap: 26px; }
.contact-person { border-top: 1px solid rgba(255, 255, 255, .25); padding-top: 22px; }
.contact-person h3 { font: 700 1.5rem/1.3 var(--display); margin-bottom: 8px; }
.contact-list a { display: block; width: fit-content; max-width: 100%; padding: 6px 0; font-size: 1.0625rem; overflow-wrap: anywhere; }
.contact-list a:hover { color: var(--gold); }
.contact-address { border-top: 1px solid rgba(255, 255, 255, .25); padding-top: 22px; }
.contact-address small { display: block; color: #c9cffb; font-size: .875rem; }
address { font-style: normal; }

.site-footer {
  display: flex; flex-direction: column; gap: 6px;
  padding: 26px var(--gutter) calc(96px + env(safe-area-inset-bottom));
  background: var(--blue-deep); color: #dfe3ff; font-size: .875rem;
}

/* ---------- Widget enveloppe ---------- */
.mail-fab {
  position: fixed; z-index: 40;
  right: calc(18px + env(safe-area-inset-right)); bottom: calc(18px + env(safe-area-inset-bottom));
  width: 60px; height: 60px; border: 0; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer;
  background: var(--blue); color: #fff;
  box-shadow: 0 14px 30px -10px rgba(21, 39, 172, .7);
  transition: transform .35s var(--ease), opacity .3s;
}
.mail-fab svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.mail-fab:hover { transform: scale(1.08) rotate(-6deg); }
.mail-fab::after {
  content: ''; position: absolute; inset: 0; border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(21, 39, 172, .45);
  animation: pulse 2.6s 1.5s 3;
}
@keyframes pulse { 70% { box-shadow: 0 0 0 16px rgba(21, 39, 172, 0); } 100% { box-shadow: 0 0 0 0 rgba(21, 39, 172, 0); } }
.dialog-open .mail-fab, .menu-open .mail-fab { opacity: 0; transform: scale(.6); pointer-events: none; }

.mail-dialog {
  /* mobile : feuille qui monte du bas */
  margin: auto 0 0; width: 100%; max-width: 100%;
  max-height: calc(100svh - 24px);
  padding: 0; border: 0; border-radius: 26px 26px 0 0;
  background: #fff; color: var(--ink);
  box-shadow: 0 -20px 60px -20px rgba(0, 0, 0, .35);
  overflow: auto; overscroll-behavior: contain;
}
.mail-dialog[open] { animation: sheet-in .5s var(--ease); }
.mail-dialog.closing { animation: sheet-out .3s ease-in forwards; }
.mail-dialog::backdrop { background: rgba(14, 18, 50, .35); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
@keyframes sheet-in { from { transform: translateY(100%); } }
@keyframes sheet-out { to { transform: translateY(100%); } }

.mail-head {
  position: sticky; top: 0; z-index: 1;
  display: flex; justify-content: space-between; align-items: flex-start; gap: 16px;
  padding: 22px 22px 14px; background: #fff;
}
.mail-head h2 { font-size: 1.75rem; margin: 0; }
.mail-kicker { font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--blue); margin-bottom: 4px; }
.mail-close { width: 40px; height: 40px; border: 0; border-radius: 50%; background: #f1eee9; font-size: 1.6rem; line-height: 1; cursor: pointer; flex: none; }
.mail-close:hover { background: var(--pink); }

.mail-form[hidden], .mail-sent[hidden] { display: none; }
.mail-form { display: grid; gap: 14px; padding: 4px 22px calc(24px + env(safe-area-inset-bottom)); }
.field { display: grid; gap: 6px; }
.field-row { display: grid; gap: 14px; }
.field label { font-size: .875rem; font-weight: 700; }
.field small { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 14px;
  font: inherit; font-size: 1rem; /* 16px : évite le zoom auto sur iPhone */
  color: var(--ink); background: #faf8f5;
  border: 1.5px solid var(--line); border-radius: 12px;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; border-color: var(--blue); background: #fff; box-shadow: 0 0 0 4px rgba(21, 39, 172, .12); }
.field .invalid, .consent.invalid { border-color: var(--orange); }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .875rem; line-height: 1.5; color: var(--muted); cursor: pointer; border: 1.5px solid transparent; border-radius: 10px; }
.consent input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--blue); flex: none; }
.hp { position: absolute; left: -9999px; }
.form-error { margin: 0; padding: 12px 14px; border-radius: 12px; background: #fdeae4; color: #8a2c13; font-size: .9375rem; }
.send { width: 100%; }
.send svg { transition: transform .3s var(--ease); }
.send:hover svg { transform: translateX(4px); }
.send[disabled] { opacity: .7; cursor: progress; }

.mail-sent { padding: 10px 22px calc(32px + env(safe-area-inset-bottom)); text-align: center; }
.mail-sent h3 { font: 800 1.6rem var(--display); letter-spacing: -.03em; margin: 8px 0; }
.mail-sent p { color: var(--muted); }
.env { width: 130px; margin: 6px auto 4px; }
.env svg { overflow: visible; }
.env-body { fill: var(--pink); }
.env-flap { fill: none; stroke: var(--blue); stroke-width: 5; stroke-linejoin: round; stroke-linecap: round; }
.env-check { fill: none; stroke: var(--blue); stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 60; stroke-dashoffset: 60; }
.mail-sent.show .env { animation: env-pop .6s var(--ease); }
.mail-sent.show .env-flap { animation: flap .5s .1s var(--ease) backwards; transform-origin: 60px 24px; }
.mail-sent.show .env-check { animation: draw .5s .5s var(--ease) forwards; }
@keyframes env-pop { from { transform: translateY(30px) scale(.7); opacity: 0; } }
@keyframes flap { from { transform: scaleY(-1); } }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* ---------- Mentions légales ---------- */
.legal-link { color: inherit; font-weight: 700; text-underline-offset: 4px; }
.credit a { color: #fff; font-weight: 700; text-underline-offset: 4px; }
.credit a:hover { color: var(--gold); }
.legal-link:hover { color: var(--gold); }
.legal-dialog {
  width: 100%; max-width: 100%; height: 100%; max-height: 100%; margin: 0;
  padding: 0; border: 0; background: var(--paper); color: var(--ink);
  overflow: auto; overscroll-behavior: contain;
}
.legal-dialog[open] { animation: sheet-in .5s var(--ease); }
.legal-dialog.closing { animation: sheet-out .3s ease-in forwards; }
.legal-dialog::backdrop { background: rgba(14, 18, 50, .45); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.legal-head {
  position: sticky; top: 0; z-index: 1;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: calc(16px + env(safe-area-inset-top)) var(--gutter) 16px;
  background: rgba(251, 248, 243, .92); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.legal-head h2 { font-size: clamp(1.6rem, 6vw, 2.4rem); margin: 0; }
.legal-body { max-width: 760px; margin: 0 auto; padding: 8px var(--gutter) calc(48px + env(safe-area-inset-bottom)); }
.legal-sec { padding: 26px 0; border-bottom: 1px solid var(--line); }
.legal-sec:last-child { border-bottom: 0; }
.legal-sec h3 { display: flex; align-items: baseline; gap: 12px; font: 800 1.3rem/1.25 var(--display); letter-spacing: -.02em; margin-bottom: 14px; }
.legal-sec h4 { display: flex; align-items: baseline; gap: 10px; font: 700 1rem/1.3 var(--display); margin: 22px 0 8px; }
.legal-n {
  flex: none; display: inline-grid; place-items: center; min-width: 30px; height: 30px; padding: 0 6px;
  border-radius: 999px; background: var(--blue); color: #fff; font: 800 .8125rem var(--display); letter-spacing: 0;
}
.legal-sec h4 .legal-n { min-width: 0; height: auto; padding: 0; background: none; color: var(--blue); }
.legal-sec p { margin: 0 0 8px; font-size: .9375rem; line-height: 1.65; color: #2b2b2b; overflow-wrap: anywhere; }

/* Confirmation affichée après fermeture du formulaire */
.site-toast {
  position: fixed; z-index: 60; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom));
  display: flex; align-items: center; gap: 10px;
  padding: 14px 22px 14px 16px; border-radius: 999px;
  background: var(--ink); color: #fff; font-weight: 700; white-space: nowrap;
  box-shadow: 0 18px 40px -14px rgba(0, 0, 0, .5);
  transform: translate(-50%, 140%); opacity: 0; pointer-events: none;
  transition: transform .5s var(--ease), opacity .4s;
}
.site-toast::before {
  content: '✓'; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%;
  background: #2e9b5f; font-size: .9rem;
}
.site-toast:empty { display: none; }
.site-toast.show { transform: translate(-50%, 0); opacity: 1; }

/* =========================================================
   Animations au défilement (activées par main.js)
   ========================================================= */
.motion .reveal { opacity: 0; transform: translateY(36px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.motion .reveal.in { opacity: 1; transform: none; }

/* Scènes épinglées : la section est haute, son contenu reste fixe pendant l'animation */
.motion .scene .stage { position: sticky; top: 0; height: 100svh; min-height: 0; }

/* Accueil : le logo recule, le titre arrive ligne par ligne */
.motion .hero { height: 200svh; }
.motion .hero .stage > * { grid-area: 1 / 1; }
/* Logo : chaque forme arrive à l'affichage… */
.motion .hero-logo .li { animation: logo-in 1s cubic-bezier(.2, .8, .2, 1) both; }
.motion .lp-sun .li { animation-name: logo-sun; animation-duration: 1.2s; animation-delay: .1s; }
.motion .lp-j .li { --from: translate(-700px, 120px) rotate(-35deg); animation-delay: .35s; }
.motion .lp-bar .li { --from: translateY(-600px); animation-delay: .5s; }
.motion .lp-u .li { --from: translateY(600px); animation-delay: .45s; }
.motion .lp-n .li { --from: translateY(-650px); animation-delay: .55s; }
.motion .lp-o .li { --from: translateX(800px) rotate(300deg); animation-delay: .65s; }
.motion .lp-tag .li { --from: translateY(60px); animation-delay: 1s; animation-duration: .7s; }
@keyframes logo-in { from { transform: var(--from); opacity: 0; } }
@keyframes logo-sun { from { transform: scale(.2, 0); opacity: 0; } }
/* … puis s'éparpille quand on défile, et revient quand on remonte */
.motion .hero-logo .lp {
  --t: clamp(0, var(--p, 0) * 3.4, 1);
  transform: translate(calc(var(--t) * var(--dx)), calc(var(--t) * var(--dy))) rotate(calc(var(--t) * var(--r, 0deg))) scale(calc(1 - var(--t) * var(--s, 0)));
  opacity: calc(1 - var(--t) * 1.15);
}
.motion .lp-sun { --dx: 0px; --dy: 260px; --s: .5; }
.motion .lp-bar { --dx: -500px; --dy: -520px; --r: -40deg; }
.motion .lp-j { --dx: -900px; --dy: 140px; --r: -60deg; }
.motion .lp-u { --dx: -260px; --dy: 700px; --r: 25deg; }
.motion .lp-n { --dx: 260px; --dy: -700px; --r: -25deg; }
.motion .lp-o { --dx: 950px; --dy: 120px; --r: 220deg; }
.motion .lp-tag { --dx: 0px; --dy: 160px; }
.motion .hero-copy .eyebrow, .motion .hero h1 span, .motion .lead, .motion .hero-actions {
  opacity: clamp(0, (var(--p, 0) - var(--at)) * 7, 1);
  transform: translateY(calc((1 - clamp(0, (var(--p, 0) - var(--at)) * 7, 1)) * 40px));
}
.motion .hero-copy .eyebrow { --at: .1; }
.motion .hero h1 .l1 { --at: .16; }
.motion .hero h1 .l2 { --at: .25; }
.motion .lead { --at: .33; }
.motion .hero-actions { --at: .39; }
.motion .hero-copy { pointer-events: none; }
.motion .hero.ready .hero-copy { pointer-events: auto; }
.motion .scroll-hint {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  position: absolute; bottom: calc(24px + env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%);
  font-size: .75rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
  opacity: calc(1 - var(--p, 0) * 8);
}
.scroll-hint span { width: 22px; height: 36px; border: 2px solid currentColor; border-radius: 12px; position: relative; }
.scroll-hint span::after { content: ''; position: absolute; left: 50%; top: 7px; width: 3px; height: 7px; margin-left: -1.5px; border-radius: 2px; background: currentColor; animation: wheel 1.8s infinite; }
@keyframes wheel { 60% { transform: translateY(10px); opacity: 0; } 100% { opacity: 0; } }

/* Manifeste : les mots s'allument un par un */
.motion .manifesto { height: 260svh; }
.motion .words .w { opacity: clamp(.14, var(--p, 0) * var(--n) * 1.25 - var(--i), 1); transition: opacity .15s linear; }

/* Équipe : la photo s'ouvre, puis les flèches désignent chaque associée */
.motion .team-scene { height: 200svh; }
.motion .frame img { transform: scale(calc(1.06 - clamp(0, var(--p, 0) * 2.2, 1) * .06)); }
/* bords flous et fondus dans le fond sombre (« nuage ») qui se dissipent au défilement */
.motion .frame-cloud {
  --t: clamp(0, var(--p, 0) * 2.2, 1);
  display: block; position: absolute; inset: -1px; z-index: 1; pointer-events: none;
  -webkit-backdrop-filter: blur(calc((1 - var(--t)) * 16px));
  backdrop-filter: blur(calc((1 - var(--t)) * 16px));
  box-shadow: inset 0 0 calc((1 - var(--t)) * 90px) calc((1 - var(--t)) * 46px) var(--ink);
  -webkit-mask-image: radial-gradient(ellipse 72% 72% at 50% 42%, transparent calc(30% + var(--t) * 80%), #000 calc(72% + var(--t) * 80%));
  mask-image: radial-gradient(ellipse 72% 72% at 50% 42%, transparent calc(30% + var(--t) * 80%), #000 calc(72% + var(--t) * 80%));
  opacity: calc(1 - var(--t) * var(--t));
}

/* =========================================================
   Tablette et plus
   ========================================================= */
@media (min-width: 700px) {
  :root { --gutter: 6vw; --hh: 76px; }
  .section { padding: 110px var(--gutter); }
  .brand img { width: 108px; }
  .brand span { display: block; }
  .hero-actions { flex-direction: row; justify-content: center; max-width: none; }
  .hero-meta { flex-direction: row; justify-content: space-between; }
  .field-row { grid-template-columns: 1fr 1fr; }
  .card { padding: 44px 48px 48px; }
  .frame { width: min(100%, calc((100svh - var(--hh) - 160px) * 4 / 3)); aspect-ratio: 4 / 3; }
  .who-wide { display: block; }
  .who-square { display: none; }
  /* étiquettes accrochées au départ de chaque flèche */
  .name-tag { --ty: -50%; top: 12%; font-size: clamp(.875rem, 1.05vw, 1.125rem); padding: .5em 1.1em; }
  .tag-judith { left: auto; right: 79.5%; }
  .tag-jade { right: auto; left: 79.5%; }
  .portrait img { width: 150px; }
  .card ul { columns: 2; column-gap: 40px; }
  .card li { break-inside: avoid; font-size: 1rem; line-height: 1.6; }
  .team-grid, .fees-grid { grid-template-columns: 1fr 1fr; }
  .person { padding: 40px; }
  .contact-list { grid-template-columns: 1fr 1fr; gap: 32px 48px; }
  .contact-address { grid-column: 1 / -1; }
  .site-footer { flex-direction: row; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px; padding-bottom: 26px; padding-right: calc(var(--gutter) + 80px); } /* place pour le bouton enveloppe */
  .legal-dialog { width: min(860px, calc(100% - 48px)); height: auto; max-height: calc(100svh - 48px); margin: auto; border-radius: 24px; box-shadow: 0 40px 100px -30px rgba(14, 18, 50, .5); }
  .legal-dialog[open] { animation: pop-in .45s var(--ease); }
  .legal-dialog.closing { animation: pop-out .25s ease-in forwards; }

  /* Fenêtre flottante au-dessus du bouton enveloppe */
  .mail-dialog {
    margin: auto 24px 96px auto; width: 440px; max-height: calc(100svh - 130px);
    border-radius: 24px; box-shadow: 0 30px 80px -20px rgba(14, 18, 50, .45);
    transform-origin: 100% 100%;
  }
  .mail-dialog[open] { animation: pop-in .45s var(--ease); }
  .mail-dialog.closing { animation: pop-out .25s ease-in forwards; }
  .mail-dialog::backdrop { background: rgba(14, 18, 50, .12); backdrop-filter: none; -webkit-backdrop-filter: none; }
  @keyframes pop-in { from { opacity: 0; transform: translateY(16px) scale(.92); } }
  @keyframes pop-out { to { opacity: 0; transform: translateY(16px) scale(.92); } }
  .mail-fab { right: 24px; bottom: 24px; width: 64px; height: 64px; }
}

/* =========================================================
   Ordinateur
   ========================================================= */
@media (min-width: 1100px) {
  .menu-toggle { display: none; }
  .main-nav {
    position: static; visibility: visible; opacity: 1;
    flex-direction: row; gap: 30px; padding: 0; background: none;
  }
  .main-nav a {
    opacity: 1; transform: none;
    font: 700 .9375rem var(--text); letter-spacing: 0;
    position: relative;
  }
  .main-nav a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 2px; height: 2px; background: var(--blue); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
  .main-nav a:hover::after, .main-nav a.active::after { transform: scaleX(1); }

  .hero-logo { width: min(52vw, 700px); }
  .intro-grid { grid-template-columns: .9fr 1.1fr; gap: 7vw; }
  .approach { display: grid; grid-template-columns: .9fr 1.1fr; gap: 7vw; margin-top: 60px; }
  .approach-list li { font-size: 1.6rem; }
  .commitment { margin-left: calc((100% - 7vw) * .45 + 7vw); }
  .stack { gap: 40px; }
  .fees-grid { gap: 6vw; }
  .contact-list { grid-template-columns: 1fr 1fr 1fr; }
  .contact-address { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
