/* footer.css - Footer AlloCoach (4 colonnes compactes, fond bleu nuit).
   Selecteurs prefixes .ac-footer pour primer sur les anciens styles "footer" encore presents dans certaines pages. */

.ac-footer {
    --ft-bg: #1e293b;
    --ft-bg-deep: #172033;
    --ft-text: #cbd5e1;
    --ft-muted: #94a3b8;
    --ft-line: rgba(255, 255, 255, 0.08);
    --ft-primary: #6366f1;
    --ft-accent: #f43f5e;
    background: linear-gradient(180deg, var(--ft-bg) 0%, var(--ft-bg-deep) 100%);
    color: var(--ft-text);
    padding: 44px 0 0;
    margin: 0;
    font-family: 'Inter', sans-serif;
    font-size: 0.92rem;
    line-height: 1.55;
    position: relative;
}
.ac-footer::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--ft-primary), var(--ft-accent));
}

.ac-footer__inner { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

.ac-footer__grid {
    display: grid;
    grid-template-columns: 1.35fr 1fr 1.15fr 1.25fr;
    gap: 32px;
    align-items: start;
}

/* Colonne marque */
.ac-footer__logo {
    display: inline-flex;
    background: #ffffff;
    border-radius: 12px;
    padding: 8px 14px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
    transition: transform 0.25s ease;
}
.ac-footer__logo:hover { transform: translateY(-2px); }
.ac-footer__logo img { display: block; width: 112px; height: auto; }

.ac-footer__tagline {
    margin: 14px 0 16px;
    color: var(--ft-text);
    font-size: 0.95rem;
    max-width: 270px;
}

.ac-footer__socials { display: flex; gap: 10px; }
.ac-footer__socials a {
    width: 36px; height: 36px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.04);
    color: var(--ft-text);
    font-size: 0.95rem;
    text-decoration: none;
    transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}
.ac-footer__socials a:hover {
    background: linear-gradient(135deg, var(--ft-primary), var(--ft-accent));
    border-color: transparent;
    color: #fff;
    transform: translateY(-2px);
}

/* Colonnes de liens */
.ac-footer__title {
    margin: 4px 0 14px;
    padding: 0;
    color: #ffffff;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}
.ac-footer__title::after { content: none; }

.ac-footer__links { list-style: none; margin: 0; padding: 0; }
.ac-footer__links li { margin: 0 0 9px; }
.ac-footer__links a {
    color: var(--ft-text);
    text-decoration: none;
    transition: color 0.2s ease;
}
.ac-footer__links a:hover,
.ac-footer__links a:focus-visible { color: #ffffff; }

/* Contact */
.ac-footer__contact a { display: inline-flex; align-items: flex-start; gap: 10px; word-break: break-word; }
.ac-footer__contact i {
    width: 16px;
    margin-top: 4px;
    color: #a5b4fc;
    font-size: 0.9rem;
    text-align: center;
    flex-shrink: 0;
}
.ac-footer__contact .fa-whatsapp { color: #4ade80; font-size: 1rem; margin-top: 3px; }
.ac-footer__contact small { display: block; color: var(--ft-muted); font-size: 0.8rem; }
.ac-footer__contact a:hover small { color: var(--ft-text); }

/* Bas de page */
.ac-footer__bottom {
    margin-top: 32px;
    padding: 16px 0 18px;
    border-top: 1px solid var(--ft-line);
    color: var(--ft-muted);
    font-size: 0.82rem;
    text-align: center;
}

/* Tablette : 2 x 2 */
@media (max-width: 960px) {
    .ac-footer__grid { grid-template-columns: 1fr 1fr; gap: 28px 32px; }
}

/* Mobile : marque pleine largeur, liens sur 2 colonnes, contact pleine largeur */
@media (max-width: 600px) {
    .ac-footer { padding-top: 32px; font-size: 0.9rem; }
    .ac-footer__inner { padding: 0 16px; }
    .ac-footer__grid { grid-template-columns: 1fr 1fr; gap: 24px 16px; }
    .ac-footer__brand,
    .ac-footer__grid > .ac-footer__col:last-child { grid-column: 1 / -1; }
    .ac-footer__brand { display: flex; flex-direction: column; align-items: center; text-align: center; }
    .ac-footer__tagline { margin: 12px auto 14px; }
    .ac-footer__links li { margin-bottom: 7px; }
    .ac-footer__bottom { margin-top: 24px; padding: 14px 0 16px; }
}
