/* ============================================================
   Concept PVC — Footer
   ============================================================ */

.cpvc-footer {
    width: 100%;
    font-family: var(--cpvc-font);
    color: var(--cpvc-bleu);
    background: var(--cpvc-bleu);
}

.cpvc-footer *,
.cpvc-footer *::before,
.cpvc-footer *::after { box-sizing: border-box; }
.cpvc-footer a { color: inherit; text-decoration: none; }

/* ====================================================
   Bandeau bleu TOP — logo + contact + photo + CTA
   ==================================================== */
.cpvc-footer__top {
    background: var(--cpvc-bleu);
    padding: 90px 24px 50px;  /* padding-top élargi pour "baisser" le contenu */
}
.cpvc-footer__top-inner {
    max-width: 1600px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: auto 1fr auto auto;
    align-items: center;
    gap: 60px;
}

.cpvc-footer__logo {
    background: #fff;
    border-radius: 13px;
    padding: 14px 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.cpvc-footer__logo img {
    display: block;
    height: 80px;
    width: auto;
}

.cpvc-footer__contact {
    color: #FDFDFD;
    display: flex;
    flex-direction: column;
    gap: 20px;
    font-size: 14px;
    line-height: 1.5;
}
.cpvc-footer__contact-block strong {
    display: block;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 6px;
}
.cpvc-footer__contact-block span { font-weight: 500; }
.cpvc-footer__phone {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #FDFDFD;
}
.cpvc-footer__phone .icon { width: 16px; height: 16px; flex: 0 0 16px; }
.cpvc-footer__phone-label { font-weight: 500; font-size: 14px; }
.cpvc-footer__phone a { font-weight: 700; font-size: 18px; letter-spacing: 0.2px; }

.cpvc-footer__showroom {
    display: block;
    width: 213px;
    height: 150px;
    border-radius: 13px;
    overflow: hidden;
    transition: transform .2s ease;
}
.cpvc-footer__showroom:hover { transform: scale(1.02); }
.cpvc-footer__showroom img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.cpvc-footer__cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 5px 6px 5px 24px;
    background: var(--cpvc-jaune);
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    color: var(--cpvc-bleu);
    white-space: nowrap;
    transition: filter .15s ease;
}
.cpvc-footer__cta:hover { filter: brightness(1.05); }
.cpvc-footer__cta-icon {
    width: 34px; height: 34px;
    border-radius: 50%;
    background: var(--cpvc-jaune-soft);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 34px;
}
.cpvc-footer__cta-icon .icon { width: 16px; height: 16px; }

/* ====================================================
   Section produits (blanche) — 3 cols × 2 rangées
   ==================================================== */
.cpvc-footer__products {
    background: #FDFDFD;
    padding: 60px 24px 50px;
}
.cpvc-footer__products-inner {
    max-width: 1600px;
    margin: 0 auto;
}
.cpvc-footer__row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 60px;
    padding: 20px 0;
}
.cpvc-footer__col-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--cpvc-bleu);
    margin: 0 0 18px;
    padding: 0;
    line-height: 1.3;
}
.cpvc-footer__list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.cpvc-footer__list li { padding: 0; margin: 0; }
.cpvc-footer__list li + li {
    border-top: 1px solid rgba(38, 52, 119, 0.24);
}
.cpvc-footer__list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 4px;
    font-size: 14px;
    font-weight: 600;
    color: var(--cpvc-bleu);
    transition: opacity .15s ease, padding-left .15s ease;
}
.cpvc-footer__list a:hover { opacity: 0.7; padding-left: 8px; }
.cpvc-arrow {
    width: 16px;
    height: 8px;
    flex: 0 0 16px;
    background: var(--cpvc-bleu);
    -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 8'><path d='M1 4h13M10 0l4 4-4 4' stroke='black' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>") center / contain no-repeat;
            mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 8'><path d='M1 4h13M10 0l4 4-4 4' stroke='black' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>") center / contain no-repeat;
}

.cpvc-footer__sep {
    border: 0;
    height: 1px;
    background: rgba(38, 52, 119, 0.3);
    margin: 30px 0;
}
.cpvc-footer__all-menuiseries {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 24px;
    font-size: 16px;
    font-weight: 700;
    color: var(--cpvc-bleu);
    transition: gap .15s ease, opacity .15s ease;
}
.cpvc-footer__all-menuiseries:hover { gap: 16px; opacity: 0.7; }

.cpvc-footer__mainmenu {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 60px;
    padding: 20px 0 10px;
}
.cpvc-footer__mainmenu a {
    font-size: 16px;
    font-weight: 700;
    color: var(--cpvc-bleu);
    transition: opacity .15s ease;
}
.cpvc-footer__mainmenu a:hover { opacity: 0.7; }

/* ====================================================
   Bandeau bleu BOTTOM — 3 cercles + copyright
   ==================================================== */
