/* ==========================================================================
   SARELI — Angeline Santin · Gestion administrative
   Feuille de style unique. Mobile-first.
   --------------------------------------------------------------------------
   Charte relevée directement sur la carte de visite et le flyer :
   fond blanc cassé #FAF9F7, encre quasi noire, or #BD842D,
   serif garamond haute-contraste, sans humaniste, script de signature.
   ========================================================================== */

:root {
  color-scheme: light;

  /* --- Or de la marque --- */
  --gold:      #BD842D;  /* or relevé sur le logo : filets, accents, grands titres */
  --gold-soft: #D8B478;  /* or clair : dégradés, filets fins */
  --gold-pale: #F1E4CE;  /* teinte très légère : fonds, puces */
  --gold-wash: #FBF5EA;  /* voile doré à peine perceptible */
  --gold-ink:  #8C6420;  /* or assombri — obligatoire pour les petits textes (5,1:1) */

  /* --- Encre & papier --- */
  --ink:     #16161A;  /* noir de la carte */
  --ink-2:   #4A4A50;
  --ink-3:   #86868C;
  --paper:   #FAF9F7;  /* fond général relevé sur le flyer */
  --paper-2: #F4F1EA;  /* sections alternées */
  --surface: #FFFFFF;
  --line:    #E4DFD5;
  --line-2:  #EFEBE3;

  --error: #A32118;

  /* --- Typographie --- */
  --font-display: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --font-body:    "Lato", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --font-script:  "Nothing You Could Do", "Segoe Script", cursive;

  /* Cormorant est une garamond délicate : elle demande des corps généreux. */
  --fs-xs:   0.8125rem;
  --fs-sm:   0.9375rem;
  --fs-base: clamp(1rem, 0.96rem + 0.18vw, 1.0625rem);
  --fs-lg:   clamp(1.0625rem, 1rem + 0.32vw, 1.1875rem);
  --fs-xl:   clamp(1.5rem, 1.3rem + 1vw, 2rem);
  --fs-h3:   clamp(1.375rem, 1.25rem + 0.6vw, 1.625rem);
  --fs-h2:   clamp(2rem, 1.6rem + 1.9vw, 3.15rem);
  --fs-h1:   clamp(2.5rem, 1.8rem + 3.3vw, 4.75rem);

  /* --- Rythme --- */
  --sp-2: 0.5rem;  --sp-3: 0.75rem;  --sp-4: 1rem;
  --sp-5: 1.5rem;  --sp-6: 2rem;     --sp-7: 3rem;  --sp-8: 4rem;
  --section-y: clamp(3.75rem, 2rem + 6.5vw, 7.5rem);

  /* Angles très discrets : l'imprimé de la marque est net, pas arrondi. */
  --radius-sm: 3px;
  --radius:    6px;
  --radius-lg: 10px;

  --shadow-sm: 0 1px 2px rgba(22, 22, 26, .04);
  --shadow:    0 12px 34px -14px rgba(22, 22, 26, .16);

  --header-h: 82px;
  --container: 1180px;
  --gutter: clamp(1.15rem, 4vw, 2.75rem);

  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ==========================================================================
   1. Base
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  /* Empêche le panneau de menu (hors écran à droite) d'élargir le document.
     `clip` ne crée pas de conteneur de défilement : le sticky reste valide. */
  overflow-x: clip;
}
@supports not (overflow: clip) { body { overflow-x: hidden; } }

/* Posée un court instant par le script quand la largeur franchit le seuil de
   1100 px. Le menu change alors complètement de mode de mise en page
   (`display: contents` ↔ boîte, `static` ↔ `absolute`) : une transition qui
   traverse cette rupture se coince, et le panneau restait ouvert en travers
   de la page. On la neutralise le temps du basculement. */
.sans-transition, .sans-transition * {
  transition: none !important;
  animation: none !important;
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  font-weight: 400;
  line-height: 1.7;
  color: var(--ink-2);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main { flex: 1 0 auto; }

img, svg, video { display: block; max-width: 100%; height: auto; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.005em;
  color: var(--ink);
  text-wrap: balance;
}
h1 { font-size: var(--fs-h1); line-height: 1.04; }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }

p { text-wrap: pretty; }

a { color: var(--gold-ink); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--ink); }

ul, ol { padding-left: 1.15em; }
strong { font-weight: 700; color: var(--ink); }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--gold-pale); color: var(--ink); }

