﻿/* =====================================================
   VARIABLES & RESET
===================================================== */
:root {
  --primary:       #D4AF37;
  --primary-dark:  #b38f2c;
  --primary-light: #f0d875;
  --dark:          #111;
  --darker:        #000;
  --bg:            #fff;
  --text:          #3a3a3a;
  --text-light:    #666;
  --light-gray:    #f5f3ee;
  --gray:          #e0e0e0;
  --shadow:        0 8px 32px rgba(0, 0, 0, 0.08);
  --shadow-hover:  0 20px 48px rgba(0, 0, 0, 0.14);
  --radius:        16px;
  --radius-lg:     24px;
  /* FIX: remplacement des anciennes variables manquantes --primary-color / --text-color */
  --font-display:  'Cormorant Garamond', Georgia, serif;
  --font-body:     'Jost', sans-serif;
  --transition:    0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.7;
  overflow-x: hidden;
}

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

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

/* =====================================================
   ACCESSIBILITÉ — Skip link
===================================================== */
.skip-link {
  position: absolute;
  top: -60px;
  left: 16px;
  background: var(--primary);
  color: var(--darker);
  padding: 10px 20px;
  border-radius: 0 0 8px 8px;
  z-index: 9999;
  font-weight: 600;
  transition: top 0.3s;
}
.skip-link:focus {
  top: 0;
}

/* =====================================================
   HEADER & NAVIGATION
===================================================== */
header {
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: background var(--transition), box-shadow var(--transition);
}

header.scrolled {
  background: rgba(0, 0, 0, 0.94);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 8%;
  color: white;
  gap: 20px;
}

/* Logo — lettres individuelles colorées */
.logo {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 700;
  letter-spacing: 4px;
  line-height: 1;
  flex-shrink: 0;
}
.logo-f { color: var(--primary); }
.logo-h { color: white; }
.logo-a { color: var(--primary-light); }

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
}

.nav-links a {
  color: rgba(255,255,255,0.85);
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  position: relative;
  transition: color var(--transition);
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--primary);
  transition: width var(--transition);
}

.nav-links a:hover,
.nav-links a:focus {
  color: white;
}
.nav-links a:hover::after,
.nav-links a:focus::after {
  width: 100%;
}

.don-btn {
  background: var(--primary);
  padding: 10px 22px;
  border-radius: 50px;
  color: #000;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  flex-shrink: 0;
  border: 2px solid var(--primary);
}

.don-btn:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(212, 175, 55, 0.4);
}

/* Burger menu — FIX: remplace l'icône FA par des lignes CSS pures */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1100;
}

.burger-line {
  display: block;
  width: 26px;
  height: 2px;
  background: white;
  border-radius: 2px;
  transition: all var(--transition);
}

/* =====================================================
   HERO SECTION
===================================================== */
.hero {
  height: 100vh;
  min-height: 600px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  overflow: hidden;
}

/* FIX: slider maintenant correctement ordonné avant les media queries */
.hero-slider {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Évite l'impression "zone scindée" quand l'image a beaucoup de vide à gauche */
  object-position: 70% center;
  opacity: 0;
  transition: opacity 1.8s ease-in-out;
}

.hero-slide.active {
  opacity: 1;
}

/* Overlay en dégradé élégant */
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(to top, rgba(0,0,0,0.75) 0%, transparent 60%),
    linear-gradient(135deg, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0.3) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 0 20px;
  /* FIX: animation fadeInUp maintenant réellement appliquée */
  animation: fadeInUp 1.2s ease both;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-badge {
  display: inline-block;
  background: rgba(212, 175, 55, 0.2);
  border: 1px solid rgba(212, 175, 55, 0.5);
  color: var(--primary-light);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 6px 18px;
  border-radius: 50px;
  margin-bottom: 24px;
  animation: fadeInUp 1.2s 0.2s ease both;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(38px, 6vw, 72px);
  font-weight: 600;
  line-height: 1.15;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
  animation: fadeInUp 1.2s 0.35s ease both;
}

