/* CSS GLOBAL */
.custom-footer {
    background: var(--bg_color_footer);
    color: var(--color_footer_text);
    width: 100%;
    padding: 40px 20px;
    box-sizing: border-box;
}

.footer-logo-link img {
    max-width: 150px;
    height: auto;
    display: block;
}

.footer-logo-link:hover {
    opacity: 0.8;
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 10px;
}

.footer-contact-item i {
    color: var(--color1);
    font-size: 13px;
    min-width: 14px;
    margin-top: 3px;
}

.footer-contact-item a {
    text-decoration: none;
    color: inherit;
}

.footer-contact-item a:hover {
    text-decoration: underline;
}

.footer-adresse-content {
    flex: 1;
}

.footer-menu-list {
    list-style: none;
    padding: 0 !important;
    margin: 0;
    line-height: 1 !important;
}

.footer-menu-list li {
    margin-bottom: 8px;
}

.footer-menu-list a {
    text-decoration: none;
    color: inherit;
}

.footer-copyright,
.footer-col-copyright {
    font-size: 0.75rem !important;
    color: inherit !important;
}

.footer-copyright p,
.footer-copyright a,
.footer-col-copyright p,
.footer-col-copyright a {
    font-size: 0.75rem !important;
    color: inherit !important;
    margin: 0;
}

.footer-copyright a {
	text-decoration: none !important
	transition: 0.2s all ease-in-out;
}

.footer-copyright a:hover {
	color: var(--color1) !important;
	transition: 0.2s all ease-in-out;
	text-decoration: underline !important
}


.footer-menu-title {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 14px !important;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.custom-footer .social-links {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.custom-footer .social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--color1);
    text-decoration: none;
    font-size: 24px;
    transition: transform 0.3s ease;
}

.custom-footer .social-links a:hover {
    transform: scale(1.15);
    opacity: 0.7;
}

/* SWIPER */
.swiper-footer-logos {
    width: 100%;
    padding-bottom: 10px;
}

.footer-logo-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 60px;
}

