/* ==========================================================================
   AFEVEDDI-RDC - SYSTEME DE DESIGN ET STYLE REFONTE
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. VARIABLES & PALETTE DE COULEURS
   -------------------------------------------------------------------------- */
:root {
  /* Primary NGO Colors - Forest Teal & Vibrant Coral/Orange */
  --hero-bg: #0a1f1c;
  --hero-bg-deep: #061513;
  --hero-card-bg: #0f2e29;
  
  --primary-orange: #ff5733;
  --primary-orange-hover: #e04825;
  --orange-light: #fff0ed;
  --orange-glow: rgba(255, 87, 51, 0.25);

  --teal-dark: #0b2521;
  --teal-medium: #143b35;
  --teal-light: #e8f3f1;

  --bg-body: #ffffff;
  --bg-surface: #ffffff;
  --bg-subtle: #f8faf9;
  --bg-card: #ffffff;

  --text-main: #111827;
  --text-muted: #4b5563;
  --text-light: #9ca3af;
  --text-white: #ffffff;

  --border-color: #e5e7eb;
  --border-dashed: #d1d5db;

  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 16px 32px rgba(0, 0, 0, 0.12);
  --shadow-orange: 0 8px 25px rgba(255, 87, 51, 0.3);

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 9999px;

  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;

  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] {
  --bg-body: #071210;
  --bg-surface: #0d1e1b;
  --bg-subtle: #091714;
  --bg-card: #112622;

  --text-main: #f3f4f6;
  --text-muted: #9ca3af;
  --text-light: #6b7280;

  --border-color: #1f3833;
  --border-dashed: #2a4a44;

  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 16px 32px rgba(0, 0, 0, 0.4);
}

/* --------------------------------------------------------------------------
   2. REINITIALISATION & STYLES DE BASE
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-body);
  color: var(--text-main);
  line-height: 1.6;
  font-size: 1rem;
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

ul {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-main);
}

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* --------------------------------------------------------------------------
   3. EN-TETES (HEADER STICKY & UNIFIE)
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: var(--hero-bg);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: var(--transition);
}

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

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

.brand-logo img {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  border: 2px solid var(--primary-orange);
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.2rem;
  color: #ffffff;
  letter-spacing: -0.01em;
}

.brand-sub {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 500;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav-link {
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
  padding: 0.5rem 0;
}

.nav-link:hover, .nav-link.active {
  color: var(--primary-orange);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background-color: var(--primary-orange);
  transition: var(--transition);
  border-radius: 2px;
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

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

.theme-toggle-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.theme-toggle-btn:hover {
  background: var(--primary-orange);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: #ffffff;
  font-size: 1.5rem;
  cursor: pointer;
}

/* --------------------------------------------------------------------------
   4. BOUTONS SPECIAUX & ACCENTS
   -------------------------------------------------------------------------- */
.btn-orange {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  background-color: var(--primary-orange);
  color: #ffffff;
  font-weight: 600;
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius-pill);
  border: 2px solid var(--primary-orange);
  cursor: pointer;
  box-shadow: var(--shadow-orange);
  transition: var(--transition);
}

.btn-orange:hover {
  background-color: var(--primary-orange-hover);
  border-color: var(--primary-orange-hover);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(255, 87, 51, 0.4);
}

.btn-outline-white {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  background: transparent;
  color: #ffffff;
  font-weight: 600;
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius-pill);
  border: 2px solid rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: var(--transition);
}

.btn-outline-white:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: #ffffff;
  transform: translateY(-2px);
}

/* Tag style hand-written accent */
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary-orange);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.section-tag::before {
  content: '—';
  font-weight: 700;
}

/* --------------------------------------------------------------------------
   5. HERO SECTION (AVEC EFFET PAPIER DECHIRE ET DOODLES)
   -------------------------------------------------------------------------- */
