/* Version 5 : inspirée de nodcoding.com. Fond crème chaud, grandes formes géométriques (cercles, pilules,
   demi-cercles) et lignes de circuit terminées par des nœuds, comme sur le logo. Palette officielle FAB4SEN.
   Les zones jaunes (.ph) sont des champs à remplir. */
:root {
  --yellow: #FFD500;
  --red: #E0151B;
  --green: #00A33F;
  --ink: #2C2C2C;
  --white: #FFFFFF;
  --forest: #137534;
  --cream: color-mix(in srgb, var(--yellow) 6%, var(--white));
  --yellow-soft: color-mix(in srgb, var(--yellow) 28%, var(--white));
  --green-soft: color-mix(in srgb, var(--green) 14%, var(--white));
  --red-soft: color-mix(in srgb, var(--red) 12%, var(--white));
  --text: color-mix(in srgb, var(--ink) 80%, var(--white));
  --line: color-mix(in srgb, var(--ink) 14%, var(--white));
  --font: "Figtree", "Segoe UI", system-ui, sans-serif;
  --r: 32px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body { margin: 0; background: var(--cream); color: var(--ink); font: 400 1.0625rem/1.6 var(--font); -webkit-font-smoothing: antialiased; overflow-x: clip; }
img { max-width: 100%; display: block; }
a { color: var(--forest); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 8px; }
h1, h2, h3 { margin: 0; font-family: var(--font); font-weight: 600; color: var(--ink); text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 6.6vw, 5.4rem); line-height: 1.02; letter-spacing: -.035em; }
h2 { font-size: clamp(2rem, 4.8vw, 3.6rem); line-height: 1.05; letter-spacing: -.03em; }
h3 { font-size: clamp(1.35rem, 2.2vw, 1.75rem); line-height: 1.15; letter-spacing: -.02em; }
p { margin: 0; }
.wrap { width: 100%; max-width: 1240px; margin-inline: auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--ink); color: var(--white); padding: 10px 16px; border-radius: 999px; }
.skip:focus { left: 12px; }
.kicker { font-weight: 700; font-size: .85rem; letter-spacing: .14em; text-transform: uppercase; color: var(--forest); }
.text { color: var(--text); }
.ph { background: var(--yellow); color: var(--ink); padding: 2px 8px; border-radius: 8px; font-weight: 600; font-size: .9em; }

/* Boutons pilule */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 14px 30px; border-radius: 999px; background: var(--ink); color: var(--white); font: 600 1.05rem/1.2 var(--font); text-align: center; text-decoration: none; transition: transform .2s ease, background-color .2s ease; }
.btn:hover { transform: translateY(-2px) scale(1.02); }
.btn.red { background: var(--red); }
.btn.yellow { background: var(--yellow); color: var(--ink); }
.btn.green { background: var(--forest); }
.btn.white { background: var(--white); color: var(--ink); }
.btn.sm { min-height: 44px; padding: 10px 22px; font-size: .98rem; }
.btns { display: flex; flex-wrap: wrap; gap: 12px; }

