/* ================== Header High-Tech ================== */
.hightech-navbar {
    background: #fff;
    padding: 0.6rem 1rem;
    transition: all 0.3s ease;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999; /* Assurez-vous que le header reste au-dessus des autres éléments */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Ombre pour le header */
}

.hightech-navbar .logo-img {
    height: 100px;
    transition: transform 0.3s ease;
}

.hightech-navbar .logo-img:hover {
    transform: scale(1.05);
}

.hightech-navbar .nav-link {
    color: #5409E9;
    font-weight: 500;
    margin: 0 0.5rem;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.hightech-navbar .nav-link:hover {
    color: #000;
    transform: scale(1.05);
}

.hightech-navbar .btn-outline-primary {
    border-color: #5409E9;
    color: #000;
    transition: all 0.3s ease;
}

.hightech-navbar .btn-outline-primary:hover {
    background-color: #5409E9;
    border-color: #000;
    color: #fff;
    transform: scale(1.05);
}

.hightech-navbar .btn-danger {
    background-color: #5409E9;
    border: none;
    transition: all 0.3s ease;
}

.hightech-navbar .btn-danger:hover {
    background-color: #F22E24;
    transform: scale(1.05);
}

.hightech-navbar .search-form {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    max-width: 400px;
    width: 100%;
}

.hightech-navbar .search-form .form-control1 {
    flex: 1;
    border-radius: 50px;
    border: 1px solid #5409E9;
    padding: 0.35rem 0.75rem;
    transition: all 0.3s ease;
}

.hightech-navbar .search-form .form-control1:focus {
    box-shadow: 0 0 8px #000;
    border-color: #000;
}

.hightech-navbar .search-form .btn-primary {
    border-radius: 50px;
    background-color: #FDFDFF;
    color: #000;
    transition: all 0.3s ease;
}

.hightech-navbar .search-form .btn-primary:hover {
    background-color: #5409E9;
    color: #000;
    transform: scale(1.05);
}

/* Desktop : alignement horizontal parfait */
@media (min-width: 992px) {
    .hightech-navbar {
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex-wrap: nowrap;
    }

    .hightech-navbar .navbar-nav {
        display: flex;
        align-items: center;
        flex-wrap: nowrap;
        margin-left: 2rem;
    }

    .hightech-navbar .search-form {
        margin: 0 auto;
    }

    /* Pas de modification du padding-top pour desktop */
    body {
        padding-top: 120px; /* Ajuste cette valeur en fonction de la hauteur de ton header */
    }
}

/* Mobile */
@media (max-width: 991px) {
    .hightech-navbar .logo-img {
        height: 80px;
    }

    .hightech-navbar .navbar-nav {
        flex-direction: column;
        margin-left: 0;
    }

    .hightech-navbar .nav-link {
        text-align: center;
        padding: 0.4rem 0;
    }

    .hightech-navbar .btn-outline-primary,
    .hightech-navbar .btn-danger {
        width: 100%;
        margin-bottom: 0.4rem;
    }

    .hightech-navbar .search-form {
        margin: 0.5rem 0;
    }

    /* Ajouter un padding-top pour compenser le header sur mobile */
    body {
        padding-top: 150px; /* Ajuste cette valeur selon la hauteur réelle du header sur mobile */
    }
}

/* ================== Header High-Tech ================== */



/* ========== Footer High-Tech ========== */
.footer-hightech {
  background: #fff;
  color: #fff;
  padding: 1.4rem 0;
  border-top: none;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.08);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
}

/* Logo dans le footer */
.logo-img-footer {
  height: 90px;
  display: block;
}

/* Petit slogan sous le logo */
.footer-tagline {
  color: rgba(255,255,255,0.95);
  font-size: 0.85rem;
  margin-top: 4px;
}

