/* ══════════════════════════════════════════
   EPA – École Politique Africaine
   style.css
══════════════════════════════════════════ */

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

:root {
  --green:       #2d7a27;
  --green-light: #3a9932;
  --green-dark:  #1e5a1a;
  --black:       #0d0d0d;
  --dark:        #1a1a1a;
  --dark2:       #232323;
  --white:       #ffffff;
  --off-white:   #f4f5f0;
  --grey:        #6b6b6b;
  --grey-light:  #e8e8e3;
  --accent:      #3aa82f;
  --nav-h:       72px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Outfit', sans-serif;
  font-size: 16px;
  color: var(--dark);
  background: var(--white);
  line-height: 1.65;
}

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

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

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

.accent { color: var(--green); }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 6px;
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.03em;
  cursor: pointer;
  border: none;
  transition: all 0.25s ease;
}

.btn-primary {
  background: var(--green);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--green-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(45,122,39,0.35);
}

.btn-outline {
  background: transparent;
  color: var(--green);
  border: 1.5px solid var(--green);
}
.btn-outline:hover {
  background: var(--green);
  color: var(--white);
}

.btn-large { padding: 16px 40px; font-size: 16px; }

/* ── Section Header ── */
.section-header {
  text-align: center;
  margin-bottom: 52px;
}

.section-header h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 10px;
}

.section-sub {
  font-size: 15px;
  color: var(--grey);
  max-width: 560px;
  margin: 0 auto;
}

.section-title-left {
  font-family: 'Playfair Display', serif;
  font-size: clamp(26px, 3.5vw, 38px);
  font-weight: 800;
  margin-bottom: 40px;
  line-height: 1.2;
}

.green-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--green);
  margin-bottom: 12px;
}

/* ══════════════════════════════════════════
   NAVBAR
══════════════════════════════════════════ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-h);
  background: var(--dark);
  border-bottom: 2px solid var(--green-dark);
  transition: background 0.3s, box-shadow 0.3s;
}

.navbar.scrolled {
  background: rgba(13,13,13,0.97);
  box-shadow: 0 4px 30px rgba(0,0,0,0.4);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
}

.logo-box {
  color: var(--white);
  font-family: 'Playfair Display', serif;
  font-weight: 800;
  font-size: 18px;
  width: 100px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  letter-spacing: 0.05em;
  flex-shrink: 0;
}

.logo-text {
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,0.75);
  line-height: 1.3;
  max-width: 140px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  color: rgba(255,255,255,0.78);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--green);
  transform: scaleX(0);
  transition: transform 0.2s;
}

.nav-links a:hover { color: var(--white); }
.nav-links a:hover::after { transform: scaleX(1); }

.nav-links a.nav-cta {
  background: var(--green);
  color: var(--white);
  padding: 9px 22px;
  border-radius: 5px;
  font-weight: 600;
}
.nav-links a.nav-cta:hover { background: var(--green-light); }
.nav-links a.nav-cta::after { display: none; }

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ══════════════════════════════════════════
   HERO CAROUSEL
══════════════════════════════════════════ */
.hero {
  position: relative;
  overflow: hidden;
}

.hero-carousel {
  position: relative;
  width: 100%;
  height: 100vh;
}

/* Chaque slide */
.hero-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  z-index: 0;
  transition: opacity 0.9s cubic-bezier(.4,0,.2,1);
}

.hero-slide.active {
  opacity: 1;
  pointer-events: auto;
  z-index: 1;
}

/* Backgrounds des slides */
.slide-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 8s ease;
}

.hero-slide.active .slide-bg {
  transform: scale(1.04);
}

/* Slide 1 : image hero principale */
.slide-bg-1 {
  background-image: url('asset/Images/hero/h1.jpg');
  background-color: #0d1a0d;
}

/* Slide 2 */
.slide-bg-2 {
  background-image: url('asset/Images/hero/h2.jpg');
  background-color: #0a1f0a;
}

/* Slide 3 */
.slide-bg-3 {
  background-image: url('asset/Images/hero/h3.jpg');
  background-color: #071407;
}

