/* African Cities Voices — essai inspiré de pepperagency.com
   Blanc, encre, sauge ; la couleur ne sert qu'à identifier Voices et les quatre initiatives. */

:root {
  --ink: #10100e;
  --ink-2: #4a4a44;
  --ink-3: #74746c;
  --paper: #fff;
  --mist: #f6f4ef;
  --line: #e4e1d9;
  --sage: #c8cdba;
  --sage-2: #dfe2d5;
  --sage-deep: #5d6552;
  --voices: #a75771;
  --lab: #347564;
  --journal: #bd5026;
  --innovation: #287f91;
  --junior: #e4ac32;
  --display: "Besley", Georgia, "Times New Roman", serif;
  --text: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1320px;
  --gut: clamp(20px, 4vw, 48px);
  --head: 84px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

@font-face { font-family: "Besley"; font-style: normal; font-weight: 500 900; font-display: swap;
  src: url(fonts/besley-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Besley"; font-style: normal; font-weight: 500 900; font-display: swap;
  src: url(fonts/besley-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Public Sans"; font-style: normal; font-weight: 300 700; font-display: swap;
  src: url(fonts/publicsans-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Public Sans"; font-style: normal; font-weight: 300 700; font-display: swap;
  src: url(fonts/publicsans-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--head); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 16px/1.6 var(--text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; letter-spacing: -.012em; line-height: 1.12; margin: 0; text-wrap: balance; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--voices); outline-offset: 3px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }
.section { padding: clamp(84px, 10vw, 144px) 0; }
.mist { background: var(--mist); }
.eyebrow { font: 600 12px/1.3 var(--text); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Boutons pilule */
.pill {
  display: inline-flex; align-items: center; justify-content: center; gap: .45em;
  min-height: 46px; padding: 0 22px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--paper); color: var(--ink);
  font: 500 15px/1.1 var(--text); text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background .25s, border-color .25s, color .25s;
}
.pill:hover { border-color: var(--ink); }
.pill--sage { background: var(--sage); border-color: var(--sage); }
.pill--sage:hover { background: var(--sage-deep); border-color: var(--sage-deep); color: #fff; }
.pill--ink { background: var(--ink); border-color: var(--ink); color: #fff; }
.pill--ink:hover { background: var(--voices); border-color: var(--voices); }
.textlink { display: inline-flex; gap: .4em; font: 500 15px/1.2 var(--text); text-decoration: none; }
.textlink:hover { text-decoration: underline; text-underline-offset: 5px; }

/* Bulles de parole — le motif de la série */
.bubble {
  position: relative; display: inline-block;
  padding: .02em .34em .1em; margin: .05em 0 .2em;
  border-radius: .5em; background: var(--ink); color: #fff; line-height: 1.1;
}
.bubble::after {
  content: ""; position: absolute; left: .4em; bottom: -.26em;
  width: .44em; height: .32em; background: inherit;
  clip-path: polygon(0 0, 100% 0, 0 100%);
}
.bubble--sage { background: var(--sage); color: var(--ink); }
.bubble--voices { background: var(--voices); }
.bubble--lab { background: var(--lab); }
.bubble--journal { background: var(--journal); }
.bubble--innovation { background: var(--innovation); }
.bubble--junior { background: var(--junior); color: var(--ink); }
.js .bubble { animation: pop .8s cubic-bezier(.2, 1.3, .4, 1) both; animation-delay: calc(var(--i, 0) * 130ms + 200ms); transform-origin: 12% 100%; }
.js .cta .bubble { animation-play-state: paused; }
.js .cta .is-in .bubble { animation-play-state: running; }
@keyframes pop { from { opacity: 0; transform: scale(.5) rotate(-4deg); } }

/* En-tête */
.site-head {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .94);
  -webkit-backdrop-filter: saturate(1.4) blur(12px); backdrop-filter: saturate(1.4) blur(12px);
  transition: box-shadow .3s;
}
.site-head.is-scrolled { box-shadow: 0 1px 0 var(--line), 0 12px 30px rgba(16, 16, 14, .06); }
.head-in { height: var(--head); display: flex; align-items: center; gap: clamp(16px, 2.4vw, 36px); }
.brand { display: flex; align-items: center; gap: 12px; margin-right: auto; text-decoration: none; }
.brand img { width: 44px; height: auto; }
.brand span { font: 700 20px/1.05 var(--display); letter-spacing: -.012em; }
.nav { display: flex; gap: clamp(18px, 2.2vw, 32px); }
.nav a { font: 500 15px var(--text); text-decoration: none; }
.nav a:hover { text-decoration: underline; text-underline-offset: 6px; }
.head-actions { display: flex; align-items: center; gap: 10px; }
.head-actions .lang { margin-right: 8px; }
.lang { display: inline-flex; gap: 6px; font: 500 14px var(--text); color: var(--ink-3); }
.lang a { text-decoration: none; }
.lang a:hover { color: var(--ink); }
.lang [aria-current] { color: var(--ink); font-weight: 700; }

/* Hero : titre à bulles + colonnes d'invités qui défilent */
.hero { border-bottom: 1px solid var(--line); overflow: hidden; }
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
  gap: clamp(24px, 4vw, 64px); align-items: center;
  height: clamp(640px, calc(100svh - var(--head)), 920px);
  padding-left: max(var(--gut), calc((100vw - var(--wrap)) / 2 + var(--gut)));
}
.hero-copy { padding: 56px 0; }
.hero h1 { font-size: clamp(40px, 4.4vw, 72px); }
.hero h1 .line { display: block; white-space: nowrap; }
.hero-lead { margin-top: 26px; max-width: 31em; font-size: clamp(17px, 1.25vw, 19px); line-height: 1.55; color: var(--ink-2); }
.hero .actions { margin-top: 32px; }

.reel { position: relative; display: flex; gap: 20px; height: 100%; overflow: hidden; }
.reel.is-paused .track { animation-play-state: paused; }
.reel-toggle {
  position: absolute; z-index: 2; left: 14px; bottom: 18px; width: 44px; height: 44px; padding: 0;
  border: 0; border-radius: 50%; cursor: pointer; display: grid; place-items: center;
  background: rgba(255, 255, 255, .92); box-shadow: 0 4px 18px rgba(16, 16, 14, .18);
}
.reel-toggle::before { content: ""; width: 12px; height: 14px; border-left: 4px solid var(--ink); border-right: 4px solid var(--ink); box-sizing: border-box; }
.reel.is-paused .reel-toggle::before { width: 0; height: 0; margin-left: 4px; border-right: 0; border-left: 13px solid var(--ink); border-top: 8px solid transparent; border-bottom: 8px solid transparent; }
.reel-toggle:hover { background: #fff; }
.col { flex: 0 0 clamp(200px, 16.5vw, 280px); }
.col--1 { padding-top: 90px; }
.col--2 { padding-top: 30px; }
.track { animation: rise 52s linear infinite; will-change: transform; }
.col--1 .track { animation-name: fall; animation-duration: 44s; }
.col--2 .track { animation-duration: 64s; }
.reel:hover .track, .reel:focus-within .track { animation-play-state: paused; }
@keyframes rise { to { transform: translateY(-50%); } }
@keyframes fall { from { transform: translateY(-50%); } to { transform: none; } }

.shot {
  position: relative; display: block; aspect-ratio: 4 / 5; margin-bottom: 20px;
  border: 7px solid var(--ink); border-radius: 30px; background: var(--ink);
  overflow: hidden; text-decoration: none; isolation: isolate;
}
.shot img { width: 100%; height: 100%; object-fit: cover; transition: filter .4s; }
.shot::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 55%, rgba(16, 16, 14, .35)); }
.shot:hover img { filter: brightness(1.08); }
.tag {
  position: absolute; z-index: 1; left: 12px; bottom: 20px; max-width: calc(100% - 24px);
  padding: 7px 12px 8px; border-radius: 14px; background: #fff; color: var(--ink);
  font: 600 13px/1.25 var(--text);
}
.tag::after { content: ""; position: absolute; left: 14px; bottom: -7px; width: 12px; height: 8px; background: inherit; clip-path: polygon(0 0, 100% 0, 0 100%); }
.tag small { display: block; font-weight: 400; font-size: 12px; color: var(--ink-3); }

/* Écosystème */
.center-head { max-width: 760px; margin: 0 auto clamp(40px, 5vw, 64px); text-align: center; }
.center-head h2, .statement h2, .eps-head h2 { font-size: clamp(34px, 3.7vw, 56px); }
.center-head p { margin-top: 14px; font-size: 18px; color: var(--ink-2); }
.pillars { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.pillar {
  --c: var(--ink); --mk: rgba(255, 255, 255, .16);
  display: flex; flex-direction: column; overflow: hidden;
  border-radius: 22px; background: #fff; text-decoration: none;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.pillar:hover { transform: translateY(-6px); box-shadow: 0 26px 50px -26px rgba(16, 16, 14, .3); }
.pillar--lab { --c: var(--lab); }
.pillar--journal { --c: var(--journal); }
.pillar--innovation { --c: var(--innovation); }
.pillar--junior { --c: var(--junior); --mk: rgba(16, 16, 14, .1); }
.pillar-body { flex: 1; display: flex; flex-direction: column; gap: 12px; padding: 28px 26px 26px; }
.pillar h3 { font-size: clamp(23px, 1.8vw, 27px); }
.pillar-body > p:not(.eyebrow) { font-size: 15px; line-height: 1.55; color: var(--ink-2); }
.pillar-link { margin-top: auto; padding-top: 10px; font: 600 14px var(--text); }
.pillar:hover .pillar-link { text-decoration: underline; text-underline-offset: 5px; }
.pillar-tile { position: relative; height: 136px; background: var(--c); overflow: hidden; }
.mark { position: absolute; right: -56px; bottom: -84px; width: 250px; fill: var(--mk); transition: transform .8s var(--ease); }
.pillar:hover .mark { transform: rotate(-9deg) scale(1.06); }

/* Déclaration */
.statement { max-width: 900px; text-align: center; }
.statement p { max-width: 44em; margin: 22px auto 0; font-size: 18px; line-height: 1.65; color: var(--ink-2); }
.statement strong { color: var(--ink); font-weight: 700; }
.statement .actions { justify-content: center; margin-top: 32px; }

/* Lecteurs vidéo (la vidéo YouTube ne se charge qu'au clic) */
.player { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--ink); }
.player img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease), opacity .4s; }
.player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.player.is-playing img, .player.is-playing .play { opacity: 0; pointer-events: none; }
.play {
  position: absolute; inset: 0; margin: auto; width: 88px; height: 88px; padding: 0;
  border: 0; border-radius: 50%; cursor: pointer;
  background: rgba(16, 16, 14, .38); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  display: grid; place-items: center; transition: transform .35s var(--ease), background .3s;
}
.play::before { content: ""; margin-left: 6px; border-left: 24px solid #fff; border-top: 15px solid transparent; border-bottom: 15px solid transparent; }
.player:hover .play { transform: scale(1.08); background: var(--voices); }
.player:hover img { transform: scale(1.03); }

/* À la une */
.feature-sec { padding-bottom: clamp(20px, 4vw, 40px); }
.feature {
  display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); align-items: center;
  gap: clamp(24px, 4vw, 64px);
  padding: clamp(14px, 1.6vw, 22px) clamp(24px, 4vw, 64px) clamp(14px, 1.6vw, 22px) clamp(14px, 1.6vw, 22px);
  border-radius: 32px; background: var(--sage-2);
}
.feature-player { border-radius: 20px; }
.feature-copy h2 { margin-top: 14px; font-size: clamp(32px, 3.2vw, 50px); }
.feature-copy .eyebrow { color: var(--sage-deep); }
.feature-topic { margin-top: 6px; font-size: 18px; color: var(--ink); }
.feature-copy .actions { margin-top: 28px; }
.note { margin-top: 16px; font-size: 13px; color: var(--sage-deep); }

/* Toutes les voix : liste + écran collant */
.eps-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.eps-head p { font-size: 18px; color: var(--ink-2); }
.eps { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 88px); }
.ep {
  min-height: 72vh; display: flex; flex-direction: column; justify-content: center; gap: 14px;
  padding: 48px 0; opacity: .32; transition: opacity .5s;
}
.ep.is-active { opacity: 1; }
.ep h3 { font-size: clamp(34px, 3.4vw, 54px); }
.ep-role, .feature-role { font-size: 16px; color: var(--ink-2); }
.ep-meta { margin-top: -6px; font-size: 14px; color: var(--ink-3); }
.feature-role { margin-top: 10px; }
.ep-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; margin-top: 10px; }
.ep-media { display: none; }
.stage-col { position: relative; }
.stage { position: sticky; top: var(--head); height: calc(100vh - var(--head)); display: flex; align-items: center; }
.screen {
  position: relative; width: 100%; aspect-ratio: 16 / 9; overflow: hidden;
  border: 10px solid var(--ink); border-radius: 28px; background: var(--ink);
  box-shadow: 0 50px 90px -50px rgba(16, 16, 14, .55);
}
.layer { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .6s, visibility 0s .6s; }
.layer.is-on { opacity: 1; visibility: visible; transition: opacity .6s; }
.layer img { transform: scale(1.05); }
.layer.is-on img { transform: none; }

