/**
 * QUANTISDIGITALE - PIED-DE-PAGE (FOOTER)
 * Styles du footer et bouton retour haut
 */

/* PIED-DE-PAGE PRINCIPAL */

.pied-de-page {
    background: var(--couleur-fond-secondaire);
    border-top: 2px solid var(--couleur-bordure);
    padding: var(--espace-16) 0 var(--espace-8) 0;
    margin-top: var(--espace-16);
}

.conteneur {
    max-width: var(--conteneur-2xl);
    margin: 0 auto;
    padding: 0 var(--espace-6);
}

/* Contenu principal du footer */
.pied-de-page-contenu {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: var(--espace-12);
    margin-bottom: var(--espace-8);
}

/* Colonnes */
.pied-de-page-colonne {
    display: flex;
    flex-direction: column;
    gap: var(--espace-4);
}

/* Titre principal (logo) */
.pied-de-page-titre {
    font-family: var(--polices-titres);
    font-size: var(--texte-3xl);
    font-weight: var(--poids-bold);
    margin: 0 0 var(--espace-2) 0;
}

.pied-de-page-titre .logo-texte {
    display: inline-flex;
}

.pied-de-page-titre .logo-quantis {
    color: var(--couleur-texte);
}

.pied-de-page-titre .logo-digitale {
    color: var(--couleur-accent);
}

/* Description */
.pied-de-page-description {
    color: var(--couleur-texte-secondaire);
    font-size: var(--texte-sm);
    line-height: var(--ligne-relachee);
    margin-bottom: var(--espace-4);
}

/* Contact */
.pied-de-page-contact {
    display: flex;
    flex-direction: column;
    gap: var(--espace-2);
    margin-bottom: var(--espace-4);
}

.contact-item {
    display: flex;
    align-items: center;
    gap: var(--espace-2);
    font-size: var(--texte-sm);
    color: var(--couleur-texte-secondaire);
}

.contact-item i {
    color: var(--couleur-accent);
    font-size: var(--texte-base);
    width: 18px;
    text-align: center;
}

.contact-item a {
    color: var(--couleur-texte-secondaire);
    text-decoration: none;
    transition: var(--transition-rapide);
}

.contact-item a:hover {
    color: var(--couleur-accent);
}

/* Titres de section */
.pied-de-page-titre-section {
    font-family: var(--polices-titres);
    font-size: var(--texte-lg);
    font-weight: var(--poids-semibold);
    color: var(--couleur-texte);
    margin: 0 0 var(--espace-3) 0;
}

/* Listes */
.pied-de-page-liste {
    display: flex;
    flex-direction: column;
    gap: var(--espace-2);
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Liens */
.pied-de-page-lien {
    color: var(--couleur-texte-secondaire);
    font-size: var(--texte-sm);
    text-decoration: none;
    transition: all var(--transition-rapide);
    display: inline-flex;
    align-items: center;
    gap: var(--espace-2);
    position: relative;
}

.pied-de-page-lien::before {
    content: '';
    width: 0;
    height: 2px;
    background: var(--couleur-accent);
    transition: width var(--duree-normale);
}

.pied-de-page-lien:hover {
    color: var(--couleur-accent);
    transform: translateX(4px);
}

.pied-de-page-lien:hover::before {
    width: 12px;
}

/* RÉSEAUX SOCIAUX */

.reseaux-sociaux {
    display: flex;
    gap: var(--espace-2);
    margin-top: var(--espace-2);
}

.reseau-social {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--couleur-fond-carte);
    border: var(--bordure-1) solid var(--couleur-bordure);
    border-radius: var(--rayon-md);
    color: var(--couleur-texte);
    font-size: var(--texte-lg);
    text-decoration: none;
    transition: all var(--duree-normale);
}

.reseau-social:hover {
    background: var(--couleur-accent);
    border-color: var(--couleur-accent);
    color: var(--couleur-fond-principal);
    transform: translateY(-3px);
    box-shadow: var(--ombre-md);
}

/* NEWSLETTER */

.newsletter-description {
    color: var(--couleur-texte-secondaire);
    font-size: var(--texte-sm);
    line-height: var(--ligne-normale);
    margin: 0 0 var(--espace-4) 0;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: var(--espace-3);
}

.newsletter-groupe {
    display: flex;
    gap: var(--espace-2);
}

.newsletter-input {
    flex: 1;
    padding: var(--espace-3) var(--espace-4);
    background: var(--couleur-fond-carte);
    border: var(--bordure-1) solid var(--couleur-bordure);
    border-radius: var(--rayon-lg);
    color: var(--couleur-texte);
    font-family: var(--polices-texte);
    font-size: var(--texte-sm);
    transition: var(--transition-rapide);
}

