/* ==========================================================================
   Dr Sarah Viennet - Psychiatre Psychothérapeute
   Design system
   --------------------------------------------------------------------------
   Palette   : "Forest" - pin profond + bone froid + sauge (accent unique)
   Typo      : Instrument Sans (display + texte), tracking serré en display
   Rayons    : boutons pill (999px) / cartes 16px / champs 12px
   Thème     : light par défaut, dark automatique (prefers-color-scheme)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */

:root {
  color-scheme: light dark;

  /* Surfaces */
  --bg:            #f5f5f1;
  --bg-alt:        #eceae4;
  --surface:       #ffffff;
  --surface-sunk:  #e9e8e2;

  /* Encre */
  --ink:           #141a17;
  --ink-soft:      #4d5854;
  --ink-faint:     #5c6762;
  --hairline:      rgba(20, 26, 23, .12);
  --hairline-soft: rgba(20, 26, 23, .07);

  /* Marque */
  --pine:          #11291f;
  --pine-deep:     #0c1e16;
  --pine-soft:     #1d3d2e;
  --accent:        #2f5c48;
  --accent-hover:  #24483a;
  --accent-tint:   rgba(47, 92, 72, .09);
  --on-pine:       #eef1ec;
  --on-pine-soft:  rgba(238, 241, 236, .68);

  /* Rayons */
  --r-pill: 999px;
  --r-card: 16px;
  --r-field: 12px;
  --r-media: 18px;

  /* Rythme */
  --gutter: clamp(1.25rem, 4vw, 3.5rem);
  --wrap: 1240px;
  --section-y: clamp(4.5rem, 9vw, 8.5rem);

  /* Typo */
  --font: "Instrument Sans", ui-sans-serif, system-ui, -apple-system,
          "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Motion */
  --ease: cubic-bezier(.16, 1, .3, 1);
  --dur: .5s;

  /* Ombres teintées sur le fond, jamais du noir pur */
  --shadow-sm: 0 1px 2px rgba(17, 41, 31, .06), 0 4px 14px rgba(17, 41, 31, .05);
  --shadow-md: 0 2px 6px rgba(17, 41, 31, .07), 0 18px 44px rgba(17, 41, 31, .09);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg:            #0e1512;
    --bg-alt:        #131c18;
    --surface:       #16211c;
    --surface-sunk:  #101815;

    --ink:           #e9ede9;
    --ink-soft:      #a4b0aa;
    --ink-faint:     #7f8b85;
    --hairline:      rgba(233, 237, 233, .14);
    --hairline-soft: rgba(233, 237, 233, .08);

    --pine:          #0b130f;
    --pine-deep:     #080f0c;
    --pine-soft:     #16241d;
    --accent:        #86bda1;
    --accent-hover:  #a3d0b8;
    --accent-tint:   rgba(134, 189, 161, .13);
    --on-pine:       #e9ede9;
    --on-pine-soft:  rgba(233, 237, 233, .66);

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .34);
    --shadow-md: 0 2px 8px rgba(0, 0, 0, .36), 0 22px 50px rgba(0, 0, 0, .4);
  }
}

/* --------------------------------------------------------------------------
   2. Base
   -------------------------------------------------------------------------- */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 500;
  letter-spacing: -.03em;
  line-height: 1.08;
  text-wrap: balance;
}

p { margin: 0; text-wrap: pretty; }

a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection { background: var(--accent); color: #fff; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: .75rem 1.25rem;
  background: var(--pine);
  color: var(--on-pine);
  border-radius: 0 0 var(--r-field) 0;
}
.skip-link:focus { left: 0; }

/* --------------------------------------------------------------------------
   3. Layout
   -------------------------------------------------------------------------- */

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.wrap--narrow { max-width: 860px; }

.section { padding-block: var(--section-y); }
.section--tight { padding-block: clamp(3rem, 6vw, 5.5rem); }
.section--alt { background: var(--bg-alt); }

.stack   { display: grid; gap: 1.25rem; }
.stack-s { display: grid; gap: .75rem; }
.stack-l { display: grid; gap: 2rem; }

.lede {
  font-size: clamp(1.0625rem, 1.5vw, 1.25rem);
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 62ch;
}

