/**
 * Asterisk Addons — footers
 *
 * Même principe que les headers : variables --atf-* fixées par les préréglages,
 * remplacées par les réglages du widget. Le pliage mobile est dans footer-mobile.css.
 */

.atf {
    --atf-max: 1320px;
    --atf-pad-x: clamp(20px, 4vw, 48px);
    --atf-pad-y: clamp(56px, 7vw, 96px);
    --atf-ease: cubic-bezier(.2, .7, .2, 1);
    --atf-font-body: inherit;
    --atf-font-display: inherit;
    --atf-bg: #111;
    --atf-color: #f5f5f5;
    --atf-muted: rgba(245, 245, 245, .6);
    --atf-line: rgba(245, 245, 245, .14);
    --atf-accent: currentColor;
    --atf-title-size: clamp(40px, 6vw, 88px);
    --atf-title-weight: 400;
    --atf-title-tracking: -.03em;
    --atf-logo-size: 28px;
    --atf-logo-weight: 400;
    --atf-logo-tracking: .2em;
    --atf-logo-transform: none;
    --atf-col-title-transform: uppercase;
    --atf-btn-bg: #f5f5f5;
    --atf-btn-color: #111;
    --atf-btn-icon-bg: #111;
    --atf-btn-icon-color: #f5f5f5;
    --atf-btn-radius: 999px;
    --atf-btn-icon-radius: 50%;
    --atf-radius: 32px;

    font-family: var(--atf-font-body);
    color: var(--atf-color);
}

.atf,
.atf *,
.atf *::before,
.atf *::after {
    box-sizing: border-box;
}

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

.atf li,
.atf p,
.atf h2,
.atf h3 {
    margin: 0;
}

.atf a {
    color: inherit;
}

.atf a,
.atf a:hover,
.atf a:focus {
    text-decoration: none;
    box-shadow: none;
}

.atf button,
.atf button:hover,
.atf button:focus {
    font: inherit;
    color: inherit;
    background: none;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
    margin: 0;
    text-transform: inherit;
    letter-spacing: inherit;
    cursor: pointer;
}

.atf svg {
    display: block;
    flex-shrink: 0;
}

.atf :focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 3px;
}

.atf-wrap {
    background: var(--atf-bg);
    overflow: hidden;
}

.atf--card .atf-wrap {
    margin: 0 clamp(10px, 1.5vw, 20px) clamp(10px, 1.5vw, 20px);
    border-radius: var(--atf-radius);
}

.atf-inner {
    width: 100%;
    max-width: var(--atf-max);
    margin: 0 auto;
    padding-left: var(--atf-pad-x);
    padding-right: var(--atf-pad-x);
}

/* ──────────────────────────────────────────
   Bandeau d'appel
   ────────────────────────────────────────── */

.atf-cta {
    padding: var(--atf-pad-y) 0 calc(var(--atf-pad-y) * .8);
    border-bottom: 1px solid var(--atf-line);
}

.atf-cta__inner {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 40px;
}

.atf-cta__eyebrow {
    margin-bottom: 18px !important;
    font-size: 13px;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--atf-muted);
}

.atf .atf-cta__title {
    font-family: var(--atf-font-display);
    font-size: var(--atf-title-size);
    font-weight: var(--atf-title-weight);
    letter-spacing: var(--atf-title-tracking);
    line-height: 1;
    color: inherit;
}

.atf .atf-btn,
.atf .atf-btn:hover,
.atf .atf-btn:focus {
    display: inline-flex;
    align-items: center;
    gap: 22px;
    flex-shrink: 0;
    min-height: 72px;
    padding: 9px 9px 9px 32px;
    font-size: 16px;
    font-weight: 500;
    color: var(--atf-btn-color);
    background: var(--atf-btn-bg);
    border: 1px solid var(--atf-btn-bg);
    border-radius: var(--atf-btn-radius);
    transition: background-color .35s, color .35s, border-color .35s;
}

/* Survol : couleurs dédiées si réglées, sinon effet contour (lisible sur tout fond) */
.atf .atf-btn:hover,
.atf .atf-btn:focus-visible {
    color: var(--atf-btn-color-h, var(--atf-btn-bg));
    background: var(--atf-btn-bg-h, transparent);
    border-color: var(--atf-btn-bg-h, var(--atf-btn-bg));
}

.atf .atf-btn:hover .atf-btn__icon,
.atf .atf-btn:focus-visible .atf-btn__icon {
    color: var(--atf-btn-icon-color-h, var(--atf-btn-color));
    background: var(--atf-btn-icon-bg-h, var(--atf-btn-bg));
}

.atf-btn__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    border-radius: var(--atf-btn-icon-radius);
    background: var(--atf-btn-icon-bg);
    color: var(--atf-btn-icon-color);
    transition: transform .55s var(--atf-ease), background-color .35s, color .35s;
}

.atf-btn__icon svg {
    width: 44%;
    height: 44%;
}

