/* ============================= */
/* FOOTER                       */
/* ============================= */

.site-footer {
    width: 100%;
    background-color: #40745B;
    padding-top: 50px;       /* espace pour l’ellipse */
    padding-bottom: 20px;     /* rectangle encore plus compact */
    text-align: center;
    color: white;
    position: relative;
    overflow: visible;        /* permet à l’ellipse de dépasser */
    z-index: 10;              /* au-dessus du contenu précédent */
}

/* Arrondi haut du footer (inchangé) */
.site-footer::before {
    content: "";
    position: absolute;
    top: -120px;
    left: 50%;
    transform: translateX(-50%);
    width: 140%;
    height: 250px;
    background: #40745B;
    border-radius: 50%;
    z-index: 0;
}

/* Contenu du footer */
.footer-logo img {
    max-height: clamp(150px, 20vw, 250px);
    position: relative;
    z-index: 10;
    margin-bottom: 10px;      /* réduit encore l’espace sous le logo */
}

.footer-text p,
.footer-copyright p {
    margin: 2px 0 5px 0;      /* marges minimales pour compacter le texte */
    font-size: clamp(14px, 1.2vw, 17px);
    line-height: 1.4;
    position: relative;
    z-index: 10;
}

/* ============================= */
/* TABLETTE                     */
/* ============================= */
@media (max-width: 1024px) {
    .site-footer {
        padding-top: 120px;
        padding-bottom: 50px;
    }

    .footer-logo img {
        max-height: clamp(120px, 25vw, 200px);
    }

    .footer-text p,
    .footer-copyright p {
        font-size: clamp(13px, 1.5vw, 15px);
    }

    .site-footer::before {
        width: 160%;
        height: 280px;
        top: -130px;
    }
}

/* ============================= */
/* MOBILE                       */
/* ============================= */
@media (max-width: 768px) {
    .site-footer {
        padding-top: 100px;
        padding-bottom: 40px;
    }

    .footer-logo img {
        max-height: 200px;
    }

    .footer-text p,
    .footer-copyright p {
        font-size: 14px;
    }

    .site-footer::before {
        width: 180%;
        height: 230px;
        top: -110px;
    }
}

@media (max-width: 480px) {
    .site-footer {
        padding-top: 80px;
        padding-bottom: 30px;
    }

    .footer-logo img {
        max-height: 150px;
    }

    .footer-text p,
    .footer-copyright p {
        font-size: 12px;
    }

    .site-footer::before {
        width: 200%;
        height: 180px;
        top: -90px;
    }
}