.hero-section {
  position: relative;
  background: radial-gradient(circle at top right, #113630 0%, var(--hero-bg) 60%);
  color: #ffffff;
  padding: 4rem 0 7rem 0;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3.5rem;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-content {
  position: relative;
}

.hero-subtag {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--primary-orange);
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
}

.hero-subtag i {
  font-size: 0.85rem;
}

.hero-title {
  font-size: clamp(2.4rem, 4.5vw, 3.8rem);
  font-weight: 800;
  color: #ffffff;
  line-height: 1.15;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.hero-title span {
  color: #ffffff;
  position: relative;
  display: inline-block;
}

.hero-desc {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 2.25rem;
  max-width: 580px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  position: relative;
}

/* Curved Arrow Doodle in Hero */
.hero-doodle-arrow {
  position: absolute;
  right: -40px;
  bottom: -45px;
  width: 90px;
  pointer-events: none;
  opacity: 0.85;
}

/* Heart Doodles background */
.doodle-heart {
  position: absolute;
  color: var(--primary-orange);
  pointer-events: none;
  opacity: 0.7;
  animation: floatHeart 4s ease-in-out infinite alternate;
}

.doodle-heart-1 {
  top: 10%;
  left: 45%;
  font-size: 1.5rem;
}

.doodle-heart-2 {
  top: 25%;
  left: 2%;
  font-size: 1.2rem;
  animation-delay: 1.5s;
}

@keyframes floatHeart {
  0% { transform: translateY(0) rotate(0deg); }
  100% { transform: translateY(-10px) rotate(12deg); }
}

/* Hero Visual Box with Ripped Paper Cutout & B&W Photo */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-torn-photo-container {
  position: relative;
  width: 100%;
  max-width: 490px;
  margin: 0 auto;
  filter: drop-shadow(0 20px 35px rgba(0, 0, 0, 0.7));
}

.hero-torn-orange-border {
  position: absolute;
  inset: -9px;
  background-color: var(--primary-orange);
  clip-path: polygon(
    4% 2%, 26% 0%, 52% 3%, 76% 1%, 96% 4%, 100% 22%, 95% 42%, 100% 62%, 93% 82%, 99% 97%,
    79% 93%, 58% 99%, 38% 93%, 19% 98%, 3% 92%, 0% 74%, 6% 48%, 1% 24%
  );
  z-index: 1;
}

.hero-torn-photo-mask {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 480px;
  background-color: #061513;
  clip-path: polygon(
    5% 3%, 25% 1%, 51% 4%, 75% 2%, 95% 5%, 99% 21%, 94% 41%, 99% 61%, 92% 81%, 98% 96%,
    78% 92%, 57% 98%, 37% 92%, 18% 97%, 4% 91%, 1% 73%, 7% 47%, 2% 25%
  );
  overflow: hidden;
}

.hero-photo-bw {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%) contrast(1.2) brightness(0.95);
  transition: transform 0.6s ease, filter 0.6s ease;
}

.hero-torn-photo-container:hover .hero-photo-bw {
  transform: scale(1.05);
  filter: grayscale(100%) contrast(1.25) brightness(1.02);
}

/* Side Scroll Down Indicator */
.hero-scroll-down {
  position: absolute;
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%) rotate(90deg);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
}

.hero-scroll-down i {
  transform: rotate(-90deg);
  color: var(--primary-orange);
}

/* Bottom Torn Paper Edge Divider (SVG) */
.hero-torn-divider {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
  z-index: 5;
}

.hero-torn-divider svg {
  position: relative;
  display: block;
  width: calc(100% + 1.3px);
  height: 65px;
}

.hero-torn-divider .shape-fill {
  fill: var(--bg-body);
}

/* --------------------------------------------------------------------------
   6. SECTION "QUI SOMMES-NOUS" (WHO WE ARE - COLLAGE & ONGLET)
   -------------------------------------------------------------------------- */
.about-section {
  padding: 5.5rem 0;
  position: relative;
  background-color: var(--bg-body);
}

.about-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 4rem;
  align-items: center;
}

