:root {
  --bg: #0f0d19;
  --bg-alt: #ffe6c7;
  --bg-light: #fff9f1;
  --sand: #f4a261;
  --sun: #ffb703;
  --text: #141023;
  --text-light: #4a4a5a;
  --primary: #ef233c;
  --primary-dark: #d90429;
  --accent: #118ab2;
  --accent-dark: #0f4c75;
  --radius-lg: 28px;
  --radius: 18px;
  --shadow-soft: 0 35px 65px rgba(15, 13, 25, 0.16);
  --shadow-light: 0 20px 40px rgba(15, 13, 25, 0.12);
  --container-width: min(1140px, 92vw);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

p {
  text-align: justify;
}

body {
  font-family: 'Poppins', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #fff3e4 0%, var(--bg-light) 35%, #ffffff 100%);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--primary);
  color: #fff;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover,
a:focus-visible {
  color: var(--primary);
}

img {
  max-width: 100%;
  display: block;
  border-radius: var(--radius);
}

.container {
  width: var(--container-width);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
  background: white;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

.logo img {
  height: 80px;
  width: auto;
}

.main-nav ul {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

.main-nav a {
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
  padding-bottom: 0.2rem;
  color: rgba(0, 0, 0);
}

.main-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 100%;
  background: var(--sun);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.main-nav a:focus-visible::after,
.main-nav a:hover::after {
  transform: scaleX(1);
}

.main-nav a:hover,
.main-nav a:focus-visible {
  color: rgba(0, 0, 0);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  flex-direction: column;
  gap: 5px;
  padding: 0.25rem;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.hero {
  position: relative;
  padding: 7rem 0 5.5rem;
  background: url("../img/4l-background.png") center center/cover no-repeat;
  color: #fff;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.16) 1px, transparent 0);
  background-size: 42px 42px;
  opacity: 0.35;
  mix-blend-mode: screen;
}

.hero .container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
  align-items: center;
}

.hero__badge {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.hero__badge span {
  background: rgba(15, 13, 25, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  padding: 0.35rem 0.9rem;
  font-size: 0.75rem;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  font-weight: 600;
}

.hero__eyebrow {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 600;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1.1;
  margin: 1.2rem 0 1.5rem;
}


.hero p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.05rem;
}

.hero__tags {
  margin: 1.8rem 0 0;
  padding: 0;
  list-style: none;
  display: inline-flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.hero__tags li {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  padding: 0.35rem 0.9rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.hero__cta {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}


.hero__card {
  position: relative;
  background: linear-gradient(165deg, rgba(15, 13, 25, 0.92), rgba(15, 13, 25, 0.65));
  padding: 2.4rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.hero__card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top left, rgba(255, 183, 3, 0.35), transparent 60%);
  opacity: 0.75;
  pointer-events: none;
  z-index: 0;
}

.hero__card-label {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 1.5rem;
}

.hero__card-label::before {
  content: '';
  width: 32px;
  height: 2px;
  background: var(--sun);
  border-radius: 999px;
}

.hero__stats {
  position: relative;
  display: grid;
  gap: 1.5rem;
}

.hero__card > * {
  position: relative;
  z-index: 1;
}

.hero__stats .stat {
  font-size: 2rem;
  font-weight: 600;
  display: block;
}

.hero__stats .label {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
}

.hero__card-note {
  position: relative;
  margin-top: 2rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.8rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn--primary {
  background: var(--primary);
  color: white;
  box-shadow: var(--shadow-soft);
}

.btn--primary:hover,
.btn--primary:focus-visible {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

.btn--ghost {
  border: 2px solid rgba(255, 255, 255, 0.55);
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}

.btn--ghost:hover,
.btn--ghost:focus-visible {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}


.section {
  position: relative;
  padding: 6rem 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), #ffffff);
}

.section--alt {
  /*background: linear-gradient(180deg, rgba(255, 230, 199, 0.32), rgba(255, 255, 255, 0.98));*/
  background: url("../img/4l-background-2.png") center center/cover no-repeat;
}

.section--alt-2 {
  /*background: linear-gradient(180deg, rgba(255, 230, 199, 0.32), rgba(255, 255, 255, 0.98));*/
  background: url("../img/partenariat.jpg") center center/cover no-repeat;
}

.section--alt-3 {
  /*background: linear-gradient(180deg, rgba(255, 230, 199, 0.32), rgba(255, 255, 255, 0.98));*/
  background: url("../img/4l-event.jpg") center center/cover no-repeat;
}

.section--alt-2 h2 {
  font-size: 60px;
      font-weight: bold;
      background: linear-gradient(90deg, #ff0000, #0000ff); /* rouge → bleu */
      -webkit-background-clip: text;  /* pour Chrome, Safari */
      -webkit-text-fill-color: transparent;
      background-clip: text;          /* pour Firefox */
      color: transparent;
}

.section--alt-2 h4 {
  font-weight: bold;
  background: linear-gradient(90deg, #ff0000, #0000ff); /* rouge → bleu */
  -webkit-background-clip: text;  /* pour Chrome, Safari */
  -webkit-text-fill-color: transparent;
  background-clip: text;          /* pour Firefox */
  color: transparent;
}

.section--alt-3 h2 {
  font-size: 60px;
      font-weight: bold;
      background: linear-gradient(90deg, #ff0000, #0000ff); /* rouge → bleu */
      -webkit-background-clip: text;  /* pour Chrome, Safari */
      -webkit-text-fill-color: transparent;
      background-clip: text;          /* pour Firefox */
      color: transparent;
}

.section--cta {
  background: radial-gradient(circle at 15% 25%, rgba(255, 183, 3, 0.3), transparent 55%),
    linear-gradient(120deg, #281394, #b62b3c 55%, #834d13 100%);
  color: #fff;
}

.section--cta .btn--ghost {
  border-color: rgba(255, 255, 255, 0.55);
}

.section__eyebrow {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.8rem;
  color: var(--accent);
  font-weight: 600;
}

.section h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin: 1rem 0 1.5rem;
}

.section__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  align-items: start;
}

.card {
  background: rgba(255, 255, 255, 0.96);
  border-radius: var(--radius-lg);
  padding: 2.2rem;
  box-shadow: var(--shadow-light);
  border: 1px solid rgba(239, 35, 60, 0.08);
}

.card--accent {
  background: linear-gradient(160deg, rgba(17, 138, 178, 0.9), rgba(15, 76, 117, 0.95));
  color: #fff;
  border: none;
  box-shadow: 0 40px 80px rgba(17, 138, 178, 0.3);
}

.card--accent h3 {
  color: #fff;
}

.checklist {
  list-style: none;
  display: grid;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.checklist li::before {
  content: '✔';
  color: var(--primary);
  margin-right: 0.5rem;
}

.timeline {
  list-style: none;
  display: grid;
  gap: 1.5rem;
  counter-reset: steps;
}

.timeline li {
  position: relative;
  padding-left: 2.5rem;
}

.timeline li::before {
  counter-increment: steps;
  content: counter(steps);
  position: absolute;
  left: 0;
  top: 0;
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 50%;
  background: var(--sun);
  color: var(--bg);
  display: grid;
  place-items: center;
  font-weight: 700;
}

.timeline span {
  font-weight: 600;
  color: var(--text);
}

.benefits {
  list-style: none;
  display: grid;
  gap: 1rem;
}

.benefits span {
  display: block;
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.missions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.mission-card {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.98), rgba(255, 230, 199, 0.45));
  border-radius: var(--radius);
  padding: 1.9rem;
  border: 1px solid rgba(247, 127, 0, 0.22);
  box-shadow: var(--shadow-light);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.mission-card:hover,
.mission-card:focus-within {
  transform: translateY(-6px);
  box-shadow: 0 30px 45px rgba(239, 35, 60, 0.2);
}


.support-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.link {
  color: var(--primary);
  font-weight: 600;
  margin-top: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.link::after {
  content: '→';
  transition: transform 0.2s ease;
}

.link:hover::after,
.link:focus-visible::after {
  transform: translateX(4px);
}

.sponsor-packages {
  margin-top: 3rem;
}

.packages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.package {
  background: rgba(255, 255, 255, 0.97);
  padding: 2rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(17, 138, 178, 0.18);
  box-shadow: var(--shadow-light);
  text-align: center;
}

.package--highlight {
  background: linear-gradient(150deg, rgba(239, 35, 60, 0.12), rgba(247, 127, 0, 0.3));
  border-color: rgba(239, 35, 60, 0.4);
  transform: translateY(-10px);
}

.package__title {
  font-weight: 600;
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  text-align-last: center;
}

.package__price {
  font-weight: 700;
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 1rem;
  text-align-last: center;
}

.package ul {
  list-style: none;
  display: grid;
  gap: 0.6rem;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.team-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-light);
  background: rgba(255, 255, 255, 0.97);
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(239, 35, 60, 0.12);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-card--lead {
  border-color: rgba(239, 35, 60, 0.35);
  box-shadow: 0 40px 70px rgba(239, 35, 60, 0.2);
  /*transform: translateY(-8px);*/
}

.team-card--lead-2 {
  border-color: rgba(16, 201, 114, 0.35);
  box-shadow: 0 40px 70px rgba(16, 201, 114, 0.35);
  /*transform: translateY(-8px);*/
}

.team-card--lead-3 {
  border-color: rgba(10, 59, 219, 0.35);
  box-shadow: 0 40px 70px rgba(10, 59, 219, 0.35);
  /*transform: translateY(-8px);*/
}

.team-card:hover,
.team-card:focus-within {
  transform: translateY(-6px);
  box-shadow: 0 30px 60px rgba(239, 35, 60, 0.16);
}

.team-card--lead:hover,
.team-card--lead:focus-within {
  transform: translateY(-12px);
  box-shadow: 0 50px 90px rgba(239, 35, 60, 0.25);
}

.team-card--lead-2:hover,
.team-card--lead-2:focus-within {
  transform: translateY(-12px);
  box-shadow: 0 50px 90px rgba(16, 201, 114, 0.35);
}

.team-card--lead-3:hover,
.team-card--lead-3:focus-within {
  transform: translateY(-12px);
  box-shadow: 0 50px 90px rgba(10, 59, 219, 0.35);
}

.team-card__image {
  position: relative;
  overflow: hidden;
}

.team-card__image img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: 0;
}

.team-card__badge {
  position: absolute;
  left: 1.2rem;
  bottom: 1.2rem;
  background: rgba(17, 138, 178, 0.9);
  color: #fff;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  font-size: 0.75rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-weight: 700;
}

.team-card--lead .team-card__badge {
  background: var(--primary);
}

.team-card--lead-2 .team-card__badge {
  background: rgba(16, 201, 114, 1);
}

.team-card--lead-3 .team-card__badge {
  background: rgba(10, 59, 219, 1);
}

.team-card__content {
  padding: 1.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.team-card h3 {
  font-size: 1.35rem;
  margin-bottom: 0.1rem;
}

.role {
  color: var(--accent-dark);
  font-weight: 600;
  margin-bottom: 0.2rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.8rem;
}

.team-card--lead .role {
  color: var(--primary);
}

.team-card--lead-2 .role {
  color: rgba(16, 201, 114, 1);
}

.team-card--lead-3 .role {
  color: rgba(10, 59, 219, 1);
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.news-card {
  padding: 1.9rem;
  background: rgba(255, 255, 255, 0.97);
  border-radius: var(--radius);
  border: 1px solid rgba(17, 138, 178, 0.2);
  border-top: 4px solid var(--accent);
  box-shadow: var(--shadow-light);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-card__date {
  text-transform: uppercase;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--accent);
}

.news-card:hover,
.news-card:focus-within {
  transform: translateY(-6px);
  box-shadow: 0 30px 50px rgba(17, 138, 178, 0.18);
}

.cta-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}


.site-footer {
  position: relative;
  background: linear-gradient(160deg, #0f0d19, #192a56 65%, #0f4c75);
  color: #fff;
  padding: 4.5rem 0 2.5rem;
  overflow: hidden;
}

.site-footer::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(239, 35, 60, 0.4), transparent 55%);
  opacity: 0.4;
  pointer-events: none;
}

.site-footer > .container,
.footer-bottom {
  position: relative;
  z-index: 1;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.85);
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: white;
}

.social-links,
.doc-links {
  list-style: none;
  display: grid;
  gap: 0.75rem;
}

.footer-bottom {
  margin-top: 3rem;
  text-align: center;
  display: flex;
  justify-content: center;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.85rem;
}

.scroll-top {
  position: fixed;
  right: 2rem;
  bottom: 2rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, var(--primary), var(--sun));
  color: white;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: var(--shadow-soft);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.scroll-top svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.scroll-top--visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-top--visible:hover,
.scroll-top--visible:focus-visible {
  transform: translateY(-4px);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 900px) {
  .main-nav ul {
    position: fixed;
    inset: 0;
    background: radial-gradient(circle at top, rgba(239, 35, 60, 0.35), transparent 55%),
      rgba(15, 13, 25, 0.96);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    transform: translateY(-100%);
    transition: transform 0.4s ease;
  }

  .main-nav ul.open {
    transform: translateY(0);
  }

  .main-nav a {
    font-size: 1.4rem;
    color: white;
  }

  .nav-toggle {
    display: flex;
  }
}

@media (max-width: 720px) {
  .hero__card {
    padding: 1.6rem;
  }

  .card,
  .package,
  .mission-card,
  .news-card {
    padding: 1.5rem;
  }

  .team-card__image img {
    height: 220px;
  }

  .scroll-top {
    right: 1rem;
    bottom: 1.5rem;
  }
}

@media (max-width: 540px) {
  .site-header .container {
    padding: 0.8rem 0;
  }

  .container {
    width: min(94vw, 500px);
  }

  .logo img {
    height: 40px;
  }

  .hero__cta {
    flex-direction: column;
    align-items: stretch;
  }

  .cta-actions {
    justify-content: flex-start;
  }
}