/* Fallback gradient si pas d'image */
.slide-bg-1:not([style*="url"]) { background: linear-gradient(135deg, #0d1a0d 0%, #162416 40%, #1a3a1a 100%); }
.slide-bg-2:not([style*="url"]) { background: linear-gradient(135deg, #0a1f0a 0%, #1e3a1e 50%, #0d2a0d 100%); }
.slide-bg-3:not([style*="url"]) { background: linear-gradient(135deg, #071407 0%, #122612 50%, #1a3316 100%); }

/* Overlay sombre sur chaque slide */
.slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(0,0,0,0.75) 0%,
    rgba(0,0,0,0.45) 60%,
    rgba(0,0,0,0.2) 100%
  );
  z-index: 1;
}

.slide-content {
  position: relative;
  z-index: 2;
  padding: calc(var(--nav-h) + 60px) 24px 80px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
}

.hero-text { max-width: 560px; flex-shrink: 0; }

/* ── Image box à droite ── */
.hero-image-box {
  position: relative;
  flex-shrink: 0;
  width: 380px;
  animation: imgReveal 0.9s 0.3s cubic-bezier(.22,1,.36,1) both;
}

@keyframes imgReveal {
  from { opacity: 0; transform: translateX(40px) scale(0.96); }
  to   { opacity: 1; transform: none; }
}

.hero-img-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 4/5;
  border-radius: 16px;
  overflow: hidden;
  border: 2px solid rgba(45,122,39,0.4);
  box-shadow: 0 24px 60px rgba(0,0,0,0.5);
}

.hero-img-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform 8s ease;
}

.hero-slide.active .hero-img-frame img {
  transform: scale(1.06);
}

/* Fallback si image absente */
.hero-img-frame.img-fallback {
  background: linear-gradient(160deg, #1a3a1a 0%, #2d7a27 50%, #162416 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-img-frame.img-fallback::after {
  content: 'EPA';
  font-family: 'Playfair Display', serif;
  font-size: 64px;
  font-weight: 800;
  color: rgba(255,255,255,0.12);
  letter-spacing: 6px;
}

/* Badge en bas de l'image */
.hero-img-badge {
  position: absolute;
  bottom: 16px;
  left: 16px;
  background: rgba(0,0,0,0.65);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(45,122,39,0.4);
  border-radius: 6px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,0.85);
}
.hero-img-badge span {
  color: var(--green);
  font-weight: 700;
  margin-right: 4px;
}

/* Déco géométrique derrière le cadre */
.hero-img-deco {
  position: absolute;
  top: 20px;
  left: 20px;
  right: -20px;
  bottom: -20px;
  border: 1.5px solid rgba(45,122,39,0.2);
  border-radius: 16px;
  z-index: -1;
}

/* Slides inactives cachées */
.hero-slide:not(.active) .hero-image-box,
.hero-slide:not(.active) .hero-text {
  opacity: 0;
}

/* Animations sur slide active */
.hero-slide.active .hero-text {
  animation: slideIn 0.8s cubic-bezier(.22,1,.36,1) both;
}

.hero-slide.active .hero-image-box {
  animation: imgReveal 0.9s 0.15s cubic-bezier(.22,1,.36,1) both;
}

@keyframes slideIn {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: none; }
}

@keyframes imgReveal {
  from { opacity: 0; transform: translateX(40px) scale(0.96); }
  to   { opacity: 1; transform: none; }
}

@media (max-width: 1024px) {
  .hero-image-box { width: 300px; }
}

@media (max-width: 768px) {
  .slide-content {
    flex-direction: column;
    padding: 60px 16px 80px;
    gap: 32px;
  }
  .hero-image-box {
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
  }
  .hero-img-frame { aspect-ratio: 16/9; }
  .carousel-arrow { display: none; }
  .hero-title { font-size: 30px; }
  .hero-list li { font-size: 12px; }
}

/* Eyebrow */
.hero-eyebrow {
  display: inline-block;
  background: rgba(45,122,39,0.25);
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 3px;
  border-left: 3px solid var(--green);
  margin-bottom: 20px;
}

/* Titre */
.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(36px, 6vw, 62px);
  font-weight: 800;
  line-height: 1.1;
  color: var(--white);
  margin-bottom: 28px;
}
.hero-title .accent { color: var(--accent); }

/* Liste */
.hero-list {
  list-style: none;
  margin-bottom: 22px;
}

.hero-list li {
  font-size: 14px;
  font-weight: 600;
  color: rgba(255,255,255,0.92);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  padding: 9px 0 9px 22px;
  position: relative;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.hero-list li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--green);
  font-size: 13px;
}

