/* --- Articles full width --- */
.full-width-article {
  max-width: 100% !important; /* Permet de dépasser la limite de 960px */
  width: 100% !important;
  padding-left: 2rem;  /* Ajuste si besoin */
  padding-right: 2rem; /* Ajuste si besoin */
  margin-left: auto;
  margin-right: auto;
}

/* Responsive : ajuste l'espace sur grands écrans */
@media (min-width: 1200px) {
  .full-width-article {
    padding-left: 3rem;
    padding-right: 3rem;
  }
}
/* --- Global Reset & Base for Mobile First --- */
/* Pour une meilleure gestion sur mobile, on définit une box-sizing globale */
html {
  box-sizing: border-box;
  /* Empêche le défilement horizontal indésirable sur toute la page */
  overflow-x: hidden;
}
*, *::before, *::after {
  box-sizing: inherit;
}
/* Base de la police et couleur générale */
body { /* Joomla peut avoir un body, mais si CK le gère, adapter au conteneur principal */
  font-family: 'Quicksand', sans-serif;
  font-size: 18px; /* Taille de base pour tous les paragraphes */
  color: #171717;
  line-height: 1.6; /* Améliore la lisibilité */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* Empêche le défilement horizontal indésirable sur le corps du document */
  overflow-x: hidden;
}
/* Assurer que les images ne dépassent jamais leur conteneur */
img {
  max-width: 100%;
  height: auto; /* Garde le ratio de l'image */
  display: block; /* Supprime l'espace sous l'image */
}
/* Styles pour les titres */
h1 {
  font-size: 2.2rem; /* Plus grand pour h1 */
  line-height: 1.2;
  margin-bottom: 1.5rem;
  color: #171717; /* S'assurer de la couleur pour tous les titres */
  text-align: center; /* Centre le H1 pour un impact initial */
  padding-top: 1.5rem; /* Espace au-dessus du titre principal */
}
h2 {
  font-size: 1.8rem;
  line-height: 1.3;
  margin-top: 2.5rem; /* Plus d'espace avant les H2 */
  margin-bottom: 1.2rem;
  color: #171717;
  text-align: center; /* Centre les H2 pour équilibrer la page */
  padding-bottom: 0.5rem; /* Légère séparation visuelle */
  position: relative;
}
h2::after {
  content: '';
  display: block;
  width: 60%; /* couvre environ 60% du titre */
  max-width: 320px; /* limite visuelle */
  height: 3px;
  background-color: #13AD89;
  margin: 0.7rem auto 0 auto;
  border-radius: 3px;
}
h3 {
  font-size: 1.4rem;
  line-height: 1.4;
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: #171717;
  padding-left: 1rem;
  border-left: 3px solid #13AD89; /* Vert */
  font-weight: 400;
}
h4 {
  font-size: 1.35rem;
  line-height: 1.5;
  margin-top: 1.2rem;
  margin-bottom: 0.6rem;
  color: #333333;
  padding-left: 0.8rem;
  border-left: 3px solid #cccccc;
  font-weight: 300; /* Normal, supprime le gras par défaut */
}
h5 {
  font-size: 1.25rem; /* Taille plus petite */
  line-height: 1.5;
  margin-top: 1rem;
  margin-bottom: 0.5rem;
  text-align: center; /* Centré */
}
/* Styles pour les paragraphes */
p {
  margin-bottom: 1.2rem; /* Espace entre les paragraphes */
}
/* Styles pour les listes avec puces personnalisées (uniquement via la classe) */
.custom-checklist {
  list-style-type: none; /* Supprime les puces par défaut */
  padding-left: 0; /* Réinitialise le padding par défaut */
  margin-bottom: 1.5rem;
}
.custom-checklist li {
  position: relative;
  padding-left: 25px; /* Espace pour la puce personnalisée */
  margin-bottom: 0.8rem;
}
.custom-checklist li::before {
  content: '☛'; /* Puce personnalisée (coche) */
  color: #000000; /* Couleur de la puce */
  font-weight: bold;
  position: absolute;
  left: 0;
  top: 0;
}
/* Styles pour la table des matières */
#table-of-contents {
  background-color: #ffffff;
  padding: 1.5rem;
  margin: 2rem 0; /* Augmente la marge */
  border-left: none; /* Supprimé */
  border-radius: 0.5rem;
  border: 1px solid #00A3D9; /* Bordure encadrée bleue */
  box-shadow: none; /* Suppression des ombres */
}
#table-of-contents h2 {
  font-size: 1.5rem;
  text-align: left; /* Aligne le titre de la ToC à gauche */
  margin-top: 0;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  color: #171717;
}
#table-of-contents h2::after { /* Supprime la ligne décorative */
  display: none;
}
#table-of-contents ul {
  list-style-type: none; /* Toujours pas de puces par défaut */
  padding-left: 0;
  margin: 0;
}
/* Styles pour les puces dans la table des matières */
#table-of-contents li {
  margin-bottom: 0.5rem;
  position: relative; /* Nécessaire pour positionner le pseudo-élément */
  padding-left: 25px; /* Espace pour la puce */
}
#table-of-contents li::before {
  content: '›'; /* Puce personnalisée */
  color: #00A3D9; /* Couleur de la puce */
  font-weight: bold;
  position: absolute;
  left: 0;
  top: 0;
}
#table-of-contents a {
  color: #171717;
  text-decoration: none;
  font-weight: normal;
  transition: color 0.3s ease;
}
#table-of-contents a:hover {
  color: #00A3D9;
  text-decoration: underline;
}
/* Styles pour les zones séparées */
.content-block {
  padding: 1.5rem;
  margin: 2rem 0;
  background-color: #fdfdfd;
  border-radius: 0.5rem;
  border: 1px solid #eee;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.03);
}
/* Styles pour les encadrés highlight-block */
.highlight-block {
  padding: 2rem;
  margin: 2rem 0;
  background-color: #F7FFFB; /* Vert très clair */
  border-radius: 0.5rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  border-left: none;
}
/* Styles pour les citations */
.citation {
  position: relative;
  padding: 1.5rem 2.5rem;
  font-style: italic;
  background-color: #fdfdfd;
  font-size: clamp(1.1rem, 4vw, 1.25rem);
  line-height: 1.6;
  color: #333;
  border-radius: 0.5rem;
  margin: 2rem 0;
  border: 1px solid #000;
  box-shadow: none;
}
/* Maintien de .red */
.red {
  color: #C54618;
}
/* Séparateur de ligne */
.separator-line {
  height: 2px;
  background-color: #ccc;
  margin: 30px 0;
  border: none;
}
/* Conteneur pour centrer le bouton */
.center-bouton {
  text-align: center; /* Centre horizontalement le bouton */
  margin: 2rem 0;     /* Marge au-dessus et en dessous, optionnel */
}
/* Bouton call-to-action */
.call-to-action-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background-color: #A6EBFF; /* Couleur de base */
  color: #171717;
  padding: 0.8rem 1.5rem;
  border-radius: 0.5rem;
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  border: 1px solid transparent;
  transition: all 0.3s ease;
}
/* Hover : bouton devient bleu */
.call-to-action-link:hover {
  background-color: #00A3D9; /* Bleu */
  color: #fff; /* Texte blanc */
  transform: translateY(-2px);
}
/* Active (clic) */
.call-to-action-link:active {
  transform: scale(0.95);
}
/* Icône (optionnel) */
.call-to-action-link > svg {
  width: 20px;
  margin-left: 10px;
  transition: transform 0.3s ease-in-out;
}
.call-to-action-link:hover > svg {
  transform: translateX(5px);
}
/* Texte en détail */
p.detail {
  font-size: 0.9rem;
  color: #666;
  margin-top: -0.8rem;
  margin-bottom: 1.5rem;
  padding-left: 1rem;
  border-left: 2px solid #ddd;
}
/* --- Responsive Adjustments (Mobile First) --- */
.page-container {
  padding: 0.5rem; /* 🔹 Minimum possible sur mobile */
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
}
@media (min-width: 768px) { /* Tablettes et + */
  body {
    font-size: 19px;
  }
  .page-container {
    padding: 1.5rem 2rem;
  }
  h1 {
    font-size: 2.5rem;
  }
  h2 {
    font-size: 2rem;
  }
  h3 {
    font-size: 1.6rem;
  }
  .citation {
    font-size: clamp(1.2rem, 2vw, 1.35rem);
    padding: 2rem 3rem;
  }
}
@media (min-width: 960px) { /* Écrans larges */
  body {
    font-size: 20px;
  }
  .page-container {
    max-width: 960px;
    padding: 2rem 3rem;
  }
  h1 {
    font-size: 2.8rem;
  }
  h2 {
    font-size: 2.2rem;
  }
  h3 {
    font-size: 1.8rem;
  }
  .citation {
    font-size: clamp(1.3rem, 1.8vw, 1.4rem);
    margin: 2.5rem 0;
  }
}