/* Appel final */
.cta { text-align: center; }
.cta h2 { font-size: clamp(40px, 5.6vw, 92px); line-height: 1.22; }
.cta .line { display: block; margin-bottom: .14em; }
.cta .bubble { margin: .06em .08em .22em; }
.cta p { max-width: 36em; margin: 30px auto 0; font-size: 18px; color: var(--ink-2); }
.cta .actions { justify-content: center; margin-top: 30px; }

/* Pied de page sauge avec silhouette de ville */
.site-foot { position: relative; margin-top: clamp(60px, 8vw, 120px); background: var(--sage); }
.skyline { position: absolute; left: 0; bottom: calc(100% - 1px); width: 100%; height: auto; aspect-ratio: 18 / 1; fill: var(--sage); }
.foot-in { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 32px; padding: 64px 0 48px; }
.foot-brand { display: flex; align-items: center; gap: 14px; align-self: start; text-decoration: none; }
.foot-brand img { width: 64px; height: auto; }
.foot-brand span { max-width: 7em; font: 700 clamp(26px, 2.4vw, 36px)/1.02 var(--display); letter-spacing: -.015em; }
.foot-title { font: 700 17px var(--display); }
.site-foot ul { display: grid; gap: 9px; margin: 14px 0 0; padding: 0; list-style: none; }
.site-foot li a { font-size: 15px; text-decoration: none; }
.site-foot li a:hover { text-decoration: underline; text-underline-offset: 4px; }
.foot-bottom { display: flex; justify-content: space-between; gap: 16px; padding: 22px 0 30px; border-top: 1px solid rgba(16, 16, 14, .14); font-size: 14px; color: var(--ink-2); }
.foot-bottom .lang { color: var(--ink-2); }