/* Description */
.hero-desc {
  font-size: 15px;
  color: rgba(255,255,255,0.62);
  line-height: 1.75;
  margin-bottom: 32px;
  max-width: 520px;
}

/* ── Flèches ── */
.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: 1.5px solid rgba(255,255,255,0.18);
  color: var(--white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
  backdrop-filter: blur(6px);
}
.carousel-arrow svg { width: 20px; height: 20px; }
.carousel-arrow:hover {
  background: var(--green);
  border-color: var(--green);
  transform: translateY(-50%) scale(1.1);
}
.carousel-prev { left: 28px; }
.carousel-next { right: 28px; }

/* ── Dots ── */
.carousel-dots {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: 10px;
  align-items: center;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.28);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.3s, width 0.3s, border-radius 0.3s;
}
.dot.active {
  background: var(--green);
  width: 30px;
  border-radius: 5px;
}

/* ── Progress bar ── */
.carousel-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(255,255,255,0.08);
  z-index: 10;
}
.carousel-progress-fill {
  height: 100%;
  background: var(--green);
  width: 0%;
  transition: width linear;
}

/* ── Animation texte au changement de slide ── */
.hero-slide.active .hero-text {
  animation: slideIn 0.8s cubic-bezier(.22,1,.36,1) both;
}
@keyframes slideIn {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: none; }
}

@media (max-width: 768px) {
  .carousel-arrow { display: none; }
  .hero-list li { font-size: 12px; }
  .slide-content { padding: 60px 16px 80px; }
  .hero-title { font-size: 30px; }
}

/* ══════════════════════════════════════════
   WHAT WE DO
══════════════════════════════════════════ */
.what-we-do {
  padding: 96px 0;
  background: var(--off-white);
}

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

.card-item {
  padding: 36px 28px;
  border-radius: 12px;
  transition: transform 0.3s, box-shadow 0.3s;
}

.card-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.12);
}

.card-green {
  background: var(--green);
  color: var(--white);
}

.card-dark {
  background: var(--dark);
  color: var(--white);
}

.card-icon {
  font-size: 36px;
  margin-bottom: 18px;
}

.card-item h3 {
  font-family: 'Playfair Display', serif;
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.3;
}

.card-item p {
  font-size: 14px;
  line-height: 1.7;
  opacity: 0.88;
}

/* ── Champs de formation ── */
.champs-section {
  margin-top: 64px;
  padding-top: 48px;
  border-top: 1px solid var(--grey-light);
}

.champs-header {
  margin-bottom: 20px;
}

.champs-header h3 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(20px, 3vw, 26px);
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 10px;
}

.champs-divider {
  width: 40px;
  height: 3px;
  background: var(--green);
  border-radius: 2px;
  margin: 10px 0 20px;
}

.champs-desc {
  font-size: 15px;
  color: var(--grey);
  line-height: 1.8;
  max-width: 820px;
  margin-bottom: 8px;
}

.champs-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 4px 40px;
  margin-top: 16px;
}

.champs-list li {
  font-size: 14px;
  color: var(--dark);
  padding: 10px 0 10px 18px;
  position: relative;
  border-bottom: 1px solid var(--grey-light);
  transition: color 0.2s;
}

.champs-list li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--green);
  font-size: 16px;
  font-weight: 700;
}

.champs-list li:hover { color: var(--green); }

/* ══════════════════════════════════════════
   ABOUT
══════════════════════════════════════════ */
.about {
  padding: 96px 0;
  background: var(--dark);
  color: var(--white);
}

.about .section-title-left { color: var(--white); }

.about-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 60px;
  align-items: start;
  margin-bottom: 60px;
}

/* EPA Emblem */
.epa-emblem {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: var(--dark2);
  border: 3px solid var(--green);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  margin: 0 auto;
}

.emblem-ring {
  position: absolute;
  inset: -12px;
  border-radius: 50%;
  border: 1px dashed rgba(45,122,39,0.4);
  animation: spin 30s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.emblem-text {
  font-family: 'Playfair Display', serif;
  font-size: 42px;
  font-weight: 800;
  color: var(--green);
  line-height: 1;
}

.emblem-sub {
  font-size: 11px;
  font-weight: 500;
  color: rgba(255,255,255,0.5);
  text-align: center;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 6px;
}

.about-block h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--green);
  margin-bottom: 12px;
}