/* --- Ajout CSS du second template --- */

/* Titre H1 spécifique du second template */
.titre-h1 {
  text-align: center;
  position: relative;
  width: 70%;
  padding-bottom: 0.5rem;
  margin: 0 auto 1.5rem auto; /* marge par défaut pour mobile */
}
@media (min-width: 768px) {
  .titre-h1 {
    margin-bottom: 2.5rem; /* marge plus généreuse */
  }
}
.titre-h1::after {
  content: "";
  display: block;
  width: 100%;
  height: 1px;
  background-color: #ccc;
  margin-top: 0.5rem;
}

/* Conteneur principal du slider avec fond noir */
.slider-container {
  position: relative;           /* Permet de centrer le div sur l'écran */
  width: 100vw;                 /* Largeur de l'écran */
  left: 50%;
  transform: translateX(-50%);  /* Centre horizontalement */
  background-color: black;      /* Fond noir */
  padding: 20px 0;              /* Espace vertical autour du contenu */
  text-align: center;           /* Centre le texte */
}

/* Titre au-dessus du slider */
.slider-container h1 {
  color: white;                 /* Texte blanc */
  margin: 0 10px 20px 10px;     /* 0 en haut, 10px à droite, 20px en bas, 10px à gauche */
  text-align: center;           /* Toujours centré */
}