/* En-tête flottant */
header.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; padding-block: 14px; }
.bar { display: flex; align-items: center; gap: 16px; background: var(--white); border-radius: 999px; padding: 8px 8px 8px 14px; box-shadow: 0 8px 30px rgba(44, 44, 44, .08); }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 1.3rem; letter-spacing: -.02em; margin-right: auto; }
.brand img { width: 44px; height: 44px; }
.nav { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav a { display: block; padding: 10px 14px; border-radius: 999px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: .98rem; }
.nav a:hover, .nav a[aria-current] { background: var(--yellow-soft); }
.menu { position: relative; display: none; }
.menu summary { list-style: none; cursor: pointer; width: 48px; height: 48px; border-radius: 50%; background: var(--green); display: grid; place-items: center; }
.menu summary::-webkit-details-marker { display: none; }
.menu summary span, .menu summary span::after { display: block; width: 18px; height: 3px; border-radius: 3px; background: var(--white); position: relative; }
.menu summary span { transform: translateY(-3px); }
.menu summary span::after { content: ""; position: absolute; top: 7px; left: 0; }
.menu ul { position: absolute; right: 0; top: calc(100% + 14px); width: min(320px, calc(100vw - 40px)); margin: 0; padding: 10px; list-style: none; background: var(--white); border-radius: 26px; box-shadow: 0 18px 44px rgba(44, 44, 44, .16); }
.menu li a { display: block; padding: 12px 16px; border-radius: 16px; color: var(--ink); text-decoration: none; font-weight: 600; }
.menu li a:hover, .menu li a[aria-current] { background: var(--yellow-soft); }
@media (max-width: 1080px) { .nav { display: none; } .menu { display: block; } }
@media (max-width: 520px) { .bar .btn { display: none; } }

/* Lignes de circuit (le motif du logo) */
.wire { position: absolute; top: 50%; height: 3px; background: var(--ink); }
.wire::after { content: ""; position: absolute; top: 50%; width: 14px; height: 14px; border: 3px solid var(--ink); border-radius: 50%; background: var(--cream); transform: translateY(-50%); }
.wire.l { left: 0; right: calc(50% + var(--gap)); } .wire.l::after { right: -10px; }
.wire.r { right: 0; left: calc(50% + var(--gap)); } .wire.r::after { left: -10px; }

/* Hero : le nom FAB4SEN écrit avec les formes, tracé par tracé */
.hero { position: relative; padding-block: clamp(36px, 7vw, 88px) clamp(24px, 4vw, 44px); --w: min(1000px, calc(100vw - 40px)); --gap: calc(var(--w) / 2 + 16px); }
.wordmark { position: relative; z-index: 1; display: block; width: var(--w); height: auto; margin-inline: auto; overflow: visible; }
.wordmark path[pathLength] { stroke-dasharray: 1 2; stroke-dashoffset: 0; animation: draw .55s cubic-bezier(.6, 0, .3, 1) both; animation-delay: var(--d); }
.wordmark .star { transform-box: fill-box; transform-origin: center; animation: pop .7s cubic-bezier(.3, 1.5, .5, 1) both .1s; }
@keyframes draw { from { stroke-dashoffset: 1; opacity: 0; } 1% { opacity: 1; } to { stroke-dashoffset: 0; opacity: 1; } }
@media (max-width: 1100px) { .wire { display: none; } }
@keyframes pop { from { transform: scale(.4); opacity: 0; } to { transform: none; opacity: 1; } }

/* Intro : grand titre à gauche, texte à droite */
.intro { background: var(--white); padding-block: clamp(48px, 7vw, 96px); }
.intro .wrap { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: end; }
.intro .side { display: grid; gap: 22px; }
.intro .side > p { font-size: 1.15rem; }
.give { display: grid; gap: 12px; }
.give a { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px 18px 26px; border-radius: 999px; text-decoration: none; color: var(--ink); transition: transform .2s ease; }
.give a:hover { transform: translateX(4px); }
.give a b { display: block; font-size: 1.1rem; }
.give a small { display: block; font-size: .92rem; opacity: .85; }
.give .g1 { background: var(--yellow); }
.give .g2 { background: var(--forest); color: var(--white); }
.give .arrow { flex: none; width: 46px; height: 46px; border-radius: 50%; background: var(--white); color: var(--ink); display: grid; place-items: center; font-size: 1.3rem; font-weight: 700; }

/* Bandeau défilant */
.marquee { overflow: hidden; padding-block: clamp(28px, 4vw, 48px); border-block: 3px solid var(--ink); background: var(--cream); }
.marquee .track { display: flex; width: max-content; animation: slide 32s linear infinite; }
.marquee .seq { display: flex; align-items: center; gap: clamp(20px, 3vw, 40px); padding-right: clamp(20px, 3vw, 40px); }
.marquee span { font-weight: 600; font-size: clamp(2.2rem, 6vw, 4.6rem); letter-spacing: -.035em; white-space: nowrap; line-height: 1; }
.marquee i { flex: none; width: clamp(28px, 4vw, 48px); aspect-ratio: 1; }
.sh-c { border-radius: 50%; background: var(--green); }
.sh-d { border: clamp(7px, 1vw, 12px) solid var(--red); border-radius: 30%; transform: rotate(45deg) scale(.8); }
.sh-h { background: var(--yellow); border-radius: 999px 999px 0 0; height: auto; aspect-ratio: 2 / 1 !important; }
.sh-p { background: var(--red); border-radius: 999px; width: clamp(48px, 7vw, 84px) !important; height: clamp(24px, 3.5vw, 42px); aspect-ratio: auto !important; }
.sh-s { background: var(--forest); clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); }
@keyframes slide { to { transform: translateX(-50%); } }

