/* ==========================================================================
   Footer partagé (index, prestations, tarifs, à propos)
   Unités en px : le site passe html à 10px sous 970px, le footer garde
   ainsi la même échelle sur toutes les tailles d'écran.
   ========================================================================== */

.site-footer {
    --ft-bg: #cbc5a8;
    --ft-ink: #3f4a4e;          /* contraste 5.3:1 sur le fond */
    --ft-ink-soft: #4e5b60;     /* bleu ardoise du site */
    --ft-paper: #fafafa;
    --ft-line: rgba(63, 74, 78, 0.18);

    position: relative;
    background-color: var(--ft-bg);
    color: var(--ft-ink);
    text-align: left;
    min-height: 0;
    font-family: 'glacial_indifferenceregular', sans-serif;
    font-size: 16px;
    line-height: 1.6;
}

.site-footer a {
    color: inherit;
}

.ft-inner {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 48px 32px;
}

/* --- Rangée principale ------------------------------------------------ */

.ft-top {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr);
    gap: 64px;
}

.ft-brand-head {
    display: flex;
    align-items: center;
    gap: 16px;
}

.ft-logo img {
    display: block;
    width: 64px;
    height: 64px;
}

.ft-name {
    white-space: nowrap;
    font-size: 22px;
    font-weight: bold;
    letter-spacing: 0.02em;
    line-height: 1.2;
}

.ft-tagline {
    font-family: 'playfair_displayitalic', serif;
    font-size: 17px;
    color: var(--ft-ink-soft);
    line-height: 1.3;
}

.ft-baseline {
    margin-top: 24px;
    max-width: 34ch;
    font-size: 16px;
}

.ft-label {
    margin-bottom: 18px;
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.ft-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ft-nav a {
    font-family: 'playfair_displayitalic', serif;
    font-size: 19px;
}

.ft-links a {
    background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
    transition: background-size 0.3s ease;
    padding-bottom: 2px;
}

.ft-links a:hover,
.ft-links a:focus-visible,
.ft-links a[aria-current='page'] {
    background-size: 100% 1px;
}

.ft-contact li {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ft-contact svg {
    flex: none;
    width: 15px;
    height: 15px;
    fill: currentColor;
    opacity: 0.8;
}

.ft-social {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.ft-round {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: var(--ft-paper);
    color: var(--ft-ink);
    transition: background-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.ft-round svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.ft-round:hover,
.ft-round:focus-visible {
    background-color: var(--ft-ink-soft);
    color: var(--ft-paper);
    transform: translateY(-2px);
}

.ft-to-top {
    position: absolute;
    top: 80px;
    right: 48px;
    border: 1px solid var(--ft-line);
    background-color: transparent;
}

.ft-to-top svg {
    width: 16px;
    height: 16px;
}

/* --- Barre du bas ------------------------------------------------------- */

.ft-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px 32px;
    flex-wrap: wrap;
    margin-top: 64px;
    padding-top: 24px;
    border-top: 1px solid var(--ft-line);
    font-size: 14px;
}

.ft-legal,
.ft-credits {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    list-style: none;
}

.ft-legal li + li::before,
.ft-credits li + li::before {
    content: '·';
    margin: 0 12px;
    opacity: 0.6;
}

.ft-bottom a {
    text-decoration: underline;
    text-decoration-color: transparent;
    text-underline-offset: 3px;
    transition: text-decoration-color 0.25s ease;
}

.ft-bottom a:hover,
.ft-bottom a:focus-visible {
    text-decoration-color: currentColor;
}

.ft-credits a {
    font-weight: bold;
}

.site-footer :focus-visible {
    outline: 2px solid var(--ft-ink);
    outline-offset: 3px;
    border-radius: 2px;
}

.ft-round:focus-visible {
    border-radius: 50%;
}

@media (prefers-reduced-motion: reduce) {
    .site-footer * {
        transition: none !important;
    }
}

/* --- Tablette ------------------------------------------------------------ */

@media screen and (max-width: 1000px) {
    .ft-top {
        grid-template-columns: 1fr 1fr;
        gap: 48px 32px;
    }

    .ft-brand {
        grid-column: 1 / -1;
        padding-right: 64px;
    }
}

/* --- Mobile -------------------------------------------------------------- */

@media screen and (max-width: 640px) {
    .ft-inner {
        padding: 56px 24px 28px;
    }

    .ft-to-top {
        top: 56px;
        right: 24px;
    }

    .ft-top {
        gap: 40px 24px;
    }

    .ft-baseline {
        margin-top: 20px;
    }

    .ft-name {
        font-size: 20px;
    }

    .ft-tagline {
        font-size: 16px;
    }

    .ft-logo img {
        width: 56px;
        height: 56px;
    }

    .ft-nav a {
        font-size: 18px;
    }

    .ft-legal li:first-child {
        flex-basis: 100%;
        margin-bottom: 4px;
    }

    .ft-legal li:nth-child(2)::before {
        content: none;
    }

    .ft-bottom {
        flex-direction: column;
        align-items: flex-start;
        margin-top: 48px;
        gap: 12px;
        font-size: 13px;
    }

    .ft-credits {
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
    }

    .ft-credits li + li::before {
        content: none;
    }
}

@media screen and (max-width: 380px) {
    .ft-top {
        grid-template-columns: 1fr;
    }
}