.about-block p {
  font-size: 14px;
  color: rgba(255,255,255,0.72);
  line-height: 1.75;
  margin-bottom: 16px;
}

.about-values-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 260px;
  gap: 40px;
  align-items: start;
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 48px;
}

.values-col p,
.mission-col p {
  font-size: 14px;
  color: rgba(255,255,255,0.68);
  line-height: 1.8;
}

.about-photo-placeholder {
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid rgba(45,122,39,0.3);
}

.photo-inner { width: 100%; aspect-ratio: 4/4; }
.photo-inner svg { width: 100%; height: 100%; }

/* ══════════════════════════════════════════
   FORMATIONS
══════════════════════════════════════════ */
.formations {
  padding: 96px 0;
  background: var(--white);
}

.formation-category {
  margin-bottom: 64px;
}

.cat-title {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 28px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--grey-light);
  display: flex;
  align-items: center;
  gap: 10px;
}

.cat-title .accent { font-size: 16px; }

.formation-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.formation-card {
  border: 1.5px solid var(--grey-light);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}

.formation-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.1);
  border-color: var(--green);
}

.fcard-img {
  height: 260px;
  background: var(--dark2);
  position: relative;
  overflow: hidden;
}

/* Gradient placeholders for card images */
.fcard-img-1 { background: linear-gradient(135deg, #1a3a1a 0%, #2d7a27 100%); }
.fcard-img-2 { background: linear-gradient(135deg, #162416 0%, #3a9932 100%); }
.fcard-img-3 { background: linear-gradient(135deg, #0d2a0d 0%, #2d7a27 100%); }
.fcard-img-4 { background: linear-gradient(135deg, #1a3a1a 0%, #1e5a1a 100%); }
.fcard-img-5 { background: linear-gradient(135deg, #0d1a0d 0%, #2d7a27 100%); }
.fcard-img-6 { background: linear-gradient(135deg, #162416 0%, #3a9932 100%); }

.fcard-img::after {
  content: 'EPA';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Playfair Display', serif;
  font-size: 36px;
  font-weight: 800;
  color: rgba(255,255,255,0.15);
  letter-spacing: 4px;
}

.fcard-body {
  padding: 24px;
}

.fcard-tag {
  display: inline-block;
  background: rgba(45,122,39,0.1);
  color: var(--green);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 3px;
  margin-bottom: 12px;
}

.fcard-body h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 10px;
  line-height: 1.4;
}

.fcard-body p {
  font-size: 13px;
  color: var(--grey);
  line-height: 1.7;
  margin-bottom: 20px;
}

/* Long formation */
.formation-long {
  background: var(--dark);
  border-radius: 12px;
  padding: 48px;
  border-left: 5px solid var(--green);
}

.formation-long-content h4 {
  font-family: 'Playfair Display', serif;
  font-size: 26px;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 6px;
}

.long-sub {
  display: inline-block;
  background: var(--green);
  color: var(--white);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 3px;
  margin-bottom: 24px;
}

.formation-long-content ul {
  list-style: none;
  margin-bottom: 20px;
}

.formation-long-content ul li {
  font-size: 14px;
  color: rgba(255,255,255,0.8);
  padding: 8px 0;
  padding-left: 22px;
  position: relative;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.formation-long-content ul li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--green);
}

.long-desc {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  margin-bottom: 28px;
  line-height: 1.7;
}

/* ══════════════════════════════════════════
   POURQUOI
══════════════════════════════════════════ */
.pourquoi {
  position: relative;
  padding: 100px 0;
  background: linear-gradient(160deg, #0d1a0d 0%, #162416 50%, #1a3a1a 100%);
  overflow: hidden;
}

.pourquoi-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 50%, rgba(45,122,39,0.15) 0%, transparent 70%);
  pointer-events: none;
}

.pourquoi-inner { position: relative; z-index: 2; }

.pourquoi h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  color: var(--white);
  text-align: center;
  margin-bottom: 56px;
  line-height: 1.2;
}

.pourquoi h2 span { color: var(--accent); }

.pourquoi-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.pourquoi-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 32px;
  backdrop-filter: blur(4px);
  transition: background 0.3s, border-color 0.3s, transform 0.3s;
}

.pourquoi-card:hover {
  background: rgba(45,122,39,0.12);
  border-color: rgba(45,122,39,0.4);
  transform: translateY(-4px);
}

.pourquoi-card h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 12px;
  line-height: 1.4;
}

.pourquoi-card p {
  font-size: 14px;
  color: rgba(255,255,255,0.65);
  line-height: 1.75;
}

.pourquoi-cta-card {
  background: var(--green) !important;
  border-color: var(--green) !important;
}

.pourquoi-cta-card h4 { color: var(--white); }

.pourquoi-cta-card ul {
  list-style: none;
}

.pourquoi-cta-card ul li {
  font-size: 14px;
  color: rgba(255,255,255,0.9);
  padding: 6px 0;
  font-weight: 500;
}

/* ══════════════════════════════════════════
   INSCRIPTION
══════════════════════════════════════════ */
.inscription {
  padding: 96px 0;
  background: var(--off-white);
}

.inscription-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 48px;
  margin-bottom: 48px;
}

.inscr-col h3 {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--green);
}

.inscr-list {
  list-style: none;
}

.inscr-list li {
  font-size: 14px;
  color: var(--grey);
  padding: 10px 0;
  padding-left: 24px;
  position: relative;
  border-bottom: 1px solid var(--grey-light);
  line-height: 1.6;
}

.inscr-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: 700;
}

.inscr-ordered { counter-reset: inscr; }
.inscr-ordered li { counter-increment: inscr; }
.inscr-ordered li::before {
  content: counter(inscr);
  background: var(--green);
  color: white;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  top: 12px;
}

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

/* ══════════════════════════════════════════
   CONTACT
══════════════════════════════════════════ */
.contact {
  position: relative;
  padding: 96px 0;
  background: var(--dark);
  overflow: hidden;
}

.contact-overlay {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(45,122,39,0.15) 0%, transparent 70%);
  pointer-events: none;
}

.contact-inner { position: relative; z-index: 2; }

.contact h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  color: var(--white);
  text-align: center;
  margin-bottom: 56px;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.contact-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 40px 32px;
  text-align: center;
  transition: background 0.3s, border-color 0.3s;
}

.contact-card:hover {
  background: rgba(45,122,39,0.1);
  border-color: rgba(45,122,39,0.3);
}

.contact-icon {
  color: white;
  font-size: 36px;
  margin-bottom: 16px;
}

.contact-card h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}

