/* ===================================================================
   RIANATOU ALASSANE — Portfolio premium
   Typographies : Bebas Neue (Titres principaux), Montserrat (Sous-titres/Boutons), Poppins (Corps)
   Design : Blanc dominant, noir structurant, vert émeraude signature
=================================================================== */

/* Import des polices Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Montserrat:wght@600;700&family=Poppins:wght@300;400;500;600&display=swap');

:root {
  --white: #FFFFFF;
  --off-white: #FAFAFA;
  --black: #111111;
  --black-soft: #1A1A1A;
  --green: #0F9D58;
  --green-soft: #5C8D6B;
  --green-tint: #E6F4EC;

  /* Nouvelles typographies */
  --font-display: "Bebas Neue", sans-serif; /* Titres H1, H2, Logo, Eyebrow */
  --font-heading: "Montserrat", sans-serif;  /* H3, H4, Boutons, Badges (Bold) */
  --font-body: "Poppins", sans-serif;        /* Paragraphes, liens, UI */

  --radius: 14px;
  --radius-sm: 8px;
  --shadow-soft: 0 10px 40px rgba(17, 17, 17, 0.06);
  --shadow-card: 0 4px 24px rgba(17, 17, 17, 0.05);

  --maxw: 1200px;
  --gap: 24px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  background: var(--white);
  color: var(--black);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* --- TYPOGRAPHIE --- */
h1, h2 {
  font-family: var(--font-display);
  font-weight: 400; /* Bebas Neue n'a qu'un seul poids */
  line-height: 1.05;
  margin: 0 0 0.5em;
  color: var(--black);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700; /* Montserrat Bold */
  line-height: 1.2;
  margin: 0 0 0.5em;
  color: var(--black-soft);
}

p { margin: 0 0 1.2em; color: #444; }
a { color: inherit; text-decoration: none; transition: color 0.2s ease; }
img, video { max-width: 100%; height: auto; display: block; object-fit: cover; }
ul { list-style: none; margin: 0; padding: 0; }
button { font-family: var(--font-heading); cursor: pointer; border: none; background: none; padding: 0; }

:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; border-radius: 4px; }

/* --- LAYOUT --- */
.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px; /* Padding mobile par défaut */
}

@media (min-width: 768px) {
  .container { padding: 0 32px; }
}

section { padding: 64px 0; }

@media (min-width: 768px) {
  section { padding: 96px 0; }
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 16px;
}

.section-head { 
  max-width: 760px; 
  margin: 0 auto 48px auto; 
  text-align: center; 
}

.section-head .eyebrow {
  display: inline-block;
  margin-left: auto;
  margin-right: auto;
}

.section-head h2 { font-size: clamp(32px, 6vw, 48px); }
.section-head p { font-size: clamp(16px, 2vw, 18px); color: #555; }

/* --- BUTTONS --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 100px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  border: 2px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  min-height: 48px; /* Touch target mobile */
}

.btn-primary { background: var(--green); color: var(--white); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(15, 157, 88, 0.3); }

.btn-outline { border-color: var(--black); color: var(--black); }
.btn-outline:hover { background: var(--black); color: var(--white); }

.btn-outline-light { border-color: rgba(255, 255, 255, 0.5); color: var(--white); }
.btn-outline-light:hover { background: var(--white); color: var(--black); }

/* --- NAVBAR --- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid rgba(17, 17, 17, 0.06);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  max-width: var(--maxw);
  margin: 0 auto;
}

.logo {
  font-family: var(--font-display);
  font-size: 24px;
  letter-spacing: 0.05em;
  color: var(--black);
}

.nav-links {
  display: none; /* Caché sur mobile par défaut */
}

.nav-cta .btn-primary { display: none; } /* Caché sur mobile pour gagner de la place */

.nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: 0;
  padding: 8px;
  z-index: 101;
}

.nav-toggle span {
  display: block;
  width: 26px;
  height: 2.5px;
  background: var(--black);
  border-radius: 2px;
  transition: 0.3s ease;
}

