:root {
  color-scheme: dark;
  --background: #f7f9fb;
  --surface: #ffffff;
  --surface-strong: #0f172a;
  --text: #12223f;
  --text-muted: #455070;
  --primary: #f0c01c;
  --primary-dark: #dfaf11;
  --primary-soft: #eee5c9;
  --secondary: #5D9DD2;
  --secondary-soft: #b9daf7;
  --secondary-dark: #1B385C;
  --secondary-dark-2: #162941;
  --accent: #f2a94e;
  --border: rgba(18, 34, 63, 0.08);
  --shadow: 0 16px 40px rgba(18, 34, 63, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

/* Offset for anchor links to account for the sticky header */
section[id] {
  scroll-margin-top: 120px;
}

body {
  margin: 0;
  font-family: Inter, system-ui, sans-serif;
  background: var(--background);
  color: var(--text);
  line-height: 1.7;
}

h3 {
  font-size: 1.8rem;
}

h4 {
  font-size: 1.5rem;
}

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

.container {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  z-index: 20;
}

.important-link {
  padding: 0.95rem 1.6rem;
  border-radius: 999px;
  font-weight: 600;
  transition: background 0.2s ease;
}

.secondary-link {
  background: var(--secondary-dark) !important;
  color: var(--surface) !important;
}

.header-inner,
.footer-inner,
.hero-grid,
.feature-grid,
.spot-grid,
.contact-grid {
  display: grid;
  gap: 1.5rem;
}

.header-inner {
  grid-template-columns: 1fr auto;
  align-items: center;
  padding: 1rem 0;
}

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

.logo-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: white;
  font-weight: 700;
  font-size: 1.25rem;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.82rem;
  color: var(--secondary-dark) !important;
  margin: 0;
}

.landing-description {
  margin-top: 0;
  font-size: 1.2rem;
  line-height: 1.5;
}

.main-nav {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: end;
}

.main-nav a {
  display: flex;
  align-items: center;
  color: var(--text-muted);
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.main-nav a:hover {
  color: var(--primary);
}

.main-nav a.secondary-link:hover {
  transition: all 0.4s ease;
  background: var(--primary) !important;
  color: var(--secondary-dark-2) !important;
}

.main-nav a.active {
  color: var(--primary);
  font-weight: 600;
  text-decoration: underline;
  text-underline-position: under;
}

.hero {
  padding: 3rem 0;
}

.hero-grid {
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  align-items: center;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding-right: 20px;
  width: 65%;
}

.hero-copy h2 {
  font-size: clamp(2.1rem, 3vw, 3rem);
  margin: 0.6rem 0 1rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: white;
  margin-top: 1.5rem;
  padding: 0.95rem 1.6rem;
  border-radius: 999px;
  border: none;
  font-weight: 600;
  transition: transform 0.2s ease, background 0.2s ease;
}

.button:hover {
  transform: translateY(-1px);
  background: var(--primary-dark);
}

.button.secondary {
  background: var(--secondary-dark);
}

.button.secondary:hover {
  background: var(--secondary-dark-2);
}

.hero-visual {
  display: flex;
  place-items: center;
}

.wave-image {
  width: 100%;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.badge-list .badge {
  display: inline-block;
  margin: 0 0.25rem 1.75rem 0.25rem;
  padding: 0.25rem 1rem;
  /* background: var(--secondary-soft);
  color: var(--secondary-dark); */
  background: var(--secondary-dark-2);
  color: var(--surface);
  font-size: 1.25rem;
  border-radius: 999px;
}

.wave-card {
  width: 100%;
  min-height: 320px;
  border-radius: 32px;
  background: linear-gradient(180deg, #f0c01c 0%, #0f172a 100%);
  color: white;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 2rem;
}

.wave-card span {
  font-size: 1.4rem;
  letter-spacing: 0.08em;
}

.designed-by-label {
  color: var(--primary-soft);
}

.section-light,
.section-dark {
  padding: 4rem 0;
}

.section-dark {
  background: #f7f0dc;
}

.section-light h2,
.section-dark h2 {
  margin: 0 0 1rem;
  font-size: 2rem;
}

.section-intro {
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.feature-grid,
.spot-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.feature-card,
.spot-card,
.tarif-card {
  background: white;
  padding: 1.8rem;
  border: 1px solid var(--border);
}

.spot-grid {
  gap: 0;
}

.spot-card {
  border-radius: 0;
  border: 0;
  box-shadow: none !important;
  text-align: center;
}

.spot-type {
  display: inline-block;
  margin-bottom: 0.75rem;
  padding: 0.25rem 0.75rem;
  background: var(--primary-soft);
  color: var(--secondary-dark);
  font-size: 1.25rem;
  border-radius: 999px;
}

.feature-card h3,
.spot-card h3,
.tarif-card h3 {
  margin: 0 0 0.75rem;
}

.spot-card p {
  margin: 0 0 1rem;
  color: var(--text-muted);
}

.spot-image-wrapper {
  display: flex;
  justify-content: center;
  width: 200px;
  height: 200px;
}

.spot-image {
  display: flex;
  padding: 2rem;
}

.spot-btn-ctrl {
  margin-top: 1.5rem;
}

.contact-section {
  background: #0f172a;
  color: #f8fafc;
}

.contact-grid {
  grid-template-columns: 1.2fr 1fr;
  align-items: start;
}

.contact-form {
  display: grid;
  gap: 1rem;
}

.contact-form label {
  display: grid;
  gap: 0.5rem;
  font-size: 0.95rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
  color: white;
  padding: 0.95rem 1rem;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(255, 255, 255, 0.65);
}

.form-status {
  text-align: center;
  margin-top: 1rem;
  font-weight: 500;
  transition: color 0.3s ease-in-out;
}

.map-frame {
  width: 100%;
  min-height: 320px;
  border: none;
  border-radius: 24px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.site-footer {
  padding: 1.5rem 0;
  background: #ffffff;
  border-top: 1px solid var(--border);
}

.footer-inner {
  grid-template-columns: 1fr auto;
  align-items: center;
  padding: 0.5rem 0;
}

.footer-links {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.footer-links a {
  color: var(--text);
  font-size: 0.9rem;
}

.legal-content {
  max-width: 800px;
  margin: 0 auto;
}

.legal-content h2 {
  margin: 2rem 0 1rem;
  font-size: 1.5rem;
  color: var(--primary);
}

.legal-content p {
  margin-bottom: 1rem;
  line-height: 1.6;
}

.legal-content p strong {
  color: var(--text);
}

/* Styles pour la page association */
.mission-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.mission-card {
  background: white;
  padding: 2rem;
  border-radius: 24px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.points-grid {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
}

.point-card {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 2rem;
  align-items: center;
  background: white;
  padding: 2rem;
  /* border-radius: 24px; */
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.point-card:nth-child(even) {
  grid-template-columns: minmax(0, 1fr) 320px;
}

.point-media {
  position: relative;
  display: flex;
  max-width: 320px;
  max-height: 320px;
}

.point-media img {
  position: relative;
  max-width: 100%;
  max-height: 100%;
  border-radius: 8px;
  display: block;
}

.point-number {
  /* background-color: transparent !important; */
  /* padding: 0 !important; */
  margin-bottom: 0 !important;
  /* max-width: fit-content; */
  /* display: inline-flex;
  align-items: center;
  justify-content: center; */
  /* width: 3rem;
  height: 3rem; */
  /* border-radius: 50%;
  background: var(--primary);
  color: white;
  font-weight: 700;
  font-size: 1rem; */
}


.point-card h3 {
  margin: 0;
  font-size: 1.5rem;
}

.point-card p {
  margin: 0;
  line-height: 1.7;
  color: var(--text-muted);
}

@media (max-width: 960px) {
  .point-card {
    grid-template-columns: 1fr;
  }

  .point-card:nth-child(even) {
    grid-template-columns: 1fr;
  }
}

.mission-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(18, 34, 63, 0.15);
}

.mission-card h3 {
  color: var(--primary);
  margin: 0 0 1rem;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.mission-card p {
  margin: 0 0 1rem;
  line-height: 1.6;
  color: var(--text-muted);
}

.mission-actions h4 {
  margin: 1.5rem 0 0.5rem;
  color: var(--text);
  font-size: 1rem;
}

.mission-actions ul {
  margin: 0;
  padding-left: 1.5rem;
}

.mission-actions li {
  margin-bottom: 0.5rem;
  color: var(--text);
}

.mission-modes {
  margin-top: 1rem;
}

.content {
  text-align: left;
}

.mode-item {
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: rgba(240, 192, 28, 0.05);
  border-radius: 7px 0 0 7px;
  border-left: 4px solid var(--primary);
  text-align: left;
}

.mode-item h4 {
  margin: 0 0 0.5rem;
  color: var(--primary);
  font-size: 1rem;
}

.mode-item p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
}

.president-body article {
  display: flex;
  justify-content: space-between;
}

.president-presentation {
  margin-left: 2rem;
  padding: 2rem;
  background-color: var(--background);
}

.president-presentation p {
  margin-top: 0;
  text-align: justify;
}

/* Bouton flottant "Haut de page" */
.scroll-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 50px;
  height: 50px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 1.5rem;
  font-weight: bold;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.scroll-to-top:hover {
  background: #dfaf11;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.scroll-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.scroll-to-top:focus {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.landing-page {
  padding: 4rem 0 4rem 0;
  background: var(--primary);
}

.landing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 2rem;
}

.landing-image {
  display: grid;
  place-items: center;
}

.landing-image img {
  width: 100%;
  max-width: 400px;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.landing-content h1 {
  font-size: clamp(2rem, 3vw, 2.5rem);
  margin: 0 0 1.5rem;
  line-height: 1.3;
  color: var(--secondary-dark-2) !important;
}

.landing-content .eyebrow {
  color: var(--secondary-dark-2) !important;
}

.landing-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1rem;
}

.landing-list li {
  padding-left: 1.5rem;
  position: relative;
  color: var(--surface-strong);
  font-weight: 500;
}

.landing-list li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--surface-strong);
  font-weight: 700;
}

.hero-flex {
  display: flex;
  justify-content: space-between;
}

.box-categories {
  position: relative;
  display: flex;
  flex-direction: column;
}

.box-categories .sos-grid,
.box-categories .spot-grid {
  position: relative;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}

#people-categories .sos-grid {
  top: -4rem;
}

.box-categories .sos-grid .sos-card,
.box-categories .spot-grid .spot-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: calc(100% / 3);
  height: auto;
  min-height: 300px;
  padding: 2rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.box-categories .sos-card h3,
.box-categories .spot-card h3 {
  margin: 0 0 1rem;
  color: var(--secondary-dark);
  line-height: normal;
  font-size: 1.75rem;
}

.box-categories .sos-card p,
.box-categories .spot-card p {
  /* margin: 0 0 1.5rem; */
  color: var(--text-muted);
  line-height: 1.6;
  font-size: 0.95rem;
}

.box-categories .sos-card ul,
.box-categories .spot-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: left;
  width: 100%;
}

.box-categories .sos-card li,
.box-categories .spot-card li {
  padding: 0.5rem 0;
  padding-left: 1.5rem;
  position: relative;
  color: var(--text);
  font-size: 0.9rem;
}

.box-categories .sos-card ul > li::before,
.box-categories .spot-card ul > li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: bold;
}

.box-categories .sos-card .content > ul > li > ul > li::before,
.box-categories .spot-card .content > ul> li > ul > li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--secondary);
  font-weight: bold;
}

