/* ============================================================
   CRF — Communauté Rwandaise de France
   style.css — Modern 2026 · Light mode
   ============================================================ */

/* --- Reset & Variables ------------------------------------ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --blue:       #00a1de;
  --blue-d:     #0087ba;
  --blue-light: rgba(0,161,222,0.08);
  --yellow:     #fad201;
  --green:      #20603d;
  --green-d:    #194f32;
  --grey:       #677073;
  --grey-l:     #e8ecf0;
  --grey-xl:    #f4f6f8;
  --text:       #111827;
  --text-s:     #6b7280;
  --white:      #ffffff;
  --nav-h:      68px;
  --banner-h:   44px;
  --max-w:      1140px;
  --radius:     12px;
  --radius-sm:  8px;
  --radius-lg:  20px;
  --radius-pill: 50px;
  --shadow-sm:  0 1px 3px rgba(0,0,0,0.04), 0 4px 12px rgba(0,0,0,0.05);
  --shadow-md:  0 2px 8px rgba(0,0,0,0.05), 0 12px 32px rgba(0,0,0,0.08);
  --shadow-lg:  0 4px 16px rgba(0,0,0,0.06), 0 24px 64px rgba(0,0,0,0.10);
  --shadow-blue: 0 8px 24px rgba(0,161,222,0.25);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Work Sans', system-ui, sans-serif;
  background: var(--white);
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 4px; }


/* --- Utilities -------------------------------------------- */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 2rem; }

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 0.9rem;
}
.section-label::before {
  content: '';
  display: block;
  width: 18px;
  height: 2px;
  background: var(--blue);
  border-radius: 2px;
  flex-shrink: 0;
}

.section-header { margin-bottom: 1.75rem; }

.section-header h2 {
  font-family: 'Outfit', system-ui, sans-serif;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text);
}


/* --- Buttons ---------------------------------------------- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  background: var(--blue);
  color: var(--white);
  padding: 0.8rem 1.9rem;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-decoration: none;
  border-radius: var(--radius-pill);
  border: none;
  transition: background 0.2s, box-shadow 0.2s, transform 0.15s;
  cursor: pointer;
  box-shadow: var(--shadow-blue);
}
.btn-primary:hover {
  background: var(--blue-d);
  box-shadow: 0 12px 32px rgba(0,161,222,0.35);
  transform: translateY(-1px);
}
.btn-primary:active { transform: translateY(0); }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  background: var(--yellow);
  color: var(--text);
  padding: 0.8rem 1.9rem;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-decoration: none;
  border-radius: var(--radius-pill);
  border: none;
  transition: opacity 0.2s, transform 0.15s, box-shadow 0.2s;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(250,210,1,0.3);
}
.btn-secondary:hover {
  opacity: 0.9;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(250,210,1,0.4);
}
.btn-secondary:active { transform: translateY(0); }

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  border: 1.5px solid var(--blue);
  color: var(--blue);
  padding: 0.75rem 1.9rem;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-decoration: none;
  border-radius: var(--radius-pill);
  transition: all 0.2s, transform 0.15s;
  cursor: pointer;
  background: transparent;
}
.btn-outline:hover {
  background: var(--blue);
  color: var(--white);
  box-shadow: var(--shadow-blue);
  transform: translateY(-1px);
}
.btn-outline:active { transform: translateY(0); }

.btn-adhesion {
  display: inline-flex;
  align-items: center;
  background: var(--yellow);
  color: var(--text);
  padding: 0.45rem 1.2rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  border-radius: var(--radius-pill);
  transition: opacity 0.2s, transform 0.15s;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(250,210,1,0.3);
}
.btn-adhesion:hover { opacity: 0.9; transform: translateY(-1px); }


/* --- Nav -------------------------------------------------- */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  background: rgba(255,255,255,0.82);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  height: var(--nav-h);
  transition: background 0.3s;
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0 2rem;
}

.nav-logo img { height: 42px; width: auto; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  list-style: none;
  flex: 1;
  justify-content: center;
}

.nav-links a {
  color: var(--text-s);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-pill);
  transition: color 0.15s, background 0.15s;
}
.nav-links a:hover { color: var(--blue); background: var(--blue-light); }
.nav-links a.active {
  color: var(--blue);
  background: var(--blue-light);
  font-weight: 600;
}

.nav-right { display: flex; align-items: center; gap: 1rem; }

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  background: none;
  border: none;
}
.burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.22s, opacity 0.22s;
  transform-origin: center;
}
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }


