/* =========================================================
   KASTOR AFRICA — FOOTER PREMIUM
   Styles encapsulés pour éviter les conflits avec le thème.
   ========================================================= */
.kf-footer {
    --kf-red: #d0333d;
    --kf-red-deep: #570a11;
    --kf-ink: #4b070d;
    --kf-charcoal: #6f0d16;
    --kf-muted: #a9a9a9;
    --kf-line: rgba(255,255,255,.11);
    --kf-white: #fff;
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 83% 15%, rgba(224,77,85,.24), transparent 31%),
        linear-gradient(145deg, #681019 0%, #7f111b 52%, #4b070e 100%);
    color: var(--kf-white);
    margin-top: 0;
}

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

.kf-footer a { color: inherit; text-decoration: none; }

.kf-footer__cta-wrap {
    padding: 74px 0 0;
}

.kf-footer__cta {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 36px;
    padding: 42px 46px;
    border: 1px solid rgba(255,255,255,.13);
    border-radius: 24px;
    overflow: hidden;
    background:
        linear-gradient(110deg, rgba(181,20,27,.96), rgba(143,14,20,.90)),
        #a91017;
    box-shadow: 0 24px 60px rgba(0,0,0,.22);
}

.kf-footer__cta::after {
    content: "";
    position: absolute;
    width: 310px;
    height: 310px;
    right: -90px;
    top: -145px;
    border-radius: 50%;
    border: 58px solid rgba(255,255,255,.065);
    pointer-events: none;
}

.kf-footer__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: rgba(255,255,255,.78);
}

.kf-footer__eyebrow::before {
    content: "";
    width: 28px;
    height: 1px;
    background: rgba(255,255,255,.75);
}

.kf-footer__cta h2 {
    position: relative;
    z-index: 1;
    margin: 0;
    max-width: 790px;
    color: #fff;
    font-size: clamp(30px, 3vw, 48px);
    line-height: 1.08;
    font-weight: 600;
    letter-spacing: -.035em;
}

.kf-footer__cta p {
    position: relative;
    z-index: 1;
    max-width: 760px;
    margin: 16px 0 0;
    color: rgba(255,255,255,.80);
    font-size: 16px;
    line-height: 1.7;
}

.kf-footer__cta-action {
    position: relative;
    z-index: 2;
    flex: 0 0 auto;
}

.kf-footer__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    min-height: 54px;
    padding: 0 24px;
    border-radius: 999px;
    background: #fff;
    color: #171717 !important;
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
    transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
}

.kf-footer__button:hover {
    transform: translateY(-2px);
    background: #f7f7f7;
    box-shadow: 0 12px 30px rgba(0,0,0,.20);
}

.kf-footer__button svg { width: 17px; height: 17px; }

.kf-footer__container {
    width: calc(100% - 64px);
    max-width: 1320px;
    margin-inline: auto;
}

.kf-footer__main {
    padding: 60px 0 40px;
}

.kf-footer__grid {
    display: grid;
    grid-template-columns: minmax(260px, 1.1fr) minmax(150px, .65fr) minmax(0, 2fr);
    gap: clamp(28px, 4vw, 64px);
    align-items: start;
}

.kf-footer__brand { max-width: 330px; }

.kf-footer__logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 178px;
    height: 104px;
    padding: 10px 14px;
    border: 1px solid rgba(255,255,255,.72);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 14px 32px rgba(42,0,0,.24);
    margin-bottom: 24px;
}

.kf-footer__logo img {
    display: block;
    width: 150px;
    max-width: 100%;
    height: auto;
    max-height: 84px;
    object-fit: contain;
}

.kf-footer__brand-copy {
    margin: 0;
    max-width: 310px;
    color: #bcbcbc;
    font-size: 14px;
    line-height: 1.78;
}

.kf-footer__signature {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 25px;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
}

.kf-footer__signature::before {
    content: "";
    width: 30px;
    height: 2px;
    background: var(--kf-red);
}