.footer-logo-slide a {
    display: block;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-logo-slide img {
    max-width: 100%;
    max-height: 50px;
    object-fit: contain;
    filter: grayscale(100%);
    transition: filter 0.3s;
}

.footer-logo-slide img:hover {
    filter: grayscale(0%);
}

/* LAYOUTS DESKTOP */
.custom-footer-0 .footer-grid-0-top {
    display: grid;
    grid-template-columns: 50% 50%;
    gap: 0;
    margin-bottom: 40px;
    align-items: center;
}

.custom-footer-0 .footer-col-form {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: flex-end;
}

.custom-footer-0 .footer-col-form h3 {
    margin: 0;
    font-size: 18px !important;
    text-transform: uppercase;
    font-weight: 700;
    text-align: right;
}

.custom-footer-0 .footer-col-form .gform_wrapper {
    margin: 0 !important;
    width: 100%;
}

.custom-footer-0 .footer-col-form input[type="text"],
.custom-footer-0 .footer-col-form input[type="email"] {
    max-width: 400px !important;
    width: 100% !important;
    margin-left: auto !important;
    display: block;
}

.custom-footer-0 .footer-separator {
    height: 1px;
    background: rgba(125, 125, 125, 0.1);
    margin: 40px 0;
}

.custom-footer-0 .footer-grid-0-middle {
    display: grid;
    grid-template-columns: repeat(4, 25%);
    gap: 60px;
    margin-bottom: 40px;
}

.custom-footer-0 .footer-col-title {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 14px !important;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.custom-footer-0 .footer-about-content {
    line-height: 1.1;
    max-width: 80%;
}

.custom-footer-0 .footer-grid-0-bottom {
    display: grid;
    grid-template-columns: 50% 50%;
    gap: 0;
    align-items: center;
}

.custom-footer-0 .footer-col-social .social-links {
    justify-content: flex-end;
}

.custom-footer-1 .footer-grid-1 {
    display: grid;
    grid-template-columns: 40% 20% 20% 20%;
    gap: 0px;
    margin-bottom: 30px;
}

.custom-footer-1 .footer-bottom {
    text-align: right;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.custom-footer-1 .social-links {
    justify-content: right;
}

.custom-footer-2 .footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

.custom-footer-2 .footer-logo-center {
    text-align: center;
    margin-bottom: 30px;
}

.custom-footer-2 .footer-logo-link img {
    margin: auto
}

.custom-footer-2 .footer-grid-2 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 30px;
}

.custom-footer-2 .footer-col-social .social-links {
    justify-content: flex-end;
}

.custom-footer-2 .footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.custom-footer-3 .footer-grid-3-top {
    display: grid;
    grid-template-columns: 20% 20% 60%;
    margin-bottom: 30px;
    align-items: center;
}

.custom-footer-3 .footer-col-partners {
    width: 50%;
    margin-left: auto;
    padding-left: 20px;
}

.custom-footer-3 .footer-grid-3-bottom {
    display: grid;
    grid-template-columns: 70% 30%;
    align-items: end;
}

.custom-footer-3 .footer-col-copyright {
    text-align: right;
    align-self: end;
    word-wrap: break-word;
}


/* ========================================== */
/* FOOTER ID 4 - NOUVEAU DESIGN */
/* ========================================== */

.custom-footer-4 {
    padding: 0;
    background: var(--bg_color_footer);
}

/* MARQUEE */
.footer-marquee-wrapper {
    overflow: hidden;
    background: var(--bg_color_footer);
    padding: 50px 0;
}

.footer-marquee {
    display: flex;
    width: max-content;
}

.footer-marquee-content {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.marquee-text {
    font-size: 2.5rem;
    font-weight: 600;
    color: rgba(130, 130, 130, 0.5);
    text-transform: uppercase;
    letter-spacing: 2px;
    white-space: nowrap;
    padding: 0 20px;
}

.marquee-separator {
    color: rgba(255, 255, 255, 0.5);
    font-size: 2rem;
    padding: 0 30px;
}

/* CONTAINER PRINCIPAL */
.footer-4-container {
    width: 90%;
    max-width: 1400px;
    margin: 0 auto;
}

.footer-4-inner {
    background: var(--bg_color_footer2);
    border-radius: 25px 25px 0 0;
    padding: 50px 40px 40px 40px;
    margin-top: -10px;
}

/* GRID 4 COLONNES - ALIGNEMENT */
.footer-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: min-content auto;
    gap: 40px 30px;
    align-items: flex-start;
}

/* Col 1 (Logo+Desc) spans 2 rows */
.custom-footer-4 .footer-col-logo {
    grid-row: 1 / span 2;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

/* Autres colonnes commencent ligne 2 */
.custom-footer-4 .footer-col-menu,
.custom-footer-4 .footer-col-legal,
.custom-footer-4 .footer-col-social {
    grid-row-start: 2;
}

.custom-footer-4 .footer-logo-link {
    display: block;
    line-height: 0;
    /* MODIF : Marge réduite à 25px selon demande */
    margin-bottom: 25px;
    flex-shrink: 0;
}

.footer-description-text {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 0.85rem;
    opacity: 0.75;
}

.footer-col-contact-info {
    width: 100%;
    margin-top: 10px;
}

.custom-footer-4 .footer-logo-link img {
    max-width: 180px;
    width: 100%;
    height: auto;
    margin-bottom: 50px;
}

.custom-footer-4 a {
    text-decoration: none;
}

.custom-footer-4 .footer-menu-title {
    color: var(--color_footer_text);
    font-size: 13px !important;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    opacity: 0.7;
}

.custom-footer-4 .footer-menu-list li {
    margin-bottom: 12px;
}

.custom-footer-4 .footer-menu-list a {
    color: var(--color_footer_text);
    font-size: 0.95rem;
    transition: opacity 0.3s ease;
}

.custom-footer-4 .footer-menu-list a:hover {
    opacity: 0.6;
}

.custom-footer-4 .footer-col-social .social-links {
    flex-direction: row;
    gap: 20px;
}

.custom-footer-4 .footer-col-social .social-links a {
    font-size: 22px;
    color: var(--color_footer_text);
}

/* COPYRIGHT */
.footer-4-bottom {
    width: 80%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px 20px 30px 20px;
    text-align: center;
    background: var(--bg_color_footer2);
    color: var(--color_footer_text);
}

.custom-footer-4 .footer-copyright {
    font-size: 0.8rem !important;
    opacity: 0.6;
}

/* --- RESPONSIVE FOOTER 4 --- */
@media (max-width: 1024px) {

    .footer-4-container,
    .footer-4-bottom {
        width: 90%;
    }

    .footer-grid-4 {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto;
        gap: 40px 30px;
    }

    .custom-footer-4 .footer-col-logo {
        grid-row: auto;
    }

    .custom-footer-4 .footer-col-menu,
    .custom-footer-4 .footer-col-legal,
    .custom-footer-4 .footer-col-social {
        grid-row-start: auto;
    }

    .custom-footer-4 .footer-logo-link {
        margin-bottom: 20px;
    }

    .marquee-text {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {

    .footer-4-container,
    .footer-4-bottom {
        width: 95%;
    }

    .footer-4-inner {
        padding: 30px 25px;
    }

    .footer-grid-4 {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }

    .custom-footer-4 .footer-col-logo {
        align-items: center;
    }

    .custom-footer-4 .footer-logo-link img {
        margin: 0 auto;
    }

    .footer-description-text {
        text-align: center;
    }

    .footer-col-contact-info .footer-contact-item {
        justify-content: center;
    }

    /* FIX MOBILE POUR L'ADRESSE */
    /* Empêche le texte de prendre toute la largeur et de pousser l'icône à gauche */
    .footer-col-contact-info .footer-adresse-content {
        flex: 0 1 auto;
        /* Ne s'étire pas */
    }

    .custom-footer-4 .footer-col-social .social-links {
        justify-content: center;
    }

    .marquee-text {
        font-size: 1.5rem;
    }

    .marquee-separator {
        padding: 0 15px;
    }
}

/* --- MOBILE (Force Override) --- */
@media (max-width: 768px) {

    .custom-footer-0 .footer-grid-0-top,
    .custom-footer-0 .footer-grid-0-middle,
    .custom-footer-0 .footer-grid-0-bottom,
    .custom-footer-1 .footer-grid-1,
    .custom-footer-2 .footer-grid-2,
    .custom-footer-3 .footer-grid-3-top,
    .custom-footer-3 .footer-grid-3-bottom {
        display: flex !important;
        flex-direction: column !important;
        text-align: center !important;
    }

    /* GENERAL MOBILE */
    .footer-logo-link {
        display: block !important;
    }

    .footer-logo-link img {
        display: block !important;
        margin: 0 auto 10px auto !important;
        max-width: 150px !important;
        height: auto !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    .footer-col-logo {
        display: block !important;
        width: 100% !important;
        margin-bottom: 20px;
    }

    .custom-footer .social-links {
        justify-content: center !important;
    }

    /* --- ID 0 SPECIFIC (MODIFS DEMANDEES) --- */
    .custom-footer-0 .footer-col-logo {
        order: 1 !important;
        margin-bottom: 30px !important;
    }

    .custom-footer-0 .footer-col-form {
        order: 2 !important;
        margin-top: 0 !important;
        align-items: center;
    }

    .custom-footer-0 .footer-col-form h3 {
        text-align: center;
    }

    .custom-footer-0 .footer-col-form input {
        margin: 0 auto;
    }

    .custom-footer-0 h4,
    .custom-footer-0 .footer-col-title {
        display: none !important;
    }

    .custom-footer-0 .footer-about-content {
        text-align: center !important;
        margin: 0 auto !important;
        max-width: 100% !important;
    }

    .custom-footer-0 .footer-col-menu {
        display: none !important;
    }

    .custom-footer-0 .footer-col-contact i {
        display: none !important;
    }

    .custom-footer-0 .footer-contact-item {
        justify-content: center !important;
    }

    .custom-footer-0 .footer-adresse-content {
        text-align: center !important;
    }

    .custom-footer-0 .footer-col-social {
        margin-bottom: 25px !important;
    }

    .custom-footer-0 .footer-grid-0-bottom {
        flex-direction: column-reverse !important;
    }

    .custom-footer-0 .footer-col-partners {
        display: block !important;
        width: 100%;
        margin-bottom: 30px;
        padding-left: 0;
    }

    .custom-footer-0 .footer-col-empty {
        display: none;
    }

    /* --- ID 3 --- */
    .custom-footer-3 .footer-col-logo {
        order: 1 !important;
    }

    .custom-footer-3 .footer-col-social {
        width: 100% !important;
        margin-bottom: 25px !important;
        display: block !important;
    }

    .custom-footer-3 .footer-col-social .social-links {
        justify-content: center !important;
        display: flex !important;
        flex-direction: row !important;
        width: 100% !important;
    }

    .custom-footer-3 .footer-col-partners {
        display: block !important;
        width: 100% !important;
        margin-left: 0 !important;
        padding-left: 0 !important;
        margin-bottom: 30px !important;
    }

    .custom-footer-3 .swiper-footer-logos {
        width: 100% !important;
        display: block !important;
    }

    .custom-footer-3 .footer-col-copyright {
        text-align: center !important;
        margin-top: 10px;
        width: 100%;
        order: 2 !important;
    }

    .custom-footer-3 .footer-col-menu {
        display: none;
    }

    /* AUTRES */
    .custom-footer-1 .footer-col-menu {
        display: none;
    }
}