/* ---------- Tokens ---------- */
/* Palette marine sur crème, accent terracotta.
   --ink est le bleu nuit du logo ASB (#162441).
   Marine et crème forment le couple nautique classique ; la terracotta
   apporte la chaleur qui empêche l'ensemble de virer au froid.
   Attention : --accent-on-dark dépend de la clarté de --ink autant que
   de l'accent — un accent trop sombre devient illisible sur un aplat
   sombre lui-même éclairci.
   Contrastes mesurés sur le crème #F4F0E8 et le marine #162441 :
     --ink           13,6:1   texte courant, et crème sur aplat sombre
     --ink-soft       8,8:1   texte secondaire
     --accent         4,0:1   filets, puces, aplats — jamais de petit texte
     --accent-d       5,5:1   texte et liens
     --accent-on-dark 4,9:1   sur l'aplat marine. Marge étroite : toute
                              teinte plus foncée passerait sous 4,5:1. */
:root {
  --ink:           #162441;
  --ink-soft:      #3A4257;
  --sand:          #F4F0E8;
  --sand-2:        #E9E3D6;
  --paper:         #FFFDF8;
  --accent:        #C4542F;
  --accent-d:      #A2431F;
  --accent-pale:   #F3E2DA;
  --accent-on-dark:#D1795D;
  --line:          rgba(22, 36, 65, .16);

  --wrap: 1180px;
  --pad: clamp(20px, 5vw, 64px);
  --r: 4px;

  --f-display: 'Archivo', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--sand);
  color: var(--ink);
  font-family: var(--f-display);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 { font-weight: 800; letter-spacing: -.03em; line-height: 1.02; margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
a { color: inherit; }
img { max-width: 100%; display: block; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--pad); }

.skip { position: absolute; left: -9999px; top: 0; z-index: 99; background: var(--ink); color: var(--sand); padding: 12px 18px; }
.skip:focus { left: 0; }

:where(a, button, input, select, textarea):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* ---------- Header ---------- */
.site-header {
  --logo-h: 96px;
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--sand) 88%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s;
}
.site-header.is-stuck { border-bottom-color: var(--line); }

.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: calc(var(--logo-h) + 20px); }

.logo { display: flex; align-items: center; text-decoration: none; }
/* Toute la hauteur de l'en-tête découle de --logo-h : changer cette seule
   valeur suffit, la barre et le menu déroulant mobile suivent. */
.logo-img { height: var(--logo-h); width: auto; }

.nav { display: flex; align-items: center; gap: 6px; }
.nav a { text-decoration: none; font-weight: 600; font-size: 15px; padding: 9px 14px; border-radius: var(--r); transition: background .2s, color .2s; }
.nav a:hover { background: var(--sand-2); }
.nav .nav-cta { background: var(--ink); color: var(--sand); margin-left: 8px; }
.nav .nav-cta:hover { background: var(--accent); }

.burger {
  display: none; flex-direction: column; justify-content: center; gap: 6px;
  width: 44px; height: 44px; padding: 0 10px;
  background: none; border: 1px solid var(--line); border-radius: var(--r); cursor: pointer;
}
.burger span { display: block; height: 2px; background: var(--ink); transition: transform .25s; }
.burger[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child  { transform: translateY(-4px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { padding: clamp(56px, 9vw, 116px) 0 clamp(48px, 7vw, 88px); }

/* Texte à gauche, illustration à droite. La colonne de droite est bornée
   en px et non en pourcentage : au-delà de ~430 px le dessin écraserait
   le titre, en deçà de 280 px le trait devient illisible. */
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(280px, 32vw, 430px);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
}
.hero-illu { width: 100%; height: auto; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 12px; font-weight: 600; letter-spacing: .16em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 22px;
}
.eyebrow::before { content: ''; width: 26px; height: 2px; background: currentColor; }

/* Le surtitre du hero est plus grand que ceux des sections : c'est la
   première ligne de la page, il doit s'imposer avant le grand titre. */
.hero .eyebrow {
  font-size: clamp(14px, 1.25vw, 16px);
  letter-spacing: .12em;
  gap: 12px;
  margin-bottom: 26px;
}
.hero .eyebrow::before { width: 34px; }

/* Réduit par rapport au hero pleine largeur : le titre ne dispose plus
   que d'environ 570 px une fois l'illustration posée à droite. */
.hero h1 { font-size: clamp(2.2rem, 4.7vw, 3.7rem); max-width: 15ch; }
.hero h1 em { font-style: normal; color: var(--accent); }

.lede { font-size: clamp(1.02rem, 1.6vw, 1.2rem); color: var(--ink-soft); max-width: 60ch; margin-top: 28px; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 15px 28px; border-radius: var(--r);
  font-weight: 600; font-size: 15px; text-decoration: none;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .18s, background .2s, color .2s, border-color .2s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--ink); color: var(--sand); }
.btn-primary:hover { background: var(--accent); }
.btn-ghost { border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); background: var(--sand-2); }