/* Conteneur interne du slider */
.slider-inner {
  width: 515px;                 /* Largeur fixe du slider */
  max-width: 100%;              /* Réduction sur petits écrans */
  margin: 0 auto;               /* Centre horizontalement */
}

/* Gradient background */
body {
  background-image: linear-gradient(to right, #f0f0f0, #f3f3f3, #f5f5f5, #f8f8f8, #fbfbfb, #fbfbfb, #fbfbfb, #fbfbfb, #f8f8f8, #f5f5f5, #f3f3f3, #f0f0f0);
  background-size: cover;
  height: auto;
}

dt {
  display:none !important;
}


/* Explication */
.explication {
  display: inline;
  font-size: 0.8em; /* plus petit que le texte normal */
  font-style: normal;
  background-color: #eef6fb;
  color: #0a4a75;
  padding: 0.2em 0.4em;
  margin: 0 0.2em;
  border-radius: 0.25em;
}
.explication::before {
  content: "ⓘ ";
  font-weight: bold;
  margin-right: 0.3em;
}

/* Détail secondaire */
.detail {
  font-size: 0.8em; /* plus petit que le texte normal */
  font-style: normal;
  color: #0a4a75;
}

/* Rounded images */
.rounded-image {
  display: block;
  margin-left: auto;
  margin-right: auto;
  margin-top: 20px;
  margin-bottom: 20px;
  border-radius: 1rem;
  max-width: 100%;
  height: auto;
  transition: transform 0.6s ease-in-out; /* ➤ plus lent */
}
.rounded-image:hover {
  transform: scale(1.02);
}

/* Bordures tarif */
.extbrdr {
  border: 1px solid black; /* Contour noir */
  border-radius: 20px; /* Coins arrondis */
  padding: 15px; /* Espacement intérieur */
  font-family: Quicksand;
}
.ext {
  font-size: 32px;
  color: #9E9E9E;
  text-align: center;
}
.extprx {
  font-size: 25px;
  color: #616161;
  text-align: center;
}

/* Conteneur des colonnes */
.wf-columns {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
.wf-column {
  flex: 1;
  min-width: 280px;
}

/* Bloc d'annonce */
.annoncebk {
  background-color: #000; /* fond noir */
  color: #fff; /* texte blanc */
  padding: 20px;
  border-radius: 10px; /* arrondi optionnel */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}
.annoncebk p {
  font-family: 'Quicksand', sans-serif;
  font-weight: 400;
  font-size: 18px; /* Lecture confortable */
  line-height: 1.6;
  color: #FFFFFF;
}
.titreannoncebk {
  font-family: 'Quicksand', sans-serif;
  font-weight: 700; /* Plus gras pour bien ressortir */
  font-size: 40px; /* Taille plus grande */
  color: #E0E0E0; /* Blanc cassé pour plus de contraste */
  text-align: center;
  position: relative;
  margin-bottom: 25px;
  letter-spacing: 1px; /* Espacement pour effet luxe */
  text-transform: uppercase; /* (optionnel : style prestige) */
}
.titreannoncebk::after {
  content: "";
  display: block;
  width: 75%;
  height: 1px;
  margin: 8px auto 0 auto;
  background: linear-gradient(to right, transparent, #fff, transparent);
}

/* Images flottantes */
.floating-card-wrapper {
  display: inline-block;
  position: relative;
}
.floating-card-wrapper::after {
  content: "";
  position: absolute;
  bottom: 2px; /* colle à la base de la carte */
  left: 50%;
  transform: translateX(-50%);
  width: 70%; /* largeur de l’ombre */
  height: 8px; /* hauteur fine */
  background: rgba(0,0,0,1); /* noir pur */
  filter: blur(6px); /* flou léger pour estomper les bords */
  border-radius: 50%;
  pointer-events: none;
}

/* Kenburns slider */
.kenburns-wrapper {
  width: 750px;
  height: 500px;
  overflow: hidden;
  position: relative;
  margin-left: auto;
  margin-right: auto;
  margin-top: 20px;
  margin-bottom: 20px;
  border-radius: 1rem;
  max-width: 100%;
}
.kenburns-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1);
  transition: transform 6s ease-in-out; /* Transition douce, mais un peu plus rapide */
}
.kenburns-active img {
  transform: scale(1.05); /* Zoom très léger */
}