/* Collage Visual on Left */
.about-collage {
  position: relative;
  min-height: 480px;
}

.collage-main-img {
  width: 78%;
  height: 380px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 5px solid var(--bg-card);
}

.collage-secondary-wrapper {
  position: absolute;
  top: -20px;
  right: 0;
  width: 55%;
  height: 270px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 4px solid var(--primary-orange);
}

.collage-secondary-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.collage-badge-card {
  position: absolute;
  bottom: 10px;
  left: 30px;
  background-color: var(--teal-dark);
  color: #ffffff;
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  max-width: 250px;
  border-left: 5px solid var(--primary-orange);
}

.badge-card-number {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.1;
  margin-bottom: 0.25rem;
}

.badge-card-text {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 0.75rem;
}

.badge-card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary-orange);
}

.badge-card-link:hover {
  text-decoration: underline;
}

/* Content on Right */
.about-content {
  position: relative;
}

.about-title {
  font-size: clamp(2rem, 3.2vw, 2.75rem);
  font-weight: 800;
  margin-bottom: 1.25rem;
  letter-spacing: -0.01em;
}

.about-lead {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  line-height: 1.7;
}

/* Tabs System */
.tab-navigation {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 0.75rem;
  flex-wrap: wrap;
}

.tab-btn {
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-muted);
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  cursor: pointer;
  transition: var(--transition);
}

.tab-btn:hover {
  color: var(--text-main);
  background: var(--border-color);
}

.tab-btn.active {
  background-color: var(--primary-orange);
  color: #ffffff;
  border-color: var(--primary-orange);
  box-shadow: var(--shadow-orange);
}

.tab-pane {
  display: none;
  animation: fadeIn 0.4s ease forwards;
}

.tab-pane.active {
  display: block;
}

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

.highlight-banner {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background-color: var(--orange-light);
  border-left: 4px solid var(--primary-orange);
  padding: 1.15rem 1.25rem;
  border-radius: var(--radius-sm);
  margin-bottom: 2rem;
}

[data-theme="dark"] .highlight-banner {
  background-color: rgba(255, 87, 51, 0.12);
}

.highlight-banner i {
  color: var(--primary-orange);
  font-size: 1.25rem;
  margin-top: 0.15rem;
}

.highlight-banner p {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.5;
}

/* Dashed Feature Boxes Grid */
.feature-boxes-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-bottom: 2.25rem;
}

.feature-box-dashed {
  border: 2px dashed var(--border-dashed);
  padding: 1.25rem;
  border-radius: var(--radius-md);
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  transition: var(--transition);
  background: var(--bg-card);
}

.feature-box-dashed:hover {
  border-color: var(--primary-orange);
  box-shadow: var(--shadow-md);
}

.feature-icon-wrapper {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--orange-light);
  color: var(--primary-orange);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
}

[data-theme="dark"] .feature-icon-wrapper {
  background: rgba(255, 87, 51, 0.2);
}

.feature-box-info h4 {
  font-size: 1.05rem;
  margin-bottom: 0.25rem;
}

.feature-box-info p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* Callout Row: Button + Phone */
.about-cta-row {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.phone-callout {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.phone-icon-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: var(--teal-dark);
  color: var(--primary-orange);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: var(--shadow-sm);
}

.phone-text span {
  display: block;
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 600;
}

.phone-text strong {
  font-size: 1.05rem;
  color: var(--text-main);
  font-family: var(--font-heading);
}

/* Decorative double heart doodle bottom right */
.decorative-hearts {
  position: absolute;
  right: -10px;
  bottom: -20px;
  color: var(--primary-orange);
  opacity: 0.4;
  font-size: 3.5rem;
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   7. SECTION "NOS DOMAINES / CAUSES POPULAIRES"
   -------------------------------------------------------------------------- */
.causes-section {
  padding: 5.5rem 0;
  background-color: var(--bg-subtle);
  position: relative;
}

.section-header-center {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 3.5rem auto;
}

.section-header-center h2 {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 800;
  margin-top: 0.5rem;
}

.causes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 2rem;
}

.cause-card {
  background-color: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.cause-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-orange);
}

