/* ==========================================================
   DÔME AUVERGNE ÉNERGIE — PAGES ACTIVITÉS
   CSS commun à toutes les pages
   Layout 100 % Flex : aucun CSS Grid
   ========================================================== */

.dae-page {
    --dae-navy: #073455;
    --dae-navy-deep: #052943;
    --dae-accent: #c4ed69;
    --dae-accent-dark: #8fbd32;
    --dae-soft: #f4f8fa;
    --dae-soft-green: #f4fae9;
    --dae-white: #ffffff;
    --dae-text: #15364c;
    --dae-muted: #5f7483;
    --dae-border: #dbe5ea;
    --dae-shadow: 0 20px 55px rgba(7, 52, 85, 0.10);
    --dae-radius: 22px;
    --dae-container: 1180px;

    width: 100%;
    overflow: hidden;
    color: var(--dae-text);
    background: var(--dae-white);
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.7;
}

.dae-page *,
.dae-page *::before,
.dae-page *::after {
    box-sizing: border-box;
}

.dae-page h1,
.dae-page h2,
.dae-page h3,
.dae-page p,
.dae-page ul {
    margin-top: 0;
}

.dae-page a {
    color: inherit;
}

.dae-container {
    width: min(var(--dae-container), calc(100% - 48px));
    margin: 0 auto;
}

/* ---------- Typographie ---------- */

.dae-page h1 {
    max-width: 920px;
    margin-bottom: 30px;
    color: var(--dae-white);
    font-size: clamp(38px, 5.2vw, 72px);
    line-height: 1.04;
    letter-spacing: -0.035em;
    font-weight: 750;
}

.dae-page h2 {
    margin-bottom: 24px;
    color: var(--dae-navy);
    font-size: clamp(28px, 3.2vw, 42px);
    line-height: 1.13;
    letter-spacing: -0.025em;
    font-weight: 750;
}

.dae-page h3 {
    margin-bottom: 14px;
    color: var(--dae-navy);
    font-size: clamp(20px, 2vw, 25px);
    line-height: 1.25;
    font-weight: 750;
}

.dae-page p {
    margin-bottom: 18px;
    font-size: 16px;
    line-height: 1.78;
}

.dae-page p:last-child {
    margin-bottom: 0;
}

.dae-kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    color: var(--dae-accent-dark);
    font-size: 13px;
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.dae-kicker::before {
    content: "";
    width: 34px;
    height: 3px;
    border-radius: 999px;
    background: currentColor;
}

.dae-kicker--light {
    color: var(--dae-accent);
}

/* ---------- Boutons ---------- */

.dae-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    min-height: 48px;
    padding: 12px 22px;
    border: 1px solid transparent;
    border-radius: 8px;
    text-decoration: none !important;
    font-size: 14px;
    line-height: 1.2;
    font-weight: 800;
    transition: transform .25s ease, background-color .25s ease, border-color .25s ease, color .25s ease;
}

.dae-btn:hover {
    transform: translateY(-2px);
}

.dae-btn--primary {
    color: var(--dae-white) !important;
    background: var(--dae-navy);
}

.dae-btn--primary:hover {
    background: var(--dae-navy-deep);
}

.dae-btn--accent {
    color: var(--dae-navy) !important;
    background: var(--dae-accent);
}

.dae-btn--accent:hover {
    background: #d4f58b;
}

.dae-btn--ghost {
    color: var(--dae-white) !important;
    border-color: rgba(255, 255, 255, .45);
    background: rgba(255, 255, 255, .04);
}

.dae-btn--ghost:hover {
    border-color: var(--dae-white);
    background: rgba(255, 255, 255, .10);
}

/* ---------- Hero ---------- */

