/* LOV IMPACT · site lovimpact.com
   Mobile d'abord. Polices sous licence SIL Open Font License 1.1 (Albert Sans, Inter, Instrument Serif).
   Les couleurs passent toutes par des variables : le sélecteur de présentation change data-palette et data-piste. */

@font-face { font-family: "Albert Sans"; src: url("../fonts/albert-sans-var.woff") format("woff"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-var.woff") format("woff"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("../fonts/instrument-serif-italic.woff") format("woff"); font-style: italic; font-weight: 400; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("../fonts/instrument-serif.woff") format("woff"); font-style: normal; font-weight: 400; font-display: swap; }

/* ------------------------------------------------------------------ palettes */
:root,
:root[data-palette="signal"] {
  --light: #F5F1EA;   /* Craie */
  --ink: #101114;     /* Encre */
  --dark: #141A33;    /* Bleu nuit */
  --accent: #EE4E14;  /* Orange signal, sur fond foncé */
  --on-accent: #101114;
  --brand: #141A33;   /* couleur principale sur fond clair */
  --brand-big: #EE4E14; /* sur fond clair : logo, formes et très gros titres seulement (3,3:1) */
  --band: #EE4E14;
  --on-band: #101114;
}
:root[data-palette="electrique"] {
  --light: #F7F7FB;   /* Blanc froid */
  --ink: #0D0F2B;     /* Encre bleue */
  --dark: #0D0F2B;
  --accent: #FF5FA2;  /* Rose vif : jamais sur fond clair */
  --on-accent: #0D0F2B;
  --brand: #2E3BF0;   /* Cobalt */
  --brand-big: #2E3BF0;
  --band: #2E3BF0;
  --on-band: #F7F7FB;
}
:root[data-palette="sapin"] {
  --light: #ECE2CF;   /* Sable */
  --ink: #121512;
  --dark: #163D31;    /* Vert sapin */
  --accent: #F2A93B;  /* Ambre : jamais sur Sable */
  --on-accent: #121512;
  --brand: #163D31;
  --brand-big: #163D31;
  --band: #F2A93B;
  --on-band: #163D31;
}
:root[data-palette="prune"] {
  --light: #F4F0EA;   /* Lin */
  --ink: #1A1020;
  --dark: #3B1D4D;    /* Prune */
  --accent: #F2DF4A;  /* Citron : jamais sur Lin */
  --on-accent: #1A1020;
  --brand: #3B1D4D;
  --brand-big: #3B1D4D;
  --band: #F2DF4A;
  --on-band: #3B1D4D;
}

:root {
  --light-2: color-mix(in srgb, var(--light) 91%, var(--ink));
  --paper: color-mix(in srgb, var(--light) 45%, #fff);
  --muted: color-mix(in srgb, var(--ink) 76%, var(--light));
  --muted-d: color-mix(in srgb, var(--light) 76%, var(--dark));

  --f-display: "Albert Sans", "Helvetica Neue", Arial, system-ui, sans-serif;
  --f-body: "Inter", "Helvetica Neue", Arial, system-ui, sans-serif;
  --f-serif: "Instrument Serif", Georgia, "Times New Roman", serif;

  --wrap: 1312px;
  --gut: 16px;
  --sec: 72px;
  --hor-h: 30px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}
:root[data-piste="A"] { --hor-h: 22px; }
:root[data-piste="B"], :root[data-piste="B1"], :root[data-piste="B2"], :root[data-piste="B3"] { --hor-h: 30px; }
:root[data-piste="C"] { --hor-h: 44px; }
:root[data-piste="D"] { --hor-h: 40px; }
:root[data-piste="E"] { --hor-h: 26px; }

@media (min-width: 720px) { :root { --gut: 32px; --sec: 104px; } }
@media (min-width: 1100px) { :root { --gut: 64px; --sec: 136px; } }

/* surfaces */
.s-light { --bg: var(--light); background: var(--light); color: var(--ink); --fg2: var(--muted); --rule: color-mix(in srgb, var(--ink) 16%, transparent); --hl: var(--brand-big); --lg-main: var(--brand); --lg-accent: var(--brand-big); --p-main: var(--brand); --p-acc: var(--brand-big); }
.s-alt   { --bg: var(--light-2); background: var(--light-2); color: var(--ink); --fg2: color-mix(in srgb, var(--ink) 80%, var(--light)); --rule: color-mix(in srgb, var(--ink) 18%, transparent); --hl: var(--brand-big); --lg-main: var(--brand); --lg-accent: var(--brand-big); --p-main: var(--brand); --p-acc: var(--brand-big); }
.s-dark  { --bg: var(--dark); background: var(--dark); color: var(--light); --fg2: var(--muted-d); --rule: color-mix(in srgb, var(--light) 20%, transparent); --hl: var(--accent); --lg-main: var(--light); --lg-accent: var(--accent); --p-main: var(--light); --p-acc: var(--accent); }
.s-band  { --bg: var(--band); background: var(--band); color: var(--on-band); --fg2: var(--on-band); --rule: color-mix(in srgb, var(--on-band) 28%, transparent); --hl: var(--on-band); --lg-main: var(--on-band); --lg-accent: var(--on-band); }

/* ------------------------------------------------------------------ base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--light);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-feature-settings: "ss01" 0;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
h1, h2, h3, p, ol, ul, figure, blockquote { margin: 0; }
ol, ul { padding: 0; list-style: none; }
a { color: inherit; }
img, svg { display: block; }
:focus-visible { outline: 3px solid var(--hl, var(--brand)); outline-offset: 3px; border-radius: 2px; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--light); color: var(--ink); font-weight: 600; border-radius: 999px; }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gut)); margin: 0 auto; padding: 0 var(--gut); }
.section { padding: var(--sec) 0; }

.logo { fill: var(--lg-main, currentColor); color: var(--lg-main, currentColor); overflow: visible; }
.logo--hor { height: var(--hor-h); width: auto; }

/* titres et libellés */
.label {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--f-display); font-weight: 700; font-size: .8125rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--fg2); margin-bottom: 20px;
}
.label__n { display: inline-grid; place-items: center; min-width: 34px; height: 22px; padding: 0 6px; border: 1.5px solid currentColor; border-radius: 999px; font-size: .75rem; letter-spacing: .04em; }
.h2 {
  font-family: var(--f-display); font-weight: 800; letter-spacing: -.03em; line-height: 1.02;
  font-size: clamp(2.125rem, 1.35rem + 3.3vw, 4.25rem);
  text-wrap: balance;
}
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-family: var(--f-display); font-weight: 700; font-size: .8125rem; letter-spacing: .14em; text-transform: uppercase; color: var(--fg2); }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--hl); }
.hl { color: var(--hl); }

