/* ==========================================================
   HEADER BÂTI / RENOV
   Même comportement que le header CLIM
   ========================================================== */

.renov-header,
.renov-header *,
.renov-header *::before,
.renov-header *::after {
    box-sizing: border-box;
}

.renov-header {
    --renov-header-blue: #0d4053;
    --renov-header-red: #e30613;
    --renov-header-white: #ffffff;

    position: relative;

    width: 100%;
    margin: 0;
    padding: 0;

    overflow: hidden;

    background-color: var(--renov-header-white);
}

.renov-header__container {
    position: relative;

    display: grid;
    grid-template-columns:
        minmax(0, 50%)
        minmax(0, 50%);

    align-items: stretch;

    gap: 0 !important;
    row-gap: 0 !important;
    column-gap: 0 !important;

    width: 100%;

    aspect-ratio: 1920 / 366;

    margin: 0 auto;
    padding: 0;

    overflow: hidden;
}


/* ==========================================================
   IMAGE DE GAUCHE
   ========================================================== */

.renov-header__image-zone {
    position: relative;

    align-self: stretch;

    width: 100%;
    height: 100%;
    min-width: 0;
    min-height: 0;

    margin: 0 !important;
    padding: 0 !important;

    overflow: hidden;
}

.renov-header__image {
    position: absolute;

    inset: 0;

    display: block;

    width: 100%;
    height: 100%;

    margin: 0 !important;
    padding: 0 !important;

    line-height: 0;
}

.renov-header__image img {
    display: block;

    width: 100%;
    height: 100%;
    max-width: none;

    margin: 0 !important;
    padding: 0 !important;

    vertical-align: top;

    object-fit: cover;
    object-position: center center;
}


/* ==========================================================
   ZONE ROUGE
   ========================================================== */

.renov-header__red-zone {
    position: relative;

    align-self: stretch;

    width: 100%;
    height: 100%;
    min-width: 0;
    min-height: 0;

    margin: 0 !important;
    padding: 0 !important;

    overflow: hidden;
}

.renov-header__red-zone::before {
    position: absolute;
    z-index: 0;

    inset: 0;

    display: block;

    width: 100%;
    height: 100%;

    background-color: var(--renov-header-red);

    clip-path: polygon(
            0 0,
            100% 0,
            100% 90%,
            0 100%
    );

    content: "";
}


/* ==========================================================
   CONTENU DE LA ZONE ROUGE
   ========================================================== */

.renov-header__content {
    position: absolute;
    z-index: 2;

    top: 44%;
    right: clamp(20px, 3.5vw, 85px);
    left: clamp(20px, 3.5vw, 85px);

    display: flex;
    align-items: center;
    justify-content: center;

    gap: clamp(14px, 1.6vw, 30px);

    min-width: 0;

    margin: 0;
    padding: 0;

    transform: translateY(-50%);
}


/* ==========================================================
   SLOGAN
   ========================================================== */

.renov-header__slogan {
    display: flex;
    flex: 0 1 auto;
    flex-direction: column;
    align-items: flex-end;

    min-width: 0;

    margin: 0;
    padding: 0;

    color: var(--renov-header-blue);

    line-height: 1;
    text-align: right;

    white-space: nowrap;
}

.renov-header__slogan-top {
    display: block;

    margin: 0;
    padding: 0;

    font-size: 50px;
    font-weight: 500;
    line-height: 1;
    letter-spacing: 0;

    white-space: nowrap;
}

.renov-header__slogan-bottom {
    display: block;

    margin: 7px 0 0;
    padding: 0;

    font-size: 50px;
    font-weight: 700;
    line-height: 1;

    white-space: nowrap;
}


/* ==========================================================
   SÉPARATEUR BLANC
   ========================================================== */

.renov-header__separator {
    display: block;
    flex: 0 0 2px;

    width: 2px;
    height: 76px;

    margin: 0;
    padding: 0;

    background-color: var(--renov-header-white);
}


/* ==========================================================
   LOGO BÂTI LEAL’O
   ========================================================== */

.renov-header__brand {
    display: flex;
    flex: 0 0 auto;
    align-items: center;

    gap: clamp(7px, 0.8vw, 12px);

    min-width: 0;

    margin: 0;
    padding: 0;

    color: var(--renov-header-white);
}

.renov-header__brand-icon {
    display: block;
    flex: 0 0 auto;

    width: 66px;
    height: 66px;

    margin: 0;
    padding: 0;

    line-height: 0;
}