.cause-image-box {
  position: relative;
  height: 230px;
  overflow: hidden;
}

.cause-image-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.cause-card:hover .cause-image-box img {
  transform: scale(1.06);
}

.cause-category-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background-color: var(--primary-orange);
  color: #ffffff;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-pill);
  box-shadow: 0 4px 12px rgba(255, 87, 51, 0.4);
}

.cause-body {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.cause-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.cause-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

/* Impact Progress bar & stats */
.cause-progress-wrapper {
  margin-top: auto;
  margin-bottom: 1.5rem;
}

.progress-info {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--text-main);
}

.progress-bar-bg {
  width: 100%;
  height: 8px;
  background-color: var(--border-color);
  border-radius: var(--radius-pill);
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary-orange) 0%, #ff8c00 100%);
  border-radius: var(--radius-pill);
  transition: width 1s ease-in-out;
}

.cause-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-color);
}

.cause-stat {
  display: flex;
  flex-direction: column;
}

.cause-stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 600;
}

.cause-stat-val {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-main);
}

.btn-card-donate {
  padding: 0.6rem 1.2rem;
  font-size: 0.875rem;
  border-radius: var(--radius-pill);
  background: var(--teal-light);
  color: var(--teal-dark);
  font-weight: 700;
  transition: var(--transition);
}

[data-theme="dark"] .btn-card-donate {
  background: rgba(20, 59, 53, 0.6);
  color: #ffffff;
}

.btn-card-donate:hover {
  background-color: var(--primary-orange);
  color: #ffffff;
  box-shadow: var(--shadow-orange);
}

/* --------------------------------------------------------------------------
   8. OBJECTIFS SPECIFIQUES & STRATEGIES CLES
   -------------------------------------------------------------------------- */
.features-section {
  padding: 5.5rem 0;
  background-color: var(--bg-body);
}

.objectives-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.75rem;
}

.obj-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 2rem;
  border-radius: var(--radius-md);
  position: relative;
  transition: var(--transition);
  display: flex;
  gap: 1.25rem;
}

.obj-card:hover {
  border-color: var(--primary-orange);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.obj-number-badge {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background-color: var(--hero-bg);
  color: var(--primary-orange);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.obj-card-content h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.obj-card-content p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   9. GALERIE D'IMPACT ET LIGHTBOX
   -------------------------------------------------------------------------- */
.gallery-section {
  padding: 5.5rem 0;
  background-color: var(--bg-subtle);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  height: 260px;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}

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

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

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 31, 28, 0.85) 0%, transparent 60%);
  display: flex;
  align-items: flex-end;
  padding: 1.25rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-title {
  color: #ffffff;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
}

/* Lightbox Modal */
.lightbox-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  padding: 2rem;
}

.lightbox-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-content {
  max-width: 900px;
  max-height: 85vh;
  border-radius: var(--radius-md);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: 2rem;
  right: 2rem;
  color: #ffffff;
  font-size: 2rem;
  cursor: pointer;
}

/* --------------------------------------------------------------------------
   10. SECTION CONTACT & DEVENIR PARTENAIRE
   -------------------------------------------------------------------------- */
.contact-section {
  padding: 5.5rem 0;
  background-color: var(--bg-body);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: flex-start;
}

.contact-info-card {
  background-color: var(--hero-bg);
  color: #ffffff;
  padding: 3rem 2.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.contact-info-card h3 {
  color: #ffffff;
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.contact-info-card p {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.contact-details-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-detail-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.contact-detail-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 87, 51, 0.2);
  color: var(--primary-orange);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
}

.contact-detail-text h4 {
  color: #ffffff;
  font-size: 1.05rem;
  margin-bottom: 0.2rem;
}

.contact-detail-text p {
  margin-bottom: 0;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.75);
}