.dae-hero {
    position: relative;
    display: flex;
    min-height: 500px;
    align-items: flex-end;
    overflow: hidden;
    padding: 105px 0 72px;
    background:
        radial-gradient(circle at 82% 32%, rgba(196, 237, 105, .20), transparent 22%),
        radial-gradient(circle at 16% 16%, rgba(255, 255, 255, .08), transparent 28%),
        linear-gradient(118deg, var(--dae-navy-deep) 0%, var(--dae-navy) 62%, #0a456b 100%);
}

.dae-hero::after {
    content: "";
    position: absolute;
    right: -90px;
    bottom: -150px;
    width: 420px;
    aspect-ratio: 1 / 1;
    border: 1px solid rgba(196, 237, 105, .25);
    border-radius: 50%;
}

.dae-hero__inner {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.dae-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.dae-hero__shape {
    position: absolute;
    z-index: 1;
    border-radius: 999px;
    transform: rotate(-18deg);
    background: rgba(255, 255, 255, .035);
}

.dae-hero__shape--one {
    top: 80px;
    right: 9%;
    width: 330px;
    height: 90px;
}

.dae-hero__shape--two {
    top: 205px;
    right: 18%;
    width: 210px;
    height: 58px;
    background: rgba(196, 237, 105, .07);
}

/* ---------- Sections ---------- */

.dae-section {
    padding: 88px 0;
}

.dae-section--white {
    background: var(--dae-white);
}

.dae-section--soft {
    background: var(--dae-soft);
}

.dae-section--accent {
    background: var(--dae-soft-green);
}

.dae-section--navy {
    color: rgba(255, 255, 255, .86);
    background: var(--dae-navy);
}

.dae-section__row {
    display: flex;
    align-items: flex-start;
    gap: clamp(38px, 6vw, 90px);
}

.dae-section__heading {
    position: relative;
    display: flex;
    flex: 0 1 36%;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
}

.dae-section__heading::after {
    content: "";
    width: 74px;
    height: 4px;
    margin-top: 4px;
    border-radius: 999px;
    background: var(--dae-accent);
}

.dae-section__number {
    margin-bottom: 16px;
    color: var(--dae-accent-dark);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: .14em;
}

.dae-section__content {
    display: flex;
    flex: 1 1 64%;
    flex-direction: column;
    min-width: 0;
    gap: 28px;
}

.dae-copy {
    display: flex;
    flex-direction: column;
}

.dae-section--navy h2,
.dae-section--navy h3 {
    color: var(--dae-white);
}

.dae-section--navy .dae-section__number {
    color: var(--dae-accent);
}

.dae-section--navy .dae-list li::before {
    color: var(--dae-accent);
}

/* ---------- Listes ---------- */

.dae-list {
    display: flex;
    flex-direction: column;
    gap: 9px;
    margin: 5px 0 22px;
    padding: 0;
    list-style: none;
}

.dae-list li {
    position: relative;
    padding-left: 27px;
    line-height: 1.55;
}

.dae-list li::before {
    content: "✓";
    position: absolute;
    top: 0;
    left: 0;
    color: var(--dae-accent-dark);
    font-weight: 900;
}

/* ---------- Sous-parties / cartes ---------- */

.dae-cards {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 20px;
}

.dae-card {
    display: flex;
    flex: 1 1 285px;
    flex-direction: column;
    min-width: 0;
    padding: 28px;
    border: 1px solid var(--dae-border);
    border-radius: var(--dae-radius);
    background: var(--dae-white);
    box-shadow: 0 12px 35px rgba(7, 52, 85, .06);
}

.dae-card__line {
    width: 48px;
    height: 4px;
    margin-bottom: 22px;
    border-radius: 99px;
    background: var(--dae-accent);
}

.dae-card__content {
    display: flex;
    flex: 1;
    flex-direction: column;
}

.dae-card .dae-list {
    margin-bottom: 18px;
}

.dae-section--navy .dae-card {
    border-color: rgba(255, 255, 255, .12);
    background: rgba(255, 255, 255, .07);
    box-shadow: none;
}

.dae-section--navy .dae-card p,
.dae-section--navy .dae-card li {
    color: rgba(255, 255, 255, .82);
}

/* ---------- FAQ ---------- */

.dae-section--faq {
    background: var(--dae-white);
}

.dae-faq {
    gap: 12px;
}

.dae-faq__item {
    overflow: hidden;
    border: 1px solid var(--dae-border);
    border-radius: 14px;
    background: var(--dae-white);
}

.dae-faq__item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 20px 22px;
    color: var(--dae-navy);
    cursor: pointer;
    list-style: none;
    font-weight: 800;
}

.dae-faq__item summary::-webkit-details-marker {
    display: none;
}

.dae-faq__item summary span {
    display: inline-flex;
    flex: 0 0 30px;
    width: 30px;
    height: 30px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--dae-navy);
    background: var(--dae-accent);
    font-size: 20px;
    line-height: 1;
    transition: transform .25s ease;
}

.dae-faq__item[open] summary span {
    transform: rotate(45deg);
}

.dae-faq__answer {
    padding: 0 22px 20px;
    color: var(--dae-muted);
}

/* ---------- CTA ---------- */