.body-text { color: var(--ink-soft); max-width: 68ch; }
.body-text + .body-text { margin-top: 1rem; }

/* --------------------------------------------------------------------------
   4. Typographie d'affichage
   -------------------------------------------------------------------------- */

.display {
  font-size: clamp(2.5rem, 6.2vw, 4.25rem);
  line-height: 1.02;
  letter-spacing: -.04em;
}

.h-section {
  font-size: clamp(1.875rem, 3.6vw, 3rem);
  letter-spacing: -.035em;
}

.h-sub {
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  letter-spacing: -.02em;
}

.h-card {
  font-size: 1.1875rem;
  letter-spacing: -.02em;
  line-height: 1.25;
}

.eyebrow {
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
}

/* --------------------------------------------------------------------------
   5. Boutons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  white-space: nowrap;
  padding: .8125rem 1.5rem;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  font: inherit;
  font-size: .9375rem;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s var(--ease), color .2s var(--ease),
              border-color .2s var(--ease), transform .12s var(--ease);
}

.btn:active { transform: translateY(1px); }

.btn--primary {
  background: var(--pine);
  color: var(--on-pine);
}
.btn--primary:hover { background: var(--pine-soft); }

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--hairline);
}
.btn--ghost:hover { border-color: var(--ink); background: var(--accent-tint); }

.btn--on-dark {
  background: var(--on-pine);
  color: var(--pine-deep);
}
.btn--on-dark:hover { background: #fff; }

.btn--sm { padding: .625rem 1.125rem; font-size: .875rem; }

@media (prefers-color-scheme: dark) {
  .btn--primary { background: var(--accent); color: #08120d; }
  .btn--primary:hover { background: var(--accent-hover); }
}

/* Lien texte avec soulignement animé */
.link-u {
  color: var(--accent);
  text-decoration: none;
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 100% 1px;
  background-repeat: no-repeat;
  background-position: 0 100%;
  padding-bottom: 2px;
  transition: background-size .3s var(--ease);
}
.link-u:hover { background-size: 0% 1px; }

/* --------------------------------------------------------------------------
   6. En-tête
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--hairline-soft);
}

@supports not (backdrop-filter: blur(1px)) {
  .site-header { background: var(--bg); }
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: 70px;
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: .5rem;
  text-decoration: none;
  letter-spacing: -.02em;
  font-weight: 600;
  font-size: 1rem;
}
.brand span { font-weight: 400; color: var(--ink-faint); font-size: .8125rem; letter-spacing: 0; }

.nav { display: flex; align-items: center; gap: clamp(.75rem, 2vw, 1.75rem); }

.nav__list {
  display: flex;
  align-items: center;
  gap: clamp(.75rem, 1.8vw, 1.625rem);
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav__link {
  font-size: .9375rem;
  text-decoration: none;
  color: var(--ink-soft);
  transition: color .2s var(--ease);
}
.nav__link:hover { color: var(--ink); }
.nav__link[aria-current="page"] { color: var(--ink); font-weight: 500; }

@media (max-width: 560px) {
  /* Sous-titre de marque masqué : il ferait passer l'en-tête sur deux lignes */
  .brand span { display: none; }
}

.nav__toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--hairline);
  border-radius: var(--r-pill);
  color: var(--ink);
  cursor: pointer;
}

@media (max-width: 880px) {
  .nav__toggle { display: inline-flex; }
  .nav {
    position: fixed;
    inset: 70px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 1rem var(--gutter) 1.75rem;
    background: var(--bg);
    border-bottom: 1px solid var(--hairline);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .22s var(--ease), transform .22s var(--ease), visibility .22s;
  }
  .nav[data-open="true"] { transform: none; opacity: 1; visibility: visible; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__link { display: block; padding: .875rem 0; font-size: 1.0625rem; border-bottom: 1px solid var(--hairline-soft); }
  .nav .btn { margin-top: 1rem; }
}

/* --------------------------------------------------------------------------
   7. Hero
   -------------------------------------------------------------------------- */

.hero {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  align-items: stretch;
  min-height: min(88dvh, 780px);
}

.hero__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.75rem;
  padding: clamp(3rem, 6vw, 5.5rem) clamp(1.25rem, 4vw, 4.5rem)
           clamp(3rem, 6vw, 5.5rem) max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter)));
}

