/* =========================================================
   FINAL CTA
   Bloc de bas de page avant le footer
========================================================= */

.final {
    position: relative;
    overflow: hidden;
    background: var(--red);
    color: var(--white);
}

/* Bande blanche décorative en haut */
.final::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: clamp(32px, 4vw, 48px);
    background: var(--white);
    clip-path: polygon(
        0 0,
        100% 0,
        100% 100%,
        0 0
    );
}

/* Texte décoratif en arrière-plan */
.final::after {
    content: "DEVIS · DEVIS · DEVIS · DEVIS · DEVIS · DEVIS";
    position: absolute;
    right: 0;
    bottom: clamp(-30px, -3vw, -40px);
    left: 0;
    z-index: 0;
    overflow: hidden;
    color: rgba(255, 255, 255, .08);
    font-family: var(--font-primary);
    font-size: clamp(4.5rem, 12vw, 10rem);
    font-weight: 800;
    letter-spacing: .02em;
    line-height: 1;
    white-space: nowrap;
    pointer-events: none;
}

/*
 * Les enfants du CTA doivent passer au-dessus
 * du texte décoratif.
 */
.final > * {
    position: relative;
    z-index: 1;
}

/* ---- Titre ---- */

.final h2 {
    color: var(--white);
    font-family: var(--font-primary);
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 800;
    letter-spacing: -.03em;
    line-height: .95;
}

/* Overrides scopés de .em / .em-white */
.final h2 .em,
.final h2 .em-white {
    font-style: italic;
    font-weight: 400;
}

/* ---- Texte ---- */

.final p {
    max-width: 520px;
    margin-top: clamp(18px, 2vw, 24px);
    color: rgba(255, 255, 255, .85);
    font-family: var(--font-secondary);
    font-size: var(--font-size-lg);
    line-height: 1.6;
}

/* ---- Actions du CTA ---- */

.final-actions {
    display: flex;
    align-items: right;
    gap: clamp(20px, 3vw, 40px);
}

/*
 * Les boutons génériques .btn restent régis par button.css.
 * On évite donc de redéfinir ici leurs dimensions.
 */

.final-actions a.btn {
    display: inline-flex;
    width: auto;
    align-self: flex-end;
}

/* =========================================================
   TÉLÉPHONE
========================================================= */

.phone-row {
    color: rgba(255, 255, 255, .85);
    font-family: var(--font-tertiary);
    font-size: var(--font-size-sm);
    letter-spacing: .08em;
    line-height: 1.8;
    text-align: right;
}

.phone-row .big {
    display: block;
    margin-top: 4px;
    color: var(--white);
    font-family: var(--font-primary);
    font-size: clamp(1.5rem, 2.5vw, 1.75rem);
    font-weight: 800;
    letter-spacing: -.01em;
    line-height: 1.1;
}

/* =========================================================
   FOOTER
========================================================= */

.site-footer {
    padding: clamp(56px, 8vw, 96px) 0 0;
    background: var(--anthracite);
    color: rgba(255, 255, 255, .7);
}

/* =========================================================
   TITRE DU FOOTER
========================================================= */

.footer-title {
    margin: 0;
    padding-bottom: clamp(40px, 5vw, 64px);
    border-bottom: 1px solid rgba(255, 255, 255, .10);
    color: var(--white);
    font-family: var(--font-primary);
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 800;
    letter-spacing: -.03em;
    line-height: .95;
}

.footer-title span {
    font-style: italic;
    font-weight: 400;
}

/* =========================================================
   CONTENU
========================================================= */

.footer-content {
    padding: clamp(48px, 6vw, 72px) 0;
}

/* =========================================================
   IDENTITÉ
========================================================= */

.footer-brand {
    display: flex;
    align-items: center;
    gap: clamp(12px, 1.5vw, 16px);
}

.footer-logo img {
    display: block;
    width: clamp(72px, 7vw, 90px);
    height: auto;
}

.footer-brand-text {
    display: flex;
    flex-direction: column;
}

.footer-brand-name {
    color: var(--white);
    font-family: var(--font-primary);
    font-size: var(--font-size-md);
    font-weight: 700;
}

.footer-brand-tag {
    color: rgba(255, 255, 255, .55);
    font-family: var(--font-tertiary);
    font-size: var(--font-size-xs);
}

.footer-description {
    max-width: 320px;
    margin: clamp(18px, 2.5vw, 24px) 0;
    font-family: var(--font-secondary);
    font-size: var(--font-size-md);
    line-height: 1.7;
}

.footer-social {
    display: flex;
    gap: 10px;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: rgba(255, 255, 255, .7);
    border: 1px solid rgba(255, 255, 255, .15);
    transition:
        color .2s ease,
        background-color .2s ease,
        border-color .2s ease,
        transform .2s ease;
}

.footer-social a:hover {
    color: var(--white);
    background: var(--red);
    border-color: var(--red);
    transform: translateY(-2px);
}

/* =========================================================
   MENUS
========================================================= */