.skip-link {
  position: absolute; left: 50%; top: 0; transform: translate(-50%, -110%);
  z-index: 200; background: var(--ink); color: var(--paper);
  padding: .7rem 1.2rem; font-size: var(--fs-sm); text-decoration: none;
  transition: transform .2s var(--ease);
}
.skip-link:focus { transform: translate(-50%, 0); color: var(--paper); }

/* ==========================================================================
   2. Mise en page
   ========================================================================== */

.container {
  width: 100%; max-width: var(--container);
  margin-inline: auto; padding-inline: var(--gutter);
}
.container--narrow { max-width: 780px; }

.section { padding-block: var(--section-y); }
.section--alt { background: var(--paper-2); }
.section--wash { background: var(--gold-wash); }

.section--ink { background: var(--ink); color: #C9C6C0; }
.section--ink h2, .section--ink h3 { color: var(--paper); }

.grid { display: grid; gap: clamp(1.25rem, .6rem + 1.8vw, 2rem); }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
@media (min-width: 660px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 940px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
}

/* --- Le motif « — LABEL — » de la carte de visite ------------------------ */

.rule-label {
  display: flex; align-items: center; justify-content: center; gap: .9rem;
  font-family: var(--font-body);
  font-size: var(--fs-xs); font-weight: 700;
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--gold-ink);
  margin-bottom: var(--sp-5);
}
.rule-label::before, .rule-label::after {
  content: ""; width: clamp(22px, 5vw, 42px); height: 1px;
  background: var(--gold-soft); flex: none;
}
.rule-label--start { justify-content: flex-start; }
.rule-label--start::before { display: none; }

/* --- Titre manuscrit, comme les intertitres du flyer --------------------- */

.script {
  font-family: var(--font-script);
  font-size: clamp(1.6rem, 1.2rem + 1.7vw, 2.4rem);
  font-weight: 400; line-height: 1.35;
  color: var(--ink);
  letter-spacing: 0;
}
.script--gold { color: var(--gold-ink); }

/* --- Le petit cœur qui sépare les blocs sur le flyer --------------------- */

.heart {
  display: block; width: 20px; height: 20px;
  margin: var(--sp-5) auto;
  color: var(--gold);
}
.heart--start { margin-inline: 0; }

.section-head { max-width: 60ch; margin-bottom: clamp(2.25rem, 1.2rem + 3vw, 3.75rem); }
.section-head.is-center { margin-inline: auto; text-align: center; }
.section-head p { margin-top: var(--sp-4); font-size: var(--fs-lg); color: var(--ink-2); }
.section--ink .section-head p { color: #A9A6A0; }

.lead { font-size: var(--fs-lg); color: var(--ink-2); }

/* ==========================================================================
   3. Boutons
   ========================================================================== */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .65rem;
  padding: 1rem 1.9rem; min-height: 52px;
  font-family: var(--font-body);
  font-size: .875rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  line-height: 1.2; text-align: center;
  border: 1px solid transparent; border-radius: var(--radius-sm);
  text-decoration: none; cursor: pointer;
  transition: background-color .2s var(--ease), color .2s var(--ease),
              border-color .2s var(--ease);
}