/* --- Hero ------------------------------------------------- */
.hero {
  padding-top: calc(var(--nav-h) + var(--banner-h) + 5rem);
  padding-bottom: 6rem;
  background: var(--white);
  position: relative;
  overflow: hidden;
}

/* Aurora background blobs */
.hero::before {
  content: '';
  position: absolute;
  width: 700px;
  height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,161,222,0.16) 0%, transparent 70%);
  top: -150px;
  left: -150px;
  animation: aurora-blob-a 14s ease-in-out infinite alternate;
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(32,96,61,0.13) 0%, transparent 70%);
  bottom: -200px;
  right: -100px;
  animation: aurora-blob-b 16s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes aurora-blob-a {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(80px, 60px) scale(1.1); }
  100% { transform: translate(40px, 120px) scale(0.95); }
}
@keyframes aurora-blob-b {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(-60px, -40px) scale(1.08); }
  100% { transform: translate(-30px, -90px) scale(1.15); }
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4rem;
  align-items: center;
}

.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 1.5rem;
  background: var(--blue-light);
  padding: 0.4rem 1rem;
  border-radius: var(--radius-pill);
}

.hero-text h1 {
  font-family: 'Outfit', system-ui, sans-serif;
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
  color: var(--text);
}
.hero-text h1 em {
  font-style: normal;
  color: var(--blue);
}

.hero-sub {
  font-size: 1.05rem;
  color: var(--text-s);
  line-height: 1.75;
  max-width: 520px;
  margin-bottom: 2.5rem;
}

.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero-visual { position: relative; z-index: 1; }

.hero-logo { width: 220px; height: auto; opacity: 0.92; }


/* --- Flash Info ------------------------------------------- */
.flash-info {
  background: #111111;
  color: rgba(255,255,255,0.75);
  padding: 0.9rem 0;
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0;
  z-index: 190;
  height: var(--banner-h);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.flash-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.flash-badge {
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.5);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 0.25rem 0.7rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255,255,255,0.12);
  white-space: nowrap;
}

.flash-text {
  font-size: 0.875rem;
  font-weight: 500;
  flex: 1;
}

.flash-link {
  display: inline-block;
  background: var(--white);
  color: #111111;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-decoration: none;
  white-space: nowrap;
  padding: 0.45rem 1.1rem;
  border-radius: var(--radius-pill);
  transition: opacity 0.15s, transform 0.15s;
}
.flash-link:hover { opacity: 0.88; transform: translateY(-1px); }


/* --- Actions ---------------------------------------------- */
.section-actions {
  padding: 4.5rem 0;
  background: linear-gradient(160deg, #f8fafb 0%, #f0f5fa 100%);
}

.actions-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-bottom: 3rem;
}

.action-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0,0,0,0.04);
  transition: box-shadow 0.25s, transform 0.25s;
}
.action-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.action-icon {
  color: var(--blue);
  margin-bottom: 1.25rem;
  width: 48px;
  height: 48px;
  background: var(--blue-light);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.action-card h3 {
  font-family: 'Outfit', system-ui, sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
  letter-spacing: -0.01em;
}

.action-card p {
  font-size: 0.875rem;
  color: var(--text-s);
  line-height: 1.65;
}

.section-cta { text-align: center; }


/* --- Events ----------------------------------------------- */
.section-events {
  padding: 7rem 0;
  background: var(--white);
}

.events-grid { display: flex; flex-direction: column; gap: 1rem; }

.event-item {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  padding: 2rem;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0,0,0,0.04);
  transition: box-shadow 0.25s, transform 0.2s;
}
.event-item:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.event-item.featured {
  border-left: 4px solid var(--blue);
  background: linear-gradient(135deg, rgba(0,161,222,0.03) 0%, var(--white) 60%);
}

.event-date-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-width: 64px;
  background: var(--blue-light);
  border-radius: var(--radius-sm);
  padding: 0.75rem 0.5rem;
}

.event-day {
  font-family: 'Outfit', system-ui, sans-serif;
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1;
  color: var(--blue);
}

.event-month {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--blue);
  opacity: 0.75;
}

.event-year {
  font-size: 0.65rem;
  color: var(--blue);
  opacity: 0.5;
  margin-top: 2px;
}

.event-tag {
  display: inline-block;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--green);
  background: rgba(32,96,61,0.08);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-pill);
  margin-bottom: 0.6rem;
}

.event-info h3 {
  font-family: 'Outfit', system-ui, sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  letter-spacing: -0.01em;
}