.contact-card p {
  font-size: 14px;
  color: rgba(255,255,255,0.65);
  line-height: 1.8;
}

/* ══════════════════════════════════════════
   NOUS ÉCRIRE
══════════════════════════════════════════ */
.nous-ecrire {
  background: var(--dark);
}

/* Map */
.map-wrapper {
  width: 100%;
  height: 300px;
  overflow: hidden;
  border-bottom: 3px solid var(--green-dark);
}

.map-wrapper iframe {
  width: 100%;
  height: 100%;
  display: block;
  filter: grayscale(20%);
}

/* Content row */
.nous-ecrire-inner {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 60px;
  max-width: 1160px;
  margin: 0 auto;
  padding: 72px 24px 80px;
}

/* Left text */
.ecrire-left h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(26px, 3.5vw, 36px);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 20px;
}

.ecrire-left p {
  font-size: 14px;
  color: rgba(255,255,255,0.62);
  line-height: 1.8;
  margin-bottom: 14px;
}

/* Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.8);
  letter-spacing: 0.03em;
}

.req { color: var(--green); margin-left: 2px; }

.form-group input,
.form-group textarea {
  background: rgba(255,255,255,0.06);
  border: 1.5px solid rgba(255,255,255,0.12);
  border-radius: 6px;
  padding: 13px 16px;
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  color: var(--white);
  outline: none;
  transition: border-color 0.25s, background 0.25s;
  resize: vertical;
}

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

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--green);
  background: rgba(45,122,39,0.08);
}

.form-group input.error,
.form-group textarea.error {
  border-color: #e74c3c;
}

.btn-full { width: 100%; justify-content: center; padding: 15px; font-size: 15px; }

.form-success {
  display: none;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--green);
  padding: 10px;
  background: rgba(45,122,39,0.1);
  border-radius: 6px;
  border: 1px solid rgba(45,122,39,0.3);
}

@media (max-width: 768px) {
  .nous-ecrire-inner {
    grid-template-columns: 1fr;
    gap: 36px;
    padding: 48px 16px 64px;
  }
  .map-wrapper { height: 220px; }
}

/* ══════════════════════════════════════════
   FOOTER
══════════════════════════════════════════ */
.footer {
  background: #080808;
  padding: 40px 0;
  border-top: 2px solid var(--green-dark);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  color: rgba(255,255,255,0.5);
  font-size: 13px;
  line-height: 1.5;
}

