/**
 * Footer Seche AE
 * Reproduction fidele de la maquette propositions/pages/home.html
 */

/* ==========================================================================
   Footer — fond teal, coins arrondis
   ========================================================================== */

.seche-footer {
    background-color: var(--wp--preset--color--teal);
    color: var(--wp--preset--color--white);
    border-radius: 0;
    padding: 40px 0 0;
    overflow: clip;
}

.seche-footer__inner {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 var(--seche-container-padding);
}

/* ==========================================================================
   Footer body — colonnes, groupe, bottom
   ========================================================================== */

.seche-footer__body {
    padding-top: 0;
}

/* 4 colonnes : 3 générées par le menu footer + colonne contact */
.seche-footer__cols {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    align-items: flex-start;
    gap: 24px;
    padding: 48px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* Le nav.seche-footer__menu se fond dans le grid parent : ses enfants <li>
   de niveau 1 deviennent colonnes. */
.seche-footer__menu,
.seche-footer__menu .leb-site-nav__list {
    display: contents;
}

/* Items de niveau 1 = colonnes (titres) */
.seche-footer__menu .leb-site-nav__list > li {
    display: flex;
    flex-direction: column;
    list-style: none;
    margin: 0;
    padding: 0;
}

.seche-footer__menu .leb-site-nav__list > li > a {
    font-family: var(--wp--preset--font-family--body);
    font-size: var(--wp--preset--font-size--sm);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--wp--preset--color--white);
    text-decoration: none;
    margin: 0 0 20px;
    pointer-events: none;
}

/* Sub-menu = liens de la colonne */
.seche-footer__menu .sub-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.seche-footer__menu .sub-menu li {
    margin: 0;
    font-size: var(--wp--preset--font-size--md);
    line-height: 1.5;
}

.seche-footer__menu .sub-menu a {
    font-family: var(--wp--preset--font-family--body);
    font-size: var(--wp--preset--font-size--md);
    color: rgba(255, 255, 255, 0.45);
    text-decoration: none;
    transition: color 0.3s ease;
}

.seche-footer__menu .sub-menu a:hover {
    color: var(--wp--preset--color--green-accent);
}

/* Colonne Contact */
.seche-footer__col--contact {
    background: rgba(166, 215, 28, 0.03);
    padding: 20px 16px;
    border-radius: 10px;
}

.seche-footer__col--contact h4 {
    font-family: var(--wp--preset--font-family--body);
    font-size: var(--wp--preset--font-size--sm);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--wp--preset--color--white);
    margin: 0 0 20px;
}

.seche-footer__col--contact .seche-footer__contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-family: var(--wp--preset--font-family--body);
    font-size: var(--wp--preset--font-size--md);
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.45);
    font-style: normal;
    margin: 0 0 12px;
}

.seche-footer__col--contact .leb-site-phone::before,
.seche-footer__col--contact .leb-site-address::before {
    content: '';
    display: block;
    width: 16px;
    height: 16px;
    margin-top: 4px;
    flex-shrink: 0;
    background-color: var(--wp--preset--color--green-accent);
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
}

.seche-footer__col--contact .leb-site-phone::before {
    -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><path d='M22 16.92v3a2 2 0 01-2.18 2 19.79 19.79 0 01-8.63-3.07 19.5 19.5 0 01-6-6 19.79 19.79 0 01-3.07-8.67A2 2 0 014.11 2h3a2 2 0 012 1.72c.127.96.361 1.903.7 2.81a2 2 0 01-.45 2.11L8.09 9.91a16 16 0 006 6l1.27-1.27a2 2 0 012.11-.45c.907.339 1.85.573 2.81.7A2 2 0 0122 16.92z'/></svg>");
    mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><path d='M22 16.92v3a2 2 0 01-2.18 2 19.79 19.79 0 01-8.63-3.07 19.5 19.5 0 01-6-6 19.79 19.79 0 01-3.07-8.67A2 2 0 014.11 2h3a2 2 0 012 1.72c.127.96.361 1.903.7 2.81a2 2 0 01-.45 2.11L8.09 9.91a16 16 0 006 6l1.27-1.27a2 2 0 012.11-.45c.907.339 1.85.573 2.81.7A2 2 0 0122 16.92z'/></svg>");
}

.seche-footer__col--contact .leb-site-address::before {
    -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><path d='M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0118 0z'/><circle cx='12' cy='10' r='3'/></svg>");
    mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><path d='M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0118 0z'/><circle cx='12' cy='10' r='3'/></svg>");
}

.seche-footer__col--contact .seche-footer__contact-item a,
.seche-footer__col--contact .leb-site-phone-link {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    transition: color 0.3s ease;
}

.seche-footer__col--contact .seche-footer__contact-item a:hover,
.seche-footer__col--contact .leb-site-phone-link:hover {
    color: var(--wp--preset--color--green-accent);
}