/* Noir sur blanc : le contraste de la carte, et 16:1 en accessibilité. */
.btn-primary { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn-primary:hover { background: #000; color: var(--paper); }

/* L'or ne passe en fond qu'avec du texte noir dessus (5,7:1). */
.btn-gold { background: var(--gold); color: var(--ink); border-color: var(--gold); }
.btn-gold:hover { background: var(--gold-soft); color: var(--ink); }

.btn-ghost { background: transparent; color: var(--ink); border-color: var(--gold-soft); }
.btn-ghost:hover { background: var(--surface); border-color: var(--gold); color: var(--ink); }

.btn-light { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn-light:hover { background: #fff; color: var(--ink); }
.btn-outline-light { background: transparent; color: var(--paper); border-color: rgba(255,255,255,.4); }
.btn-outline-light:hover { background: rgba(255,255,255,.08); border-color: var(--gold-soft); color: var(--paper); }

.btn-sm { padding: .65rem 1.2rem; min-height: 42px; font-size: .75rem; }
.btn-lg { padding: 1.15rem 2.2rem; min-height: 58px; }
.btn-block { width: 100%; }
.btn svg { width: 17px; height: 17px; flex: none; }

.btn-row { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-top: var(--sp-6); }
.btn-row.is-center { justify-content: center; }

.link-arrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: var(--fs-sm); font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink); text-decoration: none;
  border-bottom: 1px solid var(--gold); padding-bottom: 3px;
}
.link-arrow:hover { color: var(--gold-ink); }

/* ==========================================================================
   4. En-tête
   ========================================================================== */

/* Fond opaque, sans `backdrop-filter` : un filtre ici ferait de l'en-tête le
   bloc conteneur de tout descendant `position: fixed`, ce qui casse le
   panneau de menu (il ne peut alors ni descendre jusqu'en bas, ni être
   correctement rogné). */
.site-header {
  position: sticky; top: 0; z-index: 100; flex: none;
  background: var(--paper);
  border-bottom: 1px solid transparent;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.site-header.is-stuck {
  border-bottom-color: var(--line);
  box-shadow: 0 6px 20px -16px rgba(22, 22, 26, .35);
}

.header-inner {
  display: flex; align-items: center; justify-content: flex-start;
  gap: .85rem; min-height: var(--header-h);
}
/* Sur grand écran, le monogramme et le nom restent collés à gauche ; la
   marge automatique repousse la navigation à droite. */
.brand { margin-right: auto; }

/* Lockup horizontal : monogramme + bloc typographique, extraits de la charte.
   Dimensionnés en LARGEUR, en nombres entiers : les mêmes valeurs sont
   reprises dans l'attribut `sizes` des images, ce qui permet au navigateur
   de choisir la densité exacte et d'éviter une réduction approximative —
   c'est ce qui rendait le logo flou. */
.brand-mark, .brand {
  display: inline-flex; align-items: center; flex: none; text-decoration: none;
}
/* ALIGNEMENT OPTIQUE DU LOCKUP
   -----------------------------------------------------------------------
   Mesuré sur l'image du nom (356 × 77) : « SARELI » occupe y 4→38 et la
   ligne « GESTION ADMINISTRATIVE » y 61→72. Centrer les deux boîtes plaçait
   le monogramme trop bas ; le caler sur le seul mot SARELI (−22,7 %) le
   faisait flotter trop haut. Le réglage retenu, −7,8 %, fait partir le
   monogramme du haut du S et descendre jusqu'au filet de la tagline : il
   encadre le bloc de texte au lieu de le survoler ou de le déborder.

   `--h-logo` pilote tout : les deux hauteurs et le décalage en découlent.
   Ratios des images : monogramme 96/94 = 1,021 ; nom 356/77 = 4,623.
   Les largeurs obtenues sont reportées dans l'attribut `sizes`. */
.brand-mark, .brand { --h-logo: 52px; }

.brand .type {
  height: var(--h-logo); width: auto;            /* 52 -> 240 px de large */
}
.brand-mark img {
  height: calc(var(--h-logo) * 0.82); width: auto;  /* 52 -> 43 x 44 px */
  transform: translateY(calc(var(--h-logo) * -0.078));
}

@media (max-width: 600px) {
  .brand-mark, .brand { --h-logo: 46px; }        /* nom 213 px, monogramme 39 px */
}
@media (max-width: 380px) {
  .brand-mark, .brand { --h-logo: 36px; }        /* nom 166 px, monogramme 30 px */
}

/* Marque en toutes lettres, pour le pied de page sombre */
.brand-type { display: flex; flex-direction: column; align-items: center; gap: .35rem; text-decoration: none; }
.brand-type .name {
  font-family: var(--font-display); font-weight: 500;
  font-size: 1.75rem; letter-spacing: .34em; text-indent: .34em;
  color: var(--paper); line-height: 1;
}
.brand-type .sub {
  font-size: .625rem; font-weight: 700;
  letter-spacing: .24em; text-indent: .24em; text-transform: uppercase;
  color: var(--gold-soft);
}

.nav { display: flex; align-items: center; gap: clamp(.4rem, 1.4vw, 1.5rem); }
.nav a:not(.btn) {
  position: relative; padding: .5rem .2rem;
  font-size: .8125rem; font-weight: 700;
  letter-spacing: .13em; text-transform: uppercase;
  color: var(--ink-2); text-decoration: none;
  transition: color .2s var(--ease);
}
.nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  height: 1px; background: var(--gold);
  transform: scaleX(0); transform-origin: left;
  transition: transform .25s var(--ease);
}
.nav a:not(.btn):hover { color: var(--ink); }
.nav a:not(.btn):hover::after,
.nav a:not(.btn)[aria-current="page"]::after { transform: scaleX(1); }
/* `:not(.btn)` est indispensable : sans lui, cette règle l'emportait aussi sur
   le bouton « Me contacter » (spécificité 0,2,1 contre 0,1,0 pour
   `.btn-primary`) et son texte devenait noir sur fond noir. */
.nav a:not(.btn)[aria-current="page"] { color: var(--ink); }
.nav-cta { margin-left: clamp(.25rem, 1vw, 1rem); }

.nav-toggle {
  display: none; width: 46px; height: 46px; flex: none;
  align-items: center; justify-content: center; flex-direction: column;
  background: transparent; border: 1px solid var(--line);
  border-radius: var(--radius-sm); cursor: pointer; padding: 0;
}
.nav-toggle span {
  display: block; width: 19px; height: 1.5px; background: var(--ink);
  transition: transform .3s var(--ease), opacity .2s var(--ease);
}
.nav-toggle span + span { margin-top: 5px; }

@media (max-width: 1099px) {
  /* Trois zones : monogramme à gauche, nom au centre, bouton menu à droite.
     Les colonnes latérales font toutes deux `1fr`, donc de largeur égale :
     le nom est centré sur l'écran, pas sur l'espace restant. */
  .header-inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: .5rem;
    align-items: center;
  }
  .brand-mark { grid-column: 1; justify-self: start; }
  .brand { grid-column: 2; justify-self: center; margin-right: 0; }
  .nav-toggle { grid-column: 3; justify-self: end; display: inline-flex; }

  /* Cadre plein écran qui ROGNE le panneau. Sans lui, le panneau fermé —
     poussé hors écran par `translateX(100%)` — reste dans la zone de
     défilement du document : on pouvait le faire apparaître en glissant
     vers la droite. Ici il est découpé net au bord de l'écran. */
  .nav-panel {
    position: fixed; inset: 0; z-index: 101;
    overflow: hidden;
    /* Transparent aux clics en permanence : sinon le cadre couvrirait tout
       l'écran et intercepterait le clic sur le voile, qui ferme le menu.
       Seul le panneau lui-même redevient cliquable. */
    pointer-events: none;
  }
  body.nav-open .nav { pointer-events: auto; }

  /* Aucune transition sur `visibility` ici : elle restait bloquée quand
     l'élément passait de `display: contents` (bureau) à une vraie boîte
     (mobile), et le menu restait ouvert en travers de la page après une
     rotation de tablette. Le retrait du parcours clavier est confié à
     l'attribut `inert`, posé par le script — aucune sémantique d'animation,
     donc rien qui puisse se coincer. */

  .nav {
    position: absolute; inset: 0 0 0 auto; width: min(88vw, 350px);
    flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 0;
    padding: calc(var(--header-h) + 1.5rem) var(--sp-5) var(--sp-6);
    background: var(--surface); border-left: 1px solid var(--line);
    box-shadow: -18px 0 44px -24px rgba(22,22,26,.3);
    transform: translateX(100%); transition: transform .35s var(--ease);
    overflow-y: auto; overscroll-behavior: contain;
  }
  .nav a:not(.btn) {
    padding: 1.05rem 0; font-size: .8125rem;
    border-bottom: 1px solid var(--line-2); color: var(--ink);
  }
  .nav a:not(.btn)::after { display: none; }
  .nav-cta { margin: var(--sp-5) 0 0; width: 100%; }

  body.nav-open .nav { transform: translateX(0); }
  body.nav-open { overflow: hidden; }
  body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
  body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

  .nav-scrim {
    position: fixed; inset: 0; z-index: 99; background: rgba(22, 22, 26, .42);
    opacity: 0; visibility: hidden; border: 0; padding: 0; cursor: pointer;
    transition: opacity .3s var(--ease), visibility .3s var(--ease);
  }
  body.nav-open .nav-scrim { opacity: 1; visibility: visible; }
}
@media (min-width: 1100px) {
  .nav-scrim { display: none; }
  /* `display: contents` efface le cadre : le menu redevient un enfant
     direct de l'en-tête et reprend sa place dans la rangée. */
  .nav-panel { display: contents; }
}

/* ==========================================================================
   5. Hero
   ========================================================================== */

.hero {
  position: relative; overflow: hidden;
  padding-block: clamp(3.5rem, 2rem + 7vw, 7rem) clamp(3.5rem, 2rem + 6vw, 6.5rem);
  text-align: center;
}

/* Filigrane du monogramme, comme au dos de la carte */
.hero::before {
  content: ""; position: absolute; z-index: 0; pointer-events: none;
  top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: min(560px, 78vw); aspect-ratio: 1;
  /* Filigrane décoratif à 5 % d'opacité : la petite image suffit largement,
     inutile d'alourdir la page avec une version haute définition. */
  background: url("/assets/img/monogramme-se-144.png") center / contain no-repeat;
  opacity: .05;
}
.hero > .container { position: relative; z-index: 1; }

.hero h1 { margin-inline: auto; max-width: 16ch; }
.hero h1 .gold { color: var(--gold-ink); display: block; }
.hero-sub {
  margin: var(--sp-6) auto 0; max-width: 58ch;
  font-size: var(--fs-lg); color: var(--ink-2);
}
.hero-sub strong { display: block; margin-bottom: .4rem; font-size: 1.05em; }
.hero .btn-row { justify-content: center; }

.hero-meta {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: .6rem clamp(1.25rem, 4vw, 2.75rem);
  margin-top: var(--sp-7);
  padding-top: var(--sp-5);
  border-top: 1px solid var(--line);
  font-size: var(--fs-xs); font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3);
}
.hero-meta span { display: inline-flex; align-items: center; gap: .5rem; }
.hero-meta svg { width: 15px; height: 15px; color: var(--gold); flex: none; }