.hero h1 em {
  color: var(--primary);
  font-style: italic;
}

.hero p {
  font-size: clamp(16px, 2vw, 20px);
  margin-bottom: 40px;
  opacity: 0.9;
  font-weight: 300;
  animation: fadeInUp 1.2s 0.5s ease both;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 1.2s 0.65s ease both;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 30px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  transition: all var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
}

.btn-outline {
  border-color: rgba(255,255,255,0.7);
  color: white;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(4px);
}
.btn-outline:hover {
  background: white;
  color: var(--darker);
  border-color: white;
  transform: translateY(-2px);
}

.btn-gold {
  background: var(--primary);
  border-color: var(--primary);
  color: #000;
}
.btn-gold:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(212, 175, 55, 0.45);
}

/* Dots navigation hero */
.hero-dots {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 3;
}

.hero-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  padding: 0;
}
.hero-dot.active {
  background: var(--primary);
  width: 24px;
  border-radius: 4px;
}
.hero-dot:hover {
  background: rgba(255, 255, 255, 0.8);
}

/* Scroll hint */
.hero-scroll-hint {
  position: absolute;
  bottom: 36px;
  right: 8%;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero-scroll-hint span {
  display: block;
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, rgba(212,175,55,0.8), transparent);
  animation: scrollLine 2s ease-in-out infinite;
}
@keyframes scrollLine {
  0%   { transform: scaleY(0); transform-origin: top; opacity: 1; }
  50%  { transform: scaleY(1); transform-origin: top; }
  100% { transform: scaleY(0); transform-origin: bottom; opacity: 0; }
}

/* =====================================================
   SECTIONS — LAYOUT COMMUN
===================================================== */
section {
  padding: 110px 8%;
}

.section-label {
  text-align: center;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 12px;
}
.section-label.light {
  color: var(--primary-light);
}

h2 {
  font-family: var(--font-display);
  text-align: center;
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 600;
  margin-bottom: 64px;
  color: var(--darker);
  letter-spacing: -0.5px;
}

h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--primary);
  margin: 16px auto 0;
  border-radius: 2px;
}

/* =====================================================
   ABOUT SECTION
===================================================== */
.about {
  background: var(--bg);
}

.about-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-text p {
  margin-bottom: 20px;
  font-size: 1rem;
  line-height: 1.9;
  color: var(--text);
}

.about-text strong {
  color: var(--darker);
}

.btn-text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary-dark);
  font-weight: 600;
  font-size: 0.9rem;
  margin-top: 10px;
  transition: gap var(--transition), color var(--transition);
}
.btn-text-link:hover {
  color: var(--primary);
  gap: 14px;
}

.about-image {
  position: relative;
}

.about-image-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-hover);
  aspect-ratio: 4/3;
}
.about-image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--transition);
}
.about-image-frame:hover img {
  transform: scale(1.04);
}

.about-image-badge {
  position: absolute;
  bottom: -20px;
  left: -20px;
  background: var(--primary);
  color: #000;
  border-radius: var(--radius);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  font-weight: 700;
  box-shadow: 0 8px 24px rgba(212, 175, 55, 0.4);
  line-height: 1.4;
}
.about-image-badge i {
  font-size: 1.4rem;
}

/* =====================================================
   PROJECTS SECTION
===================================================== */
.projects {
  background: var(--light-gray);
}

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

/* FIX: animation d'entrée au scroll */
.project-card,
.value-card,
.team-card,
.video-card,
.impact-item {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease, box-shadow var(--transition), transform var(--transition);
}
.project-card.visible,
.value-card.visible,
.team-card.visible,
.video-card.visible,
.impact-item.visible {
  opacity: 1;
  transform: translateY(0);
}