/* Menu Mobile Ouvert
   NB : le script bascule la classe "active" (pas "open") sur #nav-links,
   on aligne donc le sélecteur CSS sur la classe réellement posée en JS. */
.nav-links.active {
  display: flex;
  position: fixed;
  inset: 70px 0 0 0;
  background: var(--white);
  flex-direction: column;
  align-items: flex-start;
  padding: 32px 24px;
  gap: 0;
  animation: slideIn 0.3s ease forwards;
}

.nav-links.active a {
  padding: 16px 0;
  width: 100%;
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  border-bottom: 1px solid #eee;
  color: var(--black);
}

.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(6px, 6px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(6px, -6px); }

@keyframes slideIn { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }

/* Desktop Nav */
@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
  }
  .nav-links a {
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 500;
    color: var(--black-soft);
    position: relative;
  }
  .nav-links a::after {
    content: "";
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--green);
    transition: width 0.3s ease;
  }
  .nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
  .nav-cta .btn-primary { display: inline-flex; }
}

/* --- HERO --- */
.hero { padding: 48px 0 64px; }

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}

.hero h1 { font-size: clamp(36px, 8vw, 64px); letter-spacing: 0.02em; }
.hero .lead { font-family: var(--font-heading); font-size: clamp(18px, 3vw, 22px); font-weight: 600; color: var(--black-soft); }
.hero .desc { font-size: 16px; color: #555; max-width: 480px; }
.hero-actions { display: flex; gap: 16px; margin-top: 28px; flex-wrap: wrap; }

.photo-frame {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/5;
  background: linear-gradient(160deg, var(--green-tint), var(--off-white));
  box-shadow: var(--shadow-soft);
}

.photo-frame img { width: 100%; height: 100%; object-fit: cover; }

/* Boutons qui enveloppent les images cliquables (déclencheurs du popover
   d'agrandissement) : ils doivent occuper tout l'espace de l'image sans
   ajouter de bordure/padding visibles. */
.photo-frame button,
.card-img button {
  display: block;
  width: 100%;
  height: 100%;
  cursor: zoom-in;
}

.floating-tag {
  position: absolute;
  background: var(--white);
  border-radius: 100px;
  padding: 8px 16px;
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 700;
  box-shadow: var(--shadow-card);
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.floating-tag::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.tag-1 { top: 8%; left: -5%; }
.tag-2 { bottom: 15%; right: -5%; }
.tag-3 { bottom: -5%; left: 15%; }

@media (max-width: 768px) {
  .floating-tag { position: static; margin: 8px 8px 0 0; display: inline-flex; transform: none !important; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
}

/* --- STAT BAR --- */
.stat-bar { background: var(--black); color: var(--white); padding: 40px 0; }
.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  text-align: center;
}

.stat-grid div span {
  display: block;
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: 0.05em;
  color: var(--green-soft);
}

.stat-grid div strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  margin-top: 4px;
}

@media (min-width: 768px) {
  .stat-grid { grid-template-columns: repeat(4, 1fr); }
}

/* --- CARDS & GRIDS --- */
.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(17, 17, 17, 0.05);
  padding: 24px;
  text-align: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-soft); }

.card-img {
  border-radius: var(--radius-sm);
  aspect-ratio: 16/10;
  margin-bottom: 20px;
  overflow: hidden;
  background: linear-gradient(140deg, #eef7f0, var(--off-white));
}

.card-img img, .card-img video { width: 100%; height: 100%; object-fit: cover; }

.badge {
  display: inline-block;
  background: var(--green-tint);
  color: var(--green);
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 14px;
}

.link-arrow {
  color: var(--green);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 14px;
  display: inline-flex;
  gap: 6px;
  margin-top: 8px;
}

.grid-2, .grid-3, .grid-4 {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap);
}

@media (min-width: 640px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

/* --- VIDEO BLOCK --- */
.video-block {
  position: relative;
  aspect-ratio: 16/9;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--black);
}

