/* ========================================
   FOOTER KIREVA INVEST - CSS MODERNE
   Refonte 26/01/2026
   ======================================== */

/* Variables CSS */
:root {
    --footer-primary: #447CAC;
    --footer-primary-dark: #3a6b96;
    --footer-primary-light: #5a9fd4;
    --footer-bg-dark: #1e293b;
    --footer-bg-darker: #0f172a;
    --footer-text: #f8fafc;
    --footer-text-muted: rgba(255, 255, 255, 0.7);
    --footer-border: rgba(255, 255, 255, 0.1);
    --footer-accent: #4fc3f7;
}

/* Reset et base */
.kireva-footer {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--footer-text);
    line-height: 1.6;
}

.kireva-footer * {
    box-sizing: border-box;
}

/* Container commun */
.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 clamp(16px, 4vw, 32px);
    width: 100%;
}

/* ========================================
   SECTION CTA
   ======================================== */
.footer-cta {
    background: linear-gradient(135deg, var(--footer-primary) 0%, var(--footer-primary-dark) 100%);
    padding: clamp(1.5rem, 5vw, 3.5rem) 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.footer-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta-content h2 {
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 0.75rem 0;
    line-height: 1.3;
}

.cta-content p {
    font-size: clamp(0.95rem, 2vw, 1.1rem);
    color: rgba(255, 255, 255, 0.9);
    margin: 0 0 1.5rem 0;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-cta-primary {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    color: var(--footer-primary-dark);
    border: 2px solid transparent;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.btn-cta-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.25);
}

.btn-cta-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.btn-cta-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-3px);
}

/* ========================================
   SECTION PRINCIPALE
   ======================================== */
.footer-main {
    background: var(--footer-bg-dark);
    padding: clamp(2.5rem, 6vw, 4rem) 0 clamp(1.5rem, 3vw, 2rem);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: clamp(1.5rem, 4vw, 3rem);
}

/* Colonnes du footer */
.footer-col h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff;
    margin: 0 0 1.25rem 0;
    position: relative;
    padding-bottom: 0.75rem;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 32px;
    height: 3px;
    background: linear-gradient(90deg, var(--footer-primary-light), var(--footer-accent));
    border-radius: 2px;
}

/* Colonne Brand */
.footer-brand {
    grid-column: span 1;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.footer-logo-img {
    height: 40px;
    width: auto;
    max-width: 190px;
}

.brand-logo .logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--footer-primary) 0%, var(--footer-primary-dark) 100%);
    border-radius: 10px;
    font-size: 1.25rem;
    color: #ffffff;
}

.brand-logo .logo-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.5px;
}

.brand-tagline {
    font-size: 0.9rem;
    color: var(--footer-text-muted);
    margin: 0 0 1.25rem 0;
    font-style: italic;
}

/* Liens sociaux */
.social-links {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--footer-text-muted);
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid var(--footer-border);
    font-size: 1.1rem;
}

.social-link:hover {
    transform: translateY(-3px);
    color: #ffffff;
}

.social-link:hover:nth-child(1) { /* LinkedIn */
    background: #0077b5;
    border-color: #0077b5;
}

.social-link:hover:nth-child(2) { /* Twitter */
    background: #1da1f2;
    border-color: #1da1f2;
}

.social-link:hover:nth-child(3) { /* Facebook */
    background: #1877f2;
    border-color: #1877f2;
}

/* Badges de confiance */
.trust-badges {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.trust-badges .badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.75rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--footer-border);
    border-radius: 6px;
    font-size: 0.75rem;
    color: var(--footer-text-muted);
    font-weight: 500;
}

.trust-badges .badge i {
    color: var(--footer-accent);
    font-size: 0.85rem;
}

/* Liens du footer */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--footer-text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    padding: 0.25rem 0;
}

.footer-links a:hover {
    color: #ffffff;
    transform: translateX(4px);
}

.footer-links a i {
    font-size: 0.85rem;
    width: 18px;
    text-align: center;
    color: var(--footer-primary-light);
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.footer-links a:hover i {
    opacity: 1;
}

/* ========================================
   NEWSLETTER
   ======================================== */
.footer-newsletter {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--footer-border);
    border-radius: 16px;
    padding: clamp(1.5rem, 3vw, 2rem);
    margin-top: clamp(2rem, 4vw, 3rem);
}

.newsletter-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.newsletter-text {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: #ffffff;
    font-weight: 500;
    font-size: 1rem;
}

.newsletter-text i {
    font-size: 1.5rem;
    color: var(--footer-accent);
}

.newsletter-form {
    flex: 1;
    min-width: 300px;
    max-width: 500px;
}

