@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');
/* ==========================================================================
   PAGE D'ACCUEIL - STYLE RETRAVAILLÉ & HARMONISÉ
   ========================================================================== */

.page-accueil {
    display: block;
    grid-column: 1 / -1;
}

/* ==========================================================================
   1. HERO SECTION
   ========================================================================== */
.hero-section {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 48px;
    padding: 64px 0 80px;
    overflow: hidden;
}

/* Formes lumineuses d'arrière-plan (Glow Effect) */
.hero-forme {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.18;
    z-index: 0;
    pointer-events: none;
}

.hero-forme-1 {
    width: 350px;
    height: 350px;
    background: var(--primaire);
    top: -80px;
    right: 10%;
}

.hero-forme-2 {
    width: 300px;
    height: 300px;
    background: var(--secondaire);
    bottom: -60px;
    left: 5%;
}

/* Texte & Contenu Hero */
.hero-texte {
    position: relative;
    z-index: 1;
    flex: 1;
    min-width: 320px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--primaire-clair);
    color: var(--primaire-dark);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    padding: 6px 16px;
    border-radius: var(--radius-pill);
    border: 1px solid rgba(230, 81, 0, 0.15);
    margin-bottom: 20px;
}

.hero-titre {
    font-size: 3.2rem;
    line-height: 1.15;
    font-weight: 800;
    color: var(--texte-principal);
    letter-spacing: -1px;
    margin-bottom: 20px;
}

/* Dégradé de texte : Orange -> Indigo */
.accent-orange {
    background: linear-gradient(135deg, var(--primaire) 0%, var(--secondaire) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-description {
    font-size: 1.125rem;
    color: var(--texte-secondaire);
    max-width: 520px;
    margin-bottom: 8px;
    line-height: 1.6;
}

.hero-sous-titre {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--texte-principal);
    margin-bottom: 32px;
}

/* Actions & Boutons Hero */
.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.btn-hero {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border-radius: var(--radius-pill);
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    letter-spacing: 0.2px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
}

.btn-primaire {
    background: linear-gradient(135deg, #ff6d00 0%, var(--primaire) 100%);
    color: #ffffff;
    box-shadow: var(--ombre-orange);
    border: none;
}

.btn-primaire:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(230, 81, 0, 0.45);
}

.btn-secondaire {
    background: #ffffff;
    color: var(--texte-principal);
    border: 2px solid var(--bordure);
}

.btn-secondaire:hover {
    border-color: var(--primaire);
    color: var(--primaire);
    background-color: var(--primaire-clair);
    transform: translateY(-3px);
}

/* Statistiques Hero */
.hero-stats {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
}

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

.hero-stat-nombre {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--texte-principal);
    line-height: 1.2;
}

.hero-stat-label {
    font-size: 0.85rem;
    color: var(--texte-secondaire);
    font-weight: 600;
}

/* Image / Illustration Hero */
.hero-image {
    position: relative;
    z-index: 1;
    flex: 1;
    min-width: 400px;
    width: 100%;
    display: flex;
    justify-content: center;
}

.hero-image img {
    width: 100%;
    max-width: 460px;
    height: auto;
    filter: drop-shadow(0 20px 40px rgba(79, 70, 229, 0.15));
    transition: transform 0.4s ease;
}

.hero-image img:hover {
    transform: translateY(-6px);
}

/* ==========================================================================
   2. TITRES DE SECTIONS
   ========================================================================== */
.section-titre {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--texte-principal);
    text-align: center;
    letter-spacing: -0.5px;
    margin-bottom: 8px;
}

.section-soustitre {
    font-size: 1rem;
    color: var(--texte-secondaire);
    text-align: center;
    margin-bottom: 48px;
}

.services-intro {
    padding: 32px 0 0;
}

/* ==========================================================================
   3. CARTES SERVICES
   ========================================================================== */
.services-section {
    padding: 0 0 88px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.service-carte {
    position: relative;
    display: block;
    height: 360px;
    border-radius: var(--radius-grand);
    overflow: hidden;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--bordure);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-carte:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 35px -10px rgba(15, 23, 42, 0.15);
    border-color: transparent;
}

