/* Importation de la police */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&display=swap');

body {
    font-family: 'Poppins', sans-serif;
    text-align: center;
    margin: 0;
    padding: 0;
    background: #fef8e6;
}

/* Header fixe avec effet dynamique */
.header {
    background: url('onlyfox_header.jpg') center/cover no-repeat;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
    position: relative;
    width: 100%;
    top: 0;
    z-index: 1000;
    animation: bgMove 10s linear infinite alternate;
}

/* Animation du fond en mouvement subtil */
@keyframes bgMove {
    from { background-position: center top; }
    to { background-position: center bottom; }
}

/* Style du titre principal */
.big-title {
    font-size: 5rem;
    font-weight: bold;
    color: white;
    margin-bottom: 10px;
    text-transform: uppercase;
}

/* Effet machine à écrire */
.typing-effect {
    font-size: 2rem;
    font-weight: bold;
    color: white;
    display: inline-block;
    overflow: hidden;
    border-right: 3px solid white;
    white-space: nowrap;
    width: 0;
    animation: typing 4s steps(40, end) forwards, blink 0.8s infinite;
}

/* Animation du texte */
@keyframes typing {
    from { width: 0 }
    to { width: 100% }
}

@keyframes blink {
    50% { border-color: transparent; }
}

/* Section principale */
.scroll-section {
    padding-top: 80px;
    max-width: 1200px;
    margin: auto;
}

/* Contenu alterné */
.content-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
    max-width: 100%;
    margin: 80px auto;
    padding: 20px;
}

/* Alternance des sections */
.content-box:nth-child(odd) {
    flex-direction: row;
}

.content-box:nth-child(even) {
    flex-direction: row-reverse;
}

/* Style des images */
.content-box img {
    width: 60%;
    max-width: 700px;
    border-radius: 10px;
    opacity: 0;
    transition: transform 0.8s ease-out, opacity 0.8s ease-out, box-shadow 0.5s ease-in-out;
    transform-origin: center;
    animation: pulse 5s infinite alternate ease-in-out;
}

.content-box img:hover {
    transform: scale(1.05) rotateX(5deg) rotateY(5deg);
    box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.2);
}

/* Effet de pulsation continue */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

/* Texte bien positionné */
.text-box {
    width: 35%;
    text-align: left;
    font-size: 1.3rem;
    line-height: 1.6;
    opacity: 0;
    transition: transform 0.8s ease-out, opacity 0.8s ease-out;
}

/* Effets d’apparition */
.scroll-section.show .slide-in-left {
    transform: translateX(0);
    opacity: 1;
}

.scroll-section.show .slide-in-right {
    transform: translateX(0);
    opacity: 1;
}

/* Slide-in effect */
.slide-in-left {
    transform: translateX(-50px);
    opacity: 0;
}

.slide-in-right {
    transform: translateX(50px);
    opacity: 0;
}

/* Effet CTA */
.cta-button {
    background: #ff914d;
    color: white;
    padding: 15px 30px;
    font-size: 1rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 20px;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.cta-button:hover {
    transform: scale(1.1);
    box-shadow: 0px 5px 10px rgba(0, 0, 0, 0.2);
}

/* Responsive */
@media (max-width: 1024px) {
    .content-box {
        flex-direction: column !important;
        text-align: center;
    }

    .content-box img {
        width: 90%;
        max-width: 100%;
    }

    .text-box {
        width: 90%;
        text-align: center;
    }

    .big-title {
        font-size: 6rem;
    }

    .typing-effect {
        font-size: 1.5rem;
    }
}

/* Footer avec une image de fond dynamique */
.footer {
    background: url('onlyfox_footer.jpg') center/cover no-repeat;
    height: 40vh;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
    font-size: 1.5rem;
    position: relative;
    animation: footerMove 10s linear infinite alternate;
}

/* Animation subtile du fond */
@keyframes footerMove {
    from { background-position: center top; }
    to { background-position: center bottom; }
}

/* Centrage du texte */
.footer-content {
    text-align: center;
    background: rgba(0, 0, 0, 0.5);
    padding: 15px 20px;
    border-radius: 10px;
}
/* Section du carrousel */
.carousel-section {
    text-align: center;
    padding: 40px 0;
    background: #fff5e1;
}

.carousel-section h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #ff914d;
}

/* Conteneur du carrousel */
.carousel {
    overflow: hidden;
    width: 80%;
    margin: auto;
    position: relative;
}

/* Piste d'images qui défile */
.carousel-track {
    display: flex;
    gap: 20px;
    animation: scrollCarousel 15s linear infinite;
}