/* Liens du footer */
.footer-hightech .footer-links .list-inline-item {
  margin-right: 0.9rem;
}
.footer-hightech .footer-links a {
  color: #5409E9;
  text-decoration: none;
  transition: color 0.2s ease, transform 0.15s ease;
}
.footer-hightech .footer-links a:hover {
  color: #000;
  transform: translateY(-2px);
}

/* Social icons */
.footer-hightech .social-icons {
  margin-top: .25rem;
}
.footer-hightech .social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  margin-right: 8px;
  border-radius: 50%;
  background: rgba(255, 197, 22, 0.76);
  color: #dd1919;
  text-decoration: none;
  transition: transform .18s ease, background .18s ease, color .18s ease;
  font-size: 0.95rem;
}
.footer-hightech .social-icons a:hover {
  transform: scale(1.08);
  background: #5409E9;
  color: #fff;
}

/* Bouton S'abonner */
.btn-subscribe {
  background: #5409E9;
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 0.45rem 0.9rem;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
  transition: transform .18s ease, box-shadow .18s ease;
}
.btn-subscribe:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.12);
  background: #F2AF13;
}

/* Small text color */
.text-white-70 {
  color: #5409E9;
}


/* Réseaux sociaux centrés uniquement sur desktop */
@media (min-width: 992px) {
  .footer-hightech .social-icons {
    text-align: center;   /* centre les icônes */
  }
  .footer-hightech .social-icons a {
    margin-left: 6px;
    margin-right: 6px;
  }
  .footer-hightech .footer-links { margin-bottom: .5rem; }
  .footer-hightech .logo-img-footer { height: 100px; }
}
/* ================== Footer High-Tech ================== */

/* ================== INDEX - HERO / SLIDER ================== */
#heroCarousel .carousel-item img {
  filter: brightness(90%);
  object-fit: cover;
  width: 100%;
  height: 800px;
}

#heroCarousel .carousel-caption {
  bottom: 25%;
}

#heroCarousel .caption-bg {
  background: rgba(0, 0, 0, 0.55);
  padding: 1.5rem;
  border-radius: 12px;
  display: inline-block;
}

#heroCarousel h2 {
  font-size: 1.8rem;
  color: #fff;
}

#heroCarousel p {
  font-size: 1.2rem;
  color: #f1f1f1;
}

#heroCarousel .btn {
  margin-top: 1rem;
  font-weight: 600;
  border-radius: 50px;
}

/* Carousel – correction position mobile uniquement */
@media (max-width: 991.98px) {
    .carousel-inner {
        top: 50px;
    }
}


/* ================== MODULES POPULAIRES ================== */
.card-neo {
  border: none;
  border-radius: 12px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3); /* bleu clair par exemple */
}

.card-neo:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 20px rgba(0, 123, 255, 0.5); /* shadow plus prononcé au hover */
}

.card-neo .card-body h5 {
  font-weight: 600;
}

.card-neo .card-footer {
  background: #ecc3d28a;
  border-top: 1px solid #8a7e7e;
  font-size: 0.85rem;
}

/* ================== Modifications pour la photo du tuteur ================== */
.tutor-info {
  display: flex;
  align-items: center;
  gap: 15px;
  justify-content: flex-start;
  margin-top: 10px;
}

/* La photo du tuteur */
.tutor-photo {
  width: 80px; /* Taille plus petite sur mobile */
  height: 80px;
  object-fit: cover;
  border-radius: 50%; /* Cercle */
}

