body {
    font-family: 'Ubuntu', sans-serif;
    background-color: #f8f9fa; /* Légère teinte grise pour le fond */
    color: #343a40; /* Texte légèrement plus sombre pour un meilleur contraste */
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    max-width: 100%;
    overflow: hidden; /* Masque les barres de défilement */
    height: 100vh; /* Prend toute la hauteur de la fenêtre */
}

.scroll-container {
    overflow-y: scroll; /* Permet le défilement vertical */
    -ms-overflow-style: none;  /* Masquer la barre de défilement sur Internet Explorer et Edge */
    scrollbar-width: none;  /* Masquer la barre de défilement sur Firefox */
}

.scroll-container::-webkit-scrollbar {
    display: none;  /* Masquer la barre de défilement sur Chrome, Safari et Opera */
}

.navbar {
    background-color: #dc3545;
    z-index: 100;
    text-align: center;
    padding: 20px;
    width: 100%;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    position: fixed; /* Fixe la barre de navigation en haut */
    top: 0;
    left: 0;
    right: 0; /* S'assurer que la navbar s'étend sur toute la largeur */
}

section {
    width: 80%; /* Définir une largeur uniforme pour toutes les sections */
    padding: 80px 20px 20px; /* Ajuster le padding pour éviter le chevauchement avec la navbar */
    margin: 20px auto;
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

#accueil {
    text-align: center;
}

#accueil h1 {
    font-size: 2.5rem;
    color: #dc3545;
    margin-bottom: 20px;
}

#accueil p {
    font-size: 1.1rem;
    color: #343a40;
    line-height: 1.8;
    margin: 0 auto;
    text-align: justify;
}

/* Bouton personnalisé */
.btn-custom {
    display: inline-block;
    padding: 10px 20px;
    background-color: #dc3545;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s, transform 0.3s;
    margin-top: 20px;
}

.btn-custom:hover {
    background-color: #c82333;
    transform: scale(1.05);
    text-decoration: none;
    color: white;
}

.navbar a {
    color: white;
    text-decoration: none;
    padding: 8px 12px;
    font-size: 18px;
    border-radius: 5px;
    transition: background-color 0.3s, color 0.3s, transform 0.3s;
    margin: 0 0.3vh;
    flex-grow: 1;
    text-align: center;
}

.navbar a:hover {
    background-color: white;
    color: #dc3545;
    border-radius: 5px;
    transform: scale(1.1);
    text-decoration: none;
}

@media (max-width: 768px) {
    .navbar {
        padding: 10px;
        flex-direction: column;
    }

    .navbar a {
        font-size: 14px;
        padding: 6px 10px;
        flex-grow: 0;
    }
}

.btn-plein-ecran {
    display: inline-block;
    padding: 10px 20px;
    background-color: #dc3545;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s, transform 0.3s;
}

.btn-plein-ecran:hover {
    background-color: #c82333;
    transform: scale(1.05);
    text-decoration: none;
    color: white;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    color: black;
    font-size: 4em;
}

/* Styles pour les boutons du carousel */
#carouselButtons {
    display: flex;
    gap: 10px;
}

#carouselButtons .btn {
    position: relative;
    width: 20px;
    height: 20px;
    background-color: transparent;
    border: 1px solid #dc3545;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    color: transparent;
    transition: background-color 0.3s, transform 0.3s;
}

#carouselButtons .btn::after {
    content: '';
    width: 12px;
    height: 12px;
    background-color: #dc3545;
    border-radius: 50%;
    transform: scale(0);
    transition: transform 0.3s;
}

#carouselButtons .btn.active::after,
#carouselButtons .btn:hover::after {
    transform: scale(1);
}

#carouselButtons .btn.active {
    background-color: #dc3545;
    color: white;
    border: 1px solid #dc3545;
}

.content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
}

h1 {
    color: #dc3545;
    margin-bottom: 20px;
    text-align: center;
}

p {
    text-align: justify;
    line-height: 1.6;
}

/* Styles pour le formulaire de contact */
.contact-form input[type="text"], .contact-form input[type="submit"], .contact-form textarea {
    width: 100%;
    padding: 12px 20px;
    margin: 8px 0;
    box-sizing: border-box;
    text-align: center;
    border: 1px solid #ced4da;
    border-radius: 5px;
    transition: border-color 0.3s;
}

.contact-form input[type="text"]:focus, .contact-form textarea:focus {
    border-color: #dc3545;
    outline: none;
}

.contact-form input[type="submit"] {
    background-color: #dc3545;
    color: white;
    padding: 10px 20px;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s;
}

.contact-form input[type="submit"]:hover {
    background-color: #c82333;
}

.footer {
    text-align: center;
    background-color: #f1f1f1;
    padding: 20px;
    box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.1);
}

.footer a {
    color: #343a40;
    text-decoration: none;
    margin: 0 10px;
}

.footer i {
    font-size: 2em;
    transition: color 0.3s;
}

.footer i:hover {
    color: #dc3545;
}

.card.custom-card {
    width: 100%;
    min-height: 350px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    margin-bottom: 20px;
    overflow: hidden; /* Masque les barres de défilement dans les cartes */
}

.card.custom-card .card-body {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 20px;
}

.card.custom-card .card-title {
    font-size: 1.2rem;
}

.card.custom-card .card-text {
    font-size: 1rem;
}

.card.custom-card .btn {
    align-self: center;
    margin-top: auto;
    transition: transform 0.3s, background-color 0.3s;
}

.card.custom-card .btn:hover {
    transform: scale(1.05);
    background-color: #c82333;
}

.container .row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

@media (max-width: 992px) {
    .card.custom-card {
        min-height: auto;
    }

    .card.custom-card .card-title {
        font-size: 1rem;
    }

    .card.custom-card .card-text {
        font-size: 0.875rem;
    }
}

/* Classe dédiée pour aligner le paragraphe dans le footer */
.footer p {
    text-align: center;
    margin: 0;
    padding: 10px 0;
}

.footer a {
    color: black;
    text-decoration: none;
    margin: 0 10px;
}

.footer a:hover {
    text-decoration: none;
    color: #dc3545;
}

.footer i {
    font-size: 2em;
    transition: color 0.3s;
}

.footer i:hover {
    color: #dc3545;
}

#custom-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
    display: flex;
    justify-content: center;
    align-items: center;
}

#custom-modal-content {
    background-color: #fefefe;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 500px;
    text-align: center;
    position: relative;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

#custom-modal-close {
    position: absolute;
    top: 10px;
    right: 20px;
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

#custom-modal-close:hover,
#custom-modal-close:focus {
    color: black;
}

#custom-modal-gif img {
    width: 100px;
    height: 100px;
    margin-top: 20px; /* Ajoute un espace au-dessus du GIF */
}

/* Media Queries to ensure the modal is perfectly centered on all screen sizes */
@media (max-width: 600px) {
    #custom-modal-content {
        width: 90%; /* Increase width for smaller screens */
    }
}

@media (min-width: 601px) and (max-width: 1200px) {
    #custom-modal-content {
        width: 80%; /* Default width */
    }
}

@media (min-width: 1201px) {
    #custom-modal-content {
        width: 60%; /* Decrease width for larger screens */
    }
}

#pdf-container {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: auto;
    border: 1px solid #ccc;
}
canvas {
    display: block;
    margin: 0 auto;
}
#loading-indicator {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 20px;
    display: none;
}