/* ═══════════════════════════════════════
   AMPF — FOOTER
   File: public/assets/css/footer.css
═══════════════════════════════════════ */

:root {
    --ampf-orange:  #E8761A;
    --ampf-green:   #2E9E4F;
    --ampf-blue:    #1B6BB5;
    --navy:         #0a1628;
    --navy-mid:     #112240;
}

#ampf-footer {
    background: var(--navy);
    padding: 80px 0 0;
    font-family: 'DM Sans', sans-serif;
    position: relative;
}

/* Trait 3 couleurs en haut du footer */
#ampf-footer::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg,
        var(--ampf-orange) 0%,
        var(--ampf-orange) 33%,
        var(--ampf-green)  33%,
        var(--ampf-green)  66%,
        var(--ampf-blue)   66%,
        var(--ampf-blue)   100%
    );
}

.footer-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 48px;
}

/* ─── GRID ─────────────────────────────────── */
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.4fr;
    gap: 56px;
    padding-bottom: 60px;
}

/* ─── LOGO IMAGE ────────────────────────────── */
.footer-logo {
    display: inline-flex;
    text-decoration: none;
    margin-bottom: 20px;
}

.footer-logo-img {
    height: 5rem;
    width: auto;
    object-fit: contain;
    opacity: 0.92;
    transition: opacity 0.2s;
}

.footer-logo:hover .footer-logo-img { opacity: 1; }

.footer-desc {
    font-size: 14px;
    color: rgba(255,255,255,0.38);
    line-height: 1.75;
    margin-bottom: 28px;
    max-width: 290px;
}

/* ─── SOCIAL ───────────────────────────────── */
.footer-social {
    display: flex;
    gap: 10px;
}

.social-btn {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.25s;
}

.social-btn:hover { transform: translateY(-3px); }
.social-btn.linkedin:hover { background: #0077B5; border-color: #0077B5; color: white; box-shadow: 0 8px 20px rgba(0,119,181,0.35); }
.social-btn.facebook:hover { background: #1877F2; border-color: #1877F2; color: white; box-shadow: 0 8px 20px rgba(24,119,242,0.35); }
.social-btn.youtube:hover  { background: #FF0000; border-color: #FF0000; color: white; box-shadow: 0 8px 20px rgba(255,0,0,0.35); }

/* ─── COLUMNS ──────────────────────────────── */
.footer-col-title {
    font-family: 'Syne', sans-serif;
    font-size: 11px;
    font-weight: 700;
    color: white;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Petite barre colorée avant le titre */
.footer-col:nth-child(2) .footer-col-title::before { content:''; width:12px; height:2px; background: var(--ampf-orange); border-radius:2px; }
.footer-col:nth-child(3) .footer-col-title::before { content:''; width:12px; height:2px; background: var(--ampf-green);  border-radius:2px; }
.footer-col:nth-child(4) .footer-col-title::before { content:''; width:12px; height:2px; background: var(--ampf-blue);   border-radius:2px; }

.footer-links {
    list-style: none;
    padding: 0; margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    font-size: 14px;
    color: rgba(255,255,255,0.38);
    text-decoration: none;
    transition: color 0.2s, padding-left 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.footer-links a::before {
    content: '';
    width: 0;
    height: 1px;
    background: var(--ampf-blue);
    transition: width 0.2s;
    flex-shrink: 0;
}

.footer-links a:hover {
    color: rgba(255,255,255,0.85);
}

.footer-links a:hover::before { width: 10px; }

/* ─── CONTACT ──────────────────────────────── */
.footer-contact-list {
    display: flex;
    flex-direction: column;
    gap: 13px;
    margin-bottom: 28px;
}

.footer-contact-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.footer-contact-item i {
    font-size: 13px;
    margin-top: 3px;
    flex-shrink: 0;
}

/* Icônes avec couleurs du logo */
.footer-contact-item:nth-child(1) i { color: var(--ampf-orange); }
.footer-contact-item:nth-child(2) i { color: var(--ampf-green); }
.footer-contact-item:nth-child(3) i { color: var(--ampf-blue); }
.footer-contact-item:nth-child(4) i { color: var(--ampf-orange); }

.footer-contact-item span,
.footer-contact-item a {
    font-size: 13px;
    color: rgba(255,255,255,0.38);
    line-height: 1.55;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-contact-item a:hover { color: rgba(255,255,255,0.8); }

/* ─── NEWSLETTER ───────────────────────────── */
.footer-newsletter-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.5);
    margin-bottom: 10px;
}

.footer-newsletter-form {
    display: flex;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    overflow: hidden;
    transition: border-color 0.2s;
}

.footer-newsletter-form:focus-within {
    border-color: var(--ampf-blue);
}

.footer-newsletter-form input {
    flex: 1;
    background: rgba(255,255,255,0.05);
    border: none;
    color: white;
    padding: 11px 14px;
    font-size: 13px;
    font-family: 'DM Sans', sans-serif;
    outline: none;
}

.footer-newsletter-form input::placeholder { color: rgba(255,255,255,0.22); }

.footer-newsletter-form button {
    background: var(--ampf-green);
    border: none;
    color: white;
    padding: 11px 16px;
    cursor: pointer;
    font-size: 13px;
    transition: background 0.2s;
}

.footer-newsletter-form button:hover { background: #37b85e; }

/* ─── BOTTOM BAR ───────────────────────────── */
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.06);
    padding: 22px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.footer-bottom-left span,
.footer-bottom-right span {
    font-size: 12px;
    color: rgba(255,255,255,0.22);
}

.footer-bottom-left a,
.footer-bottom-right a {
    font-size: 12px;
    color: rgba(255,255,255,0.35);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-bottom-left a:hover,
.footer-bottom-right a:hover { color: var(--ampf-blue); }

.footer-bottom-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-bottom-right .sep { color: rgba(255,255,255,0.15); }

/* ─── RESPONSIVE ───────────────────────────── */
@media (max-width: 1100px) {
    .footer-container { padding: 0 24px; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
}

@media (max-width: 640px) {
    #ampf-footer { padding: 60px 0 0; }
    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
    .footer-bottom { flex-direction: column; align-items: flex-start; gap: 8px; }
    .footer-bottom-right { flex-wrap: wrap; }
    .footer-desc { max-width: 100%; }
    .footer-logo-img { height: 8rem; }
}

/* ── Legal Pages ── */
.legal-section {
    padding: 80px 0 100px;
    background: #fff;
}

.legal-content {
    max-width: 800px;
    margin: 0 auto;
    color: #333;
    line-height: 1.8;
}

.legal-content h1 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 8px;
}

.legal-date {
    color: var(--gray);
    font-size: 0.9rem;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.legal-content h2 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary, #1a5276);
    margin: 32px 0 12px;
}

.legal-content p,
.legal-content li {
    font-size: 0.97rem;
    color: #444;
}

.legal-content ul {
    padding-left: 20px;
    margin: 10px 0;
}

.legal-content ul li {
    margin-bottom: 6px;
}

.legal-content a {
    color: var(--primary, #1a5276);
    text-decoration: underline;
}