.footer-links {
  display: flex;
  gap: 28px;
}

.footer-links a {
  font-size: 13px;
  color: rgba(255,255,255,0.45);
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--green); }

.footer-copy {
  font-size: 12px;
  color: rgba(255,255,255,0.25);
  width: 100%;
  text-align: center;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.06);
  margin-top: 8px;
}

/* ══════════════════════════════════════════
   ANIMATIONS (scroll reveal)
══════════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* Sécurité : si JS désactivé ou observer échoue */
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; }
}

/* ══════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════ */
@media (max-width: 1024px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-values-grid { grid-template-columns: 1fr 1fr; }
  .about-photo-placeholder { display: none; }
}

@media (max-width: 768px) {
  :root { --nav-h: 64px; }

  .nav-links {
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: var(--dark);
    flex-direction: column;
    gap: 0;
    padding: 16px 0;
    transform: translateY(-110%);
    transition: transform 0.35s ease;
    border-bottom: 2px solid var(--green-dark);
  }

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

  .nav-links a {
    display: block;
    padding: 14px 24px;
    font-size: 15px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
  }

  .nav-links a.nav-cta {
    margin: 12px 24px;
    text-align: center;
    border-bottom: none;
  }

  .burger { display: flex; }

  .cards-3 { grid-template-columns: 1fr; }

  .about-values-grid { grid-template-columns: 1fr; }

  .formation-cards { grid-template-columns: 1fr; }

  .pourquoi-grid { grid-template-columns: 1fr; }

  .inscription-grid { grid-template-columns: 1fr; }

  .contact-grid { grid-template-columns: 1fr; }

  .footer-inner { flex-direction: column; text-align: center; }
  .footer-links { flex-wrap: wrap; justify-content: center; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .hero { padding-top: var(--nav-h); min-height: auto; padding-bottom: 80px; }
  .hero-title { font-size: 32px; }
  .what-we-do, .about, .formations, .pourquoi, .inscription, .contact { padding: 64px 0; }
}
/* ══════════════════════════════════════════
   À QUI S'ADRESSE EPA — GRILLE STYLÉE
══════════════════════════════════════════ */
.aqui {
  padding: 100px 0 110px;
  background: var(--dark);
  position: relative;
  overflow: hidden;
}

/* Déco fond */
.aqui-bg-deco {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 15% 50%, rgba(45,122,39,0.10) 0%, transparent 60%),
    radial-gradient(ellipse 50% 50% at 85% 80%, rgba(45,122,39,0.07) 0%, transparent 60%);
  pointer-events: none;
}

/* ── Header ── */
.aqui-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 48px;
  margin-bottom: 64px;
}

.aqui-header-left { flex-shrink: 0; }

.aqui-eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--green);
  background: rgba(45,122,39,0.12);
  border: 1px solid rgba(45,122,39,0.25);
  padding: 5px 14px;
  border-radius: 3px;
  margin-bottom: 16px;
}

.aqui-header-left h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 800;
  color: var(--white);
  line-height: 1.15;
}

.aqui-header-left h2 span { color: var(--accent); }

.aqui-intro {
  max-width: 440px;
  font-size: 15px;
  color: rgba(255,255,255,0.55);
  line-height: 1.8;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

/* ── Grille ── */
.aqui-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

/* ── Carte ── */
.aqui-card {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  cursor: pointer;

  /* Animation entrée */
  opacity: 0;
  transform: translateY(40px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease,
    border-color 0.3s,
    box-shadow 0.3s;
}

.aqui-card.aqui-visible {
  opacity: 1;
  transform: translateY(0);
}

.aqui-card:hover {
  border-color: rgba(45,122,39,0.45);
  box-shadow: 0 24px 60px rgba(0,0,0,0.4), 0 0 0 1px rgba(45,122,39,0.2);
  transform: translateY(-6px) !important;
}

/* Carte featured (plus grande) */
.aqui-card--featured {
  grid-row: span 1;
  background: rgba(45,122,39,0.07);
  border-color: rgba(45,122,39,0.2);
}

/* Bordure animée au hover */
.aqui-card-border {
  position: absolute;
  inset: 0;
  border-radius: 14px;
  border: 1.5px solid transparent;
  background: linear-gradient(135deg, rgba(45,122,39,0.5), transparent 60%) border-box;
  -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: destination-out;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}

.aqui-card:hover .aqui-card-border { opacity: 1; }

/* ── Image ── */
.aqui-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: linear-gradient(160deg, #1a3a1a, #2d7a27);
}

.aqui-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform 0.6s ease;
  filter: brightness(0.85);
}

.aqui-card:hover .aqui-img-wrap img {
  transform: scale(1.08);
  filter: brightness(1);
}

/* Shine effect au hover */
.aqui-img-shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.08) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
  pointer-events: none;
}