.about-container {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.about-container.visible {
  opacity: 1;
  transform: translateY(0);
}

.project-card {
  background: white;
  padding: 40px 28px 32px;
  border-radius: var(--radius-lg);
  text-align: center;
  box-shadow: var(--shadow);
  border: 1px solid rgba(0,0,0,0.04);
  cursor: default;
}

.project-card:hover {
  transform: translateY(-8px) !important;
  box-shadow: var(--shadow-hover);
}

.project-icon-wrap {
  width: 72px;
  height: 72px;
  background: linear-gradient(135deg, rgba(212,175,55,0.15), rgba(212,175,55,0.05));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  transition: background var(--transition);
}
.project-card:hover .project-icon-wrap {
  background: linear-gradient(135deg, rgba(212,175,55,0.3), rgba(212,175,55,0.1));
}
.project-icon-wrap i {
  font-size: 30px;
  color: var(--primary);
}

.project-card h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--darker);
}

.project-card p {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 20px;
}

.project-tag {
  display: inline-block;
  background: rgba(212,175,55,0.12);
  color: var(--primary-dark);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 50px;
}

/* =====================================================
   VALUES SECTION
===================================================== */
.values {
  background: white;
}

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

.value-card {
  background: var(--light-gray);
  padding: 40px 28px;
  border-radius: var(--radius-lg);
  text-align: center;
  box-shadow: var(--shadow);
  border: 1px solid rgba(0,0,0,0.04);
}

.value-card:hover {
  transform: translateY(-6px) !important;
  box-shadow: var(--shadow-hover);
}

.value-icon-wrap {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 22px;
}
.value-icon-wrap i {
  font-size: 26px;
  color: white;
}

.value-card h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--darker);
}

.value-card p {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.7;
}

/* =====================================================
   TEAM SECTION
===================================================== */
.team {
  background: var(--light-gray);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 28px;
<<<<<<< HEAD
  align-items: stretch;
=======
>>>>>>> 15604660e84b2675c4cdaeb7dd96bca84e7b2f5f
}

.team-card {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid rgba(0,0,0,0.04);
<<<<<<< HEAD
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
=======
>>>>>>> 15604660e84b2675c4cdaeb7dd96bca84e7b2f5f
}

.team-card:hover {
  transform: translateY(-6px) !important;
  box-shadow: var(--shadow-hover);
}

.team-img-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/5;
}

.team-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.team-card:hover .team-img-wrap img {
  transform: scale(1.06);
}

.team-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.55) 0%, transparent 60%);
  opacity: 0;
  display: flex;
  align-items: flex-end;
  padding: 20px;
  transition: opacity var(--transition);
}
.team-overlay i {
  color: var(--primary);
  font-size: 1.5rem;
}
.team-card:hover .team-overlay {
  opacity: 1;
}

.team-info {
  padding: 18px 18px 20px;
<<<<<<< HEAD
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 8px;
=======
>>>>>>> 15604660e84b2675c4cdaeb7dd96bca84e7b2f5f
}
.team-info h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--darker);
<<<<<<< HEAD
  margin-bottom: 0;
  line-height: 1.2;
=======
  margin-bottom: 4px;
>>>>>>> 15604660e84b2675c4cdaeb7dd96bca84e7b2f5f
}
.team-info p {
  font-size: 0.85rem;
  color: var(--text-light);
<<<<<<< HEAD
  margin-top: auto;
  line-height: 1.65;
=======
>>>>>>> 15604660e84b2675c4cdaeb7dd96bca84e7b2f5f
}

/* =====================================================
   ACTIONS SECTION
===================================================== */
.actions {
  background: white;
}

.video-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
  max-width: 1100px;
  margin: 0 auto;
}

.video-card {
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.05);
}

.video-card:hover {
  transform: translateY(-6px) !important;
  box-shadow: var(--shadow-hover);
}

.video-wrapper {
  position: relative;
  overflow: hidden;
  background: #000;
}
.video-wrapper video {
  width: 100%;
  height: auto;
  display: block;
  max-height: 280px;
  object-fit: cover;
}

.video-info {
  padding: 24px;
}

.video-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(212,175,55,0.12);
  color: var(--primary-dark);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 50px;
  margin-bottom: 12px;
}

