/* ========================================================
   FORSUD — version claire, fidèle à la charte graphique
   Bleu Pantone 285C #0072ce · Noir Pantone 419C #212322
   Titres : League Spartan · Sous-titres : Didact Gothic
   Corps de texte : Verdana
   ======================================================== */

:root {
  --blue: #0072ce;
  --blue-dark: #005ba8;
  --blue-soft: #e8f2fc;
  --ink: #212322;
  --ink-soft: #55595c;
  --line: #e3e6ea;
  --bg: #ffffff;
  --bg-alt: #f6f9fc;
  --radius: 14px;
  --font-title: "League Spartan", Verdana, sans-serif;
  --font-subtitle: "Didact Gothic", Verdana, sans-serif;
  --font-body: Verdana, Geneva, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

.container {
  width: min(1140px, 92%);
  margin-inline: auto;
}

h1, h2, h3 {
  font-family: var(--font-title);
  font-weight: 700;
  line-height: 1.12;
  margin: 0 0 0.5em;
  color: var(--ink);
}

h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
h3 { font-size: 1.1rem; }

p { color: var(--ink-soft); margin: 0 0 1em; font-size: 0.98rem; }

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

/* ---------- Badge / tilted tag (motif "Un titre" de la charte) ---------- */
.badge {
  display: inline-block;
  font-family: var(--font-subtitle);
  font-size: 0.85rem;
  color: var(--blue-dark);
  background: var(--blue-soft);
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  margin-bottom: 1.2em;
}

.tilted-tag {
  display: inline-block;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #fff;
  background: var(--blue);
  padding: 0.5rem 1.1rem;
  border-radius: 4px;
  transform: rotate(-4deg);
  margin-bottom: 1.3em;
}
.tilted-tag.center { display: table; margin-inline: auto; }

.section-title.center { text-align: center; max-width: 640px; margin-inline: auto; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 0;
}

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

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 2rem;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-family: var(--font-subtitle);
  font-size: 0.92rem;
  color: var(--ink-soft);
  transition: color 0.2s ease;
}
.nav-links a:hover { color: var(--blue); }

.nav-cta {
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  background: var(--blue);
  color: #fff !important;
}
.nav-cta:hover { background: var(--blue-dark); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 38px;
  height: 38px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin-inline: auto;
  background: var(--ink);
  border-radius: 2px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.95rem;
  font-family: var(--font-title);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.btn:active { transform: scale(0.97); }

.btn-primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 10px 24px -10px rgba(0, 114, 206, 0.55);
}
.btn-primary:hover { background: var(--blue-dark); transform: translateY(-2px); }

.btn-outline {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}
.btn-outline:hover { border-color: var(--blue); color: var(--blue); }

.btn-sm { padding: 0.6rem 1.2rem; font-size: 0.85rem; }
.btn-block { width: 100%; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: clamp(4.5rem, 10vw, 7.5rem) 0 5rem;
  overflow: hidden;
}

.hero-stripes {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 42%;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  gap: 14px;
  padding: 0 6% 0 0;
  transform: rotate(-4deg) translateX(8%);
  pointer-events: none;
  opacity: 0.9;
}
.hero-stripes span {
  display: block;
  width: 26px;
  background: var(--blue-soft);
  border-radius: 3px;
}
.hero-stripes span:nth-child(1) { height: 30%; }
.hero-stripes span:nth-child(2) { height: 45%; background: var(--blue-soft); }
.hero-stripes span:nth-child(3) { height: 62%; background: var(--blue); opacity: 0.15; }
.hero-stripes span:nth-child(4) { height: 78%; background: var(--blue); opacity: 0.35; }
.hero-stripes span:nth-child(5) { height: 92%; background: var(--blue); opacity: 0.6; }
.hero-stripes span:nth-child(6) { height: 105%; background: var(--blue); opacity: 0.85; }

.hero-inner { position: relative; max-width: 660px; }

.highlight { color: var(--blue); }

.lead { font-size: 1.08rem; max-width: 560px; margin-bottom: 2rem; }
.lead.small { font-size: 1rem; }

.actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 3.2rem; }

.stats {
  display: flex;
  gap: clamp(1.5rem, 4vw, 3rem);
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  padding-top: 1.8rem;
}