.newsletter-input::placeholder {
    color: var(--couleur-texte-tertiaire);
}

.newsletter-input:focus {
    outline: none;
    border-color: var(--couleur-accent);
    box-shadow: 0 0 0 3px var(--couleur-bordure-focus);
}

.newsletter-btn {
    width: 48px;
    height: 48px;
    background: var(--couleur-accent);
    border: none;
    border-radius: var(--rayon-lg);
    color: var(--couleur-fond-principal);
    cursor: pointer;
    transition: all var(--duree-normale);
    display: flex;
    align-items: center;
    justify-content: center;
}

.newsletter-btn:hover {
    background: var(--couleur-accent-hover);
    transform: translateY(-2px);
    box-shadow: var(--ombre-accent);
}

.newsletter-btn:disabled {
    opacity: var(--opacite-disabled);
    cursor: not-allowed;
}

.newsletter-btn i {
    font-size: var(--texte-base);
}

.newsletter-message {
    font-size: var(--texte-xs);
    padding: var(--espace-2) var(--espace-3);
    border-radius: var(--rayon-md);
    display: none;
}

.newsletter-message.success {
    display: block;
    background: var(--couleur-succes-fond);
    color: var(--couleur-succes);
    border: var(--bordure-1) solid var(--couleur-succes-bordure);
}

.newsletter-message.error {
    display: block;
    background: var(--couleur-erreur-fond);
    color: var(--couleur-erreur);
    border: var(--bordure-1) solid var(--couleur-erreur-bordure);
}

/* SÉPARATEUR */

.pied-de-page-separateur {
    height: 2px;
    background: linear-gradient(
        90deg,
        transparent,
        var(--couleur-bordure) 20%,
        var(--couleur-bordure) 80%,
        transparent
    );
    margin: var(--espace-8) 0;
}

/* SECTION BAS (COPYRIGHT) */

.pied-de-page-bas {
    display: flex;
    justify-content: center;
    align-items: center;
}

.pied-de-page-copyright {
    color: var(--couleur-texte-secondaire);
    font-size: var(--texte-sm);
    text-align: center;
}

.pied-de-page-copyright p {
    margin: 0;
}

.pied-de-page-copyright strong {
    color: var(--couleur-texte);
    font-weight: var(--poids-semibold);
}

.pied-de-page-separator {
    margin: 0 var(--espace-2);
    color: var(--couleur-texte-tertiaire);
}

/* BOUTON RETOUR EN HAUT */

.bouton-retour-haut {
    position: fixed;
    bottom: var(--espace-8);
    right: var(--espace-8);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--couleur-accent);
    color: var(--couleur-fond-principal);
    border: none;
    border-radius: var(--rayon-rond);
    font-size: var(--texte-xl);
    cursor: pointer;
    box-shadow: var(--ombre-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all var(--duree-normale);
    z-index: var(--z-sticky);
}

.bouton-retour-haut.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.bouton-retour-haut:hover {
    background: var(--couleur-accent-hover);
    transform: translateY(-3px);
    box-shadow: var(--ombre-accent);
}

.bouton-retour-haut:active {
    transform: translateY(0);
}

/* ANIMATION APPARITION FOOTER */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.pied-de-page {
    animation: fadeInUp 0.6s ease-out;
}

/* RESPONSIVE */

/* Tablette */
@media (max-width: 1024px) {
    .pied-de-page-contenu {
        grid-template-columns: 1fr;
        gap: var(--espace-10);
    }
    
    .pied-de-page-colonne:first-child {
        padding-bottom: var(--espace-6);
        border-bottom: var(--bordure-1) solid var(--couleur-bordure);
    }
}

/* Mobile */
@media (max-width: 768px) {
    .pied-de-page {
        padding: var(--espace-12) 0 var(--espace-6) 0;
    }
    
    .conteneur {
        padding: 0 var(--espace-4);
    }
    
    .pied-de-page-contenu {
        gap: var(--espace-8);
    }
    
    .pied-de-page-titre {
        font-size: var(--texte-2xl);
    }
    
    .bouton-retour-haut {
        bottom: var(--espace-4);
        right: var(--espace-4);
        width: 45px;
        height: 45px;
        font-size: var(--texte-lg);
    }
}

/* Mobile très petit */
@media (max-width: 480px) {
    .pied-de-page-separator {
        display: block;
        margin: var(--espace-2) 0;
    }
    
    .pied-de-page-copyright {
        font-size: var(--texte-xs);
    }
}

/* MODE CLAIR */

:root.clair .pied-de-page,
[data-theme="clair"] .pied-de-page {
    background: var(--couleur-fond-secondaire);
}