/* Réseaux sociaux (bloc acf/site-social du socle, alimenté par « Mon site ») :
   pastilles rondes sous l'adresse, absentes si aucun réseau n'est renseigné. */
.seche-footer__col--contact .seche-footer__social {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 12px;
}

.seche-footer__social .leb-social-link {
    display: inline-flex;
    color: var(--wp--preset--color--green-accent);
    text-decoration: none;
    transition: color 0.3s ease;
}

.seche-footer__social .leb-social-link:hover,
.seche-footer__social .leb-social-link:focus-visible {
    opacity: 1;
    color: var(--wp--preset--color--white);
}

.seche-footer__social .leb-social-link svg {
    width: 22px;
    height: 22px;
}

/* ==========================================================================
   Barre groupe — logos Séché
   ========================================================================== */

.seche-footer__groupe {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 40px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    flex-wrap: wrap;
}

.seche-footer__groupe-logo {
    flex-shrink: 0;
}

.seche-footer__groupe-sep {
    width: 1px;
    min-height: 40px;
    background: rgba(255, 255, 255, 0.1);
    align-self: stretch;
    flex-shrink: 0;
}

.seche-footer__groupe-logos {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.seche-footer__logo-card {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--wp--preset--color--white);
    border-radius: 16px;
    padding: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.seche-footer__logo-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.seche-footer__logo-card img {
    display: block;
    width: 110px;
    height: 67px;
    object-fit: contain;
}

.seche-footer__groupe-logos .seche-footer__logo-card:nth-child(odd) {
    border-radius: 16px 0 16px 0;
}

.seche-footer__groupe-logos .seche-footer__logo-card:nth-child(even) {
    border-radius: 0 16px 0 16px;
}

.seche-footer__groupe-logo .seche-footer__logo-card--groupe,
.seche-footer__logo-card--groupe {
    border-radius: 0 16px 16px 0;
}

.seche-footer__logo-card--current {
    outline: 2px solid var(--wp--preset--color--green-accent);
    outline-offset: -2px;
}

.seche-footer__groupe-tagline {
    font-family: var(--wp--preset--font-family--body);
    font-size: var(--wp--preset--font-size--xl);
    line-height: 1.3;
    color: rgba(255, 255, 255, 0.5);
    margin-left: auto;
    align-self: center;
    text-align: right;
    max-width: 320px;
}

/* ==========================================================================
   Footer bottom — copyright + legal
   ========================================================================== */

.seche-footer__bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    padding: 24px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    font-family: var(--wp--preset--font-family--body);
    font-size: var(--wp--preset--font-size--sm);
    color: rgba(255, 255, 255, 0.3);
}

.seche-footer__bottom a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.seche-footer__bottom a:hover {
    color: var(--wp--preset--color--green-accent);
}

/* Menu legal (bloc acf/site-nav) */
.seche-footer__bottom .seche-footer__legal,
.seche-footer__legal {
    display: flex;
}

.seche-footer__legal .leb-site-nav__list {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.seche-footer__legal .leb-site-nav__list a {
    font-family: var(--wp--preset--font-family--body);
    font-size: var(--wp--preset--font-size--sm);
    color: rgba(255, 255, 255, 0.3);
    text-decoration: none;
    transition: color 0.3s ease;
}

.seche-footer__legal .leb-site-nav__list a:hover {
    color: var(--wp--preset--color--green-accent);
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1024px) {
    .seche-footer {
        padding-top: 64px;
    }

    .seche-footer__inner {
        padding: 0 var(--seche-container-padding);
    }

    .seche-footer-cta {
        padding: 40px var(--seche-container-padding);
    }

    .seche-footer-cta__title {
        font-size: var(--wp--preset--font-size--3-xl);
    }

    .seche-footer-cta__logo {
        right: -140px;
        width: 200px;
        height: 200px;
    }

    .seche-footer__body {
        padding-top: 0;
    }

    .seche-footer__cols {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }

    .seche-footer__groupe {
        flex-wrap: wrap;
    }

    .seche-footer__groupe-tagline {
        margin-left: 0;
        text-align: left;
        flex: 1 1 100%;
    }
}

@media (max-width: 768px) {
    .seche-footer {
        border-radius: 0;
        padding-top: 48px;
    }

    .seche-footer-cta {
        padding: 32px 24px;
    }

    .seche-footer-cta__title {
        font-size: var(--wp--preset--font-size--xl);
    }

    .seche-footer-cta__btn {
        width: 100%;
    }

    .seche-footer-cta__logo {
        display: none;
    }

    .seche-footer__cols {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .seche-footer__groupe {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 40px 0;
        margin-top: 40px;
        gap: 20px;
    }

    .seche-footer__groupe-sep {
        display: none;
    }

    .seche-footer__groupe-tagline {
        font-size: var(--wp--preset--font-size--lg);
        text-align: center;
    }

    .seche-footer__bottom {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 8px;
    }
}
