/* SFELK system footer — French-flag navy + tricolor wave */
.sfelk-footer {
    --sf-navy: #0B2C78;
    --sf-navy-deep: #071E52;
    --sf-blue: #1A4CB8;
    --sf-flag-blue: #002395;
    --sf-red: #E10600;
    --sf-gold: #E7C56A;
    position: relative;
    background: var(--sf-navy);
    color: #fff;
    font-family: Outfit, "Segoe UI", sans-serif;
    overflow: hidden;
}

.sfelk-footer a {
    color: inherit;
    text-decoration: none;
}

.sfelk-footer__wrap {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.sfelk-footer__main {
    position: relative;
    z-index: 2;
    display: grid;
    gap: 28px;
    padding: 40px 0 88px;
}

.sfelk-footer__brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    min-width: 0;
}

.sfelk-footer__brand-mark {
    display: flex;
    justify-content: flex-start;
    width: 100%;
}

.sfelk-footer__shield {
    width: auto;
    height: 88px;
    max-width: 96px;
    flex: 0 0 auto;
    object-fit: contain;
    border-radius: 12px;
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, .18));
    animation: sfelkFootBreathe 5.4s ease-in-out infinite;
}

.sfelk-footer__brand-copy {
    min-width: 0;
    width: 100%;
}

.sfelk-footer__brand-copy strong {
    display: block;
    font-family: "Playfair Display", Georgia, "Times New Roman", serif;
    font-size: clamp(14px, 1.15vw, 16px);
    font-weight: 700;
    line-height: 1.28;
    letter-spacing: .01em;
    color: #fff;
}

.sfelk-footer__tagline {
    display: block;
    margin-top: 10px;
    max-width: 340px;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-style: italic;
    font-size: clamp(15px, 1.2vw, 17px);
    line-height: 1.35;
    color: rgba(255, 255, 255, .9);
}

.sfelk-footer__brand-lead {
    margin: 12px 0 0;
    max-width: 360px;
    font-size: 14px;
    line-height: 1.65;
    color: rgba(255, 255, 255, .84);
    font-weight: 450;
}

.sfelk-footer__brand-points {
    margin: 14px 0 0;
    padding: 0;
    list-style: none;
    max-width: 360px;
}

.sfelk-footer__brand-points li {
    position: relative;
    padding: 5px 0 5px 18px;
    font-size: 13.5px;
    line-height: 1.45;
    color: rgba(255, 255, 255, .88);
    font-weight: 500;
}

.sfelk-footer__brand-points li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.72em;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--sf-gold), var(--sf-red));
    box-shadow: 0 0 0 2px rgba(255, 255, 255, .12);
}

.sfelk-footer__brand-loc {
    margin: 14px 0 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13.5px;
    font-weight: 600;
    color: rgba(255, 255, 255, .92);
}

.sfelk-footer__brand-loc i {
    color: var(--sf-gold);
}

.sfelk-footer__col {
    border-top: 1px solid rgba(255, 255, 255, .16);
    padding-top: 16px;
}

.sfelk-footer h3 {
    margin: 0 0 14px;
    color: #fff;
    font-family: Outfit, "Segoe UI", sans-serif;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: .01em;
}

.sfelk-footer__col a,
.sfelk-footer__contact a,
.sfelk-footer__contact span {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 5px 0;
    color: rgba(255, 255, 255, .92);
    font-size: 14.5px;
    font-weight: 500;
    transition: color .25s ease, transform .25s ease;
}

.sfelk-footer__col a:hover,
.sfelk-footer__contact a:hover {
    color: var(--sf-gold);
    transform: translateX(3px);
}

.sfelk-footer__chev {
    font-size: 11px;
    width: 12px;
    opacity: .9;
    flex: 0 0 auto;
}

.sfelk-footer__contact i {
    width: 16px;
    text-align: center;
    opacity: .95;
    flex: 0 0 auto;
}

.sfelk-footer__social {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.sfelk-footer__social a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #fff;
    color: var(--sf-navy);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    padding: 0;
    box-shadow: 0 6px 14px rgba(0, 0, 0, .12);
    transition: transform .25s ease, background .25s ease, color .25s ease, box-shadow .25s ease;
    animation: sfelkFootBreathe 4.8s ease-in-out infinite;
}

.sfelk-footer__social a:nth-child(2) { animation-delay: .25s; }
.sfelk-footer__social a:nth-child(3) { animation-delay: .5s; }
.sfelk-footer__social a:nth-child(4) { animation-delay: .75s; }

.sfelk-footer__social a:hover {
    background: var(--sf-red);
    color: #fff;
    transform: translateY(-3px) scale(1.06);
    box-shadow: 0 12px 22px rgba(225, 6, 0, .28);
}

.sfelk-footer__lang-wrap {
    position: relative;
    display: inline-flex;
}

