/* ========================================
   PAGE AIDES & PRIMES — Prim'So
   PROMPT 6 — Réécriture complète
   SANS hero vague / gradient vert
   ======================================== */

/* ─────────────────────────────────────────
   HERO AIDES — Design propre, fond clair
   PAS de vague, PAS de gradient vert foncé
   ───────────────────────────────────────── */
.aides-hero {
    background: #f5f8fd;
    color: var(--color-text-dark);
    position: relative;
    overflow: hidden;
    padding: 140px 20px 80px;
}

/* Décoration subtile */
.aides-hero::before {
    content: '';
    position: absolute;
    top: -180px;
    right: -120px;
    width: 550px;
    height: 550px;
    background: radial-gradient(circle, rgba(43, 117, 187, 0.10) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.aides-hero::after {
    content: '';
    position: absolute;
    bottom: -80px;
    left: -80px;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(201, 227, 145, 0.15) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.aides-hero-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 2;
}

.aides-hero-title {
    font-size: 42px;
    font-weight: 900;
    font-family: 'Nunito', sans-serif;
    line-height: 1.2;
    margin-bottom: 22px;
    color: var(--color-dark-green);
    opacity: 0;
    animation: aidesFadeInUp 0.6s ease 0.1s forwards;
}

.aides-hero-title .highlight {
    color: var(--color-primary);
}

.aides-hero-description {
    font-size: 17px;
    line-height: 1.7;
    opacity: 0;
    animation: aidesFadeInUp 0.6s ease 0.2s forwards;
    margin-bottom: 0;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    color: var(--color-text-gray);
}

.aides-hero-description strong {
    font-weight: 700;
    color: var(--color-text-dark);
}

.aides-btn-hero {
    margin-top: 0 !important;
    opacity: 0;
    animation: aidesFadeInUp 0.6s ease 0.3s forwards;
}

.aides-hero-illustration {
    display: flex;
    justify-content: flex-end;
    opacity: 0;
    animation: aidesFadeInRight 0.8s ease 0.3s forwards;
}

.aides-hero-illustration img {
    max-width: 100%;
    height: auto;
}


/* ─────────────────────────────────────────
   SUPER CONTAINER — TRAVAUX ÉLIGIBLES + MAPRIMERENOV'
   ───────────────────────────────────────── */
.aides-eligibles-container {
    background:
        radial-gradient(ellipse at 20% 50%, rgba(201, 227, 145, 0.50) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 30%, rgba(190, 215, 235, 0.55) 0%, transparent 60%),
        radial-gradient(ellipse at 50% 80%, rgba(43, 117, 187, 0.15) 0%, transparent 55%),
        #ffffff;
    transform: translateY(-30px);
}

/* ─────────────────────────────────────────
   SECTION TRAVAUX ÉLIGIBLES (4 cards)
   ───────────────────────────────────────── */
.aides-travaux {
    padding: 80px 20px;
    background: transparent;
}

.aides-travaux-header {
    text-align: center;
    max-width: 750px;
    margin: 0 auto 55px;
}

.aides-travaux-header h2 {
    font-size: 36px;
    font-weight: 400;
    color: var(--color-text-dark);
    line-height: 1.3;
    margin-bottom: 15px;
}

.aides-travaux-header h2 strong { font-weight: 900; }

.aides-travaux-header p {
    font-size: 16px;
    font-weight: 400;
    color: var(--color-dark-green);
    line-height: 1.7;
}

.aides-travaux-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    max-width: 1100px;
    margin: 0 auto;
}

.aides-travaux-column {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.aides-travaux-column-logo {
    text-align: center;
    padding: 10px 0;
}

.aides-travaux-column-logo img {
    max-width: 200px;
    height: auto;
    display: block;
    margin: 0 auto;
}

.aides-travaux-card {
    background: white;
    border-radius: var(--radius-xl);
    padding: 35px 28px 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: var(--transition-base);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.aides-travaux-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-light-green));
}

.aides-card-chauffage::before,
.aides-card-isolation::before {
    display: none;
}

.aides-card-ventil::before,
.aides-card-pilotage::before {
    display: none;
}

/* Titres colorés des cards */
.aides-card-title {
    font-size: 30px;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 16px;
}

.aides-card-title--bleu {
    color: var(--color-primary);
}

.aides-card-title--vert {
    color: #B5D66F;
}

.aides-travaux-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.10);
}

