/* ==========================================================================
   ARVEYA CONSULTING — Design system
   Palette « Architectural Horizon » (Brand Book, slides 15-25)
   Les tokens ci-dessous migrent tels quels dans le bloc @theme de Tailwind v4.
   ========================================================================== */

/* --- Polices ------------------------------------------------------------ */
@font-face {
  font-family: 'Libre Caslon Display';
  src: url(caslon-display.woff2) format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Libre Caslon Text';
  src: url(caslon-italic.woff2) format('woff2');
  font-weight: 400; font-style: italic; font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url(inter.woff2) format('woff2');
  font-weight: 100 900; font-style: normal; font-display: swap;
}

:root {
  /* Couleurs — Brand Book */
  --slate:      #314252;   /* Deep Slate — ancre, titres            9.4:1 /ivory */
  --bluegrey:   #667887;   /* Blue Grey — grand texte, labels       4.1:1 — jamais en corps de texte */
  --body:       #5E7080;   /* Blue Grey assombri — corps de texte   4.6:1 ✓ AA */
  --ivory:      #F5F3EF;   /* Warm Ivory — fond dominant (~65%)     */
  --taupe:      #CFC6BC;   /* Light Taupe — filets, panneaux (~4%)  */
  --teal:       #6D8583;   /* Smoked Teal — accent décoratif (~1%)  */
  --teal-ink:   #5A7270;   /* Teal assombri — liens, focus          4.7:1 ✓ AA */
  --on-slate:      #F5F3EF;  /* 9.3:1 sur slate */
  --on-slate-soft: #BCC6CE;  /* 5.9:1 sur slate */

  /* Typographie */
  --font-display: 'Libre Caslon Display', 'Libre Caslon Text', Georgia, 'Times New Roman', serif;
  --font-italic:  'Libre Caslon Text', Georgia, serif;
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;

  /* Rythme */
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --section-y: clamp(4.5rem, 9vw, 8.5rem);
  --maxw: 1200px;
  --measure: 68ch;

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

/* --- Reset -------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ivory);
  color: var(--body);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
h1, h2, h3, h4, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { list-style: none; padding: 0; }
a { color: inherit; }
button { font: inherit; color: inherit; }

::selection { background: var(--taupe); color: var(--slate); }

:focus-visible {
  outline: 2px solid var(--teal-ink);
  outline-offset: 3px;
  border-radius: 1px;
}

/* --- Titres ------------------------------------------------------------- */
h1, h2, h3, .display {
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--slate);
  letter-spacing: -0.005em;
}
h1 { font-size: clamp(2.5rem, 5vw, 4rem); line-height: 1.1; }
h2 { font-size: clamp(2rem, 3.5vw, 2.75rem); line-height: 1.18; }
h3 { font-size: 1.125rem; line-height: 1.4; }
em, .italic { font-family: var(--font-italic); font-style: italic; }

/* --- Blocs de base ------------------------------------------------------ */
.wrap { width: min(var(--maxw), 100% - (var(--gutter) * 2)); margin-inline: auto; }
.wrap--narrow { width: min(880px, 100% - (var(--gutter) * 2)); }
.section { padding-block: var(--section-y); }
.section--dark { background: var(--slate); color: var(--on-slate-soft); }
.section--dark h2, .section--dark h3 { color: var(--on-slate); }

/* Surtitre + « horizon line » (Brand Book, élément n°1) */
/* Le libellé porte de l'information : il lui faut 4.5:1, donc --teal-ink
   (4.65:1). Le filet ci-dessous est décoratif et garde le teal pur. */
.eyebrow {
  font-family: var(--font-body);
  font-size: 0.75rem; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--teal-ink);
  margin-bottom: 1.25rem;
}
.eyebrow::after {
  content: ''; display: block;
  width: 2.5rem; height: 1.25pt;
  background: var(--teal);
  margin-top: 0.75rem;
}
.eyebrow--center { text-align: center; }
.eyebrow--center::after { margin-inline: auto; }
.section--dark .eyebrow { color: var(--taupe); }
.section--dark .eyebrow::after { background: var(--taupe); }

/* Filet horizon autonome (sous un titre) */
.rule { display: block; width: 2.5rem; height: 1.25pt; background: var(--teal); margin-top: 1.5rem; }

/* Signature éditoriale — le Caslon Text italique de la charte */
.sig {
  font-family: var(--font-italic); font-style: italic;
  font-size: 1.125rem; line-height: 1.55; color: var(--slate);
}