/* ==========================================================================
   6. Piliers « Ma façon de travailler »
   ========================================================================== */

.pillars { display: grid; gap: 0; }
@media (min-width: 860px) { .pillars { grid-template-columns: repeat(3, 1fr); } }

.pillar { padding: var(--sp-6) 0; border-top: 1px solid var(--line); }
@media (min-width: 860px) {
  .pillar { padding: 0 clamp(1.5rem, 3vw, 2.75rem); border-top: 0; border-left: 1px solid var(--line); }
  .pillar:first-child { border-left: 0; padding-left: 0; }
  .pillar:last-child { padding-right: 0; }
}
.pillar h3 {
  font-family: var(--font-body);
  font-size: var(--fs-xs); font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--gold-ink); margin-bottom: var(--sp-3);
}
.pillar p { font-size: var(--fs-sm); }

/* ==========================================================================
   7. Panneaux d'offre (repris du flyer : cadre or + bandeau plein)
   ========================================================================== */

.offer {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--gold-soft);
  border-radius: var(--radius);
  padding: clamp(2.5rem, 1.5rem + 3vw, 3.25rem) clamp(1.35rem, 1rem + 2vw, 2.5rem) clamp(1.85rem, 1.2rem + 2vw, 2.5rem);
  display: flex; flex-direction: column;
}
.offer-tag {
  position: absolute; top: 0; left: 50%; transform: translate(-50%, -50%);
  background: var(--gold); color: var(--ink);
  padding: .6rem 1.5rem; border-radius: var(--radius-sm);
  font-size: var(--fs-xs); font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase; white-space: nowrap;
  text-align: center;
}
.offer-tag small {
  display: block; font-size: .6875rem; font-weight: 400;
  letter-spacing: .08em; text-transform: none; opacity: .8; margin-top: 1px;
}
.offer ul { list-style: none; padding: 0; display: grid; gap: .85rem; }
.offer ul li {
  display: grid; grid-template-columns: 16px 1fr; gap: .8rem; align-items: start;
  font-size: var(--fs-sm); color: var(--ink-2);
}
.offer ul li::before {
  content: ""; margin-top: .62em; justify-self: center;
  width: 5px; height: 5px; border-radius: 50%; background: var(--gold);
}
.offer-foot {
  margin-top: auto; padding-top: var(--sp-5);
  font-family: var(--font-script);
  font-size: 1.15rem; line-height: 1.55; text-align: center; color: var(--ink);
}

