/* Style général */
body {
    font-family: 'Montserrat', Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    color: #000;
    line-height: 1.6;
}

/* En-tête */
header {
    position: relative;
    background: linear-gradient(to bottom, rgba(11, 37, 64, 0.9), rgba(0, 123, 255, 0.7)),
        url('Images/principal.jpg') no-repeat center center/cover;
    color: white;
    text-align: center;
    padding: 120px 20px;
}

.hero-content h1 {
    font-size: 3.5em;
    margin: 0;
    font-weight: 700;
    text-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    animation: fadeInDown 1.5s ease-out;
}

.hero-content .cta-button {
    display: inline-block;
    margin-top: 30px;
    padding: 15px 30px;
    font-size: 1.2em;
    font-weight: 700;
    color: white;
    background-color: #007BFF;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease-in-out;
}

.cta-button:hover {
    background-color: #0056b3;
}

/* Style pour les erreurs */
.error {
    color: red;
    font-size: 1em;
    text-align: center;
}

/* Style de la bannière */
.banniere {
    position: fixed; /* Rend la bannière fixe */
    top: 0; /* Place la bannière en haut */
    left: 0; /* Aligne la bannière à gauche */
    width: 100%; /* La bannière occupe toute la largeur */
    z-index: 1000; /* Assure que la bannière reste au-dessus des autres éléments */
    background-color: #112d4e; /* Bleu foncé */
    color: white; /* Couleur du texte */
    padding: 10px 0; /* Espacement intérieur */
    overflow: hidden; /* Masque tout dépassement */
    border-bottom: 2px solid #0b2540; /* Bordure inférieure */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5); /* Ajoute une ombre pour démarquer visuellement */
}

.banniere .ticker {
    display: inline-block;
    white-space: nowrap; /* Empêche le retour à la ligne */
    animation: scroll 20s linear infinite; /* Effet de défilement */
}

.banniere .ticker span {
    display: inline-block;
    margin-right: 50px; /* Espacement entre les éléments */
    font-weight: bold;
}

.banniere .positive {
    color: #00ff00; /* Vert pour les variations positives */
}

.banniere .negative {
    color: #ff0000; /* Rouge pour les variations négatives */
}

main {
    margin-top: 50px; /* Ajustez pour correspondre à la hauteur de la bannière */
}

/* Animation pour le défilement */
@keyframes scroll {
    0% {
        transform: translateX(100%);
    }
    100% {
        transform: translateX(-100%);
    }
}

/* Style pour le titre YourAnalytics */
.animated-title {
    font-size: 3em;
    font-weight: bold;
    text-align: center;
    margin: 20px 0;
    display: inline-block;
    position: relative;
}

/* Partie "Your" */
.animated-title .your {
    color: #000000; /* Noir */
    animation: fadeInLeft 1.5s ease-in-out;
    display: inline-block;
    transition: all 0.3s ease-in-out;
}

/* Partie "Analytics" */
.animated-title .analytics {
    color: #000000; /* Noir */
    animation: fadeInRight 1.5s ease-in-out;
    display: inline-block;
    transition: all 0.3s ease-in-out;
}

