/* Université Numérique de Guinée — page d'accueil de l'espace numérique */
:root {
  --green: #00754a;
  --green-600: #00653f;
  --green-dark: #0b3d2e;
  --green-ink: #062a1f;
  --gold: #fcd116;
  --gold-600: #e9bd00;
  --red: #ce1126;
  --ink: #12211b;
  --muted: #56655e;
  --line: #e2e9e5;
  --surface: #f4f7f5;
  --white: #fff;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(6, 42, 31, .06), 0 12px 32px -12px rgba(6, 42, 31, .18);
  --shadow-lg: 0 30px 60px -20px rgba(6, 42, 31, .35);
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--white); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img, svg { display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { line-height: 1.15; margin: 0; letter-spacing: -.02em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--gold); color: var(--green-ink); padding: 8px 14px; border-radius: 8px; font-weight: 700; }
.skip:focus { left: 8px; }

/* ---------- Boutons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; padding: .85rem 1.35rem; border-radius: 12px; font-weight: 700; font-size: .98rem; transition: transform .15s, box-shadow .2s, background .2s, color .2s; white-space: nowrap; }
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s; }
.btn:hover svg { transform: translateX(3px); }
.btn:hover { transform: translateY(-1px); }
.btn-sm { padding: .6rem 1rem; font-size: .9rem; border-radius: 10px; }
.btn-sm svg { fill: currentColor; stroke: none; width: 16px; height: 16px; }
.btn-sm:hover svg { transform: none; }
.btn-gold { background: var(--gold); color: var(--green-ink); box-shadow: 0 10px 24px -10px rgba(252, 209, 22, .7); }
.btn-gold:hover { background: #ffdb3d; }
.btn-ghost { background: rgba(255, 255, 255, .08); color: #fff; border: 1px solid rgba(255, 255, 255, .22); }
.btn-ghost:hover { background: rgba(255, 255, 255, .16); }
.btn-primary { background: var(--green); color: #fff; box-shadow: 0 10px 22px -12px rgba(0, 117, 74, .8); }
.btn-primary:hover { background: var(--green-600); }

/* ---------- En-tête ---------- */
.topbar { position: sticky; top: 0; z-index: 50; background: rgba(6, 42, 31, .82); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid rgba(255, 255, 255, .08); }
.topbar-inner { display: flex; align-items: center; gap: 28px; height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; color: #fff; }
.brand-mark { width: 42px; height: 42px; flex: none; border-radius: 11px; box-shadow: 0 6px 16px -6px rgba(0, 0, 0, .5); }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-size: 1.02rem; font-weight: 800; letter-spacing: -.01em; }
.brand-text span { font-size: .86rem; color: var(--gold); font-weight: 600; }
.nav { display: flex; gap: 6px; margin-left: auto; }
.nav a { color: rgba(255, 255, 255, .82); font-weight: 600; font-size: .93rem; padding: .5rem .8rem; border-radius: 9px; transition: background .2s, color .2s; }
.nav a:hover { color: #fff; background: rgba(255, 255, 255, .08); }

/* ---------- Héro ---------- */
.hero { position: relative; overflow: hidden; color: #fff; background: var(--green-ink); padding: 72px 0 0; margin-top: -72px; padding-top: 144px; }
.hero-bg { position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(800px 420px at 85% 10%, rgba(0, 117, 74, .55), transparent 60%),
    radial-gradient(600px 400px at 0% 100%, rgba(252, 209, 22, .12), transparent 60%),
    radial-gradient(500px 300px at 100% 100%, rgba(206, 17, 38, .14), transparent 60%),
    linear-gradient(180deg, #062a1f 0%, #0b3d2e 100%); }
.hero-bg::after { content: ""; position: absolute; inset: 0; opacity: .5;
  background-image: radial-gradient(rgba(255, 255, 255, .09) 1px, transparent 1px); background-size: 26px 26px;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 85%); mask-image: linear-gradient(180deg, #000 0%, transparent 85%); }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); padding: .4rem .9rem .4rem .5rem; border-radius: 999px; font-size: .86rem; font-weight: 600; color: rgba(255, 255, 255, .9); }
.flag, .flag-line { display: inline-flex; border-radius: 4px; overflow: hidden; }
.flag i { width: 9px; height: 16px; display: block; }
.flag i:nth-child(1), .flag-line i:nth-child(1) { background: var(--red); }
.flag i:nth-child(2), .flag-line i:nth-child(2) { background: var(--gold); }
.flag i:nth-child(3), .flag-line i:nth-child(3) { background: var(--green); }
.hero h1 { font-size: clamp(2.3rem, 5vw, 3.7rem); font-weight: 800; margin: 22px 0 18px; }
.hero h1 em { font-style: normal; background: linear-gradient(90deg, var(--gold), #ffe77a); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: 1.12rem; color: rgba(255, 255, 255, .78); max-width: 34rem; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.quick-label { margin-top: 34px; font-size: .74rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .5); }
.quick { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.quick a { display: inline-flex; align-items: center; gap: 8px; padding: .5rem .9rem; border-radius: 10px; font-size: .9rem; font-weight: 600; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); color: rgba(255, 255, 255, .9); transition: background .2s, border-color .2s; }
.quick a:hover { background: rgba(255, 255, 255, .13); border-color: rgba(255, 255, 255, .28); }
.dot { width: 8px; height: 8px; border-radius: 50%; }
.dot-green { background: #2ad08a; } .dot-gold { background: var(--gold); } .dot-red { background: #ff5468; } .dot-white { background: #fff; }

/* Illustration */
.hero-visual { position: relative; height: 430px; }
.glass { background: rgba(255, 255, 255, .96); color: var(--ink); border-radius: 20px; box-shadow: var(--shadow-lg); }
.main-card { position: absolute; top: 34px; left: 6%; right: 6%; padding: 22px; transform: rotate(-1.5deg); }
.mc-head { display: flex; align-items: center; gap: 12px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.mc-head strong { display: block; font-size: .98rem; }
.mc-head small { color: var(--muted); font-size: .8rem; }
.mc-avatar { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; font-weight: 800; color: #fff; background: linear-gradient(135deg, var(--green), var(--green-dark)); }
.pill { margin-left: auto; font-size: .74rem; font-weight: 700; color: var(--green); background: #e3f4ec; padding: .25rem .6rem; border-radius: 999px; }
.mc-row { display: flex; justify-content: space-between; align-items: baseline; margin-top: 16px; font-size: .88rem; color: var(--muted); }
.mc-row b { font-size: 1.5rem; color: var(--ink); }
.mc-row b small { font-size: .85rem; color: var(--muted); font-weight: 600; }
.bar { height: 8px; background: var(--surface); border-radius: 99px; margin-top: 8px; overflow: hidden; }
.bar span { display: block; width: 68%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--green), #2ad08a); }
.mc-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 18px; }
.mc-tiles div { background: var(--surface); border-radius: 12px; padding: 12px 8px; text-align: center; font-size: .8rem; font-weight: 600; color: var(--muted); }
.mc-tiles svg { width: 22px; height: 22px; margin: 0 auto 6px; fill: none; stroke: var(--green); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.float-card { position: absolute; display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-radius: 16px; }
.float-card strong { display: block; font-size: .9rem; }
.float-card small { color: var(--muted); font-size: .78rem; }
.fc-learn { left: -2%; bottom: 52px; animation: flotte 6s ease-in-out infinite; }
.fc-visio { right: -2%; bottom: 0; animation: flotte 6s ease-in-out -3s infinite; }
.fc-icon { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; flex: none; }
.fc-icon svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.fc-icon.gold { background: #fff6cc; color: #8a6d00; }
.fc-icon.red { background: #fde4e7; color: var(--red); }
.live { width: 10px; height: 10px; border-radius: 50%; background: var(--red); margin-left: 4px; box-shadow: 0 0 0 0 rgba(206, 17, 38, .5); animation: pulse 1.8s infinite; }
@keyframes flotte { 50% { transform: translateY(-8px); } }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(206, 17, 38, 0); } 100% { box-shadow: 0 0 0 0 rgba(206, 17, 38, 0); } }

/* Chiffres */
.stats { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 64px; border-top: 1px solid rgba(255, 255, 255, .1); }
.stats li { padding: 26px 20px 30px; border-left: 1px solid rgba(255, 255, 255, .1); }
.stats li:first-child { border-left: 0; padding-left: 0; }
.stats b { display: block; font-size: 1.9rem; font-weight: 800; color: var(--gold); letter-spacing: -.02em; }
.stats span { font-size: .9rem; color: rgba(255, 255, 255, .7); }

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section-alt { background: var(--surface); }
.section-head { max-width: 680px; margin: 0 auto 52px; text-align: center; }
.kicker { display: inline-block; font-size: .78rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--green); margin-bottom: 12px; }
.section-head h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); font-weight: 800; }
.section-head p:not(.kicker) { margin-top: 14px; color: var(--muted); font-size: 1.05rem; }

/* Espaces */
.spaces { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.space { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); transition: transform .25s, box-shadow .25s, border-color .25s; }
.space::before { content: ""; position: absolute; left: 30px; right: 30px; top: -1px; height: 3px; border-radius: 0 0 3px 3px; background: var(--green); opacity: 0; transition: opacity .25s; }
.space:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: #cfe0d7; }
.space:hover::before { opacity: 1; }
.space-featured { border-color: #cfe0d7; }
.space-top { display: flex; align-items: center; justify-content: space-between; }
.space-icon { width: 54px; height: 54px; border-radius: 15px; display: grid; place-items: center; }
.space-icon svg { width: 27px; height: 27px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.space-icon.green { background: #e3f4ec; color: var(--green); }
.space-icon.gold { background: #fff6cc; color: #8a6d00; }
.space-icon.red { background: #fde4e7; color: var(--red); }
.tag { font-size: .76rem; font-weight: 700; color: var(--muted); background: var(--surface); padding: .3rem .7rem; border-radius: 999px; }
.space h3 { font-size: 1.35rem; font-weight: 800; margin-top: 22px; }
.space > p { margin-top: 8px; color: var(--muted); }
.checks { margin: 20px 0 26px; display: grid; gap: 10px; }
.checks li { position: relative; padding-left: 28px; font-size: .95rem; font-weight: 500; }
.checks li::before { content: ""; position: absolute; left: 0; top: .2em; width: 18px; height: 18px; border-radius: 50%; background: #e3f4ec url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300754a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center/12px no-repeat; }
.space-actions { margin-top: auto; display: grid; gap: 12px; }
.space-actions .btn { width: 100%; }
.link { text-align: center; font-size: .88rem; font-weight: 600; color: var(--green); }
.link:hover { text-decoration: underline; }

.staff { display: flex; align-items: center; gap: 16px; margin-top: 28px; padding: 20px 24px; border-radius: var(--radius); background: var(--green-dark); color: #fff; transition: background .2s, transform .2s; }
.staff:hover { background: var(--green-ink); transform: translateY(-2px); }
.staff strong { display: block; }
.staff small { color: rgba(255, 255, 255, .7); font-size: .9rem; }
.staff-icon { width: 46px; height: 46px; flex: none; border-radius: 13px; display: grid; place-items: center; background: rgba(252, 209, 22, .15); color: var(--gold); }
.staff-icon svg, .staff-arrow { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.staff-arrow { margin-left: auto; flex: none; color: var(--gold); transition: transform .2s; }
.staff:hover .staff-arrow { transform: translateX(4px); }

/* Formations */
.programs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.program { background: #fff; border-radius: var(--radius); padding: 30px; border: 1px solid var(--line); box-shadow: var(--shadow); }
.program-icon { width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--green), var(--green-dark)); }
.program-icon svg { width: 25px; height: 25px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.program h3 { margin-top: 20px; font-size: 1.18rem; font-weight: 800; }
.program > p { margin-top: 8px; color: var(--muted); font-size: .96rem; }
.options { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px !important; }
.options span { font-size: .8rem; font-weight: 700; color: var(--green-dark); background: #e9f3ee; border: 1px solid #d3e7dc; padding: .3rem .7rem; border-radius: 999px; }

/* Parcours */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: s; }
.steps li { position: relative; padding: 30px; border-radius: var(--radius); background: linear-gradient(180deg, #fff, var(--surface)); border: 1px solid var(--line); }
.step-num { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; font-weight: 800; font-size: 1.1rem; color: var(--green-ink); background: var(--gold); box-shadow: 0 8px 18px -8px rgba(233, 189, 0, .9); }
.steps h3 { margin-top: 18px; font-size: 1.12rem; font-weight: 800; }
.steps p { margin-top: 8px; color: var(--muted); font-size: .95rem; }

/* Appel à l'action */
.cta-band { background: radial-gradient(700px 300px at 90% 0%, rgba(252, 209, 22, .18), transparent 60%), linear-gradient(120deg, var(--green-dark), var(--green)); color: #fff; padding: 64px 0; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta-band h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; }
.cta-band p { margin-top: 8px; color: rgba(255, 255, 255, .8); }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Pied de page */
.footer { background: var(--green-ink); color: rgba(255, 255, 255, .72); padding: 64px 0 0; font-size: .94rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.1fr 1.1fr; gap: 40px; }
.footer-brand p { margin-top: 18px; max-width: 22rem; }
.footer .loc { display: flex; align-items: center; gap: 8px; }
.footer .loc svg { width: 18px; height: 18px; fill: none; stroke: var(--gold); stroke-width: 2; }
.footer h4 { color: #fff; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 16px; }
.footer ul { display: grid; gap: 10px; }
.footer a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 52px; padding: 22px 24px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .86rem; }
.flag-line i { width: 22px; height: 5px; display: block; }

/* Apparition douce (seulement si JavaScript actif) */
.anim .space, .anim .program, .anim .steps li { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.anim .in { opacity: 1 !important; transform: none !important; }
.anim .spaces > :nth-child(2), .anim .programs > :nth-child(2), .anim .steps > :nth-child(2) { transition-delay: .08s; }
.anim .spaces > :nth-child(3), .anim .programs > :nth-child(3), .anim .steps > :nth-child(3) { transition-delay: .16s; }

/* ---------- Adaptatif ---------- */
@media (max-width: 1020px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { height: 400px; max-width: 520px; width: 100%; margin: 0 auto; }
  .spaces, .programs, .steps { grid-template-columns: 1fr; max-width: 620px; margin-left: auto; margin-right: auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .nav { display: none; }
  .topbar-inner { justify-content: space-between; height: 64px; }
  .hero { margin-top: -64px; padding-top: 112px; }
  .brand-mark { width: 38px; height: 38px; }
  .brand-text strong { font-size: .95rem; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stats li:nth-child(3) { border-left: 0; padding-left: 0; }
  .stats li { border-top: 1px solid rgba(255, 255, 255, .1); }
  .section { padding: 72px 0; }
  .hero-visual { display: none; }
  .stats { margin-top: 48px; }
  .space, .program, .steps li { padding: 24px; }
  .staff { flex-wrap: wrap; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 420px) {
  .wrap { padding: 0 16px; }
  .btn-sm { padding: .55rem .75rem; font-size: .84rem; }
  .hero-ctas .btn { width: 100%; }
  .stats b { font-size: 1.5rem; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
