/* ============================================================
   LAKAY-FOOTER.CSS — Footer Lakay Company
   Remplace : toute la section FOOTER de style.css
              + section 15 de lakay-ui.css
   À charger APRÈS variables.css et style.css
   ============================================================ */

/* ============================================================
   0. TOKENS DU FOOTER (clair / sombre)
   Tu peux déplacer ce bloc dans variables.css.
   ============================================================ */
:root {
    --lk-ft-from:        var(--lk-blue-dk, #001580);
    --lk-ft-to:          #000A40;
    --lk-ft-bar:         #000A2E;
    --lk-ft-text:        rgba(255, 255, 255, .72);
    --lk-ft-muted:       rgba(255, 255, 255, .55);
    --lk-ft-faint:       rgba(255, 255, 255, .40);
    --lk-ft-line:        rgba(255, 255, 255, .08);
    --lk-ft-accent:      var(--lk-gold, #F5A623);   /* hovers, icônes */
    --lk-ft-accent-soft: var(--lk-gold, #F5A623);   /* slogan */
    --lk-ft-accent-ink:  var(--lk-blue-dk, #001580);/* texte posé sur l'accent */
    --lk-ft-hr-start:    #3B82F6;
    --lk-ft-hr-end:      var(--lk-red, #D21034);

    /* Hauteur des logos du footer (la largeur suit le format du fichier) */
    --lk-logo-h-footer:  72px;    /* logo principal */
    --lk-logo-h-bar:     28px;    /* petit logo de la barre du bas */
}

html[data-theme="dark"] {
    --lk-ft-from:        #050E1F;
    --lk-ft-to:          #02060D;
    --lk-ft-bar:         #000408;
    --lk-ft-accent:      #3B82F6;
    --lk-ft-accent-soft: #60A5FA;
    --lk-ft-accent-ink:  #FFFFFF;
    --lk-ft-hr-end:      #EF4444;
}

/* ============================================================
   1. FOOTER DOKANI — on cache l'original, on garde les trust factors
   ============================================================ */
.site-footer,
.footer-widgets-container,
#footer-widgets,
.site-info { display: none !important; }

.trust-factors-section { display: flex; }

/* ============================================================
   2. CONTENEUR
   ============================================================ */
.lk-footer {
    background: linear-gradient(180deg, var(--lk-ft-from) 0%, var(--lk-ft-to) 100%);
    color: var(--lk-ft-text);
    font-family: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
    font-size: 14px;
}

.lk-footer-widgets { padding: 60px 20px 44px; }

.lk-footer-inner {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr;
    gap: 48px;
    align-items: start;
    max-width: 1200px;
    margin: 0 auto;
}

/* ============================================================
   3. COLONNE BRANDING
   ============================================================ */
.lk-footer-brand { margin-bottom: 20px; }

.lk-footer-brand a {
    display: inline-block;
    margin-bottom: 12px;
    text-decoration: none !important;
}

/* Le filtre rend le logo blanc uni — retire-le si ton logo a des couleurs à garder */
.lk-footer .lk-footer-logo {
    display: block;
    width: auto !important;
    height: var(--lk-logo-h-footer, 72px) !important;
    max-width: 100%;
    opacity: .95;
}

.lk-footer-sitename {
    display: block;
    color: #FFFFFF !important;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -.5px;
    line-height: 1.1;
}

.lk-footer-slogan {
    margin: 6px 0 0;
    color: var(--lk-ft-accent-soft) !important;
    font-size: 13px;
    font-style: italic;
    font-weight: 600;
    letter-spacing: .2px;
}

/* Réseaux sociaux */
.lk-footer-social {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}

.lk-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    color: var(--lk-ft-text) !important;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .15);
    border-radius: 10px;
    text-decoration: none !important;
    transition: all .25s ease;
}

.lk-social-link:hover,
.lk-social-link:focus-visible {
    color: var(--lk-ft-accent-ink) !important;
    background: var(--lk-ft-accent);
    border-color: var(--lk-ft-accent);
    box-shadow: 0 8px 20px rgba(0, 0, 0, .35);
    transform: translateY(-3px);
}

/* Badges de confiance */
.lk-footer-trust {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.lk-trust-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--lk-ft-text);
    font-size: 12px;
    font-weight: 500;
}

.lk-trust-badge svg {
    flex-shrink: 0;
    color: var(--lk-ft-accent);
    stroke: var(--lk-ft-accent);
}

/* ============================================================
   4. TITRES + TRAIT DÉCORATIF
   ============================================================ */
.lk-footer .lk-footer-title {
    display: block !important;
    margin: 0 0 14px !important;
    padding: 0 !important;
    color: #FFFFFF !important;
    border: none !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    letter-spacing: 2px !important;
    line-height: 1.4 !important;
    text-transform: uppercase !important;
}

.lk-footer .lk-footer-hr {
    display: block !important;
    width: 48px !important;
    height: 2px !important;
    margin: 0 0 18px !important;
    padding: 0 !important;
    border: none !important;
    border-radius: 2px !important;
    background: linear-gradient(90deg, var(--lk-ft-hr-start) 0%, var(--lk-ft-hr-end) 50%, transparent 100%) !important;
}

/* ============================================================
   5. MENUS
   ============================================================ */
.lk-footer .lk-footer-menu {
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

.lk-footer .lk-footer-menu li { margin-bottom: 10px !important; }

.lk-footer .lk-footer-menu li a {
    position: relative;
    display: inline-flex !important;
    align-items: center !important;
    padding-left: 0 !important;
    color: var(--lk-ft-text) !important;
    font-size: 13.5px !important;
    text-decoration: none !important;
    transition: color .2s ease !important;
}

/* Trait animé au survol */
.lk-footer .lk-footer-menu li a::before {
    content: '';
    display: inline-block;
    flex-shrink: 0;
    width: 0;
    height: 1.5px;
    margin-right: 0;
    background: var(--lk-ft-accent);
    vertical-align: middle;
    transition: width .25s ease, margin-right .25s ease;
}

.lk-footer .lk-footer-menu li a:hover,
.lk-footer .lk-footer-menu li a:focus-visible { color: #FFFFFF !important; }

.lk-footer .lk-footer-menu li a:hover::before,
.lk-footer .lk-footer-menu li a:focus-visible::before {
    width: 14px;
    margin-right: 7px;
}

/* ============================================================
   6. CONTACT
   ============================================================ */
.lk-footer .lk-footer-contact {
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

.lk-footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 14px;
    color: var(--lk-ft-text);
    font-size: 13.5px;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.lk-contact-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    margin-top: 1px;
    background: color-mix(in srgb, var(--lk-ft-accent) 15%, transparent);
    border: 1px solid color-mix(in srgb, var(--lk-ft-accent) 40%, transparent);
    border-radius: 8px;
}

.lk-contact-icon svg {
    color: var(--lk-ft-accent);
    stroke: var(--lk-ft-accent);
}

.lk-footer .lk-footer-contact li a {
    color: var(--lk-ft-text) !important;
    text-decoration: none !important;
    transition: color .2s;
}

.lk-footer .lk-footer-contact li a:hover { color: #FFFFFF !important; }

/* ============================================================
   7. BARRE DU BAS (centrée partout)
   ============================================================ */
.lk-footer-bar {
    padding: 16px 20px;
    background: var(--lk-ft-bar);
    border-top: 1px solid var(--lk-ft-line);
}

.lk-footer-bar-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.lk-footer-copy {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px 10px;
    color: var(--lk-ft-muted);
    font-size: 12.5px;
}

.lk-footer-copy span,
.lk-footer-bar-name { color: var(--lk-ft-muted); }

.lk-footer-bar-name { font-size: 13px; }

.lk-footer .lk-footer-bar-logo {
    width: auto !important;
    height: var(--lk-logo-h-bar, 28px) !important;
    max-width: 100%;
    opacity: .85;
}

/* Sans logo "mode sombre" : on rend le logo clair en blanc uni (silhouette).
   Avec un logo sombre téléversé, cette classe n'est pas posée → vraies couleurs. */
.lk-footer .lk-logo--invert { filter: brightness(0) invert(1); }

.lk-footer .lk-dev-credit { color: var(--lk-ft-faint); }

/* Menu légal */
.lk-footer .lk-footer-legal-menu {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 20px;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

.lk-footer .lk-footer-legal-menu li a {
    position: relative;
    color: var(--lk-ft-muted) !important;
    font-size: 12px !important;
    text-decoration: none !important;
    white-space: nowrap;
    transition: color .2s;
}

.lk-footer .lk-footer-legal-menu li a::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--lk-ft-accent);
    transition: width .25s;
}

.lk-footer .lk-footer-legal-menu li a:hover { color: #FFFFFF !important; }
.lk-footer .lk-footer-legal-menu li a:hover::after { width: 100%; }

/* ============================================================
   8. RESPONSIVE
   > 1100px      : 5 colonnes
   481 – 1100px  : branding en bandeau pleine largeur, puis les colonnes
                     769 – 1100px → 4 colonnes (Lyen | Fanm | Gason | Kontak)
                     481 – 768px  → 2 colonnes (Lyen | Fanm  /  Gason | Kontak)
   ≤ 480px       : tout empilé sur 1 colonne

   Les 4 colonnes de liens sont TOUJOURS en nombre pair en 2 colonnes
   → plus de cellule vide à côté de "Kategori Gason".
   ============================================================ */

/* ≤ 1100px : branding séparé du reste par un trait */
@media (max-width: 1100px) {
    .lk-footer-inner {
        grid-template-columns: repeat(4, 1fr);
        gap: 36px 28px;
    }

    .lk-fcol-brand {
        grid-column: 1 / -1;
        padding-bottom: 28px;
        border-bottom: 1px solid var(--lk-ft-line);
    }
}

/* 481 – 1100px : bandeau horizontal (logo + slogan | réseaux | badges) */
@media (min-width: 481px) and (max-width: 1100px) {
    .lk-fcol-brand {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
        gap: 20px 40px;
    }

    .lk-footer-brand  { flex: 1 1 260px; margin: 0; }
    .lk-footer-social { margin: 0; }

    .lk-footer-trust {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 8px 20px;
        width: 100%;
    }
}

/* ≤ 768px : 2 colonnes */
@media (max-width: 768px) {
    .lk-footer-widgets { padding: 40px 16px 32px; }

    .lk-footer-inner {
        grid-template-columns: 1fr 1fr;
        gap: 32px 24px;
    }
}

/* ≤ 480px : 1 colonne, branding empilé normalement
   (pas de flex ici : l'ancien flex-basis 260px créait un grand vide vertical) */
@media (max-width: 480px) {
    .lk-footer-inner {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .lk-fcol-brand { padding-bottom: 24px; }

    .lk-footer-brand  { margin-bottom: 16px; }
    .lk-footer-social { margin-bottom: 20px; }

    .lk-footer-trust {
        flex-direction: column;
        gap: 8px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .lk-footer * { transition-duration: .01ms !important; }
}