.newsletter-inputs {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.newsletter-inputs input {
    flex: 1;
    min-width: 150px;
    padding: 0.875rem 1rem;
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    font-size: 0.9rem;
    outline: none;
    transition: all 0.3s ease;
}

.newsletter-inputs input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.newsletter-inputs input:focus {
    border-color: var(--footer-primary-light);
    background: rgba(255, 255, 255, 0.12);
}

.btn-newsletter {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    background: linear-gradient(135deg, var(--footer-primary) 0%, var(--footer-primary-dark) 100%);
    color: #ffffff;
    border: none;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-newsletter:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(68, 124, 172, 0.3);
}

.btn-newsletter:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.newsletter-message {
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 0.875rem;
    display: none;
    text-align: center;
}

.newsletter-message.success {
    display: block;
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.newsletter-message.error {
    display: block;
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

/* ========================================
   FOOTER BOTTOM
   ======================================== */
.footer-bottom {
    background: var(--footer-bg-darker);
    padding: 1.25rem 0;
    border-top: 1px solid var(--footer-border);
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.copyright {
    font-size: 0.85rem;
    color: var(--footer-text-muted);
    margin: 0;
}

.footer-bottom-links {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.footer-bottom-links a {
    color: var(--footer-text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.3s ease;
}

.footer-bottom-links a:hover {
    color: #ffffff;
}

.footer-bottom-links .separator {
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.7rem;
}

/* ========================================
   COOKIE BANNER
   ======================================== */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--footer-bg-dark);
    border-top: 1px solid var(--footer-border);
    padding: 1.25rem;
    z-index: 9999;
    transform: translateY(100%);
    transition: transform 0.4s ease;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.cookie-icon {
    font-size: 2rem;
    color: var(--footer-accent);
}

.cookie-text {
    flex: 1;
    min-width: 280px;
}

.cookie-text h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff;
    margin: 0 0 0.5rem 0;
}

.cookie-text p {
    font-size: 0.85rem;
    color: var(--footer-text-muted);
    margin: 0;
    line-height: 1.5;
}

.cookie-text strong {
    color: #ffffff;
}

.cookie-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.btn-cookie {
    padding: 0.625rem 1.25rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    border: none;
}

.btn-cookie-primary {
    background: var(--footer-primary);
    color: #ffffff;
}

.btn-cookie-primary:hover {
    background: var(--footer-primary-dark);
    transform: translateY(-2px);
}

.btn-cookie-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-cookie-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
}

.btn-cookie-ghost {
    background: transparent;
    color: var(--footer-text-muted);
    border: none;
}

.btn-cookie-ghost:hover {
    color: #ffffff;
}

/* Cookie Modal - STYLES DÉPLACÉS DANS cookie-banner.css POUR HARMONISATION */
/*
 * Les styles de la modale des cookies sont maintenant définis dans cookie-banner.css
 * pour éviter les conflits et maintenir une cohérence avec les autres modales du site.
 * Voir: css/cookie-banner.css (lignes 129-378)
 */

/* ========================================
   ACCORDÉONS FOOTER (Mobile)
   ======================================== */

/* Masquer les accordéons par défaut (affichés uniquement en mobile) */
.footer-accordion {
    display: none;
}

.accordion-header {
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    margin-bottom: 0;
    border-bottom: 1px solid var(--footer-border);
    transition: all 0.3s ease;
    user-select: none;
}

.accordion-header:hover {
    color: var(--footer-primary-light);
}

.accordion-header span {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.95rem;
}

.accordion-icon {
    font-size: 0.875rem;
    transition: transform 0.3s ease;
    color: var(--footer-primary-light);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
}

.accordion-content.active {
    max-height: 1000px;
    transition: max-height 0.5s ease-in;
}

/* Espacement pour les listes directement dans accordion-content */
.accordion-content > .footer-links {
    padding-top: 1rem;
    padding-bottom: 0.5rem;
}

/* Accordéon avec 2 colonnes (en mobile) */
.accordion-content-2cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    padding: 0;
}

.accordion-content-2cols.active {
    padding: 1rem 0.5rem 0.5rem;
}

.accordion-section {
    padding: 0;
}

.accordion-section h5 {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--footer-primary-light);
    margin: 0 0 0.5rem 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.accordion-content-2cols .footer-links {
    padding-left: 0;
}

.accordion-content-2cols .footer-links li {
    margin-bottom: 0.5rem;
}

.accordion-content-2cols .footer-links a {
    font-size: 0.8rem;
    gap: 0.4rem;
}

.accordion-content-2cols .footer-links a i {
    font-size: 0.75rem;
}

/* ========================================
   MEDIA QUERIES RESPONSIVE
   ======================================== */

/* Desktop - Au-dessus de 992px */
@media (min-width: 993px) {
    /* S'assurer que les accordéons sont masqués en desktop */
    .footer-accordion {
        display: none !important;
    }

    /* S'assurer que les colonnes desktop sont affichées */
    .footer-col-desktop {
        display: block;
    }
}

/* Tablettes */
@media (max-width: 992px) {
    /* Masquer les accordéons en tablette, afficher les colonnes normales */
    .footer-accordion {
        display: none;
    }

    .footer-col-desktop {
        display: block;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    .footer-brand {
        grid-column: span 2;
    }

    .newsletter-content {
        flex-direction: column;
        text-align: center;
    }

    .newsletter-form {
        max-width: 100%;
        width: 100%;
    }

    .newsletter-inputs {
        justify-content: center;
    }
}

/* Mobile */
@media (max-width: 768px) {
    /* CTA optimisé - 1 seul bouton */
    .footer-cta {
        padding: 1.5rem 0;
    }

    .cta-content h2 {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }

    .cta-content .cta-subtitle {
        display: none; /* Masquer le sous-titre en mobile */
    }

    .cta-buttons {
        margin-top: 1rem;
    }

    .btn-cta-desktop-only {
        display: none; /* Masquer le 2ème bouton en mobile */
    }

    .btn-cta-primary {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }

    /* Footer Main - Padding réduit */
    .footer-main {
        padding: 2rem 0 1.25rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    /* Brand section */
    .footer-brand {
        grid-column: span 1;
        text-align: center;
        margin-bottom: 0;
    }

    .brand-logo {
        justify-content: center;
        margin-bottom: 0.75rem;
    }

    .brand-tagline {
        margin-bottom: 0.75rem;
    }

    .social-links {
        justify-content: center;
        margin-bottom: 0;
    }

    .trust-badges {
        justify-content: center;
    }

    /* Masquer les colonnes desktop en mobile */
    .footer-col-desktop {
        display: none;
    }

    /* Afficher les accordéons en mobile */
    .footer-accordion {
        display: block;
    }

    .footer-col h4::after {
        display: none; /* Masquer le trait sous les titres en mobile */
    }

    .footer-links {
        text-align: left;
        padding-left: 0.5rem;
    }

    .footer-links li {
        margin-bottom: 0.625rem;
    }

    .footer-links a {
        justify-content: flex-start;
        font-size: 0.875rem;
        padding: 0.2rem 0;
    }

    .footer-links a:hover {
        transform: none;
    }

    /* Newsletter simplifiée - 1 seul champ */
    .footer-newsletter {
        padding: 1.25rem;
        margin-top: 1.5rem;
    }

    .newsletter-content {
        flex-direction: column;
        gap: 1rem;
    }

    .newsletter-text {
        font-size: 0.9rem;
        justify-content: center;
    }

    .newsletter-text i {
        font-size: 1.25rem;
    }

    .newsletter-prenom-desktop {
        display: none; /* Masquer le champ prénom en mobile */
    }

    .newsletter-inputs {
        flex-direction: row;
        gap: 0.5rem;
    }

    .newsletter-inputs input {
        flex: 1;
        min-width: 0;
        font-size: 0.875rem;
        padding: 0.75rem 0.875rem;
    }

    .btn-newsletter {
        padding: 0.75rem 1.25rem;
        font-size: 0.875rem;
        white-space: nowrap;
    }

    /* Footer bottom - padding réduit */
    .footer-bottom {
        padding: 1rem 0;
    }

    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }

    .footer-bottom-links {
        justify-content: center;
        flex-direction: row;
        flex-wrap: wrap;
    }

    .copyright {
        font-size: 0.8rem;
    }

    .footer-bottom-links a {
        font-size: 0.75rem;
    }

    .footer-bottom-links .separator {
        display: inline;
    }

    /* Cookie banner mobile */
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }

    .cookie-actions {
        width: 100%;
        justify-content: center;
    }

    .btn-cookie {
        flex: 1;
        justify-content: center;
        min-width: auto;
    }
}

/* Très petits écrans */
@media (max-width: 480px) {
    .cookie-actions {
        flex-direction: column;
    }

    .btn-cookie {
        width: 100%;
    }

    /* Garder les liens du footer sur une ligne même sur très petits écrans */
    .footer-bottom-links .separator {
        display: inline;
    }

    .footer-bottom-links {
        flex-direction: row;
        gap: 0.5rem;
    }

    .footer-bottom-links a {
        font-size: 0.7rem;
    }
}