.lede { max-width: var(--measure); font-size: 1.125rem; }
.muted { color: var(--bluegrey); }

/* En-tête de section en deux colonnes : titre à gauche, accroche à droite */
.section-head { display: grid; gap: clamp(1.5rem, 4vw, 4.5rem); align-items: end; }
@media (min-width: 900px) { .section-head--split { grid-template-columns: 1.2fr 1fr; } }
.section-head__intro { max-width: 40ch; }

/* --- Boutons ------------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: 1rem 2rem;
  font-size: 0.9375rem; font-weight: 500; letter-spacing: 0.02em;
  text-decoration: none; cursor: pointer;
  border: 1px solid var(--slate);
  transition: background-color .25s var(--ease), color .25s var(--ease), transform .25s var(--ease);
}
.btn--primary { background: var(--slate); color: var(--ivory); }
.btn--primary:hover { background: #26333F; transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--slate); }
.btn--ghost:hover { background: var(--slate); color: var(--ivory); transform: translateY(-2px); }
.section--dark .btn--ghost { border-color: var(--taupe); color: var(--on-slate); }
.section--dark .btn--ghost:hover { background: var(--taupe); color: var(--slate); }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.5rem; }

/* Lien texte */
.link {
  color: var(--teal-ink); text-decoration: none;
  border-bottom: 1px solid color-mix(in srgb, var(--teal-ink) 40%, transparent);
  transition: border-color .2s var(--ease);
}
.link:hover { border-bottom-color: var(--teal-ink); }

/* ==========================================================================
   Header
   ========================================================================== */
/* Header fixe : il ne prend pas de place dans le flux, donc le hero démarre
   bien à y=0 sans marge négative fragile dépendante de la hauteur du logo. */
.header {
  position: fixed; inset-inline: 0; top: 0; z-index: 50;
  transition: background-color .35s var(--ease), box-shadow .35s var(--ease);
}
.header::after {
  content: ''; position: absolute; inset-inline: 0; bottom: 0; height: 1px;
  background: var(--taupe); opacity: 0;
  transition: opacity .35s var(--ease);
}
.header.is-stuck { background: color-mix(in srgb, var(--ivory) 92%, transparent); backdrop-filter: blur(10px); }
.header.is-stuck::after { opacity: 1; }

.header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 2rem; padding-block: 1.15rem;
}
.logo { display: block; }
.logo img { width: 132px; height: auto; }

.nav { display: flex; align-items: center; gap: 2.25rem; }
.nav a {
  font-size: 0.875rem; font-weight: 500; letter-spacing: 0.02em;
  color: var(--slate); text-decoration: none; position: relative;
  padding-block: .25rem;
}
.nav a::after {
  content: ''; position: absolute; left: 0; bottom: 0; height: 1px; width: 0;
  background: var(--teal); transition: width .3s var(--ease);
}
.nav a:hover::after, .nav a[aria-current="page"]::after { width: 100%; }

/* Le lien Contact devient un bouton en desktop */
@media (min-width: 900px) {
  .nav .nav__cta {
    background: var(--slate); color: var(--ivory);
    padding: .65rem 1.3rem;
    font-size: .8125rem; letter-spacing: .06em; text-transform: uppercase;
    transition: background-color .25s var(--ease);
  }
  .nav .nav__cta::after { display: none; }
  .nav .nav__cta:hover { background: #26333F; }
}

.nav-toggle { display: none; background: none; border: 0; padding: .5rem; cursor: pointer; }
.nav-toggle svg { display: block; }

/* Sélecteur de langue — registre des surtitres (Inter capitales espacées),
   filet horizon teal sous la langue active, comme le lien de nav courant. */
.lang { display: flex; align-items: center; gap: .7rem; flex: none; }
.lang a, .lang span[aria-current] {
  position: relative; padding-block: .25rem;
  font-size: .75rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase;
  color: var(--body); text-decoration: none;
  transition: color .2s var(--ease);
}
.lang a:hover { color: var(--slate); }
.lang [aria-current] { color: var(--slate); }
.lang a::after, .lang [aria-current]::after {
  content: ''; position: absolute; left: 0; bottom: 0; height: 1px; width: 0;
  background: var(--teal); transition: width .3s var(--ease);
}
.lang a:hover::after, .lang [aria-current]::after { width: 100%; }
.lang__sep { width: 1px; height: .85rem; background: var(--taupe); }

@media (min-width: 900px) {
  .nav { margin-left: auto; }
  .lang { padding-left: 1.75rem; border-left: 1px solid var(--taupe); }
}
/* Les libellés français sont plus longs : on resserre la nav juste au-dessus
   du point de bascule mobile pour qu'elle tienne sur une ligne. */
@media (min-width: 900px) and (max-width: 1099px) {
  .header__inner { gap: 1.5rem; }
  .nav { gap: 1.5rem; }
  .lang { padding-left: 1.25rem; }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative; min-height: min(94vh, 900px);
  display: flex; flex-direction: column; justify-content: flex-end;
}
.hero__media { position: absolute; inset: 0; overflow: hidden; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 62% center; }
.hero__media::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(100deg,
    var(--ivory) 0%,
    color-mix(in srgb, var(--ivory) 88%, transparent) 30%,
    color-mix(in srgb, var(--ivory) 30%, transparent) 55%,
    transparent 78%);
}
.hero__inner { position: relative; flex: 1; display: flex; align-items: center; padding-block: 8rem 4rem; }
/* La boîte doit tenir la plus longue ligne du titre en Caslon display,
   sinon le H1 déborde (« Sustainable Growth. » est insécable). */