/* Animation d'apparition */
@keyframes fadeInLeft {
    0% {
        opacity: 0;
        transform: translateX(-20px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    0% {
        opacity: 0;
        transform: translateX(20px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Effets au survol */
.animated-title .your:hover {
    color: #00cc00; /* Vert plus foncé */
    transform: scale(1.1); /* Agrandissement léger */
}

.animated-title .analytics:hover {
    color: #cc0000; /* Rouge plus foncé */
    transform: scale(1.1); /* Agrandissement léger */
}

/* Bonus : effet de soulignement au survol */
.animated-title .your:hover::after,
.animated-title .analytics:hover::after {
    content: '';
    display: block;
    height: 2px;
    width: 100%;
    background-color: currentColor; /* Utilise la couleur actuelle */
    animation: underline 0.3s ease-in-out;
}

/* Animation du soulignement */
@keyframes underline {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

/* Popup formulaire */
.form-popup {
    display: none; /* Caché par défaut */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8); /* Fond semi-transparent plus sombre */
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.form-container {
    background: linear-gradient(135deg, #007BFF, #0056b3); /* Gradient pour plus de dynamisme */
    color: white;
    padding: 30px;
    border-radius: 12px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    position: relative;
    text-align: center;
    box-sizing: border-box; /* Inclut padding et bordures dans la largeur totale */
}

.form-container h2 {
    margin-top: 0;
    text-align: center;
    font-size: 1.8em;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.form-container label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    text-align: left;
    color: #e0e0e0;
}

.form-container input {
    width: 95%; /* Ajuste pour éviter le dépassement */
    padding: 12px;
    margin-bottom: 20px;
    border: none;
    border-radius: 6px;
    font-size: 1em;
    background-color: rgba(255, 255, 255, 0.8);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    box-sizing: border-box; /* Inclut padding et bordures */
}

.form-container input:focus {
    outline: none;
    background-color: #ffffff;
    box-shadow: 0 0 6px #007BFF;
}

.submit-button {
    width: 100%;
    padding: 12px;
    font-size: 1.2em;
    color: #fff;
    background-color: #28a745;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
}

.submit-button:hover {
    background-color: #218838;
    transform: translateY(-2px);
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.2);
}

.close-button {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 1.5em;
    cursor: pointer;
    color: white;
    transition: color 0.3s;
}

.close-button:hover {
    color: #ddd;
}

/* Styles de base pour le popup */
.popup {
    display: none; /* Caché par défaut */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8); /* Fond semi-transparent */
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.popup-content {
    background: linear-gradient(135deg, #007BFF, #0056b3); /* Gradient dynamique */
    padding: 30px;
    border-radius: 12px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    position: relative;
    text-align: center;
    color: white;
    box-sizing: border-box;
}

.popup-content h2 {
    margin-top: 0;
    font-size: 1.8em;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.popup-content label {
    display: block;
    margin-bottom: 8px;
    text-align: left;
    font-weight: bold;
    color: #e0e0e0;
}

.popup-content input {
    width: 95%; /* Ajuste pour éviter le dépassement */
    padding: 12px;
    margin-bottom: 20px;
    border: none;
    border-radius: 6px;
    font-size: 1em;
    background-color: rgba(255, 255, 255, 0.8);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.popup-footer {
    margin-top: 15px;
    font-size: 0.9em;
}

.cta-button {
    display: inline-block;
    padding: 12px 24px;
    font-size: 1em;
    font-weight: bold;
    color: white;
    background-color: #28a745;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
}

.cta-button:hover {
    background-color: #218838;
    transform: translateY(-2px);
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.2);
}

/* Success Popup */
.success-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1100;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    font-family: 'Montserrat', Arial, sans-serif;
}

.success-popup .success-content {
    background-color: #28a745;
    padding: 20px 30px;
    border-radius: 12px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    color: white;
    font-size: 1.5em;
    position: relative;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.success-popup .success-content .checkmark {
    font-size: 3em;
    color: white;
    margin-bottom: 10px;
}

.success-popup .success-content p {
    margin: 0;
    font-weight: bold;
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}



/* Success Popup */
.success-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1100;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    font-family: 'Montserrat', Arial, sans-serif;
}

.success-popup .success-content {
    background-color: #28a745;
    padding: 20px 30px;
    border-radius: 12px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    color: white;
    font-size: 1.5em;
    position: relative;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.success-popup .success-content .checkmark {
    font-size: 3em;
    color: white;
    margin-bottom: 10px;
}

.error-message {
    color: red;
    font-size: 0.9em;
    margin-top: 10px;
    text-align: center;
    font-weight: bold; /* Ajoute le texte en gras */
    animation: fadeIn .5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

<link rel="icon" href="Images\favicon.ico" type="image/x-icon">
<style>
    /* Arrondi du favicon (effet uniquement visible dans certains cas) */
    link[rel="icon"] {
        border-radius: 50%;
    }
</style>

/* Bannière fixe contenant les horloges */
.footer-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(135deg, #000000, #112d4e);
    color: white;
    text-align: center;
    padding: 5px 0; /* Réduit le padding */
    font-size: 10px; /* Taille de texte réduite */
    font-family: 'Montserrat', Arial, sans-serif;
    z-index: 1000;
    box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.5); /* Réduit l'ombre */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 80px; /* Hauteur drastiquement réduite */
}

.clocks-container {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(135deg, #000000, #112d4e);
    color: white;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    height: 50px; /* Réduit encore la hauteur */
    padding: 0; /* Supprime le padding */
    box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.5);
    overflow-x: hidden;
}


/* Marques d'heures */
.hour-mark {
    position: absolute;
    width: 1px;
    height: 2px; /* Taille réduite des marques */
    background-color: #ffffff;
    top: 80%;
    left: 50%;
    transform-origin: center calc(50% - 10px); /* Ajuste la position pour les petites horloges */
    transform: rotate(0deg);
    border-radius: 1px;
}

/* Marques plus grandes pour les quarts d'heures */
.hour-mark:nth-child(4),
.hour-mark:nth-child(7),
.hour-mark:nth-child(10),
.hour-mark:nth-child(1) {
    height: 3px; /* Marques légèrement plus grandes */
    background-color: #007BFF;
}

/* Style des horloges */
.clock {
    width: 30px; /* Taille drastiquement réduite */
    height: 30px;
    border: 1px solid #007BFF;
    border-radius: 50%;
    position: relative;
    background: linear-gradient(135deg, #112d4e, #000000);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    text-align: center;
    margin: 2px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.2s ease-in-out; /* Transition réduite */
}

.clock-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.clock:hover {
    transform: scale(1.5); /* Grossissement réduit au survol */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
}



/* Nom de la ville */
.city-name {
    font-size: 8px; /* Réduit la taille du texte */
    font-weight: bold;
    color: #ffffff;
    margin-top: 3px; /* Réduit l'espacement */
    text-align: center;
}

/* Aiguilles */
.hand {
    position: absolute;
    width: 50%;
    height: 1px; /* Réduit l'épaisseur */
    background-color: #ffffff;
    top: 50%;
    left: 50%;
    transform-origin: 0% 50%;
    transform: rotate(90deg);
    transition: transform 0.3s ease-in-out;
}

.hand.hour {
    width: 25%;
    height: 2px;
    background-color: #007BFF;
}

.hand.minute {
    width: 35%;
    background-color: #ffffff;
}

.hand.second {
    width: 40%;
    background-color: #FF0000;
}

    
