/**
 * Footer Costume - Front Office Styles
 * Custom footer module for PrestaShop 8
 */

/* ========================================
   RESET & BASE
   ======================================== */

.footercostume {
    background-color: var(--fc-bg-color, #0d1b2a);
    color: var(--fc-text-color, #8899aa);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    /* Break out of Elementor / theme column so the band is truly full-bleed */
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    flex: 0 0 auto;
    min-width: 0;
    padding: 0;
    position: relative;
    box-sizing: border-box;
    /* Base gauche : le thème/Elementor centre souvent le widget ; le header/copyright rétablissent leur alignement */
    text-align: left;
}

.footercostume *,
.footercostume *::before,
.footercostume *::after {
    box-sizing: border-box;
}

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

/* Align with Elementor main container (1270px) + .elementor-widget-container horizontal padding (15px) */
.fc-container {
    max-width: 1270px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding: 0 15px;
}

/*
 * Pages CMS : #content-wrapper (1180px + 2rem) + chaîne Elementor (.elementor-column-wrap,
 * .elementor-widget-container, padding 15px). Le bloc .fc-container seul aligne le bord du
 * wrapper, pas le début du texte des paragraphes — d’où un décalage ~50px (mesure Playwright).
 */
/* #footercostume + !important : le thème / Elementor écrase sinon les longhands padding */
body.page-cms #footercostume .fc-container {
    max-width: var(--cp-container, 1180px) !important;
    padding-left: calc(2rem + 54px) !important;
    padding-right: calc(2rem + 54px) !important;
    box-sizing: border-box !important;
}

/* ========================================
   HEADER / LOGO SECTION
   ======================================== */

.fc-header {
    padding: 50px 0 30px;
    text-align: center;
}

.fc-logo {
    margin-bottom: 16px;
}

.fc-logo img {
    max-height: 70px;
    width: auto;
    display: inline-block;
    filter: brightness(0) invert(1);
    transition: filter 0.3s ease;
}

.fc-logo img:hover {
    filter: brightness(0) invert(1) drop-shadow(0 0 3px rgba(255,255,255,0.3));
}

.fc-tagline {
    color: var(--fc-text-color, #8899aa) !important;
    font-size: 15px;
    font-style: italic;
    letter-spacing: 0.3px;
    margin: 0;
    opacity: 0.85;
}

/* ========================================
   SEPARATOR
   ======================================== */

.fc-separator {
    height: 1px;
    background-color: var(--fc-separator-color, #1b2b3a);
    width: 100%;
}

.fc-separator-top {
    margin-bottom: 40px;
}

.fc-separator-bottom {
    margin-top: 40px;
}

/* ========================================
   COLUMNS GRID
   ======================================== */

.fc-columns-wrapper {
    padding: 10px 0;
    text-align: left !important;
}

.fc-columns {
    display: grid;
    gap: 30px;
    /* Empêche le thème / Elementor de centrer le contenu dans chaque cellule */
    justify-items: start;
}

.fc-columns[data-columns="1"] {
    grid-template-columns: minmax(0, 1fr);
}

.fc-columns[data-columns="2"] {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.fc-columns[data-columns="3"] {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.fc-columns[data-columns="4"] {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.fc-columns[data-columns="5"] {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.fc-columns[data-columns="6"] {
    grid-template-columns: repeat(6, minmax(0, 1fr));
}

/* ========================================
   COLUMN
   ======================================== */

.fc-column {
    padding: 0;
    margin: 0;
    width: 100%;
    min-width: 0;
    text-align: left !important;
}

.fc-column-title {
    color: var(--fc-title-color, #ffffff) !important;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin: 0 0 20px 0;
    padding: 0;
    position: relative;
    text-align: left !important;
    width: 100%;
}

/* ========================================
   LINKS
   ======================================== */

.fc-links {
    list-style: none;
    padding: 0 !important;
    margin: 0 !important;
    padding-inline-start: 0 !important;
    margin-inline-start: 0 !important;
    text-align: left !important;
    width: 100%;
}

.fc-link-item {
    margin: 0 0 10px 0;
    padding: 0 !important;
    text-align: left !important;
    list-style: none !important;
}

.fc-link-item:last-child {
    margin-bottom: 0;
}

.fc-link {
    color: var(--fc-link-color, #8899aa) !important;
    text-decoration: none !important;
    font-size: 14px;
    line-height: 1.5;
    transition: color 0.25s ease, padding-left 0.25s ease;
    /* block : aligne le texte au bord gauche comme le titre (évite le centrage des inline-block) */
    display: block;
    width: max-content;
    max-width: 100%;
    text-align: left !important;
}

a.fc-link:hover,
a.fc-link:focus {
    color: var(--fc-link-hover-color, #ffffff) !important;
    text-decoration: none !important;
    padding-left: 3px;
}

a.fc-link:visited {
    color: var(--fc-link-color, #8899aa) !important;
}

/* Text-only items (url = #) - no hover, no pointer */
span.fc-link-text {
    cursor: default;
    display: block;
    width: max-content;
    max-width: 100%;
}

.fc-link-bold {
    font-weight: 600;
    color: var(--fc-title-color, #ffffff) !important;
}

a.fc-link-bold:hover {
    color: var(--fc-link-hover-color, #ffffff) !important;
}

span.fc-link-bold {
    color: var(--fc-text-color, #8899aa) !important;
    font-weight: 600;
}

/* ========================================
   BOTTOM BAR / COPYRIGHT
   ======================================== */

.fc-bottom {
    background-color: var(--fc-bottom-bg-color, #0a1520);
    padding: 20px 0;
    text-align: center;
}

.fc-copyright {
    color: var(--fc-text-color, #8899aa) !important;
    font-size: 13px;
    margin: 0;
    opacity: 0.7;
    letter-spacing: 0.2px;
}

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

@media (max-width: 991px) {
    .fc-container {
        padding: 0 24px;
    }

    body.page-cms #footercostume .fc-container {
        padding: 0 24px !important;
    }

    .fc-column {
        padding: 0 10px;
    }

    .fc-columns {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 30px 20px;
    }

    .fc-header {
        padding: 40px 0 20px;
    }
}

@media (max-width: 767px) {
    .fc-columns {
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 25px;
    }

    .fc-column {
        padding: 0;
        text-align: left;
    }

    .fc-column-title {
        font-size: 12px;
        margin-bottom: 14px;
        text-align: left;
    }

    .fc-link {
        font-size: 13px;
    }

    .fc-link:hover {
        padding-left: 0;
    }

    .fc-header {
        /* Extra top space so logo/tagline clear the sticky header / white bar */
        padding: 52px 0 20px;
    }

    .fc-logo img {
        max-height: 50px;
    }

    .fc-tagline {
        font-size: 13px;
    }

    .fc-separator-top {
        margin-bottom: 25px;
    }

    .fc-separator-bottom {
        margin-top: 25px;
    }
}

@media (max-width: 480px) {
    .fc-container {
        padding: 0 16px;
    }

    body.page-cms #footercostume .fc-container {
        padding: 0 16px !important;
    }

    .fc-copyright {
        font-size: 12px;
    }
}

/* ========================================
   ANIMATION (subtle fade-in)
   ======================================== */

.fc-column {
    opacity: 0;
    transform: translateY(12px);
    animation: fcFadeIn 0.5s ease forwards;
}

.fc-column:nth-child(1) { animation-delay: 0.05s; }
.fc-column:nth-child(2) { animation-delay: 0.1s; }
.fc-column:nth-child(3) { animation-delay: 0.15s; }
.fc-column:nth-child(4) { animation-delay: 0.2s; }
.fc-column:nth-child(5) { animation-delay: 0.25s; }
.fc-column:nth-child(6) { animation-delay: 0.3s; }

@keyframes fcFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