/* Sections */
.sec { padding-block: clamp(56px, 9vw, 120px); }
.head { display: grid; gap: 16px; max-width: 780px; margin-bottom: clamp(32px, 5vw, 56px); }
.head.center { margin-inline: auto; text-align: center; justify-items: center; }
.head p:not(.kicker) { font-size: 1.12rem; color: var(--text); }

/* Étapes empilées (cartes collantes) */
.stack { display: grid; gap: 28px; }
.step { position: sticky; top: calc(104px + var(--i) * 18px); min-height: clamp(300px, 38vw, 400px); border-radius: var(--r); padding: clamp(28px, 4vw, 52px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .8fr); gap: 28px; align-items: center; box-shadow: 0 -8px 30px rgba(44, 44, 44, .06); }
.step .num { font-weight: 600; font-size: 1rem; letter-spacing: .1em; opacity: .75; }
.step h3 { font-size: clamp(2rem, 4.4vw, 3.4rem); letter-spacing: -.035em; margin: 10px 0 14px; }
.step p { font-size: 1.12rem; max-width: 46ch; }
.step .more { margin-top: 18px; font-weight: 700; }
.step .more a { color: inherit; }
/* Les trois étapes reprennent le drapeau du Sénégal : vert, jaune, rouge */
.s1 { background: var(--green); --i: 0; }
.s2 { background: var(--yellow); --i: 1; }
.s3 { background: var(--red); color: var(--white); --i: 2; } .s3 h3 { color: var(--white); }
.art { position: relative; width: min(100%, 260px); aspect-ratio: 1; justify-self: center; }
.art > * { position: absolute; display: block; }
.a1 .x { left: 6%; bottom: 8%; width: 40%; aspect-ratio: 1; border-radius: 50%; background: var(--ink); }
.a1 .y { left: 38%; bottom: 8%; width: 56%; height: 22%; border-radius: 999px; background: var(--white); }
.a1 .z { left: 30%; bottom: 33%; width: 46%; height: 22%; border-radius: 999px; background: var(--red); }
.a1 .w { left: 20%; bottom: 58%; width: 60%; height: 22%; border-radius: 999px; background: var(--forest); }
.a2 .x { left: 0; right: 0; top: 46%; height: 4px; background: var(--ink); }
.a2 .y { left: 8%; top: 18%; width: 50%; height: 30%; border-radius: 12px 12px 0 0; background: var(--white); }
.a2 .z { left: 14%; top: 49%; width: 18%; aspect-ratio: 1; border-radius: 50%; background: var(--ink); }
.a2 .w { left: 52%; top: 49%; width: 18%; aspect-ratio: 1; border-radius: 50%; background: var(--ink); }
.a2 .v { left: 56%; top: 26%; width: 32%; height: 22%; border-radius: 0 999px 0 0; background: var(--red); }
.a3 .x { inset: 10%; border-radius: 50%; border: 18px solid var(--white); }
.a3 .y { left: 34%; top: 34%; width: 32%; aspect-ratio: 1; border-radius: 50%; background: var(--yellow); }
.a3 .z { left: 46%; top: 0; width: 8%; height: 100%; border-radius: 999px; background: var(--ink); transform: rotate(45deg); }
.a4 [class^="k"] { left: 4%; width: 48%; height: 12%; border-radius: 999px; background: var(--yellow); }
.a4 .k1 { bottom: 4%; } .a4 .k2 { bottom: 18%; left: 7%; } .a4 .k3 { bottom: 32%; } .a4 .k4 { bottom: 46%; left: 6%; }
.a4 .k5 { left: 56%; width: 40%; bottom: 4%; } .a4 .k6 { left: 58%; width: 40%; bottom: 18%; }
.a4 .coin { right: 4%; top: 6%; width: 40%; aspect-ratio: 1; border-radius: 50%; background: var(--yellow); animation: float 3.2s ease-in-out infinite; }
.a4 .coin::after { content: ""; position: absolute; inset: 18%; border-radius: 50%; border: clamp(4px, .6vw, 7px) solid var(--forest); }
.a4 .spk { left: 40%; top: 4%; width: 13%; aspect-ratio: 1; background: var(--white); clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); }
@keyframes float { 50% { transform: translateY(-8%); } }

