/* Styles globaux */
html, body {
      font-family: 'Friandise', serif;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    transition: background-image 5s ease-in-out, background-color 2s ease-in-out;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column; /* Corrigé pour un layout en colonnes */
    height: 100vh; /* Le body prend toute la hauteur */
    opacity: 0; /* Initialement transparent */
    animation: fadeBackground 2s ease-in-out forwards; /* Animation de fondu */
}
/* Animation de fondu */
@keyframes fadeBackground {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}
/* Conteneur principal */
#container {
    flex: 1; /* Le conteneur occupe tout l'espace restant entre le header et le footer */
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    width: 100%;
}


/* Logo */
.logo-container {
    position: absolute;
    bottom: 20px;
    left: 20px;
    z-index: 2;
}

#logo {
    width: 425px; /* Taille réduite de 15 % du logo original (500px) */
}

/* Cercle parent avec animation d'arrivée */
#circles {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    width: 80%;
    height: 80%;
    margin: 0 auto;
    gap: 5px;
    position: relative;
    z-index: 100;
    transform: translateY(0); /* Plus de mouvement depuis le bas */
    animation: moveToPosition 8s ease-in-out forwards; /* Animation plus lente */
}

/* Animation des cercles vers leur position initiale */
@keyframes moveToPosition {
    0% {
        opacity: 0; /* Les cercles sont invisibles au départ */
        transform: scale(0.2); /* Réduction initiale pour une légère transformation */
    }
    25% {
        opacity: 0; /* Les cercles sont invisibles au départ */
        transform: scale(0.2); /* Réduction initiale pour une légère transformation */
    }
    50% {
        opacity: 0.5; /* Les cercles deviennent progressivement visibles */
        transform: scale(1); /* Les bulles grossissent pour prendre leur taille normale */
    }
    100% {
        opacity: 1; /* Complètement visibles à la fin */
    }
}

/* Cercles individuels (bulles avec effet 3D et centre décalé) */
.circle {
    width: 153px;  /* Taille réduite de 15 % par rapport à 180px */
    height: 153px; /* Taille réduite de 15 % */
    border-radius: 50%;
    background: radial-gradient(circle at 80% 20%, 
    rgba(255, 255, 255, 0.8), /* Reflet lumineux adouci */
    rgba(150, 190, 120, 0.7), /* Vert clair légèrement plus sombre */
    rgba(115, 153, 72, 0.8), /* Nuance intermédiaire réaliste */
    rgba(95, 125, 50, 0.8),  /* Vert plus foncé pour créer de la profondeur */
    rgba(75, 105, 40, 0.9), /* Ombre subtile */
    rgba(50, 75, 25, 1) /* Ombre foncée pour un effet 3D accentué */
);

    color: #ffffff; /* Couleur blanche pour le texte */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-size: 15.3px; /* Réduction de la taille du texte (15% de 18px) */
    box-shadow: inset 0px 0px 25px rgba(255, 255, 255, 0.7), 
                0px 4px 15px rgba(0, 0, 0, 0.1), 
                0px 0px 30px rgba(255, 255, 255, 0.5); 
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.6s ease-in-out, box-shadow 0.6s ease-in-out, background 0.6s ease-in-out; /* Ralentissement de la transition au hover */
    position: relative;
    font-family: 'Friandise', serif;
    text-align: center;
    animation: float 6s ease-in-out infinite; /* Animation de flottement plus lente */
}

/* Spécificité du logo : il doit être au-dessus de tout */
#qui-suis-je {
    z-index: 1001;
    animation: floatLogo 6s ease-in-out infinite;
}

.circle img {
    width: 42.5px;  /* Réduction de 15% par rapport à 50px */
    height: auto;
    margin-bottom: 10px;
    filter: drop-shadow(0px 0px 5px rgba(0, 0, 0, 0.3)); /* Ajout d'un léger ombrage sur les images */
}

.circle:hover {
    transform: scale(1.1);
    box-shadow: inset 0px 0px 30px rgba(255, 255, 255, 0.9),
                0px 8px 15px rgba(0, 0, 0, 0.3), 
                0px 0px 40px rgba(255, 255, 255, 0.7);
    background: radial-gradient(circle at 70% 30%, rgba(255, 255, 255, 0.9), rgba(85, 107, 47, 0.7), rgba(85, 107, 47, 0.8)); /* Couleur intensifiée lors du survol */

    /* Ajout des étoiles */
}

