/* ==========================================================================
   Me Bertille Toudic — feuille de styles
   Direction : noir et blanc de la robe d'avocate, calcaire de Marseille.
   Motifs : la voûte du portrait, la porte cintrée du bandeau.
   ========================================================================== */

@font-face {
  font-family: "Instrument Serif";
  src: url("../fonts/instrument-serif-latin-400-normal.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("../fonts/instrument-serif-latin-400-italic.woff2") format("woff2");
  font-weight: 400; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "Geist";
  src: url("../fonts/geist-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
}

/* Signature manuscrite — sous-ensemble limité à « Maître Bertille Toudic » */
@font-face {
  font-family: "Signature";
  src: url("../fonts/signature-subset.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}

:root {
  /* Couleurs */
  --calcaire: #e8dfcf;     /* fond principal, blanc cassé minéral */
  --rabat: #f6f0e5;        /* blanc des cartes et champs */
  --pierre: #dccfb8;       /* beige chaud, séparations et surfaces */
  --mineral: #80796e;      /* gris minéral, textes secondaires */
  --anthracite: #242523;   /* texte et sections sombres */
  --robe: #1a1b1a;         /* noir de la robe, ombres profondes */

  --text: var(--anthracite);
  --muted: #5a5348;        /* gris lisible AA sur calcaire */
  --line: rgba(36, 37, 35, .14);

  /* Typographie */
  --serif: "Instrument Serif", "Times New Roman", serif;
  --sans: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Mise en page */
  --wrap: 1240px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --section: clamp(5rem, 11vw, 9.5rem);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --header-h: 92px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 1rem); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--calcaire);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.62;
  font-weight: 380;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 400; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 100; background: var(--anthracite); color: var(--rabat); padding: .6rem 1rem; border-radius: 6px; }
.skip:focus { top: 1rem; }

:focus-visible { outline: 2px solid var(--anthracite); outline-offset: 3px; border-radius: 4px; }
.band :focus-visible, .contact :focus-visible { outline-color: var(--rabat); }

.todo { background: #fff3c4; color: #5a4600; padding: 0 .25em; border-radius: 3px; }

/* --------------------------------------------------------------------------
   Boutons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 3.25rem; padding: .85rem 1.6rem;
  border-radius: 999px; border: 1px solid var(--anthracite);
  background: var(--anthracite); color: var(--rabat);
  font: 500 .98rem/1 var(--sans); letter-spacing: .005em;
  text-decoration: none; cursor: pointer;
  transition: background-color .35s var(--ease), color .35s var(--ease), transform .35s var(--ease);
}
.btn:hover { background: var(--robe); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-small { min-height: 2.6rem; padding: .6rem 1.15rem; font-size: .9rem; }
.btn-ghost { background: transparent; color: var(--anthracite); }
.btn-ghost:hover { background: var(--anthracite); color: var(--rabat); }
.btn-full { width: 100%; }
.btn-light { background: var(--rabat); color: var(--anthracite); border-color: var(--rabat); }
.btn-light:hover { background: #fff; color: var(--robe); }

/* --------------------------------------------------------------------------
   En-tête
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  transition: background-color .4s var(--ease), box-shadow .4s var(--ease);
}
.site-header.is-scrolled {
  background: rgba(232, 223, 207, .94);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  backdrop-filter: saturate(140%) blur(14px);
  box-shadow: 0 1px 0 var(--line);
}
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.brand { text-decoration: none; display: flex; align-items: center; gap: .85rem; }
.brand-mark { width: 62px; height: 62px; flex: none; color: var(--anthracite); transition: transform .6s var(--ease); }
.brand:hover .brand-mark { transform: rotate(-8deg); }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-family: var(--serif); font-size: 2.1rem; letter-spacing: -.005em; }
.brand-role { font-size: .93rem; color: var(--muted); letter-spacing: .01em; }

.nav-list { display: flex; align-items: center; gap: 2rem; }
.nav-list a:not(.btn) {
  white-space: nowrap; text-decoration: none; font-size: .95rem; color: var(--text);
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  padding-bottom: 2px; transition: background-size .4s var(--ease);
}
.nav-list a:not(.btn):hover { background-size: 100% 1px; }
.nav-toggle { display: none; }

@media (max-width: 1100px) {
  /* Sur téléphone et tablette : l'en-tête garde toujours un fond (Safari iOS) */
  .site-header {
    background: rgba(232, 223, 207, .96);
    -webkit-backdrop-filter: saturate(140%) blur(14px);
    backdrop-filter: saturate(140%) blur(14px);
    transform: translateZ(0);
  }
  .nav-toggle {
    display: grid; place-items: center; width: 44px; height: 44px;
    background: none; border: 0; cursor: pointer; color: var(--text);
  }
  .nav-toggle-bar, .nav-toggle-bar::before {
    display: block; width: 22px; height: 1.5px; background: currentColor; position: relative;
    transition: transform .4s var(--ease);
  }
  .nav-toggle-bar::before { content: ""; position: absolute; top: 7px; }
  .nav-toggle-bar { transform: translateY(-3.5px); }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar { transform: rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { transform: translateY(-7px) rotate(-90deg); }

  .nav-list {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: var(--calcaire); padding: .5rem var(--gutter) 2rem;
    box-shadow: 0 1px 0 var(--line), 0 30px 40px -30px rgba(26,27,26,.25);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .35s var(--ease), transform .35s var(--ease), visibility .35s;
  }
  .nav-list.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav-list li { width: 100%; border-bottom: 1px solid var(--line); }
  .nav-list a:not(.btn) { display: block; padding: 1.1rem 0; font-size: 1.15rem; background: none; }
  .nav-list .nav-cta { border: 0; padding-top: 1.5rem; }
  .nav-list .nav-cta .btn { width: 100%; min-height: 3.25rem; font-size: 1rem; }
  .brand-role { display: none; }
  .brand-mark { width: 48px; height: 48px; }
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero { padding: clamp(2rem, 5vw, 4rem) 0 var(--section); }
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: clamp(2.5rem, 6vw, 6rem); align-items: end;
}
.hero-kicker { display: block; font-family: var(--sans); font-size: 1rem; font-weight: 450; color: var(--muted); margin-bottom: clamp(1.25rem, 3vw, 2.25rem); }
.hero-title {
  display: block; font-family: var(--serif);
  font-size: clamp(3.4rem, 8.2vw, 7.6rem); line-height: .96; letter-spacing: -.022em;
}
.hero-title .line { display: block; overflow: hidden; padding: .16em 0 .06em; margin-top: -.16em; }
.hero-title .line > span { display: inline-block; }
.hero-lede { max-width: 34rem; margin-top: clamp(1.75rem, 3.5vw, 2.75rem); font-size: 1.125rem; color: var(--muted); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem 2rem; margin-top: 2.25rem; }
.link-phone {
  font-family: var(--serif); font-size: 1.6rem; text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
  transition: background-size .4s var(--ease);
}
.link-phone:hover { background-size: 0 1px; background-position: 100% 100%; }

.hero-portrait { margin: 0; width: 100%; max-width: 25.5rem; justify-self: end; }
.portrait-frame { overflow: hidden; border-radius: 50% 50% 3px 3px / 37.5% 37.5% 3px 3px; background: var(--pierre); aspect-ratio: 3 / 4; }
.portrait-frame img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.hero-portrait figcaption { margin-top: .4rem; text-align: right; }
.signature {
  display: inline-block; font-family: "Signature", var(--serif); font-style: normal;
  font-size: clamp(1.75rem, 2.4vw, 2.1rem); line-height: 1.2; color: var(--muted);
  transform: rotate(-2deg); transform-origin: right center; padding: .1em .15em .2em;
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-portrait { max-width: 30rem; }
}

/* Séquence d'ouverture */
.js .hero-title .line > span { transform: translateY(105%); }
.js .hero-kicker, .js .hero-lede, .js .hero-actions { opacity: 0; transform: translateY(10px); }
.js .portrait-frame { clip-path: inset(100% 0 0 0); }
.js .portrait-frame img { transform: scale(1.08); }
.js .signature { clip-path: inset(0 100% 0 0); }

.is-loaded .hero-title .line > span { transform: none; transition: transform 1.1s var(--ease); }
.is-loaded .hero-title .line + .line > span { transition-delay: .12s; }
.is-loaded .hero-kicker { opacity: 1; transform: none; transition: opacity .9s var(--ease), transform .9s var(--ease); }
.is-loaded .hero-lede { opacity: 1; transform: none; transition: opacity .9s var(--ease) .45s, transform .9s var(--ease) .45s; }
.is-loaded .hero-actions { opacity: 1; transform: none; transition: opacity .9s var(--ease) .6s, transform .9s var(--ease) .6s; }
.is-loaded .portrait-frame { clip-path: inset(0 0 0 0); transition: clip-path 1.4s cubic-bezier(.65,0,.15,1) .15s; }
.is-loaded .portrait-frame img { transform: none; transition: transform 2s var(--ease) .15s; }
.is-loaded .signature { clip-path: inset(0 0 0 0); transition: clip-path 1.6s cubic-bezier(.45,.05,.35,1) 1.3s; }

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */
.section { padding-block: var(--section); }
.section h2, .contact h2 { font-family: var(--serif); font-size: clamp(2.4rem, 4.6vw, 3.75rem); line-height: 1.04; letter-spacing: -.015em; }
.section-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2rem 4rem; align-items: end; margin-bottom: clamp(3rem, 6vw, 5rem); }
.section-head p { color: var(--muted); max-width: 30rem; }

/* Approche */
.approach { padding-top: 0; }
.approach > .wrap { padding-top: clamp(3rem, 7vw, 5rem); background: linear-gradient(var(--line), var(--line)) var(--gutter) 0 / calc(100% - 2 * var(--gutter)) 1px no-repeat; }
.statement.statement { font-size: clamp(1.75rem, 3.3vw, 2.85rem); line-height: 1.2; letter-spacing: -.01em; max-width: 30ch; }
.approach-body {
  display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: 3rem clamp(3rem, 7vw, 7rem); align-items: start; margin-top: clamp(3.5rem, 7vw, 6rem);
}
.approach-photo { margin: 0; overflow: hidden; border-radius: 3px; aspect-ratio: 3 / 4; background: var(--pierre); position: sticky; top: calc(var(--header-h) + 2rem); }
.approach-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 55% 50%; }
.approach-body .values { grid-template-columns: 1fr; gap: 0; margin: 0; max-width: none; }
.approach-body .value { padding-block: 1.9rem; border-top: 1px solid var(--line); }
.approach-body .value:first-child { padding-top: 0; border-top: 0; }
.approach-body .value p { max-width: 34rem; }
@media (max-width: 900px) {
  .approach-body { grid-template-columns: 1fr; }
  .approach-photo { position: static; aspect-ratio: 4 / 3; }
  .approach-photo img { object-position: 55% 62%; }
}
.values { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(2.5rem, 5vw, 4rem) clamp(2rem, 6vw, 6rem); margin-top: clamp(3.5rem, 7vw, 6rem); max-width: 62rem; margin-left: auto; }
.value h3 { font-family: var(--serif); font-size: 1.85rem; line-height: 1.1; margin-bottom: .9rem; }
.value p { color: var(--muted); max-width: 26rem; }

/* À propos */
.about { padding-top: 0; }
.about-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 3rem clamp(3rem, 7vw, 7rem); padding-top: clamp(3.5rem, 7vw, 5.5rem); background: linear-gradient(var(--line), var(--line)) var(--gutter) 0 / calc(100% - 2 * var(--gutter)) 1px no-repeat; }
.about-lede { font-family: var(--serif); font-size: clamp(1.45rem, 2.2vw, 1.85rem); line-height: 1.3; margin-top: 1.75rem; max-width: 34ch; }
.about-path { display: grid; gap: 2.5rem; align-content: start; padding-top: .6rem; }
.cred-title { font-family: var(--serif); font-size: 1.6rem; line-height: 1.1; margin-bottom: .9rem; }
.cred-list li { padding: .85rem 0; border-top: 1px solid var(--line); color: var(--text); }
.cred-list li:last-child { border-bottom: 1px solid var(--line); }
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; } }