.service-image-fond {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform 0.5s ease;
}

.service-carte:hover .service-image-fond {
    transform: scale(1.08);
}

.service-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
            rgba(15, 23, 42, 0.15) 0%,
            rgba(15, 23, 42, 0.88) 100%);
}

.service-numero {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 0.85rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    padding: 4px 12px;
    border-radius: var(--radius-pill);
    letter-spacing: 0.05em;
}

.service-contenu {
    position: absolute;
    left: 24px;
    right: 24px;
    bottom: 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.service-icone {
    font-size: 2rem;
    margin-bottom: 2px;
}

.service-pilule {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    background: #ffffff;
    color: var(--texte-principal);
    padding: 10px 20px;
    border-radius: var(--radius-pill);
    width: fit-content;
    font-weight: 700;
    font-size: 0.95rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.service-carte:hover .service-pilule {
    background: linear-gradient(135deg, var(--primaire) 0%, var(--secondaire) 100%);
    color: #ffffff;
}

.service-fleche {
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.service-carte:hover .service-fleche {
    transform: translateX(4px) rotate(-45deg);
}

.service-desc {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.875rem;
    margin: 0;
    line-height: 1.5;
}

/* ==========================================================================
   4. COMMENT ÇA MARCHE (ÉTAPES)
   ========================================================================== */
.etapes-section {
    padding: 24px 0 88px;
}

.etapes-grille {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.etape {
    background: #ffffff;
    border: 1px solid var(--bordure);
    border-radius: var(--radius-grand);
    padding: 36px 28px;
    text-align: center;
    transition: all 0.3s ease;
}

.etape:hover {
    transform: translateY(-6px);
    box-shadow: var(--ombre-douce);
    border-color: rgba(230, 81, 0, 0.2);
}

.etape-chiffre {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primaire) 0%, var(--secondaire) 100%);
    color: #ffffff;
    font-weight: 800;
    font-size: 1.25rem;
    margin-bottom: 20px;
    box-shadow: 0 8px 18px rgba(230, 81, 0, 0.25);
}

.etape-titre {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--texte-principal);
    margin-bottom: 10px;
}

.etape-desc {
    font-size: 0.925rem;
    color: var(--texte-secondaire);
    line-height: 1.5;
}

/* ==========================================================================
   5. BANNIÈRE CTA FINAL
   ========================================================================== */
.cta-final {
    background: linear-gradient(135deg, #ff6d00 0%, var(--primaire) 50%, var(--secondaire) 100%);
    border-radius: var(--radius-grand);
    padding: 64px 32px;
    text-align: center;
    margin-bottom: 48px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 16px 36px rgba(230, 81, 0, 0.2);
}

.cta-final-contenu {
    max-width: 580px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.cta-final-titre {
    font-size: 2.2rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.cta-final-desc {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 32px;
    line-height: 1.6;
}

.btn-cta-final {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 36px;
    background: #ffffff;
    color: var(--primaire-dark);
    border-radius: var(--radius-pill);
    font-weight: 800;
    font-size: 1rem;
    text-decoration: none;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-cta-final:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.25);
    background-color: #ffffff;
    color: var(--primaire);
}

/* ==========================================================================
   6. RESPONSIVE DESIGN (< 900px & < 767px)
   ========================================================================== */
@media (max-width: 900px) {
    .hero-section {
        flex-direction: column;
        text-align: center;
        padding-top: 32px;
        gap: 32px;
    }

    .hero-description,
    .hero-sous-titre {
        margin-left: auto;
        margin-right: auto;
    }

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

    .hero-image {
        min-width: unset;
    }

    .services-section,
    .etapes-grille {
        grid-template-columns: 1fr;
        padding-bottom: 56px;
    }
}

@media (max-width: 767px) {
    .hero-section {
        padding: 24px 0 40px;
    }

    .hero-titre {
        font-size: 2.2rem;
    }

    .hero-stats {
        gap: 24px;
    }

    .section-titre {
        font-size: 1.75rem;
    }

    .cta-final {
        padding: 44px 20px;
    }

    .cta-final-titre {
        font-size: 1.65rem;
    }
}

/* ==========================================================================
   1. LAYOUT GLOBAL & SCOPE style de la page liste cagnottes 
   ========================================================================== */

.public-collectes-scope {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  color: var(--texte-principal);
  background-color: var(--fond-page);
  min-height: 100vh;
  padding-bottom: 80px;
}

/* ==========================================================================
   2. HERO SECTION (COMPACTE)
   ========================================================================== */

.public-collectes-scope .hero-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto 1rem auto;
  padding: 1.5rem 1rem;
  min-height: auto;
}

.public-collectes-scope .hero-title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--texte-principal);
  line-height: 1.15;
  letter-spacing: -0.025em;
  margin-bottom: 0.5rem;
}