.aqui-card:hover .aqui-img-shine { transform: translateX(100%); }

/* Fallback sans image */
.aqui-img-wrap.no-img {
  display: flex;
  align-items: center;
  justify-content: center;
}
.aqui-img-wrap.no-img::after {
  content: 'EPA';
  font-family: 'Playfair Display', serif;
  font-size: 36px;
  font-weight: 800;
  color: rgba(255,255,255,0.15);
  letter-spacing: 4px;
}

/* ── Contenu carte ── */
.aqui-card-content {
  padding: 20px 22px 24px;
}

.aqui-num {
  font-family: 'Playfair Display', serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--green);
  margin-bottom: 10px;
  opacity: 0.8;
}

.aqui-card-content h3 {
  font-family: 'Playfair Display', serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--white);
  line-height: 1.35;
  margin-bottom: 10px;
  transition: color 0.2s;
}

.aqui-card:hover .aqui-card-content h3 { color: var(--accent); }

.aqui-card-content p {
  font-size: 13px;
  color: rgba(255,255,255,0.48);
  line-height: 1.65;
  margin-bottom: 16px;
}

/* Tags */
.aqui-tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.aqui-tag {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green);
  background: rgba(45,122,39,0.12);
  border: 1px solid rgba(45,122,39,0.2);
  padding: 3px 9px;
  border-radius: 3px;
  transition: background 0.2s, color 0.2s;
}

.aqui-card:hover .aqui-tag {
  background: rgba(45,122,39,0.25);
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .aqui-grid { grid-template-columns: repeat(2, 1fr); }
  .aqui-header { flex-direction: column; gap: 20px; }
  .aqui-intro { max-width: 100%; }
}

@media (max-width: 600px) {
  .aqui-grid { grid-template-columns: 1fr; }
  .aqui { padding: 64px 0; }
}

/* ══════════════════════════════════════════════════
   NAVBAR — lien Blog avec badge "Nouveau"
══════════════════════════════════════════════════ */
.nav-blog-link {
  position: relative;
}
.nav-blog-link::after {
  content: 'Nouveau';
  position: absolute;
  top: -9px;
  right: -8px;
  background: var(--green);
  color: #fff;
  font-size: 7px;
  font-weight: 800;
  letter-spacing: .06em;
  padding: 1px 5px;
  border-radius: 3px;
  text-transform: uppercase;
  pointer-events: none;
  line-height: 1.6;
}


/* ══════════════════════════════════════════════════
   BLOG TEASER — Section aperçu sur index.html
══════════════════════════════════════════════════ */
.blog-teaser {
  background: var(--dark);
  padding: 96px 0;
  position: relative;
  overflow: hidden;
}

.blog-teaser::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(45,122,39,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(45,122,39,.04) 1px, transparent 1px);
  background-size: 64px 64px;
  pointer-events: none;
}

.blog-teaser::after {
  content: '';
  position: absolute;
  right: -180px;
  top: 50%;
  transform: translateY(-50%);
  width: 560px;
  height: 560px;
  border-radius: 50%;
  border: 90px solid rgba(45,122,39,.05);
  pointer-events: none;
}

/* Header section */
.blog-teaser-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 44px;
  position: relative;
  z-index: 2;
}

.blog-teaser-eyebrow {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 10px;
}

.blog-teaser-left h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(26px, 3.5vw, 42px);
  font-weight: 800;
  color: #fff;
  line-height: 1.15;
  margin: 0;
}

.blog-teaser-all {
  white-space: nowrap;
  border-color: rgba(255,255,255,.2) !important;
  color: rgba(255,255,255,.75) !important;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.blog-teaser-all:hover {
  border-color: var(--green) !important;
  color: #fff !important;
  background: transparent !important;
}

/* Grille 2 colonnes : featured + secondaires */
.blog-teaser-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  position: relative;
  z-index: 2;
  margin-bottom: 44px;
}

