/* =========================================================
   JALO NEGO — feuille de style
   Couleurs tirées du logo officiel :
   bleu nuit #00204A (JALO / J) et bleu vif #0068F8 (NEGO / flèche)
   ========================================================= */

@font-face {
  font-family: "Instrument Sans";
  src: url("../fonts/instrument-sans-latin-wght.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --navy: #00204a;
  --navy-deep: #001634;
  --blue: #0068f8;
  --blue-ink: #0057d9;      /* bleu foncé pour le texte sur fond teinté (contraste AA) */
  --blue-hover: #0052cc;
  --tint: #eaf2ff;
  --soft: #f5f8fd;
  --text: #2f3e56;
  --muted: #566580;
  --line: #d8e1ee;
  --field-border: #7a8aa6;
  --white: #fff;

  --font: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --max: 1180px;
  --gut: clamp(1.25rem, 4vw, 2.5rem);
  --r-lg: 28px;
  --r-md: 14px;
  --r-sm: 10px;
  --header-h: 84px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

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

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

h1, h2, h3, h4 {
  margin: 0 0 .6em;
  color: var(--navy);
  font-weight: 650;
  line-height: 1.12;
  letter-spacing: -.02em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.35rem, 5.2vw, 4rem); line-height: 1.04; letter-spacing: -.03em; }
h2 { font-size: clamp(1.75rem, 3.3vw, 2.6rem); }
h3 { font-size: 1.2rem; letter-spacing: -.01em; line-height: 1.3; }
p { margin: 0 0 1.1em; }
ul, ol { margin: 0; padding: 0; }

a { color: var(--blue-ink); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { color: var(--blue-hover); text-decoration-thickness: 2px; }

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

main:focus { outline: none; }
.container { width: min(100% - 2 * var(--gut), var(--max)); margin-inline: auto; }

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--navy); color: #fff; padding: .75rem 1.1rem; border-radius: var(--r-sm);
  text-decoration: none; font-weight: 600;
}
.skip-link:focus { top: 1rem; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon {
  width: 1.5rem; height: 1.5rem; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 3.1rem; padding: .8rem 1.5rem;
  font: inherit; font-weight: 600; font-size: 1rem; line-height: 1.2;
  text-decoration: none; cursor: pointer;
  border: 2px solid transparent; border-radius: var(--r-md);
  transition: background-color .18s, color .18s, border-color .18s;
}
.btn--primary { background: var(--blue); color: #fff; }
.btn--primary:hover { background: var(--blue-hover); color: #fff; }
.btn--ghost { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn--ghost:hover { background: var(--navy); color: #fff; }
.btn--light { background: #fff; color: var(--navy); }
.btn--light:hover { background: var(--tint); color: var(--navy); }
.btn--sm { min-height: 2.75rem; padding: .55rem 1.2rem; font-size: .97rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: .85rem; }

/* ---------- En-tête ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(1.4) blur(8px);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: var(--header-h); }
.brand { display: block; line-height: 0; }
.brand img { height: 64px; width: auto; }

.nav ul { list-style: none; display: flex; align-items: center; gap: .25rem; }
.nav a:not(.btn) {
  display: block; padding: .6rem .95rem; border-radius: var(--r-sm);
  color: var(--navy); font-weight: 560; text-decoration: none;
}
.nav a:not(.btn):hover { background: var(--tint); color: var(--navy); }
.nav a[aria-current="page"]:not(.btn) { color: var(--blue-ink); box-shadow: inset 0 -2px 0 var(--blue); border-radius: 0; }
.nav li:last-child { margin-left: .75rem; }

.menu-toggle {
  display: none; align-items: center; gap: .55rem;
  min-height: 2.9rem; padding: .5rem .9rem;
  font: inherit; font-weight: 600; color: var(--navy);
  background: #fff; border: 1.5px solid var(--navy); border-radius: var(--r-sm); cursor: pointer;
}
.menu-toggle .bars { width: 1.15rem; height: 2px; background: currentColor; position: relative; display: block; }
.menu-toggle .bars::before, .menu-toggle .bars::after {
  content: ""; position: absolute; left: 0; width: 100%; height: 2px; background: currentColor;
}
.menu-toggle .bars::before { top: -6px; }
.menu-toggle .bars::after { top: 6px; }

@media (max-width: 900px) {
  :root { --header-h: 72px; }
  .brand img { height: 52px; }
  .js .menu-toggle { display: inline-flex; }
  .js .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: .75rem var(--gut) 1.5rem;
    box-shadow: 0 16px 28px -18px rgba(0, 32, 74, .35);
  }
  .js .nav.open { display: block; }
  .nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .nav a:not(.btn) { padding: .9rem .25rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav a[aria-current="page"]:not(.btn) { box-shadow: none; color: var(--blue-ink); }
  .nav li:last-child { margin: 1rem 0 0; }
  .nav .btn { width: 100%; }
  /* sans JavaScript : le menu reste visible, en ligne */
  html:not(.js) .header-inner { flex-wrap: wrap; padding-block: .5rem; }
  html:not(.js) .nav ul { flex-direction: row; flex-wrap: wrap; }
}

/* ---------- Sections ---------- */
.section { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.section--soft { background: var(--soft); }
.section-head { max-width: 46rem; margin-bottom: clamp(2rem, 4.5vw, 3.5rem); }
.lead { font-size: clamp(1.1rem, 1.5vw, 1.28rem); line-height: 1.55; color: var(--muted); max-width: 40rem; }

/* ---------- Accueil : héros ---------- */
.hero { padding-block: clamp(2.5rem, 6vw, 5rem) clamp(3rem, 7vw, 5.5rem); }
.hero-grid { display: grid; grid-template-columns: 1.12fr .88fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.hero h1 { margin-bottom: .45em; }
.hero .lead { margin-bottom: 2rem; }
.hero-note { margin: 1.1rem 0 0; font-size: .95rem; color: var(--muted); }

.hero-visual {
  position: relative; overflow: hidden; isolation: isolate;
  aspect-ratio: 4 / 5; background: var(--tint);
  border-radius: var(--r-lg) var(--r-lg) var(--r-lg) 120px;
}
.hero-visual .portrait {
  position: absolute; left: 0; bottom: 0; width: 100%; height: auto;
  mix-blend-mode: multiply; z-index: 1;
}
.hero-visual .swoosh { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; pointer-events: none; }
.swoosh path.line { fill: none; stroke: var(--blue); stroke-width: 10; stroke-linecap: butt; stroke-dasharray: 1; stroke-dashoffset: 0; }
.swoosh polygon { fill: var(--blue); }
.hero-chip {
  position: absolute; left: 1.1rem; top: 1.1rem; z-index: 3;
  background: #fff; border-radius: 999px; padding: .55rem 1.1rem .55rem .75rem;
  display: flex; align-items: center; gap: .65rem; line-height: 1.2;
  box-shadow: 0 6px 18px -8px rgba(0, 32, 74, .35);
}
.hero-chip .dot { width: .7rem; height: .7rem; border-radius: 50%; background: var(--blue); }
.hero-chip strong { display: block; color: var(--navy); font-size: .97rem; }
.hero-chip span { font-size: .85rem; color: var(--muted); }

/* Un seul mouvement automatique : la flèche se dessine au chargement */
@media (prefers-reduced-motion: no-preference) {
  .swoosh path.line { stroke-dashoffset: 1; animation: draw 1.5s .25s cubic-bezier(.35, .1, .2, 1) forwards; }
  .swoosh polygon { opacity: 0; animation: pop .35s 1.6s ease-out forwards; }
}
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 440px; width: 100%; margin-inline: auto; }
}

/* ---------- Bandeau de faits ---------- */
.facts { border-block: 1px solid var(--line); }
.facts-grid { display: grid; grid-template-columns: repeat(4, 1fr); list-style: none; }
.facts-grid li { padding: 1.6rem 1.5rem 1.6rem 0; }
.facts-grid li + li { padding-left: 1.5rem; border-left: 1px solid var(--line); }
.facts-grid strong { display: block; color: var(--navy); font-size: 1.08rem; margin-bottom: .2rem; }
.facts-grid span { display: block; font-size: .97rem; line-height: 1.45; color: var(--muted); }
@media (max-width: 900px) {
  .facts-grid { grid-template-columns: 1fr 1fr; }
  .facts-grid li { padding: 1.3rem 1rem 1.3rem 0; }
  .facts-grid li + li { padding-left: 0; border-left: 0; }
  .facts-grid li:nth-child(even) { padding-left: 1rem; border-left: 1px solid var(--line); }
  .facts-grid li:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 520px) {
  .facts-grid { grid-template-columns: 1fr; }
  .facts-grid li:nth-child(even) { padding-left: 0; border-left: 0; }
  .facts-grid li + li { border-top: 1px solid var(--line); }
}

/* ---------- Liste des expertises (accueil) ---------- */
.exp-list { list-style: none; display: grid; grid-template-columns: 1fr 1fr; column-gap: clamp(2rem, 6vw, 5rem); border-bottom: 1px solid var(--line); }
.exp-list li { border-top: 1px solid var(--line); }
.exp-list li:nth-last-child(-n+2) { margin-bottom: -1px; }
.exp-list a {
  display: grid; grid-template-columns: 3rem 1fr; column-gap: 1.1rem; align-items: start;
  padding: 1.5rem 0; text-decoration: none; color: var(--text);
}
.exp-list .ico {
  width: 3rem; height: 3rem; border-radius: 50%; display: grid; place-items: center;
  background: var(--tint); color: var(--blue-ink); transition: background-color .18s, color .18s;
}
.exp-list h3 { margin: .1rem 0 .25rem; transition: color .18s; }
.exp-list p { margin: 0; font-size: .98rem; line-height: 1.5; color: var(--muted); }
.exp-list a:hover h3 { color: var(--blue-ink); }
.exp-list a:hover .ico { background: var(--blue); color: #fff; }
.exp-more { margin-top: 2.25rem; }
@media (max-width: 760px) {
  .exp-list { grid-template-columns: 1fr; border-bottom: 0; }
  .exp-list li:nth-last-child(-n+2) { margin-bottom: 0; }
  .exp-list li:last-child { border-bottom: 1px solid var(--line); }
}

/* ---------- Étapes de la méthode ---------- */
.steps { list-style: none; counter-reset: step; }
.steps li { position: relative; padding: 0 0 2.25rem 4.25rem; counter-increment: step; }
.steps li::before {
  content: counter(step);
  position: absolute; left: 0; top: 0; width: 2.75rem; height: 2.75rem; border-radius: 50%;
  display: grid; place-items: center; background: var(--navy); color: #fff; font-weight: 650; font-size: 1.05rem;
}
.steps li:last-child::before { background: var(--blue); }
.steps li:not(:last-child)::after {
  content: ""; position: absolute; left: calc(1.375rem - 1px); top: 3.25rem; bottom: .5rem; width: 2px; background: var(--line);
}
.steps li:last-child { padding-bottom: 0; }
.steps h3 { margin: .35rem 0 .35rem; font-size: 1.25rem; }
.steps p { margin: 0; color: var(--text); max-width: 40rem; }
.steps .muted { color: var(--muted); }

@media (min-width: 901px) {
  .steps--row { display: grid; grid-template-columns: repeat(5, 1fr); column-gap: 1.5rem; }
  .steps--row li { padding: 4rem 0 0; }
  .steps--row li:not(:last-child)::after { left: 3.5rem; right: -.75rem; top: calc(1.375rem - 1px); bottom: auto; width: auto; height: 2px; }
  .steps--row h3 { margin-top: 0; font-size: 1.12rem; }
  .steps--row p { font-size: .96rem; line-height: 1.5; color: var(--muted); }
}

/* ---------- Arguments ---------- */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem, 4vw, 3.5rem); }
.why-grid > div { border-top: 2px solid var(--navy); padding-top: 1.4rem; }
.why-grid p { margin: 0; color: var(--muted); }
@media (max-width: 800px) { .why-grid { grid-template-columns: 1fr; gap: 2rem; } }

/* ---------- Bandeau d'appel à l'action ---------- */
.cta-wrap { padding-bottom: clamp(3rem, 7vw, 5.5rem); }
.cta {
  background: var(--navy); color: #d6e2f5; border-radius: var(--r-lg);
  padding: clamp(2.25rem, 6vw, 4.25rem);
  display: grid; grid-template-columns: 1fr auto; gap: 2rem 3rem; align-items: center;
}
.cta h2 { color: #fff; margin-bottom: .4em; }
.cta p { margin: 0; max-width: 36rem; font-size: 1.1rem; }
@media (max-width: 760px) { .cta { grid-template-columns: 1fr; } }

/* ---------- Pages intérieures ---------- */
.page-hero { background: var(--tint); padding-block: clamp(2.75rem, 7vw, 5rem); border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(2.2rem, 4.6vw, 3.4rem); max-width: 18ch; }
.page-hero .lead { margin: 0; color: var(--text); }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 2rem; }
.chips a {
  display: inline-flex; align-items: center; gap: .5rem; padding: .5rem 1rem .5rem .8rem;
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  color: var(--navy); font-weight: 560; font-size: .97rem; text-decoration: none;
}
.chips a:hover { border-color: var(--blue); color: var(--blue-ink); }
.chips .icon { width: 1.1rem; height: 1.1rem; color: var(--blue-ink); }

.exp-block { padding-block: clamp(2.75rem, 6vw, 4.5rem); border-bottom: 1px solid var(--line); }
.exp-block:last-of-type { border-bottom: 0; }
.exp-block:nth-of-type(even) { background: var(--soft); }
.exp-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(1.75rem, 5vw, 4.5rem); }
.exp-block .ico-big {
  width: 3.5rem; height: 3.5rem; border-radius: 50%; display: grid; place-items: center;
  background: var(--tint); color: var(--blue-ink); margin-bottom: 1.1rem;
}
.exp-block .ico-big .icon { width: 1.75rem; height: 1.75rem; }
.exp-block h2 { font-size: clamp(1.6rem, 2.8vw, 2.1rem); }
.exp-block .intro { color: var(--muted); margin: 0; }
.exp-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem clamp(1.5rem, 3vw, 2.75rem); }
.exp-cols h3 { font-size: 1.05rem; margin-bottom: .75rem; }
.ticks { list-style: none; display: grid; gap: .65rem; }
.ticks li { position: relative; padding-left: 1.75rem; line-height: 1.5; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .32em; width: 1.05rem; height: 1.05rem;
  background: var(--blue); border-radius: 50%;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 24a12 12 0 1 0 0-24 12 12 0 0 0 0 24zm5.7-15.3L10.5 15.9 6.3 11.7l1.4-1.4 2.8 2.8 5.8-5.8z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 24a12 12 0 1 0 0-24 12 12 0 0 0 0 24zm5.7-15.3L10.5 15.9 6.3 11.7l1.4-1.4 2.8 2.8 5.8-5.8z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.ticks--gain li::before { background: var(--navy); }
@media (max-width: 900px) {
  .exp-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) { .exp-cols { grid-template-columns: 1fr; } }

/* Engagements */
.pledges { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.25rem, 3vw, 2rem); list-style: none; }
.pledges li { background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: 1.75rem; }
.pledges .icon { color: var(--blue-ink); width: 1.75rem; height: 1.75rem; margin-bottom: .9rem; }
.pledges p { margin: 0; color: var(--muted); font-size: .98rem; line-height: 1.55; }
@media (max-width: 860px) { .pledges { grid-template-columns: 1fr; } }

/* FAQ */
.faq { max-width: 52rem; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1.5rem;
  padding: 1.3rem 0; color: var(--navy); font-weight: 600; font-size: 1.1rem; line-height: 1.35;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { color: var(--blue-ink); transition: transform .2s; }
.faq details[open] summary .icon { transform: rotate(180deg); }
.faq .answer { padding: 0 3rem 1.4rem 0; color: var(--text); }
.faq .answer p:last-child { margin: 0; }

/* À propos */
.about-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.about-photo { position: sticky; top: calc(var(--header-h) + 24px); }
.about-photo .frame { background: var(--tint); border-radius: var(--r-lg) var(--r-lg) var(--r-lg) 90px; overflow: hidden; aspect-ratio: 1; }
.about-photo img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: multiply; }
.about-photo figcaption { margin-top: 1rem; line-height: 1.4; }
.about-photo figcaption strong { display: block; color: var(--navy); font-size: 1.15rem; }
.about-photo figcaption span { color: var(--muted); font-size: .97rem; }
.about-text h2 { margin-top: 2.5rem; }
.about-text h2:first-child { margin-top: 0; }
.values { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 1.75rem 2.25rem; margin-top: 1.75rem; }
.values h3 { margin-bottom: .3rem; }
.values p { margin: 0; color: var(--muted); font-size: .98rem; line-height: 1.55; }
.keyfacts { margin: 2rem 0 0; border-top: 1px solid var(--line); }
.keyfacts div { display: grid; grid-template-columns: 11rem 1fr; gap: 1rem; padding: .95rem 0; border-bottom: 1px solid var(--line); }
.keyfacts dt { font-weight: 600; color: var(--navy); }
.keyfacts dd { margin: 0; }
@media (max-width: 860px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-photo { position: static; max-width: 380px; }
}
@media (max-width: 560px) { .values { grid-template-columns: 1fr; } .keyfacts div { grid-template-columns: 1fr; gap: .1rem; } }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.form { display: grid; gap: 1.4rem; }
.field { display: grid; gap: .4rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; }
.form label, .form legend { font-weight: 600; color: var(--navy); font-size: .98rem; padding: 0; }
.form .opt { font-weight: 400; color: var(--muted); }
.form input[type="text"], .form input[type="email"], .form input[type="tel"], .form textarea {
  width: 100%; font: inherit; color: var(--navy); background: #fff;
  padding: .8rem 1rem; border: 1.5px solid var(--field-border); border-radius: var(--r-sm);
}
.form textarea { min-height: 9.5rem; resize: vertical; line-height: 1.55; }
.form input:focus, .form textarea:focus { outline: 3px solid rgba(0, 104, 248, .35); outline-offset: 0; border-color: var(--blue); }
.form [aria-invalid="true"] { border-color: #b3261e; }
.error { color: #b3261e; font-size: .93rem; font-weight: 500; min-height: 0; }
.error:empty { display: none; }
.form fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.form fieldset legend { margin-bottom: .6rem; }
.checks { display: grid; grid-template-columns: 1fr 1fr; gap: .55rem 1.25rem; }
.check { display: flex; align-items: flex-start; gap: .6rem; font-weight: 400 !important; color: var(--text) !important; line-height: 1.4; cursor: pointer; }
.check input { width: 1.2rem; height: 1.2rem; margin: .12rem 0 0; accent-color: var(--blue); flex: none; }
.consent { background: var(--soft); border: 1px solid var(--line); border-radius: var(--r-md); padding: 1.1rem 1.2rem; }
.consent .check { font-size: .95rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { border-radius: var(--r-md); padding: 1rem 1.2rem; font-weight: 500; }
.form-status:empty { display: none; }
.form-status.ok { background: #e7f6ec; color: #14532d; border: 1px solid #9fd5b0; }
.form-status.ko { background: #fdecea; color: #7a1a14; border: 1px solid #efb3ae; }
.form-note { font-size: .9rem; color: var(--muted); margin: 0; }

.aside-card { background: var(--soft); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(1.5rem, 3vw, 2.25rem); }
.aside-card h2 { font-size: 1.35rem; }
.contact-list { list-style: none; display: grid; gap: 1.1rem; margin-bottom: 1.75rem; }
.contact-list li { display: grid; grid-template-columns: 1.5rem 1fr; gap: .85rem; align-items: start; }
.contact-list .icon { color: var(--blue-ink); margin-top: .15rem; }
.contact-list small { display: block; color: var(--muted); font-size: .88rem; line-height: 1.3; }
.contact-list a { color: var(--navy); font-weight: 600; text-decoration: none; word-break: break-word; }
.contact-list a:hover { color: var(--blue-ink); text-decoration: underline; }
.next-steps { list-style: none; counter-reset: n; display: grid; gap: .8rem; border-top: 1px solid var(--line); padding-top: 1.4rem; }
.next-steps h3 { font-size: 1rem; margin-bottom: .2rem; }
.next-steps li { counter-increment: n; position: relative; padding-left: 2rem; font-size: .97rem; line-height: 1.5; }
.next-steps li::before {
  content: counter(n); position: absolute; left: 0; top: .05rem; width: 1.4rem; height: 1.4rem; border-radius: 50%;
  display: grid; place-items: center; background: var(--navy); color: #fff; font-size: .8rem; font-weight: 650;
}
@media (max-width: 920px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .field-row, .checks { grid-template-columns: 1fr; } }

/* ---------- Pages légales ---------- */
.prose { max-width: 46rem; }
.prose h2 { font-size: 1.5rem; margin-top: 2.75rem; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.75rem; font-size: 1.1rem; }
.prose ul { padding-left: 1.3rem; margin: 0 0 1.1em; }
.prose li { margin-bottom: .35em; }
.prose .meta { color: var(--muted); font-size: .95rem; }
.todo { background: #fff3b0; color: #4a3b00; padding: .05em .35em; border-radius: 4px; font-weight: 600; }
.table-wrap { overflow-x: auto; margin: 0 0 1.5em; }
.prose table { border-collapse: collapse; width: 100%; min-width: 34rem; font-size: .97rem; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: .75rem .9rem; border: 1px solid var(--line); }
.prose th { background: var(--soft); color: var(--navy); }

/* ---------- 404 ---------- */
.notfound { min-height: 55vh; display: grid; place-items: center; text-align: center; padding-block: 4rem; }
.notfound h1, .notfound .lead { margin-inline: auto; }
.notfound .btn-row { justify-content: center; }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--navy-deep); color: #b9c8e0; padding-block: clamp(3rem, 6vw, 4.5rem) 2rem; font-size: .97rem; }
.site-footer a { color: #dce7f8; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.3fr .8fr .8fr 1fr; gap: 2.5rem; }
.footer-logo { display: inline-block; background: #fff; border-radius: var(--r-md); padding: .5rem .9rem; line-height: 0; margin-bottom: 1.1rem; }
.footer-logo img { height: 76px; width: auto; }
.site-footer h2 { color: #fff; font-size: 1rem; letter-spacing: 0; margin-bottom: .9rem; }
.site-footer ul { list-style: none; display: grid; gap: .5rem; }
.site-footer p { margin: 0 0 .6rem; line-height: 1.55; }
.footer-legal { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid rgba(255, 255, 255, .16); font-size: .88rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem 2rem; color: #94a8c8; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