/* ==========================================================================
   8. Liste de prestations à filets (page Services)
   ========================================================================== */

.ruled { border-top: 1px solid var(--ink); }
.ruled-item {
  display: grid; grid-template-columns: 1fr; gap: .35rem;
  padding: var(--sp-5) 0; border-bottom: 1px solid var(--line);
}
@media (min-width: 820px) {
  .ruled-item { grid-template-columns: 34px 1fr 1.25fr; gap: var(--sp-5); align-items: baseline; }
}
.ruled-item .num {
  font-family: var(--font-display); font-size: 1rem;
  color: var(--gold-ink); font-variant-numeric: tabular-nums;
}
.ruled-item h3 { font-size: var(--fs-h3); }
.ruled-item p { font-size: var(--fs-sm); }

/* ==========================================================================
   9. Étapes
   ========================================================================== */

.steps { list-style: none; padding: 0; display: grid; gap: var(--sp-6); counter-reset: step; }
@media (min-width: 800px) { .steps { grid-template-columns: repeat(4, 1fr); gap: var(--sp-5); } }
@media (min-width: 800px) { .steps--3 { grid-template-columns: repeat(3, 1fr); } }

.steps li { counter-increment: step; padding-top: var(--sp-5); border-top: 1px solid var(--line); position: relative; }
.steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute; top: -.85em; left: 0;
  background: var(--paper); padding-right: .7rem;
  font-family: var(--font-display); font-size: 1.05rem; color: var(--gold-ink);
}
.section--alt .steps li::before { background: var(--paper-2); }
.section--ink .steps li { border-top-color: rgba(255,255,255,.2); }
.section--ink .steps li::before { background: var(--ink); color: var(--gold-soft); }
.section--ink .steps p { color: #A9A6A0; }
.steps h3 { font-size: var(--fs-h3); margin-bottom: .5rem; }
.steps p { font-size: var(--fs-sm); }

/* ==========================================================================
   10. À propos
   ========================================================================== */

.about-grid { display: grid; gap: clamp(2.25rem, 1rem + 4vw, 4.5rem); align-items: center; }
@media (min-width: 940px) { .about-grid { grid-template-columns: .85fr 1.15fr; } }

/* Portrait rond, en écho au cercle du monogramme. La photo fournie est déjà
   détourée en disque plein cadre : le `border-radius: 50%` tombe exactement
   sur son bord, et ses coins blancs disparaissent. */
.portrait {
  display: flex; flex-direction: column; align-items: center;
  gap: var(--sp-4);
  text-align: center;
}
.portrait img {
  width: clamp(170px, 22vw, 200px);
  aspect-ratio: 1;
  border-radius: 50%;
  object-fit: cover;
  /* Anneau d'or à distance. Le premier voile reprend le fond de la section :
     à déplacer si le portrait passe un jour sur un fond différent. */
  box-shadow: 0 0 0 8px var(--paper), 0 0 0 9px var(--gold-soft);
}
.portrait figcaption {
  font-family: var(--font-script);
  font-size: 1.5rem; line-height: 1.2;
  color: var(--gold-ink);
  margin-top: var(--sp-2);
}

.quote {
  margin: 0; padding: 0;
  font-family: var(--font-display); font-weight: 400; font-style: italic;
  font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.15rem);
  line-height: 1.35; color: var(--ink); text-wrap: pretty;
}
.quote-mark {
  display: block; font-family: var(--font-display); font-size: 3.5rem;
  line-height: .6; color: var(--gold-soft); margin-bottom: .35rem;
}
.quote footer {
  margin-top: var(--sp-4);
  font-family: var(--font-body); font-style: normal;
  font-size: var(--fs-xs); font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase; color: var(--ink-3);
}

