/**
 * Footer Module - Styles
 *
 * Footer avec colonnes personnalisables, liens et contact
 */

/* ================================================
   CONTAINER PRINCIPAL
   ================================================ */

.cj-footer {
    position: relative;
    background: #0b0a09;
    color: #f3efe8;
    padding: 84px 6% 0;
    overflow: hidden;
}

/* ================================================
   IMAGE PERSONNAGE
   ================================================ */

.cj-footer__character {
    position: absolute;
    bottom: 0;
    height: clamp(800px, 104vh, 1260px);
    max-height: 100%;
    width: auto;
    object-fit: contain;
    object-position: right bottom;
    opacity: 0.13;
    z-index: 1;
    pointer-events: none;
    user-select: none;
}

.cj-footer__character--left {
    left: 0;
    transform: scaleX(-1);
    -webkit-mask-image: linear-gradient(
        to right,
        rgba(0, 0, 0, 0) 0%,
        rgba(0, 0, 0, 0) 28%,
        rgba(0, 0, 0, 1) 100%
    );
    mask-image: linear-gradient(
        to right,
        rgba(0, 0, 0, 0) 0%,
        rgba(0, 0, 0, 0) 28%,
        rgba(0, 0, 0, 1) 100%
    );
}

.cj-footer__character--right {
    right: 0;
    -webkit-mask-image: linear-gradient(
        to right,
        rgba(0, 0, 0, 0) 0%,
        rgba(0, 0, 0, 0) 28%,
        rgba(0, 0, 0, 1) 100%
    );
    mask-image: linear-gradient(
        to right,
        rgba(0, 0, 0, 0) 0%,
        rgba(0, 0, 0, 0) 28%,
        rgba(0, 0, 0, 1) 100%
    );
}

/* ================================================
   WATERMARK
   ================================================ */

.cj-footer__watermark {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 64px;
    z-index: 0;
    text-align: center;
    font-family: "Saira Condensed", sans-serif;
    font-weight: 900;
    font-size: clamp(70px, 19vw, 290px);
    line-height: 0.78;
    letter-spacing: -0.01em;
    color: #13110d;
    pointer-events: none;
    white-space: nowrap;
}

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

.cj-footer__content {
    position: relative;
    z-index: 2;
}

.cj-footer__grid {
    display: flex;
    flex-wrap: wrap;
    gap: 52px;
    justify-content: space-between;
    align-items: flex-start;
    padding-bottom: 58px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* ================================================
   COLONNE CTA
   ================================================ */

.cj-footer__cta {
    max-width: 520px;
}

.cj-footer__brand {
    display: flex;
    align-items: center;
    gap: 11px;
    margin-bottom: 28px;
}

.cj-footer__brand-icon {
    height: 40px;
    width: auto;
    display: block;
}

.cj-footer__brand-name {
    font-family: "Saira Condensed", sans-serif;
    font-weight: 900;
    font-size: 28px;
    letter-spacing: 0.02em;
    color: #f5f2ec;
}

.cj-footer__title {
    margin: 0 0 26px;
    font-family: "Saira Condensed", sans-serif;
    font-weight: 900;
    text-transform: uppercase;
    font-size: clamp(36px, 4.6vw, 66px);
    line-height: 0.9;
    color: #f3efe8;
}

/* ================================================
   BOUTONS CTA
   ================================================ */

.cj-footer__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

/* Buttons use shared assets/buttons.css. */

/* ================================================
   COLONNES DE LIENS
   ================================================ */

.cj-footer__heading {
    font-family: "Space Mono", monospace;
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #8d877d;
    margin-bottom: 18px;
}

.cj-footer__links {
    display: flex;
    flex-direction: column;
    gap: 11px;
    font-size: 15px;
}

.cj-footer__link {
    color: #cbc5bb;
    text-decoration: none;
    transition: color 200ms ease;
}

.cj-footer__link:hover {
    color: #f5f2ec;
}

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

.cj-footer__contact {
    min-width: 260px;
}

.cj-footer__contact-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    font-size: 15px;
    color: #cbc5bb;
}