.video-block video, .video-block img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  color: var(--white);
  cursor: pointer;
  z-index: 2;
  transition: transform 0.2s ease, background 0.2s ease, opacity 0.3s ease;
}

.play-btn:hover { transform: translate(-50%, -50%) scale(1.1); background: #0d8a4d; }

.video-block.playing .play-btn {
  opacity: 0;
  pointer-events: none;
}

.video-block.playing .video-label {
  opacity: 0;
  pointer-events: none;
}

.video-label {
  position: absolute;
  top: 16px;
  left: 16px;
  font-family: var(--font-heading);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: rgba(0, 0, 0, 0.6);
  color: var(--white);
  padding: 6px 14px;
  border-radius: 100px;
  backdrop-filter: blur(4px);
  z-index: 2;
  transition: opacity 0.3s ease;
}

/* --- ÉVÉNEMENTIEL (DARK) --- */
.section-dark { background: var(--black); color: var(--white); }
.section-dark p { color: #cfcfcf; }
.section-dark .eyebrow { color: var(--green-soft); }

.event-hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}

.event-hero-grid h2 { color: var(--white); font-size: clamp(32px, 6vw, 52px); }

.event-photo {
  aspect-ratio: 4/5;
  border-radius: var(--radius);
  overflow: hidden;
  background: #1a1a1a;
}

.event-photo video { width: 100%; height: 100%; object-fit: cover; }

.card-dark {
  background: #181818;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--white);
  padding: 24px;
  border-radius: var(--radius);
  text-align: center;
  transition: transform 0.25s ease;
}

.card-dark:hover { transform: translateY(-4px); }
.card-dark h3 { color: var(--white); font-size: 18px; margin-bottom: 8px; }
.card-dark p { color: #bdbdbd; font-size: 14px; margin: 0; }

/* Galerie */
.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-auto-rows: 150px;
  gap: 12px;
  margin-top: 24px;
}

.gallery button {
  border: none;
  padding: 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #222;
  position: relative;
  cursor: pointer;
}

.gallery button img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.gallery button:hover img { transform: scale(1.05); }

.gallery button span {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 12px;
  background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 700;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery button:hover span { opacity: 1; }

@media (min-width: 768px) {
  .gallery { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 120px; }
  .gallery button:nth-child(1) { grid-column: span 2; grid-row: span 2; }
  .gallery button:nth-child(4) { grid-row: span 2; }
  .gallery button:nth-child(7) { grid-column: span 2; }
}

/* Accordion */
.accordion-item { border-bottom: 1px solid rgba(255, 255, 255, 0.12); }

.accordion-trigger {
  width: 100%;
  background: none;
  border: none;
  color: var(--white);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  text-align: left;
}

.accordion-trigger .plus { color: var(--green); font-size: 24px; transition: transform 0.3s ease; }
.accordion-trigger[aria-expanded="true"] .plus { transform: rotate(45deg); }

.accordion-panel { max-height: 0; overflow: hidden; transition: max-height 0.4s ease; }

.accordion-panel-inner {
  display: grid;
  grid-template-columns: 1fr; /* Mobile: 1 colonne */
  gap: 16px;
  padding: 0 0 24px;
}

.accordion-panel-inner div span {
  display: block;
  font-family: var(--font-heading);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #8f8f8f;
  margin-bottom: 4px;
}

.accordion-panel-inner div strong { color: var(--white); font-size: 15px; }
.accordion-panel-inner .result strong { color: var(--green); font-size: 18px; }

@media (min-width: 768px) {
  .accordion-panel-inner { grid-template-columns: repeat(3, 1fr); }
}

/* --- ENGAGEMENT (Timeline) --- */
.leader-line {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 40px auto;
  max-width: 620px;
  align-items: center;
  text-align: center;
}

.leader-step {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 16px 0;
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--black-soft);
}

.leader-step .dot { width: 12px; height: 12px; border-radius: 50%; background: var(--green); flex-shrink: 0; }
.leader-connector { width: 2px; height: 24px; background: var(--green-tint); margin: 0 auto; }

.leader-highlight {
  background: var(--green);
  color: var(--white);
  padding: 24px;
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-size: clamp(20px, 4vw, 28px);
  letter-spacing: 0.05em;
  text-align: center;
  margin-top: 8px;
  width: 100%;
}

.flow { display: flex; align-items: center; gap: 12px; margin-top: 22px; flex-wrap: wrap; }
.flow .step {
  background: var(--green-tint);
  color: var(--green);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.03em;
  padding: 8px 16px;
  border-radius: 100px;
  text-transform: uppercase;
}
.flow .arrow { color: var(--green-soft); font-size: 18px; }

/* --- À PROPOS --- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: start;
}

.vtimeline {
  border-left: 2px solid var(--green-tint);
  padding-left: 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 24px;
}

.vtimeline li { position: relative; }
.vtimeline li::before {
  content: "";
  position: absolute;
  left: -31px;
  top: 6px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--green);
}

.vtimeline li strong { display: block; font-family: var(--font-heading); font-size: 16px; font-weight: 700; }
.vtimeline li span { font-size: 14px; color: #666; }

.skill-bar { margin-bottom: 20px; }
.skill-bar .label {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 8px;
}

.skill-track { height: 8px; background: #eee; border-radius: 100px; overflow: hidden; }
.skill-fill { height: 100%; background: var(--green); border-radius: 100px; transition: width 1s ease-out; }

/* --- TESTIMONIALS --- */
.testi-wrap { position: relative; max-width: 760px; margin: 0 auto; text-align: center; }
.testi-slide { display: none; animation: fadeIn 0.5s ease; }
.testi-slide.active { display: block; }

.testi-slide p {
  font-family: var(--font-display);
  font-size: clamp(22px, 4vw, 32px);
  color: var(--white);
  line-height: 1.3;
  letter-spacing: 0.02em;
}

.testi-meta strong { display: block; color: var(--white); margin-top: 24px; font-family: var(--font-heading); }
.testi-meta span { color: var(--green-soft); font-size: 14px; }

.testi-nav { display: flex; justify-content: center; gap: 16px; margin-top: 32px; }
.testi-nav button {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: none;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  transition: all 0.2s ease;
}

.testi-nav button:hover { background: var(--green); border-color: var(--green); }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* --- PARTENAIRES --- */
.partners-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  align-items: center;
  margin-top: 24px;
}