.circle:hover::before,
.circle:hover::after {
    content: '';
    position: absolute;
    width: 15px;
    height: 15px;
    background: transparent;
    clip-path: polygon(
        50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 
        50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%
    ); /* Forme d'étoile en CSS */
    background-color: rgba(255, 255, 255, 0.8); /* Couleur blanche pour l'étoile */
    opacity: 0;
    animation: sparkle 1.5s infinite ease-in-out;
}

.circle:hover::before {
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    animation-delay: 0.5s;
}

.circle:hover::after {
    bottom: -15px;
    right: 50%;
    transform: translateX(50%);
    animation-delay: 1s;
}

/* Animation de scintillement */
@keyframes sparkle {
    0%, 100% {
        opacity: 0;
        transform: scale(0.5);
    }
    50% {
        opacity: 1;
        transform: scale(1.5);
    }
}

/* Animation de flottement */
@keyframes float {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-50px);
    }
    100% {
        transform: translateY(0);
    }
}

/* Animation spécifique du logo pour qu'il flotte un peu plus que les autres */
@keyframes floatLogo {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-60px);
    }
    100% {
        transform: translateY(0);
    }
}

/* Responsive pour les petits écrans (tablettes et mobiles) */
@media (max-width: 1024px) {
    #logo {
        width: 255px; /* Réduction à 255px pour les petits écrans */
    }

    .circle {
        width: 119px;
        height: 119px;
        font-size: 13.6px; /* Réduction de 15% */
    }

    .circle img {
        width: 34px;
    }
}

/* Responsive pour très petits écrans (mobiles) */
@media (max-width: 600px) {
    #logo {
        width: 127px; /* Réduction significative pour les mobiles */
    }

    .circle {
        width: 85px;
        height: 85px;
        font-size: 10.2px;
    }

    .circle img {
        width: 25.5px;
    }

    #circles {
        gap: 10px;
    }
}

/* Nouveau conteneur pour le logo principal (bulle centrée en bas à gauche) */
#logo-main-container {
    position: absolute;
    bottom: 20px;
    left: 20px; /* Positionné à gauche */
    width: 153px; /* Réduction de 15% par rapport à 180px */
    height: 153px;
    border-radius: 50%;
    background: radial-gradient(circle at 70% 30%, rgba(255, 255, 255, 0.8), rgba(107, 142, 35, 0.6), rgba(107, 142, 35, 0.7)); /* Couleur et ombrage */
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: inset 0px 0px 25px rgba(255, 255, 255, 0.7), 
                0px 4px 15px rgba(0, 0, 0, 0.1), 
                0px 0px 30px rgba(255, 255, 255, 0.5); 
    border: 2px solid rgba(255, 255, 255, 0.2);
    animation: subtleMove 3s ease-in-out infinite alternate;
    z-index: 1001; /* Pour que le logo soit visible par-dessus les autres éléments */
}

/* Logo principal à l'intérieur de la bulle */
#logo-main {
    max-width: 297.5px; /* Réduction de 15% par rapport à 350px */
    height: auto;
}

/* Animation subtile pour le logo principal (léger mouvement) */
@keyframes subtleMove {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(-10px);
    }
}

/* Responsive: ajustement pour téléphones */
@media (max-width: 768px) {
    #logo-main-container {
        width: 102px;  /* Réduction pour petits écrans */
        height: 102px;
        bottom: 10px;
        left: 10px;
    }

    #logo-main {
        max-width: 85px;  /* Réduction du logo */
    }
	.imagelogo {
    width: 50px !important; /* Taille personnalisée */
    height: auto !important; /* Garde les proportions */
    margin-top: 40px !important; /* Déplace vers le bas */
    margin-left: 5px; /* Déplace vers la droite */
}
}

/* Image logo spécifique */
.imagelogo {
    width: 150px !important; /* Taille personnalisée */
    height: auto !important; /* Garde les proportions */
    margin-top: 40px !important; /* Déplace vers le bas */
    margin-left: 5px; /* Déplace vers la droite */
}



.hidden-login-btn:hover {
    opacity: 1;
}

