/* Réinitialisation des marges et des paddings */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Corps de la page */
body {
    font-family: 'Arial', sans-serif;
    background-color: #f4f7fb;
    color: #333;
    line-height: 1.6;
}

/* Header avec animation */
.animated-header {
    position: relative;
    height: 100vh;
    background: linear-gradient(120deg, #2a81d7, #19426a);
    background-size: 200% 200%;
    animation: gradientShift 6s infinite;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Contenu du header */
.header-content h1 {
    font-size: 4em;
    text-transform: uppercase;
    letter-spacing: 2px;
    animation: fadeIn 2s ease-out;
    perspective: 1000px;
    transform: rotateX(0deg);
    transition: transform 0.5s;
    color: white;
}

.header-content h1:hover {
    transform: rotateX(10deg) scale(1.05);
    color: #ffdd57;
}

/* Bouton d'appel à l'action (CTA) */
.call-to-action {
    font-size: 1.5em;
    padding: 15px 40px;
    border: none;
    border-radius: 50px;
    background-color: #ffdd57;
    color: #003366;
    text-transform: uppercase;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.4s ease;
    z-index: 1;
    display: inline-block;
    animation: pulseEffect 1.9s ease-in-out infinite;
}

/* Animation du bouton au survol */
.call-to-action:hover {
    background-color: #ffaa00;
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Animation d'un effet de lumière au survol */
.call-to-action::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 300%;
    height: 300%;
    background: linear-gradient(45deg, #ffdd57, #ffaa00, #ffdd57);
    background-size: 400% 400%;
    animation: shine 2s infinite;
    transform: translateX(-50%) scale(0);
    border-radius: 50%;
    z-index: -1;
}

/* Animation du dégradé de lumière qui bouge */
@keyframes shine {
    0% {
        transform: translateX(-50%) scale(0);
        background-position: 0 0;
    }
    50% {
        background-position: 100% 100%;
        transform: translateX(-50%) scale(1);
    }
    100% {
        background-position: 0 0;
        transform: translateX(-50%) scale(0);
    }
}

/* Animation de pulsation du bouton */
@keyframes pulseEffect {
    0% {
        transform: scale(1.1);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    }
    50% {
        transform: scale(1.13);
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
    }
    100% {
        transform: scale(1.1);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    }
}

a {
    text-decoration: none;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.header-content p {
    font-size: 1.5em;
    margin: 20px 0;
    opacity: 0.8;
}

#dynamicText {
    color: white;
}

/* Icône flottante */
.floating-icon {
    position: absolute;
    bottom: 20px;
    right: 20px;
    animation: float 4s ease-in-out infinite;
    z-index: 1;
}

.floating-icon img {
    width: 300px;
    opacity: 0.9;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Section Vidéo */
.video-section {
    text-align: center;
    margin-top: 20px;
    opacity: 0;
    animation: fadeIn 3s forwards;
}

.video-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

iframe {
    width: 100%;
    height: 450px;
    border: none;
    border-radius: 8px;
}

/* Description */
.description {
    max-width: 1200px;
    margin: 40px auto;
    padding: 20px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    opacity: 0;
    animation: fadeIn 4s forwards;
}

.description h2, .description h3 {
    font-size: 2em;
    color: #0066cc;
    margin-bottom: 15px;
    transition: color 0.3s;
}

.description h2:hover, .description h3:hover {
    color: #004fa6;
}

.description p {
    font-size: 1.1em;
    color: #555;
    margin-bottom: 20px;
    transition: color 0.3s;
}

.description p:hover {
    color: #004fa6;
}

.description ul {
    list-style: none;
    margin-bottom: 20px;
}

.description ul li {
    font-size: 1.1em;
    padding-left: 1.5em;
    text-indent: -1.5em;
    line-height: 1.8;
    transition: transform 0.3s ease;
}

.description ul li:hover {
    transform: translateX(10px);
}

.description ul li::before {
    content: "✔";
    color: #0066cc;
    font-size: 1.5em;
    margin-right: 10px;
}

/* Formulaire d'inscription */
.form-section {
    margin-top: 40px;
    text-align: center;
}

.form-section input[type="email"] {
    padding: 15px;
    width: 80%;
    max-width: 400px;
    border-radius: 5px;
    border: 2px solid #ccc;
    font-size: 1em;
    margin-bottom: 20px;
    transition: border 0.3s ease;
}

.form-section input[type="email"]:focus {
    border-color: #0066cc;
    box-shadow: 0 0 10px rgba(0, 102, 204, 0.3);
}

.form-section input[type="submit"] {
    padding: 15px 40px;
    background-color: #0066cc;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1.2em;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.form-section input[type="submit"]:hover {
    background-color: #005bb5;
}

#message {
    display: none;
    font-size: 1.2em;
    color: rgb(15, 11, 114);
    margin-top: 20px;
    animation: fadeIn 2s forwards;
}

/* Footer */
footer {
    background-color: #003366;
    color: white;
    padding: 60px 20px; /* Augmentation du padding pour un footer plus grand */
    text-align: center;
    margin-top: 40px;
}

/* Contenu du footer */
.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
}

/* Sections du footer */
.footer-left, .footer-center, .footer-right {
    width: 32%; /* Donne plus de place aux sections */
    margin: 20px 0; /* Espace vertical entre les sections */
}

.footer-left h3,
.footer-center h4,
.footer-right h4 {
    color: #ffdd57;
    font-size: 1.8em;
    margin-bottom: 15px;
}

.footer-left p,
.footer-center p,
.footer-right a {
    font-size: 1.2em;
    line-height: 1.6;
    margin-bottom: 10px;
}

/* Liste des liens sociaux dans la section droite */
.footer-right .social-media-links {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 20px;
}

.footer-right .social-media-links a {
    text-decoration: none;
    color: #fff;
    font-size: 2em;
    font-weight: bold;
}

.footer-right .social-media-links a:hover {
    color: #ffdd57;
}

/* Section avec texte de copyright */
.footer-left p {
    font-size: 1.2em;
    margin-top: 10px;
}

/* Media Queries pour les appareils mobiles */
@media (max-width: 768px) {
    .header-content h1 {
        font-size: 2.5em;
    }
    
    .call-to-action {
        font-size: 1.2em;
        padding: 12px 30px;
    }
    
    .footer-content {
        flex-direction: column;
        align-items: center;
    }

    .footer-left, .footer-center, .footer-right {
        width: 100%;
        text-align: center;
    }
    
    .video-container {
        padding: 10px;
    }

    iframe {
        height: 300px;
    }
    
    .description h2, .description h3 {
        font-size: 1.5em;
    }

    .description p {
        font-size: 1em;
    }

    .form-section input[type="email"], .form-section input[type="submit"] {
        width: 90%;
    }
      /* Ajustement de la position de l'icône flottante sur mobile */
      .floating-icon {
        bottom: 10px;  /* Déplace l'icône flottante plus bas sur l'écran mobile */
        right: 10px;   /* Ajuste la position horizontale pour plus de marge */
    }

    .floating-icon img {
        width: 200px;  /* Réduit la taille de l'icône flottante pour s'adapter à l'écran mobile */
    }
}
