/* Réduction de la hauteur du header */
@media (min-width: 48em) and (min-height: 37.5em) {
    .center-vertically {
        display: block;        /* Annule display: table */
        height: auto;         /* Annule height: 100% */
        min-height: 70vh;     /* Optionnel : hauteur minimum souhaitée */
    }
    .center-vertically > div {
        display: block;       /* Annule display: table-cell */
        vertical-align: inherit;
    }
}

/* Optionnel : réduit également le padding du jumbotron */
.jumbotron {
    padding-top: 4rem;       /* Au lieu de 7rem */
    padding-bottom: 2rem;    /* Ajoute un peu d'espace bas */
}

.section-intro .lead.wp-2 {
    color: #200953;
    font-size: 1rem; 
}

.section-intro .wp-1 {
    font-size: 1.5rem;
}

.footer-sublogo {
    font-size: 1rem;
    font-family: sans-serif;
    text-align: center;
    margin-top: 1rem;
    color: #aaa;
    line-height: 1.3;
}

@media (max-width: 767px) {
    /* Cible uniquement la rangée du footer */
    footer .row {
        display: flex;
        flex-direction: column-reverse;
    }
    footer .row > div {
        width: 100%;
        max-width: 100%;
        flex: 0 0 100%;
    }
}

.modular-row.map {
    text-align: center;         /* Centre le contenu inline/inline‑block */
    margin: 2rem 0;
}

.modular-row.map iframe {
    display: block;             /* Transforme l’iframe en bloc pour pouvoir utiliser margin */
    max-width: 100%;            /* Ne dépasse pas l’écran */
    margin: 0 auto;             /* Centre horizontalement */
}

.section-features .btn {
    margin-top: 4rem !important;
}

.plan-compare-table-holder {
    margin-top: 2rem !important;
    margin-right: 2em !important;
    margin-left: 2em !important;
    margin-bottom: 2rem !important;
}

/* Espacement vertical du module slider */
.section-slider {
    margin-top: 3rem;
    margin-bottom: 3rem;
}

/* Supprimer le ratio forcé pour éviter les bandes noires */
.swiffy-slider.slider-item-ratio {
    --swiffy-slider-item-ratio: none; /* Désactive le ratio */
}

/* Les images prennent toute la largeur, hauteur auto */
.swiffy-slider .slider-container img {
    width: 100%;
    height: auto;
    display: block;
}

/* Légende sous l'image, centrée */
.slide-caption {
    text-align: center;
    padding: 0.8rem;
    background: #f5f5f5;
    color: #7f3de9;
    font-size: 1.2rem;
    font-weight: bold;
    border-radius: 0 0 4px 4px;
}

/* Pour mobile */
@media (max-width: 767px) {
    .section-slider {
        margin-top: 1.5rem;
        margin-bottom: 1.5rem;
    }
    .slide-caption {
        font-size: 1rem;
        padding: 0.5rem;
    }
}

.slider-title {
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    font-weight: 600;
}

/* La colonne qui contient le bloc à animer devient un conteneur flex */
.col-md-4.wp-10 {
    display: flex;
    justify-content: center; /* centrage horizontal */
    align-items: center;     /* centrage vertical (optionnel) */
}

/* Centrer la colonne contenant l’offre unique */
.col-md-4.wp-10 {
    float: none !important;
    margin-left: auto !important;
    margin-right: auto !important;
    display: block;
}

/* Animation du bloc pricing (inchangée) */
.col-md-4.wp-10 .pricing-box {
    animation: popCenter 0.6s cubic-bezier(0.2, 0.9, 0.4, 1.1) forwards;
    opacity: 0;
    transform: scale(0.9);
}

@keyframes popCenter {
    0% {
        opacity: 0;
        transform: scale(0.9);
    }
    80% {
        transform: scale(1.02);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Titre de la section : centré et bien espacé */
#actus .section-title {
  /* Centrage horizontal auto */
  display: block;            /* ou table */
  margin-left: auto;
  margin-right: auto;
  width: fit-content;        /* largeur du contenu */
  max-width: 100%;           /* éviter le débordement */
  font-size: 1.5rem;
  text-align: center;

  /* Espacements */
  margin-top: 60px;
  margin-bottom: 30px;

  /* Style bulle */
  padding: 10px 30px;
  background-color: #ffffff;
  border: 2px solid #720cad;
  border-radius: 50px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Espace sous le titre de chaque actualité */
#actus article h5 {
  margin-bottom: 10px;
}

/* Espace au‑dessus du bouton "Voir toutes les actualités" */
#actus > .container > .text-center {
  margin-top: 60px;
  text-align: center;
}

/* --- Module Vidéos en miniatures --- */

/* Grille responsive */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

/* Carte vidéo */
.video-card {
  cursor: pointer;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.video-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

/* Miniature avec poster en background */
.video-thumb {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* ratio 16:9 */
  background-size: cover;
  background-position: center;
  background-color: #333;
}

/* Overlay avec icône play */
.video-play-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.video-card:hover .video-play-overlay {
  opacity: 1;
}

.video-play-overlay span {
  font-size: 3rem;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

/* Titre de la carte */
.video-card-title {
  margin: 0;
  padding: 15px 10px;
  font-size: 1.1rem;
  font-weight: 600;
  color: #333;
  text-align: center;
}

/* Modale vidéo */
.video-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
}

.video-modal.active {
  display: block;
}

.video-modal-backdrop {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.8);
}

.video-modal-content {
  position: relative;
  max-width: 900px;
  margin: 5% auto;
  background: #000;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.video-modal-content video {
  width: 100%;
  display: block;
}

.video-modal-close {
  position: absolute;
  top: 10px;
  right: 20px;
  font-size: 2rem;
  color: #fff;
  z-index: 2;
  cursor: pointer;
  transition: color 0.2s;
}

.video-modal-close:hover {
  color: #e74c3c;
}

#vidéos .section-title {
  /* Centrage horizontal auto */
  display: block;            /* ou table */
  margin-left: auto;
  margin-right: auto;
  width: fit-content;        /* largeur du contenu */
  max-width: 100%;           /* éviter le débordement */
  font-size: 1.5rem;
  text-align: center;

  /* Espacements */
  margin-top: 60px;
  margin-bottom: 30px;

  /* Style bulle */
  padding: 10px 30px;
  background-color: #ffffff;
  border: 2px solid #720cad;
  border-radius: 50px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

#vidéos .section-title::before {
  content: "\25B6"; /* ▶ */
  margin-right: 10px;
  font-size: 1.2em;
  vertical-align: middle;
}

/* Container de la modale pour l'iframe */
#modal-video-container {
  position: relative;
  padding-bottom: 56.25%; /* Ratio 16:9 */
  height: 0;
  background: #000;
}

#modal-video-container iframe,
#modal-video-container video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}