/* Landings foot-afrik.com : noir et vert profond, ambre en accent (plan §12.1bis). Mobile d'abord. */
@font-face { font-family: 'BC'; font-style: italic; font-weight: 900; font-display: swap; src: url('fonts/BarlowCondensed-BlackItalic.woff2') format('woff2'); }
@font-face { font-family: 'BC'; font-weight: 800; font-display: swap; src: url('fonts/BarlowCondensed-ExtraBold.woff2') format('woff2'); }
@font-face { font-family: 'BC'; font-style: italic; font-weight: 800; font-display: swap; src: url('fonts/BarlowCondensed-ExtraBoldItalic.woff2') format('woff2'); }
@font-face { font-family: 'Barlow'; font-weight: 500; font-display: swap; src: url('fonts/Barlow-Medium.woff2') format('woff2'); }
@font-face { font-family: 'Barlow'; font-weight: 600; font-display: swap; src: url('fonts/Barlow-SemiBold.woff2') format('woff2'); }
@font-face { font-family: 'Barlow'; font-weight: 700; font-display: swap; src: url('fonts/Barlow-Bold.woff2') format('woff2'); }

:root {
  --noir: #0B0B0B;
  --noir-2: #161616;
  --texte: #F2F2F2;
  --gris: #BDBDBD;
  --vert: #008933;
  --vert-fonce: #006728;
  --ambre: #FFB71B;
  --filet: #2A2A2A;
  --tg: #2AABEE;
  --tg-fonce: #1C93D2;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body { background: var(--noir); color: var(--texte); font-family: 'Barlow', system-ui, sans-serif; font-weight: 500; font-size: 17px; line-height: 1.55; }
a { color: inherit; }

.haut, main { width: 100%; max-width: 760px; margin: 0 auto; padding-left: 16px; padding-right: 16px; }
.haut { padding-top: 22px; padding-bottom: 4px; text-align: center; }
.logo { display: inline-block; height: 128px; }
@media (min-width: 700px) { .haut { text-align: left; } .logo { height: 140px; } }
.logo svg { height: 100%; width: auto; display: block; }

section { padding: 36px 0; border-top: 1px solid var(--filet); }
section.intro { border-top: 0; padding-top: 14px; padding-bottom: 28px; }

/* titres : un cran sous la graisse maximale et légèrement espacés, plus lisibles en petit (choix B du patron, 23/11/2026) */
h1, h2 { font-family: 'BC', sans-serif; font-style: italic; font-weight: 800; text-transform: uppercase; line-height: 1.02; letter-spacing: .6px; }
h1 { font-size: clamp(32px, 8.6vw, 54px); }
h2 { font-size: clamp(30px, 8vw, 42px); margin-bottom: 20px; }
.surligne { background: linear-gradient(var(--ambre), var(--ambre)) 0 62% / 100% .9em no-repeat; color: var(--noir); padding: 0 10px; -webkit-box-decoration-break: clone; box-decoration-break: clone; }

.chapo { margin-top: 14px; color: var(--gris); font-size: 17px; max-width: 34em; }
.note { margin-top: 10px; color: var(--gris); font-size: 14px; text-align: center; }
@media (min-width: 481px) { .note { text-align: left; } }

.bouton { display: inline-flex; align-items: center; justify-content: center; gap: 12px; margin-top: 22px;
  background: var(--tg); color: #fff; text-decoration: none; border-radius: 999px;
  font-family: 'BC', sans-serif; font-weight: 800; font-size: 24px; letter-spacing: 1px; text-transform: uppercase;
  padding: 16px 32px; text-align: center; }
.bouton svg { width: 26px; height: 26px; flex: none; }
@media (max-width: 480px) { .bouton { display: flex; } }

/* liseré lumineux qui fait le tour du bouton, comme les boutons jaunes de gamblrs */
@keyframes liseré-tour { to { transform: translate(-50%, -50%) rotate(1turn); } }
.bouton { --fond: var(--tg); position: relative; isolation: isolate; overflow: hidden; background: none; box-shadow: 0 0 16px rgba(42, 171, 238, .35); }
.bouton::before { content: ''; position: absolute; z-index: -2; top: 50%; left: 50%; width: 150%; aspect-ratio: 1;
  background: conic-gradient(var(--tg) 0 62%, #8fd8ff 80%, #fff 88%, var(--tg) 94%);
  transform: translate(-50%, -50%); animation: liseré-tour 3s linear infinite; will-change: transform; pointer-events: none; }
.bouton::after { content: ''; position: absolute; z-index: -1; inset: 2px; border-radius: inherit; background: var(--fond); pointer-events: none; }
.bouton:hover, .bouton:focus-visible { --fond: var(--tg-fonce); }
.bouton:focus-visible { outline: 3px solid var(--ambre); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .bouton::before { animation: none; } }

/* aperçu : cartes façon post Telegram, défilement horizontal dans le bloc sur mobile */
section.apercu { padding-top: 8px; border-top: 0; }
.fil { display: grid; grid-auto-flow: column; grid-auto-columns: 84%; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; scrollbar-width: none; }
.fil::-webkit-scrollbar { display: none; }
.tg { scroll-snap-align: start; background: #17212B; border-radius: 14px; overflow: hidden; position: relative; padding-bottom: 28px; }
.tg-tete { display: flex; align-items: center; gap: 10px; padding: 10px 12px; }
.tg-av { width: 40px; height: 40px; border-radius: 50%; display: block; }
.tg-nom { display: block; font-weight: 700; font-size: 15px; line-height: 1.2; }
.tg-sub { display: block; font-size: 13px; color: #7F91A4; }
.tg-img { display: block; width: 100%; height: auto; aspect-ratio: 1; background: var(--noir-2); }
.tg-texte { padding: 10px 12px 0; font-size: 15px; line-height: 1.45; color: #E9EEF2; }
.tg-titre { font-weight: 700; }
.tg-heure { position: absolute; right: 12px; bottom: 8px; font-size: 12px; color: #7F91A4; }
@media (min-width: 700px) { .fil { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); overflow: visible; } }

/* étapes */
.etapes ol { list-style: none; counter-reset: e; }
.etapes li { counter-increment: e; position: relative; padding: 10px 0 10px 50px; min-height: 52px; }
.etapes li::before { content: counter(e); position: absolute; left: 0; top: 8px; width: 36px; height: 36px; border-radius: 50%; background: var(--tg); color: #fff;
  display: grid; place-items: center; font-family: 'BC', sans-serif; font-weight: 800; font-size: 20px; }

.contenu ul { list-style: none; }
.contenu li { padding: 12px 0 12px 18px; border-bottom: 1px solid var(--filet); position: relative; }
.contenu li::before { content: ''; position: absolute; left: 0; top: 21px; width: 8px; height: 8px; background: var(--vert); }

main { padding-bottom: 40px; }

/* barre fixe en bas d'écran */
.barre-fixe { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: rgba(11, 11, 11, .94); border-top: 1px solid var(--filet); transform: translateY(110%); transition: transform .25s ease; }
.barre-fixe.visible { transform: none; }
.barre-fixe .bouton { display: flex; margin: 0 auto; max-width: 520px; padding-top: 13px; padding-bottom: 13px; }
@media (prefers-reduced-motion: reduce) { .barre-fixe { transition: none; } }
h1 .surligne { white-space: nowrap; }
/* mobile : bouton moins massif */
@media (max-width: 480px) {
  .bouton { font-size: 20px; padding: 12px 22px; gap: 10px; }
  .bouton svg { width: 22px; height: 22px; }
  .barre-fixe .bouton { padding-top: 10px; padding-bottom: 10px; }
}

/* ---------- accueil ---------- */
.pays-liens { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 22px; }
.pays-lien { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--filet); border-radius: 12px; text-decoration: none; font-weight: 700; font-size: 16px; min-height: 64px; }
.pays-lien img { width: 44px; height: 44px; border-radius: 50%; flex: none; }
.pays-lien:hover, .pays-lien:focus-visible { border-color: var(--tg); }
@media (min-width: 700px) { .pays-liens { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.fil-actus h2 { margin-bottom: 14px; }
.filtres { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; margin-bottom: 18px; }
.filtres::-webkit-scrollbar { display: none; }
.filtres button { flex: none; min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--filet); background: none; color: var(--gris);
  font: 600 15px 'Barlow', sans-serif; cursor: pointer; }
.filtres button[aria-selected="true"] { background: var(--texte); color: var(--noir); border-color: var(--texte); }

.vide { color: var(--gris); }
/* variante logo en long */
.haut-long .logo { height: 72px; }
@media (min-width: 700px) { .haut-long .logo { height: 84px; } }
/* barre fixe « Rejoindre le canal » : mobile seulement (patron, 23/11/2026) */
@media (min-width: 700px) { .barre-fixe { display: none; } }

/* filtres par pays (liens vers /actus/<pays>/) et pagination */
.filtres a { flex: none; display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--filet);
  color: var(--gris); font: 600 15px 'Barlow', sans-serif; text-decoration: none; }
.filtres a[aria-current="page"] { background: var(--texte); color: var(--noir); border-color: var(--texte); }
.filtres a:hover { border-color: var(--gris); }
.pagination { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 34px; padding-top: 22px; border-top: 1px solid var(--filet); }
.pg-nums { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: center; }
.pg-num { display: inline-grid; place-items: center; min-width: 44px; height: 44px; padding: 0 6px; border-radius: 999px; border: 1px solid var(--filet);
  color: var(--texte); text-decoration: none; font: 700 16px 'Barlow', sans-serif; }
.pg-num[aria-current="page"] { background: var(--tg); border-color: var(--tg); color: #fff; }
a.pg-num:hover { border-color: var(--tg); }
.pg-ellipse { color: var(--gris); padding: 0 2px; }
.pg-fleche { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--filet);
  color: var(--texte); text-decoration: none; font: 600 15px 'Barlow', sans-serif; white-space: nowrap; }
a.pg-fleche:hover { border-color: var(--tg); }
.pg-off { opacity: .35; }
@media (max-width: 480px) {
  .pagination { flex-wrap: wrap; justify-content: center; }
  .pg-nums { order: -1; width: 100%; }
  .pg-fleche { flex: 1; justify-content: center; }
}

/* accueil : cartes façon post Telegram (comme l'aperçu des landings), une colonne sur mobile, plusieurs au-delà */
.cartes { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
@media (min-width: 700px) { .cartes { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* même largeur que les landings (760 px) : 2 cartes par ligne sur ordinateur (patron, 23/11/2026) */
.carte.tg { padding-bottom: 0; display: flex; flex-direction: column; }
.tg-titre-carte { padding: 12px 14px 0; font: 700 18px/1.3 'Barlow', sans-serif; color: #fff; }
.carte .tg-texte { padding: 6px 14px 0; font-size: 15px; color: #C9D2DA; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.tg-pied { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 6px 14px 8px; }
.tg-pied .suivre { margin-top: 0; }
.tg-heure-carte { font-size: 12px; color: #7F91A4; white-space: nowrap; }

/* accueil : la photo garde son format (16:10 pour les actus, carré pour les résultats) */
.carte .tg-img { aspect-ratio: auto; height: auto; }
.tg-titre-carte { font-size: 19px; }
.carte .suivre { color: var(--tg); text-decoration: none; font-weight: 700; }
.carte .suivre:hover { text-decoration: underline; }