.renov-header__brand-icon img {
    display: block;

    width: 100%;
    height: 100%;
    max-width: none;

    margin: 0;
    padding: 0;

    vertical-align: top;

    object-fit: contain;
}

.renov-header__brand-text {
    display: flex;
    flex-direction: column;

    margin: 0;
    padding: 0;

    color: var(--renov-header-white);

    font-family:
            "Roboto Condensed",
            Arial,
            sans-serif;

    font-size: 30px;
    line-height: 0.9;

    white-space: nowrap;
}

.renov-header__brand-text strong {
    display: block;

    margin: 0;
    padding: 0;

    font-weight: 700;
}

.renov-header__brand-text span {
    display: block;

    margin: 8px 0 0;
    padding: 0;

    font-weight: 500;
}


/* ==========================================================
   PC XXL
   1400PX ET PLUS
   ========================================================== */

@media screen and (min-width: 1400px) {

    .renov-header__container {
        grid-template-columns:minmax(0, 50%)minmax(0, 50%);
    }
    .renov-header__content {
        top: 44%;
        right: clamp(45px, 5vw, 100px);
        left: clamp(45px, 5vw, 100px);
        gap: clamp(18px, 2vw, 35px);
    }

    .renov-header__slogan-top,
    .renov-header__slogan-bottom {
        font-size: 50px;
    }

    .renov-header__separator {
        height: 76px;
    }

    .renov-header__brand-icon {
        width: 66px;
        height: 66px;
    }

    .renov-header__brand-text {
        font-size: 30px;
    }
}


/* ==========================================================
   PC LARGE
   1200PX À 1399PX
   ========================================================== */

@media screen and (min-width: 1200px) and (max-width: 1399.98px) {

    .renov-header__container {
        grid-template-columns:
            minmax(0, 50%)
            minmax(0, 50%);
    }

    .renov-header__content {
        top: 44%;

        right: clamp(18px, 2vw, 28px);
        left: clamp(18px, 2vw, 28px);

        gap: clamp(10px, 1.2vw, 17px);
    }

    .renov-header__slogan-top,
    .renov-header__slogan-bottom {
        font-size: 50px;
    }

    .renov-header__slogan-bottom {
        margin-top: 5px;
    }

    .renov-header__separator {
        height: 66px;
    }

    .renov-header__brand {
        gap: 7px;
    }

    .renov-header__brand-icon {
        width: 50px;
        height: 50px;
    }

    .renov-header__brand-text {
        font-size: 23px;
    }

    .renov-header__brand-text span {
        margin-top: 5px;
    }
}


/* ==========================================================
   PETIT PC
   992PX À 1199PX
   ========================================================== */

@media screen and (min-width: 992px) and (max-width: 1199.98px) {

    .renov-header__container {
        grid-template-columns:
            minmax(0, 44%)
            minmax(0, 56%);
    }

    .renov-header__content {
        top: 44%;

        right: 14px;
        left: 14px;

        gap: 10px;
    }

    .renov-header__slogan-top,
    .renov-header__slogan-bottom {
        font-size: 50px;
    }

    .renov-header__slogan-bottom {
        margin-top: 5px;
    }

    .renov-header__separator {
        height: 62px;
    }

    .renov-header__brand {
        gap: 6px;
    }

    .renov-header__brand-icon {
        width: 43px;
        height: 43px;
    }

    .renov-header__brand-text {
        font-size: 20px;
    }

    .renov-header__brand-text span {
        margin-top: 4px;
    }
}


/* ==========================================================
   TABLETTE
   768PX À 991PX
   ========================================================== */

@media screen and (min-width: 768px) and (max-width: 991.98px) {

    .renov-header__container {
        grid-template-columns:
            minmax(0, 50%)
            minmax(0, 50%);

        aspect-ratio: 1920 / 410;
    }

    .renov-header__content {
        top: 44%;

        right: 10px;
        left: 10px;

        gap: 8px;
    }

    .renov-header__slogan {
        flex: 1 1 auto;
    }

    .renov-header__slogan-top {
        font-size: clamp(23px, 3vw, 30px);
    }

    .renov-header__slogan-bottom {
        margin-top: 4px;

        font-size: clamp(25px, 3.3vw, 33px);
    }

    .renov-header__separator {
        flex: 0 0 1px;

        width: 1px;
        height: 44px;
    }

    .renov-header__brand {
        gap: 5px;
    }

    .renov-header__brand-icon {
        width: clamp(32px, 4.2vw, 40px);
        height: clamp(32px, 4.2vw, 40px);
    }

    .renov-header__brand-text {
        font-size: clamp(15px, 2vw, 19px);
    }

    .renov-header__brand-text span {
        margin-top: 4px;
    }
}