.hero__content { max-width: min(54ch, 48vw); }
.hero .eyebrow { margin-bottom: clamp(1.5rem, 3vw, 2rem); }
.hero h1 { margin-bottom: 1.75rem; text-wrap: balance; }
.hero .lede { font-size: 1.1875rem; max-width: 42ch; }

/* Ligne d'horizon jalonnée en pied de hero : la méthode, annoncée */
.hero__framework {
  position: relative;
  border-top: 1px solid color-mix(in srgb, var(--taupe) 85%, transparent);
  background: color-mix(in srgb, var(--ivory) 72%, transparent);
  backdrop-filter: blur(8px);
}
.hero__framework-inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: .35rem clamp(1rem, 3vw, 2rem);
  padding-block: 1.15rem;
}
.hero__framework span { font-size: .6875rem; letter-spacing: .16em; text-transform: uppercase; color: var(--body); flex: none; }
.hero__framework span:first-child { color: var(--teal-ink); }
.hero__framework .is-last { color: var(--slate); font-weight: 500; }
.hero__framework .hl { flex: 1 1 1rem; min-width: .75rem; height: 1px; padding: 0; background: var(--taupe); }

/* ==========================================================================
   Statement / séparateurs éditoriaux
   ========================================================================== */
.statement { display: grid; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
@media (min-width: 860px) { .statement { grid-template-columns: 0.9fr 1.1fr; } }
.statement h2 { max-width: 16ch; }
.statement__body { max-width: 52ch; }
.statement__body p + p { margin-top: 1.25rem; }
.statement__body .sig { margin-top: 2rem; }

.divider { text-align: center; padding-block: clamp(3.5rem, 7vw, 6rem); }
.divider p {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  line-height: 1.3; color: var(--slate);
  max-width: 24ch; margin-inline: auto;
}
.divider::before {
  content: ''; display: block; width: 1px; height: 3.5rem;
  background: linear-gradient(var(--taupe), transparent);
  margin: 0 auto 2.5rem;
}

/* Séparateur illustré (phare) */
.band { position: relative; min-height: clamp(320px, 45vw, 520px); display: grid; place-items: center; overflow: hidden; }
.band img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.band::after { content: ''; position: absolute; inset: 0; background: rgba(49,66,82,.34); }
.band p {
  position: relative; z-index: 1; text-align: center;
  font-family: var(--font-display); color: #fff;
  font-size: clamp(1.75rem, 3.6vw, 2.75rem); line-height: 1.25;
  max-width: 20ch; padding-inline: var(--gutter);
  text-shadow: 0 1px 24px rgba(30,40,50,.45);
}

/* ==========================================================================
   What we do — 4 piliers
   ========================================================================== */
/* Traitement typographique, sans photo : les visuels de service disponibles
   (DT1, Lead) portent du texte incrusté et un registre « stock » qui contredit
   le positionnement. Les fichiers restent dans preview/assets/ si de nouveaux
   visuels de marque sont fournis. */
.grid-services { display: grid; gap: 0 clamp(2.5rem, 5vw, 5rem); margin-top: clamp(2.5rem, 4vw, 3.5rem); }
@media (min-width: 768px) {
  .grid-services { grid-template-columns: 1fr 1fr; }
  /* Nombre impair de services : le dernier occupe toute la largeur. */
  .service:nth-child(odd):last-child { grid-column: 1 / -1; }
}

.service { padding-block: clamp(2rem, 3.5vw, 2.75rem); border-top: 1px solid var(--taupe); }
.service__num {
  display: block; font-family: var(--font-display); font-size: 2.25rem;
  line-height: 1; color: var(--taupe); margin-bottom: .9rem;
}
.service h3 {
  font-family: var(--font-display); font-size: 1.625rem; line-height: 1.25;
  margin-bottom: .85rem;
}
.service > p { max-width: 42ch; }
.service__list { display: flex; flex-wrap: wrap; gap: .5rem .75rem; margin-top: 1.25rem; }
.service__list li {
  font-size: 0.8125rem; letter-spacing: .01em; color: var(--body);
  border: 1px solid var(--taupe); padding: .3rem .75rem;
}

/* ==========================================================================
   Industries
   ========================================================================== */
/* Index éditorial illustré : grandes capitales Caslon en rangées, séparées
   par des filets taupe. Au survol, le nom glisse, un filet horizon teal se
   déploie et le glyphe du secteur — même trait bronze que les icônes de la
   méthode — apparaît en bout de ligne. Sur écran tactile, le glyphe est
   affiché en permanence. */
.idx { margin-top: clamp(2.5rem, 4vw, 3.5rem); border-top: 1px solid var(--taupe); }
.idx__row {
  display: flex; align-items: center; gap: clamp(1.25rem, 3vw, 2.5rem);
  padding-block: clamp(1rem, 1.8vw, 1.4rem);
  border-bottom: 1px solid var(--taupe);
}
.idx__num { font-size: .75rem; letter-spacing: .14em; color: var(--teal-ink); flex: none; width: 2.4ch; }
.idx__name {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.5rem); line-height: 1.15; color: var(--slate);
  transition: transform .35s var(--ease);
}
.idx__fil { flex: 1; position: relative; height: 1px; min-width: 1rem; overflow: hidden; }
.idx__fil::after {
  content: ''; position: absolute; left: 0; top: 0;
  height: 1.25pt; width: 0; background: var(--teal);
  transition: width .5s var(--ease);
}
.idx__glyph { flex: none; opacity: 0; transform: translateX(-8px); transition: opacity .35s var(--ease), transform .35s var(--ease); }
@media (hover: hover) {
  .idx__row:hover .idx__name { transform: translateX(.6rem); }
  .idx__row:hover .idx__fil::after { width: 100%; }
  .idx__row:hover .idx__glyph { opacity: 1; transform: none; }
}
@media (hover: none) { .idx__glyph { opacity: 1; transform: none; width: 34px; height: 34px; } }
@media print { .idx__glyph { opacity: 1; transform: none; } }