/* ==========================================================================
   11. FAQ
   ========================================================================== */

.faq { max-width: 840px; margin-inline: auto; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4);
  padding: 1.35rem 0; cursor: pointer; list-style: none;
  font-family: var(--font-display); font-size: var(--fs-h3); color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 11px; height: 11px;
  border-right: 1.5px solid var(--gold); border-bottom: 1.5px solid var(--gold);
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform .25s var(--ease);
}
.faq details[open] summary::after { transform: rotate(225deg) translate(-2px, -2px); }
.faq .faq-body { padding: 0 0 1.6rem; max-width: 70ch; }
.faq .faq-body p { font-size: var(--fs-sm); }
.faq .faq-body p + p { margin-top: var(--sp-3); }

/* ==========================================================================
   12. Bandeau d'appel
   ========================================================================== */

.cta { text-align: center; }
.cta h2 { color: var(--paper); margin-inline: auto; max-width: 22ch; }
.cta p { color: #A9A6A0; font-size: var(--fs-lg); max-width: 54ch; margin: var(--sp-4) auto 0; }
.cta .btn-row { justify-content: center; }
.cta .heart { color: var(--gold-soft); }

/* ==========================================================================
   13. Formulaire
   ========================================================================== */

.contact-grid { display: grid; gap: clamp(2rem, 1rem + 3vw, 3.5rem); align-items: start; }
@media (min-width: 960px) { .contact-grid { grid-template-columns: .8fr 1.2fr; } }

.contact-aside { border-top: 2px solid var(--ink); padding-top: var(--sp-5); }
.contact-aside h2, .contact-aside h3 { font-size: var(--fs-xl); margin-bottom: var(--sp-4); }
.contact-aside > p { font-size: var(--fs-sm); }

.contact-list { list-style: none; padding: 0; margin-top: var(--sp-5); display: grid; gap: 0; }
.contact-list li {
  display: grid; grid-template-columns: 42px 1fr; gap: 1rem; align-items: center;
  padding: var(--sp-4) 0; border-bottom: 1px solid var(--line);
}
/* Pastille cerclée d'or, exactement comme au dos de la carte */
.ico-round {
  display: grid; place-items: center; width: 42px; height: 42px;
  border: 1px solid var(--gold-soft); border-radius: 50%; color: var(--gold-ink);
}
.ico-round svg { width: 18px; height: 18px; }
.contact-list small {
  display: block; font-size: .6875rem; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3);
}
.contact-list a, .contact-list b {
  font-size: var(--fs-base); font-weight: 700; color: var(--ink);
  text-decoration: none; word-break: break-word;
}
.contact-list a:hover { color: var(--gold-ink); text-decoration: underline; }