/* ==========================================================
   GRAND MOBILE
   521PX À 767PX
   On garde une composition horizontale propre
   ========================================================== */

@media screen and (min-width: 521px) and (max-width: 767.98px) {

    .renov-header {
        overflow: visible;
    }

    .renov-header__container {
        display: flex;
        flex-direction: column;

        gap: 0 !important;
        row-gap: 0 !important;
        column-gap: 0 !important;

        width: 100%;
        max-width: 100%;

        aspect-ratio: auto;

        margin: 0;
        padding: 0;

        overflow: visible;
    }

    .renov-header__image-zone {
        position: relative;

        flex: 0 0 auto;

        width: 100%;
        height: auto;

        aspect-ratio: 960 / 366;

        margin: 0 0 -1px !important;
        padding: 0 !important;

        overflow: hidden;
    }

    .renov-header__image {
        position: absolute;

        inset: 0;

        width: 100%;
        height: 100%;

        margin: 0 !important;
        padding: 0 !important;
    }

    .renov-header__image img {
        width: 100%;
        height: 100%;

        margin: 0 !important;
        padding: 0 !important;

        object-fit: cover;
        object-position: center center;
    }

    .renov-header__red-zone {
        position: relative;

        flex: 0 0 auto;

        width: 100%;
        height: auto;
        min-height: clamp(190px, 34vw, 225px);

        margin: -1px 0 0 !important;
        padding: 0 !important;

        overflow: hidden;
    }

    .renov-header__red-zone::before {
        top: -1px;
        bottom: 0;

        height: calc(100% + 1px);

        clip-path: polygon(
                0 0,
                100% 0,
                100% 91%,
                0 100%
        );
    }

    .renov-header__content {
        position: absolute;

        inset: 0;

        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;

        gap: clamp(12px, 2.5vw, 18px);

        margin: 0;

        padding: 15px 22px 30px;

        transform: none;
    }

    .renov-header__slogan {
        align-items: flex-end;

        width: auto;

        text-align: right;
    }

    .renov-header__slogan-top {
        font-size: clamp(24px, 4.2vw, 30px);
        text-align: right;
    }

    .renov-header__slogan-bottom {
        margin-top: 5px;

        font-size: clamp(27px, 4.8vw, 36px);
        text-align: right;
    }

    .renov-header__separator {
        flex: 0 0 2px;

        width: 2px;
        height: clamp(52px, 9vw, 66px);
    }

    .renov-header__brand {
        justify-content: flex-start;
    }

    .renov-header__brand-icon {
        width: clamp(42px, 8vw, 54px);
        height: clamp(42px, 8vw, 54px);
    }

    .renov-header__brand-text {
        font-size: clamp(19px, 3.7vw, 25px);
    }

    .renov-header__brand-text span {
        margin-top: 5px;
    }
}


/* ==========================================================
   MOBILE
   361PX À 520PX
   Là on passe en colonne
   ========================================================== */

@media screen and (min-width: 361px) and (max-width: 520px) {

    .renov-header {
        overflow: visible;
    }

    .renov-header__container {
        display: flex;
        flex-direction: column;

        gap: 0 !important;
        row-gap: 0 !important;
        column-gap: 0 !important;

        width: 100%;
        max-width: 100%;

        aspect-ratio: auto;

        margin: 0;
        padding: 0;

        overflow: visible;
    }

    .renov-header__image-zone {
        position: relative;

        flex: 0 0 auto;

        width: 100%;
        height: auto;

        aspect-ratio: 16 / 7;

        margin: 0 0 -1px !important;
        padding: 0 !important;

        overflow: hidden;
    }

    .renov-header__image {
        position: absolute;

        inset: 0;

        width: 100%;
        height: 100%;

        margin: 0 !important;
        padding: 0 !important;
    }

    .renov-header__image img {
        width: 100%;
        height: 100%;

        margin: 0 !important;
        padding: 0 !important;

        object-fit: cover;
        object-position: center center;
    }

    .renov-header__red-zone {
        position: relative;

        flex: 0 0 auto;

        width: 100%;
        height: 225px;
        min-height: 225px;

        margin: -1px 0 0 !important;
        padding: 0 !important;

        overflow: hidden;
    }

    .renov-header__red-zone::before {
        top: -1px;
        bottom: 0;

        height: calc(100% + 1px);

        clip-path: polygon(
                0 0,
                100% 0,
                100% 93%,
                0 100%
        );
    }

    .renov-header__content {
        position: absolute;

        inset: 0;

        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;

        gap: 11px;

        margin: 0;

        padding:
                15px
                18px
                31px;

        transform: none;
    }

    .renov-header__slogan {
        align-items: center;

        width: 100%;

        text-align: center;
    }

    .renov-header__slogan-top {
        font-size: clamp(23px, 6.5vw, 29px);
        text-align: center;
    }

    .renov-header__slogan-bottom {
        margin-top: 5px;

        font-size: clamp(26px, 7.3vw, 33px);
        text-align: center;
    }

    .renov-header__separator {
        flex: 0 0 2px;

        width: min(170px, 52vw);
        height: 2px;
    }

    .renov-header__brand {
        justify-content: center;
    }

    .renov-header__brand-icon {
        width: 45px;
        height: 45px;
    }

    .renov-header__brand-text {
        font-size: 22px;
    }

    .renov-header__brand-text span {
        margin-top: 5px;
    }
}