.partner-logo {
  flex: 1 1 140px;
  text-align: center;
  padding: 16px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 14px;
  color: #999;
  border: 1px dashed #e2e2e2;
  border-radius: var(--radius-sm);
  transition: 0.25s;
}

.partner-logo:hover { color: var(--green); border-color: var(--green); background: var(--green-tint); }

/* --- CTA FINAL --- */
.cta-final {
  background: var(--green);
  text-align: center;
  padding: 80px 20px;
}

.cta-final h2 { color: var(--white); font-size: clamp(28px, 5vw, 48px); }
.cta-final p { color: rgba(255, 255, 255, 0.9); font-size: 18px; max-width: 560px; margin: 0 auto 28px; }
.cta-final .btn-outline-light { border-color: var(--white); color: var(--white); }
.cta-final .btn-outline-light:hover { background: var(--white); color: var(--green); }

/* --- CONTACT --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
}

.contact-info a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  font-family: var(--font-heading);
  font-weight: 600;
  border-bottom: 1px solid #eee;
  font-size: 16px;
}

.socials { 
  display: flex; 
  gap: 12px; 
  margin-top: 24px; 
}

.socials a {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid #e2e2e2;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
  transition: all 0.2s ease;
}

.socials a svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.socials a:hover { 
  background: var(--green); 
  border-color: var(--green); 
  color: var(--white); 
  transform: translateY(-3px); 
}
.form-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
.form-grid .full { grid-column: 1 / -1; }

label {
  display: block;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--black-soft);
}

input, textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border: 1.5px solid #e4e4e4;
  font-family: var(--font-body);
  font-size: 15px;
  background: var(--off-white);
  transition: border-color 0.2s, box-shadow 0.2s;
  min-height: 48px; /* Touch target */
}

