/* ==========================================================================
   REDA — Site public
   ========================================================================== */
.container { width: min(1200px, 100% - 32px); margin-inline: auto; }
.section { padding: 5rem 0; }
.section-sm { padding: 3rem 0; }
.section-alt { background: var(--surface); border-block: 1px solid var(--border); }
.eyebrow { display: inline-flex; align-items: center; gap: .5em; font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--link); margin-bottom: .9rem; }
.eyebrow::before { content: ""; width: 22px; height: 3px; border-radius: 2px; background: var(--brand); }
.section-title { font-size: clamp(1.8rem, 3.4vw, 2.6rem); max-width: 22ch; }
.section-lead { font-size: 1.08rem; color: var(--text-2); max-width: 62ch; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; margin-bottom: 2.5rem; flex-wrap: wrap; }

/* ---------- En-tête ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.site-header.scrolled { border-bottom-color: var(--border); }
.nav { display: flex; align-items: center; gap: 1.5rem; height: 72px; }
.brand { display: flex; align-items: center; gap: .7rem; color: var(--text) !important; text-decoration: none !important; }
.brand-logo { width: 44px; height: 44px; border-radius: 12px; background: #fff; display: grid; place-items: center; overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--border); }
.brand-logo img { width: 100%; height: 100%; object-fit: contain; padding: 3px; }
.brand-name { font-weight: 800; font-size: 1.25rem; letter-spacing: -.02em; line-height: 1; }
.brand-name small { display: block; font-size: .64rem; font-weight: 600; color: var(--muted); letter-spacing: 0; margin-top: 3px; }
.nav-links { display: flex; gap: .25rem; margin-left: auto; }
.nav-links a { white-space: nowrap; padding: .5rem .8rem; border-radius: 9px; color: var(--text-2); font-weight: 600; font-size: .92rem; text-decoration: none; }
.nav-links a:hover, .nav-links a.active { color: var(--text); background: var(--surface-2); }
.nav-actions { display: flex; gap: .5rem; align-items: center; }
.nav-toggle { display: none; }
@media (max-width: 1180px) {
  .nav-links { position: fixed; inset: 72px 0 auto 0; flex-direction: column; background: var(--surface); padding: 1rem; border-bottom: 1px solid var(--border); box-shadow: var(--shadow); display: none; }
  .nav-links.open { display: flex; }
  .nav-links a { padding: .8rem 1rem; }
  .nav-toggle { display: inline-flex; margin-left: auto; }
  .nav-actions .hide-sm { display: none; }
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 4.5rem 0 5rem; }
.hero::before { content: ""; position: absolute; inset: -30% -10% auto auto; width: 720px; height: 720px; background: radial-gradient(closest-side, color-mix(in srgb, var(--brand) 26%, transparent), transparent); pointer-events: none; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 3rem; align-items: center; position: relative; }
.hero h1 { font-size: clamp(2.3rem, 5.4vw, 4rem); line-height: 1.04; letter-spacing: -.035em; margin-bottom: 1.2rem; }
.hero h1 .hl { color: var(--brand); position: relative; white-space: nowrap; }
.hero p.lead { font-size: 1.15rem; color: var(--text-2); max-width: 54ch; margin-bottom: 2rem; }
.hero-cta { display: flex; gap: .75rem; flex-wrap: wrap; }
.hero-acronym { display: flex; gap: .4rem; flex-wrap: wrap; margin-bottom: 1.4rem; }
.hero-acronym span { font-size: .82rem; font-weight: 600; color: var(--text-2); background: var(--surface); border: 1px solid var(--border); padding: .3em .7em; border-radius: 999px; }
.hero-acronym b { color: var(--brand); font-weight: 900; }
.hero-visual { position: relative; aspect-ratio: 1; max-width: 460px; margin-left: auto; width: 100%; }
.hero-logo { position: absolute; inset: 10%; background: #fff; border-radius: 36px; box-shadow: var(--shadow-lg); display: grid; place-items: center; transform: rotate(-3deg); border: 1px solid var(--border); }
.hero-logo img { width: 78%; }
.float-card { position: absolute; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: .85rem 1.1rem; box-shadow: var(--shadow); display: flex; gap: .75rem; align-items: center; animation: floaty 6s ease-in-out infinite; }
.float-card strong { display: block; font-size: 1.35rem; line-height: 1; letter-spacing: -.02em; }
.float-card span { font-size: .78rem; color: var(--muted); }
.float-card.a { top: 4%; left: -6%; }
.float-card.b { bottom: 8%; right: -4%; animation-delay: -3s; }
.float-card.c { bottom: -2%; left: 4%; animation-delay: -1.5s; }
@keyframes floaty { 50% { transform: translateY(-10px); } }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-visual { max-width: 340px; margin: 1rem auto 0; }
  .float-card.a { left: 0; } .float-card.b { right: 0; }
}

/* ---------- Bandeau chiffres ---------- */
.numbers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--border); border-radius: 20px; overflow: hidden; border: 1px solid var(--border); }
.numbers > div { background: var(--surface); padding: 1.6rem 1.4rem; }
.numbers strong { display: block; font-size: clamp(1.8rem, 3.6vw, 2.6rem); letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.numbers span { color: var(--muted); font-size: .88rem; font-weight: 600; }
@media (max-width: 760px) { .numbers { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Cartes de fonctionnalités ---------- */
.feature { padding: 1.6rem; border-radius: 18px; background: var(--surface); border: 1px solid var(--border); transition: transform .2s, box-shadow .2s; height: 100%; }
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.feature .ic { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--brand-50); color: var(--link); margin-bottom: 1rem; }
.feature .ic .icon { width: 24px; height: 24px; }
.feature h3 { font-size: 1.08rem; margin-bottom: .4rem; }
.feature p { color: var(--text-2); font-size: .94rem; margin: 0; }
.num-badge { font-size: .8rem; font-weight: 900; color: var(--brand); letter-spacing: .05em; }

/* ---------- Axes du plan d'action ---------- */
.axis-card { position: relative; padding: 1.5rem; border-radius: 18px; background: var(--surface); border: 1px solid var(--border); display: flex; flex-direction: column; gap: .8rem; }
.axis-card .top { display: flex; align-items: center; justify-content: space-between; }
.axis-card .n { font-size: 2rem; font-weight: 900; color: var(--brand); letter-spacing: -.04em; line-height: 1; }
.axis-card h3 { font-size: 1.05rem; margin: 0; }
.axis-card ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .35rem; font-size: .88rem; color: var(--text-2); }
.axis-card li { display: flex; justify-content: space-between; gap: .5rem; }
.axis-card li b { color: var(--text); font-variant-numeric: tabular-nums; }

/* ---------- Événements & actualités ---------- */
.event-card { display: flex; gap: 1rem; padding: 1.2rem; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); align-items: flex-start; }
.date-tile { flex: none; width: 64px; text-align: center; border-radius: 14px; background: var(--navy); color: #fff; padding: .55rem 0; }
.date-tile b { display: block; font-size: 1.6rem; line-height: 1; letter-spacing: -.03em; }
.date-tile span { font-size: .72rem; text-transform: uppercase; font-weight: 700; letter-spacing: .06em; opacity: .8; }
.event-card h3 { font-size: 1.02rem; margin: .25rem 0 .35rem; }
.meta { display: flex; flex-wrap: wrap; gap: .3rem 1rem; font-size: .82rem; color: var(--muted); }
.meta span { display: inline-flex; align-items: center; gap: .35em; }
.news-card { display: flex; flex-direction: column; border-radius: 18px; overflow: hidden; background: var(--surface); border: 1px solid var(--border); color: inherit !important; text-decoration: none !important; transition: transform .2s, box-shadow .2s; height: 100%; }
.news-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.news-cover { aspect-ratio: 16 / 9; background: linear-gradient(135deg, var(--brand), var(--brand-700)); background-size: cover; background-position: center; position: relative; display: grid; place-items: center; }
.news-cover.placeholder::after { content: "REDA"; font-weight: 900; font-size: 2.4rem; letter-spacing: .1em; color: rgba(255, 255, 255, .28); }
.news-body { padding: 1.2rem 1.3rem 1.4rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.news-body h3 { font-size: 1.08rem; margin: 0; }
.news-body p { color: var(--text-2); font-size: .92rem; margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------- ODD ---------- */
.odd-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: .75rem; }
.odd { border-radius: 14px; padding: 1rem; color: #fff; min-height: 120px; display: flex; flex-direction: column; justify-content: space-between; }
.odd b { font-size: 1.8rem; font-weight: 900; line-height: 1; }
.odd span { font-weight: 700; font-size: .86rem; line-height: 1.25; }
@media (max-width: 760px) { .odd-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Partenaires ---------- */
.partners { display: flex; flex-wrap: wrap; gap: 1rem; }
.partner { flex: 1 1 220px; padding: 1.3rem; border-radius: 16px; border: 1px dashed var(--border); background: var(--surface); }
.partner h4 { margin: 0 0 .3rem; font-size: 1rem; }
.partner p { margin: 0; font-size: .86rem; color: var(--muted); }

/* ---------- CTA ---------- */
.cta-band { border-radius: 28px; padding: clamp(2rem, 5vw, 3.5rem); background: radial-gradient(120% 140% at 100% 0, #19C2FF 0, var(--brand) 35%, var(--brand-700) 100%); color: #fff; display: grid; grid-template-columns: 1.3fr 1fr; gap: 2rem; align-items: center; position: relative; overflow: hidden; }
.cta-band h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
.cta-band p { opacity: .92; }
.cta-band .btn-dark { background: #fff; color: var(--navy) !important; }
.newsletter { display: flex; gap: .5rem; background: rgba(255, 255, 255, .16); padding: .4rem; border-radius: 14px; }
.newsletter input { flex: 1; min-width: 0; border: 0; background: transparent; color: #fff; padding: .6rem .8rem; outline: none; }
.newsletter input::placeholder { color: rgba(255, 255, 255, .75); }
@media (max-width: 820px) { .cta-band { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--navy); color: #C9D2E6; padding: 4rem 0 2rem; margin-top: 4rem; }
.site-footer a { color: #C9D2E6; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; }
.footer-grid h4 { color: #fff; font-size: .95rem; margin-bottom: 1rem; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; font-size: .9rem; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 3rem; padding-top: 1.5rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .82rem; color: #8B96B0; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- En-tête de page ---------- */
.page-hero { padding: 3.5rem 0 2.5rem; background: linear-gradient(180deg, var(--brand-50), transparent); }
.page-hero h1 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: .6rem; }
.page-hero p { color: var(--text-2); font-size: 1.08rem; max-width: 64ch; margin: 0; }
.crumbs { font-size: .84rem; color: var(--muted); margin-bottom: 1rem; display: flex; gap: .4rem; align-items: center; }

/* ---------- Organigramme ---------- */
.org-tree { display: grid; gap: 1.5rem; }
.org-level { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; position: relative; }
.org-node { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 1rem 1.2rem; text-align: center; min-width: 200px; box-shadow: var(--shadow-sm); }
.org-node.top { background: var(--navy); color: #fff; border-color: var(--navy); }
.org-node .role { font-size: .74rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--brand); }
.org-node h4 { margin: .3rem 0 0; font-size: 1rem; }
.org-connector { width: 2px; height: 24px; background: var(--border); margin: -1rem auto; }
.pole-card { border-radius: 18px; border: 1px solid var(--border); background: var(--surface); overflow: hidden; }
.pole-card header { padding: 1.2rem 1.3rem; background: var(--brand-50); }
.pole-card header h3 { margin: 0 0 .25rem; font-size: 1.05rem; }
.pole-card ul { list-style: none; margin: 0; padding: .6rem; }
.pole-card li { padding: .7rem .75rem; border-radius: 10px; display: flex; gap: .7rem; align-items: flex-start; }
.pole-card li:hover { background: var(--surface-2); }
.pole-card li .icon { color: var(--brand); margin-top: .2rem; }

/* ---------- Article ---------- */
.article-wrap { max-width: 760px; margin: 0 auto; }
.article-cover { aspect-ratio: 21 / 9; border-radius: 22px; background: linear-gradient(135deg, var(--brand), var(--brand-700)) center/cover; margin: 2rem 0; }
.article-wrap h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); }

/* ---------- Timeline MED ---------- */
.timeline { display: grid; gap: .8rem; }
.timeline-item { display: grid; grid-template-columns: 76px 1fr; border-radius: 14px; overflow: hidden; background: var(--surface); border: 1px solid var(--border); }
.timeline-item .q { background: var(--brand); color: #fff; display: grid; place-items: center; font-weight: 800; padding: 1rem .5rem; text-align: center; }
.timeline-item .c { padding: 1rem 1.2rem; }
.timeline-item h4 { margin: 0 0 .2rem; }

/* ---------- Certificat ---------- */
.verify-box { max-width: 640px; margin: 0 auto; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s, transform .6s cubic-bezier(.2, .8, .2, 1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } .float-card { animation: none; } }