/* ==========================================================
   TRÈS PETIT MOBILE
   JUSQU’À 360PX
   ========================================================== */

@media screen and (max-width: 360px) {

    .renov-header {
        overflow: visible;
    }

    .renov-header__container {
        display: flex;
        flex-direction: column;

        gap: 0 !important;
        row-gap: 0 !important;
        column-gap: 0 !important;

        width: 100%;
        max-width: 100%;

        aspect-ratio: auto;

        margin: 0;
        padding: 0;

        overflow: visible;
    }

    .renov-header__image-zone {
        position: relative;

        flex: 0 0 auto;

        width: 100%;
        height: auto;

        aspect-ratio: 16 / 7;

        margin: 0 0 -1px !important;
        padding: 0 !important;

        overflow: hidden;
    }

    .renov-header__image {
        position: absolute;

        inset: 0;

        width: 100%;
        height: 100%;

        margin: 0 !important;
        padding: 0 !important;
    }

    .renov-header__image img {
        width: 100%;
        height: 100%;

        margin: 0 !important;
        padding: 0 !important;

        object-fit: cover;
        object-position: center center;
    }

    .renov-header__red-zone {
        position: relative;

        flex: 0 0 auto;

        width: 100%;
        height: 215px;
        min-height: 215px;

        margin: -1px 0 0 !important;
        padding: 0 !important;

        overflow: hidden;
    }

    .renov-header__red-zone::before {
        top: -1px;
        bottom: 0;

        height: calc(100% + 1px);

        clip-path: polygon(
                0 0,
                100% 0,
                100% 93%,
                0 100%
        );
    }

    .renov-header__content {
        position: absolute;

        inset: 0;

        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;

        gap: 10px;

        margin: 0;

        padding:
                14px
                14px
                29px;

        transform: none;
    }

    .renov-header__slogan {
        align-items: center;

        width: 100%;

        text-align: center;
    }

    .renov-header__slogan-top {
        font-size: 21px;
        text-align: center;
    }

    .renov-header__slogan-bottom {
        margin-top: 4px;

        font-size: 24px;
        text-align: center;
    }

    .renov-header__separator {
        flex: 0 0 2px;

        width: min(150px, 52vw);
        height: 2px;
    }

    .renov-header__brand {
        justify-content: center;
    }

    .renov-header__brand-icon {
        width: 41px;
        height: 41px;
    }

    .renov-header__brand-text {
        font-size: 20px;
    }

    .renov-header__brand-text span {
        margin-top: 4px;
    }
}

.depliant-bati-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    padding: 10px 18px;
    border: 1.5px solid #E30613;
    border-radius: 999px;
    background-color: #ffffff;

    color: #17445c;
    text-decoration: none;
    line-height: 1;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.depliant-bati-button__text {
    display: inline-block;
    color: #17445c;
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    white-space: nowrap;
}

.depliant-bati-button__arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    color: #17445c;
    font-size: 20px;
    font-weight: 400;
    line-height: 1;
    transform: translateY(-1px);
}

.depliant-bati-button:hover,
.depliant-bati-button:focus-visible {
    background-color: #E30613;
    border-color: #E30613;
    text-decoration: none;
}

.depliant-bati-button:hover .depliant-bati-button__text,
.depliant-bati-button:hover .depliant-bati-button__arrow,
.depliant-bati-button:focus-visible .depliant-bati-button__text,
.depliant-bati-button:focus-visible .depliant-bati-button__arrow {
    color: #ffffff;
}

.depliant-bati-button:focus-visible {
    outline: 2px solid rgba(227, 6, 19, 0.25);
    outline-offset: 3px;
}