input:focus, textarea:focus {
  border-color: var(--green);
  outline: none;
  box-shadow: 0 0 0 3px rgba(15, 157, 88, 0.1);
}

textarea { resize: vertical; min-height: 140px; }
.hp-field { position: absolute; left: -9999px; top: -9999px; }

.form-status { margin-top: 16px; font-family: var(--font-heading); font-size: 14px; font-weight: 700; }
.form-status.ok { color: var(--green); }
.form-status.err { color: #c0392b; }

@media (min-width: 768px) {
  .form-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 0.9fr 1.1fr; gap: 64px; }
  .about-grid { grid-template-columns: 0.8fr 1.2fr; gap: 56px; }
  .hero-grid { grid-template-columns: 1.1fr 0.9fr; gap: 56px; }
  .event-hero-grid { grid-template-columns: 1.1fr 0.9fr; gap: 56px; }
}

/* --- FOOTER --- */
footer { background: var(--black); color: #aaa; padding: 56px 0 28px; }

.footer-top {
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-top .logo { color: var(--white); font-size: 28px; }
.footer-tag { color: var(--green-soft); font-size: 14px; margin-top: 8px; font-family: var(--font-heading); }

.footer-links { display: flex; flex-wrap: wrap; gap: 24px; }
.footer-links a { font-family: var(--font-body); font-size: 14px; transition: color 0.2s; }
.footer-links a:hover { color: var(--white); }

.footer-bottom { padding-top: 28px; font-size: 13px; text-align: center; color: #666; }

@media (min-width: 768px) {
  .footer-top { flex-direction: row; justify-content: space-between; align-items: flex-start; }
}

/* --- LIGHTBOX (agrandissement d'image) ---
   Le HTML utilise désormais le popover natif du navigateur
   (attributs popover / popovertarget, sans JS ni classe .open).
   On stylise donc directement les éléments [popover] plutôt que
   l'ancien système .lightbox/.lightbox-content/.lightbox-close. */
[popover] {
  position: fixed;
  inset: 0;
  margin: auto;
  width: auto;
  height: auto;
  max-width: min(92vw, 900px);
  max-height: 90vh;
  padding: 0;
  border: none;
  background: transparent;
  border-radius: var(--radius);
  overflow: visible;
}

[popover]::backdrop {
  background: rgba(10, 10, 10, 0.9);
  backdrop-filter: blur(6px);
}

[popover] img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 90vh;
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

[popover] button {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(17, 17, 17, 0.55);
  color: var(--white);
  font-size: 20px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
  transition: background 0.2s ease, transform 0.2s ease;
}

[popover] button:hover { background: var(--green); transform: scale(1.06); }

/* --- ANIMATIONS --- */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1); }
.reveal.in { opacity: 1; transform: translateY(0); }

.mb-0 { margin-bottom: 0; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* --- FAQ SECTION --- */
.faq-section {
  background: var(--off-white);
  border-top: 1px solid rgba(17, 17, 17, 0.05);
  border-bottom: 1px solid rgba(17, 17, 17, 0.05);
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 860px;
  margin: 0 auto;
}

.faq-item {
  background: var(--white);
  border: 1px solid rgba(17, 17, 17, 0.06);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.faq-item:hover {
  border-color: rgba(15, 157, 88, 0.3);
  box-shadow: var(--shadow-soft);
}

.faq-item.active {
  border-color: var(--green);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 26px;
  background: none;
  border: none;
  text-align: left;
  font-family: var(--font-heading);
  font-size: clamp(16px, 2.2vw, 18px);
  font-weight: 700;
  color: var(--black-soft);
  cursor: pointer;
  transition: color 0.2s ease;
}

.faq-question:hover {
  color: var(--green);
}

.faq-icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--green-tint);
  color: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  transition: transform 0.3s ease, background 0.3s ease, color 0.3s ease;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
  background: var(--green);
  color: var(--white);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1), padding 0.3s ease;
  padding: 0 26px;
}