/* ── Carte commune ── */
.bt-card {
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  transition: transform .3s ease, box-shadow .3s ease;
  display: flex;
  flex-direction: column;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.07);
}
.bt-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 28px 64px rgba(0,0,0,.35);
  border-color: rgba(45,122,39,.25);
}

/* Image featured */
.bt-card-img {
  width: 100%;
  aspect-ratio: 16/9;
  position: relative;
  overflow: hidden;
}
.bt-card-img-fallback {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.bt-card-pattern {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 24px 24px;
}
.bt-card-letter {
  position: relative; z-index: 1;
  font-family: 'Playfair Display', serif;
  font-size: 72px; font-weight: 900;
  color: rgba(255,255,255,.1);
  letter-spacing: .05em;
}
.bt-card-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.55) 0%, transparent 60%);
}

/* Corps featured */
.bt-card--featured .bt-card-body {
  padding: 24px 26px 22px;
  display: flex; flex-direction: column; flex: 1;
}

.bt-card-meta {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 12px; flex-wrap: wrap;
}

.bt-badge {
  font-size: 9.5px; font-weight: 800;
  letter-spacing: .12em; text-transform: uppercase;
  padding: 3px 10px; border-radius: 4px;
  background: var(--green); color: #fff;
}
.bt-badge--tribune { background: #7a3d10; }
.bt-badge--leader  { background: #10407a; }

.bt-date { font-size: 11.5px; color: rgba(255,255,255,.38); }
.bt-pin  {
  margin-left: auto;
  font-size: 11px; font-weight: 700; color: var(--accent);
  display: flex; align-items: center; gap: 4px;
}

.bt-card--featured h3 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(15px, 1.7vw, 21px);
  font-weight: 800; color: #fff; line-height: 1.3;
  margin-bottom: 10px; transition: color .2s;
}
.bt-card--featured:hover h3 { color: var(--accent); }

.bt-card--featured p {
  font-size: 13.5px; color: rgba(255,255,255,.45);
  line-height: 1.75; margin-bottom: 20px; flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}

.bt-author {
  display: flex; align-items: center; gap: 10px;
}
.bt-av {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--green);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; color: #fff; flex-shrink: 0;
}
.bt-author-name { font-size: 12.5px; font-weight: 600; color: rgba(255,255,255,.78); }
.bt-author-role { font-size: 11px; color: rgba(255,255,255,.35); }
.bt-read {
  margin-left: auto;
  font-size: 12.5px; font-weight: 700; color: var(--accent);
  display: flex; align-items: center; gap: 5px; white-space: nowrap;
  transition: gap .2s;
}
.bt-card:hover .bt-read { gap: 9px; }

/* ── Cartes secondaires ── */
.bt-secondary {
  display: flex; flex-direction: column; gap: 14px;
}
.bt-card--small {
  display: grid;
  grid-template-columns: 90px 1fr;
  align-items: stretch;
  min-height: 90px;
}
.bt-small-img {
  flex-shrink: 0; overflow: hidden;
}
.bt-card-fallback-sm {
  width: 100%; height: 100%; position: relative;
}
.bt-card--small .bt-card-body {
  padding: 14px 16px;
  display: flex; flex-direction: column; justify-content: space-between;
}
.bt-card--small h3 {
  font-family: 'Playfair Display', serif;
  font-size: 13.5px; font-weight: 700; color: #fff;
  line-height: 1.35; margin-bottom: 8px; transition: color .2s;
  display: -webkit-box;
  -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.bt-card--small:hover h3 { color: var(--accent); }
.bt-card--small .bt-author { gap: 7px; }
.bt-card--small .bt-author-name { font-size: 12px; flex: 1; }

/* CTA bas de section */
.blog-teaser-cta {
  text-align: center;
  position: relative; z-index: 2;
}

/* Responsive */
@media (max-width: 900px) {
  .blog-teaser-grid { grid-template-columns: 1fr; }
  .blog-teaser-header { flex-direction: column; align-items: flex-start; }
  .blog-teaser-all { align-self: flex-start; }
}
@media (max-width: 600px) {
  .blog-teaser { padding: 64px 0; }
  .bt-card--small { grid-template-columns: 72px 1fr; }
}