.hero-rule { height: 1px; background: var(--line); max-width: calc(var(--wrap) - var(--pad) * 2); margin-inline: auto; }

/* ---------- Strip ---------- */
.strip { padding: clamp(36px, 5vw, 56px) 0; }
.strip-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.strip-grid div { display: flex; flex-direction: column; gap: 2px; padding-left: 16px; border-left: 2px solid var(--accent); }
.strip-grid strong { font-size: clamp(1.9rem, 3.4vw, 2.7rem); font-weight: 800; letter-spacing: -.04em; line-height: 1.05; }
.strip-grid span { font-size: 13px; color: var(--ink-soft); }

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section-head { margin-bottom: clamp(40px, 5vw, 64px); }
.section-head h2 { font-size: clamp(1.9rem, 4.2vw, 3.1rem); max-width: 20ch; }

.section-dark { background: var(--ink); color: var(--sand); }
.section-dark .eyebrow { color: var(--accent-on-dark); }
.section-dark .step { border-top-color: var(--accent-on-dark); }
.section-dark .step p { color: color-mix(in srgb, var(--sand) 74%, transparent); }

.section-accent { background: var(--sand-2); }

/* Cards */
.cards {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px;
  background: var(--line); border: 1px solid var(--line);
}
.card { background: var(--sand); padding: clamp(28px, 3.4vw, 44px); position: relative; transition: background .25s; }
.card::after {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--accent);
  transform: scaleY(0); transform-origin: top; transition: transform .3s ease;
}
.card:hover { background: var(--paper); }
.card:hover::after { transform: scaleY(1); }
.card-num { font-size: 14px; font-weight: 700; letter-spacing: .12em; color: var(--accent); }
.card h3 { font-size: clamp(1.25rem, 2vw, 1.6rem); margin: 14px 0 12px; }
.card p { color: var(--ink-soft); font-size: 15.5px; }
/* Même taille que le paragraphe ci-dessus, pour une lecture homogène. */
.card ul { margin: 14px 0 0; padding-left: 18px; color: var(--ink-soft); font-size: 15.5px; }
.card li { margin-bottom: 6px; }
.card li::marker { color: var(--accent); }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 3vw, 44px); }
.step { padding-top: 22px; border-top: 3px solid var(--accent); }
.step h3 { font-size: 1.2rem; margin-bottom: 12px; }
.step p { font-size: 15.5px; }

/* Team */
.team { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(28px, 4vw, 52px); }
/* Portraits au trait, à leur format natif : les dessins sont élancés
   (ratio 0,54) et c'est voulu. Aucun recadrage, donc les vestes noires
   restent entières — un cadre 3/4 n'aurait montré que les 72 % supérieurs
   et les aurait tranchées.
   Les deux fichiers ont été complétés à la même hauteur en pixels, ce qui
   garantit des cartes alignées sans imposer d'object-fit.
   La largeur est plafonnée à 300 px parce que les sources ne font que
   329 px de large : au-delà, elles seraient étirées et deviendraient floues.
   height: auto est indispensable, sinon l'attribut height du HTML agit
   comme une hauteur explicite et neutralise aspect-ratio. */
.portrait {
  display: block; width: 100%; max-width: 300px;
  height: auto; aspect-ratio: 329 / 610;
  margin-bottom: 22px;
}
.member h3 { font-size: 1.35rem; }
.member .role { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin: 7px 0 14px; }
.member p { color: var(--ink-soft); font-size: 15px; }
.member p + p { margin-top: 12px; }
.member .tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 18px; padding: 0; list-style: none; }
.member .tags li { font-size: 12px; font-weight: 600; color: var(--accent-d); background: var(--accent-pale); padding: 5px 11px; border-radius: 2px; }
.member .contact-line { margin-top: 18px; font-size: 14px; }
.member .contact-line a { color: var(--accent-d); text-decoration: underline; text-underline-offset: 3px; font-weight: 600; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 76px); align-items: start; }
.contact-grid h2 { font-size: clamp(1.9rem, 4vw, 3rem); }

/* Intitulé au-dessus de la valeur : ni l'un ni l'autre ne peut plus
   renvoyer le second à la ligne, quelle que soit sa longueur
   (« Tess Souquet-Basiege », l'adresse complète, la liste des villes). */