.head { display: grid; gap: 20px; margin-bottom: 48px; }
.head__intro { color: var(--fg2); max-width: 46ch; font-size: 1.0625rem; }
@media (min-width: 900px) {
  .head--row { grid-template-columns: 1fr 1fr; align-items: end; gap: 64px; }
  .head--row .head__intro { justify-self: end; }
}

/* boutons : la forme ronde, comme le disque */
.btn {
  --b-bg: transparent; --b-fg: currentColor; --b-bd: currentColor;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border-radius: 999px; border: 2px solid var(--b-bd);
  background: var(--b-bg); color: var(--b-fg);
  font-family: var(--f-display); font-weight: 700; font-size: 1rem; letter-spacing: -.005em; text-decoration: none; white-space: nowrap;
  transition: transform .25s var(--ease), background-color .25s var(--ease), color .25s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn--accent { --b-bg: var(--accent); --b-fg: var(--on-accent); --b-bd: var(--accent); }
.btn--ghost { --b-fg: var(--light); --b-bd: color-mix(in srgb, var(--light) 55%, transparent); }
.btn--ghost:hover { --b-bd: var(--light); }
.btn--dark { --b-bg: var(--dark); --b-fg: var(--light); --b-bd: var(--dark); }
:root[data-palette="electrique"] .s-band .btn--dark { --b-bg: var(--light); --b-fg: var(--ink); --b-bd: var(--light); }
.btn--sm { min-height: 40px; padding: 0 18px; font-size: .9375rem; }

/* ------------------------------------------------------------------ en-tête */
.top { position: sticky; top: 0; z-index: 40; border-bottom: 1px solid var(--rule); }
.top__in { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 64px; }
.top__brand { display: inline-flex; align-items: center; padding: 8px 0; }
.top__nav { display: none; }
@media (min-width: 1040px) {
  .top__in { min-height: 76px; }
  .top__nav { display: flex; gap: 30px; margin-left: auto; margin-right: 8px; }
  .top__nav a { font-family: var(--f-display); font-weight: 600; font-size: .9375rem; text-decoration: none; color: var(--muted-d); transition: color .2s; }
  .top__nav a:hover { color: var(--light); }
}

/* ------------------------------------------------------------------ 1. ouverture */
.hero { position: relative; overflow: hidden; isolation: isolate; }
.hero__grid-bg {
  position: absolute; inset: 0; z-index: -1; opacity: .9;
  background-image:
    linear-gradient(to right, color-mix(in srgb, var(--light) 7%, transparent) 1px, transparent 1px),
    linear-gradient(to bottom, color-mix(in srgb, var(--light) 7%, transparent) 1px, transparent 1px);
  background-size: 96px 96px;
  background-position: -1px -1px;
  mask-image: linear-gradient(100deg, transparent 20%, #000 70%);
}
.hero__in { display: grid; gap: 40px; padding-top: 48px; padding-bottom: 64px; }
.hero__mark { width: min(46vw, 200px); justify-self: end; margin-right: -4px; }
.hero__mark .logo { width: 100%; height: auto; }
/* piste B, flèche « Passage » : la flèche sort du carré à l'ouverture (même animation que la vidéo du logo) */
.hero__mark .hero__anim { display: none; }
:root[data-piste="B2"] .hero__mark .logo--sym { display: none; }
:root[data-piste="B2"] .hero__mark .hero__anim { display: block; }
.hero__anim .fl-fleche { fill: var(--lg-accent, currentColor); }
.hero__anim.joue .fl-move { animation: fl-sortie 1.5s .35s both; }
@keyframes fl-sortie {
  0%   { transform: translate(-63.43px, 63.43px); animation-timing-function: cubic-bezier(.45, 0, .55, 1); }
  22%  { transform: translate(-68.38px, 68.38px); animation-timing-function: cubic-bezier(.16, .84, .3, 1); }
  100% { transform: translate(0, 0); }
}
:root[data-piste="E"] .hero__mark { width: min(52vw, 220px); }
.hero__text { display: grid; gap: 22px; }
.hero__title {
  font-family: var(--f-display); font-weight: 850; letter-spacing: -.04em; line-height: .95;
  font-size: clamp(2.75rem, 1.55rem + 5.4vw, 7rem);
  text-wrap: balance;
}
.hero__title em {
  display: block; font-family: var(--f-serif); font-style: italic; font-weight: 400; letter-spacing: -.02em;
  color: var(--accent); font-size: 1.08em; line-height: 1; margin-top: .06em;
}
.hero__lead { font-size: clamp(1.125rem, 1rem + .6vw, 1.375rem); line-height: 1.45; color: var(--fg2); max-width: 30ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
@media (max-width: 420px) { .hero__actions .btn { flex: 1 1 100%; } }

@media (min-width: 900px) {
  .hero__in { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: center; gap: 48px; padding-top: 88px; padding-bottom: 112px; min-height: min(78vh, 820px); }
  .hero__text { order: 1; gap: 28px; }
  .hero__mark { order: 2; width: 100%; max-width: 500px; justify-self: end; margin-right: 0; }
  :root[data-piste="E"] .hero__mark { width: 100%; max-width: 520px; }
}

/* bandeau défilant */
.band { overflow: hidden; border-block: 1px solid var(--rule); }
.band__track {
  display: flex; align-items: center; gap: 28px; width: max-content; padding: 18px 0;
  font-family: var(--f-display); font-weight: 800; font-size: clamp(1.125rem, .95rem + .8vw, 1.625rem); letter-spacing: -.01em; text-transform: uppercase; white-space: nowrap;
  animation: defile 48s linear infinite;
}
.band__track i { width: 12px; height: 12px; border-radius: 50%; background: currentColor; flex: none; }
.band__track i:nth-of-type(even) { border-radius: 0; }
@keyframes defile { to { transform: translateX(-50%); } }

/* ------------------------------------------------------------------ 2. vision */
.vision__lead {
  font-family: var(--f-display); font-weight: 800; letter-spacing: -.035em; line-height: 1.04;
  font-size: clamp(2rem, 1.2rem + 3.6vw, 4.75rem);
  max-width: 19ch; text-wrap: balance;
}
.vision__lead .hl { font-family: var(--f-serif); font-style: italic; font-weight: 400; letter-spacing: -.015em; }
.manifeste { margin-top: 56px; border-top: 2px solid var(--ink); counter-reset: m; }
.manifeste li { display: grid; gap: 12px; padding: 28px 0 32px; border-bottom: 1px solid var(--rule); }
.manifeste__k { display: flex; align-items: center; gap: 12px; font-family: var(--f-display); font-weight: 700; font-size: .8125rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.manifeste__k::before { content: ""; width: 12px; height: 12px; background: var(--brand); flex: none; }
.manifeste li:nth-child(2) .manifeste__k::before { border-radius: 50%; background: var(--brand-big); }
.manifeste p { font-size: clamp(1.125rem, 1rem + .55vw, 1.375rem); line-height: 1.5; max-width: 48ch; }
.manifeste .manifeste__fort { font-family: var(--f-display); font-weight: 800; letter-spacing: -.025em; line-height: 1.12; font-size: clamp(1.625rem, 1.2rem + 1.9vw, 2.75rem); max-width: 26ch; text-wrap: balance; }
@media (min-width: 900px) {
  .manifeste { display: grid; grid-template-columns: repeat(2, 1fr); column-gap: 64px; border-bottom: 1px solid var(--rule); }
  .manifeste li { border-bottom: 0; padding: 32px 0 40px; align-content: start; }
  .manifeste li:nth-child(2) { order: -1; grid-column: 1 / -1; border-bottom: 1px solid var(--rule); padding-bottom: 48px; }
  .manifeste li:nth-child(2) p { max-width: 26ch; }
}
.citation { margin-top: 64px; display: grid; gap: 18px; }
.citation p {
  font-family: var(--f-serif); font-style: italic; font-weight: 400; line-height: 1.08; letter-spacing: -.01em;
  font-size: clamp(1.875rem, 1.2rem + 3vw, 4rem); max-width: 24ch; text-wrap: balance; color: var(--brand);
}
@media (min-width: 900px) { .citation { margin-top: 96px; margin-left: calc(50% + 32px); } }

/* ------------------------------------------------------------------ 3. ce que nous faisons */
.cards { display: grid; gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
.card { position: relative; display: grid; gap: 14px; align-content: start; padding: 28px 24px 32px; background: var(--paper); }
.card .picto { width: 64px; height: 64px; margin-bottom: 22px; }
.card__n { position: absolute; top: 26px; right: 24px; font-family: var(--f-display); font-weight: 700; font-size: .8125rem; letter-spacing: .08em; color: var(--muted); }
.card__t { font-family: var(--f-display); font-weight: 800; font-size: 1.625rem; letter-spacing: -.025em; line-height: 1.1; }
.card p { color: var(--muted); font-size: 1rem; line-height: 1.55; }
.p-main { fill: var(--p-main); }
.p-acc { fill: var(--p-acc); }
.p-line { fill: none; stroke: var(--p-main); stroke-width: 5; }
@media (min-width: 640px) { .cards { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .cards { grid-template-columns: repeat(4, 1fr); } .card { padding: 36px 32px 40px; min-height: 300px; } }

/* ------------------------------------------------------------------ 4. domaines */
.domaines__in { display: grid; gap: 8px; }
.liste { border-top: 1px solid var(--rule); }
.liste li { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 20px 0; border-bottom: 1px solid var(--rule); }
.liste__n { font-family: var(--f-display); font-weight: 700; font-size: .8125rem; letter-spacing: .08em; color: var(--accent); }
.liste__t { font-family: var(--f-display); font-weight: 800; letter-spacing: -.03em; line-height: 1.05; font-size: clamp(1.5rem, 1.05rem + 2.1vw, 3.25rem); hyphens: manual; overflow-wrap: break-word; }
.liste__f { width: 14px; height: 14px; border-radius: 50%; background: var(--accent); transition: transform .35s var(--ease); }
.liste__f--sq { border-radius: 0; background: transparent; border: 2px solid var(--light); }
.liste li:hover .liste__f { transform: translate(6px, -6px); }
@media (min-width: 1100px) {
  .domaines__in { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 72px; align-items: start; }
  .head--side { position: sticky; top: 120px; margin-bottom: 0; }
  .head--side .h2 { font-size: clamp(2.25rem, 1rem + 2.2vw, 3.5rem); }
  .liste li { grid-template-columns: 64px minmax(0, 1fr) auto; padding: 26px 0; }
  .liste__f { width: 18px; height: 18px; }
}

/* ------------------------------------------------------------------ 5. en images */
.galerie { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
.ph { position: relative; overflow: hidden; background: var(--t-bg); aspect-ratio: 4 / 3; }
.ph svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.ph--1 { grid-column: 1 / -1; aspect-ratio: 3 / 2; }
.ph--2 { aspect-ratio: 1; }
.ph--3 { aspect-ratio: 1; }
.ph--4 { aspect-ratio: 3 / 4; }
.ph--5 { aspect-ratio: 3 / 4; }
.ph--6 { grid-column: 1 / -1; aspect-ratio: 3 / 2; }
@media (min-width: 900px) {
  .galerie { grid-template-columns: repeat(12, 1fr); gap: 16px; }
  .ph--1 { grid-column: 1 / span 7; grid-row: span 2; aspect-ratio: auto; min-height: 560px; }
  .ph--2 { grid-column: 8 / span 5; aspect-ratio: auto; }
  .ph--3 { grid-column: 8 / span 5; aspect-ratio: auto; }
  .ph--4 { grid-column: 1 / span 4; aspect-ratio: 4 / 5; }
  .ph--5 { grid-column: 5 / span 4; aspect-ratio: 4 / 5; }
  .ph--6 { grid-column: 9 / span 4; aspect-ratio: 4 / 5; }
}
.t-dark  { --t-bg: var(--dark);   --g-main: var(--light); --g-acc: var(--accent); --g-line: color-mix(in srgb, var(--light) 12%, transparent); }
.t-band  { --t-bg: var(--band);   --g-soft: color-mix(in srgb, var(--on-band) 16%, transparent); --g-strong: var(--on-band); }
.t-alt   { --t-bg: var(--light-2); --g-brand: var(--brand); --g-accl: var(--brand-big); }
.t-light { --t-bg: var(--paper); --g-frame: var(--brand); --g-accl: var(--brand-big); }
.t-brand { --t-bg: var(--brand); --g-onb: color-mix(in srgb, var(--light) 22%, transparent); --g-onb2: var(--light); }
:root[data-palette="signal"] .t-brand { --t-bg: var(--dark); --g-onb2: var(--accent); }
.g-main { fill: var(--g-main); }
.g-acc { fill: var(--g-acc); }
.g-lines { fill: none; stroke: var(--g-line); stroke-width: 1; vector-effect: non-scaling-stroke; }
.g-soft rect { fill: var(--g-soft); }
.g-strong { fill: var(--g-strong); }
.g-brand { fill: var(--g-brand); }
.g-accl { fill: var(--g-accl); }
.g-frame { fill: none; stroke: var(--g-frame); stroke-width: 10; }
.g-onb { fill: var(--g-onb); }
.g-onb2 { fill: var(--g-onb2); }
.ph figcaption { position: absolute; inset: 12px; display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start; pointer-events: none; }
.chip {
  order: 2; display: inline-flex; align-items: center; gap: 9px; padding: 8px 14px 8px 12px; border-radius: 999px;
  background: var(--light); color: var(--ink); font-family: var(--f-display); font-weight: 750; font-size: .875rem; letter-spacing: .01em;
  border: 1.5px solid color-mix(in srgb, var(--ink) 22%, transparent);
}
.chip i { position: relative; width: 14px; height: 11px; border: 1.5px solid currentColor; border-radius: 2px; }
.chip i::after { content: ""; position: absolute; left: 3px; top: 2px; width: 4px; height: 4px; border-radius: 50%; background: currentColor; }
.ph__meta { order: 1; padding: 5px 10px; border-radius: 999px; background: color-mix(in srgb, var(--ink) 78%, transparent); color: #fff; font-size: .75rem; font-weight: 500; letter-spacing: .02em; }
@media (min-width: 900px) { .ph figcaption { inset: 20px; } .chip { font-size: 1rem; padding: 10px 18px 10px 14px; } }

/* ------------------------------------------------------------------ 6. lieux */
.lieux { position: relative; }
.lieux__in { display: grid; gap: 8px; }
.lieux__list { display: grid; gap: 12px; }
.lieu {
  position: relative; display: grid; gap: 6px; padding: 24px 24px 26px 76px; min-height: 120px; align-content: center;
  background: var(--paper); border: 1.5px dashed color-mix(in srgb, var(--ink) 34%, transparent);
}
.lieu__pin { position: absolute; left: 24px; top: 28px; width: 30px; height: 30px; border-radius: 50%; background: var(--brand-big); }
.lieu__pin--sq { border-radius: 0; background: var(--brand); }
.lieu__n { font-family: var(--f-display); font-weight: 700; font-size: .8125rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.lieu__t { font-family: var(--f-display); font-weight: 800; font-size: clamp(1.375rem, 1.15rem + .9vw, 1.875rem); letter-spacing: -.025em; line-height: 1.1; }
.lieu__m { color: var(--muted); font-size: .9375rem; }
@media (min-width: 1100px) {
  .lieux__in { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 72px; align-items: start; }
  .lieux__list {
    padding: 40px; gap: 16px;
    background-color: var(--light);
    background-image: radial-gradient(color-mix(in srgb, var(--ink) 22%, transparent) 1.4px, transparent 1.6px);
    background-size: 22px 22px;
  }
  .lieu { padding: 30px 32px 30px 96px; }
  .lieu__pin { left: 32px; top: 34px; width: 36px; height: 36px; }
}

/* ------------------------------------------------------------------ 7. rejoindre */
.rejoindre { display: grid; }
.rejoindre__bloc { padding: var(--sec) var(--gut); }
.rejoindre__in { display: grid; gap: 22px; justify-items: start; max-width: 620px; }
.rejoindre__txt { font-size: clamp(1.0625rem, 1rem + .3vw, 1.1875rem); line-height: 1.6; max-width: 44ch; }
.s-band .rejoindre__txt, .s-band .label { color: var(--on-band); }
.s-dark .rejoindre__txt { color: var(--muted-d); }
.rejoindre .h2 { font-size: clamp(2rem, 1.3rem + 2.8vw, 3.75rem); max-width: 14ch; }
.rejoindre .btn { margin-top: 10px; }
@media (min-width: 900px) {
  .rejoindre { grid-template-columns: 1fr 1fr; }
  .rejoindre__bloc:first-of-type .rejoindre__in { margin-left: auto; margin-right: 0; padding-right: 32px; }
  .rejoindre__bloc { padding-top: calc(var(--sec) * 1.05); padding-bottom: calc(var(--sec) * 1.1); }
  .rejoindre__bloc:first-of-type { padding-left: max(var(--gut), calc((100vw - var(--wrap)) / 2)); }
  .rejoindre__bloc:last-of-type { padding-right: max(var(--gut), calc((100vw - var(--wrap)) / 2)); padding-left: 64px; }
}

/* ------------------------------------------------------------------ 8. contact */
.contact__mail {
  display: inline-block; margin-top: 28px; max-width: 100%;
  font-family: var(--f-display); font-weight: 800; letter-spacing: -.045em; line-height: 1;
  font-size: clamp(1.5rem, 7.4vw, 7.25rem); color: var(--brand); text-decoration: none; overflow-wrap: anywhere;
  background-image: linear-gradient(currentColor, currentColor); background-size: 0 .06em; background-repeat: no-repeat; background-position: 0 100%;
  padding-bottom: .08em; transition: background-size .45s var(--ease);
}
.contact__mail:hover { background-size: 100% .06em; }
.contact__site { margin-top: 24px; font-family: var(--f-display); font-weight: 700; font-size: 1.125rem; color: var(--muted); }

/* ------------------------------------------------------------------ pied de page */
.pied { padding: 64px 0 28px; }
.pied__in { display: grid; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid var(--rule); }
.pied__brand { display: grid; gap: 16px; justify-items: start; }
.logo--pied { height: calc(var(--hor-h) * 1.3); }
.pied__devise { font-family: var(--f-serif); font-style: italic; font-size: 1.5rem; line-height: 1.2; color: var(--light); }
.pied__nav { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px; font-size: .9375rem; }
.pied__nav a { color: var(--muted-d); text-decoration: none; }
.pied__nav a:hover { color: var(--light); text-decoration: underline; }
.pied__nav a:last-child { grid-column: 1 / -1; color: var(--light); font-weight: 600; }
.pied__bas { display: flex; flex-wrap: wrap; gap: 8px 28px; padding-top: 24px; font-size: .8125rem; color: var(--muted-d); }
@media (min-width: 900px) {
  .pied__in { grid-template-columns: 1fr auto; align-items: end; }
  .pied__nav { grid-template-columns: repeat(3, auto); gap: 12px 40px; }
  .pied__bas p:last-child { margin-left: auto; }
}

/* ------------------------------------------------------------------ mouvement */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .band__track { animation: none; }
  .btn, .liste__f, .contact__mail, .top__nav a { transition: none; }
  .hero__anim .fl-move { animation: none !important; }
}
:root.fige .band__track, :root.fige .hero__anim .fl-move { animation: none; }

/* fond craie dominant (12/11/2026) : l'ouverture en clair garde sa grille, tracée à l'encre */
.hero.s-light .hero__grid-bg {
  background-image:
    linear-gradient(to right, color-mix(in srgb, var(--ink) 6%, transparent) 1px, transparent 1px),
    linear-gradient(to bottom, color-mix(in srgb, var(--ink) 6%, transparent) 1px, transparent 1px);
}
.pied__bas a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
/* en-tête et ouverture en clair : menu et bouton secondaire à l'encre */
.top.s-light .top__nav a { color: color-mix(in srgb, var(--ink) 72%, var(--light)); }
.top.s-light .top__nav a:hover { color: var(--ink); }
.s-light .btn--ghost { --b-fg: var(--ink); --b-bd: color-mix(in srgb, var(--ink) 45%, transparent); }
.s-light .btn--ghost:hover { --b-bd: var(--ink); }
/* page des mentions légales */
.legal { padding-top: 56px; padding-bottom: 96px; }
.legal h1 { font-family: var(--f-display); font-weight: 850; letter-spacing: -.03em; line-height: 1; font-size: clamp(2.25rem, 1.6rem + 3vw, 3.5rem); margin-bottom: 40px; }
.legal h2 { font-family: var(--f-display); font-weight: 750; font-size: 1.25rem; margin: 40px 0 12px; }
.legal p, .legal li { max-width: 68ch; line-height: 1.6; color: var(--fg2); }
.legal ul { padding-left: 1.2em; list-style: disc; }
.legal a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.legal .a-completer { background: color-mix(in srgb, var(--accent) 22%, transparent); padding: 0 .25em; }
.legal p + p { margin-top: 12px; }
/* audit du 12/11 : menu visible aussi sur tablette (760-1039 px) et sur téléphone (2e ligne sous le logo) */
@media (min-width: 760px) and (max-width: 1039px) {
  .top__nav { display: flex; gap: 22px; margin-left: auto; margin-right: 8px; }
  .top__nav a { font-family: var(--f-display); font-weight: 600; font-size: .9375rem; text-decoration: none; }
}
@media (max-width: 759px) {
  html { scroll-padding-top: 100px; }
  .top__in { flex-wrap: wrap; row-gap: 0; column-gap: 12px; }
  .top__nav { display: flex; order: 3; width: 100%; gap: 18px; overflow-x: auto; scrollbar-width: none; margin-top: -6px; }
  .top__nav::-webkit-scrollbar { display: none; }
  .top__nav a { font-family: var(--f-display); font-weight: 600; font-size: .9375rem; text-decoration: none; white-space: nowrap; padding: 10px 0 12px; }
}
/* cibles tactiles d'au moins 44 px */
.btn--sm { min-height: 44px; }
.pied__nav { row-gap: 0; }
.pied__nav a, .pied__bas a { display: inline-block; padding-block: 10px; }
.pied__bas a { padding-block: 12px; }
@media (min-width: 900px) { .pied__nav { row-gap: 0; } }
/* bandeau : plus de saut à chaque tour (l'espace fait partie de chaque élément), pause au survol */
.band__track { gap: 0; }
.band__track > * { margin-right: 28px; }
.band:hover .band__track { animation-play-state: paused; }
/* « Des » seul sur sa ligne en très grand écran */
@media (min-width: 1100px) { .head--side .h2 { font-size: clamp(2.25rem, 1rem + 2.2vw, 3rem); } }
/* page introuvable */
.introuvable { padding-top: 72px; padding-bottom: 120px; }
.introuvable h1 { font-family: var(--f-display); font-weight: 850; letter-spacing: -.03em; line-height: 1; font-size: clamp(2.25rem, 1.6rem + 3vw, 3.5rem); margin-bottom: 20px; }
.introuvable p { max-width: 52ch; line-height: 1.6; color: var(--fg2); margin-bottom: 28px; }
/* 12/11 : « Participer » (jeunes et parents) */
.appels { display: grid; gap: 16px; }
.appel { display: grid; gap: 14px; justify-items: start; align-content: start; padding: 32px 24px 36px; background: var(--paper); border: 1px solid var(--rule); }
.appel.s-dark { background: var(--dark); border-color: var(--dark); }
.appel .picto { width: 56px; height: 56px; margin-bottom: 12px; }
.appel__k { font-family: var(--f-display); font-weight: 700; font-size: .8125rem; letter-spacing: .14em; text-transform: uppercase; color: var(--fg2); }
.appel__t { font-family: var(--f-display); font-weight: 800; letter-spacing: -.03em; line-height: 1.05; font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.75rem); text-wrap: balance; }
.appel__txt { color: var(--fg2); font-size: clamp(1.0625rem, 1rem + .3vw, 1.1875rem); line-height: 1.6; max-width: 40ch; }
.appel .btn { margin-top: 12px; }
@media (min-width: 760px) { .appels { grid-template-columns: 1fr 1fr; } .appel { padding: 44px 40px 48px; } }
/* 12/11 : « Solidarité » (trois cartes, une phrase, un appel) */
@media (min-width: 640px) { .cards.cards--3 { grid-template-columns: 1fr; } }
@media (min-width: 900px) { .cards.cards--3 { grid-template-columns: repeat(3, 1fr); } }
.solidarite__pied { display: grid; gap: 32px; margin-top: 56px; padding-top: 40px; border-top: 2px solid var(--ink); }
.solidarite__phrase { font-family: var(--f-serif); font-style: italic; font-weight: 400; line-height: 1.12; letter-spacing: -.01em; font-size: clamp(1.75rem, 1.2rem + 2.2vw, 3rem); max-width: 24ch; text-wrap: balance; color: var(--brand); }
.solidarite__appel { display: grid; gap: 18px; justify-items: start; }
.solidarite__appel p { font-family: var(--f-display); font-weight: 700; font-size: clamp(1.125rem, 1rem + .5vw, 1.375rem); line-height: 1.35; max-width: 30ch; }
@media (min-width: 900px) { .solidarite__pied { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 64px; align-items: end; } }
/* menu sur téléphone : 6 liens ne tiennent pas sur 343 px ; « Domaines » suit « Actions » et reste dans le pied de page */
@media (max-width: 759px) {
  .top__nav { gap: 12px; }
  .top__nav a { font-size: .875rem; }
  .top__nav a[href="#domaines"] { display: none; }
}