#people-categories .sos-card-1,
.spot-card-1 {
  background: var(--surface);
}

#people-categories .sos-card-1 h3 {
  color: var(--text) !important;
}
#people-categories .sos-card-1 p {
  color: var(--text) !important;
}

#people-categories .sos-card-2,
.spot-card-2 {
  background: var(--secondary-soft);
}

#people-categories .sos-card-2 h3,
.spot-card-2 h3 {
  color: var(--surface-strong) !important;
}

#people-categories .sos-card-3 h3 {
  color: var(--text) !important;
}

#people-categories .sos-card-2 p,
#people-categories .sos-card-2 li,
.spot-card-2 p,
.spot-card-2 li {
  color: var(--surface-strong) !important;
}

#people-categories .sos-card-3 {
  background: var(--background);
}

.spot-card-3 {
  background: var(--secondary-dark);
}

.spot-card-3 h3,
.spot-card-3 h4,
.spot-card-3 p,
.spot-card-3 li {
  color: rgba(255, 255, 255, 0.9) !important;
}

.point-number,
.sos-card-count {
  font-size: 3rem;
  font-weight: bold;
  color: var(--primary);
  margin-bottom: 1rem;
  background: rgba(240, 192, 28, 0.1);
  padding: 0.5rem 2.5rem;
}