/* Bandeau : texte sombre + photographie d'architecture */
.band { background: var(--anthracite); color: var(--rabat); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.band-inner {
  align-self: center;
  padding-block: clamp(5rem, 10vw, 8.5rem);
  padding-left: max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter)));
  padding-right: clamp(2rem, 5vw, 5rem);
}
.band-quote { font-family: var(--serif); font-size: clamp(2.3rem, 4.6vw, 4.2rem); line-height: 1.02; letter-spacing: -.018em; max-width: 14ch; }
.band-text { margin-top: 2rem; max-width: 30rem; color: rgba(251,250,247,.72); }
.band-inner .btn { margin-top: 2.25rem; }
.band-photo { margin: 0; position: relative; min-height: 100%; overflow: hidden; }
.band-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 62% 50%; }
@media (max-width: 900px) {
  .band { grid-template-columns: 1fr; }
  .band-inner { padding-inline: var(--gutter); }
  .band-photo { aspect-ratio: 4 / 3; min-height: 0; }
}

/* Domaines */
.domain-list { border-top: 1px solid var(--line); }
.domain {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1rem 4rem;
  padding-block: clamp(1.75rem, 3vw, 2.4rem); border-bottom: 1px solid var(--line);
  position: relative;
}
.domain::before {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px;
  background: var(--anthracite); transform: scaleX(0); transform-origin: left;
  transition: transform .7s var(--ease);
}
.domain:hover::before { transform: scaleX(1); }
.domain h3 { font-family: var(--serif); font-size: clamp(1.6rem, 2.6vw, 2.2rem); line-height: 1.1; }
.domain p { color: var(--muted); max-width: 34rem; }
.domains-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.25rem 2rem; margin-top: clamp(2.5rem, 5vw, 3.5rem); }
.domains-cta p { font-family: var(--serif); font-size: 1.6rem; }