/* Le titre du hero est calé pour tenir sur 2 lignes au desktop */
.hero__content .display { font-size: clamp(2rem, 3.2vw, 2.5rem); max-width: 30ch; }

.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; }

.hero__media { position: relative; overflow: hidden; background: var(--pine); }

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Voile vert très léger : accorde la photo à la charte sans la dénaturer.
   Pour une photo dont la dominante jure vraiment, remonter le grayscale du filtre. */
.duotone { position: relative; }
.duotone img { filter: saturate(.9) contrast(1.03); }
.duotone::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(205deg, rgba(17, 41, 31, .16), rgba(17, 41, 31, .04) 55%, rgba(17, 41, 31, .18));
  pointer-events: none;
}

/* Variante alignée : le hero reste dans le conteneur, comme le reste du site */
.hero--contained {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
  gap: clamp(2rem, 4vw, 4rem);
  min-height: min(76dvh, 680px);
}
.hero--contained .hero__content { padding: clamp(3rem, 5vw, 4.5rem) 0; }
.hero--contained .hero__media { border-radius: var(--r-media); }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero__content { padding: clamp(2.5rem, 8vw, 4rem) var(--gutter); order: 2; }
  .hero__media { order: 1; aspect-ratio: 16 / 10; }
  .hero--contained { padding-inline: 0; gap: 0; }
  .hero--contained .hero__content { padding: clamp(2.5rem, 8vw, 4rem) var(--gutter); }
  .hero--contained .hero__media { border-radius: 0; }
}

/* --------------------------------------------------------------------------
   8. Bandeau de repères (sous le hero)
   -------------------------------------------------------------------------- */

.facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--hairline-soft);
}

.facts__item {
  padding: 1.75rem clamp(1rem, 2.5vw, 2rem) 1.75rem 0;
  display: grid;
  gap: .25rem;
}
.facts__item + .facts__item { padding-left: clamp(1rem, 2.5vw, 2rem); border-left: 1px solid var(--hairline-soft); }
.facts__k { font-size: .8125rem; color: var(--ink-faint); }
.facts__v { font-size: 1.0625rem; font-weight: 500; letter-spacing: -.015em; }

@media (max-width: 720px) {
  .facts { grid-template-columns: 1fr; }
  .facts__item { padding: 1.25rem 0; }
  .facts__item + .facts__item { padding-left: 0; border-left: 0; border-top: 1px solid var(--hairline-soft); }
}

/* --------------------------------------------------------------------------
   9. Bloc éditorial décalé (texte + image)
   -------------------------------------------------------------------------- */

.editorial {
  display: grid;
  grid-template-columns: 5fr 6fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}

.editorial--flip > :first-child { order: 2; }

.editorial__media {
  border-radius: var(--r-media);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--surface-sunk);
}
.editorial__media img { width: 100%; height: 100%; object-fit: cover; }

.editorial__media--wide { aspect-ratio: 3 / 2; }

@media (max-width: 860px) {
  .editorial { grid-template-columns: 1fr; gap: 2rem; }
  .editorial--flip > :first-child { order: 0; }
  .editorial__media { aspect-ratio: 16 / 11; }
}

/* --------------------------------------------------------------------------
   10. Grille de soins (bento asymétrique, 3 cellules)
   -------------------------------------------------------------------------- */

.bento {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  grid-auto-rows: minmax(0, auto);
  gap: 1rem;
}

.bento__cell {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: .625rem;
  min-height: 260px;
  padding: clamp(1.5rem, 2.5vw, 2.25rem);
  border-radius: var(--r-card);
  overflow: hidden;
  text-decoration: none;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.bento__cell:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }

.bento__cell--tall { grid-row: span 2; min-height: 100%; }

