/* ─────────────────────────────────────────────
   SUR-FOOTER — barre logo + bandeau photo superposés

   Le bandeau (absolute, inset:0) est en arrière-plan.
   La barre logo (relative, flux normal) est collée en bas
   via align-items:flex-end sur le parent.
   L'ordre DOM (bandeau avant logo-bar) gère l'empilement
   sans z-index. Hauteurs fluides via clamp().
   ───────────────────────────────────────────── */

.sur-footer {
    position: relative;
    height: clamp(120px, calc(91px + 9.1vw), 200px); /* 120px@320px → 200px@1200px */
    display: flex;
    align-items: flex-end; /* logo-bar collé en bas */
}

/* Bandeau photo — en arrière-plan, couvre tout le sur-footer.
   Premier dans le DOM → peint sous le logo-bar qui suit. */
.sur-footer__bandeau {
    position: absolute;
    inset: 0;
    background-repeat: repeat-x;
    background-size: auto 100%;
    background-position: center;
}

/* Barre logo — en flux normal, collée en bas par le flex parent */
.sur-footer__logo-bar {
    position: relative; /* crée un contexte d'empilement au-dessus du bandeau */
    width: 100%;
    height: clamp(100px, calc(76px + 7.6vw), 168px); /* proportionnel au sur-footer */
    display: flex;
    align-items: stretch;
}

/* Zone bleue depuis le bord gauche jusqu'à la shape */
.sur-footer__logo-area {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    background: var(--color-primary);
    padding-inline-start: var(--pad-header);
    padding-inline-end: clamp(var(--space-xs), 4vw, var(--space-xl));
}

.sur-footer__logo img {
    height: clamp(2.25rem, 5.8vw, 4.375rem); /* 36px@320px → 70px@1207px */
    width: auto;
}

/* Forme arrondie miroir du header (scaleX + scaleY)
   Le fond bleu s'arrête ici, le bandeau photo devient visible à droite */
.sur-footer__shape {
    flex-shrink: 0;
    height: 100%;
    aspect-ratio: 0.7;
    background: var(--color-primary);
    clip-path: url(#mask-header-shape);
    transform: scaleX(-1) scaleY(-1) translateX(2px);
}


/* Petits écrans : shape plus étroite + padding-start réduit
   → zone bleue (logo-area + shape) ≈ 25-28% de la largeur */
@media (width < 600px) {
    .sur-footer__shape {
        aspect-ratio: 0.4;
    }
    .sur-footer__logo-area {
        padding-inline-start: var(--space-xs);
    }
}


/* ─────────────────────────────────────────────
   FOOTER
   ───────────────────────────────────────────── */

.container-footer {
    position: relative;
    z-index: 3; /* passe devant le bandeau photo qui dépasse */
    background: var(--color-primary);
    color: var(--color-white);
    margin-top: -1rem; /* mord légèrement dans le bas du bandeau photo */
    padding-block: var(--space-xl);
}

.container-footer .grid-child {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-xl);
    align-items: start;
}

.container-footer a {
    color: var(--color-white);
}

.container-footer a:hover,
.container-footer a:focus {
    text-decoration: underline;
}

/* Listes de menu */
.container-footer .mod-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

/* Neutralise .mod-list li { padding: .25em 0 } de Cassiopeia — le gap gère l'espacement */
.container-footer .mod-menu li {
    padding: 0;
}

.container-footer .mod-menu a {
    
}

/* Bloc adresse */
.container-footer .mod-custom p {
    margin-block: var(--space-xs);    
    line-height: 1.5;
}

.container-footer .mod-custom strong {
    font-family: var(--font-heading);
    
    font-weight: 800;
}

/* CTA dans le footer */
.container-footer .cta {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    font-family: var(--font-heading);
    font-weight: 800;
    line-height: 1.3;
    padding: var(--space-sm) var(--space-md);
    margin: 0;
}

.container-footer .cta:has(br) {
    display: inline-block;
}

@media (width < 900px) {
    .container-footer .grid-child {
        grid-template-columns: 1fr 1fr;
    }
}

@media (width < 600px) {
    .container-footer {
        padding-block-start: var(--space-md);
    }

    .container-footer .grid-child {
        grid-template-columns: 1fr;
        gap: 0;
        text-align: center;
    }

    .container-footer .mod-menu {
        align-items: center;
    }

    /* Espacement entre blocs empilés : adresse, 2ème nav, section inscription */
    .container-footer .grid-child > address,
    .container-footer .grid-child > nav:nth-of-type(2),
    .container-footer .grid-child > section {
        margin-block-end: var(--space-md);
    }
}


/* ─────────────────────────────────────────────
   BARRE INFÉRIEURE — mentions légales + copyright
   ───────────────────────────────────────────── */

/* Span toutes les colonnes du grid-child (4 colonnes) + séparateur haut */
.footer-bottom {
    grid-column: 1 / -1;
    border-block-start: 1px solid var(--color-secondary);
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding-block-start: var(--space-md);
    font-size: 0.875rem;
}

/* Menu horizontal — override le flex-direction:column hérité de .container-footer .mod-menu */
.footer-bottom .mod-menu {
    flex-direction: row;
    flex-wrap: wrap;
    gap: var(--space-xs) var(--space-md);
    justify-content: flex-end;
}

.footer-bottom .mod-menu a {
    color: var(--color-white);
    text-decoration: none;
}

.footer-bottom .mod-menu a:hover,
.footer-bottom .mod-menu a:focus {
    text-decoration: underline;
}

@media (width < 600px) {
    .footer-bottom {
        justify-content: center;
    }

    .footer-bottom .mod-menu {
        justify-content: center;
    }
}
