/* Élément sentinelle invisible (on le place un tout petit peu plus haut ou on ajuste son rôle) */
#footer-trigger {
    pointer-events: none;
    height: 1px;
    width: 100%;
}

/* Style général du Footer Fixe en mode "replié" (bandeau de 50px) */
#dynamic-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--color-bleu-fonce, #112233);
    color: var(--color-blanc, #ffffff);
    z-index: 1000;
    box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.2);
    font-family: var(--font-inter, sans-serif);
    
    /* Animation fluide basée sur transform et opacity */
    transform: translateY(calc(100% - 50px)); /* Seul le bandeau du haut (50px) dépasse */
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* État lorsque l'on atteint le bas de page (footer entièrement déployé) */
#dynamic-footer.is-expanded {
    transform: translateY(0); /* Remonte complètement pour tout afficher */
}

/* Le bandeau supérieur fait toujours 50px de haut */
.footer-top {
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-top h2 {
    margin: 0;
    font-size: 0.85rem;
}

/* Grille à 3 colonnes cachée/affichée proprement */
.footer-container {
    margin: 0 auto;
    padding: 1.5rem 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 2rem;
    align-items: start;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-col h4 {
    font-family: var(--font-playfair, serif);
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    color: var(--color-lin, #f0e6d2);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col ul li {
    margin-bottom: 0.4rem;
}

.footer-col ul li a {
    color: var(--color-blanc, #fff);
    text-decoration: none;
    font-size: 0.9rem;
    transition: opacity 0.2s;
}

.footer-col ul li a:hover {
    opacity: 0.6;
    text-decoration: underline;
}

.footer-contact-form {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-contact-form input,
.footer-contact-form textarea {
    width: 100%;
    padding: 0.4rem 0.6rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    color: #fff;
    font-size: 0.85rem;
    resize: none;
}

.footer-contact-form input::placeholder,
.footer-contact-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.footer-submit-btn {
    background-color: var(--color-lin, #f0e6d2);
    color: var(--color-bleu-fonce, #112233);
    border: none;
    padding: 0.4rem;
    border-radius: 3px;
    font-weight: 600;
    cursor: pointer;
    font-size: 0.85rem;
    transition: background 0.2s;
}

.footer-submit-btn:hover {
    background-color: #fff;
}

/* Responsive : passage en 1 seule colonne sur mobile */
@media (max-width: 768px) {
    .footer-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 1rem;
    }
}