/* ================== Mobile Adjustments ================== */
@media (max-width: 768px) {
  /* Image et vidéo ajustées sur mobile */
  .card-neo .module-img {
    height: 200px !important; /* Ajuste la taille des images/vidéos sur mobile */
  }

  .card-neo .module-title {
    font-size: 1.2rem;
    text-align: center; /* Centrer le titre */
  }

  .card-neo .module-description {
    font-size: 0.875rem;
    text-align: justify;
  }

  /* Structuration mobile des informations sur le module */
  .card-neo .module-meta {
    font-size: 0.8rem;
    text-align: center; /* Centrer la durée, le prix et le domaine */
    margin: 10px 0;
  }

  .card-neo .tutor-info {
    flex-direction: column; /* Aligner la photo et le nom sur deux lignes en mobile */
    justify-content: center;
    text-align: center; /* Centrer la photo du tuteur et le bouton */
    margin-top: 15px;
  }

  .card-neo .tutor-photo {
    width: 100px; /* La photo du tuteur plus grande sur mobile */
    height: 100px;
    margin-bottom: 10px; /* Ajouter un espace entre l'image et le nom */
  }

  /* Réduire la taille du bouton sur mobile */
  .card-neo .btn {
    font-size: 1rem;
    width: 100%; /* Bouton prenant toute la largeur */
    margin-top: 10px;
  }
}


/* ================== COMMENT ÇA MARCHE ================== */
.hover-card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 12px;
  transition: all 0.3s ease;
  cursor: default;
}

.hover-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.1);
}

.hover-card i {
  color: #EC3834;
}

/* ================== DOMAINES DE TUTORAT ================== */
section .card {
  border-radius: 12px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

section .card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 18px rgba(0,0,0,0.15);
}

/* ================== NEWSLETTER ================== */
section.bg-light {
  border-radius: 12px;
  padding: 3rem 1rem;
}

section.bg-light h2 {
  color: #952BDF;
}

section.bg-light p {
  font-size: 1rem;
  color: #555;
}

section.bg-light button {
  border-radius: 50px;
  font-weight: 600;
}

/* ================== RESPONSIVE ================== */
@media (max-width: 992px) {
  #heroCarousel .carousel-item img {
    height: 400px;
  }
  #heroCarousel h2 {
    font-size: 1.8rem;
  }
  #heroCarousel p {
    font-size: 1rem;
  }
}


@media (max-width: 576px) {
  #heroCarousel .carousel-caption {
    bottom: 15%;
  }
  #heroCarousel h2 {
    font-size: 1.5rem;
  }
  #heroCarousel p {
    font-size: 0.9rem;
  }
  section.bg-light {
    padding: 2rem 1rem;
  }
}

/* Modules populaires */
section.mt-5 {
  background-color: #f9f0ff; /* violet très clair */
  padding: 1.5rem 1rem;
  border-radius: 12px;
}

/* Comment ça marche */
#how {
  background-color: #fff5f0; /* saumon clair */
  padding: 3rem 1rem;
  border-radius: 12px;
}

/* Domaines de tutorat */
section.my-5 {
  background-color: #f0f9ff; /* bleu clair */
  padding: 3rem 1rem;
  border-radius: 12px;
}

/* Newsletter */
section.bg-light {
  background-color: #fffbe6; /* jaune très clair */
  padding: 3rem 1rem;
  border-radius: 12px;
}

/* Titres des sections */
section h2 {
  margin-bottom: 2rem;
  color: #952BDF; /* violet */
  text-align: center;
}

/* Cartes Modules et Domaines restent flottantes */
.card-neo, section .card {
  background: #fff; /* blanc pour les cartes */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-radius: 12px;
}

.card-neo:hover, section .card:hover, .hover-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 18px rgba(0,0,0,0.15);
}

/* Newsletter bouton */
section.bg-light button {
  border-radius: 50px;
  font-weight: 600;
  background-color: #FABD17;
  color: #670000;
  transition: all 0.3s ease;
}

section.bg-light button:hover {
  background-color: #F2AF13;
  transform: scale(1.05);
}

/* Responsive ajustements */
@media (max-width: 768px) {
  section.mt-5, #how, section.my-5, section.bg-light {
    padding: 0.8rem 1rem;
  }
}
/* Fond global de la page */
main {
  background: #301EAA36;
  padding-top: 0rem;
  padding-bottom: 2rem;
}