.faq-item.active .faq-answer {
  padding: 0 26px 24px;
}

.faq-answer p {
  margin: 0;
  font-size: 15px;
  line-height: 1.7;
  color: #555;
}

.faq-answer p + p {
  margin-top: 10px;
}

/* --- FORM RGPD CONSENT --- */
.form-consent {
  grid-column: 1 / -1;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 8px 0;
}

.form-consent input[type="checkbox"] {
  width: 18px;
  height: 18px;
  min-height: 18px;
  margin-top: 3px;
  cursor: pointer;
  accent-color: var(--green);
  border-radius: 4px;
  flex-shrink: 0;
}

.form-consent label {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 400;
  color: #666;
  margin: 0;
  line-height: 1.5;
  cursor: pointer;
}

.form-consent label a {
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 600;
}

.form-consent label a:hover {
  color: var(--black);
}

/* --- LEGAL MODALS (RGPD & CGU) --- */
.legal-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 10, 0.7);
  backdrop-filter: blur(8px);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.legal-modal-backdrop.open {
  opacity: 1;
  visibility: visible;
}

.legal-modal {
  background: var(--white);
  border-radius: var(--radius);
  max-width: 780px;
  width: 100%;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
  transform: translateY(20px) scale(0.98);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.legal-modal-backdrop.open .legal-modal {
  transform: translateY(0) scale(1);
}

.legal-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 28px;
  border-bottom: 1px solid rgba(17, 17, 17, 0.08);
  background: var(--off-white);
}

.legal-modal-header h2 {
  font-size: 24px;
  margin: 0;
  letter-spacing: 0.03em;
  color: var(--black);
}

.legal-modal-close {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #eee;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  color: var(--black);
  cursor: pointer;
  transition: background 0.2s, color 0.2s, transform 0.2s;
}

.legal-modal-close:hover {
  background: var(--green);
  color: var(--white);
  transform: rotate(90deg);
}

.legal-modal-body {
  padding: 28px;
  overflow-y: auto;
  font-size: 14.5px;
  line-height: 1.75;
  color: #444;
}

.legal-modal-body h3 {
  font-size: 17px;
  margin: 24px 0 10px;
  color: var(--black-soft);
  border-left: 3px solid var(--green);
  padding-left: 10px;
}

.legal-modal-body h3:first-child {
  margin-top: 0;
}

.legal-modal-body p {
  margin-bottom: 14px;
}

.legal-modal-body ul {
  list-style: disc;
  padding-left: 20px;
  margin-bottom: 16px;
}

.legal-modal-body li {
  margin-bottom: 6px;
}

.legal-modal-footer {
  padding: 16px 28px;
  border-top: 1px solid rgba(17, 17, 17, 0.08);
  display: flex;
  justify-content: flex-end;
  background: var(--off-white);
}

/* Privacy micro-badge */
.privacy-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(15, 157, 88, 0.1);
  color: var(--green);
  border-radius: 100px;
  padding: 6px 14px;
  font-family: var(--font-heading);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.03em;
  margin-top: 14px;
}

.privacy-badge::before {
  content: "✓";
  font-weight: bold;
}

/* --- STANDALONE LEGAL PAGES --- */
.legal-page-header {
  padding: 48px 0 24px;
  border-bottom: 1px solid #eee;
  background: var(--off-white);
}

.legal-page-content {
  padding: 56px 0 80px;
  max-width: 860px;
  margin: 0 auto;
}

.legal-page-content h2 {
  margin-top: 40px;
  font-size: 28px;
  border-bottom: 2px solid var(--green-tint);
  padding-bottom: 8px;
}

.legal-page-content h3 {
  margin-top: 24px;
  font-size: 19px;
  color: var(--black-soft);
}

.legal-page-content ul {
  list-style: disc;
  padding-left: 24px;
  margin-bottom: 20px;
}

.legal-page-content li {
  margin-bottom: 8px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  color: var(--green);
  margin-bottom: 20px;
}

.back-link:hover {
  text-decoration: underline;
}