.dae-cta {
    position: relative;
    overflow: hidden;
    padding: 82px 0;
    color: var(--dae-white);
    background: var(--dae-navy);
}

.dae-cta::before {
    content: "";
    position: absolute;
    top: -130px;
    right: -90px;
    width: 360px;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    background: rgba(196, 237, 105, .08);
}

.dae-cta__row {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
}

.dae-cta__content {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    max-width: 800px;
}

.dae-cta h2 {
    color: var(--dae-white);
}

.dae-cta p {
    color: rgba(255, 255, 255, .82);
}

.dae-cta__action {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
}

/* ---------- Liens associés ---------- */

.dae-related {
    padding: 70px 0;
    background: var(--dae-soft);
}

.dae-related__head {
    display: flex;
    flex-direction: column;
    max-width: 720px;
    margin-bottom: 28px;
}

.dae-related__head h2 {
    margin-bottom: 0;
}

.dae-related__links {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.dae-related__link {
    display: flex;
    flex: 1 1 330px;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    min-width: 0;
    padding: 18px 20px;
    border: 1px solid var(--dae-border);
    border-radius: 12px;
    color: var(--dae-navy) !important;
    background: var(--dae-white);
    text-decoration: none !important;
    font-weight: 750;
    box-shadow: 0 8px 24px rgba(7, 52, 85, .05);
    transition: transform .25s ease, border-color .25s ease;
}

.dae-related__link:hover {
    transform: translateY(-2px);
    border-color: var(--dae-accent-dark);
}

.dae-related__link > span:last-child {
    color: var(--dae-accent-dark);
    font-size: 20px;
}

/* ---------- Responsive ---------- */

@media (max-width: 980px) {
    .dae-section {
        padding: 68px 0;
    }

    .dae-section__row,
    .dae-cta__row {
        flex-direction: column;
    }

    .dae-section__heading,
    .dae-section__content {
        flex-basis: auto;
        width: 100%;
    }

    .dae-section__heading {
        max-width: 760px;
    }

    .dae-cta__action {
        width: 100%;
    }
}

@media (max-width: 700px) {
    .dae-container {
        width: min(var(--dae-container), calc(100% - 32px));
    }

    .dae-hero {
        min-height: 460px;
        padding: 82px 0 54px;
    }

    .dae-page h1 {
        font-size: clamp(34px, 10vw, 48px);
    }

    .dae-page h2 {
        font-size: clamp(26px, 8vw, 34px);
    }

    .dae-hero__actions,
    .dae-related__links {
        width: 100%;
        flex-direction: column;
    }

    .dae-hero__actions .dae-btn,
    .dae-related__link,
    .dae-cta__action .dae-btn {
        width: 100%;
    }

    .dae-section {
        padding: 56px 0;
    }

    .dae-section__row {
        gap: 30px;
    }

    .dae-card {
        flex-basis: 100%;
        padding: 24px 20px;
    }

    .dae-faq__item summary {
        padding: 18px;
    }

    .dae-faq__answer {
        padding: 0 18px 18px;
    }

    .dae-cta,
    .dae-related {
        padding: 58px 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .dae-btn,
    .dae-related__link,
    .dae-faq__item summary span {
        transition: none;
    }
}


/* ---------- Médias / photos de chantier ---------- */

.dae-media {
    display: flex;
    width: 100%;
    align-items: stretch;
    gap: 18px;
    margin-top: 12px;
}

.dae-media__item {
    position: relative;
    display: flex;
    flex: 1 1 0;
    min-width: 0;
    min-height: 330px;
    margin: 0;
    overflow: hidden;
    border-radius: var(--dae-radius);
    background: #e9f0f3;
    box-shadow: var(--dae-shadow);
}

.dae-media__item--large {
    flex-grow: 1.25;
}

.dae-media__item img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 330px;
    object-fit: cover;
    object-position: center;
    transition: transform .45s ease;
}

.dae-media__item:hover img {
    transform: scale(1.025);
}

.dae-media--single .dae-media__item {
    min-height: 400px;
}

.dae-media--single .dae-media__item img {
    min-height: 400px;
    max-height: 560px;
}

@media (max-width: 760px) {
    .dae-media {
        flex-direction: column;
    }

    .dae-media__item,
    .dae-media__item--large {
        flex: 1 1 auto;
        width: 100%;
        min-height: 260px;
    }

    .dae-media__item img,
    .dae-media--single .dae-media__item img {
        min-height: 260px;
        max-height: 420px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .dae-media__item img {
        transition: none;
    }
}