/* FIX: --primary-color et --text-color remplacés par les vraies variables */
.video-info h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--darker);
  margin-bottom: 10px;
  line-height: 1.4;
}

.video-info p {
  font-size: 0.88rem;
  color: var(--text-light);
  line-height: 1.65;
}

/* =====================================================
   IMPACT SECTION
===================================================== */
.impact {
  background: linear-gradient(135deg, #0e0e0e 0%, #1c1a0f 50%, #0e0e0e 100%);
  color: white;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.impact::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 60% at 50% 50%, rgba(212,175,55,0.07) 0%, transparent 70%);
  pointer-events: none;
}

.impact h2 {
  color: white;
}
.impact h2::after {
  background: var(--primary);
}

.impact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 40px;
  margin-top: 20px;
  position: relative;
  z-index: 1;
}

.impact-item {
  padding: 24px 16px;
}

.impact-icon {
  width: 56px;
  height: 56px;
  border: 1px solid rgba(212,175,55,0.35);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}
.impact-icon i {
  font-size: 22px;
  color: var(--primary);
}

.counter {
  font-family: var(--font-display);
  font-size: clamp(40px, 5vw, 60px);
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
  line-height: 1;
}

.impact-grid p {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  opacity: 0.7;
}

/* =====================================================
   CONTACT SECTION
===================================================== */
.contact {
  background: var(--light-gray);
}

.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 70px;
  align-items: start;
  max-width: 1000px;
  margin: 0 auto;
}

.contact-info h3 {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 38px);
  font-weight: 600;
  line-height: 1.3;
  color: var(--darker);
  margin-bottom: 20px;
}
.contact-info h3 em {
  color: var(--primary-dark);
  font-style: italic;
}

.contact-info > p {
  font-size: 0.95rem;
  color: var(--text-light);
  line-height: 1.8;
  margin-bottom: 28px;
}

.contact-details {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 28px;
}
.contact-details li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
  color: var(--text);
}
.contact-details li i {
  color: var(--primary);
  width: 20px;
  text-align: center;
}

.contact-socials {
  display: flex;
  gap: 12px;
}

.social-link {
  width: 42px;
  height: 42px;
  border: 1.5px solid var(--gray);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-size: 1rem;
  transition: all var(--transition);
}
.social-link:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #000;
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(212, 175, 55, 0.35);
}

/* Formulaire */
#contact-form {
  background: white;
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 20px;
  border: 1px solid rgba(0,0,0,0.05);
}

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

.contact label {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--darker);
}

input, textarea {
  font-family: var(--font-body);
  padding: 14px 16px;
  border: 1.5px solid var(--gray);
  border-radius: 10px;
  font-size: 0.95rem;
  color: var(--text);
  background: var(--bg);
  transition: border-color var(--transition), box-shadow var(--transition);
  resize: vertical;
}

input:focus, textarea:focus {
  border-color: var(--primary);
  outline: none;
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15);
}

.form-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--primary);
  border: none;
  padding: 15px 30px;
  border-radius: 50px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #000;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  align-self: flex-start;
}
.form-submit:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(212, 175, 55, 0.4);
}
.form-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

#form-message {
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  text-align: center;
  display: none;
}
#form-message.success {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}
#form-message.error {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}
#form-message.info {
  background: #fff3cd;
  color: #856404;
  border: 1px solid #ffeeba;
}

/* =====================================================
   FOOTER
===================================================== */
footer {
  background: #050505;
  color: white;
  padding: 50px 8%;
  border-top: 1px solid rgba(212,175,55,0.2);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 700;
  letter-spacing: 6px;
  color: var(--primary);
}

footer p {
  font-size: 0.82rem;
  opacity: 0.5;
  letter-spacing: 0.5px;
}

.socials {
  display: flex;
  gap: 12px;
}

/* =====================================================
   SCROLL-TO-TOP BUTTON
===================================================== */
#scrollTop {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: var(--primary);
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 16px;
  color: #000;
  z-index: 99;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity var(--transition), transform var(--transition), background var(--transition), box-shadow var(--transition);
  box-shadow: 0 4px 16px rgba(212,175,55,0.35);
}