/* Sections gardent leurs couleurs */
section.mt-5 { background-color: #f9f0ff; }   /* Modules populaires */
#how { background-color: #fff5f0; }           /* Comment ça marche */
section.my-5 { background-color: #f0f9ff; }  /* Domaines de tutorat */
section.bg-light { background-color: #fffbe6; } /* Newsletter */

/* ================== INDEX - HERO / SLIDER ================== */

/* ================== SECTIONS À PROPOS ================== */
section.apropos, section.nos-valeurs, section.contact {
  padding: 3rem 1rem;
  border-radius: 12px;
  margin-bottom: 2rem;
}

/* Sections alternées */
section.apropos { background-color: rgba(249, 240, 255, 0.9); }   /* violet très clair */
section.nos-valeurs { background-color: rgba(240, 249, 255, 0.9); } /* bleu clair */
section.contact { background-color: rgba(255, 251, 230, 0.9); }  /* jaune très clair */

/* ================== TEAM CARDS ================== */
section .card.hover-card img {
  width: 250px;
  height: 120px;
  object-fit: contain;
  border-radius: 50%;
  margin: 0 auto;
}

/* ================== AVIS MODULES SLIDER FLUIDE ================== */
.avis-slider {
  overflow: hidden;
  position: relative;
  width: 100%;
  margin: 2rem 0;
}

.avis-slider-track {
  display: flex;
  gap: 1rem;
  animation: slide-avis 40s linear infinite;
}

.avis-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.1);
  padding: 1rem;
  min-width: 250px;
  flex-shrink: 0;
  cursor: default;
}

.avis-card img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
}

.stars {
  color: #FABD17;
  font-size: 0.9rem;
  margin-bottom: 0.3rem;
}

/* Animation continue */
@keyframes slide-avis {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Pause sur survol */
.avis-slider:hover .avis-slider-track {
  animation-play-state: paused;
}

/* Responsive */
@media (max-width: 768px) {
  .avis-card { min-width: 200px; }
}

/* ================== RESPONSIVE ================== */
@media (max-width: 992px) {
  .avis-card { min-width: 220px; }
}

@media (max-width: 768px) {
  .avis-card { min-width: 180px; }
  section.apropos, section.nos-valeurs, section.contact { padding: 2rem 1rem; }
}

@media (max-width: 576px) {
  .avis-card { min-width: 160px; }
}
/* ================== SECTIONS À PROPOS ================== */


/* ================== SERVICES / MODULES ================== */
section.services, section.domaines {
  padding: 1rem 1rem;
  border-radius: 12px;
  margin-bottom: 2rem;
  background-color: #f9f0ff; /* violet très clair similaire à modules populaires */
}

section.services h2, section.domaines h3 {
  text-align: center;
  color: #952BDF;
  margin-bottom: 2rem;
}

/* Carte module standardisée */
.card-module, .card-neo {
  background: #fff;
  border-radius: 12px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
}

.card-module:hover, .card-neo:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 18px rgba(0,0,0,0.15);
}

.card-module img {
  height: 180px;
  object-fit: cover;
  border-radius: 12px 12px 0 0;
}

/* Footer card-body buttons */
.card-module .card-body .btn {
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.card-module .card-body .btn-primary:hover {
  background-color: #F2AF13;
  transform: scale(1.05);
}
/* ================== TUTEURS ================== */
section.tuteurs {
  padding: 3rem 1rem;
  background-color: #f0f9ff; /* bleu clair */
  border-radius: 12px;
}

section.tuteurs h2 {
  color: #952BDF;
  text-align: center;
  margin-bottom: 2rem;
}

.card-tuteur {
  text-align: center;
  border-radius: 12px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-tuteur:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 18px rgba(0,0,0,0.15);
}

.card-tuteur img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 50%;
  margin: 0 auto;
}
/* ================== BOUTONS MODULE ================== */
.btn-ajouter, .btn-reserver {
  border-radius: 50px;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  transition: all 0.3s ease;
}