.atf-btn:hover .atf-btn__icon {
    transform: rotate(45deg);
}

/* ──────────────────────────────────────────
   Marque et colonnes
   ────────────────────────────────────────── */

.atf-main {
    padding: var(--atf-pad-y) 0;
}

.atf-main__inner {
    display: grid;
    grid-template-columns: minmax(240px, 1.1fr) minmax(0, 2fr);
    gap: clamp(40px, 6vw, 120px);
}

.atf .atf-logo {
    display: inline-block;
    margin-bottom: 22px;
    line-height: 1;
    color: var(--atf-logo-color, inherit);
}

.atf-logo__img {
    display: block;
    width: var(--atf-logo-w, 150px);
    max-width: 100%;
    height: auto;
}

.atf-logo__text {
    font-family: var(--atf-font-display);
    font-size: var(--atf-logo-size);
    font-weight: var(--atf-logo-weight);
    letter-spacing: var(--atf-logo-tracking);
    text-transform: var(--atf-logo-transform);
}

.atf-about {
    max-width: 380px;
    font-size: 15px;
    line-height: 1.65;
    color: var(--atf-muted);
}

.atf-contact {
    margin-top: 24px !important;
    font-size: 15px;
    line-height: 1.9;
}

.atf-contact a,
.atf-col__list a,
.atf-legal a {
    background-image: linear-gradient(currentColor, currentColor);
    background-size: 0 1px;
    background-repeat: no-repeat;
    background-position: 0 100%;
    transition: background-size .45s var(--atf-ease), color .3s;
}

.atf-contact a:hover,
.atf-col__list a:hover,
.atf-legal a:hover {
    color: var(--atf-accent);
    background-size: 100% 1px;
}

.atf-social {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 28px !important;
}

.atf .atf-social__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 1px solid var(--atf-line);
    border-radius: 50%;
    transition: background-color .3s, color .3s, border-color .3s;
}

.atf .atf-social__link:hover {
    background: var(--atf-color);
    border-color: var(--atf-color);
    color: var(--atf-bg);
}

.atf-social__link svg {
    width: 18px;
    height: 18px;
}

.atf-cols {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 40px;
}

.atf .atf-col__title {
    margin-bottom: 20px;
    font-family: var(--atf-font-body);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: .18em;
    text-transform: var(--atf-col-title-transform);
    line-height: 1.3;
    color: var(--atf-muted);
}

.atf-col__toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    text-align: inherit;
    pointer-events: none;
}

.atf-col__toggle svg {
    display: none;
    width: 18px;
    height: 18px;
}

.atf-col__list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    font-size: 16px;
    line-height: 1.35;
}

/* ──────────────────────────────────────────
   Barre légale
   ────────────────────────────────────────── */

.atf-bottom {
    border-top: 1px solid var(--atf-line);
    font-size: 13px;
    color: var(--atf-muted);
}

.atf-bottom__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px 32px;
    padding-top: 26px;
    padding-bottom: 26px;
}

.atf-legal {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 24px;
}

.atf .atf-top {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
    color: inherit;
    transition: color .3s;
}

.atf .atf-top:hover {
    color: var(--atf-color);
}

.atf-top svg {
    width: 16px;
    height: 16px;
    transition: transform .4s var(--atf-ease);
}

.atf-top:hover svg {
    transform: translateY(-3px);
}

/* ──────────────────────────────────────────
   Disposition centrée
   ────────────────────────────────────────── */

.atf--layout-centered .atf-cta__inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 34px;
}

.atf--layout-centered .atf-main__inner {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    gap: 56px;
}

.atf--layout-centered .atf-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.atf--layout-centered .atf-about {
    margin: 0 auto;
}

.atf--layout-centered .atf-social {
    justify-content: center;
}

.atf--layout-centered .atf-cols {
    width: 100%;
    max-width: 900px;
}

.atf--layout-centered .atf-col__list {
    align-items: center;
}

.atf--layout-centered .atf-col__toggle {
    justify-content: center;
}

/* ──────────────────────────────────────────
   Tablette
   ────────────────────────────────────────── */

@media (max-width: 1024px) {
    .atf-main__inner {
        grid-template-columns: 1fr;
    }

    .atf-cta__inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .atf--layout-centered .atf-cta__inner {
        align-items: center;
    }
}