.aides-travaux-logo {
    margin-bottom: 18px;
    text-align: center;
}

.aides-travaux-logo img {
    max-width: 160px;
    height: auto;
}

.aides-travaux-card h3 {
    font-size: 20px;
    font-weight: 800;
    color: var(--color-text-dark);
    margin-bottom: 16px;
    line-height: 1.3;
}

.aides-travaux-card ul {
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
    flex-grow: 1;
}

.aides-travaux-card li {
    font-size: 14px;
    color: var(--color-text-gray);
    padding: 5px 0 5px 22px;
    position: relative;
    line-height: 1.5;
}

.aides-travaux-card li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--color-light-green);
    font-weight: 800;
    font-size: 14px;
}

.aides-travaux-aide {
    font-size: 14px;
    color: var(--color-text-gray);
    margin-top: auto;
    padding-top: 10px;
}

.aides-travaux-aide strong {
    color: var(--color-primary);
}

/* Boutons découvrir spécifiques */
.aides-travaux-card .btn-discover {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 28px;
    color: white;
    font-size: 15px;
    font-weight: 700;
    font-family: 'Nunito', sans-serif;
    border-radius: 10px;
    text-decoration: none;
    transition: var(--transition-base);
    white-space: nowrap;
    margin-top: auto;
    align-self: flex-start;
}

.btn-discover-pac {
    background: var(--color-dark-green);
    box-shadow: 0 4px 12px rgba(12, 36, 31, 0.3);
}

.btn-discover-pac:hover {
    background: #0a1d18;
    transform: translateY(-2px);
    color: white;
}

.btn-discover-iso {
    background: var(--color-primary);
    box-shadow: 0 4px 12px rgba(43, 117, 187, 0.3);
}

.btn-discover-iso:hover {
    background: #1a5a9e;
    transform: translateY(-2px);
    color: white;
}

/* CTA Travaux */
.aides-travaux-cta {
    text-align: center;
    margin-top: 40px;
}

.aides-travaux-cta .btn {
    padding: 16px 40px;
    font-size: 17px;
}


/* ─────────────────────────────────────────
   SECTION MAPRIMERENOV'
   ───────────────────────────────────────── */
.aides-mpr {
    padding: 20px 20px;
    background: transparent;
    padding-top: 20px;
    padding-bottom: 85px;
}

.aides-mpr-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px;
}

.aides-mpr-header h2 {
    font-size: 36px;
    font-weight: 400;
    color: var(--color-text-dark);
    line-height: 1.3;
    margin-bottom: 15px;
}

.aides-mpr-header h2 strong { font-weight: 900; }

.aides-mpr-header p {
    font-size: 16px;
    color: var(--color-text-gray);
    line-height: 1.7;
}

.aides-mpr-header p strong {
    font-weight: 700;
    color: var(--color-text-dark);
}

/* Éligibilité */
.aides-mpr-eligibilite {
    max-width: 1200px;
    margin: 0 auto 50px;
    background: white;
    border-radius: var(--radius-xl);
    padding: 35px 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.aides-mpr-eligibilite h3 {
    font-size: 20px;
    font-weight: 800;
    color: var(--color-text-dark);
    margin-bottom: 22px;
    text-align: center;
}

.aides-mpr-profils {
    display: flex;
    flex-wrap: wrap;
    gap: 17px;
    justify-content: center;
}

.aides-mpr-profil {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 22px;
    background: var(--color-bg-light);
    border-radius: var(--radius-full);
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text-dark);
    transition: var(--transition-base);
}

.aides-mpr-profil:hover {
    background: rgba(43, 117, 187, 0.08);
    transform: translateY(-2px);
}

.aides-mpr-profil-icon {
    font-size: 18px;
}

/* 4 couleurs MaPrimeRénov' — WRAPPER (cards + illustration side by side) */
.aides-mpr-cards-wrapper {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 40px;
    align-items: end;
    max-width: 1200px;
    margin-bottom: 40px;
}

.aides-mpr-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.aides-mpr-card {
    background: white;
    border-radius: 20px;
    padding: 28px 20px 24px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.aides-mpr-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
}