.bento__cell--photo { color: #f2f5f1; }
.bento__cell--photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.bento__cell--photo > * { position: relative; z-index: 2; }
.bento__cell--photo::after {
  content: "";
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(to top, rgba(8, 18, 13, .94) 0%, rgba(8, 18, 13, .80) 34%, rgba(8, 18, 13, .34) 64%, rgba(8, 18, 13, .12) 100%);
}
.bento__cell--photo p { color: rgba(242, 245, 241, .82); }

.bento__cell--pine { background: var(--pine); color: var(--on-pine); }
.bento__cell--pine p { color: var(--on-pine-soft); }

.bento__cell--plain {
  background: var(--surface);
  border: 1px solid var(--hairline-soft);
  color: var(--ink);
}
.bento__cell--plain p { color: var(--ink-soft); }

.bento__cell p { font-size: .9375rem; line-height: 1.55; max-width: 42ch; }

.bento__more { margin-top: .375rem; font-size: .875rem; font-weight: 500; opacity: .9; }

@media (max-width: 860px) {
  .bento { grid-template-columns: 1fr; }
  .bento__cell--tall { grid-row: auto; min-height: 300px; }
}

/* --------------------------------------------------------------------------
   11. Parcours (chronologie groupée)
   -------------------------------------------------------------------------- */

.timeline { display: grid; gap: clamp(2.5rem, 4vw, 3.5rem); }

.timeline__group {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: clamp(1.25rem, 3vw, 3rem);
  padding-top: 1.75rem;
  border-top: 1px solid var(--hairline);
}

.timeline__label { font-size: 1.0625rem; font-weight: 500; letter-spacing: -.02em; }

.timeline__items { display: grid; gap: 1.125rem; margin: 0; padding: 0; list-style: none; }

.timeline__item { display: grid; grid-template-columns: 108px 1fr; gap: 1rem; align-items: baseline; }
.timeline__year {
  font-size: .8125rem;
  font-variant-numeric: tabular-nums;
  color: var(--accent);
  font-weight: 500;
}
.timeline__desc { color: var(--ink-soft); font-size: .9688rem; line-height: 1.55; }

@media (max-width: 760px) {
  .timeline__group { grid-template-columns: 1fr; gap: 1.25rem; }
  .timeline__item { grid-template-columns: 1fr; gap: .125rem; }
}

/* --------------------------------------------------------------------------
   12. Soins : blocs détaillés
   -------------------------------------------------------------------------- */

.care {
  display: grid;
  grid-template-columns: 1fr 1.55fr;
  gap: clamp(1.75rem, 4vw, 4rem);
  padding-top: clamp(2.25rem, 4vw, 3.25rem);
  border-top: 1px solid var(--hairline);
}

.care__aside { display: grid; gap: 1rem; align-content: start; position: sticky; top: 100px; }
.care__figure { border-radius: var(--r-media); overflow: hidden; aspect-ratio: 4 / 3; }
.care__figure img { width: 100%; height: 100%; object-fit: cover; }

.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0; padding: 0; list-style: none; }
.chips li {
  padding: .4375rem .875rem;
  font-size: .8438rem;
  line-height: 1.2;
  border-radius: var(--r-pill);
  background: var(--accent-tint);
  color: var(--accent);
}

.note {
  display: grid;
  gap: .375rem;
  padding: 1.125rem 1.25rem;
  border-radius: var(--r-field);
  background: var(--surface-sunk);
  border-left: 3px solid var(--accent);
}
.note strong { font-weight: 500; font-size: .875rem; }
.note p { font-size: .9063rem; color: var(--ink-soft); }

@media (max-width: 900px) {
  .care { grid-template-columns: 1fr; }
  .care__aside { position: static; }
}

/* --------------------------------------------------------------------------
   13. Contact
   -------------------------------------------------------------------------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 3vw, 2.5rem);
}

.panel {
  display: grid;
  gap: 1.25rem;
  align-content: start;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border-radius: var(--r-card);
  background: var(--surface);
  border: 1px solid var(--hairline-soft);
}

.panel--pine { background: var(--pine); color: var(--on-pine); border-color: transparent; }
.panel--pine .panel__k { color: var(--on-pine-soft); }
.panel--pine .panel__v { color: var(--on-pine); }
/* Les liens du panneau sombre passent en clair, sauf les boutons qui gardent
   leur propre paire fond / texte (sinon texte clair sur bouton clair). */
.panel--pine a:not(.btn) { color: var(--on-pine); }