/* Photo encadrée d'arcs */
.arcs { position: relative; height: clamp(90px, 14vw, 170px); overflow: hidden; }
.arcs i { position: absolute; bottom: 0; aspect-ratio: 2 / 1; border-radius: 999px 999px 0 0; }
.arcs::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--ink); }
.arcs i:nth-child(1) { left: -4%; height: 100%; background: var(--red); }
.arcs i:nth-child(2) { left: 18%; height: 86%; background: var(--yellow); }
.arcs i:nth-child(3) { left: 26%; height: 44%; background: var(--green); }
.arcs i:nth-child(4) { left: 48%; height: 96%; background: var(--forest); }
.arcs i:nth-child(5) { left: 70%; height: 78%; background: var(--yellow-soft); }
.arcs i:nth-child(6) { left: 80%; height: 100%; background: var(--red); }
.photo { min-height: clamp(240px, 36vw, 420px); background: var(--white); border-radius: 0 0 var(--r) var(--r); display: grid; place-items: center; padding: 24px; text-align: center; }

/* Chiffres animés */
.stats { background: var(--white); }
.ctx { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: end; margin-bottom: clamp(36px, 5vw, 64px); }
.ctx > div { display: grid; gap: 16px; }
.ctx p:not(.kicker) { color: var(--text); font-size: 1.1rem; }
.nums { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.numcard { border-radius: var(--r); padding: clamp(24px, 3vw, 36px); min-height: 220px; display: flex; flex-direction: column; justify-content: space-between; gap: 24px; }
.numcard:nth-child(1) { background: var(--yellow); }
.numcard:nth-child(2) { background: var(--green-soft); }
.numcard:nth-child(3) { background: var(--forest); color: var(--white); }
.numcard b { font-weight: 600; font-size: clamp(2.8rem, 6vw, 4.8rem); line-height: .95; letter-spacing: -.045em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.numcard > span { font-size: 1.05rem; font-weight: 600; }
.src { margin-top: 16px; font-size: .92rem; color: var(--text); }

/* Matériel */
.mat { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 330px), 1fr)); gap: 16px; }
.mat article { background: var(--white); border-radius: var(--r); padding: clamp(24px, 3vw, 34px); display: grid; gap: 12px; align-content: start; transition: transform .25s ease; }
.mat article:hover { transform: translateY(-4px); }
.mat .ic { width: 52px; height: 52px; margin-bottom: 8px; }
.mat p { color: var(--text); }
.ic.c1 { border-radius: 50%; background: conic-gradient(var(--green) 0 50%, var(--yellow) 0); }
.ic.c2 { border-radius: 999px 999px 0 0; height: 26px; margin-top: 26px; background: var(--red); }
.ic.c3 { border-radius: 14px; background: var(--forest); transform: rotate(45deg) scale(.78); }
.ic.c4 { border-radius: 50%; border: 9px solid var(--ink); position: relative; }
.ic.c5 { border-radius: 999px; background: linear-gradient(90deg, var(--yellow) 50%, var(--red) 50%); height: 30px; margin-top: 22px; width: 76px; }
.ic.c6 { border-radius: 50%; background: linear-gradient(var(--green) 50%, var(--ink) 50%); }

