@font-face {
    font-family: 'MV Boli';
    src: url('/fonts/mvboli.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}
body {
    font-family: 'MV Boli', sans-serif;
}
/* Réduire la taille de l'image dans le header */
.header-image {
    height: 120px;
    width: auto;
}
.navbar-light.custom-bg {
    background-color: #d6d6d6 !important; /* légèrement plus foncé que #f8f9fa (bg-light) */
}
.custom-bg {
  background-color: #d6d6d6 !important; /* même valeur que bg-light de Bootstrap */
}

/* Centrer les éléments de la barre de navigation */
.navbar-nav.mx-auto {
    flex-grow: 1;
    justify-content: center;
}

/* Assurer que l'élément FAQ soit aligné à droite */
.navbar-nav.ml-auto {
    justify-content: flex-end;
}

/* Agrandir la taille de la police des éléments de la barre de navigation */
.navbar-nav .nav-link {
    font-size: 1.2rem; /* Ajustez cette valeur selon vos besoins */
}

/* Ajouter un espacement entre les liens centraux de la barre de navigation */
.navbar-nav.mx-auto .nav-item:not(:last-child) {
    margin-right: 50px; /* Ajustez cette valeur selon vos besoins */
}

/* Centrer le conteneur Unity */
#unity-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: auto; /* Ajuster automatiquement la taille */
}

/* Définir la couleur du titre en rouge */
.card-title {
    color: #B01E27;
    font-size: 1.8rem; /* Ajustez la taille du titre principal */
}

/* Footer */
footer {
    background-color: #343a40;
    color: white;
    padding: 10px 0;
    text-align: center;
    width: 100%;
    position: relative;
    z-index: 1; /* Position au-dessus de la vidéo */
}

/* Style pour la vidéo derrière le footer */
#video-behind-footer {
    position: relative;
    bottom: 0;
    width: 100%;
    z-index: 0; /* Derrière le footer */
    height: auto;
    max-height: 80vh;
    object-fit: cover;
}

.card {
    height: fit-content;
}

/* Styles pour les différentes tailles d'écran */
@media (min-height: 300px) {
    .card-body {
        font-size: 0.9rem;
    }
}

@media (min-height: 400px) {
    .card-body {
        font-size: 1rem;
    }
}

@media (min-height: 500px) {
    .card-body {
        font-size: 1.1rem;
    }
}

/* Ajustements des titres */
h2 {
    font-size: 1.6rem; /* Ajustez la taille des titres secondaires */
}

h3 {
    font-size: 1.4rem; /* Ajustez la taille des sous-titres */
}

.card-body {
    font-size: 1rem;
    text-align: justify;
}

@media (max-width: 576px) {
    .navbar-collapse {
        flex-basis: 100%;
        flex-grow: 1;
        justify-content: center;
    }
    .navbar-nav {
        text-align: center;
    }
    .navbar-nav .nav-item {
        margin-bottom: 10px;
    }
}

/* Rendre la vidéo dans la page index plus petite */
#index-video {
    width: 100%;
    max-height: 50vh; /* Limiter la taille de la vidéo sur l'index */
    object-fit: cover;
}

/* =================== */
/* Styles spécifiques à la page des tutoriels */
/* =================== */

/* Changer la couleur des boutons .btn-primary uniquement à l'intérieur de .page-tutoriels */
.page-tutoriels .btn.btn-primary {
    background-color: #FFDAB9;
    border-color: #FFDAB9;
    color: black;
}

.page-tutoriels .btn.btn-primary:hover,
.page-tutoriels .btn.btn-primary:focus,
.page-tutoriels .btn.btn-primary:active {
    background-color: #FFC7A2; /* Une teinte légèrement plus foncée pour l'effet hover */
    border-color: #FFC7A2;
    color: black;
}
/* 🎨 Animation pour les alertes */
@keyframes fadeInOut {
    0% {
        opacity: 0;
        transform: translateY(-10px);
    }
    10% {
        opacity: 1;
        transform: translateY(0);
    }
    90% {
        opacity: 1;
        transform: translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateY(-10px);
    }
}

/* ✅ Style général des alertes */
.alert {
    display: none; /* Par défaut, caché */
    position: relative;
    padding: 15px;
    border-radius: 5px;
    font-weight: bold;
    text-align: center;
    transition: opacity 0.3s ease-in-out;
}

/* 🟢 Succès */
.alert-success {
    background-color: #d4edda;
    color: #155724;
    border-left: 5px solid #28a745;
    animation: fadeInOut 4s ease-in-out;
}

/* 🔴 Erreur */
.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border-left: 5px solid #dc3545;
    animation: fadeInOut 4s ease-in-out;
}

/* 🟡 Avertissement */
.alert-warning {
    background-color: #fff3cd;
    color: #856404;
    border-left: 5px solid #ffc107;
    animation: fadeInOut 4s ease-in-out;
}

/* 🔵 Information */
.alert-info {
    background-color: #d1ecf1;
    color: #0c5460;
    border-left: 5px solid #17a2b8;
    animation: fadeInOut 4s ease-in-out;
}

/* 🎭 Animation d'apparition avec effet de slide */
@keyframes slideIn {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Appliquer l'effet aux alertes qui apparaissent */
.alert.show {
    display: block;
    animation: slideIn 0.5s ease-out;
}

