/* ═══════════════════════════════════════════════════════════
   NUTRIFORCE FOOTER - DESIGN MODERNE STYLE HUEL

   ✅ Fond noir élégant #0C0C0D
   ✅ Typographie grande et aérée
   ✅ Accordéons sur mobile
   ✅ Design minimaliste et professionnel
   ═══════════════════════════════════════════════════════════ */

/* CONTAINER & BASE */
.nutriforce-footer {
    margin: 0;
    padding: 0;
    width: 100%;
    background: #1a1a1a;
    color: #fff;
    position: relative;
}

.nf-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 48px;
}

/* IMAGE HERO EN FOND */
.nf-hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 500px;
    overflow: hidden;
    z-index: 0;
}

.nf-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.15;
}

/* SECTION RÉASSURANCE */
.nf-reassurance {
    position: relative;
    z-index: 1;
    padding: 80px 0 80px;
}

.nf-reassurance-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 48px;
}

.nf-reassurance-item {
    text-align: center;
}

.nf-icon {
    font-size: 64px;
    margin-bottom: 24px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nf-flag-fr {
    width: 64px;
    height: 64px;
    margin: 0 auto;
    background: linear-gradient(to right,
        #0055A4 0%, #0055A4 33%,
        #FFFFFF 33%, #FFFFFF 66%,
        #EF4135 66%, #EF4135 100%
    );
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(255, 255, 255, 0.1);
}

.nf-title {
    font-weight: 700;
    font-size: 18px;
    color: #fff;
    margin: 0 0 12px 0;
    letter-spacing: 0.3px;
}

.nf-desc {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    margin: 0;
}

/* NEWSLETTER */
.nf-newsletter {
    background: linear-gradient(135deg, #1f6633 0%, #277f3f 50%, #1f6633 100%);
    padding: 70px 0;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.nf-newsletter::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(255, 255, 255, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.nf-newsletter-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    position: relative;
    z-index: 1;
}

.nf-newsletter-text {
    flex: 1;
}

.nf-newsletter-title {
    font-size: clamp(30px, 4.5vw, 40px);
    font-weight: 700;
    margin: 0 0 16px 0;
    color: #fff;
    line-height: 1.2;
}

.nf-newsletter-desc {
    font-size: clamp(16px, 2vw, 19px);
    margin: 0;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.6;
}

.nf-newsletter-form {
    flex: 1;
    max-width: 550px;
}

.nf-newsletter-input-wrapper {
    display: flex;
    gap: 14px;
    margin-bottom: 12px;
}

.nf-newsletter-input {
    flex: 1;
    padding: 18px 26px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px !important;
    font-size: 16px;
    background: rgba(255, 255, 255, 0.95);
    color: #1a1a1a;
    transition: all 0.3s ease;
    font-family: inherit;
}

.nf-newsletter-input::placeholder {
    color: rgba(0, 0, 0, 0.4);
}

.nf-newsletter-input:focus {
    outline: none;
    border-color: #fff;
    background: #fff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.nf-newsletter-btn {
    padding: 18px 44px;
    background: #1a1a1a;
    color: #fff;
    border: 2px solid #1a1a1a;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    font-family: inherit;
    min-width: 140px;
}

.nf-newsletter-btn:hover:not(:disabled) {
    background: transparent;
    color: #1a1a1a;
    border-color: #1a1a1a;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.nf-newsletter-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.nf-newsletter-message {
    padding: 14px 20px;
    border-radius: 8px;
    font-size: 14px;
    margin-top: 14px;
    font-weight: 500;
}

.nf-message-success {
    background: rgba(255, 255, 255, 0.95);
    color: #277f3f;
    border: 1px solid rgba(39, 127, 63, 0.2);
}

.nf-message-error {
    background: rgba(255, 255, 255, 0.95);
    color: #d32f2f;
    border: 1px solid rgba(211, 47, 47, 0.2);
}

/* FOOTER PRINCIPAL - LIENS */
.nf-main {
    background: #1a1a1a;
    padding: 80px 0 40px;
    position: relative;
    z-index: 1;
}

.nf-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr 1fr;
    gap: 64px;
}

/* COLONNE BRAND */
.nf-brand {
    display: flex;
    flex-direction: column;
}

.nf-logo {
    width: 120px;
    height: auto;
    margin-bottom: 32px;
}

.nf-brand-name {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 24px 0;
    color: #fff;
}

.nf-socials {
    display: flex;
    gap: 16px;
    margin-bottom: 32px;
}

.nf-social {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
}

.nf-social:hover {
    background: #277f3f;
    transform: translateY(-3px);
    color: #fff;
}

.nf-social svg,
.nf-social i {
    position: relative;
    z-index: 1;
}

.nf-btn {
    display: inline-block;
    padding: 14px 32px;
    background: transparent;
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    font-weight: 600;
    font-size: 16px;
    text-align: center;
    transition: all 0.3s ease;
    align-self: flex-start;
}

.nf-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #277f3f;
    color: #277f3f;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(39, 127, 63, 0.2);
}

/* COLONNES DE LIENS */
.nf-heading {
    font-size: 14px;
    font-weight: 700;
    margin: 0 0 24px 0;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nf-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nf-links li {
    margin-bottom: 16px;
}

.nf-links a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-size: 15px;
    font-weight: 400;
    transition: all 0.3s ease;
    display: inline-block;
}

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

/* FOOTER BOTTOM */
.nf-bottom {
    background: #1a1a1a;
    padding: 50px 0 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.nf-payment {
    height: auto;
    max-height: 32px;
    margin: 0 auto 48px;
    display: block;
    opacity: 0.6;
    transition: all 0.3s ease;
    object-fit: contain;
}

.nf-payment:hover {
    opacity: 0.9;
    transform: scale(1.02);
}

.nf-legal {
    font-size: 12px;
    line-height: 1.9;
    color: rgba(255, 255, 255, 0.4);
    margin: 0 0 32px 0;
    max-width: 850px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 400;
    letter-spacing: 0.2px;
}

.nf-copyright {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.35);
    margin: 0;
    font-weight: 400;
    letter-spacing: 0.5px;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .nf-container {
        padding: 0 64px;
    }

    .nf-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 48px;
    }

    .nf-brand {
        grid-column: 1 / -1;
        text-align: center;
        align-items: center;
    }

    .nf-logo {
        margin-left: auto;
        margin-right: auto;
    }

    .nf-socials {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .nf-container {
        padding: 0 24px;
    }

    .nf-reassurance {
        padding: 80px 0 60px;
    }

    .nf-reassurance-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .nf-newsletter {
        padding: 48px 0;
    }

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

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

    .nf-newsletter-input-wrapper {
        flex-direction: column;
    }

    .nf-newsletter-btn {
        width: 100%;
    }

    .nf-main {
        padding: 64px 0 32px;
    }

    .nf-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .nf-col {
        text-align: center;
    }

    .nf-brand {
        align-items: center;
    }

    .nf-btn {
        align-self: center;
        margin-left: auto;
        margin-right: auto;
    }

    .nf-heading {
        text-align: center;
    }

    .nf-links {
        text-align: center;
    }

    .nf-links li {
        margin-bottom: 14px;
    }

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

    .nf-bottom {
        text-align: center;
    }

    .nf-payment {
        margin: 0 auto 36px;
    }

    .nf-legal {
        text-align: center;
        padding: 0 12px;
    }

    .nf-copyright {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .nf-icon {
        font-size: 48px;
        height: 64px;
    }

    .nf-flag-fr {
        width: 48px;
        height: 48px;
    }
}

/* ANIMATIONS */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.nf-col {
    animation: fadeInUp 0.6s ease-out;
}

.nf-col:nth-child(1) { animation-delay: 0.1s; }
.nf-col:nth-child(2) { animation-delay: 0.2s; }
.nf-col:nth-child(3) { animation-delay: 0.3s; }
.nf-col:nth-child(4) { animation-delay: 0.4s; }

.nf-btn-loading svg {
    animation: spin 1s linear infinite;
}

/* OPTIMISATIONS PERFORMANCE */
.nf-social,
.nf-btn,
.nf-links a,
.nf-reassurance-cta {
    will-change: transform;
}

.nf-col {
    transform: translateZ(0);
    backface-visibility: hidden;
}