@media (max-width: 767px) {
    .atf .atf-btn {
        min-height: 64px;
        width: 100%;
        justify-content: space-between;
        padding-left: 26px;
    }

    .atf-btn__icon {
        width: 48px;
        height: 48px;
    }

    .atf-bottom__inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .atf--layout-centered .atf-bottom__inner {
        align-items: center;
        text-align: center;
    }

    .atf .atf-top {
        margin-left: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .atf *,
    .atf *::before,
    .atf *::after {
        transition-duration: .01ms !important;
    }
}

/* ══════════════════════════════════════════
   Préréglages
   ══════════════════════════════════════════ */

.atf--preset-concierge {
    --atf-font-body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
    --atf-font-display: var(--atf-font-body);
    --atf-bg: #0f201a;
    --atf-color: #f2efe8;
    --atf-muted: rgba(242, 239, 232, .58);
    --atf-line: rgba(242, 239, 232, .14);
    --atf-accent: #c9a25e;
    --atf-logo-weight: 300;
    --atf-logo-size: 32px;
    --atf-logo-tracking: .24em;
    --atf-btn-bg: #f2efe8;
    --atf-btn-color: #0f201a;
    --atf-btn-icon-bg: #0f201a;
    --atf-btn-icon-color: #f2efe8;
}

.atf--preset-maison {
    --atf-font-body: "Jost", system-ui, sans-serif;
    --atf-font-display: "Cormorant Garamond", "Times New Roman", serif;
    --atf-bg: #efe8dc;
    --atf-color: #1b1712;
    --atf-muted: #7d705f;
    --atf-line: rgba(27, 23, 18, .14);
    --atf-accent: #9c7b4b;
    --atf-title-weight: 500;
    --atf-title-tracking: 0;
    --atf-logo-size: 36px;
    --atf-logo-weight: 500;
    --atf-logo-tracking: .06em;
    --atf-btn-bg: #1b1712;
    --atf-btn-color: #efe8dc;
    --atf-btn-icon-bg: #efe8dc;
    --atf-btn-icon-color: #1b1712;
    --atf-btn-radius: 0;
    --atf-btn-icon-radius: 0;
}

.atf--preset-palace {
    --atf-font-body: "Jost", system-ui, sans-serif;
    --atf-font-display: "Cormorant Garamond", "Times New Roman", serif;
    --atf-bg: #0c0b0a;
    --atf-color: #f3ede2;
    --atf-muted: rgba(243, 237, 226, .55);
    --atf-line: rgba(200, 169, 106, .22);
    --atf-accent: #c8a96a;
    --atf-title-size: clamp(44px, 7vw, 104px);
    --atf-title-tracking: -.01em;
    --atf-logo-size: 26px;
    --atf-logo-weight: 500;
    --atf-logo-tracking: .3em;
    --atf-logo-transform: uppercase;
    --atf-btn-bg: #c8a96a;
    --atf-btn-color: #0c0b0a;
    --atf-btn-icon-bg: #0c0b0a;
    --atf-btn-icon-color: #c8a96a;
    --atf-btn-radius: 0;
    --atf-btn-icon-radius: 0;
}

.atf--preset-palace .atf-cta__title {
    font-style: italic;
}

.atf--preset-palace .atf-col__title,
.atf--preset-palace .atf-cta__eyebrow {
    color: #c8a96a;
}

.atf--preset-atelier {
    --atf-font-body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
    --atf-font-display: var(--atf-font-body);
    --atf-bg: #f5f5f3;
    --atf-color: #111;
    --atf-muted: #6f6f6b;
    --atf-line: rgba(17, 17, 17, .1);
    --atf-accent: #111;
    --atf-title-weight: 500;
    --atf-title-size: clamp(36px, 5vw, 72px);
    --atf-logo-size: 18px;
    --atf-logo-weight: 600;
    --atf-logo-tracking: .32em;
    --atf-btn-bg: #111;
    --atf-btn-color: #fff;
    --atf-btn-icon-bg: #fff;
    --atf-btn-icon-color: #111;
}

.atf--preset-riviera {
    --atf-font-body: "Jost", system-ui, sans-serif;
    --atf-font-display: "Playfair Display", Georgia, serif;
    --atf-bg: #1f3a2e;
    --atf-color: #f4efe6;
    --atf-muted: rgba(244, 239, 230, .62);
    --atf-line: rgba(244, 239, 230, .16);
    --atf-accent: #d7b77f;
    --atf-title-tracking: -.01em;
    --atf-logo-size: 40px;
    --atf-logo-tracking: .02em;
    --atf-btn-bg: #f4efe6;
    --atf-btn-color: #1f3a2e;
    --atf-btn-icon-bg: #b08d57;
    --atf-btn-icon-color: #fff;
}

.atf--preset-noir {
    --atf-font-body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
    --atf-font-display: var(--atf-font-body);
    --atf-max: 1240px;
    --atf-bg: #111114;
    --atf-color: #f5f5f7;
    --atf-muted: #8a8a92;
    --atf-line: rgba(255, 255, 255, .08);
    --atf-accent: #fff;
    --atf-title-weight: 500;
    --atf-title-size: clamp(36px, 5.4vw, 80px);
    --atf-logo-size: 17px;
    --atf-logo-weight: 600;
    --atf-logo-tracking: .38em;
    --atf-btn-bg: #f5f5f7;
    --atf-btn-color: #0e0e10;
    --atf-btn-icon-bg: #0e0e10;
    --atf-btn-icon-color: #f5f5f7;
}
