/* ================= GLOBAL RESET ================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    max-width: 100%;
}

/* 🔥 EMPÊCHE SCROLL HORIZONTAL */
html, body {
    max-width: 100%;
    overflow-x: hidden;
}

/* MEDIA SAFE */
img, video {
    max-width: 100%;
    height: auto;
}

/* ================= FOOTER ================= */
.footer {
    background: #0f172a;
    color: #e5e7eb;
    margin-top: 50px;
}

/* CONTAINER */
.footer-container {
    max-width: 1200px;
    margin: auto;
    padding: 40px 20px;

    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* COLONNES */
.footer-col {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-col h3,
.footer-col h4 {
    color: #ffffff;
    margin-bottom: 10px;
}

.footer-col p {
    font-size: 14px;
    line-height: 1.6;
    color: #cbd5e1;
}

/* ================= INPUT ================= */
.newsletter-box {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    flex-wrap: wrap; /* 🔥 évite débordement */
    justify-content: center;
}

/* INPUT BLANC */
.newsletter-box input {
    flex: 1;
    min-width: 0; /* 🔥 clé anti bug */
    max-width: 180px;
    border: none;
    padding: 10px;
    border-radius: 20px;
    outline: none;
    font-size: 14px;
    background: #ffffff;
    color: #1e293b;
}

.newsletter-box input::placeholder {
    color: #64748b;
}

/* BUTTON */
.newsletter-box button {
    flex-shrink: 0;
    background: var(--main-color);
    border: none;
    padding: 10px 16px;
    color: white;
    cursor: pointer;
    border-radius: 20px;
    transition: 0.3s;
    white-space: nowrap;
}

.newsletter-box button:hover {
    background: var(--main-hover);
}

/* ================= COPYRIGHT ================= */
.footer-bottom {
    text-align: center;
    padding: 15px;
    border-top: 1px solid #1e293b;
    font-size: 13px;
    color: #94a3b8;
}

/* ================= TABLET ================= */
@media (max-width: 900px) {
    .footer-container {
        grid-template-columns: 1fr 1fr;
    }
}

/* ================= MOBILE ================= */
@media (max-width: 600px) {

    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 20px;
    }

    .footer-col {
        padding: 0 10px;
    }

    .footer-col p {
        font-size: 13px;
        line-height: 1.5;
    }

    .newsletter-box {
        justify-content: center;
        gap: 6px;
    }

    .newsletter-box input {
        max-width: 150px;
        height: 34px;
        padding: 0 10px;
        font-size: 12px;
    }

    .newsletter-box button {
        height: 34px;
        padding: 0 12px;
        font-size: 12px;
    }

    .footer-bottom {
        margin-top: 20px;
        font-size: 11px;
    }
}

/* ================= PETITS TELEPHONES ================= */
@media (max-width: 380px) {

    .newsletter-box input {
        max-width: 130px;
        font-size: 11px;
    }

    .newsletter-box button {
        padding: 0 10px;
        font-size: 11px;
    }
}