.coords {
  list-style: none; margin: 36px 0 0; padding: 0;
  display: grid; gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.coords li {
  background: var(--sand-2);
  display: flex; flex-direction: column; gap: 5px;
  padding: 15px 0;
}
.coords span {
  font-size: 11.5px; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--ink-soft);
}
.coords a, .coords strong { font-weight: 600; font-size: 15.5px; align-self: flex-start; }
/* Soulignement typographique plutôt qu'une bordure : il suit la ligne de
   base du texte et reste aligné même si la valeur passe à la ligne. */
.coords a { text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 4px; }
.coords a:hover { text-decoration-color: var(--accent); color: var(--accent-d); }

.form { background: var(--paper); border: 1px solid var(--line); border-top: 3px solid var(--accent); padding: clamp(24px, 3vw, 36px); }
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 18px; }
.field label { font-size: 13px; font-weight: 600; }
.field input, .field select, .field textarea {
  font: inherit; font-size: 15px; color: var(--ink);
  padding: 12px 14px; background: var(--sand);
  border: 1px solid var(--line); border-radius: var(--r);
  width: 100%; resize: vertical;
  transition: border-color .2s, background .2s;
}
.field input:focus, .field select:focus, .field textarea:focus { background: var(--paper); border-color: var(--accent); }
.field .invalid { border-color: var(--accent-d); }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: var(--ink-soft); margin-bottom: 22px; }
.consent input { margin-top: 3px; flex: none; accent-color: var(--accent); }
.consent a { color: var(--accent-d); }

.form .btn { width: 100%; }
.form-note { margin-top: 14px; font-size: 14px; min-height: 1.2em; }
.form-note.ok { color: var(--accent-d); font-weight: 600; }
.form-note.ko { color: var(--accent-d); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--sand); padding: clamp(40px, 5vw, 64px) 0; border-top: 4px solid var(--accent); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.footer-brand { font-weight: 800; letter-spacing: -.01em; }
.footer-brand span { font-weight: 400; color: color-mix(in srgb, var(--sand) 58%, transparent); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.site-footer nav a { font-size: 14px; text-decoration: none; color: color-mix(in srgb, var(--sand) 78%, transparent); transition: color .2s; }
.site-footer nav a:hover { color: var(--sand); }
.footer-legal { flex-basis: 100%; font-size: 12.5px; color: color-mix(in srgb, var(--sand) 50%, transparent); border-top: 1px solid rgba(255,255,255,.12); padding-top: 20px; }

/* ---------- Legal page ---------- */
.legal { padding: clamp(56px, 8vw, 100px) 0; }
.legal .wrap { max-width: 760px; }
.legal h1 { font-size: clamp(2rem, 5vw, 3rem); margin-bottom: 12px; }
.legal h2 { font-size: 1.35rem; margin: 48px 0 14px; }
.legal p, .legal li { color: var(--ink-soft); font-size: 16px; }
.legal p + p { margin-top: 14px; }
.legal ul { padding-left: 20px; }
.legal li { margin-bottom: 8px; }
.legal li::marker { color: var(--accent); }
.legal .updated { font-size: 13px; color: var(--ink-soft); }
.legal a { color: var(--accent-d); }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.7,.3,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .cards, .steps, .team, .contact-grid { grid-template-columns: 1fr; }
  .steps, .team { gap: 36px; }
  .strip-grid { grid-template-columns: repeat(2, 1fr); gap: 26px 24px; }

  /* Le dessin passe sous le texte, bridé à 320 px : à pleine largeur il
     repousserait le premier contenu utile trop bas dans la page. */
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-illu { max-width: 320px; margin-inline: auto; }
  .hero h1 { max-width: 18ch; }
}

@media (max-width: 760px) {
  .site-header { --logo-h: 68px; }
  .burger { display: flex; }
  .nav {
    position: fixed; inset: calc(var(--logo-h) + 20px) 0 auto; z-index: 40;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--sand); border-bottom: 1px solid var(--line);
    padding: 8px var(--pad) 24px;
    transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: opacity .2s, transform .2s;
  }
  .nav.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav a { padding: 15px 0; font-size: 17px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav a:hover { background: none; color: var(--accent); }
  .nav .nav-cta { margin: 18px 0 0; padding: 15px; justify-content: center; border-radius: var(--r); }
}

/* Le logo rétrécit sur les très petits écrans pour laisser la place
   au bouton de menu. */
@media (max-width: 430px) {
  .site-header { --logo-h: 54px; }
}