/* FIX: utilisation de .visible au lieu de style.display inline */
#scrollTop.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

#scrollTop:hover {
  background: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(212,175,55,0.5);
}

/* =====================================================
   MENU TOGGLE — MOBILE
===================================================== */
.menu-toggle {
  display: none;
}

/* =====================================================
   RESPONSIVE — TABLETTE
===================================================== */
@media (max-width: 1024px) {
  .navbar {
    padding: 14px 5%;
  }
  .nav-links {
    gap: 18px;
  }
  .about-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .about-image-badge {
    bottom: -16px;
    left: 16px;
  }
  .contact-wrapper {
    grid-template-columns: 1fr;
    gap: 50px;
  }
  .contact-info {
    text-align: center;
  }
  .contact-socials {
    justify-content: center;
  }
  .contact-details li {
    justify-content: center;
  }
}

/* =====================================================
   RESPONSIVE — MOBILE
===================================================== */
@media (max-width: 768px) {
  /* Sur mobile, on recentre pour éviter un cadrage trop agressif */
  .hero-slide {
    object-position: center;
  }

  .navbar {
    padding: 14px 5%;
    flex-wrap: wrap;
  }

  .menu-toggle {
    display: flex;
    order: 3;
  }

  .don-btn {
    display: none;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.97);
    justify-content: center;
    align-items: center;
    gap: 28px;
    backdrop-filter: blur(12px);
    border-top: 2px solid var(--primary);
    z-index: 1050;
    padding-top: 60px;
  }

  .nav-links.show {
    display: flex;
  }

  .nav-links a {
    font-size: 1.1rem;
    letter-spacing: 1.5px;
  }

  section {
    padding: 80px 5%;
  }

  .hero h1 {
    font-size: 34px;
  }
  .hero p {
    font-size: 1rem;
  }
  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }
  .btn {
    width: 220px;
    justify-content: center;
  }

  h2 {
    font-size: 28px;
    margin-bottom: 44px;
  }

  .counter {
    font-size: 40px;
  }

  #contact-form {
    padding: 28px 20px;
  }

  .form-submit {
    align-self: stretch;
    text-align: center;
  }

  .hero-scroll-hint {
    display: none;
  }

  .about-image-badge {
    position: static;
    margin-top: 16px;
    align-self: flex-start;
  }
}


/* =====================================================
   ABOUT — PHOTO STRIP
===================================================== */
.about-photo-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 60px;
}

.strip-item {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 4/3;
  box-shadow: 0 6px 20px rgba(0,0,0,0.10);
}

.strip-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s ease;
}

.strip-item:hover img {
  transform: scale(1.06);
}

.strip-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.65), transparent);
  color: white;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 22px 14px 12px;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.strip-item:hover .strip-label {
  opacity: 1;
}

/* =====================================================
   PROJECTS — CARDS WITH IMAGE
===================================================== */
.project-card {
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  border: 1px solid rgba(0,0,0,0.04);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  cursor: default;
  padding: 0;
}

.project-card-img {
  position: relative;
  overflow: hidden;
  height: 200px;
}

.project-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.project-card:hover .project-card-img img {
  transform: scale(1.07);
}

.project-card-body {
  padding: 28px 24px 26px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex: 1;
}

/* Réajustement icone dans la nouvelle structure */
.project-card .project-icon-wrap {
  margin: -36px auto 18px;
  position: relative;
  z-index: 2;
  background: white;
  border: 3px solid var(--light-gray);
  box-shadow: 0 4px 16px rgba(212,175,55,0.2);
  width: 68px;
  height: 68px;
}

.project-card:hover .project-icon-wrap {
  background: linear-gradient(135deg, rgba(212,175,55,0.15), rgba(212,175,55,0.05));
  border-color: rgba(212,175,55,0.35);
}

/* =====================================================
   VALUES — VISUAL BANNER
===================================================== */
.values-visual {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 260px;
  margin-bottom: 60px;
  box-shadow: var(--shadow-hover);
}