/* Méthode */
.method { background: var(--pierre); }
.method-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 3rem clamp(3rem, 7vw, 7rem); align-items: start; }
.method-head { position: sticky; top: calc(var(--header-h) + 2rem); }
.method-head p { color: var(--muted); margin-top: 1.5rem; max-width: 28rem; }
/* Frise des étapes : une ligne qui se remplit au défilement */
.steps { position: relative; --progress: 0; }
.steps::before, .steps::after {
  content: ""; position: absolute; left: calc(1.4rem - .5px); top: 2.4rem; bottom: 2.4rem; width: 1px;
}
.steps::before { background: rgba(36,37,35,.18); }
.steps::after { background: var(--anthracite); transform-origin: top; transform: scaleY(var(--progress)); transition: transform .25s linear; }
.step { position: relative; z-index: 1; padding-block: .6rem; }
.step summary {
  display: grid; grid-template-columns: 2.8rem minmax(0, 1fr) 2rem; gap: 1.25rem; align-items: start;
  padding: 1.1rem 0; cursor: pointer; list-style: none; border-radius: 6px;
}
.step summary::-webkit-details-marker { display: none; }
.step-num {
  display: grid; place-items: center; width: 2.8rem; height: 2.8rem; border-radius: 50%;
  border: 1px solid rgba(36,37,35,.28); background: var(--pierre);
  font-family: var(--serif); font-size: 1.35rem; color: var(--mineral);
  transition: background-color .5s var(--ease), color .5s var(--ease), border-color .5s var(--ease);
}
.step.is-reached .step-num { background: var(--anthracite); border-color: var(--anthracite); color: var(--rabat); }
.step-head { padding-top: .35rem; }
.step h3 { font-size: 1.15rem; font-weight: 550; margin-bottom: .4rem; }
.step-sum { display: block; color: var(--muted); max-width: 32rem; }
.step-toggle { position: relative; width: 2rem; height: 2rem; margin-top: .3rem; border-radius: 50%; border: 1px solid rgba(36,37,35,.22); transition: transform .45s var(--ease), background-color .3s var(--ease); }
.step-toggle::before, .step-toggle::after { content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 1.5px; background: var(--anthracite); transform: translate(-50%, -50%); }
.step-toggle::after { transform: translate(-50%, -50%) rotate(90deg); }
.step summary:hover .step-toggle { background: var(--rabat); }
.step details[open] .step-toggle { transform: rotate(45deg); }
.step-body { padding: .25rem 0 1.5rem calc(2.8rem + 1.25rem); }
.step details[open] .step-body { animation: step-open .5s var(--ease); }
@keyframes step-open { from { opacity: 0; transform: translateY(-6px); } }

