@font-face {
    font-family: 'AnimalPaw';
    src: url('ASSETS/fonts/Animal\ Paw.ttf') format('truetype');
}@font-face {
    font-family: 'AnimalPaw';
    src: url('ASSETS/fonts/Animal\ Paw.ttf') format('truetype');
}

@font-face {
    font-family: 'RobotoSlab';
    src: url('ASSETS/fonts/RobotoSlab-Regular.ttf') format('truetype');
}

body, html {
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
    scroll-behavior: smooth;
    background: url('ASSETS/bacground2.png') no-repeat center center fixed;
    background-size: cover;
    cursor: default; /* Masquer le curseur par défaut */
}

body {
    padding-bottom: 50px;
    overflow-y: auto;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

body::-webkit-scrollbar {
    display: none;
}

/* Conteneur principal pour logo, titre, sous-titre et section bienvenue */
.header-welcome-container {
    background-color: rgba(255, 255, 255, 0.7);
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    text-align: center;
    margin: 20px auto;
    max-width: 80%;
    box-sizing: border-box;
}

/* Conteneur pour logo, titre et sous-titre */
.logo-title-container {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Logo */
.logo {
    max-width: 100px;
    margin-right: 20px;
}

/* Conteneur pour titre et sous-titre */
.title-subtitle {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

/* Titre */
.title-subtitle h1 {
    font-family: 'AnimalPaw', Arial, sans-serif;
    color: white;
    font-size: 4rem;
    -webkit-text-stroke: 1px black;
    margin: 0;
    text-align: left;
    text-shadow: 4px 4px 8px #5ee45e;
    user-select: none;
    margin-bottom: 5px;
}

/* Sous-titre */
.subtitle {
    font-family: 'RobotoSlab', Arial, sans-serif;
    color: #f3f5f3;
    font-size: 1.5rem;
    margin-top: 5px;
    -webkit-text-stroke: 0.5px black;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.6);
    text-align: left;
}

/* Section bienvenue */
.welcome-section {
    background-color: transparent;
    text-align: center;
    margin-top: 20px;
}

.welcome-section p {
    color: #333;
    font-size: 1.2rem;
    user-select: none;
    cursor: default;
}

/* Ajustements pour les petits écrans */
@media (max-width: 768px) {
    .title-subtitle h1 {
        font-size: 3rem;
    }
    .subtitle {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .title-subtitle h1 {
        font-size: 2.5rem;
    }
    .subtitle {
        font-size: 1rem;
    }
}

/* Bouton d'alerte */
.alert-button {
    position: absolute;
    bottom: 45%;
    left: 45%;
    transform: translateX(-50%);
    width: 18vw;
    max-width: 250px;
    min-width: 150px;
    height: auto;
    background: none;
    border: none;
    cursor: pointer;
    transition: transform 0.3s ease-in-out;
}

.alert-button img {
    width: 150px;
    height: auto;
    cursor: pointer;
    transition: transform 0.3s ease-in-out, filter 0.3s ease-in-out;
    filter: none;
}

.alert-button img:hover {
    transform: scale(1.1);
    filter: drop-shadow(0 0 15px red);
}

/* Effet de flash rouge du bouton */
@keyframes flashButtonEffect {
    0%, 50%, 100% {
        filter: drop-shadow(0 0 20px red) drop-shadow(0 0 30px red);
    }
    25%, 75% {
        filter: drop-shadow(0 0 10px red) drop-shadow(0 0 15px red);
    }
}

.alert-button {
    animation: flashButtonEffect 1.5s infinite;
}

.alert-button:hover {
    animation: flashButtonEffect 1.5s infinite, subtleShakeEffect 0.5s ease-in-out infinite;
    transform: scale(1.2) translateX(-50%);
}

@keyframes subtleShakeEffect {
    0% { transform: translateX(-50%) translateY(0); }
    25% { transform: translateX(-50%) translateY(-1px); }
    50% { transform: translateX(-50%) translateY(1px); }
    75% { transform: translateX(-50%) translateY(-1px); }
    100% { transform: translateX(-50%) translateY(0); }
}

/* Media Queries pour ajuster la taille sur différents écrans */
@media (max-width: 768px) {
    .alert-button {
        width: 20vw;
        max-width: 180px;
    }
}

@media (max-width: 480px) {
    .alert-button {
        width: 25vw;
        max-width: 150px;
    }
}

/* Popup Overlay pour l'alerte */
.popup-overlay-alert {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.popup-content-alert {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: url('ASSETS/background1.png') no-repeat center center;
    background-size: cover;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    width: 80%;
    max-width: 500px;
    max-height: 90%;
    overflow-y: auto;
    opacity: 0;
    color: #fff;
    transition: transform 0.3s ease-in-out;
    user-select: none;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE 10+ */
}



.popup-content-alert::-webkit-scrollbar {
    display: none; /* Masque la barre de défilement dans le popup */
}


.popup-overlay-alert.active {
    display: block;
    opacity: 1;
}

.popup-content-alert.active {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

/* Bouton de fermeture avec image */
.close-btn {
    position: absolute;
    top: 20px;  /* Ajuster selon le besoin */
    right: 20px; /* Ajuster selon le besoin */
    width: 50px; /* Taille de la croix */
    height: 50px; /* Taille de la croix */
    background: url('ASSETS/logo2.png') no-repeat center center;
    background-size: contain; /* Assure que l'image s'adapte à la taille du bouton */
    cursor: pointer;
    line-height: 50px; /* Aligner verticalement le symbole de la croix, si nécessaire */
    text-align: center;
    z-index: 1100; /* Assure que le bouton reste au-dessus des autres éléments */
    opacity: 1;
}

.close-btn:hover {
    opacity: 0.8; /* Rend la croix légèrement transparente au survol */
}



/* Style du formulaire avec des tons bleu, vert et jaune */
form label {
    display: block;
    margin-top: 10px;
    font-size: 1.4rem; /* Taille augmentée des lettres */
    color: #094430; /* vert foncé */
}

form input, form select, form textarea {
    width: 100%;
    padding: 10px;
    margin-top: 5px;
    border-radius: 5px;
    border: 2px solid #5ee45e; /* Bordure bleue */
    font-size: 1.2rem; /* Taille augmentée des lettres */
    background-color: rgba(255, 255, 255, 0.8);
    color: #333;
}

form button {
    margin-top: 20px;
    padding: 10px 15px;
    background-color: #5ee45e; /* Vert pour le bouton */
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.4rem; /* Taille augmentée des lettres */
}

form button:hover {
    background-color: #228b22; /* Vert foncé au survol */
}

/* Classe pour désactiver le défilement de la page principale */
.no-scroll {
    overflow: hidden;
    height: 100%; /* Fixe la hauteur de la page pour éviter tout défilement */
}

#preview-container {
    margin-top: 10px;
    display: flex; /* Affiche les images en ligne */
    flex-wrap: wrap; /* Permet le retour à la ligne des photos si nécessaire */
}

#preview-container div {
    display: flex;
    flex-direction: column;
    align-items: center;
}

#preview-container img {
    margin-right: 10px;
    border: 2px solid #ddd;
}

.popup-content h2 {
    font-size: 2rem; /* Taille du texte */
    color: white; /* Couleur du texte */
    -webkit-text-stroke: 1px #5ee45e; /* Contour vert pour les navigateurs WebKit */
    text-shadow: 
        1px 1px 0 #5ee45e, 
        -1px -1px 0 #5ee45e, 
        1px -1px 0 #5ee45e, 
        -1px 1px 0 #5ee45e; /* Contour vert en utilisant text-shadow */
}


#error-message {
    color: red;
    font-size: 1rem;
    margin-top: 10px;
    display: none;
}

/* Popup Overlay pour la confirmation */
.popup-overlay-confirmation {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.popup-content-confirmation {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #ff0000;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    width: 80%;
    max-width: 500px;
    color: white;
    text-align: center;
}

.popup-overlay-confirmation.active {
    display: block;
    opacity: 1;
}

.popup-content-confirmation.active {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}



/* Popup Overlay pour le département */
.popup-overlay-departement {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.popup-content-departement {
    position: fixed;
    top: 50%;
    left: 50%;

    background: url('ASSETS/background1.png') no-repeat center fixed;
    background-size: cover;
    padding: 10px;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    width: 80%;
    max-width: 500px;
    text-align: center;
    color: white;
}

.popup-overlay-departement.active {
    display: block;
    opacity: 1;
}

.popup-content-departement.active {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

/* Menu déroulant */
.popup-content-departement select {
    margin-top: 25px;
    margin-bottom: 100px;
    padding: 10px;
    font-size: 1.2rem;
    width: 100%;
    border-radius: 5px;
    border: 2px solid #5ee45e;
    background-color: rgba(255, 255, 255, 0.8);
    color: #333;
}

/* Bouton Valider pour le département */
.popup-content-departement button {
    margin-top: 20px;
    margin-bottom: 200px;
    padding: 10px 15px;
    background-color: #5ee45e;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.4rem;
    transition: background-color 0.3s ease;
}

.popup-content-departement button:hover {
    background-color: #228b22;
}



/* Contenu spécifique aux différents popups */
.popup-content-confirmation h2,
.popup-content-departement h2,
.popup-content-alert h2 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.popup-content-confirmation p,
.popup-content-departement p,
.popup-content-alert p {
    font-size: 1.4rem;
    margin-bottom: 20px;
}

/* Bouton de retour à la page d'accueil */
.popup-content-confirmation button {
    background-color: white;
    color: red;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.2rem;
}

.popup-content-confirmation button:hover {
    background-color: #ffcccc;
}

/* Bouton Animaux perdus */
.lost-animals-button-container {
    text-align: center;
    margin-top: 230px;
}

.lost-animals-button {
    background-color: #5ee45e;
    color: white;
    padding: 15px 30px;
    font-size: 1.2rem;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.3s ease-in-out, background-color 0.3s ease-in-out;
}

.lost-animals-button:hover {
    background-color: #228b22;
    transform: scale(1.1);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

/* Popup Overlay pour le département */
.popup-overlay-departement {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.popup-overlay-departement.active {
    display: block;
    opacity: 1;
}

.popup-content-departement {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: url('ASSETS/background1.png') no-repeat center center;
    background-size: cover;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    width: 80%;
    max-width: 500px;
    max-height: 90%;
    overflow-y: auto;
    opacity: 0;
    color: #fff;
    transition: transform 0.3s ease-in-out;
}

.popup-content-departement.active {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}