/* Apparitions au défilement */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .pillars .reveal:nth-child(2) { transition-delay: .08s; }
.js .pillars .reveal:nth-child(3) { transition-delay: .16s; }
.js .pillars .reveal:nth-child(4) { transition-delay: .24s; }

/* Tablettes */
@media (max-width: 1100px) {
  .nav { display: none; }
  .pillars { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-in { grid-template-columns: 1fr 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
}

/* Mobiles */
@media (max-width: 900px) {
  :root { --head: 68px; }
  .head-actions .pill--line { display: none; }
  .hero-grid { grid-template-columns: 1fr; height: auto; padding-right: var(--gut); gap: 0; }
  .hero-copy { padding: 48px 0 40px; }
  .reel { height: 430px; margin-right: calc(-1 * var(--gut)); }
  .col { flex-basis: 44vw; max-width: 240px; }
  .feature { grid-template-columns: 1fr; padding: 12px 12px 28px; }
  .feature-copy { padding: 0 12px; }
  .eps-head { flex-direction: column; align-items: start; }
  .eps { grid-template-columns: 1fr; }
  .stage-col { display: none; }
  .ep { min-height: 0; opacity: 1; padding: 36px 0; border-bottom: 1px solid var(--line); }
  .ep-media { display: block; border-radius: 18px; margin-bottom: 10px; }
  .ep-media .play { width: 68px; height: 68px; }
}
@media (max-width: 600px) {
  .hero h1 { font-size: 9.6vw; }
  .reel { height: 380px; }
  .shot { border-width: 5px; border-radius: 24px; }
  .tag { left: 8px; bottom: 14px; padding: 6px 10px 7px; font-size: 12px; }
  .tag small { display: none; }
  .brand span { font-size: 16px; max-width: 6.5em; }
  .brand img { width: 36px; }
  .head-actions { gap: 6px; }
  .head-actions .lang { margin-right: 2px; }
  .head-actions .pill { min-height: 40px; padding: 0 16px; font-size: 14px; }
  .pillars { grid-template-columns: 1fr; }
  .foot-in { grid-template-columns: 1fr 1fr; }
  .foot-bottom { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .track { animation: none; }
  .reel-toggle { display: none; }
  .js .bubble { animation: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
}