.values-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}

.values-visual-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,0,0,0.72) 0%, rgba(0,0,0,0.3) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.values-visual-overlay blockquote {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.5vw, 2rem);
  font-style: italic;
  color: white;
  text-align: center;
  padding: 0 8%;
  line-height: 1.5;
  letter-spacing: 0.3px;
}

.values-visual-overlay blockquote::before {
  content: '\201C';
  font-size: 3em;
  line-height: 0;
  vertical-align: -0.5em;
  color: var(--primary);
  margin-right: 6px;
}

/* =====================================================
   TEAM — ORGANIGRAMME BUREAU EXÉCUTIF
===================================================== */

/* Bloc organisationnel */
.org-block {
  margin-bottom: 72px;
<<<<<<< HEAD
  padding: 28px;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(255,255,255,0.9));
  border: 1px solid rgba(17, 17, 17, 0.05);
  box-shadow: 0 18px 44px rgba(17, 17, 17, 0.06);
=======
>>>>>>> 15604660e84b2675c4cdaeb7dd96bca84e7b2f5f
}

.org-block-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  font-weight: 600;
  color: var(--darker);
  margin-bottom: 36px;
  padding-bottom: 14px;
  border-bottom: 2px solid rgba(212,175,55,0.25);
}
.org-block-title i {
  color: var(--primary);
  font-size: 1.3rem;
}

.org-block-subtitle {
  text-align: center;
  color: var(--text-light);
  font-size: 0.95rem;
  margin-top: -20px;
  margin-bottom: 36px;
  font-style: italic;
}

/* Grille bureau exécutif — 3 colonnes, wrap naturel en 2-3 lignes */
.exec-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* Fondateur — bordure or distinctive */
.team-card--founder {
  border: 2px solid var(--primary) !important;
  box-shadow: 0 12px 36px rgba(212,175,55,0.2) !important;
}
.team-card--founder .team-badge {
  background: var(--primary);
  color: #000;
}



/* Badge de fonction */
.team-badge {
  display: inline-block;
  background: rgba(212,175,55,0.12);
  color: var(--primary-dark);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  padding: 3px 12px;
  border-radius: 50px;
  margin-bottom: 6px;
}
.team-badge--community {
  background: rgba(34,139,34,0.1);
  color: #2d7a2d;
}
.team-badge--intl {
  background: rgba(30,100,200,0.1);
  color: #1b5ab8;
}