.public-collectes-scope .hero-subtitle {
  font-size: 0.95rem;
  color: var(--texte-secondaire);
  line-height: 1.65;
  margin-bottom: 1rem;
  max-width: 500px;
}

.public-collectes-scope .hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.public-collectes-scope .btn-orange {
  background: var(--primaire-gradient);
  color: #ffffff !important;
  font-weight: 700;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: var(--ombre-orange);
}

.public-collectes-scope .btn-orange:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px -2px rgba(255, 85, 0, 0.45);
}

.public-collectes-scope .btn-outline {
  border: 2px solid var(--bordure);
  color: var(--texte-principal) !important;
  font-weight: 700;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  background-color: transparent;
}

.public-collectes-scope .btn-outline:hover {
  border-color: var(--texte-principal);
  background-color: var(--fond-carte);
}

.public-collectes-scope .hero-image-container {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--ombre-hover);
  aspect-ratio: 16 / 9;
}

.public-collectes-scope .hero-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ==========================================================================
   3. SECTION COLLECTES & GRILLE
   ========================================================================== */

.public-collectes-scope .collectes-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.public-collectes-scope .section-header {
  margin-bottom: 28px;
}

.public-collectes-scope .section-title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--texte-principal);
  position: relative;
  display: inline-block;
  letter-spacing: -0.02em;
}

.public-collectes-scope .section-title::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 50px;
  height: 4px;
  background: var(--primaire-gradient);
  border-radius: var(--radius-pill);
}

.public-collectes-scope .cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: 32px;
}

.public-collectes-scope .card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

/* ==========================================================================
   4. CARTE DE CAGNOTTE
   ========================================================================== */

.public-collectes-scope .collecte-card {
  background: var(--fond-carte);
  border-radius: var(--radius-lg);
  border: 1px solid var(--bordure);
  overflow: hidden;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  height: 100%;
  box-shadow: var(--ombre-subtile);
  position: relative;
}

.public-collectes-scope .card-link:hover .collecte-card {
  transform: translateY(-8px);
  box-shadow: var(--ombre-hover);
  border-color: rgba(255, 85, 0, 0.35);
}

/* Media & Badges */
.public-collectes-scope .card-media {
  position: relative;
  width: 100%;
  height: 210px;
  background-color: #e2e8f0;
  overflow: hidden;
}

.public-collectes-scope .card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.public-collectes-scope .card-link:hover .card-media img {
  transform: scale(1.06);
}

.public-collectes-scope .card-badges {
  position: absolute;
  top: 14px;
  left: 14px;
  right: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 2;
}

.public-collectes-scope .category-badge {
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(8px);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.public-collectes-scope .verified-badge {
  background: var(--succes-texte);
  color: #ffffff;
  width: 28px;
  height: 28px;
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  margin-left: auto;
}

.public-collectes-scope .card-status-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background-color: rgba(16, 185, 129, 0.95);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(4px);
  z-index: 2;
}

/* Corps de la carte */
.public-collectes-scope .card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.public-collectes-scope .card-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.4;
  margin: 0 0 16px 0;
  transition: color 0.2s ease;
}

.public-collectes-scope .card-link:hover .card-title {
  color: var(--primaire);
}

/* Progression et Montants */
.public-collectes-scope .card-progress-wrapper {
  margin-top: auto;
  background-color: var(--fond-page);
  padding: 16px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(226, 232, 240, 0.8);
}