/* ==========================================================================
   How we work — timeline
   ========================================================================== */
/* Une ligne d'horizon continue, jalonnée de losanges ; le départ en teal */
.method {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr));
  gap: 0;
  margin-top: clamp(3rem, 5vw, 4.5rem);
}
.step {
  position: relative;
  padding: clamp(1.75rem, 3vw, 2.25rem) clamp(1.25rem, 2.5vw, 2rem) clamp(1.75rem, 3vw, 2.25rem) 0;
  border-top: 1px solid var(--taupe);
}
.step::before {
  content: ''; position: absolute; top: -4px; left: 0;
  width: 7px; height: 7px;
  background: var(--taupe); transform: rotate(45deg);
}
.step:first-child { border-top-color: var(--teal); }
.step:first-child::before { background: var(--teal); }

.step__icon { width: clamp(52px, 5vw, 68px); height: auto; margin-bottom: 1rem; }
.step__num { font-size: .6875rem; letter-spacing: .12em; color: var(--teal-ink); font-weight: 500; }
.step h3 { font-family: var(--font-display); font-size: 1.375rem; margin: .4rem 0 .6rem; }
.step p { font-size: .9375rem; }

/* ==========================================================================
   The Arveya Difference — section sombre
   ========================================================================== */
.diff-list { display: grid; gap: 0; margin-top: clamp(2.5rem, 4vw, 3.5rem); }
@media (min-width: 860px) { .diff-list { grid-template-columns: 1fr 1fr; column-gap: clamp(2.5rem, 5vw, 5rem); } }
.diff {
  padding-block: 2rem;
  border-top: 1px solid rgba(245,243,239,.16);
}
.diff h3 { font-family: var(--font-display); font-size: 1.5rem; margin-bottom: .75rem; }
.diff p { font-size: .9375rem; max-width: 46ch; }

