/* ── Solidarité Page ─────────────────────────────────────── */

.solidarity-section {
  padding: 4rem 0 6rem;
  background: #f8f9fa;
}

/* ── Grid des actions ────────────────────────────────────── */
.solidarity-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 4rem;
}

/* ── Carte ───────────────────────────────────────────────── */
.solidarity-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,.07);
  border: 1px solid rgba(202,138,16,.08);
  transition: transform .3s cubic-bezier(.165,.84,.44,1), box-shadow .3s;
  position: relative;
}

.solidarity-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(202,138,16,.18);
  border-color: rgba(202,138,16,.2);
}

/* Image photo */
.card-image {
  height: 220px;
  background-size: cover;
  background-position: center;
  background-color: #e8dcc8;
  position: relative;
}

.card-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 50%, rgba(0,0,0,.3));
}

/* Image icône (quand pas de photo) */
.card-image--icon {
  background: linear-gradient(135deg, #1a1a2e 0%, #2d2d44 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-image--icon i {
  font-size: 4rem;
  color: rgba(202,138,16,.7);
}

.card-image--icon::after {
  display: none;
}

/* Contenu de la carte */
.card-content {
  padding: 1.5rem;
  position: relative;
}

.card-icon-badge {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, #ca8a10, #b37a0e);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 18px;
  margin-bottom: 1rem;
  box-shadow: 0 4px 12px rgba(202,138,16,.35);
}

.card-content h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: .6rem;
  font-family: 'Playfair Display', Georgia, serif;
}

.card-content p {
  font-size: .95rem;
  color: #6b7280;
  line-height: 1.7;
  text-align: justify;
}

/* ── Carousel par carte ──────────────────────────────────── */
.card-carousel {
  position: relative;
  height: 220px;
  overflow: hidden;
  background: #e8dcc8;
}

.card-carousel-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 0.7s ease;
}

.card-carousel-slide.active {
  opacity: 1;
}

.card-carousel-slide::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 50%, rgba(0,0,0,.3));
}

.card-carousel-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 5px;
  z-index: 3;
}

.carousel-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  transition: background 0.3s;
}

.carousel-dot.active {
  background: #fff;
}

/* ── Loupe sur image carte ───────────────────────────────── */
.card-image[data-zoom] {
  cursor: zoom-in;
}

.card-zoom-btn {
  position: absolute;
  bottom: 10px;
  right: 10px;
  z-index: 3;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(0,0,0,0.55);
  color: #fff;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: zoom-in;
  opacity: 0;
  transition: opacity 0.2s, background 0.2s;
}

.solidarity-card:hover .card-zoom-btn {
  opacity: 1;
}

.card-zoom-btn:hover {
  background: rgba(202,138,16,0.85);
}

/* ── Lightbox ────────────────────────────────────────────── */
.sol-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.93);
  z-index: 99999;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 16px;
}
.sol-lightbox.open { display: flex; }

/* Image */
.sol-lightbox-img-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 92vw;
}
.sol-lightbox img {
  max-width: 88vw;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 0 60px rgba(0,0,0,0.6);
  animation: solLbIn 0.22s ease;
  display: block;
  transition: opacity .18s ease;
}
.sol-lightbox img.lb-fade { opacity: 0; }

@keyframes solLbIn {
  from { opacity: 0; transform: scale(0.93); }
  to   { opacity: 1; transform: scale(1); }
}