.footer-heading {
    margin-bottom: clamp(18px, 2vw, 24px);
    color: var(--white);
    font-family: var(--font-tertiary);
    font-size: var(--font-size-xs);
    font-weight: 600;
    letter-spacing: .2em;
    line-height: 1.3;
    text-transform: uppercase;
}

.footer-heading::before {
    content: "●";
    margin-right: 8px;
    color: var(--red);
}

.footer-menu {
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-menu li + li {
    margin-top: 14px;
}

.footer-menu a {
    color: rgba(255, 255, 255, .65);
    font-family: var(--font-secondary);
    font-size: var(--font-size-md);
    transition: color .2s ease;
}

.footer-menu a:hover {
    color: var(--white);
    text-decoration: none;
}

/* =========================================================
   CONTACT
========================================================= */

.footer-contact-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 18px;
}

.footer-contact-row span {
    flex: 0 0 auto;
    min-width: 36px;
    color: var(--red);
    font-family: var(--font-tertiary);
    font-size: var(--font-size-xs);
    letter-spacing: .15em;
    line-height: 1.6;
    text-transform: uppercase;
}

.footer-contact-row p {
    margin: 0;
    color: rgba(255, 255, 255, .7);
    font-family: var(--font-secondary);
    font-size: var(--font-size-md);
    line-height: 1.6;
}

.footer-contact-row a {
    color: inherit;
    text-decoration: none;
    transition: color .2s ease;
}

.footer-contact-row a:hover {
    color: var(--white);
}

/* =========================================================
   BAS DE PAGE / MENTIONS LÉGALES
========================================================= */

.footer-bottom {
    padding: clamp(18px, 2vw, 24px) 0;
    border-top: 1px solid rgba(255, 255, 255, .08);
    color: rgba(255, 255, 255, .5);
    font-family: var(--font-tertiary);
    font-size: var(--font-size-xs);
    letter-spacing: .08em;
    line-height: 1.5;
    text-transform: uppercase;
}

.footer-legal-menu {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-legal-menu a,
.footer-copy,
.footer-credit {
    color: rgba(255, 255, 255, .5);
}

.footer-legal-menu a:hover,
.footer-credit a:hover {
    color: var(--white);
    text-decoration: none;
}

.footer-credit a {
    color: inherit;
}

/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 900px) {
    .final h2 {
        font-size: var(--font-size-4xl);
    }

    .final p {
        font-size: var(--font-size-md);
    }

    .phone-row {
        font-size: var(--font-size-xs);
    }

    .phone-row .big {
        font-size: var(--font-size-xl);
    }

    .footer-title {
        font-size: var(--font-size-4xl);
    }

    .footer-content {
        padding-top: 56px;
        padding-bottom: 56px;
    }

    .final-actions {
        align-items: center;
    }
}

@media (max-width: 640px) {
    .final::before {
        height: 32px;
    }

    .final::after {
        bottom: -12px;
        font-size: clamp(3.5rem, 17vw, 6rem);
    }

    .final h2 {
        font-size: clamp(2.25rem, 10vw, 3.5rem);
        line-height: .98;
    }

    .final p {
        margin-top: 18px;
        font-size: var(--font-size-md);
        line-height: 1.65;
    }

    .final-actions {
        align-items: stretch;
        flex-direction: column;
        gap: 20px;
    }

    .final-actions a.btn,
    .final-actions .btn {
        justify-content: center;
        align-self: stretch;
    }

    .phone-row {
        margin-top: 8px;
        font-size: var(--font-size-xs);
        text-align: left;
    }

    .phone-row .big {
        font-size: var(--font-size-xl);
    }

    .site-footer {
        padding-top: 56px;
    }

    .footer-title {
        padding-bottom: 40px;
        font-size: clamp(2.25rem, 10vw, 3.5rem);
        line-height: .98;
    }

    .footer-content {
        padding-top: 44px;
        padding-bottom: 44px;
    }

    .footer-brand {
        gap: 12px;
    }

    .footer-logo img {
        width: 72px;
    }

    .footer-description {
        margin-top: 18px;
        margin-bottom: 20px;
    }

    .footer-heading {
        margin-top: 32px;
    }

    .footer-content > .uk-grid > div:first-child .footer-heading {
        margin-top: 0;
    }

    .footer-contact-row {
        gap: 10px;
        margin-bottom: 16px;
    }

    .footer-bottom {
        font-size: 10px;
    }

    .footer-legal-menu {
        gap: 12px 18px;
    }
}

@media (max-width: 380px) {
    .final h2,
    .footer-title {
        font-size: clamp(2rem, 10vw, 2.75rem);
    }

    .phone-row .big {
        font-size: var(--font-size-lg);
    }

    .footer-legal-menu {
        display: block;
    }

    .footer-legal-menu li + li {
        margin-top: 8px;
    }
    .final-actions {
        align-items: left;
    }
}

/* =========================================================
   ACCESSIBILITÉ / MOUVEMENT RÉDUIT
========================================================= */

@media (prefers-reduced-motion: reduce) {
    .footer-social a,
    .footer-menu a,
    .footer-contact-row a {
        transition: none;
    }
}