.panel__row { display: grid; gap: .1875rem; }
.panel__k { font-size: .8125rem; color: var(--ink-faint); }
.panel__v { font-size: 1.0625rem; font-weight: 500; letter-spacing: -.015em; }
.panel__v a { text-decoration: none; }
.panel__v a:hover { text-decoration: underline; }

.divider { height: 1px; background: var(--hairline-soft); }
.panel--pine .divider { background: rgba(238, 241, 236, .16); }

.urgence {
  display: grid;
  gap: 1rem;
  padding: clamp(1.5rem, 3vw, 2rem);
  border-radius: var(--r-card);
  background: var(--accent-tint);
  border: 1px solid color-mix(in srgb, var(--accent) 26%, transparent);
}
.urgence ul { display: grid; gap: .625rem; margin: 0; padding: 0; list-style: none; }
.urgence li { display: flex; flex-wrap: wrap; gap: .5rem 1rem; justify-content: space-between; align-items: baseline; }
.urgence li + li { padding-top: .625rem; border-top: 1px solid color-mix(in srgb, var(--accent) 20%, transparent); }
.urgence .num { font-weight: 600; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }

@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------------------
   14. Bandeau d'appel + pied de page
   -------------------------------------------------------------------------- */

.callout {
  background: var(--pine);
  color: var(--on-pine);
}

.callout__inner {
  display: grid;
  grid-template-columns: 1.2fr auto;
  gap: 2rem;
  align-items: center;
  padding-block: clamp(3rem, 6vw, 4.5rem);
}
.callout p { color: var(--on-pine-soft); max-width: 46ch; margin-top: .75rem; }

@media (max-width: 760px) { .callout__inner { grid-template-columns: 1fr; } }

.site-footer {
  background: var(--pine-deep);
  color: var(--on-pine);
  padding-block: clamp(3rem, 5vw, 4rem) 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: clamp(1.75rem, 4vw, 3.5rem);
}
.footer-grid h3 { font-size: .8125rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: rgba(238, 241, 236, .5); margin-bottom: .875rem; }
.footer-grid p, .footer-grid li { color: var(--on-pine-soft); font-size: .9375rem; line-height: 1.6; }
.footer-grid ul { margin: 0; padding: 0; list-style: none; display: grid; gap: .5rem; }
.footer-grid a { color: var(--on-pine-soft); text-decoration: none; transition: color .2s var(--ease); }
.footer-grid a:hover { color: var(--on-pine); }
.footer-name { font-size: 1.25rem; font-weight: 500; letter-spacing: -.025em; color: var(--on-pine); margin-bottom: .5rem; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.5rem;
  justify-content: space-between;
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  padding-top: 1.5rem;
  border-top: 1px solid rgba(238, 241, 236, .14);
  font-size: .8438rem;
  color: rgba(238, 241, 236, .55);
}
.footer-bottom a { color: rgba(238, 241, 236, .72); }

@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------------------
   15. Liens ressources
   -------------------------------------------------------------------------- */

.resources { display: grid; grid-template-columns: repeat(2, 1fr); gap: .75rem; }
.resource {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.0625rem 1.25rem;
  border-radius: var(--r-field);
  background: var(--surface);
  border: 1px solid var(--hairline-soft);
  text-decoration: none;
  transition: border-color .2s var(--ease), transform .2s var(--ease);
}
.resource:hover { border-color: var(--accent); transform: translateX(2px); }
.resource span { font-size: .9375rem; line-height: 1.4; }
.resource svg { flex: none; color: var(--accent); }

@media (max-width: 720px) { .resources { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------------------
   16. Motion : révélation au scroll
   -------------------------------------------------------------------------- */

[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
}
[data-reveal].is-visible { opacity: 1; transform: none; }

.no-js [data-reveal] { opacity: 1; transform: none; }

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

/* --------------------------------------------------------------------------
   17. Divers
   -------------------------------------------------------------------------- */

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.page-head {
  padding-block: clamp(3.5rem, 7vw, 6rem) clamp(2rem, 4vw, 3rem);
  border-bottom: 1px solid var(--hairline-soft);
}
.page-head .display { max-width: 18ch; }