.kf-footer__title {
    margin: 3px 0 22px;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.kf-footer__links,
.kf-footer__contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.kf-footer__links li + li { margin-top: 11px; }

.kf-footer__links a {
    position: relative;
    display: inline-flex;
    align-items: center;
    color: #b9b9b9;
    font-size: 14px;
    line-height: 1.5;
    transition: color .22s ease, transform .22s ease;
}

.kf-footer__links a::before {
    content: "";
    width: 0;
    height: 1px;
    margin-right: 0;
    background: var(--kf-red);
    transition: width .22s ease, margin-right .22s ease;
}

.kf-footer__links a:hover {
    color: #fff;
    transform: translateX(2px);
}

.kf-footer__links a:hover::before {
    width: 15px;
    margin-right: 8px;
}

.kf-footer__locations {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.kf-footer__locations .kf-footer__title {
    margin: 3px 0 22px;
}

.kf-footer__offices {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.kf-footer__office {
    min-width: 0;
    padding: 20px 22px;
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 14px;
    background: rgba(255,255,255,.035);
}

.kf-footer__office-country {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 10px;
    color: #fff;
    font-size: 14px;
    font-weight: 750;
}

.kf-footer__office-country span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--kf-red);
    box-shadow: none;
}

.kf-footer__office address {
    margin: 0;
    color: #bdbdbd;
    font-style: normal;
    font-size: 13px;
    line-height: 1.65;
}

.kf-footer__office a {
    display: block;
    width: fit-content;
    color: #d8d8d8;
    font-size: 13px;
    line-height: 1.65;
    transition: color .2s ease;
}

.kf-footer__office a:hover { color: #fff; }

.kf-footer__contact-entry {
    margin-top: 22px;
    padding-top: 20px;
    border-top: 1px solid var(--kf-line);
}

.kf-footer__contact-entry a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-size: 14px;
    font-weight: 650;
}

.kf-footer__contact-entry svg {
    width: 18px;
    height: 18px;
    color: var(--kf-red);
}

.kf-footer__newsletter-wrap {
    padding: 0 0 54px;
}

.kf-footer__newsletter {
    display: grid;
    grid-template-columns: minmax(0, .85fr) minmax(420px, 1.15fr);
    align-items: center;
    gap: 42px;
    padding: 34px 38px;
    border: 1px solid var(--kf-line);
    border-radius: 20px;
    background: rgba(255,255,255,.045);
}

.kf-footer__newsletter-copy h3 {
    margin: 0 0 10px;
    color: #fff;
    font-size: 25px;
    line-height: 1.2;
}

.kf-footer__newsletter-copy p {
    margin: 0;
    color: #aaa;
    font-size: 14px;
    line-height: 1.65;
}

.kf-footer__newsletter-form {
    display: grid;
    gap: 12px;
}

.kf-footer__newsletter-fields {
    display: grid;
    grid-template-columns: .75fr 1fr auto;
    gap: 9px;
}

.kf-footer__newsletter-input {
    min-width: 0;
    height: 48px;
    padding: 0 14px;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 11px;
    outline: none;
    background: rgba(255,255,255,.075);
    color: #fff;
    font-size: 14px;
}

.kf-footer__newsletter-input::placeholder { color: #8d8d8d; }
.kf-footer__newsletter-input:focus {
    border-color: rgba(213,29,38,.8);
    box-shadow: 0 0 0 3px rgba(181,20,27,.16);
}

.kf-footer__newsletter-submit {
    min-height: 48px;
    padding: 0 19px;
    border: 0;
    border-radius: 11px;
    background: var(--kf-red);
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    transition: background .2s ease, transform .2s ease;
}

.kf-footer__newsletter-submit:hover {
    background: var(--kf-red-deep);
    transform: translateY(-1px);
}

.kf-footer__newsletter-consent {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    color: #8f8f8f;
    font-size: 11px;
    line-height: 1.5;
}

.kf-footer__newsletter-consent input { margin-top: 2px; }
.kf-footer__newsletter-hp {
    position: absolute !important;
    left: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

.kf-footer__newsletter-notice {
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 12px;
    line-height: 1.5;
}

.kf-footer__newsletter-notice--success {
    background: rgba(16,185,129,.14);
    color: #a7f3d0;
    border: 1px solid rgba(16,185,129,.24);
}

.kf-footer__newsletter-notice--error {
    background: rgba(239,68,68,.12);
    color: #fecaca;
    border: 1px solid rgba(239,68,68,.22);
}

.kf-footer__bottom {
    border-top: 1px solid var(--kf-line);
}

.kf-footer__bottom-inner {
    min-height: 110px;
    padding: 36px 0 16px;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    gap: 0;
}

.kf-footer__copyright {
    margin: 0;
    color: #fff;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.6;
}

.kf-footer__newsletter-consent a {
    color: #d7d7d7;
    text-decoration: underline;
    text-underline-offset: 2px;
}

@media (max-width: 1199.98px) {
    .kf-footer__grid {
        grid-template-columns: minmax(0, 1.25fr) minmax(190px, .75fr);
        gap: 42px;
    }
    .kf-footer__locations {
        grid-column: 1 / -1;
        padding-top: 30px;
        border-top: 1px solid var(--kf-line);
    }
    .kf-footer__offices { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 991.98px) {
    .kf-footer__cta { grid-template-columns: 1fr; padding: 36px; }
    .kf-footer__grid { grid-template-columns: 1fr 1fr; gap: 42px 36px; }
    .kf-footer__locations { grid-column: 1 / -1; }
    .kf-footer__offices { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
    .kf-footer__office { padding: 18px; }
    .kf-footer__newsletter { grid-template-columns: 1fr; gap: 24px; }
}

@media (max-width: 767.98px) {
    .kf-footer__container { width: calc(100% - 36px); }
    .kf-footer__cta-wrap { padding-top: 48px; }
    .kf-footer__cta { padding: 30px 24px; border-radius: 20px; }
    .kf-footer__cta h2 { font-size: 31px; }
    .kf-footer__cta p { font-size: 14px; }
    .kf-footer__button { width: 100%; }
    .kf-footer__main { padding: 54px 0 42px; }
    .kf-footer__grid { grid-template-columns: 1fr; gap: 34px; }
    .kf-footer__brand { max-width: 100%; }
    .kf-footer__locations { grid-column: auto; margin: 0; padding-top: 26px; border-top: 1px solid var(--kf-line); }
    .kf-footer__offices { grid-template-columns: 1fr; gap: 12px; }
    .kf-footer__office { padding: 16px 18px; }
    .kf-footer__title { margin-bottom: 16px; }
    .kf-footer__bottom-inner {
        min-height: auto;
        padding: 28px 0 16px;
        flex-direction: column;
        align-items: flex-start;
    }
    .kf-footer__newsletter-wrap { padding-bottom: 42px; }
    .kf-footer__newsletter { padding: 28px 22px; }
    .kf-footer__newsletter-fields { grid-template-columns: 1fr; }
    .kf-footer__newsletter-submit { width: 100%; }
}