.event-info p {
  font-size: 0.875rem;
  color: var(--text-s);
  margin-bottom: 0.8rem;
}

.event-link {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--blue);
  text-decoration: none;
  transition: opacity 0.15s;
}
.event-link:hover { opacity: 0.7; }


/* --- Image Placeholders ----------------------------------- */
.img-ph {
  position: relative;
  background: linear-gradient(135deg, #edf2f7 0%, #e2e8f0 100%);
  border: 2px dashed #cbd5e0;
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.img-ph::before {
  content: attr(data-label);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: #90a0b0;
  text-align: center;
  padding: 1rem;
  line-height: 1.5;
}
.img-ph::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -70%);
  width: 32px;
  height: 32px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 24 24' fill='none' stroke='%23a0b8cc' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='18' height='18' rx='2' ry='2'/%3E%3Ccircle cx='8.5' cy='8.5' r='1.5'/%3E%3Cpolyline points='21 15 16 10 5 21'/%3E%3C/svg%3E") center/contain no-repeat;
}

.img-ph--hero   { aspect-ratio: 4/3; width: 100%; }
.img-ph--wide   { aspect-ratio: 16/9; width: 100%; }
.img-ph--square { aspect-ratio: 1/1; width: 100%; }
.img-ph--tall   { aspect-ratio: 3/4; width: 100%; }
.img-ph--card   { aspect-ratio: 3/2; width: 100%; }


/* --- CTA Band --------------------------------------------- */
.section-cta-band {
  background: linear-gradient(135deg, var(--green) 0%, var(--green-d) 100%);
  padding: 3rem 0;
  position: relative;
  overflow: hidden;
}
.section-cta-band::before {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
  top: -100px;
  right: -50px;
  pointer-events: none;
}

.cta-band-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.cta-band-inner p {
  font-size: 1.1rem;
  color: var(--white);
  font-weight: 500;
}

.cta-band-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.section-cta-band .btn-primary {
  background: var(--yellow);
  color: var(--text);
  box-shadow: 0 4px 16px rgba(250,210,1,0.35);
}
.section-cta-band .btn-primary:hover {
  opacity: 0.92;
  background: var(--yellow);
  box-shadow: 0 8px 24px rgba(250,210,1,0.45);
}

.section-cta-band .btn-outline {
  border-color: rgba(255,255,255,0.4);
  color: var(--white);
}
.section-cta-band .btn-outline:hover {
  background: rgba(255,255,255,0.12);
  border-color: var(--white);
  box-shadow: none;
}

@media (max-width: 640px) {
  .cta-band-inner { flex-direction: column; align-items: flex-start; }
}


/* --- Footer ----------------------------------------------- */
footer {
  background: #0d1117;
  color: rgba(255,255,255,0.65);
  padding: 4.5rem 0 2rem;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.footer-logo { height: 44px; width: auto; margin-bottom: 1.25rem; }

.footer-brand p {
  font-size: 0.85rem;
  line-height: 1.65;
  opacity: 0.6;
}

footer h4 {
  font-family: 'Outfit', system-ui, sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 1.1rem;
}

footer ul { list-style: none; display: flex; flex-direction: column; gap: 0.55rem; }

footer ul a {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  transition: color 0.15s;
}
footer ul a:hover { color: var(--white); }

.footer-bottom { display: flex; justify-content: center; }

.footer-bottom p { font-size: 0.75rem; opacity: 0.35; }


/* --- Responsive : Tablette (≤ 1024px) --------------------- */
@media (max-width: 1024px) {
  .actions-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 2rem; }
}


/* --- Responsive : Mobile (≤ 768px) ------------------------ */
@media (max-width: 768px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-logo { display: none; }
  .hero { padding-top: calc(var(--nav-h) + var(--banner-h) + 3rem); padding-bottom: 4rem; }

  .event-item { flex-direction: column; gap: 1rem; }

  .burger { display: flex; }
  .nav-links {
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    height: calc(100dvh - var(--nav-h));
    background: rgba(255,255,255,0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 190;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s, visibility 0.25s;
  }
  .nav-links.open { visibility: visible; opacity: 1; pointer-events: auto; }
  .nav-links a { font-size: 1.1rem; padding: 0.7rem 1.5rem; }
}


/* --- Responsive : Petit mobile (≤ 480px) ------------------ */
@media (max-width: 480px) {
  .actions-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .hero-cta { flex-direction: column; }
  .flash-inner { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
}