#goal-categories .sos-grid .sos-card {
  border: none;
  box-shadow: none;
  background-color: var(--background);
}

#goal-categories .sos-card h3 {
  color: var(--secondary-dark-2) !important;
}

#goal-categories .sos-grid .sos-card-2 {
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
}
.content h4 {
  margin-bottom: 0.5rem;
  font-size: .875rem;
}

.aim {
    border-radius: 6px 0 0 6px;
    border-left: 4px solid var(--primary);
    padding: 0 1rem;
}

#partenaires .partenaire-list {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 50px;
}

#partenaires .partenaire-card {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 260px;
  width: 260px;
  padding: 10px;
}

#partenaires .partenaire-card:hover {
  transition: all 0.4s ease;
  transform: translateY(-4px);
}

#partenaires .partenaire-card img {
  display: flex;
  max-width: 100%;
  max-height: 260px;
  width: max-content;
  height: max-content;
}

/* --- Styles pour les onglets des modules sur mobile --- */
.spot-tabs-nav {
  display: none; /* Caché par défaut sur les grands écrans */
}

@media (max-width: 960px) {
  .president-presentation {
    padding: 1rem;
  }

  .hero-flex {
    flex-direction: column;
  }

  .hero-visual {
    width: 100%;
    margin-bottom: 40px;
  }

  .wave-image {
    width: 100%;
  }

  .hero-copy {
    width: 100%;
    margin-bottom: 20px;
  }

  .hero-copy p {
    max-width: 100% !important;
  }

  .point-card {
    box-shadow: none;
  }
}