.btn-ajouter:hover, .btn-reserver:hover {
  background-color: #F2AF13;
  transform: scale(1.05);
}
/* ================== MODAL RESERVATION ================== */
.modal-content {
  border-radius: 12px;
  top: 250px;
}

#profilModal .modal-content {
    top: 0;
}

/* ===== MODAL COOKIES (page d'accueil) ===== */

.cookie-modal-home .modal-content {
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.25);
    top: 20px;
}

.cookie-modal-home .modal-dialog {
    margin-top: 20px;
}


.modal-header, .modal-footer {
  border: none;
}

.modal-header .btn-close {
  background: transparent;
  border: none;
  font-size: 1.2rem;
}

/* ================== SERVICES / MODULES ================== */

/* ================== PANIER ================== */

/* Forcer le footer en bas même si peu de contenu */
html, body {
  height: 100%;
}

body {
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

/* Style spécifique au panier */
section.panier {
  padding: 3rem 1rem;
  background: #f9f9ff; /* gris clair doux */
  border-radius: 12px;
}

section.panier h3 {
  color: #952BDF; /* violet branding */
  font-weight: 700;
  margin-bottom: 2rem;
  text-align: center;
}

section.panier table {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0,0,0,0.05);
}

section.panier table th {
  background: #f3e8ff; /* violet très clair */
  color: #4a007d;
}

section.panier .btn-outline-danger {
  border-radius: 50px;
  font-size: 0.85rem;
  padding: 0.35rem 0.8rem;
}

section.panier .btn-primary {
  border-radius: 50px;
  padding: 0.45rem 1.2rem;
  font-weight: 600;
}
/* ================== PANIER ================== */

/* ================== DASHBOARD APPRENANT ================== */
.dashboard-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.dash-card {
  background: #fff;
  border-radius: 16px;
  padding: 2rem 1rem;
  text-align: center;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.05);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  cursor: pointer;
  color: #333;
  text-decoration: none;
}

.dash-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
}

.dash-card i {
  font-size: 2.2rem;
  color: #952BDF; /* violet branding */
  margin-bottom: 0.8rem;
  display: block;
}

.dash-card h5 {
  font-size: 1rem;
  font-weight: 600;
  margin: 0;
}

.dash-card.logout {
  background: #fff0f0;
}

.dash-card.logout i {
  color: #EC3834;
}
/* ================== DASHBOARD APPRENANT ================== */

/* ================== COMPTE ================== */
.top-50 {
  top:72% !important;
}
/* ================== COMPTE ================== */

/* ================== DETAILS MODULES ================== */

/* Titre sections */
.details-modules h4,
.details-domaines h2 {
  text-align: center;
  color: #952BDF;
  margin-bottom: 1.5rem;
}

/* Effet hover plus élégant */
.details-modules .card,
.details-domaines .card {
  overflow: hidden; /* coupe ce qui déborde */
  border-radius: 12px; /* arrondis uniformes */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.details-modules .card:hover,
.details-domaines .card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}
/* ================== IMAGES DES CARDS ================== */
.details-modules .card-img-top,
.details-domaines .card-img-top {
  width: 100% !important;      /* occupe toute la largeur */
  height: 200px !important;    /* hauteur personnalisable */
  object-fit: cover !important; /* recadrage propre */
  margin: 0 !important;
  padding: 0 !important;
  border-radius: 0 !important;  /* pas d'arrondi */
  display: block !important;
}

/* ================== DETAILS MODULES ================== */

/* Images des modules pleine largeur dans les cards */
.card-img-full {
    display: block;
    width: 100%;        /* occupe toute la largeur du card */
    height: 180px;      /* tu peux modifier la hauteur */
    object-fit: cover;  /* recadrage propre, sans bandes blanches */
    border-radius: 0;   /* pas d'arrondi */
    margin: 0;
    padding: 0;
}