/* Contact Form */
.contact-form-box {
  background-color: var(--bg-card);
  padding: 3rem 2.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-md);
}

.contact-form-box h3 {
  font-size: 1.75rem;
  margin-bottom: 1.5rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.form-control {
  width: 100%;
  padding: 0.85rem 1.15rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  background-color: var(--bg-subtle);
  color: var(--text-main);
  font-size: 0.95rem;
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-orange);
  background-color: var(--bg-card);
  box-shadow: 0 0 0 3px var(--orange-glow);
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

/* --------------------------------------------------------------------------
   11. PIED DE PAGE (FOOTER NOIR & TECK)
   -------------------------------------------------------------------------- */
.site-footer {
  background-color: var(--hero-bg-deep);
  color: rgba(255, 255, 255, 0.75);
  padding: 4.5rem 0 2rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr 1fr;
  gap: 3rem;
  margin-bottom: 3.5rem;
}

.footer-brand h4 {
  color: #ffffff;
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

.footer-brand p {
  font-size: 0.92rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.footer-heading {
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.75);
}

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

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  flex-wrap: wrap;
  gap: 1rem;
}

/* --------------------------------------------------------------------------
   12. MEDIA QUERIES (RESPONSIVE)
   -------------------------------------------------------------------------- */
/* --------------------------------------------------------------------------
   12. MEDIA QUERIES & OPTIMISATION RESPONSIVE (MOBILE, TABLETTE & PC)
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .hero-section {
    padding: 3.5rem 0 6rem 0;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3.5rem;
    text-align: center;
  }

  .hero-desc {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-doodle-arrow {
    display: none;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 3.5rem;
  }

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

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }

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

@media (max-width: 768px) {
  .site-header {
    position: relative;
  }

  .header-inner {
    padding: 0.75rem 0;
  }

  .brand-logo img {
    width: 40px;
    height: 40px;
  }

  .brand-name {
    font-size: 1.05rem;
  }

  .brand-sub {
    font-size: 0.68rem;
  }

  .nav-links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--hero-bg-deep);
    padding: 1.5rem 2rem;
    border-bottom: 3px solid var(--primary-orange);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.6);
    gap: 1.25rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
  }

  .nav-links.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .nav-link {
    font-size: 1.05rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .mobile-menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    font-size: 1.35rem;
  }

  .hero-title {
    font-size: clamp(1.9rem, 7vw, 2.75rem);
  }

  .hero-torn-photo-container {
    max-width: 100%;
  }

  .hero-torn-photo-mask {
    height: 360px;
  }

  .tab-navigation {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 0.75rem;
    -webkit-overflow-scrolling: touch;
  }

  .tab-btn {
    flex-shrink: 0;
    font-size: 0.88rem;
    padding: 0.5rem 1rem;
  }

  .feature-boxes-grid {
    grid-template-columns: 1fr;
  }

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

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

  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 0.75rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 1rem;
  }

  .header-actions .btn-orange {
    display: none; /* Hide header button on tiny screens to avoid overflow */
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .hero-actions .btn-orange,
  .hero-actions .btn-outline-white {
    width: 100%;
  }

  .hero-torn-photo-mask {
    height: 290px;
  }

  .about-collage {
    min-height: 320px;
  }

  .collage-main-img {
    width: 90%;
    height: 260px;
  }

  .collage-secondary-wrapper {
    width: 65%;
    height: 170px;
    top: -15px;
  }

  .collage-badge-card {
    position: relative;
    inset: auto;
    max-width: 100%;
    margin-top: 1rem;
  }

  .about-cta-row {
    flex-direction: column;
    align-items: stretch;
    gap: 1.5rem;
  }

  .about-cta-row .btn-orange {
    width: 100%;
  }

  .contact-info-card, .contact-form-box {
    padding: 1.75rem 1.25rem;
  }

  .form-control {
    font-size: 16px; /* Prevents auto-zoom on mobile safari */
  }
}