@media (min-width: 841px) {
  /* --- Bouton du menu mobile --- */
  .mobile-nav-toggle {
    display: none; /* Caché par défaut sur les grands écrans */
    cursor: pointer;
  }
}

@media (max-width: 840px) {
  .hero-grid,
  .contact-grid,
  .landing-grid,
  .header-inner,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .header-inner {
    padding: 3px 0px !important;
  }

  .main-nav {
    justify-content: start;
  }
  
  #president-showcase {
    background-color: var(--background);
  }

  .president-body article {
    flex-direction: column;
  }
  
  .president-media {
    max-width: 100%;
    margin: auto;
  }
  
  .president-media img {
    max-width: 100%;
    border-radius: 8px;
  }
  
  .president-presentation {
    margin-top: 20px;
    margin-left: 0;
    padding: 0rem;
  }

  .scroll-to-top {
    bottom: 1rem;
    right: 1rem;
    width: 45px;
    height: 45px;
    font-size: 1.2rem;
  }

  /* Affichage en onglets pour les modules */
  .spot-tabs-nav {
    display: flex;
    justify-content: stretch;
    margin-bottom: 1.5rem;
    border-radius: 14px;
    background: var(--primary-soft);
    padding: 0.5rem;
  }

  .spot-tab-button {
    flex-grow: 1;
    padding: 0.75rem 1rem;
    border: none;
    background: transparent;
    color: var(--secondary-dark);
    font-weight: 600;
    font-size: 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
  }

  .spot-tab-button.active {
    background-color: var(--secondary-dark);
    color: white;
  }

  .spot-tabs-content {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    /* Hide scrollbar for a cleaner look */
    -ms-overflow-style: none; /* IE and Edge */
    scrollbar-width: none; /* Firefox */
    padding: 0.5rem 20px; /* Add padding to respect the 20px offset */
  }

  .brand img {
    height: 70px;
  }

  /* --- Styles pour le menu mobile --- */
  .mobile-nav-toggle {
    display: block;
    position: absolute;
    /* top: 2.5rem; */
    right: 2rem;
    z-index: 9999;
    background: transparent;
    background-image: url(assets/images/icons/icon-hamburger.svg);
    background-repeat: no-repeat;
    background-position: center;
    width: 2rem;
    height: 2rem;
    border: 0;
    cursor: pointer;
  }

  .mobile-nav-toggle[aria-expanded="true"] {
    background-image: url(assets/images/icons/icon-close.svg);
  }

  .main-nav {
    position: fixed;
    display: none;
    top: 83px;
    z-index: 1000;
    flex-direction: column;
    flex-wrap: nowrap;
    width: 0px;
    gap: unset;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(16px);
    transition: all 350ms ease-out;
  }

  .main-nav[data-visible="true"] {
    display: flex;
    right: 0;
    width: calc(100% - 40%);
  }

  .main-nav a {
    font-size: 1.2rem;
    padding: 0 24px;
  }

  .main-nav a span {
    width: 100%;
    padding: 16px 8px;
    border-bottom: 1px solid rgb(204, 204, 204);
  }

  .main-nav .important-link {
    background-color: rgba(255, 255, 255, 0.96) !important;
    /* font-weight: normal; */
    color: var(--text-muted) !important;
  }

  .main-nav a.secondary-link:hover {
    background-color: rgba(255, 255, 255, 0.96) !important;
    color: var(--secondary-dark-2) !important;
  }
/* 
  .main-nav .secondary-link span {
    color: rgba(255, 255, 255, 0.96) !important;
    background-color: var(--secondary-dark) !important;
  } */

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

  .spot-tabs-content::-webkit-scrollbar {
    display: none;
  }

  .spot-tabs-content > .spot-card {
    flex: 0 0 85%;
    scroll-snap-align: start;
    border-radius: 8px;
  }

  .sos-grid {
    flex-direction: column !important;
  }

  .sos-card {
    width: 100% !important;
  }
}

.tarifs-btn-ctrl {
  display: flex;
  justify-content: center;
}