.roles { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: rgba(36,37,35,.12); border-radius: 12px; overflow: hidden; }
.role { background: var(--calcaire); padding: 1.1rem 1.25rem; }
.role-who { font-family: var(--serif); font-size: 1.35rem; margin-bottom: .35rem; }
.role p:not(.role-who) { color: var(--muted); font-size: .97rem; }

.postes { margin-top: 1.5rem; }
.extra-title { font-weight: 550; margin-bottom: .3rem; }
.extra-note { color: var(--muted); font-size: .92rem; }
.postes ul { margin: .9rem 0 .9rem; display: flex; flex-wrap: wrap; gap: .5rem; }
.postes li { background: var(--calcaire); border: 1px solid rgba(36,37,35,.12); border-radius: 999px; padding: .5rem .95rem; font-size: .92rem; line-height: 1.35; }
.postes li strong { font-weight: 550; }
.postes li span { color: var(--muted); }
.postes li span::before { content: " : "; }

@media (max-width: 560px) {
  .step summary { grid-template-columns: 2.4rem minmax(0, 1fr) 1.8rem; gap: .9rem; }
  .step-num { width: 2.4rem; height: 2.4rem; font-size: 1.2rem; }
  .steps::before, .steps::after { left: calc(1.2rem - .5px); }
  .step-body { padding-left: calc(2.4rem + .9rem); }
  .roles { grid-template-columns: 1fr; }
  .postes li { border-radius: 12px; }
}

