@font-face {
    font-family: 'CooperBT';
    src: url('Fonts/CooperBlkBT-Italic.ttf') format('truetype');
    src: url('Fonts/CooperBlkBT-Regular.ttf') format('truetype');
    src: url('Fonts/CooperLtBT-Bold.ttf') format('truetype');
    src: url('Fonts/CooperLtBT-Italic.ttf') format('truetype');
    src: url('Fonts/CooperLtBT-Regular.ttf') format('truetype');
    src: url('Fonts/CooperMdBT-Italic.ttf') format('truetype');
    src: url('Fonts/CooperMdBT-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

footer {
    position: relative;
    width: 100%;
    background: #000000;  /* Couleur noire pour les vagues */
    min-height: 120px;  /* Hauteur minimum pour le footer */
    padding-top: 30px;
    margin-top: 50px;  /* Marge externe pour ne pas coller le footer à l'élément précédent */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-sizing: border-box; /* Pour s'assurer que les marges et paddings n'affectent pas la taille totale */
}

/* Vagues avec un espacement suffisant pour éviter qu'elles ne débordent */
footer .wave {
    position: absolute;
    top: -50px;  /* Déplace légèrement la vague vers le haut */
    left: 0;
    width: 100%;
    height: 100px;
    background: url(https://i.ibb.co/rZt4Nhg/wave.png); /* Image des vagues */
    background-size: 1000px 100px;
    filter: grayscale(100%) contrast(100%) brightness(0%) opacity(80%);
}

/* Vagues animées avec une animation douce */
footer .wave#wave1 {
    z-index: 1000;
    opacity: 1;
    bottom: 0;
    animation: animateWave 4s linear infinite;
}

footer .wave#wave2 {
    z-index: 999;
    opacity: 0.5;
    bottom: 10px;
    animation: animateWave_02 4s linear infinite;
}

footer .wave#wave3 {
    z-index: 1000;
    opacity: 0.2;
    bottom: 0;
    animation: animateWave 3s linear infinite;
}

footer .wave#wave4 {
    z-index: 999;
    opacity: 0.7;
    bottom: 20px;
    animation: animateWave_02 3s linear infinite;
}

@keyframes animateWave {
    0% {
        background-position-x: 1000px;
    }
    100% {
        background-position-x: 0px;
    }
}

@keyframes animateWave_02 {
    0% {
        background-position-x: 0px;
    }
    100% {
        background-position-x: 1000px;
    }
}

/* Section texte et liens */
#footerp1 {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    width: 100%;
}

#text {
    font-family: 'CooperBT';
    font-size: 10pt;
    color: white;
    display: flex;
    flex-direction: row;
    margin: 10px;
    justify-content: space-between;
    gap: 20px;
    padding: 30px;
}



#RS {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 15px;
    padding: 30px;
}

#RS img {
    display: block;
    width: 30px;
    height: auto;
    margin: 0;
    padding: 0;
}

#RS a img {
    transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
}

#RS a:hover img {
    transform: scale(1.1);
    opacity: 0.8;
}

/* Texte de bas de page */
.classique, .italic {
    font-family: 'CooperBT';
    font-size: 10px;
    color: white;
    text-align: center;
    justify-content: center;
}

.italic {
    margin-top: -15px;
    margin-bottom: 30px;
}


/* --- Effet surlignage --- */
.footer-link {
    position: relative;
    display: inline-block;
    font-family: 'CooperBT', sans-serif;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 1px;
    color: white;
    text-decoration: none;
    padding: 5px 0;
    transition: color 0.3s ease;
}

.footer-link a {
    color: white;
    text-decoration: none;
    position: relative;
    z-index: 1;
}

/* Barre violette animée */
.footer-link::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: #beade6; /* Violet */
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

/* Animation au survol */
.footer-link:hover::after {
    transform: scaleX(1);
}

.footer-link:hover a {
    color: #beade6; /* Texte devient violet */
}

/* RESPONSIVE DESIGN FOOTER */

/* Tablette ≤ 1024px */
@media screen and (max-width: 1024px) {
    #footerp1 {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    #text {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 15px;
        padding: 20px 10px;
    }

    #RS {
        justify-content: center;
        padding: 10px 0 20px 0;
    }

    .footer-link {
        font-size: 13px;
    }

    #RS img {
        width: 28px;
    }

    .classique, .italic {
        font-size: 9px;
        padding: 0 10px;
    }
}

/* Mobile L ≤ 768px */
@media screen and (max-width: 768px) {
    #text {
        font-size: 9pt;
    }

    .footer-link {
        font-size: 12px;
    }

    #RS img {
        width: 26px;
    }
}

/* Mobile M ≤ 576px */
@media screen and (max-width: 576px) {
    #text {
        gap: 12px;
        padding: 15px 5px;
    }

    #RS {
        gap: 12px;
    }

    .footer-link {
        font-size: 11px;
    }

    .classique, .italic {
        font-size: 8px;
        padding: 0 8px;
    }
}

/* Mobile S ≤ 420px */
@media screen and (max-width: 420px) {
    #footerp1 {
        gap: 15px;
    }

    #RS img {
        width: 24px;
    }

    .footer-link {
        font-size: 10px;
        letter-spacing: 0.5px;
    }

    .classique, .italic {
        font-size: 7.5px;
    }
}