.form-card {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: clamp(1.5rem, 1rem + 2vw, 2.75rem);
}

.form-grid { display: grid; gap: var(--sp-4); }
@media (min-width: 620px) {
  .form-grid { grid-template-columns: 1fr 1fr; }
  .field--full { grid-column: 1 / -1; }
}

.field { display: flex; flex-direction: column; gap: .45rem; }
.field label {
  font-size: .6875rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; color: var(--ink);
}
.field label .req { color: var(--gold-ink); }
.field .hint { font-size: var(--fs-xs); color: var(--ink-3); }

.field input, .field select, .field textarea {
  width: 100%; font-family: inherit; font-size: var(--fs-base); color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: .85rem 1rem; min-height: 52px; appearance: none;
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease), background-color .18s var(--ease);
}
.field textarea { min-height: 152px; resize: vertical; line-height: 1.65; }
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23BD842D' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1rem center; background-size: 16px;
  padding-right: 2.75rem; cursor: pointer;
}
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--gold-soft); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; background: var(--surface);
  border-color: var(--gold); box-shadow: 0 0 0 3px rgba(189, 132, 45, .15);
}
.field input::placeholder, .field textarea::placeholder { color: var(--ink-3); opacity: .8; }

.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--error); }
.field .error-msg { display: none; font-size: var(--fs-xs); font-weight: 700; color: var(--error); }
.field.has-error .error-msg { display: block; }

.check {
  display: grid; grid-template-columns: 21px 1fr; gap: .75rem; align-items: start;
  font-size: var(--fs-sm); cursor: pointer;
}
.check input {
  appearance: none; -webkit-appearance: none;
  width: 21px; height: 21px; min-height: 0; margin-top: .2rem; flex: none;
  border: 1px solid var(--line); border-radius: 2px; background: var(--paper); cursor: pointer;
  transition: background-color .15s var(--ease), border-color .15s var(--ease);
}
.check input:checked {
  background: var(--gold) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2316161A' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center / 13px no-repeat;
  border-color: var(--gold);
}
.check.has-error input { border-color: var(--error); }
.check .error-msg { grid-column: 2; display: none; font-size: var(--fs-xs); font-weight: 700; color: var(--error); }
.check.has-error .error-msg { display: block; }