/* Contact */
.contact { background: var(--anthracite); color: var(--rabat); padding-block: var(--section); }
.contact-grid {
  display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  grid-template-areas: "info form" "photo form";
  gap: 2.5rem clamp(3rem, 7vw, 7rem); align-items: start;
}
.contact-info { grid-area: info; }
.contact .form { grid-area: form; align-self: stretch; align-content: start; }
.contact-photo { grid-area: photo; margin: 0; overflow: hidden; border-radius: 3px; aspect-ratio: 2 / 1; background: var(--robe); }
.contact-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 30% 20%; }
.contact-info > p { margin-top: 1.5rem; color: rgba(251,250,247,.72); max-width: 26rem; }
.reassure { margin-top: 1.75rem; display: grid; gap: .55rem; }
.reassure li { position: relative; padding-left: 1.6rem; color: var(--rabat); font-size: .98rem; }
.reassure li::before { content: ""; position: absolute; left: 0; top: .45em; width: .55rem; height: .3rem; border-left: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(-45deg); }
.coords { margin: 2.5rem 0 0; display: grid; gap: 1.5rem; }
.coords div { border-top: 1px solid rgba(251,250,247,.16); padding-top: 1rem; }
.coords dt { font-size: .85rem; color: rgba(251,250,247,.6); margin-bottom: .25rem; }
.coords dd { margin: 0; font-family: var(--serif); font-size: 1.55rem; line-height: 1.25; overflow-wrap: anywhere; }
.coords dd a { text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .4s var(--ease); }
.coords dd a:hover { background-size: 100% 1px; }
.coords .todo { font-family: var(--sans); font-size: .95rem; }