.aides-mpr-card--bleu::before { background: #5B9BD5; }
.aides-mpr-card--jaune::before { background: #F5C842; }
.aides-mpr-card--violet::before { background: #8E6BB5; }
.aides-mpr-card--rose::before { background: #E88BA0; }

.aides-mpr-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.12);
}

.aides-mpr-card-logo {
    margin-bottom: 16px;
}

.aides-mpr-card-logo img {
    max-height: 65px;
    width: auto;
}

.aides-mpr-card-desc {
    font-size: 14px;
    color: var(--color-text-gray);
    line-height: 1.5;
    margin: 0;
}

.aides-mpr-card-desc strong {
    font-weight: 800;
    color: var(--color-text-dark);
}

.aides-mpr-card-tag {
    display: inline-block;
    margin-top: 8px;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 14px;
    border-radius: 999px;
    color: white;
}

.aides-mpr-card--bleu .aides-mpr-card-tag { background: #5B9BD5; }
.aides-mpr-card--rose .aides-mpr-card-tag { background: #E88BA0; }

/* Illustration personnage à droite, alignée en bas */
.aides-mpr-illustration {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    align-self: end;
    pointer-events: none;
    transform: translateY(125px);
}

.aides-mpr-illustration img {
    max-height: 350px;
    width: auto;
    object-fit: contain;
}


/* ─────────────────────────────────────────
   SECTION ACCOMPAGNEMENT MAPRIMERENOV' (advantages-wrapper)
   ───────────────────────────────────────── */
.aides-accomp {
    background: white;
    padding-top: 50px;
    padding-bottom: 80px;
}

.advantages-wrapper {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding-top: 30px;
}

.advantages-card {
    background-color: #e6ff9c;
    border-radius: 20px;
    padding: 70px 40px 40px;
    position: relative;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.advantages-title {
    position: absolute;
    top: -26px;
    left: 30px;
    background-color: #0c2a22;
    color: #e6ff9c;
    font-size: 18px;
    font-weight: 800;
    font-family: 'Nunito', sans-serif;
    padding: 16px 32px;
    border-radius: 999px;
    transform: rotate(-3deg);
    white-space: nowrap;
    box-shadow: 0 4px 15px rgba(12, 36, 31, 0.25);
}

.advantages-list {
    list-style: disc;
    padding-left: 20px;
    margin: 0;
}

.advantages-list li {
    margin-bottom: 18px;
    font-size: 1.05rem;
    line-height: 1.6;
    color: #0c2a22;
    font-weight: 600;
}

.advantages-list li strong {
    font-weight: 800;
}


/* ─────────────────────────────────────────
   SECTION AIDES CUMULÉES + PREMIUM (dark)
   ───────────────────────────────────────── */
.aides-cumul-premium {
    padding-top: 80px;
    padding-bottom: 30px;
    background: var(--color-dark-green);
    color: white;
    position: relative;
    overflow: hidden;
    margin-bottom: 100px;
    margin-top: 30px;
}

.aides-cumul-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px;
}

.aides-cumul-header h2 {
    font-size: 36px;
    font-weight: 900;
    color: white;
    line-height: 1.3;
    margin-bottom: 18px;
}

.highlight-green {
    color: var(--color-accent-green);
}

.highlight-yellow {
    color: var(--color-accent-yellow, #f5d76e);
}

.aides-cumul-header p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.7;
}

.aides-cumul-header p strong {
    font-weight: 700;
    color: white;
}

/* Bloc cumul CEE + MPR */
.aides-cumul-block {
    max-width: 900px;
    margin: 0 auto 60px;
}

.aides-cumul-block h3 {
    font-size: 22px;
    font-weight: 400;
    color: white;
    text-align: center;
    margin-bottom: 30px;
}

.aides-cumul-block h3 .highlight-green {
    font-weight: 800;
}

.aides-cumul-flex {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
    align-items: center;
}

/* Nouveau visual CEE + MPR (remplace l'image cochon) */
.aides-cumul-visual {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(225, 251, 159, 0.15);
    border-radius: 24px;
    padding: 36px 24px;
    text-align: center;
}

.aides-cumul-visual-icon {
    color: var(--color-accent-green);
    margin-bottom: 20px;
    opacity: 0.9;
}

.aides-cumul-visual-labels {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.aides-cumul-label {
    padding: 8px 22px;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 800;
    font-family: 'Nunito', sans-serif;
    letter-spacing: 0.5px;
}

.aides-cumul-label--cee {
    background: var(--color-accent-green);
    color: var(--color-dark-green);
}

.aides-cumul-label--mpr {
    background: var(--color-primary);
    color: white;
}

.aides-cumul-label-plus {
    font-size: 22px;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.6);
}

.aides-cumul-visual-text {
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.65);
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.aides-cumul-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.aides-cumul-list li {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.7;
    padding: 6px 0 6px 22px;
    position: relative;
}

.aides-cumul-list li::before {
    content: '•';
    position: absolute;
    left: 6px;
    color: var(--color-accent-green);
    font-weight: 800;
    font-size: 18px;
}

/* Bloc premium */
.aides-premium-block {
    max-width: 1100px;
    margin: 0 auto 50px;
    display: flex;
    flex-direction: column;
}

.aides-premium-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: end;
}

.aides-premium-content {
    min-width: 0;
}

.aides-premium-block h3 {
    font-size: 22px;
    font-weight: 400;
    color: white;
    text-align: center;
    margin-bottom: 30px;
}

.aides-premium-block h3 strong,
.aides-premium-block h3 .highlight-yellow,
.aides-premium-block h3 .highlight-green {
    font-weight: 900;
}

.aides-premium-image {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    margin-top: 0;
}

.aides-premium-image img {
    max-width: 700px;
    width: 100%;
    border-radius: 0;
    box-shadow: none;
    transform: translateY(80px);
}

.aides-premium-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.aides-premium-row {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.aides-premium-row .aides-premium-check {
    font-size: 18px;
    flex-shrink: 0;
    margin-top: 2px;
    color: var(--color-accent-green);
}

.aides-premium-row p {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.6;
    margin: 0;
}

.aides-premium-row p strong {
    font-weight: 700;
    color: white;
}

/* CTA cumul */
.aides-cumul-cta {
    text-align: center;
    margin-top: 10px;
}

.aides-cumul-cta .btn {
    padding: 16px 40px;
    font-size: 17px;
}


/* ─────────────────────────────────────────
   ANIMATIONS
   ───────────────────────────────────────── */
@keyframes aidesFadeInUp {
    from {
        opacity: 0;
        transform: translateY(25px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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


/* ─────────────────────────────────────────
   RESPONSIVE
   ───────────────────────────────────────── */
@media (max-width: 1024px) {
    .aides-travaux-grid { grid-template-columns: 1fr; max-width: 600px; margin-left: auto; margin-right: auto; }

    .aides-mpr-cards-wrapper { grid-template-columns: 1fr; }
    .aides-mpr-cards { grid-template-columns: repeat(2, 1fr); max-width: 600px; margin-left: auto; margin-right: auto; }

    .aides-cumul-flex { grid-template-columns: 1fr; gap: 30px; }
    .aides-cumul-visual { max-width: 280px; margin: 0 auto; }

    .aides-mpr-illustration { justify-content: center; }
    .aides-mpr-illustration img { max-height: 200px; }

    .aides-premium-cols { grid-template-columns: 1fr; gap: 30px; }
}

@media (max-width: 768px) {
    .aides-travaux { padding: 60px 15px; }
    .aides-travaux-header h2 { font-size: 28px; }
    .aides-travaux-card { padding: 25px 20px; }
    .aides-card-title { font-size: 18px; }

    .aides-mpr { padding: 60px 15px; }
    .aides-mpr-header h2 { font-size: 28px; }
    .aides-mpr-profils { gap: 10px; }
    .aides-mpr-profil { font-size: 13px; padding: 8px 16px; }
    .aides-mpr-cards-wrapper { grid-template-columns: 1fr; }
    .aides-mpr-cards { grid-template-columns: repeat(2, 1fr); gap: 14px; }
    .aides-mpr-illustration img { max-height: 180px; }

    .aides-accomp { padding: 60px 15px; }

    .aides-cumul-premium { padding: 60px 15px; }
    .aides-cumul-header h2 { font-size: 28px; }
    .aides-premium-block h3 { font-size: 18px; }
    .aides-premium-image img { max-width: 100%; }
    .aides-cumul-block h3 { font-size: 18px; }
}

@media (max-width: 480px) {
    .aides-travaux-header h2 { font-size: 24px; }
    .aides-card-title { font-size: 16px; }
    .aides-mpr-header h2 { font-size: 24px; }
    .aides-mpr-cards { grid-template-columns: 1fr 1fr; gap: 10px; }
    .aides-mpr-card { padding: 20px 12px 18px; }
    .aides-mpr-card-logo img { max-height: 45px; }
    .aides-mpr-card-desc { font-size: 12px; }
    .aides-cumul-header h2 { font-size: 24px; }
    .aides-premium-block h3 { font-size: 16px; }
}