/* Logo en filigrane dans la section sombre.
   Le contenu passe au-dessus (z-index) : en une colonne, le filigrane
   glisse sous le texte sans le voiler. */
.section--dark { position: relative; overflow: hidden; }
.section--dark > .wrap { position: relative; z-index: 1; }
.watermark {
  position: absolute; z-index: 0;
  right: clamp(1.25rem, 4vw, 4rem); bottom: clamp(1.5rem, 3vw, 3rem);
  width: clamp(150px, 16vw, 240px); height: auto;
  opacity: .28; pointer-events: none;
}
@media (max-width: 859px) { .watermark { opacity: .14; } }

/* ==========================================================================
   About
   ========================================================================== */
.about { display: grid; gap: clamp(2.5rem, 5vw, 4.5rem); align-items: center; }
@media (min-width: 860px) { .about { grid-template-columns: 0.85fr 1fr; } }
.about__media { position: relative; }
.about__media > img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.about p + p { margin-top: 1.25rem; }

/* Carte statistique en surimpression de la photo */
.about__stat {
  position: absolute; right: 0; bottom: 0;
  background: var(--ivory);
  padding: 1.35rem 1.6rem; max-width: 15rem;
}
.about__stat-num { font-family: var(--font-display); font-size: clamp(2rem, 3.4vw, 2.75rem); line-height: 1; color: var(--slate); }
.about__stat-num span { color: var(--teal); }
.about__stat-label { font-size: .6875rem; letter-spacing: .14em; text-transform: uppercase; color: var(--body); margin-top: .5rem; }

/* ==========================================================================
   Insights — encart teaser
   ========================================================================== */
.insights-wrap { padding-block: 0; }
.insights-teaser {
  border: 1px solid var(--taupe);
  background: color-mix(in srgb, var(--taupe) 14%, transparent);
  padding: clamp(1.75rem, 4vw, 3rem);
  display: grid; gap: clamp(1.25rem, 3vw, 3rem); align-items: center;
}
@media (min-width: 860px) { .insights-teaser { grid-template-columns: 1fr 1fr; } }
.insights-teaser .eyebrow { margin-bottom: 1rem; }
.insights-teaser h3 { font-family: var(--font-display); font-size: clamp(1.5rem, 2.4vw, 2rem); line-height: 1.2; }
/* Sur fond teinté, --body retombe sous 4.5:1 : le texte passe en slate. */
.insights-teaser > p { color: var(--slate); max-width: 48ch; }

/* ==========================================================================
   Footer
   ========================================================================== */
.footer { background: var(--slate); color: var(--on-slate-soft); padding-block: clamp(3.5rem, 6vw, 5rem) 2.5rem; }
.footer__top { display: grid; gap: 2.5rem; }
@media (min-width: 760px) { .footer__top { grid-template-columns: 1.4fr 1fr 1fr; gap: 3rem; } }
.footer__logo img { width: 168px; }
.footer__sig {
  font-family: var(--font-display); color: var(--on-slate);
  font-size: 1.0625rem; line-height: 1.5; margin-top: 1.25rem; max-width: 26ch;
}
.footer__descr { font-size: .8125rem; letter-spacing: .1em; text-transform: uppercase; color: var(--taupe); margin-top: .85rem; }
.footer h4 { font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--taupe); font-weight: 500; margin-bottom: 1.1rem; }
.footer li + li { margin-top: .6rem; }
.footer a { text-decoration: none; font-size: .9375rem; transition: color .2s var(--ease); }
.footer a:hover { color: var(--on-slate); }
.footer__bottom {
  margin-top: clamp(2.5rem, 5vw, 4rem); padding-top: 1.75rem;
  border-top: 1px solid rgba(245,243,239,.16);
  display: flex; flex-wrap: wrap; gap: 1rem 2rem; justify-content: space-between;
  font-size: .8125rem;
}
.footer__bottom a { font-size: .8125rem; }

/* ==========================================================================
   Contact
   ========================================================================== */
.contact-head { max-width: 46ch; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.contact-head .lede { margin-top: 1.5rem; }

.contact-grid { display: grid; gap: clamp(2.5rem, 5vw, 4.5rem); }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1fr 0.8fr; } }