/* Style des images du carrousel */
.carousel img {
    width: 250px;
    height: auto;
    border-radius: 10px;
    transition: transform 0.3s ease-in-out;
}

/* Effet zoom au survol */
.carousel img:hover {
    transform: scale(1.1);
}

@keyframes scrollCarousel {
    0% { transform: translateX(0); }
    50% { transform: translateX(-50%); } /* Défile vers la gauche */
    100% { transform: translateX(0); }  /* Revient à droite */
}

.carousel-track {
    display: flex;
    gap: 20px;
    animation: scrollCarousel 15s ease-in-out infinite; /* Augmenté à 15s pour ralentir */
}

/* Responsive */
@media (max-width: 768px) {
    .carousel img {
        width: 200px;
    }
}

.big-title {
    animation: heartbeat 1.5s infinite ease-in-out;
}

@keyframes heartbeat {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.match-messages {
    background: #ff914d;
    color: white;
    padding: 10px;
    font-size: 1.2rem;
    text-align: center;
    position: fixed;
    top: 20px;
    right: 20px;
    border-radius: 5px;
    opacity: 1;
    transition: opacity 0.3s ease-out, transform 0.3s ease-out;
}

.close-btn {
    background: transparent;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    position: absolute;
    top: 5px;
    right: 10px;
}

.night-mode {
    background: black;
    color: white;
}

.night-mode .stars {
    display: block;
}

.night-mode .header {
    background: black !important;
}

/* Style du bouton mode nuit/jour */
.theme-btn {
    position: fixed;
    top: 15px;
    left: 15px;
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    z-index: 1000;
    transition: transform 0.2s ease-in-out;
}

/* Effet d'animation au clic */
.theme-btn:active {
    transform: scale(1.2);
}
.testimonial-slider {
    display: flex;
    width: 100%;
    overflow: hidden;
    position: relative;
    height: 100px; /* Ajuster selon la taille du texte */
}

.testimonial {
    position: absolute;
    width: 100%;
    text-align: center;
    opacity: 0;
    transition: opacity 0.8s ease-in-out, transform 0.8s ease-in-out;
}

.testimonial p {
    font-size: 1.2rem;
    font-style: italic;
    margin: 0;
}

.faq {
    background: #fff5e1;
    padding: 40px;
    text-align: center;
}

details {
    background: white;
    padding: 10px;
    margin: 10px auto;
    width: 60%;
    border-radius: 5px;
    cursor: pointer;
}

details summary {
    font-weight: bold;
}

.fox-map {
    text-align: center;
    padding: 40px;
    background: #fff5e1;
}

#map {
    width: 80%;
    height: 400px; /* Assurer que la carte a une hauteur définie */
    max-width: 100%;
    margin: auto;
    border-radius: 10px;
    border: 2px solid #ff914d; /* Ajoute une bordure pour la visibilité */
}

.match-flame {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 4rem;
    color: orange;
    text-shadow: 0 0 10px red;
    opacity: 0;
    animation: flameEffect 1.5s ease-out;
}

@keyframes flameEffect {
    0% { opacity: 1; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.2); }
    100% { opacity: 0; transform: scale(1.5); }
}

.popular-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: gold;
    color: black;
    padding: 5px 10px;
    font-weight: bold;
    border-radius: 5px;
    box-shadow: 0px 4px 10px rgba(255, 215, 0, 0.8);
    font-size: 0.9rem;
    animation: badgeAppear 0.5s ease-out;
}

@keyframes badgeAppear {
    from { transform: scale(0); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.why-onlyfox {
    background: #ffe8d6;
    text-align: center;
    padding: 40px;
}
.why-onlyfox ul {
    list-style: none;
    padding: 0;
}
.why-onlyfox li {
    font-size: 1.2rem;
    padding: 10px;
}

.why-onlyfox {
    background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
    text-align: center;
    padding: 50px;
    border-radius: 10px;
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.2);
    animation: floatUp 1s ease-out;
}

/* Animation d'apparition des éléments */
.why-list {
    list-style: none;
    padding: 0;
    margin: 0 auto;
    width: 80%;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.why-list li {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    font-size: 1.4rem;
    background: white;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0px 3px 10px rgba(0, 0, 0, 0.15);
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

/* Animation des icônes */
.why-list .icon {
    font-size: 2rem;
    animation: pulse 2s infinite;
}

/* Activation des animations */
.scroll-section.show .fade-in {
    opacity: 1;
    transform: translateY(0);
}

/* Pulsation des icônes */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* Animation d’apparition générale */
@keyframes floatUp {
    from { transform: translateY(50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}