.form { background: var(--rabat); color: var(--text); border-radius: 18px; padding: clamp(1.5rem, 4vw, 2.75rem); display: grid; gap: 1.35rem; }
.field { display: grid; gap: .45rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.35rem; }
.field label { font-size: .9rem; font-weight: 500; }
.optional { color: var(--muted); font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--text);
  background: var(--calcaire); border: 1px solid transparent; border-radius: 10px;
  padding: .85rem 1rem; min-height: 3.1rem;
  transition: border-color .3s var(--ease), background-color .3s var(--ease);
}
.field textarea { resize: vertical; min-height: 8rem; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--text) 50%), linear-gradient(-45deg, transparent 50%, var(--text) 50%); background-position: calc(100% - 1.3rem) 55%, calc(100% - 1rem) 55%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 2.5rem; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--line); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--anthracite); background: var(--rabat); }
.field [aria-invalid="true"] { border-color: #a3322a; }
.field-check { display: grid; grid-template-columns: auto 1fr; gap: .75rem; align-items: start; font-size: .88rem; color: var(--muted); }
.field-check input { width: 1.15rem; height: 1.15rem; margin-top: .2rem; accent-color: var(--anthracite); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status.is-ok { color: var(--text); font-weight: 500; }
.form-status { font-size: .92rem; min-height: 1.4em; }
.form-status.is-error { color: #a3322a; }

/* Pied de page */
.footer { background: var(--robe); color: rgba(251,250,247,.7); padding-block: 3.5rem 3rem; font-size: .9rem; }
.footer-inner { display: grid; grid-template-columns: 1fr auto auto; gap: 2rem 3rem; align-items: start; }
.footer-brand { display: flex; align-items: center; gap: 1rem; }
.footer-mark { width: 52px; height: 52px; flex: none; color: var(--rabat); }
.footer-name { font-family: var(--serif); font-size: 1.5rem; line-height: 1.2; color: var(--rabat); }
.footer-name span { font-family: var(--sans); font-size: .85rem; color: rgba(251,250,247,.6); }
.footer-coords { font-style: normal; line-height: 1.7; }
.footer-coords a { text-decoration: none; }
.footer-coords a:hover { color: var(--rabat); text-decoration: underline; text-underline-offset: 4px; }
.footer-links { display: flex; flex-direction: column; gap: .5rem; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { color: var(--rabat); text-decoration: underline; text-underline-offset: 4px; }
.footer-copy { grid-column: 1 / -1; padding-top: 2rem; border-top: 1px solid rgba(251,250,247,.12); font-size: .8rem; color: rgba(251,250,247,.5); }

/* Barre mobile */
.mobile-bar { display: none; }
@media (max-width: 760px) {
  .footer { padding-bottom: calc(3rem + 4.5rem + env(safe-area-inset-bottom)); }
  .mobile-bar {
    display: grid; grid-template-columns: 1fr 1fr; gap: .5rem;
    position: fixed; left: .75rem; right: .75rem; bottom: calc(.75rem + env(safe-area-inset-bottom));
    z-index: 40; padding: .4rem; border-radius: 999px;
    background: rgba(36,37,35,.92); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
    transition: transform .45s var(--ease), opacity .45s var(--ease);
  }
  .mobile-bar a { display: grid; place-items: center; min-height: 2.9rem; border-radius: 999px; color: var(--rabat); text-decoration: none; font-weight: 500; font-size: .95rem; }
  .mobile-bar a:last-child { background: var(--rabat); color: var(--anthracite); }
  .mobile-bar.is-hidden { transform: translateY(150%); opacity: 0; }
}

/* Mises en page étroites */
@media (max-width: 900px) {
  .section-head, .domain, .method-grid, .contact-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-areas: "info" "form"; }
  .contact-photo { display: none; }
  .contact .form { align-self: start; }
  .method-head { position: static; }
  .values { grid-template-columns: 1fr; margin-left: 0; }
}
@media (max-width: 900px) { .footer-inner { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 560px) {
  .field-row { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .domains-cta .btn { width: 100%; }
}

/* Apparition au défilement, discrète */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* Réglage « réduire les animations » */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; transition-delay: 0s !important; animation: none !important; }
  .js .reveal, .js .hero-kicker, .js .hero-lede, .js .hero-actions { opacity: 1; transform: none; }
  .js .signature { clip-path: none; }
  .js .hero-title .line > span, .js .portrait-frame img { transform: none; }
  .js .portrait-frame { clip-path: none; }
}

/* Page secondaire (mentions légales) */
.legal { padding-block: clamp(3rem, 7vw, 6rem) var(--section); }
.legal h1 { font-family: var(--serif); font-size: clamp(2.6rem, 5.5vw, 4.4rem); line-height: 1.02; letter-spacing: -.015em; margin-bottom: 1rem; }
.legal-intro { color: var(--muted); max-width: 40rem; }
.legal-body { max-width: 46rem; margin-top: clamp(2.5rem, 5vw, 4rem); }
.legal-body h2 { font-family: var(--serif); font-size: 1.9rem; line-height: 1.15; margin: 3rem 0 1rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.legal-body h2:first-child { margin-top: 0; }
.legal-body p, .legal-body li { color: var(--muted); }
.legal-body p + p, .legal-body ul { margin-top: .9rem; }
.legal-body ul { list-style: disc; padding-left: 1.2rem; display: grid; gap: .4rem; }
.legal-body strong { color: var(--text); font-weight: 550; }

/* Formulaire de contact : le champ message occupe la hauteur disponible */
@media (min-width: 901px) {
  .contact .form { display: flex; flex-direction: column; }
  .contact .form .field-message { flex: 1; grid-template-rows: auto 1fr; }
  .contact .form .field-message textarea { height: 100%; }
}


/* Rythme des fonds : les domaines sur un sable plus soutenu */
.domains { background: var(--pierre); }
.domains .domain-list, .domains .domain { border-color: rgba(36,37,35,.16); }
.method { background: var(--calcaire); }
.method .step-num { background: var(--calcaire); }
.method .role { background: var(--rabat); }

/* En-tête blanc */
.site-header, .site-header.is-scrolled {
  background: rgba(251, 250, 247, .97);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  backdrop-filter: saturate(140%) blur(14px);
  box-shadow: 0 1px 0 rgba(36, 37, 35, .10);
}
@media (max-width: 900px) { .nav-list { background: #fbfaf7; } }

/* Pages domaine d'intervention */
.article { padding-top: clamp(1.5rem, 4vw, 3rem); }
.breadcrumb { font-size: .85rem; color: var(--muted); margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.breadcrumb a { color: inherit; text-decoration: none; }
.breadcrumb a:hover { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.breadcrumb span[aria-current] { color: var(--text); }
.article-head { max-width: 52rem; padding-bottom: clamp(3rem, 7vw, 5rem); }
.article-head h1 { font-family: var(--serif); font-size: clamp(2.6rem, 6vw, 4.8rem); line-height: 1.02; letter-spacing: -.02em; }
.article-lede { margin-top: 1.75rem; max-width: 40rem; font-size: 1.125rem; color: var(--muted); }
.article-body { max-width: 46rem; margin-left: auto; margin-right: auto; padding-bottom: var(--section); }
.article-block { padding-block: clamp(2rem, 4vw, 2.75rem); border-top: 1px solid var(--line); }
.article-block h2 { font-family: var(--serif); font-size: clamp(1.8rem, 3vw, 2.4rem); line-height: 1.1; margin-bottom: 1.1rem; }
.article-block p { color: var(--muted); }
.article-block p + p { margin-top: 1rem; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { display: grid; grid-template-columns: minmax(0, 1fr) 2rem; gap: 1rem; align-items: center; padding: 1.1rem 0; cursor: pointer; list-style: none; font-weight: 550; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item[open] .step-toggle { transform: rotate(45deg); }
.faq-item p { padding: 0 2.5rem 1.25rem 0; }
.article-cta .band-inner { padding-right: max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter))); }
.article-cta { grid-template-columns: 1fr; }
.related { padding-block: clamp(3rem, 6vw, 4.5rem) var(--section); }
.related-title { font-weight: 550; margin-bottom: 1rem; }
.related ul { display: flex; flex-wrap: wrap; gap: .6rem; }
.related a { display: inline-block; padding: .6rem 1.1rem; border: 1px solid rgba(36,37,35,.2); border-radius: 999px; text-decoration: none; font-size: .95rem; transition: background-color .3s var(--ease), color .3s var(--ease); }
.related a:hover { background: var(--anthracite); color: var(--rabat); border-color: var(--anthracite); }
.domain-link { display: inline-block; margin-top: .75rem; font-weight: 500; text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; padding-bottom: 2px; }
.domain-link:hover { background-size: 0 1px; background-position: 100% 100%; }
