/* ============================================
   FOOTER PERSONNALISÉ — PENSEZ SAUVAGE KRAFT
   ============================================ */

/* Supprimer footer natif GP (colophon + site-info) + tout espace residuel */
#colophon,
.site-info,
footer.site-info {
    display: none !important;
    height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    min-height: 0 !important;
    overflow: hidden !important;
}
/* Tuer le padding-bottom du conteneur de page GP */
#page,
.inside-page-header,
.site-content,
#content {
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
}

/* Footer pleine largeur, sort de tout conteneur parent */
.ps-footer-custom {
    background-image: url('../images/kraft-long.jpg');
    background-color: #C8A882;
    background-attachment: fixed;
    background-size: 6%;
    border-top: 3px solid #2C1810;
    /* Ligne orange fine au-dessus du trait noir + ombre chaude portee vers le haut */
    box-shadow:
        0 -1px 0 0 #D4600A,
        0 -6px 18px rgba(44, 24, 16, 0.55),
        0 -5px 22px rgba(212, 96, 10, 0.4);
    padding: 52px 7% 32px;
    font-family: 'OldNewspaperTypesALM', Georgia, serif;
    color: #2C1810;
    letter-spacing: -0.02em;
    /* Pleine largeur meme si parent contraint */
    width: 100vw;
    position: relative;
    left: 50%;
    margin-left: -50vw;
    box-sizing: border-box;
    z-index: 400;
}
/* Voile blanc tres leger sur le kraft : texture visible, ton plus clair */
.ps-footer-custom::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(255, 255, 255, 0.20);
    pointer-events: none;
    z-index: 0;
}
/* Tous les blocs contenu au-dessus du voile */
.ps-footer-pinson,
.ps-footer-colonnes,
.ps-footer-logos,
.ps-footer-mentions {
    position: relative;
    z-index: 1;
}

/* --- Pinson centre --- */
.ps-footer-pinson {
    text-align: center;
    margin-bottom: 42px;
}
.ps-footer-pinson img {
    width: 152px;
    height: auto;
    opacity: 0.85;
}

/* --- 3 colonnes --- */
.ps-footer-colonnes {
    display: flex;
    justify-content: space-around;
    align-items: flex-start;
    gap: 5%;
    max-width: 1300px;
    margin: 0 auto 52px;
    flex-wrap: wrap;
}
.ps-footer-col {
    flex: 1;
    min-width: 240px;
    max-width: 360px;
}

/* --- Titres colonnes : couleur texte sombre, pas orange, sans trait --- */
.ps-footer-titre {
    font-family: 'OldNewspaperTypesALM', Georgia, serif !important;
    color: #2C1810 !important;
    font-size: 1.85rem !important;
    font-weight: 400 !important;
    margin: 0 0 18px !important;
    padding-bottom: 0 !important;
    border-bottom: none !important;
    letter-spacing: -0.03em !important;
    white-space: nowrap !important;
}

/* --- Adresse avec filet gauche orange --- */
.ps-footer-adresse {
    font-style: normal;
    border-left: 2px solid #2C1810;
    padding-left: 11px;
    margin: 0 0 16px;
    line-height: 1.6;
    font-size: 1.42rem;
}
.ps-footer-adresse span {
    display: block;
}

/* --- "Contactez nous" : lien sobre --- */
.ps-footer-mail {
    font-size: 1.42rem;
    margin: 0 0 16px;
}
.ps-footer-mail a {
    color: #4B3319;
    text-decoration: none;
}
.ps-footer-mail a:hover {
    color: #D4600A;
    text-decoration-color: #D4600A;
}

/* --- Instagram : centre horizontalement --- */
.ps-footer-instagram {
    display: block;
    margin-top: 18px;
    text-align: left;
    padding-left: 14px;
}
.ps-footer-instagram img {
    opacity: 0.6;
    transition: opacity 0.2s;
    display: inline-block;
    width: 62px;
    height: 62px;
}
.ps-footer-instagram:hover img {
    opacity: 0.95;
}