.public-collectes-scope .card-amount-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 10px;
}

.public-collectes-scope .amount-raised {
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.public-collectes-scope .amount-number {
  font-size: 1.4rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.02em;
}

.public-collectes-scope .currency {
  font-size: 0.85rem;
  font-weight: 700;
  color: #ff6b00;
}

.public-collectes-scope .progress-percent {
  font-size: 0.95rem;
  font-weight: 700;
  padding: 4px 10px;
  background-color: #fff4ec;
  color: #ff6b00;
  border-radius: var(--radius-pill);
}

.public-collectes-scope .progress-percent.percent-full {
  color: #059669;
  background-color: #ecfdf5;
  font-weight: 800;
}

/* Barre de progression */
.public-collectes-scope .progress-bar-bg {
  width: 100%;
  height: 8px;
  background-color: var(--bordure, #cbd5e1);
  border-radius: var(--radius-pill);
  overflow: hidden;
  margin: 10px 0;
}

.public-collectes-scope .progress-bar-fill {
  height: 100%;
  background: var(--primaire-gradient, linear-gradient(90deg, #ff6b00 0%, #ff8800 100%));
  border-radius: var(--radius-pill);
  transition: width 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 0 10px rgba(255, 85, 0, 0.3);
}

.public-collectes-scope .progress-bar-fill.fill-complete {
  background: linear-gradient(90deg, #10b981 0%, #059669 100%);
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.3);
}

/* Objectif */
.public-collectes-scope .target-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
  font-size: 0.95rem;
}

.public-collectes-scope .target-label {
  color: #64748b;
  font-weight: 500;
}

.public-collectes-scope .target-amount {
  font-size: 1rem;
  font-weight: 700;
  color: #1e293b;
}

/* Footer de la carte */
.public-collectes-scope .card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px dashed var(--bordure);
  font-size: 0.9rem;
}

.public-collectes-scope .meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.825rem;
  font-weight: 500;
  color: var(--texte-secondaire);
}

.public-collectes-scope .card-action-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--primaire);
  transition: transform 0.2s ease;
}

.public-collectes-scope .card-link:hover .card-action-btn {
  transform: translateX(4px);
}

/* ==========================================================================
   5. EMPTY STATE
   ========================================================================== */

.public-collectes-scope .empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 80px 20px;
  background: var(--fond-carte);
  border-radius: var(--radius-lg);
  border: 1px dashed var(--bordure);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.public-collectes-scope .empty-state p {
  color: var(--texte-secondaire);
  font-weight: 600;
}

/* ==========================================================================
   6. PAGINATION
   ========================================================================== */

.public-collectes-scope .pagination-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 48px;
}

.public-collectes-scope .pagination {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.public-collectes-scope .page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 12px;
  border-radius: var(--radius-md);
  background-color: var(--fond-carte);
  border: 1px solid var(--bordure);
  color: var(--texte-principal);
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  transition: all 0.25s ease;
  box-shadow: var(--ombre-subtile);
}

.public-collectes-scope a.page-link:hover {
  border-color: var(--primaire);
  color: var(--primaire);
  transform: translateY(-2px);
  box-shadow: var(--ombre-hover);
}

.public-collectes-scope .page-link.active {
  background: var(--primaire-gradient);
  color: #ffffff;
  border-color: transparent;
  box-shadow: var(--ombre-orange);
}

.public-collectes-scope .page-link.disabled {
  background-color: var(--fond-page);
  border-color: var(--bordure);
  color: var(--texte-muet);
  cursor: not-allowed;
  opacity: 0.6;
}

/* ==========================================================================
   7. RESPONSIVE
   ========================================================================== */

@media (max-width: 900px) {
  .public-collectes-scope .hero-section {
    grid-template-columns: 1fr;
    padding-top: 1.5rem;
    gap: 24px;
  }
  
  .public-collectes-scope .hero-title {
    font-size: 1.8rem;
  }

  .public-collectes-scope .cards-grid {
    grid-template-columns: 1fr;
  }
}