.btn-devenir-tuteur {
  display: inline-block;
  background: #5409E9;
  color: #fff;
  font-weight: bold;
  padding: 1px 17px;
  border-radius: 35px;
  text-decoration: none;
  animation: pulse 1.5s infinite;
  box-shadow: 0 0 15px rgba(255,255,255);
  transition: all 0.3s ease-in-out;
  margin: 10px;
}
.btn-devenir-tuteur:hover {
  background: #F2AF13;
  box-shadow: 0 0 20px #5409E9;
}
@keyframes pulse {
  0% { transform: scale(1); box-shadow: 0 0 15px rgba(26, 64, 235, 0.6); }
  50% { transform: scale(1.05); box-shadow: 0 0 25px rgba(0, 0, 0, 0.9); }
  100% { transform: scale(1); box-shadow: 0 0 15px rgb(255, 255, 255); }
}

/* Carousel images */
.carousel-img {
    width: 100%;
    height: 650px; /* Hauteur par défaut pour desktop */
    object-fit: cover;
}

/* Ajustement pour tablettes */
@media (max-width: 992px) {
    .carousel-img {
        height: 450px;
    }
}

/* Ajustement pour mobiles */
@media (max-width: 576px) {
    .carousel-img {
        height: 300px;
    }
}

/* Caption background si nécessaire */
.caption-bg {
    background-color: rgba(0,0,0,0.5); /* semi-transparent pour lisibilité */
    padding: 15px;
    border-radius: 5px;
}
.carousel-caption {
    bottom: 20px; /* plus proche du bas */
    text-align: center;
    padding: 10px;
}

@media (max-width: 576px) {
    .carousel-caption h2 {
        font-size: 1.2rem;
    }
    .carousel-caption p {
        font-size: 0.9rem;
    }
    .carousel-caption .btn {
        font-size: 0.8rem;
        padding: 5px 10px;
    }
}

.py-5 {
  padding-top:2rem !important;
  padding-bottom:3rem !important;
}

.text-muted {
  --bs-text-opacity:1;
  color:rgb(0, 0, 0) !important;
}

.icon-hover {
  transition: transform 0.3s ease, filter 0.3s ease;
  cursor: pointer;
  display: inline-block;
}

.icon-hover:hover {
  transform: scale(1.1);   /* zoom léger */
  filter: brightness(1.2); /* éclaircissement */
}


/* Texte des descriptions justifié sauf pour les listes */
.text-muted {
  text-align: justify;
  text-justify: inter-word; /* répartit mieux les espaces entre les mots */
  hyphens: auto;            /* ajoute des césures automatiques si possible */
}

.text-muted1 {
  text-align: center;
  text-justify: inter-word; /* répartit mieux les espaces entre les mots */
  hyphens: auto;            /* ajoute des césures automatiques si possible */
}


/* Les listes dans les descriptions restent alignées à gauche */
.text-muted ul,
.text-muted ol {
    text-align: left;       /* Ne pas justifier les listes */
    padding-left: 1.5em;    /* Décalage standard pour les puces/nombres */
    margin-top: 0.5em;
    margin-bottom: 0.5em;
}

/* Espacement entre les éléments de liste */
.text-muted li {
    margin-bottom: 0.25em;
}

/* Optionnel : garder le texte de liste un peu plus lisible */
.text-muted li b,
.text-muted li strong,
.text-muted li i,
.text-muted li em {
    font-weight: inherit;
}

.text-muted1 {
  text-align: center;
  text-justify: inter-word; /* répartit mieux les espaces entre les mots */
  hyphens: auto;            /* ajoute des césures automatiques si possible */
}


/* Listes à l’intérieur des descriptions */
.text-muted.description-list {
    text-align: left;        /* Alignement normal pour les listes */
    padding-left: 1.5em;     /* Décalage standard pour les puces */
    margin-top: 0.5em;
    margin-bottom: 0.5em;
}

.text-muted.description-list li {
    margin-bottom: 0.25em;   /* Espacement entre les items */
}