/* Entreprises : le trajet du matériel, de l'entreprise jusqu'à Dakar */
.ent-head { display: grid; grid-template-columns: minmax(0, 1.2fr) auto; gap: 24px 48px; align-items: end; margin-bottom: clamp(40px, 6vw, 72px); }
.ent-head > div:first-child { display: grid; gap: 18px; max-width: 720px; }
.ent-head > div:first-child > p:not(.kicker) { color: var(--text); font-size: 1.12rem; }
.route { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 0 clamp(16px, 2.5vw, 32px); --y: 28px; --endw: clamp(84px, 9vw, 120px); }
.route::before { content: ""; position: absolute; left: calc(var(--endw) / 2); right: calc(var(--endw) / 2); top: calc(var(--y) - 1.5px); height: 3px;
  background: repeating-linear-gradient(90deg, var(--ink) 0 14px, transparent 14px 26px); background-size: 26px 3px; animation: road 1.6s linear infinite; }
@keyframes road { to { background-position: 26px 0; } }
.route .end { position: relative; display: grid; justify-items: center; gap: 14px; align-content: start; width: var(--endw); text-align: center; }
.route .end b { font-size: .95rem; line-height: 1.25; }
.mark { display: block; width: 26px; height: 26px; margin-top: calc(var(--y) - 13px); }
.mark.sq { background: var(--ink); border-radius: 7px; }
.mark.star { width: 40px; height: 40px; margin-top: calc(var(--y) - 20px); background: var(--yellow); clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); }
.stops { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(16px, 2.5vw, 32px); }
.stops li { position: relative; display: grid; gap: 8px; align-content: start; }
.dot { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 1.3rem; margin-bottom: 10px; box-shadow: 0 0 0 8px var(--cream); }
.d1 { background: var(--green); color: var(--ink); } .d2 { background: var(--yellow); color: var(--ink); }
.d3 { background: var(--red); color: var(--white); } .d4 { background: var(--forest); color: var(--white); }
.stops h3 { font-size: 1.25rem; }
.stops p { color: var(--text); }
@media (max-width: 860px) {
  .ent-head { grid-template-columns: minmax(0, 1fr); }
  .route { grid-template-columns: minmax(0, 1fr); gap: 22px; --x: 28px; }
  .route::before { left: calc(var(--x) - 1.5px); right: auto; top: 14px; bottom: 14px; width: 3px; height: auto;
    background: repeating-linear-gradient(180deg, var(--ink) 0 14px, transparent 14px 26px); background-size: 3px 26px; animation-name: road-v; }
  @keyframes road-v { to { background-position: 0 26px; } }
  .route .end { width: auto; grid-template-columns: 56px auto; justify-items: start; align-items: center; text-align: left; }
  .route .end .mark { margin: 0 auto; }
  .stops { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .stops li { grid-template-columns: 56px minmax(0, 1fr); column-gap: 18px; }
  .stops li .dot { grid-row: span 2; margin-bottom: 0; }
}
/* Cagnotte */
.fund { position: relative; overflow: hidden; background: var(--forest); color: var(--white); border-radius: var(--r); padding: clamp(32px, 6vw, 80px); display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, .6fr); gap: 32px; align-items: center; }
.fund h2 { color: var(--white); }
.fund .kicker { color: var(--yellow); }
.fund > div:first-child { display: grid; gap: 18px; }
.fund .spark { width: min(100%, 220px); aspect-ratio: 1; justify-self: center; background: var(--yellow); clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%); animation: spin 18s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Citation en bulle */
.bubble { position: relative; max-width: 880px; margin-inline: auto; background: var(--yellow); border-radius: var(--r); padding: clamp(32px, 5vw, 64px); }
.bubble::after { content: ""; position: absolute; left: 64px; bottom: -22px; width: 44px; height: 44px; background: var(--yellow); clip-path: polygon(0 0, 100% 0, 0 100%); }
.bubble blockquote { margin: 0; font-weight: 600; font-size: clamp(1.8rem, 4.4vw, 3.2rem); line-height: 1.12; letter-spacing: -.03em; }
.who { max-width: 880px; margin: 40px auto 0; display: flex; align-items: center; gap: 16px; padding-left: 36px; }
.who .av { flex: none; width: 56px; height: 56px; border-radius: 50%; background: conic-gradient(var(--green) 0 33%, var(--yellow) 0 66%, var(--red) 0); }
.who b { display: block; }
.who span { color: var(--text); }