.cpvc-footer__bottom {
    background: var(--cpvc-bleu);
    padding: 32px 24px 30px;
}
.cpvc-footer__bottom-inner {
    max-width: 1600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.cpvc-footer__decor {
    display: flex;
    justify-content: center;
}
.cpvc-footer__decor img {
    max-width: 100%;
    height: auto;
    width: 100%;
    max-height: 90px;
    object-fit: contain;
}
.cpvc-footer__legal {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    color: #FDFDFD;
    font-family: var(--cpvc-font);
    font-size: 14px;
}
.cpvc-footer__copy { font-weight: 600; }
.cpvc-footer__copy a { text-decoration: underline; }
.cpvc-footer__links {
    display: flex;
    gap: 64px;
    flex-wrap: wrap;
}
.cpvc-footer__links a { font-weight: 500; transition: opacity .15s ease; }
.cpvc-footer__links a:hover { opacity: 0.75; }

/* ============================================================
   Desktop medium (1200–1439px)
   ============================================================ */
@media (max-width: 1439px) {
    .cpvc-footer__top { padding: 48px 24px 40px; }
    .cpvc-footer__top-inner { gap: 40px; }
    .cpvc-footer__products { padding: 48px 24px 40px; }
    .cpvc-footer__row { gap: 40px; }
    .cpvc-footer__bottom { padding: 28px 24px; }
    .cpvc-footer__mainmenu { gap: 40px; }
}

/* ============================================================
   Tablette (768–1199px)
   ============================================================ */
@media (max-width: 1199px) {
    .cpvc-footer__top { padding: 40px 20px 36px; }
    .cpvc-footer__top-inner {
        grid-template-columns: auto 1fr;
        grid-template-rows: auto auto;
        gap: 32px 40px;
        align-items: start;
    }
    .cpvc-footer__logo { grid-column: 1; grid-row: 1; }
    .cpvc-footer__contact { grid-column: 2; grid-row: 1; }
    .cpvc-footer__showroom { grid-column: 1 / -1; grid-row: 2; width: 100%; height: 180px; }
    .cpvc-footer__cta { grid-column: 1 / -1; grid-row: 3; justify-self: center; }

    .cpvc-footer__products { padding: 40px 20px; }
    .cpvc-footer__row { grid-template-columns: repeat(2, 1fr); gap: 32px; }
    .cpvc-footer__mainmenu { gap: 28px; font-size: 15px; }
    .cpvc-footer__mainmenu a { font-size: 15px; }

    .cpvc-footer__bottom { padding: 24px 20px; }
}

/* ============================================================
   Mobile (< 768px)
   ============================================================ */
@media (max-width: 767px) {
    .cpvc-footer__top { padding: 32px 20px 28px; }
    .cpvc-footer__top-inner {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 24px;
    }
    .cpvc-footer__logo { align-self: center; padding: 12px 16px; }
    .cpvc-footer__logo img { height: 60px; }
    .cpvc-footer__contact { font-size: 13px; align-items: flex-start; }
    .cpvc-footer__showroom { width: 100%; height: 160px; }
    .cpvc-footer__cta { align-self: center; }

    .cpvc-footer__products { padding: 32px 20px 28px; }
    .cpvc-footer__row {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 12px 0;
    }
    .cpvc-footer__col-title { font-size: 15px; margin-bottom: 12px; }
    .cpvc-footer__list a { padding: 12px 4px; }
    .cpvc-footer__sep { margin: 20px 0; }
    .cpvc-footer__mainmenu {
        flex-direction: column;
        gap: 14px;
        padding: 14px 0;
    }
    .cpvc-footer__mainmenu a { font-size: 16px; }

    .cpvc-footer__bottom { padding: 24px 20px 20px; }
    .cpvc-footer__bottom-inner { gap: 18px; }
    .cpvc-footer__decor img { max-height: 70px; }
    .cpvc-footer__legal {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 12px;
        font-size: 13px;
    }
    .cpvc-footer__links { gap: 20px; justify-content: center; }
}

/* ============================================================
   Stacking + suppression du gap TT5 avant le footer
   ============================================================ */
/* Le footer template-part passe par-dessus la section précédente
   (zone-intervention dont la map déborde en bas) */
footer.wp-block-template-part {
    position: relative;
    z-index: 5;
    margin-top: -1px !important;
    margin-block-start: -1px !important;
}
:where(.wp-site-blocks) > footer.wp-block-template-part {
    margin-block-start: -1px !important;
}
.wp-site-blocks > footer { margin-top: -1px !important; margin-block-start: -1px !important; }

/* Mobile : le footer remonte un peu plus pour chevaucher le bas de l'image
   (qui est maintenant placée juste avant le footer en mobile). */
@media (max-width: 899px){
    footer.wp-block-template-part {
        margin-top: -40px !important;
        margin-block-start: -40px !important;
    }
    .wp-site-blocks > footer.wp-block-template-part {
        margin-block-start: -40px !important;
    }
}