/* --- Colonne A propos --- */
/* Colonne plus large pour que les lignes tiennent sans retour */
.ps-footer-apropos {
    min-width: 320px;
    max-width: 440px;
    flex: 1.6;
}
.ps-footer-apropos ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.ps-footer-apropos ul li {
    margin-bottom: 9px;
    font-size: 1.38rem;
    line-height: 1.25;
    padding-left: 18px;
    position: relative;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.ps-footer-apropos ul li::before {
    content: '•';
    position: absolute;
    left: 3px;
    font-size: 1em;
    color: #2C1810;
    line-height: 1.25;
}
.ps-footer-apropos ul li a {
    color: #2C1810;
    text-decoration: none;
}
.ps-footer-apropos ul li a:hover {
    color: #D4600A;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* --- Infolettre --- */
.ps-footer-label {
    display: block;
    font-size: 1.05rem;
    margin-bottom: 10px;
    color: #4B3319;
    font-family: 'OldNewspaperTypesALM', Georgia, serif;
}
.ps-footer-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.ps-footer-form input[type="email"] {
    font-family: Georgia, 'Times New Roman', serif;
    background: #eed9c5;
    border: 3px solid #2C1810;
    color: #2C1810;
    padding: 9px 14px;
    font-size: 1.35rem;
    border-radius: 7px;
    outline: none;
    width: 100%;
    box-sizing: border-box;
    transition: border-color 0.2s;
}
.ps-footer-form input[type="email"]:focus {
    border-color: #D4600A;
}
.ps-footer-form input[type="email"]::placeholder {
    color: rgba(44, 24, 16, 0.45);
    font-style: italic;
}
.ps-footer-form button {
    font-family: Georgia, 'Times New Roman', serif;
    background: #f7a034;
    color: #2C1810;
    border: 1px solid #5f5f69;
    padding: 8px 20px;
    font-size: 1.35rem;
    font-weight: 600;
    cursor: pointer;
    border-radius: 10px;
    box-shadow: 3px 4px 0 rgba(60, 40, 20, 0.32);
    transition: background 0.2s, box-shadow 0.2s;
    width: auto;
    align-self: flex-start;
    position: relative;
    overflow: hidden;
}
.ps-footer-form button:hover {
    background: #e8901f;
    box-shadow: 1px 2px 0 rgba(60, 40, 20, 0.2);
}

/* --- État chargement : ombre translucide qui balaye le texte pendant l'envoi AJAX --- */
.ps-footer-form-btn--chargement::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 70%;
    pointer-events: none;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(74, 27, 12, 0.45) 50%,
        transparent 100%
    );
    animation: ps-footer-btn-ombre 1.5s ease-in-out infinite;
}
@keyframes ps-footer-btn-ombre {
    from { transform: translateX(-120%); }
    to   { transform: translateX(240%); }
}

/* --- Newsletter footer : honeypot off-screen + messages AJAX --- */
.ps-newsletter-footer-honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}
.ps-footer-form-message {
    font-family: 'OldNewspaperTypesALM', Georgia, serif;
    font-style: italic;
    color: #2C1810;
    font-size: 1.1rem;
    line-height: 1.4;
    text-align: center;
}
.ps-footer-form-message:empty {
    display: none;
}
.ps-footer-form-message img {
    display: block;
    width: 125px;
    max-width: 100%;
    height: auto;
    margin: 0 auto 0.6rem;
}
.ps-footer-form-message--ok {
    color: #3a7a2a;
}
.ps-footer-form-message--erreur {
    color: #D4600A;
}
.ps-newsletter-footer-form--ok .ps-footer-label,
.ps-newsletter-footer-form--ok input[type="email"],
.ps-newsletter-footer-form--ok button[type="submit"] {
    display: none;
}
.ps-footer-form-message button {
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    color: #7D2B0B;
    text-decoration: underline;
    cursor: pointer;
    font: inherit;
    font-style: inherit;
}
.ps-footer-form-message button:hover,
.ps-footer-form-message button:focus {
    color: #D4600A;
}
.ps-footer-form-message button:disabled {
    cursor: wait;
    opacity: 0.6;
}

/* --- Logos : sans traits, espacement genereux --- */
.ps-footer-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 44px;
    padding: 20px 0 16px;
    border-top: none;
    border-bottom: none;
    margin: 0 auto 14px;
    max-width: 700px;
    flex-wrap: wrap;
}
.ps-footer-logos img {
    height: 65px;
    width: auto;
    opacity: 0.72;
    transition: opacity 0.2s;
}
.ps-footer-logos img:hover {
    opacity: 0.88;
}

/* --- Mentions legales --- */
.ps-footer-mentions {
    text-align: center;
    font-size: 1.15rem;
    color: rgba(44, 24, 16, 0.55);
    padding-top: 6px;
}
.ps-footer-mentions a {
    color: rgba(44, 24, 16, 0.55);
    text-decoration: underline;
    text-underline-offset: 2px;
}
.ps-footer-mentions a:hover {
    color: #D4600A;
}

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

@media (max-width: 820px) {
    .ps-footer-colonnes {
        flex-direction: column;
        align-items: center;
        gap: 36px;
    }
    .ps-footer-col {
        width: 100%;
        max-width: 380px;
        text-align: center;
    }
    .ps-footer-adresse {
        border-left: none;
        border-top: 2px solid #D4600A;
        padding-left: 0;
        padding-top: 8px;
        display: inline-block;
        text-align: left;
    }
    .ps-footer-apropos ul li {
        text-align: left;
        display: inline-block;
        width: 100%;
    }
    .ps-footer-logos {
        gap: 20px;
    }
    .ps-footer-instagram {
        display: inline-block;
        margin: 0 auto;
    }
}