/* Équipe */
.lead-card { display: inline-flex; align-items: center; gap: 16px; background: var(--white); border-radius: 999px; padding: 10px 28px 10px 10px; margin-bottom: 20px; }
.av { flex: none; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 1.05rem; }
.lead-card .av { background: var(--ink); color: var(--yellow); }
.lead-card small { display: block; font-weight: 700; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--forest); }
.lead-card b { font-size: 1.25rem; }
.poles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr)); gap: 16px; }
.pole { background: var(--white); border-radius: var(--r); padding: 26px; }
.pole h3 { font-size: 1.25rem; margin-bottom: 16px; }
.pole ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.pole li { display: flex; align-items: center; gap: 12px; font-weight: 600; }
.pole .av { width: 40px; height: 40px; font-size: .85rem; }
.av.y { background: var(--yellow); color: var(--ink); } .av.g { background: var(--green); color: var(--ink); } .av.r { background: var(--red); color: var(--white); } .av.f { background: var(--forest); color: var(--white); }

/* Contact */
.contact { background: var(--ink); color: var(--white); border-radius: var(--r); padding: clamp(32px, 6vw, 80px); position: relative; overflow: hidden; }
.contact h2 { color: var(--white); }
.contact .kicker { color: var(--yellow); }
.contact > p:not(.kicker) { max-width: 60ch; margin-top: 16px; color: color-mix(in srgb, var(--white) 85%, var(--ink)); }
.mail { margin-top: 28px; font-weight: 600; font-size: clamp(1.6rem, 5.4vw, 3.6rem); letter-spacing: -.03em; overflow-wrap: anywhere; }
.mail a { color: var(--yellow); }
.ct { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 24px; margin-top: 40px; padding-top: 28px; border-top: 1px solid color-mix(in srgb, var(--white) 25%, transparent); }
.ct .kicker { color: var(--yellow); margin-bottom: 8px; }
.ct a { color: var(--white); }