.text-justify {
    text-align: justify !important;
}

.img-fluid {
  max-width:100%;
  height:auto
}

.alert-success {
  --bs-alert-color:var(--bs-success-text-emphasis);
  --bs-alert-bg:#ccf0c6;
  --bs-alert-border-color:#38b91d;
  --bs-alert-link-color:var(--bs-success-text-emphasis)
}

.text-white {
  --bs-text-opacity:1;
  color:rgb(0, 0, 0) !important;
}

.text-white1 {
  --bs-text-opacity:1;
  color:rgb(247, 206, 227) !important;
}

.text-white2 {
  --bs-text-opacity:1;
  color:rgb(255, 255, 255) !important;
}


.services h3 video {
    vertical-align: middle;
}

.how-video {
    width: 350px;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    display: block;
    margin: 0 auto;
    pointer-events: none;
}

.value-video {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
}

.position-relative {
  position: relative;
}

.overlay-text {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 10px;
  background: rgba(0, 0, 0, 0.6); /* Fond sombre avec transparence */
  color: white;
  border-radius: 0 0 8px 8px;
  text-align: center;
}

.overlay-text h5 {
  margin-bottom: 0.5rem;
}

.overlay-text p {
  font-size: 0.875rem;
}

/* Video carousel responsive */
.carousel-video {
    width: 100%;
    height: 70vh; /* hauteur relative à la fenêtre, s'adapte à tous les écrans */
    object-fit: cover;
}

/* Optionnel : réduire la hauteur sur mobile */
@media (max-width: 600px) {
    .carousel-video {
        height: 40vh; /* moins haut sur smartphone */
    }
}

/* Vidéos modules populaires */
.module-video {
    width: 100%;
    height: 250px; /* comme avant pour desktop */
    object-fit: cover;
}

/* Réduction sur mobile */
@media (max-width: 768px) {
    .module-video {
        height: 200px; /* moins haut sur mobile */
    }
}

/* Vidéos dans "Comment ça marche" */
.how-video {
    width: 100%;
    height: 250px;  /* Taille pour desktop */
    object-fit: cover;
}

/* Ajuster la taille de la vidéo sur mobile */
@media (max-width: 768px) {
    .how-video {
        height: 180px; /* Réduit la hauteur sur mobile */
    }
}

/* Réduction de la taille des images et vidéos dans la section des domaines sur mobile */
@media (max-width: 768px) {
    /* Pour l'image du domaine */
    .services img {
        width: 100% !important;
        height: auto !important;
    }

    /* Pour la vidéo du domaine */
    .services video {
        width: 100% !important;
        height: auto !important;
    }

    /* Ajuster la taille de la carte contenant l'image ou la vidéo */
    .services h3 {
        font-size: 1.5rem !important;
        text-align: center;
    }
}

/* Desktop (par défaut) */
.domain-media {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 12px; /* Bordures arrondies */
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* Transition pour effet de zoom et ombre */
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2); /* Ombre douce */
}

/* Mobile : écrans < 768px (Bootstrap md breakpoint) */
@media (max-width: 767.98px) {
    .domain-media {
        height: 250px; /* ou une valeur qui te convient */
    }
}
.lead {
  font-size:1rem;
  font-weight:300
}


/* Cookie Banner */
.cookie-banner {
  background-color: #f8f9fa; /* Fond clair */
  color: #333; /* Texte foncé pour un meilleur contraste */
  font-size: 0.9rem;
  border-top: 1px solid #ccc;
  z-index: 9999;
}

.cookie-banner .btn {
  font-size: 0.9rem;
}

.cookie-banner .btn-link {
  color: #5409E9; /* Couleur des liens */
}

.cookie-banner .btn-primary {
  background-color: #5409E9;
  border: none;
  font-weight: 600;
}

.cookie-banner .btn-primary:hover {
  background-color: #F2AF13; /* Rouge au survol */
  border-color: #F2AF13;
}

