/* =========================================================
   FOOTER E-NOTIFIE - PLEINE LARGEUR / COLLÉ EN BAS
   ========================================================= */

html,
body {
    min-height: 100%;
    margin: 0;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: #f3f6fa;
}

.site-header {
    flex-shrink: 0;
}

main.container {
    flex: 1 0 auto;
    width: 100%;
}

/* Footer principal */
.site-footer {
    flex-shrink: 0;
    margin-top: auto;
    width: 100%;
    background: var(--footer-bg, #082743);
    color: var(--footer-text, #ffffff);
    padding: 34px 0 8px;
}

/* Contenu centré dans le footer */
.footer-inner {
    width: 100%;
    max-width: 980px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Colonnes */
.footer-grid {
    display: grid;
    align-items: start;
    gap: 70px;
}

.footer-grid.footer-four-columns {
    grid-template-columns: repeat(4, 1fr);
}

.footer-grid.footer-three-columns {
    grid-template-columns: repeat(3, 1fr);
}

/* Titres */
.footer-column h3 {
    margin: 0 0 10px;
    color: var(--footer-text, #ffffff);
    font-size: 16px;
    font-weight: 900;
    line-height: 1.2;
}

/* Listes */
.footer-column ul {
    margin: 0;
    padding-left: 15px;
}

.footer-column li {
    margin: 0 0 6px;
    color: var(--footer-text, #ffffff);
    font-size: 13px;
    line-height: 1.25;
}

/* Liens */
.footer-column a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 6px 0;
    color: var(--footer-link, #ffffff);
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
}

.footer-column a:hover {
    text-decoration: underline;
}

/* Copyright */
.footer-copyright {
    margin-top: 28px;
    text-align: center;
    color: var(--footer-text, #ffffff);
    font-size: 12px;
    font-weight: 700;
}

/* =========================================================
   BANNIÈRE COOKIES
   ========================================================= */

.cookie-banner {
    position: fixed;
    left: 24px;
    right: 24px;
    bottom: 24px;
    z-index: 9999;
    max-width: 1100px;
    margin: 0 auto;
    background: #ffffff;
    color: #001b3d;
    border: 1px solid #d7e1ef;
    border-radius: 14px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.18);
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
}

.cookie-text strong {
    display: block;
    font-size: 18px;
    margin-bottom: 6px;
    color: #001b3d;
}

.cookie-text p {
    margin: 0;
    font-size: 15px;
    line-height: 1.45;
    color: #1f344f;
}

.cookie-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.cookie-actions form {
    margin: 0;
}

.cookie-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px 18px;
    border-radius: 9px;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid transparent;
    white-space: nowrap;
}

.cookie-btn-primary {
    background: #0b5ed7;
    color: #ffffff;
    border-color: #0b5ed7;
}

.cookie-btn-primary:hover {
    background: #084bb0;
    border-color: #084bb0;
}

.cookie-btn-secondary {
    background: #ffffff;
    color: #0b5ed7;
    border-color: #0b5ed7;
}

.cookie-btn-secondary:hover {
    background: #eef5ff;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 900px) {
    .footer-grid.footer-four-columns,
    .footer-grid.footer-three-columns {
        grid-template-columns: repeat(2, 1fr);
        gap: 34px;
    }
}

@media (max-width: 600px) {
    .site-footer {
        padding: 30px 0 12px;
    }

    .footer-inner {
        padding: 0 22px;
    }

    .footer-grid.footer-four-columns,
    .footer-grid.footer-three-columns {
        grid-template-columns: 1fr;
        gap: 26px;
    }

    .footer-column h3 {
        font-size: 16px;
    }

    .footer-column a,
    .footer-column li {
        font-size: 14px;
    }

    .cookie-banner {
        flex-direction: column;
        align-items: stretch;
        left: 14px;
        right: 14px;
        bottom: 14px;
    }

    .cookie-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .cookie-btn {
        width: 100%;
    }
}