/* Pied de page */
footer { margin-top: clamp(40px, 7vw, 96px); }
.foot { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 28px 48px; padding-block: 40px 48px; }
.foot > div { min-width: 0; }
.foot-name { font-weight: 700; font-size: 1.1rem; margin-bottom: 12px; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.foot a { display: inline-block; padding: 4px 0; color: var(--ink); text-decoration: none; font-weight: 600; }
.foot a:hover { text-decoration: underline; }
.foot .text { margin-top: 4px; }

/* Page campus */
.page-head { padding-block: clamp(24px, 5vw, 56px) clamp(24px, 4vw, 40px); }
.page-head .wrap { display: grid; grid-template-columns: minmax(0, 1.4fr) auto; gap: 32px; align-items: end; }
.page-head .lead { margin-top: 20px; font-size: 1.15rem; color: var(--text); max-width: 52ch; }
.page-head .kicker a { color: inherit; text-decoration: none; }
.mini { --c: clamp(44px, 6vw, 72px); width: calc(var(--c) * 3); display: grid; grid-template-columns: repeat(3, var(--c)); grid-auto-rows: var(--c); }
.mini > i { display: block; animation: pop .7s cubic-bezier(.3, 1.5, .5, 1) both; }
.mini > i:nth-child(1) { border-radius: 50%; background: var(--yellow); }
.mini > i:nth-child(2) { grid-column: span 2; border-radius: 999px; background: var(--red); animation-delay: .1s; }
.mini > i:nth-child(3) { grid-column: span 2; border-radius: 999px; background: var(--green-soft); animation-delay: .2s; }
.mini > i:nth-child(4) { border-radius: 50%; background: var(--forest); animation-delay: .3s; }
.campus { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.campus > div:last-child { display: grid; gap: 18px; }
.campus > div:last-child p:not(.kicker) { color: var(--text); font-size: 1.1rem; }
.figure { margin: 0; }
.figure figcaption { margin-top: 12px; font-size: .92rem; color: var(--text); }
.poster { container-type: inline-size; width: 100%; max-width: 560px; margin-inline: auto; border-radius: 10px; overflow: hidden; box-shadow: 0 18px 44px rgba(44, 44, 44, .16); }
.other { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 16px; }
.other article { border-radius: var(--r); padding: clamp(26px, 3.5vw, 40px); display: grid; gap: 12px; }
.other article:nth-child(1) { background: var(--yellow); }
.other article:nth-child(2) { background: var(--green-soft); }

@media (max-width: 900px) {
  .intro .wrap, .ctx, .split, .fund, .campus, .step { grid-template-columns: minmax(0, 1fr); }
  .split > div:first-child { position: static; }
  .nums { grid-template-columns: minmax(0, 1fr); }
  .numcard { min-height: 0; }
  .art { width: min(60%, 200px); justify-self: start; order: -1; }
  .fund .spark { width: 120px; justify-self: start; order: -1; }
  .foot { grid-template-columns: minmax(0, 1fr); }
  .page-head .wrap { grid-template-columns: minmax(0, 1fr); }
  .mini { order: -1; }
}
@media (max-width: 560px) {
  .step { position: relative; top: auto; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Écoles : Télécom SudParis et IP Paris */
.endorse { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px clamp(18px, 3vw, 32px); padding: 0 20px clamp(40px, 6vw, 72px); }
.endorse span { font-weight: 600; font-size: .95rem; color: var(--text); }
.endorse i { width: 1.5px; height: 40px; background: var(--line); }
.endorse a, .foot-logos a { display: block; transition: transform .2s ease; }
.endorse a:hover, .foot-logos a:hover { transform: translateY(-2px); }
.endorse .tsp { height: clamp(46px, 5vw, 58px); width: auto; }
.endorse .ipp { height: clamp(30px, 3.4vw, 38px); width: auto; }
.foot-logos { display: flex; align-items: center; gap: 24px; margin-top: 20px; }
.foot-logos .tsp { height: 48px; width: auto; }
.foot-logos .ipp { height: 30px; width: auto; }
@media (max-width: 480px) { .endorse span { flex-basis: 100%; text-align: center; } }
.ct .rel { display: grid; gap: 12px; align-content: start; }
.ct .rel .kicker { margin-bottom: 0; }
.ct .rel a { overflow-wrap: anywhere; }
.team-photo { max-width: 860px; margin: 0 auto clamp(28px, 4vw, 44px); }
.team-photo img { width: 100%; height: auto; display: block; border-radius: 0 0 var(--r) var(--r); }
/* Page Mécénat et collaborations */
.partners { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.partner { background: var(--cream); border-radius: var(--r); padding: clamp(26px, 3.5vw, 40px); display: grid; gap: 14px; align-content: start; }
.partner.main { grid-column: 1 / -1; background: var(--forest); color: var(--white); }
.partner.main h3, .partner.main h3 a { color: var(--white); }
.partner h3 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
.partner h3 a { color: inherit; text-decoration: none; }
.partner h3 a:hover { text-decoration: underline; }
.partner p:not(.role) { max-width: 62ch; }
.partner:not(.main) p:not(.role) { color: var(--text); }
.role { font-weight: 700; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--forest); }
.partner.main .role { color: var(--yellow); }
.p-top { display: flex; align-items: center; gap: 18px; }
.mono { flex: none; width: 72px; height: 72px; border-radius: 50%; background: var(--yellow); color: var(--ink); display: grid; place-items: center; font-weight: 700; font-size: 1.15rem; letter-spacing: .02em; }
.mono.sm { width: 56px; height: 56px; font-size: 1rem; background: var(--red); color: var(--white); }
.p-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 6px; }
.p-facts > div { background: color-mix(in srgb, var(--white) 10%, transparent); border-radius: 20px; padding: 18px 22px; display: grid; gap: 4px; }
.p-facts b { font-weight: 600; font-size: clamp(1.8rem, 3.6vw, 2.6rem); letter-spacing: -.03em; line-height: 1; color: var(--yellow); }
.p-links a { color: var(--white); font-weight: 700; }
.p-logos { display: flex; align-items: center; gap: 20px; }
.p-logos img:first-child { height: 52px; width: auto; } .p-logos img:last-child { height: 32px; width: auto; }
.ways { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.ways article { border-radius: var(--r); padding: clamp(26px, 3vw, 36px); display: grid; gap: 12px; align-content: start; }
.w1 { background: var(--green); } .w2 { background: var(--yellow); } .w3 { background: var(--red); color: var(--white); } .w3 h3 { color: var(--white); }
.w-num { width: 48px; height: 48px; border-radius: 50%; background: var(--white); color: var(--ink); display: grid; place-items: center; font-weight: 700; font-size: 1.15rem; margin-bottom: 6px; }
.ways .more { margin-top: 6px; font-weight: 700; } .ways .more a { color: inherit; }
.gains { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.gains > div { display: grid; gap: 16px; }
.gains ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.gains li { background: var(--white); border-radius: 22px; padding: 18px 24px; color: var(--text); }
.gains li b { color: var(--ink); }
.slots-head { display: grid; gap: 14px; margin-bottom: 28px; }
.slots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.slots div { border: 3px dashed var(--line); border-radius: var(--r); min-height: 120px; display: grid; place-items: center; font-weight: 600; color: color-mix(in srgb, var(--ink) 40%, var(--white)); }
@media (max-width: 900px) { .partners, .ways, .gains, .p-facts { grid-template-columns: minmax(0, 1fr); } .slots { gap: 10px; } .slots div { min-height: 84px; font-size: .85rem; text-align: center; padding: 8px; } }
@media (max-width: 1240px) { .nav a { padding: 10px 10px; font-size: .95rem; } }
.nav a, .bar .btn { white-space: nowrap; }
@media (max-width: 1180px) { .nav { display: none; } .menu { display: block; } }
/* Cagnotte : QR code HelloAsso */
.fund .fine { font-size: .95rem; opacity: .9; }
.fund .qr { justify-self: center; display: grid; gap: 10px; justify-items: center; background: var(--white); color: var(--ink); text-decoration: none; border-radius: 26px; padding: 18px 18px 14px; transform: rotate(2deg); transition: transform .2s ease; }
.fund .qr:hover { transform: rotate(0) scale(1.03); }
.fund .qr img { width: clamp(150px, 16vw, 200px); height: auto; }
.fund .qr span { font-weight: 700; font-size: .95rem; }
@media (max-width: 900px) { .fund .qr { display: none; } }
/* Page campus : illustration de pastels (en attendant l'affiche) */
.pastel-art { position: relative; width: min(100%, 420px); aspect-ratio: 1; justify-self: center; }
.pastel-art i { position: absolute; width: 58%; aspect-ratio: 2 / 1; border-radius: 999px 999px 0 0; background: var(--yellow); }
.pastel-art i::after { content: ""; position: absolute; inset: 10% 8% 0; border-radius: 999px 999px 0 0; border: 4px dashed color-mix(in srgb, var(--ink) 35%, var(--yellow)); border-bottom: 0; }
.pastel-art .p1 { left: 4%; bottom: 14%; transform: rotate(-12deg); }
.pastel-art .p2 { right: 2%; bottom: 22%; transform: rotate(14deg); background: color-mix(in srgb, var(--yellow) 75%, var(--red)); }
.pastel-art .p3 { left: 22%; bottom: 40%; transform: rotate(-2deg); }
.pastel-art .steam { position: absolute; top: 6%; width: 8px; height: 22%; border-radius: 999px; background: var(--line); animation: steam 2.6s ease-in-out infinite; }
.pastel-art .s1 { left: 36%; } .pastel-art .s2 { left: 50%; animation-delay: .4s; } .pastel-art .s3 { left: 64%; animation-delay: .8s; }
@keyframes steam { 0%, 100% { transform: translateY(0); opacity: .5; } 50% { transform: translateY(-10%); opacity: 1; } }
