/* ============================================================
   Page Vie de quartier — styles spécifiques
   Dépend de : main.css (benefit-card, step-card, permanence-card,
               program-intro-grid, program-kicker, program-lead, etc.)
   NB : les classes globales sont toutes définies dans main.css.
   ============================================================ */

/* ---- Bandeau CTA projets (section verte intercalée) ---- */
.vdq-cta-projets {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
    border-radius: var(--radius-xl);
    padding: clamp(1.75rem, 4vw, 2.5rem) clamp(1.5rem, 5vw, 3rem);
    color: #fff;
    box-shadow: 0 8px 28px rgba(10, 69, 72, 0.25);
}

.vdq-cta-projets__text h3 {
    font-size: clamp(1.1rem, 2.5vw, 1.35rem);
    font-weight: 700;
    margin: 0 0 0.35rem;
    color: #fff;
    line-height: 1.25;
}

.vdq-cta-projets__text p {
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.82);
    margin: 0;
    line-height: 1.6;
}

/* ---- Icône décorative section CTA final ---- */
.vdq-cta-icon {
    font-size: 3rem;
    color: var(--color-primary);
    opacity: 0.2;
    display: block;
    margin-bottom: 1rem;
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
    .vdq-cta-projets {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
}

/* ============================================================
   CUSTOM HERO "VIE DE QUARTIER"
   ============================================================ */
.vdq-hero {
    position: relative;
    padding: clamp(6rem, 15vw, 10rem) 0 clamp(4rem, 10vw, 6rem);
    background-color: var(--color-bg-light);
    overflow: hidden;
    min-height: 80vh;
    display: flex;
    align-items: center;
}

/* Gradients en arrière-plan */
.vdq-hero__bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.vdq-hero__gradient-blob {
    position: absolute;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle at center, rgba(200, 99, 59, 0.08) 0%, rgba(200, 99, 59, 0) 70%);
    top: -20%;
    left: -10%;
    border-radius: 50%;
    filter: blur(40px);
}

.vdq-hero__gradient-blob--alt {
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle at center, rgba(10, 69, 72, 0.06) 0%, rgba(10, 69, 72, 0) 70%);
    bottom: -10%;
    right: -10%;
    top: auto;
    left: auto;
}

.vdq-hero__container {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: clamp(3rem, 6vw, 5rem);
    align-items: center;
}

.vdq-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(200, 99, 59, 0.1);
    color: var(--color-accent);
    border-radius: 100px;
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
}

.vdq-hero__title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    color: var(--color-text-dark);
    margin-bottom: 1.5rem;
}

.vdq-hero__lead {
    font-size: clamp(1.125rem, 2vw, 1.25rem);
    line-height: 1.6;
    color: var(--color-text-muted);
    max-width: 600px;
}

.vdq-hero__actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Image et badges */
.vdq-hero__visual {
    position: relative;
    width: 100%;
}

.vdq-hero__image-wrapper {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: visible;
}

.vdq-hero__image {
    width: 100%;
    height: auto;
    border-radius: var(--radius-xl);
    box-shadow: 0 20px 40px rgba(10, 69, 72, 0.15);
    object-fit: cover;
    aspect-ratio: 4/5;
    transform: rotate(2deg);
    transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.vdq-hero__image-wrapper:hover .vdq-hero__image {
    transform: rotate(0deg) scale(1.02);
}

.vdq-hero__floating-badge {
    position: absolute;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border-radius: var(--radius-lg);
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    z-index: 2;
    min-width: max-content;
}

.vdq-hero__floating-badge .badge-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--color-primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.vdq-hero__floating-badge.badge-2 .badge-icon {
    background: var(--color-accent);
}

.vdq-hero__floating-badge .badge-text {
    display: flex;
    flex-direction: column;
}

.vdq-hero__floating-badge .badge-text strong {
    /* carte au fond blanc figé (clair + sombre) : texte neutre foncé, stable */
    color: #0a1b1d;
    font-size: 1rem;
    font-weight: 700;
}

.vdq-hero__floating-badge .badge-text span {
    /* fix lisibilité : était blanc (#fff) sur carte blanche -> illisible */
    color: #4a545a;
    font-size: 0.8rem;
}

.badge-1 { top: 10%; left: -15%; }
.badge-2 { bottom: 20%; right: -15%; }
.badge-3 { bottom: -5%; left: 10%; }

.float-animation { animation: float-up-down 6s ease-in-out infinite; }
.float-animation-alt { animation: float-up-down 8s ease-in-out infinite reverse; }

@keyframes float-up-down {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

@media (max-width: 992px) {
    .vdq-hero__container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .vdq-hero__badge { margin: 0 auto 1.5rem; }
    .vdq-hero__lead { margin: 0 auto; }
    .vdq-hero__actions { justify-content: center; }
    
    .vdq-hero__visual { max-width: 500px; margin: 4rem auto 0; }
    .badge-1 { top: -20px; left: -10px; }
    .badge-2 { bottom: 40px; right: -10px; }
    .badge-3 { bottom: -20px; left: 20px; }
}