.cookie-banner .btn-link:hover {
  text-decoration: underline;
}

/* Modal Cookie Settings */
.modal-content {
  border-radius: 8px;
}

.modal-header {
  background-color: #5409E9; /* Couleur du header du modal */
  color: #fff;
}

.modal-body {
  font-size: 0.9rem;
}

.form-check-label {
  font-size: 0.85rem;
}

/* ================== Section Présentation Tutorum ================== */
.presentation-tutorum {
  background-color: #f0f9ff; /* Fond bleu clair */
  padding: 80px 0;
  position: relative;
  border-radius: 15px; /* Bord arrondi comme les autres sections */
}

.presentation-tutorum h2 {
  font-size: 1.3rem;
  color: #5409E9; /* Violet spécifique */
  font-weight: bold;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
}

.presentation-tutorum p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #6c757d;
  margin-bottom: 1rem;
}

.presentation-tutorum .btn-primary {
  background-color: #5409E9;
  color: #fff;
  padding: 15px 30px;
  font-size: 1.1rem;
  border-radius: 50px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.presentation-tutorum .btn-primary:hover {
  background-color: #3c1e9b;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  transform: translateY(-3px);
}

.presentation-tutorum .col-lg-6 {
  padding: 2rem;
}

.presentation-tutorum img {
  border-radius: 25px; /* Bord arrondi sur l'image */
  width: 100%;
  height: auto;
  object-fit: cover;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}


/* ================== RESPONSIVE ================== */
@media (max-width: 992px) {
  .presentation-tutorum {
    padding: 60px 1rem;
  }

  .presentation-tutorum h2 {
    font-size: 2rem;
  }

  .presentation-tutorum p {
    font-size: 1rem;
  }

  .presentation-tutorum img {
    height: 400px;
  }
}

@media (max-width: 768px) {
  .presentation-tutorum .caption-overlay-tutorum {
    bottom: 5%;
    left: 50%;
    transform: translateX(-50%);
    padding: 10px;
  }

  .presentation-tutorum h2 {
    font-size: 1rem;
  }

  .presentation-tutorum .btn-primary {
    width: 100%;
  }
}

@media (max-width: 576px) {
  .presentation-tutorum .btn-primary {
    width: 100%;
  }
}

/* Section entièrement responsive */
.presentation-tutorum .position-relative {
  position: relative;
}

.presentation-tutorum .caption-overlay-tutorum {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.6); /* Pour plus de contraste */
  padding: 2rem;
  color: white;
  text-align: center;
  border-radius: 0 0 25px 25px;
}

.presentation-tutorum .caption-overlay-tutorum h3 {
  font-size: 2rem;
  font-weight: 600;
  margin: 0;
  line-height: 1.4;
}

/* Pour s'assurer que l'image est bien responsive et s'adapte à tous les écrans */
.presentation-tutorum img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 25px;
}

/* Desktop : vidéo standard */
.video-responsive {
    height: 600px;
    object-fit: cover;
    width: 100%;
}

/* Mobile : réduire la hauteur */
@media (max-width: 768px) {
    .video-responsive {
        height: 200px;
    }
}

/* Effet sur l'image ou vidéo du domaine */
.card-img-top {
    border-radius: 12px; /* Bordures arrondies */
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* Transition pour effet de zoom et ombre */
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2); /* Ombre douce */
}

/* Au survol, on ajoute un zoom et une ombre plus marquée */
.card-img-top:hover {
    transform: scale(1.05); /* Zoom de 5% au survol */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3); /* Ombre plus marquée au survol */
}

/* Effet sur le titre au survol */
.card-title:hover {
    color: #3c1e9b; /* Change la couleur du titre */
    text-decoration: underline; /* Souligne le titre au survol */
}

.btn-success {
  --bs-btn-color: #fff;
  --bs-btn-bg: #000;
  --bs-btn-border-color: #000;
  }
