/* IndabaX Côte d'Ivoire · C2IA */

@font-face { font-family: "Sora"; src: url("../fonts/sora-latin-wght-normal.woff2") format("woff2"); font-weight: 100 800; font-display: swap; }
@font-face { font-family: "Source Sans 3"; src: url("../fonts/source-sans-3-latin-wght-normal.woff2") format("woff2"); font-weight: 200 900; font-display: swap; }
@font-face { font-family: "Source Sans 3"; src: url("../fonts/source-sans-3-latin-wght-italic.woff2") format("woff2"); font-weight: 200 900; font-style: italic; font-display: swap; }

:root {
  --ink: #0c1a2b;
  --ink-2: #14283f;
  --orange: #f08a24;
  --orange-d: #b85f08;
  --green: #0f9d63;
  --green-l: #e3f4ec;
  --paper: #f6f3ec;
  --line: #e2ddd2;
  --text: #1b2430;
  --muted: #5a6573;
  --white: #fff;
  --r: 14px;
  --head: "Sora", system-ui, sans-serif;
  --body: "Source Sans 3", system-ui, sans-serif;
  --wrap: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body { margin: 0; font-family: var(--body); font-size: 1.125rem; line-height: 1.6; color: var(--text); background: var(--white); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--orange-d); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
h1, h2, h3 { font-family: var(--head); line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 .6em; color: var(--ink); }
h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 650; }
h3 { font-size: 1.2rem; font-weight: 600; }
p { margin: 0 0 1em; }
.wrap { width: min(var(--wrap), 100% - 2.5rem); margin-inline: auto; }
.sr, .hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: var(--orange); color: var(--ink); padding: .6rem 1rem; z-index: 99; }
.skip:focus { left: 1rem; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
.muted { color: var(--muted); }
.small { font-size: .95rem; }
.mt { margin-top: 1.4rem; }
.mt-lg { margin-top: 3rem; }

/* Boutons */
.btn { display: inline-flex; align-items: center; gap: .5rem; padding: .85rem 1.4rem; border-radius: 999px; font-family: var(--head); font-weight: 600; font-size: 1rem; text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: transform .15s, background .15s, color .15s; }
.btn:hover { transform: translateY(-1px); }
.btn--accent { background: var(--orange); color: var(--ink); }
.btn--accent:hover { background: #ffa244; color: var(--ink); }
.btn--primary { background: var(--ink); color: var(--white); }
.btn--primary:hover { background: var(--ink-2); color: var(--white); }
.btn--ghost { border-color: rgba(255,255,255,.5); color: var(--white); }
.btn--ghost:hover { border-color: var(--white); color: var(--white); }
.btn--sm { padding: .5rem 1rem; font-size: .9rem; }

/* En-tête */
.top { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.97); backdrop-filter: blur(8px); color: var(--ink); border-bottom: 1px solid var(--line); }
.top__in { display: flex; align-items: center; justify-content: space-between; min-height: 92px; gap: 1rem; }
.brand { display: flex; align-items: center; gap: .7rem; color: var(--white); text-decoration: none; }
.brand img { width: auto; height: 64px; }
.brand__txt { font-family: var(--head); font-size: 1.05rem; line-height: 1.1; }
.brand__txt small { display: block; font-size: .72rem; letter-spacing: .14em; color: var(--orange); margin-top: .2rem; }
.brand:hover { color: var(--ink); }
.nav { display: flex; align-items: center; gap: 1.2rem; }
.nav ul { display: flex; gap: .2rem; list-style: none; margin: 0; padding: 0; }
.nav ul a { display: block; padding: .5rem .75rem; border-radius: 8px; color: var(--text); text-decoration: none; font-size: 1rem; }
.nav ul a:hover, .nav ul a[aria-current] { color: var(--ink); background: var(--paper); }
.lang { font-family: var(--head); font-size: .85rem; font-weight: 600; color: var(--ink); text-decoration: none; border: 1px solid var(--line); border-radius: 6px; padding: .3rem .55rem; }
.lang:hover { color: var(--orange-d); border-color: var(--orange); }
.burger { display: none; background: none; border: 0; width: 44px; height: 44px; position: relative; cursor: pointer; }
.burger span:first-child, .burger span:first-child::before, .burger span:first-child::after { position: absolute; left: 10px; width: 24px; height: 2px; background: var(--ink); content: ""; transition: transform .2s; }
.burger span:first-child { top: 21px; }
.burger span:first-child::before { left: 0; top: -7px; }
.burger span:first-child::after { left: 0; top: 7px; }
.burger[aria-expanded="true"] span:first-child { background: transparent; }
.burger[aria-expanded="true"] span:first-child::before { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:first-child::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 960px) {
  .burger { display: block; }
  .nav { position: absolute; top: 100%; left: 0; right: 0; background: var(--white); flex-direction: column; align-items: stretch; padding: 1rem 1.25rem 1.5rem; gap: .8rem; display: none; border-top: 1px solid var(--line); box-shadow: 0 12px 24px rgba(12,26,43,.08); }
  .nav.is-open { display: flex; }
  .nav ul { flex-direction: column; }
  .nav .btn { justify-content: center; }
  .lang { align-self: flex-start; }
}

/* Accueil : bandeau */
.hero { position: relative; overflow: hidden; background: radial-gradient(120% 90% at 85% 10%, #1d3a5c 0%, var(--ink) 55%); color: var(--white); padding: clamp(4rem, 10vw, 7.5rem) 0 clamp(3.5rem, 8vw, 6rem); }
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: linear-gradient(90deg, var(--orange) 0 33.3%, var(--white) 33.3% 66.6%, var(--green) 66.6%); }
.hero__net { position: absolute; right: -6%; top: 0; width: 55%; height: 100%; opacity: .35; }
.hero__lines path { fill: none; stroke: rgba(240,138,36,.45); stroke-width: 1.2; }
.hero__nodes circle { fill: var(--orange); }
.hero__nodes circle:nth-child(3n) { fill: var(--green); }
.hero__nodes circle:nth-child(4n) { fill: var(--white); }
.hero__in { position: relative; max-width: var(--wrap); }
.hero h1 { color: var(--white); }
.hero__title { font-size: clamp(2.2rem, 5.2vw, 4rem); max-width: 20ch; margin-bottom: .5em; }
.hero__acr { display: block; margin-top: .25em; font-size: 1.15em; color: var(--orange); letter-spacing: -0.01em; }
.hero__theme { font-family: var(--head); font-size: clamp(1.45rem, 3.1vw, 2.3rem); font-weight: 600; line-height: 1.25; letter-spacing: -0.01em; color: #FFFFFF; max-width: 30ch; margin-bottom: 1.6rem; }
.hero__theme-lbl { display: block; font-size: .85rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--green); margin-bottom: .35rem; }
.hero__theme-lbl::after { content: ""; }
.hero__kicker { font-family: var(--head); font-size: 1rem; letter-spacing: .12em; text-transform: uppercase; color: #c7d3e0; display: flex; align-items: center; gap: .8rem; margin-bottom: 1.2rem; }
.hero__kicker span { background: var(--orange); color: var(--ink); padding: .25rem .7rem; border-radius: 999px; letter-spacing: .06em; font-weight: 600; }
.hero__meta { display: flex; flex-wrap: wrap; gap: .6rem 2rem; font-size: 1.15rem; color: #dde5ee; margin-bottom: 2rem; }
.hero__meta span { position: relative; padding-left: 1.1rem; }
.hero__meta span::before { content: ""; position: absolute; left: 0; top: .55em; width: .5rem; height: .5rem; border-radius: 50%; background: var(--green); }
.hero__cta { display: flex; flex-wrap: wrap; gap: .8rem; }
.count { display: flex; flex-wrap: wrap; align-items: baseline; gap: .4rem 1.4rem; margin-top: 2.4rem; color: #c7d3e0; font-size: .95rem; }
.count b { font-family: var(--head); font-size: 1.9rem; color: var(--white); font-weight: 600; margin-right: .2rem; }
.count__lbl { text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; }

/* Chiffres */
.facts { background: var(--paper); border-bottom: 1px solid var(--line); }
.facts__in { display: grid; grid-template-columns: repeat(4, 1fr); }
.facts__in div { padding: 1.6rem 1rem; border-left: 1px solid var(--line); }
.facts__in div:first-child { border-left: 0; padding-left: 0; }
.facts b, .stats b { display: block; font-family: var(--head); font-size: 2rem; color: var(--ink); font-weight: 650; line-height: 1.1; }
.facts span, .stats span { color: var(--muted); font-size: 1rem; }
@media (max-width: 700px) { .facts__in { grid-template-columns: 1fr 1fr; } .facts__in div:nth-child(3) { border-left: 0; padding-left: 0; } .facts__in div { border-top: 1px solid var(--line); } .facts__in div:nth-child(-n+2) { border-top: 0; } }

/* Sections */
.section { padding: clamp(3.5rem, 7vw, 5.5rem) 0; }
.section--alt { background: var(--paper); }
.section--ink { background: var(--ink); color: #dbe3ec; }
.section--ink h2 { color: var(--white); }
.section--ink .eyebrow { color: var(--orange); }
.eyebrow { font-family: var(--head); font-size: .8rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--green); margin-bottom: .8rem; }
.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.cols2 { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; }
@media (max-width: 860px) { .split, .cols2 { grid-template-columns: 1fr; } }
.card { border-radius: var(--r); padding: 2rem; border: 1px solid var(--line); background: var(--white); }
.card--tint { background: var(--green-l); border-color: #c9e8da; }
.card h3 + p { margin-bottom: 1.5rem; }
.ticks { list-style: none; padding: 0; margin: 0; }
.ticks li { position: relative; padding-left: 1.8rem; margin-bottom: .7rem; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .45em; width: .9rem; height: .5rem; border-left: 2px solid var(--green); border-bottom: 2px solid var(--green); transform: rotate(-45deg); }
.head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 2rem; }
.head-row p { margin: 0; }
.link-arrow { font-family: var(--head); font-weight: 600; text-decoration: none; }
.link-arrow::after { content: " →"; }

/* Axes */
.axes { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.axes li { background: var(--white); border-radius: var(--r); padding: 1.8rem; border-top: 4px solid var(--orange); }
.axes li:nth-child(2) { border-top-color: var(--green); }
.axes li:nth-child(3) { border-top-color: var(--ink); }
.axes__n { font-family: var(--head); font-size: .9rem; color: var(--muted); letter-spacing: .1em; }
.axes h3 { margin-top: .6rem; }
.axes p { margin: 0; color: var(--muted); }
@media (max-width: 860px) { .axes { grid-template-columns: 1fr; } }

/* Dates clés */
.keydates { margin: 0; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.keydates div { display: flex; justify-content: space-between; gap: 1rem; padding: 1.1rem 1.4rem; border-top: 1px solid var(--line); }
.keydates div:first-child { border-top: 0; }
.keydates dt { color: var(--muted); }
.keydates dd { margin: 0; font-family: var(--head); font-weight: 600; text-align: right; }
.keydates em { font-style: normal; color: var(--orange-d); font-weight: 500; }

/* Programme */
.prog { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; margin-top: 1.6rem; }
.prog__day { background: var(--white); border-radius: var(--r); padding: 1.6rem 1.6rem 1rem; border: 1px solid var(--line); }
.prog__day h3 { display: flex; align-items: center; gap: .7rem; font-size: 1.05rem; }
.prog__n { display: inline-grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; background: var(--ink); color: var(--white); font-size: .9rem; flex: none; }
.prog__list { list-style: none; margin: 0; padding: 0; }
.prog__list li { display: grid; grid-template-columns: 8.2rem 1fr; gap: .8rem; padding: .75rem 0; border-top: 1px solid var(--line); }
.prog__h { font-family: var(--head); font-size: .88rem; color: var(--muted); padding-top: .15rem; white-space: nowrap; }
.prog__a small { display: block; color: var(--muted); font-size: .95rem; margin-top: .15rem; }
.prog__list li.is-pause .prog__a { color: var(--muted); font-style: italic; }
@media (max-width: 960px) { .prog { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .prog__list li { grid-template-columns: 1fr; gap: .1rem; } }

/* Personnes */
.people h3 { padding-bottom: .6rem; border-bottom: 2px solid var(--orange); display: inline-block; }
.people ul { list-style: none; margin: 0; padding: 0; }
.people li { padding: .55rem 0; border-bottom: 1px solid var(--line); }
.people strong { display: block; font-weight: 600; }
.people span { color: var(--muted); font-size: 1rem; }
.speakers { list-style: none; margin: 1.5rem 0 3rem; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 1.5rem; }
.speakers img, .speakers__ph { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--r); margin-bottom: .8rem; background: var(--paper); }
.speakers__ph { display: grid; place-items: center; font-family: var(--head); font-size: 3rem; color: var(--orange-d); }
.speakers strong { display: block; }
.speakers span { color: var(--muted); font-size: 1rem; }

/* Partenaires */
.logos { list-style: none; margin: 1.5rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 1rem; }
.logos li { background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: .8rem 1.1rem; display: grid; place-items: center; }
.logos img { height: 52px; width: auto; max-width: 140px; object-fit: contain; }

/* Formulaires */
.form { display: grid; gap: .9rem; }
.form label { display: block; font-weight: 600; font-size: 1rem; margin-bottom: .3rem; }
.form input:not([type=checkbox]):not([type=radio]), .form select, .form textarea { width: 100%; font: inherit; font-size: 1rem; padding: .75rem .9rem; border: 1px solid #c9c3b6; border-radius: 10px; background: var(--white); color: var(--text); }
.form textarea { resize: vertical; }
.form fieldset { border: 0; margin: 0; padding: 0; }
.form legend { font-weight: 600; font-size: 1rem; margin-bottom: .3rem; }
.form .check, .form .inline label { display: flex; gap: .6rem; align-items: flex-start; font-weight: 400; }
.form .inline { display: flex; flex-wrap: wrap; gap: .4rem 1.5rem; }
.form .inline legend { width: 100%; }
.form input[type=checkbox], .form input[type=radio] { width: 1.15rem; height: 1.15rem; margin-top: .25rem; accent-color: var(--orange); flex: none; }
.form button { justify-self: start; margin-top: .4rem; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; }
@media (max-width: 560px) { .row2 { grid-template-columns: 1fr; } }
.section--ink .form { background: var(--white); color: var(--text); padding: 2rem; border-radius: var(--r); }
.notice { padding: 1rem 1.2rem; border-radius: 10px; margin-bottom: 1rem; }
.notice--ok { background: var(--green-l); color: #0b5c3a; border: 1px solid #b8e0cc; }
.notice--err { background: #fdecea; color: #8a1f13; border: 1px solid #f4c6bf; }
.notice--info { background: #fff4e6; color: #7a4300; border: 1px solid #f6d6ab; }

/* Cartes des éditions */
.ed-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.2rem; }
.ed-cards a { display: flex; flex-direction: column; height: 100%; padding: 1.6rem; border-radius: var(--r); background: var(--paper); text-decoration: none; color: var(--text); border: 1px solid var(--line); transition: transform .15s, border-color .15s; }
.ed-cards a:hover { transform: translateY(-3px); border-color: var(--orange); color: var(--text); }
.ed-cards__y { font-family: var(--head); font-size: 2.4rem; font-weight: 700; color: var(--orange-d); line-height: 1; }
.ed-cards__n { font-size: .9rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin: .4rem 0 .8rem; }
.ed-cards strong { font-family: var(--head); font-weight: 600; font-size: 1.05rem; line-height: 1.3; color: var(--ink); flex: 1; }
.ed-cards__d { margin-top: 1rem; font-size: .95rem; color: var(--muted); }

/* En-têtes de pages */
.page-head { background: var(--ink); color: #d4dde8; padding: clamp(3rem, 7vw, 5rem) 0 clamp(2.5rem, 5vw, 3.5rem); position: relative; }
.page-head::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: linear-gradient(90deg, var(--orange) 0 33.3%, var(--white) 33.3% 66.6%, var(--green) 66.6%); }
.page-head h1 { color: var(--white); max-width: 22ch; font-size: clamp(1.9rem, 4.4vw, 3rem); }
.page-head p { max-width: 62ch; }
.page-head .eyebrow { color: var(--orange); }
.crumbs a { color: #c7d3e0; text-decoration: none; font-size: .95rem; }
.crumbs a::before { content: "← "; }
.crumbs a:hover { color: var(--white); }
.meta { display: flex; flex-wrap: wrap; gap: 1rem 3rem; margin: 1.6rem 0 0; }
.meta dt { font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; color: var(--orange); }
.meta dd { margin: .2rem 0 0; color: var(--white); font-size: 1.1rem; }

/* Frise des éditions */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 5.2rem; top: .5rem; bottom: .5rem; width: 2px; background: var(--line); }
.timeline li { display: grid; grid-template-columns: 4.2rem 1fr; gap: 2.2rem; padding: 1.4rem 0; position: relative; }
.timeline li::before { content: ""; position: absolute; left: calc(5.2rem - 6px); top: 2rem; width: 14px; height: 14px; border-radius: 50%; background: var(--white); border: 3px solid var(--orange); }
.timeline li.is-current::before { background: var(--orange); }
.timeline__y { font-family: var(--head); font-weight: 700; font-size: 1.5rem; color: var(--ink); padding-top: .9rem; }
.timeline__n { font-size: .9rem; text-transform: uppercase; letter-spacing: .1em; color: var(--green); margin: 0 0 .3rem; }
.timeline h2 { font-size: 1.35rem; margin-bottom: .3rem; }
.timeline h2 a { color: var(--ink); text-decoration: none; }
.timeline h2 a:hover { color: var(--orange-d); }
.timeline p.muted { margin: 0; }

/* Page d'une édition */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.stats div { background: var(--white); padding: 1.4rem; }
.papers { margin: 1.2rem 0 0; padding: 0; list-style: none; counter-reset: p; display: grid; gap: .2rem; }
.papers li { counter-increment: p; display: grid; grid-template-columns: 2.6rem 1fr; padding: 1rem 0; border-top: 1px solid var(--line); }
.papers li::before { content: counter(p, decimal-leading-zero); font-family: var(--head); color: var(--orange-d); font-weight: 600; }
.papers p { margin: 0; grid-column: 2; }
.papers__t { font-weight: 600; color: var(--ink); }
.papers__a { color: var(--muted); font-size: 1rem; }
.papers__a span { font-style: italic; }
.gallery { list-style: none; margin: 1.2rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: .6rem; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; background: var(--paper); }
.ed-nav { padding: 2rem 0; border-top: 1px solid var(--line); }
.ed-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.ed-nav a { display: block; padding: .5rem 1rem; border-radius: 999px; border: 1px solid var(--line); text-decoration: none; color: var(--ink); font-family: var(--head); font-weight: 600; }
.ed-nav a[aria-current] { background: var(--ink); color: var(--white); border-color: var(--ink); }

/* Contact */
.coord { margin: 0; }
.coord div { padding: 1rem 0; border-bottom: 1px solid var(--line); }
.coord dt { font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; color: var(--green); margin-bottom: .2rem; }
.coord dd { margin: 0; }

/* Pied de page */
.foot { background: var(--ink); color: #b8c4d2; padding: 3.5rem 0 0; font-size: 1rem; }
.foot__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem; }
.foot h2 { font-size: .8rem; text-transform: uppercase; letter-spacing: .14em; color: var(--orange); margin-bottom: .8rem; }
.foot ul { list-style: none; margin: 0; padding: 0; }
.foot li { margin-bottom: .35rem; }
.foot a { color: #dde5ee; text-decoration: none; }
.foot a:hover { color: var(--orange); }
.foot__brand img { width: 230px; height: auto; margin: 0 0 1rem; }
.foot__bar { display: flex; justify-content: space-between; gap: 1rem; padding: 1.4rem 0; margin-top: 2.5rem; border-top: 1px solid rgba(255,255,255,.1); font-size: .9rem; }
@media (max-width: 760px) { .foot__grid { grid-template-columns: 1fr; } }

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

@media (max-width: 480px) { .brand img { height: 52px; } }