.stat { display: flex; flex-direction: column; }
.stat-num {
  font-family: var(--font-title);
  font-size: 2.1rem;
  font-weight: 800;
  color: var(--blue);
}
.stat-label { color: var(--ink-soft); font-size: 0.82rem; font-family: var(--font-subtitle); }

/* ---------- Mission ---------- */
.mission { padding: 4.5rem 0; background: var(--bg-alt); border-block: 1px solid var(--line); }
.mission-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.mission-text p { font-size: 1.02rem; }

/* ---------- Cards / Services ---------- */
.services { padding: 5.5rem 0; }
.section-title { margin-bottom: 3rem; }

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}

.card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.9rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--blue);
  box-shadow: 0 16px 32px -18px rgba(0, 114, 206, 0.35);
}
.card-icon { font-size: 1.7rem; margin-bottom: 0.9rem; }
.card p { margin-bottom: 0; font-size: 0.93rem; }

.card-cta {
  background: var(--blue);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.card-cta h3, .card-cta p { color: #fff; }
.card-cta p { opacity: 0.9; }

/* ---------- Team ---------- */
.team { padding: 5.5rem 0; background: var(--bg-alt); border-block: 1px solid var(--line); }
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}
.team-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
}
.team-photo {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  margin: 0 auto 1rem;
  object-fit: cover;
  border: 3px solid var(--blue-soft);
}
.team-role { color: var(--blue); font-family: var(--font-subtitle); font-size: 0.85rem; margin-bottom: 0.8em; }

/* ---------- Partners ---------- */
.partners { padding: 5rem 0; }
.partners-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.partner-pill {
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--ink-soft);
  font-family: var(--font-subtitle);
  font-size: 0.9rem;
  background: var(--bg-alt);
}

/* ---------- Assistance ---------- */
.assistance { padding: 5.5rem 0; background: var(--bg-alt); border-block: 1px solid var(--line); }
.assistance-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: start;
}
.assistance-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem;
}
.assistance-card hr { border: none; border-top: 1px solid var(--line); margin: 1.5rem 0; }
.assistance-card p:last-child { margin-bottom: 0; }

/* ---------- Contact ---------- */
.contact { padding: 5.5rem 0 6.5rem; }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}
.contact-list {
  list-style: none;
  padding: 0;
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.contact-list li {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.8rem;
}
.contact-label { font-family: var(--font-subtitle); font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-soft); }
.contact-list a:hover { color: var(--blue); }

.contact-form {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem;
}
.form-row { margin-bottom: 1.2rem; display: flex; flex-direction: column; gap: 0.4rem; }
.form-row label { font-family: var(--font-subtitle); font-size: 0.85rem; color: var(--ink-soft); }
.form-row input,
.form-row textarea {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.8rem 1rem;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 0.95rem;
  resize: vertical;
}
.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px var(--blue-soft);
}
.form-note {
  margin: 1rem 0 0;
  font-size: 0.85rem;
  color: var(--blue);
  min-height: 1.2em;
}

/* ---------- Footer ---------- */
.site-footer {
  padding: 2.2rem 0;
  border-top: 1px solid var(--line);
  background: var(--bg-alt);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-logo { height: 34px; width: auto; }
.footer-inner p { margin: 0; color: var(--ink-soft); font-size: 0.82rem; font-family: var(--font-subtitle); }
.footer-inner p a { color: var(--blue); }
.back-top { color: var(--ink-soft); font-size: 0.85rem; font-family: var(--font-subtitle); }
.back-top:hover { color: var(--blue); }

/* ---------- Reveal animation ---------- */
.js-reveal [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.js-reveal [data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .js-reveal [data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .mission-grid,
  .assistance-grid,
  .contact-grid { grid-template-columns: 1fr; }
  .cards-grid,
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-stripes { width: 30%; opacity: 0.5; }
}

@media (max-width: 640px) {
  .cards-grid,
  .team-grid { grid-template-columns: 1fr; }

  .nav-toggle { display: flex; }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }
  .nav-links.is-open { max-height: 400px; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 1rem 6%; width: 100%; border-top: 1px solid var(--line); }
  .nav-cta { border-radius: 0; background: transparent; color: var(--blue) !important; }

  .hero-stripes { display: none; }

  .footer-inner { flex-direction: column; text-align: center; }
}