.field { margin-bottom: 1.5rem; }
.field label { display: block; font-size: .75rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--body); margin-bottom: .5rem; }
.field input, .field textarea {
  width: 100%; padding: .85rem 1rem;
  font: inherit; font-size: .9375rem; color: var(--slate);
  background: transparent; border: 1px solid var(--taupe);
  transition: border-color .2s var(--ease);
}
.field input:focus, .field textarea:focus { border-color: var(--teal-ink); }
.field textarea { min-height: 9rem; resize: vertical; }
.consent { display: flex; gap: .75rem; align-items: flex-start; font-size: .8125rem; margin-bottom: 1.75rem; }
.consent input { margin-top: .25rem; flex: none; accent-color: var(--slate); }

/* Sur fond légèrement teinté, --body retombe à 4.30:1 : la note passe en slate. */
.form-note {
  border-left: 2px solid var(--teal); background: color-mix(in srgb, var(--taupe) 18%, transparent);
  padding: .9rem 1.1rem; font-size: .8125rem; margin-bottom: 2rem; color: var(--slate);
}

/* Champ piège anti-robots : hors écran, ignoré des lecteurs d'écran */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.field__opt { text-transform: none; letter-spacing: 0; font-weight: 400; color: var(--bluegrey); }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: #9A4B3F; }