.sfelk-footer__lang-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    color: #fff;
    border: 0;
    cursor: pointer;
    font-family: inherit;
    font-weight: 600;
    font-size: 13.5px;
    padding: 4px 0;
    transition: color .2s ease;
}

.sfelk-footer__lang-btn:hover {
    color: var(--sf-gold);
}

.sfelk-footer__flag {
    width: 20px;
    height: 13px;
    display: inline-block;
    border-radius: 1px;
    background: linear-gradient(90deg, #0055A4 0 33.33%, #fff 33.33% 66.66%, #EF4135 66.66% 100%);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, .35);
    flex: 0 0 auto;
}

.sfelk-footer__lang-menu {
    display: none;
    position: absolute;
    right: 0;
    bottom: calc(100% + 10px);
    background: #fff;
    color: #142033;
    border-radius: 12px;
    box-shadow: 0 16px 40px rgba(16, 42, 92, .18);
    min-width: 148px;
    padding: 6px;
    z-index: 30;
}

.sfelk-footer__lang-wrap.is-open .sfelk-footer__lang-menu,
.sfelk-footer__lang-wrap.open .sfelk-footer__lang-menu {
    display: block;
}

.sfelk-footer__lang-menu button {
    width: 100%;
    text-align: left;
    background: transparent;
    border: 0;
    padding: 9px 11px;
    border-radius: 8px;
    cursor: pointer;
    font-family: inherit;
    font-weight: 600;
    font-size: 13.5px;
    color: #142033;
}

.sfelk-footer__lang-menu button:hover {
    background: #F3F6FB;
    color: var(--sf-navy);
}

.sfelk-footer__wave {
    position: absolute;
    right: 0;
    bottom: 46px; /* flush with copyright seam */
    width: min(520px, 48%);
    height: auto;
    max-height: 160px;
    object-fit: contain;
    object-position: right bottom;
    z-index: 3;
    pointer-events: none;
    user-select: none;
}

.sfelk-footer__legal {
    position: relative;
    z-index: 2;
    background: var(--sf-navy-deep);
    color: rgba(255, 255, 255, .84);
    font-size: 13px;
    font-weight: 500;
    padding: 13px 0;
    border-top: 1px solid rgba(255, 255, 255, .18);
}

.sfelk-footer__legal-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px 20px;
}

.sfelk-footer__copy {
    margin: 0;
    flex: 1 1 220px;
}

.sfelk-footer__legal-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 14px 18px;
    margin-left: auto;
}

.sfelk-footer__legal-follow {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.sfelk-footer__legal-label {
    font-size: 13px;
    font-weight: 700;
    color: rgba(255, 255, 255, .92);
    white-space: nowrap;
}

.sfelk-footer__legal .sfelk-footer__social a {
    width: 32px;
    height: 32px;
    font-size: 13px;
}

.sfelk-footer__legal .sfelk-footer__lang-menu {
    bottom: calc(100% + 8px);
    top: auto;
}

.sfelk-footer__to-top {
    position: fixed;
    bottom: calc(5.5rem + env(safe-area-inset-bottom, 0px));
    right: max(1rem, env(safe-area-inset-right));
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, .28);
    background: var(--sf-navy);
    color: #fff;
    box-shadow: 0 12px 28px rgba(8, 24, 70, .28);
    cursor: pointer;
    z-index: 40;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transform: translateY(8px);
    transition: opacity .3s ease, transform .3s ease, background .25s ease;
}

.sfelk-footer__to-top.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: none;
}

.sfelk-footer__to-top:hover {
    background: var(--sf-red);
}

@keyframes sfelkFootBreathe {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}

@media (min-width: 720px) {
    .sfelk-footer__main {
        grid-template-columns: 1.2fr 1fr;
        gap: 28px 20px;
    }
}

@media (min-width: 1020px) {
    .sfelk-footer__main {
        grid-template-columns: 1.55fr .72fr 1.02fr;
        gap: 0 6px;
        align-items: start;
        padding: 44px 0 96px;
    }

    .sfelk-footer__col {
        border-top: 0;
        border-left: 1px solid rgba(255, 255, 255, .22);
        padding: 6px 0 6px 22px;
        margin-left: 8px;
        align-self: stretch;
    }
}

@media (max-width: 719px) {
    .sfelk-footer__wave {
        right: 0;
        bottom: 44px;
        width: min(340px, 92%);
        height: auto;
        max-height: 110px;
    }

    .sfelk-footer__main {
        padding-bottom: 108px;
    }

    .sfelk-footer__to-top {
        bottom: calc(6.25rem + env(safe-area-inset-bottom, 0px));
    }
}

@media (min-width: 768px) {
    .sfelk-footer__to-top {
        bottom: 1.75rem;
        right: 1.75rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .sfelk-footer__shield,
    .sfelk-footer__social a {
        animation: none !important;
    }
}