/* Grille communautaire (4 colonnes) */
.team-grid--community {
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

/* =====================================================
   REPRÉSENTATIONS INTERNATIONALES
===================================================== */
.team-grid--international {
<<<<<<< HEAD
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.team-card--international {
  border: 1px solid rgba(16, 43, 89, 0.12);
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.country-flag-bar {
  background: linear-gradient(135deg, #102e57, #1c4e8f);
  color: white;
  padding: 12px 16px;
  font-size: 0.78rem;
=======
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.team-card--international {
  border-top: 3px solid rgba(30,100,200,0.3);
}

.country-flag-bar {
  background: linear-gradient(135deg, #0f1f3d, #1b3a6e);
  color: white;
  padding: 10px 16px;
  font-size: 0.82rem;
>>>>>>> 15604660e84b2675c4cdaeb7dd96bca84e7b2f5f
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
<<<<<<< HEAD
  gap: 10px;
  min-height: 58px;
}

.country-name {
  line-height: 1.35;
}

.country-flag {
  position: relative;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  flex: 0 0 28px;
  overflow: hidden;
  border: 2px solid rgba(255,255,255,0.75);
  box-shadow: 0 4px 10px rgba(0,0,0,0.18);
}

.country-flag--ci {
  background: linear-gradient(90deg, #f77f00 0 33.33%, #ffffff 33.33% 66.66%, #1f8b4c 66.66% 100%);
}

.country-flag--cm {
  background: linear-gradient(90deg, #157347 0 33.33%, #d11f2a 33.33% 66.66%, #f4c430 66.66% 100%);
}

.country-flag--cm::after {
  content: "";
  position: absolute;
  inset: 10px;
  background: #f4c430;
  clip-path: polygon(50% 0%, 61% 36%, 100% 36%, 68% 58%, 79% 100%, 50% 74%, 21% 100%, 32% 58%, 0% 36%, 39% 36%);
}

.country-flag--cd {
  background:
    linear-gradient(145deg, transparent 0 41%, #f7d046 41% 47%, #d62d3a 47% 55%, #f7d046 55% 61%, transparent 61%),
    #1996d3;
}

.country-flag--bj {
  background:
    linear-gradient(90deg, #1d7b44 0 42%, transparent 42% 100%),
    linear-gradient(180deg, #f6d54a 0 50%, #c62f30 50% 100%);
}

.country-flag--ma {
  background: #c1272d;
}

.country-flag--ma::after {
  content: "";
  position: absolute;
  inset: 8px;
  border: 2px solid #147a45;
  transform: rotate(18deg);
  clip-path: polygon(50% 0%, 61% 38%, 100% 38%, 68% 60%, 79% 100%, 50% 76%, 21% 100%, 32% 60%, 0% 38%, 39% 38%);
=======
  gap: 8px;
}
.country-flag-bar i {
  color: var(--primary);
>>>>>>> 15604660e84b2675c4cdaeb7dd96bca84e7b2f5f
}

/* Placeholder photo */
.team-img-wrap--placeholder {
  aspect-ratio: 4/5;
<<<<<<< HEAD
  background: linear-gradient(135deg, #eef3f8, #e4ebf4);
=======
  background: linear-gradient(135deg, #f0ede5, #e8e4d8);
>>>>>>> 15604660e84b2675c4cdaeb7dd96bca84e7b2f5f
  display: flex;
  align-items: center;
  justify-content: center;
}

.photo-placeholder {
<<<<<<< HEAD
  width: 100%;
  height: 100%;
=======
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: rgba(0,0,0,0.3);
}
.photo-placeholder i {
  font-size: 2.5rem;
}
.photo-placeholder span {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.placeholder-name {
  color: rgba(0,0,0,0.35) !important;
  font-style: italic;
}
.placeholder-post {
  color: rgba(0,0,0,0.25) !important;
  font-style: italic;
  font-size: 0.8rem !important;
>>>>>>> 15604660e84b2675c4cdaeb7dd96bca84e7b2f5f
}

/* =====================================================
   BÉNÉVOLES — GRANDES IMAGES EN BAS
===================================================== */
.benevoles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 28px;
}

.team-card--benevole {
  border: none;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-hover);
}

.team-img-wrap--benevole {
  aspect-ratio: 16/9;
  min-height: 320px;
}

.team-card--benevole .team-info {
  background: linear-gradient(135deg, #111, #1c1a0f);
  color: white;
  padding: 24px 28px;
}
.team-card--benevole .team-info h3 {
  color: var(--primary);
  font-family: var(--font-display);
  font-size: 1.3rem;
  margin-bottom: 6px;
}
.team-card--benevole .team-info p {
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
}

/* =====================================================
   RESPONSIVE — TEAM ORGANIGRAMME
===================================================== */
@media (max-width: 1024px) {
  .exec-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
  }
  .benevoles-grid {
    grid-template-columns: 1fr;
  }
<<<<<<< HEAD
  .org-block {
    padding: 24px;
  }
=======
>>>>>>> 15604660e84b2675c4cdaeb7dd96bca84e7b2f5f
  .team-img-wrap--benevole {
    min-height: 260px;
  }
}

@media (max-width: 768px) {
  .exec-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
<<<<<<< HEAD
  .team-grid--international {
    grid-template-columns: 1fr;
  }
  .org-block-title {
    font-size: 1.15rem;
  }
  .org-block {
    padding: 20px;
    margin-bottom: 48px;
  }
=======
  .org-block-title {
    font-size: 1.15rem;
  }
>>>>>>> 15604660e84b2675c4cdaeb7dd96bca84e7b2f5f
}

@media (max-width: 480px) {
  .exec-grid {
<<<<<<< HEAD
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .country-flag-bar {
    padding: 12px 14px;
  }
=======
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
>>>>>>> 15604660e84b2675c4cdaeb7dd96bca84e7b2f5f
}



.team-cta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-hover);
  margin-top: 60px;
}

.team-cta-img {
  position: relative;
  min-height: 320px;
}

.team-cta-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-cta-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,0,0,0.45), transparent);
}

.team-cta-content {
  background: linear-gradient(145deg, #0e0e0e, #1c1a0f);
  padding: 50px 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: white;
}

.team-cta-content h3 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.5vw, 2.4rem);
  font-weight: 600;
  color: white;
  margin-bottom: 16px;
  line-height: 1.2;
}

.team-cta-content p {
  color: rgba(255,255,255,0.75);
  font-size: 0.95rem;
  line-height: 1.8;
}

/* =====================================================
   ACTIONS — PHOTO GALLERY
===================================================== */
.actions-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(2, 200px);
  gap: 12px;
  margin-bottom: 60px;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.gallery-item {
  position: relative;
  overflow: hidden;
}

.gallery-item.gallery-wide {
  grid-column: span 2;
  grid-row: span 2;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s ease;
  display: block;
}

.gallery-item:hover img {
  transform: scale(1.07);
}

.gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px 16px 14px;
  background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
  color: white;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 6px;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.gallery-item:hover .gallery-caption {
  opacity: 1;
  transform: translateY(0);
}

.gallery-caption i {
  color: var(--primary);
}

/* =====================================================
   IMPACT — BACKGROUND IMAGE
===================================================== */
.impact {
  position: relative;
}

.impact-bg-img {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.impact-bg-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: brightness(0.18) saturate(0.5);
}

.impact-inner {
  position: relative;
  z-index: 1;
}

/* =====================================================
   CONTACT — BANNER IMAGE
===================================================== */
.contact-banner {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 200px;
  margin-bottom: 60px;
  box-shadow: var(--shadow);
}

.contact-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

.contact-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,0,0,0.72), rgba(0,0,0,0.35));
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-banner-overlay p {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.1rem, 2vw, 1.6rem);
  color: white;
  text-align: center;
  padding: 0 8%;
  letter-spacing: 0.3px;
}

/* =====================================================
   FOOTER — TAGLINE
===================================================== */
.footer-tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.05rem !important;
  color: rgba(212,175,55,0.7) !important;
  opacity: 1 !important;
  letter-spacing: 0.5px;
}

/* =====================================================
   RESPONSIVE — NOUVELLES SECTIONS
===================================================== */
@media (max-width: 1024px) {
  .about-photo-strip {
    grid-template-columns: repeat(2, 1fr);
  }
  .team-cta {
    grid-template-columns: 1fr;
  }
  .team-cta-img {
    min-height: 240px;
  }
  .actions-gallery {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto;
  }
  .gallery-item.gallery-wide {
    grid-column: span 2;
    grid-row: span 1;
    height: 240px;
  }
  .gallery-item {
    height: 180px;
  }
}

@media (max-width: 768px) {
  .about-photo-strip {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: 40px;
  }
  .values-visual {
    height: 180px;
    margin-bottom: 44px;
  }
  .values-visual-overlay blockquote {
    font-size: 1.1rem;
  }
  .team-cta-content {
    padding: 36px 28px;
  }
  .actions-gallery {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .gallery-item.gallery-wide {
    height: 200px;
  }
  .gallery-item {
    height: 140px;
  }
  .contact-banner {
    height: 140px;
    margin-bottom: 44px;
  }
  .contact-banner-overlay p {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .about-photo-strip {
    grid-template-columns: 1fr 1fr;
  }
  .actions-gallery {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }
  .gallery-item.gallery-wide {
    grid-column: span 1;
    height: 200px;
  }
  .gallery-item {
    height: 160px;
  }
}