.login-icon {
    width: 50px; /* Taille de la bulle */
    height: auto;
    border-radius: 50%; /* Pour que l'image reste bien circulaire */
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease;
}

.login-icon:hover {
    transform: scale(1.1);
}


/* Bouton caché */
.hidden-login-btn {
    position: fixed;
    bottom: 120px;
    right: 200px;
    padding: 5px;
    background-color: transparent;
    border: none;
    cursor: pointer;
    opacity: 0.3;
    transition: opacity 0.3s ease;
    z-index: 1000;
}


.hidden-login-btn {
    position: fixed;
    bottom: 120px; /* Ajustement pour remettre la bulle plus bas */
    right: 200px; /* Positionne la bulle à droite */
    padding: 5px;
    background-color: transparent;
    border: none;
    cursor: pointer;
    opacity: 0.3; /* Rendre le bouton discret */
    transition: opacity 0.3s ease;
    z-index: 1000; /* Assure que la bulle reste au-dessus des autres éléments */
}

.hidden-login-btn:hover {
    opacity: 1; /* Le bouton devient plus visible au survol */
}

.hidden-login-btn:focus {
    outline: none; /* Supprimer le contour par défaut */
}

.login-icon {
    width: 10px; /* Taille de la bulle */
    height: auto;
    border-radius: 50%; /* Pour s'assurer que l'image reste bien circulaire */
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5); /* Ajout d'une ombre douce autour de la bulle */
    transition: transform 0.3s ease;
	
}

.login-icon:hover {
    transform: scale(1.1); /* Effet de zoom au survol */
}



/* Footer global */
.footer-container-custom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.footer-section-custom {
    flex: 1;
    padding: 5px;
}

.footer-section-custom a {
    color: #fff;
    text-decoration: none;
    font-size: 1.2em;
    transition: color 0.3s;
}

.footer-section-custom a:hover {
    color: #4CAF50;
}

.footer-section-custom img {
    width: 30px;
    height: auto;
    transition: transform 0.3s;
}

.footer-section-custom img:hover {
    transform: scale(1.2);
}

/* Tooltips */
.tooltip-custom .tooltiptext-custom {
    visibility: hidden;
    width: 120px;
    background-color: black;
    color: #fff;
    text-align: center;
    border-radius: 5px;
    padding: 5px 0;
    position: absolute;
    z-index: 1;
}

.tooltip-custom:hover .tooltiptext-custom {
    visibility: visible;
}

/* Popups */
.newsletter-popup-overlay-custom,
.unsubscribe-popup-overlay-custom {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.newsletter-popup-content-custom,
.unsubscribe-popup-content-custom {
    background-color: #fff;
    padding: 20px;
    border-radius: 5px;
    width: 350px;
    text-align: center;
    position: relative;
}

.newsletter-popup-content-custom form,
.unsubscribe-popup-content-custom form {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.newsletter-popup-content-custom label,
.unsubscribe-popup-content-custom label {
    margin: 5px 0;
    font-weight: bold;
}

.newsletter-popup-content-custom input,
.unsubscribe-popup-content-custom input {
    margin-bottom: 10px;
    padding: 10px;
    width: 100%;
    max-width: 300px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.newsletter-popup-content-custom button,
.unsubscribe-popup-content-custom button {
    padding: 10px 20px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 10px;
}

.newsletter-popup-content-custom button:hover,
.unsubscribe-popup-content-custom button:hover {
    background-color: #45a049;
}

.hidden-custom {
    display: none;
}

/* Bouton de fermeture */
.close-popup-custom {
    position: absolute;
    top: 10px;
    right: 20px;
    color: black;
    font-size: 25px;
    cursor: pointer;
}
/* Styles pour les messages de succès et d'erreur */
#notification {
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    opacity: 1;
    transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
}

.success-message {
    background-color: #28a745; /* Vert vif pour succès */
    color: #fff; /* Texte blanc */
    font-weight: bold;
}

.error-message {
    background-color: #dc3545; /* Rouge vif pour erreur */
    color: #fff; /* Texte blanc */
    font-weight: bold;
}

.hidden {
    opacity: 0;
    visibility: hidden;
}
.en-savoir-plus-btn {
    margin-top: 20px;
    padding: 10px 20px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.en-savoir-plus-btn:hover {
    background-color: #45a049;
}