.cj-footer__phone {
    color: #f3efe8;
    text-decoration: none;
    font-family: "Saira Condensed", sans-serif;
    font-weight: 800;
    font-size: 22px;
    letter-spacing: 0.02em;
    transition: color 200ms ease;
}

.cj-footer__phone:hover {
    color: #eb5d0f;
}

.cj-footer__email {
    color: #eb5d0f;
    text-decoration: none;
    transition: opacity 200ms ease;
}

.cj-footer__email:hover {
    opacity: 0.8;
}

.cj-footer__address {
    line-height: 1.5;
    color: #cbc5bb;
}

.cj-footer__certification {
    margin-top: 24px;
    display: inline-block;
    background: #fff;
    padding: 14px 16px;
    max-width: 320px;
}

.cj-footer__certification-image {
    display: block;
    width: 100%;
    height: auto;
}

/* ================================================
   TEXTE LÉGAL
   ================================================ */

.cj-footer__legal {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 26px 0 30px;
    margin-top: 34px;
    font-family: "Space Mono", monospace;
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #6f6a61;
    line-height: 1.8;
}

.cj-footer__legal-separator {
    margin: 0 6px;
}

.cj-footer__legal-link {
    color: #6f6a61;
    text-decoration: none;
    transition: color 200ms ease;
}

.cj-footer__legal-link:hover {
    color: #f5f2ec;
}

/* ================================================
   RESPONSIVE - 1200px
   ================================================ */

@media (max-width: 1200px) {
    .cj-footer__grid {
        gap: 38px;
    }
}

/* ================================================
   RESPONSIVE - 720px
   ================================================ */

@media (max-width: 720px) {
    .cj-footer {
        padding-top: 58px;
    }

    .cj-footer__grid {
        padding-bottom: 40px;
    }

    .cj-footer__brand {
        margin-bottom: 20px;
    }

    .cj-footer__brand-icon {
        height: 34px;
    }

    .cj-footer__brand-name {
        font-size: 24px;
    }

    .cj-footer__title {
        margin-bottom: 20px;
    }

    .cj-footer__actions {
        width: auto;
        gap: 10px;
    }

    .cj-footer__button {
        width: fit-content;
        max-width: 100%;
        min-height: 46px;
        font-size: 13px;
    }

    .cj-footer__button span:first-child {
        min-width: 0;
        flex: 0 1 auto;
        padding: 0 14px;
    }

    .cj-footer__button span:last-child {
        width: 46px;
    }

    .cj-footer__heading {
        margin-bottom: 12px;
        font-size: 10px;
    }

    .cj-footer__links {
        gap: 8px;
        font-size: 14px;
    }

    .cj-footer__contact-list {
        gap: 8px;
        font-size: 14px;
    }

    .cj-footer__phone {
        font-size: 20px;
    }

    .cj-footer__certification {
        margin-top: 16px;
    }

    .cj-footer__legal {
        margin-top: 20px;
        padding: 18px 0 22px;
        font-size: 10px;
        line-height: 1.55;
    }
}

/* ================================================
   RESPONSIVE - 600px
   ================================================ */

@media (max-width: 600px) {
    .cj-footer__actions {
        flex-direction: column;
        align-items: flex-start;
    }

    .cj-footer__button {
        height: 44px;
        font-size: 13px;
        max-width: 100%;
    }

    .cj-footer__button span:first-child {
        min-width: 0;
        padding: 0 14px;
        white-space: normal;
        flex: 0 1 auto;
        line-height: 1;
    }

    .cj-footer__button span:last-child {
        width: 44px;
        height: 44px;
    }

    .cj-footer__character {
        opacity: 0.1;
    }

    .cj-footer__title {
        font-size: clamp(38px, 13vw, 56px);
        line-height: 0.88;
    }
}

/* ================================================
   RESPONSIVE - 480px
   ================================================ */

@media (max-width: 480px) {
    .cj-footer {
        padding: 50px 18px 0;
    }

    .cj-footer__grid {
        display: grid;
        gap: 24px;
    }

    .cj-footer__contact {
        min-width: 0;
    }

    .cj-footer__certification {
        max-width: 260px;
    }
}