/* Vérification « humain » — même cadre que les champs */
.human {
  display: flex; align-items: center; gap: .85rem;
  padding: .85rem 1rem; margin-bottom: 1.75rem;
  border: 1px solid var(--taupe);
  transition: border-color .2s var(--ease);
}
.human input { width: 1.15rem; height: 1.15rem; margin: 0; flex: none; accent-color: var(--slate); cursor: pointer; }
.human label { font-size: .9375rem; color: var(--slate); cursor: pointer; }
.human__status {
  margin-left: auto; display: inline-flex; align-items: center; gap: .45rem;
  font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--body);
  text-align: right;
}
.human__status svg { width: 1rem; height: 1rem; flex: none; }
.human__spin {
  width: .95rem; height: .95rem; border-radius: 50%; flex: none;
  border: 1.25pt solid var(--taupe); border-top-color: var(--teal-ink);
  animation: human-spin .8s linear infinite;
}
@keyframes human-spin { to { transform: rotate(360deg); } }
.human[data-state="verifying"] input { cursor: progress; }
.human[data-state="done"] { border-color: var(--teal); }
.human[data-state="done"] .human__status { color: var(--teal-ink); }
.human[data-state="failed"], .human.is-invalid { border-color: #9A4B3F; }
.human[data-state="failed"] .human__status { color: #8A3F34; }

.form-status {
  margin-top: 1.5rem; padding: .9rem 1.1rem; font-size: .875rem; color: var(--slate);
  border-left: 2px solid var(--teal); background: color-mix(in srgb, var(--taupe) 18%, transparent);
}
.form-status[data-kind="error"] { border-left-color: #9A4B3F; }
.btn.is-busy { opacity: .7; cursor: progress; transform: none; }
.channels { display: grid; gap: 0; border-top: 1px solid var(--taupe); }
.channel {
  display: flex; align-items: center; gap: 1rem;
  padding: 1.15rem 0; border-bottom: 1px solid var(--taupe);
  text-decoration: none; color: var(--slate); font-size: .9375rem;
  transition: padding-left .3s var(--ease);
}
a.channel:hover { padding-left: .5rem; }
.channel svg { width: 1.15rem; height: 1.15rem; color: var(--teal); flex: none; }
.channel small { display: block; color: var(--body); font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; }
.contact-aside__media { margin-top: 2rem; }
.contact-aside__media img { display: block; width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: 50% 62%; }

/* En deux colonnes, la photo est l'élément flexible de la colonne de droite :
   son conteneur remplit la hauteur restante et l'image, en absolu, s'y recadre
   (object-fit) sans participer à la hauteur — les deux colonnes se terminent
   ainsi au même niveau, alignées sur le bas du formulaire. */
@media (min-width: 900px) {
  .contact-aside { display: flex; flex-direction: column; }
  .contact-aside__media { flex: 1; min-height: 13rem; position: relative; }
  .contact-aside__media img { position: absolute; inset: 0; height: 100%; aspect-ratio: auto; }
}

/* ==========================================================================
   Insights / pages légales
   ========================================================================== */
/* Dégage le header fixe (~100 px) sur toutes les vues hors home */
.page-head { padding-block: clamp(8rem, 12vw, 10.5rem) clamp(2rem, 4vw, 3rem); }
.prose { max-width: var(--measure); }
.prose h2 { font-size: 1.5rem; margin-top: 3rem; margin-bottom: .9rem; }
.prose h2:first-child { margin-top: 0; }
.prose p + p, .prose ul + p, .prose p + ul { margin-top: 1rem; }
.prose ul { margin-top: 1rem; }
.prose li { position: relative; padding-left: 1.25rem; margin-bottom: .5rem; }
.prose li::before { content: ''; position: absolute; left: 0; top: .75em; width: .4rem; height: 1px; background: var(--teal); }
.todo {
  background: color-mix(in srgb, var(--taupe) 35%, transparent);
  border: 1px dashed var(--bluegrey);
  padding: .1rem .5rem; font-size: .875rem; font-weight: 500; color: var(--slate);
  white-space: nowrap;
}

/* ==========================================================================
   Vues (navigation interne à fichier unique)
   ========================================================================== */
.has-js .view[hidden] { display: none; }
.view[hidden] { display: block; }  /* sans JS : tout reste lisible à la suite */

/* ==========================================================================
   Reveal au scroll
   ========================================================================== */
.has-js .reveal { opacity: 0; transform: translateY(16px); }
.has-js .reveal.is-in {
  opacity: 1; transform: none;
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}

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

/* ==========================================================================
   Responsive — header mobile
   ========================================================================== */
@media (max-width: 899px) {
  .nav-toggle { display: block; }
  /* Pas de backdrop-filter sur le header mobile : il ferait du header le
     bloc conteneur du menu fixed (le menu se retrouverait confiné dedans). */
  .header.is-stuck { background: color-mix(in srgb, var(--ivory) 97%, transparent); backdrop-filter: none; }
  .nav {
    position: fixed; inset: 0; z-index: 60;
    flex-direction: column; justify-content: center; gap: 1.75rem;
    background: var(--ivory);
    visibility: hidden; transform: translateY(-100%);
    transition: transform .4s var(--ease), visibility 0s .4s;
  }
  .nav[data-open="true"] { visibility: visible; transform: none; transition: transform .4s var(--ease); }
  .nav a { font-family: var(--font-display); font-size: 1.5rem; }
  .nav a::after { display: none; }
  .nav__close { position: absolute; top: 1.35rem; right: var(--gutter); background: none; border: 0; cursor: pointer; padding: .5rem; line-height: 0; }
  /* En mobile, le sélecteur reste visible dans la barre, à gauche du burger */
  .header__inner { gap: 1rem; }
  .logo { margin-right: auto; }
  .lang { order: 2; }
  .nav-toggle { order: 3; margin-right: -.5rem; }
  /* Hero mobile empilé. En portrait, object-fit:cover sur une image paysage
     affiche toute sa hauteur : l'horizon finit donc toujours sous le texte.
     On sépare les deux — bande image, texte sur ivoire, puis la ligne
     d'horizon jalonnée en pied. */
  .hero { display: block; min-height: 0; }
  .hero__media { position: relative; height: 42vh; min-height: 250px; max-height: 400px; }
  .hero__media img { object-position: 58% center; }
  .hero__media::after { background: linear-gradient(180deg, transparent 58%, var(--ivory) 100%); }
  .hero__inner { display: block; padding-block: 2rem 3rem; }
  .hero__content { max-width: none; }
  .hero__framework { background: transparent; backdrop-filter: none; }
}
@media (min-width: 900px) { .nav__close { display: none; } }

/* ==========================================================================
   Impression
   ========================================================================== */
@media print {
  .nav-toggle, .header, .btn-row, .lang { display: none !important; }
  .has-js .view[hidden] { display: block !important; }
  .has-js .reveal { opacity: 1 !important; transform: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .section { padding-block: 1.5rem; break-inside: avoid; }
  .section--dark, .footer { background: #fff !important; color: #000 !important; }
  .section--dark h2, .section--dark h3, .footer a { color: #000 !important; }
  .band::after { background: rgba(0,0,0,.25); }
  .hero { min-height: auto; margin-top: 0; }
  .watermark { display: none; }
  a[href^="http"]::after { content: ' (' attr(href) ')'; font-size: 9pt; color: #555; }
}