/* Pot de miel anti-spam : invisible sans être display:none */
.hp {
  position: absolute !important; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

.form-foot { margin-top: var(--sp-5); display: grid; gap: var(--sp-4); }

.btn[data-loading="true"] { pointer-events: none; opacity: .7; }
.btn .spinner {
  width: 16px; height: 16px; flex: none; display: none;
  border: 2px solid rgba(250, 249, 247, .35); border-top-color: var(--paper);
  border-radius: 50%; animation: spin .7s linear infinite;
}
.btn[data-loading="true"] .spinner { display: block; }
.btn[data-loading="true"] .btn-ico { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }

.form-status {
  display: none; gap: .85rem; align-items: start;
  padding: 1.1rem 1.25rem; margin-top: var(--sp-4);
  border-radius: var(--radius-sm); font-size: var(--fs-sm);
}
.form-status.is-visible { display: flex; }
.form-status svg { width: 20px; height: 20px; flex: none; margin-top: 2px; }
.form-status--ok { background: var(--gold-wash); border: 1px solid var(--gold-soft); color: #6B4C15; }
.form-status--ko { background: #FBEBE9; border: 1px solid #E9C3BF; color: #7C1912; }
.form-status strong { display: block; margin-bottom: .15rem; color: inherit; }

/* ==========================================================================
   14. Pied de page
   ========================================================================== */

.site-footer { background: var(--ink); color: #9B9891; flex: none; padding-top: clamp(3rem, 2rem + 4vw, 4.5rem); }
.footer-top { text-align: center; padding-bottom: clamp(2.25rem, 1.5rem + 3vw, 3.25rem); border-bottom: 1px solid rgba(255,255,255,.13); }
.footer-tagline {
  margin-top: var(--sp-5);
  font-size: var(--fs-xs); font-weight: 700;
  letter-spacing: .2em; text-transform: uppercase; color: var(--gold-soft);
  text-wrap: balance;
}

.footer-grid { display: grid; gap: var(--sp-6); padding-block: clamp(2.25rem, 1.5rem + 3vw, 3.25rem); }
@media (min-width: 720px) { .footer-grid { grid-template-columns: repeat(3, 1fr); gap: var(--sp-7); } }

.footer-col h4 {
  font-family: var(--font-body); font-size: .6875rem; font-weight: 700;
  letter-spacing: .2em; text-transform: uppercase; color: var(--paper);
  margin-bottom: var(--sp-4);
}
.footer-col ul { list-style: none; padding: 0; display: grid; gap: .7rem; }
.footer-col a, .footer-col span { font-size: var(--fs-sm); color: #9B9891; text-decoration: none; }
.footer-col a { transition: color .2s var(--ease); }
.footer-col a:hover { color: var(--gold-soft); }

/* Au doigt, une ligne de texte de 18 px est une cible trop petite (le
   minimum WCAG 2.5.8 est de 24 px). On épaissit la zone tactile sans
   toucher à la taille du texte. */
@media (max-width: 719px) {
  .footer-col ul { gap: .1rem; }
  .footer-col a { display: inline-block; padding-block: .6rem; }
  .footer-col li:has(> span) { padding-block: .35rem; }
  .footer-bottom a { display: inline-block; padding-block: .5rem; }
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.13); padding-block: 1.4rem;
  display: flex; flex-wrap: wrap; gap: .5rem var(--sp-5);
  align-items: center; justify-content: space-between;
  font-size: var(--fs-xs); color: #77746E;
}
.footer-bottom a { color: #77746E; }
.footer-bottom a:hover { color: var(--gold-soft); }

/* ==========================================================================
   15. Pages internes
   ========================================================================== */

.page-head {
  padding-block: clamp(2.75rem, 1.5rem + 4vw, 5rem) clamp(1.75rem, 1rem + 2vw, 2.75rem);
  border-bottom: 1px solid var(--line); text-align: center;
}
.page-head p { margin: var(--sp-4) auto 0; color: var(--ink-2); font-size: var(--fs-lg); max-width: 58ch; }
.page-head .btn-row { justify-content: center; }

.prose h2 { font-size: var(--fs-xl); margin-top: var(--sp-7); margin-bottom: var(--sp-3); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: var(--fs-h3); margin-top: var(--sp-5); margin-bottom: var(--sp-2); }
.prose p + p, .prose ul, .prose ol { margin-top: var(--sp-4); }
.prose li + li { margin-top: .35rem; }
.prose .todo {
  background: var(--gold-pale); color: #6B4C15;
  padding: .1em .45em; border-radius: 2px; font-weight: 700; font-size: .94em;
}

.thanks { text-align: center; padding-block: clamp(4rem, 2rem + 8vw, 8rem); }
.thanks .ico-big {
  display: grid; place-items: center; width: 84px; height: 84px;
  margin: 0 auto var(--sp-5); border: 1px solid var(--gold-soft);
  border-radius: 50%; color: var(--gold-ink);
}
.thanks .ico-big svg { width: 36px; height: 36px; }
.thanks p { font-size: var(--fs-lg); max-width: 52ch; margin: var(--sp-4) auto 0; }

/* ==========================================================================
   16. Apparition au défilement
   ========================================================================== */

/* Masqué seulement si JavaScript est actif : sans JS, tout reste visible. */
.js .reveal {
  opacity: 0; transform: translateY(14px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
  transition-delay: var(--delay, 0ms);
}
.js .reveal.is-in { opacity: 1; transform: none; }

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

/* ==========================================================================
   17. Impression
   ========================================================================== */

@media print {
  .site-header, .nav-scrim, .btn, .form-card, .hero::before { display: none !important; }
  body { background: #fff; color: #000; padding: 0; }
  .js .reveal { opacity: 1; transform: none; }
}