/* Flèches de navigation */
.sol-lb-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.12);
  border: 2px solid rgba(255,255,255,0.25);
  color: #fff;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s, border-color .2s;
  z-index: 2;
}
.sol-lb-arrow:hover { background: rgba(202,138,16,0.7); border-color: #ca8a10; }
.sol-lb-arrow.lb-prev { left: 0; }
.sol-lb-arrow.lb-next { right: 0; }
.sol-lb-arrow.lb-hidden { opacity: 0; pointer-events: none; }

/* Compteur + titre */
.sol-lb-bar {
  display: flex;
  align-items: center;
  gap: 20px;
  color: rgba(255,255,255,0.75);
  font-size: .9rem;
}
.sol-lb-counter {
  background: rgba(255,255,255,0.1);
  border-radius: 999px;
  padding: 4px 14px;
  font-weight: 600;
  letter-spacing: .04em;
}
.sol-lb-dots {
  display: flex;
  gap: 6px;
  align-items: center;
}
.sol-lb-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  cursor: pointer;
  transition: background .2s, transform .2s;
}
.sol-lb-dot.active { background: #ca8a10; transform: scale(1.3); }

/* Bouton fermer */
.sol-lb-close {
  position: fixed;
  top: 18px;
  right: 22px;
  background: rgba(255,255,255,0.1);
  border: 2px solid rgba(255,255,255,0.2);
  color: #fff;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s;
  z-index: 3;
}
.sol-lb-close:hover { background: rgba(220,38,38,0.7); border-color: #dc2626; }

/* ── Galerie ─────────────────────────────────────────────── */
.solidarity-gallery {
  margin: 3rem 0 4rem;
  text-align: center;
}

.solidarity-gallery h2 {
  font-size: 1.75rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 1.5rem;
  font-family: 'Playfair Display', Georgia, serif;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
}

.solidarity-gallery h2 i {
  color: #ca8a10;
}

.gallery-slider {
  position: relative;
  max-width: 860px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0,0,0,.14);
  border: 1px solid rgba(202,138,16,.15);
}

.gallery-slider .slide {
  display: none;
}

.gallery-slider img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  display: block;
}

.slide {
  position: relative;
}

.slide-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(0,0,0,.7), transparent);
  color: #fff;
  padding: 1.5rem 1rem .75rem;
  font-size: .9rem;
  font-style: italic;
  text-align: center;
}

.slider-controls {
  margin-top: 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
}

.slide-counter {
  font-size: .9rem;
  color: #6b7280;
  font-weight: 600;
  min-width: 50px;
  text-align: center;
}

.slider-controls button {
  background: linear-gradient(135deg, #ca8a10, #b37a0e);
  color: #fff;
  border: none;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .2s, box-shadow .2s;
  box-shadow: 0 4px 14px rgba(202,138,16,.35);
}

.slider-controls button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(202,138,16,.5);
}

/* ── Call to Action ──────────────────────────────────────── */
.solidarity-cta {
  margin-top: 2rem;
}

.cta-inner {
  background: linear-gradient(135deg, #1a1a2e 0%, #2d2d44 100%);
  border-radius: 20px;
  padding: 3rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-inner::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 20% 50%, rgba(202,138,16,.12) 0%, transparent 60%),
              radial-gradient(ellipse at 80% 50%, rgba(99,102,241,.1) 0%, transparent 60%);
}

.cta-icon {
  font-size: 3rem;
  color: #ca8a10;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}

.cta-inner h2 {
  font-size: 1.75rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: .75rem;
  font-family: 'Playfair Display', Georgia, serif;
  position: relative;
  z-index: 1;
}

.cta-inner p {
  color: rgba(255,255,255,.65);
  font-size: 1rem;
  max-width: 520px;
  margin: 0 auto 2rem;
  line-height: 1.7;
  position: relative;
  z-index: 1;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .85rem 2rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: .95rem;
  text-decoration: none;
  transition: all .25s;
}

.cta-btn--primary {
  background: linear-gradient(135deg, #ca8a10, #b37a0e);
  color: #fff;
  box-shadow: 0 4px 16px rgba(202,138,16,.4);
}

.cta-btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(202,138,16,.55);
}

.cta-btn--outline {
  background: rgba(255,255,255,.1);
  color: rgba(255,255,255,.85);
  border: 1.5px solid rgba(255,255,255,.2);
}

.cta-btn--outline:hover {
  background: rgba(255,255,255,.18);
  color: #fff;
  border-color: rgba(255,255,255,.4);
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 768px) {
  .solidarity-section { padding: 3rem 0 5rem; }
  .solidarity-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .cta-inner { padding: 2rem 1.5rem; }
  .cta-inner h2 { font-size: 1.4rem; }
}
