/* =======================
   CMS PAGE
   ======================= */

.cms-page-content h2 {
  font-size: 1.3rem;
  margin-top: 2rem !important;
  margin-bottom: 1rem !important;
  line-height: 1.5rem;	
  font-weight: 700;
}


/* =======================
   TAB LIST
   ======================= */

/* =========
   Variables
   ========= */
:root{
  --li-bg: #ffffff;
  --li-fg: #0f172a;            /* slate-900 */
  --li-muted: #64748b;         /* slate-500 */
  --li-ring: 0 0 0 0 rgba(59,130,246,0);
  --li-shadow: 0 1px 2px rgba(2,6,23,.06), 0 4px 12px rgba(2,6,23,.04);
  --li-bullet: linear-gradient(135deg,#f6e041,#f6c5c6); /* 🌈 ton gradient personnalisé */
  --li-bullet-size: 12px;
  --li-radius: 14px;
  --li-gap: 12px;
  --li-padY: 14px; --li-padX: 16px;
  --li-hover-raise: translateY(-2px);
  --li-border: 1px solid rgba(2,6,23,.06);
}

@media (prefers-color-scheme: dark){
  :root{
    --li-bg: #0b1220;
    --li-fg: #e5e7eb;
    --li-muted: #9aa4b2;
    --li-shadow: 0 1px 2px rgba(0,0,0,.4), 0 6px 18px rgba(0,0,0,.24);
    --li-border: 1px solid rgba(255,255,255,.06);
  }
}


ul.tab-list{
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

/* Chaque LI = mini carte UX */
ul.tab-list > li{
  position: relative;
  display: grid;
  grid-template-columns: var(--li-bullet-size) 1fr auto;
  align-items: center;
  gap: var(--li-gap);
  padding: var(--li-padY) var(--li-padX);
  background: var(--li-bg);
  color: var(--li-fg);
  border: var(--li-border);
  border-radius: var(--li-radius);
  box-shadow: var(--li-shadow);
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
}

/* Bullet gradient */
ul.tab-list > li::before{
  content: "";
  width: var(--li-bullet-size);
  height: var(--li-bullet-size);
  margin-top: 2px;
  border-radius: 999px;
  background: rgb(var(--p));
  filter: drop-shadow(0 2px 6px rgba(246,197,198,.35));
}

/* Titre + description */
ul.tab-list > li > .title{
  font-weight: 700;
  line-height: 1.25;
}
ul.tab-list > li > .desc{
  grid-column: 2 / -1;
  margin-top: 4px;
  color: var(--li-muted);
  font-size: .95rem;
}

/* Badge/meta à droite */
ul.tab-list > li > .meta{
  align-self: center;
  font-size: .875rem;
  color: var(--li-muted);
}

/* Hover & focus */
ul.tab-list > li:hover{
  transform: var(--li-hover-raise);
  box-shadow: 0 3px 10px rgba(2,6,23,.08), 0 10px 24px rgba(2,6,23,.06);
}
ul.tab-list > li:focus-within{
  outline: none;
  box-shadow: 0 0 0 3px rgba(246,197,198,.25), var(--li-shadow);
}

/* États colorés optionnels */
ul.tab-list > li[data-state="done"]::before{
  background: linear-gradient(135deg,#a7f6c5,#4ade80); /* vert pastel */
}
ul.tab-list > li[data-state="warn"]::before{
  background: linear-gradient(135deg,#f59e0b,#f97316); /* orange */
}

/* Sous-listes fluides */
ul.tab-list ul{
  list-style: none;
  margin: 10px 0 0 0;
  padding-left: calc(var(--li-bullet-size) + var(--li-gap));
  display: grid;
  gap: 8px;
}
ul.tab-list ul > li{
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
  grid-template-columns: 10px 1fr;
}
ul.tab-list ul > li::before{
  width: 8px; height: 8px;
  background: radial-gradient(circle at 30% 30%, #f6c5c6, #f6e041);
  filter: none;
}

/* Compact variant */
ul.tab-list.is-compact > li{
  --li-padY: 10px; --li-padX: 12px;
  --li-bullet-size: 10px;
  --li-radius: 12px;
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce){
  ul.tab-list > li{ transition: none; }
}



/* =======================
   STYLED OL
   ======================= */


ol {
  list-style: none;          /* Supprime les numéros natifs */
  counter-reset: custom;     /* Initialise le compteur */
  margin: 0;
  padding: 0;
}

ol li {
  counter-increment: custom; /* Incrémente le compteur à chaque <li> */
  position: relative;
  margin: 0.75rem 0;
  padding-left: 2.5rem;      /* Espace pour le rond */
}

ol li::before {
  content: counter(custom);  /* Affiche le numéro */
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  background: rgb(var(--p));       /* Jaune doré */
  color: rgb(var(--pc));               /* Numéro noir */
  font-weight: bold;         /* Numéro en gras */
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 50%;        /* Rond parfait */
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: sans-serif;   /* Optionnel : police plus nette */
}



/* =======================
   GRID LIST
   ======================= */

ul.grid-list {
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: 100%;
  display: flex;
  flex-direction: column;
}

/* Chaque item */
ul.grid-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid #e5e7eb; /* trait gris clair */
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

/* Suppression du trait pour le dernier */
ul.grid-list li:last-child {
  border-bottom: none;
}

/* Bullet coloré avec halo */
ul.grid-list li::before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  background-color: #ffc71e; /* primary */
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgb(255 199 30 / 25%); /* halo primary clair */
  flex-shrink: 0;
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

/* Texte principal et secondaire */
ul.grid-list strong {
  font-weight: 700;
  color: #000;
  transition: color 0.2s ease;
}

ul.grid-list span {
  color: #64748b;
  font-weight: 500;
  transition: color 0.2s ease;
}

/* Effet hover fluide */
ul.grid-list li:hover {
  
  transform: translateX(2px);
}

ul.grid-list li:hover strong {
  color: #111827;
}

ul.grid-list li:hover span {
  color: #334155;
}

/* Hover : bullet animé */
ul.grid-list li:hover::before {
  background-color: #fdc7c0; /* secondary au survol */
  box-shadow: 0 0 0 4px rgb(253 199 192 / 26%); /* halo light secondary */
}



ul.grid-list li.active strong {
  color: #1e3a8a;
}

ul.grid-list li.active span {
  color: #1e40af;
}





/* ============================
   SOUS-LISTES IMBRIQUÉES
   ============================ */
ul.grid-list ul {
  list-style: none;
  margin: 0.25rem 0 0.5rem 1.75rem; /* décalage à droite */
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  border-left: 2px solid #f1f5f9; /* ligne légère d’indentation */
}

/* Sous-éléments */
ul.grid-list ul li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #6b7280; /* gris plus clair */
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.3rem 0;
  transition: color 0.2s ease;
}

/* Bullet réduit et gris clair */
ul.grid-list ul li::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  background-color: #9ca3af; /* gris bullet */
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(156,163,175,0.15);
  flex-shrink: 0;
}

/* Hover léger sur sous-item */
ul.grid-list ul li:hover {
  color: #374151;
}

ul.grid-list ul li:hover::before {
  background-color: #6b7280;
  box-shadow: 0 0 0 3px rgba(107,114,128,0.25);
}

/* ============================
   MODE SOMBRE 
   ============================ */

@media (prefers-color-scheme: dark) {
  ul.grid-list > li {
    border-color: #1e293b;
  }
  ul.grid-list > li:hover {
    background: #1e293b;
  }
  ul.grid-list strong {
    color: #f8fafc;
  }
  ul.grid-list span {
    color: #94a3b8;
  }

  ul.grid-list ul {
    border-left-color: #334155;
  }
  ul.grid-list ul li {
    color: #94a3b8;
  }
  ul.grid-list ul li::before {
    background-color: #64748b;
    box-shadow: 0 0 0 3px rgba(100,116,139,0.25);
  }
}

/* ============================
   FAQ Snippet 
   ============================ */

/* Zone FAQ globale */
.yla-faq {
  margin-top: 40px;
  margin-bottom: 40px;
}

.yla-faq h2 {
  margin-bottom: 25px;
  font-weight: 700;
}

.yla-faq .panel.panel-default{
  border-bottom: 1px solid #e0ded9 !important;
  box-shadow: none !important;
}

/* Reset / refinement panels Bootstrap 3 */
.yla-faq .panel-group .panel {
    border-radius: 0;
    border-width: 0px;
    border-color:#000;
    margin-bottom: 10px;
    overflow: hidden;
}

.yla-faq .panel-group .panel-heading+.panel-collapse>.panel-body {
    border-top: 0 none;
}

.yla-faq .panel-heading {
  background-color: #ffffff;
  padding: 0;
}

.yla-faq .panel-title a {
  display: block;
  padding: 12px 0px;
  text-decoration: none;
  color: #6d6d6e; /* slate-900 */
  position: relative;
}

/* Hover / focus */
.yla-faq .panel-title a:hover,
.yla-faq .panel-title a:focus {
  text-decoration: none;
}

/* Corps de la réponse */
.yla-faq .panel-body {
  padding: 12px 0px;
  color: #334155; /* slate-700 */
  font-size: 0.95rem;
  line-height: 1.6;
}

.yla-faq .panel-group{
  background: #FFF;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
}

/* Flèches via ::after */
.yla-faq .panel-title a::after {
  content: "\f106"; /* flèche bas */
  font-family:FontAwesome;
  position: absolute;
  right: 16px;
  top: 50%;
  color:#6d6d6e;
  transform: translateY(-50%);
  font-size: 1.5rem;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* État fermé (Bootstrap ajoute .collapsed) */
.yla-faq .panel-title a.collapsed::after {
  content: "\f107"; /* flèche droite */
  font-family:FontAwesome;
  transform: translateY(-50%);
}

/* Option : léger fond quand ouvert */
.yla-faq .panel-collapse.in + .panel-footer {
  border-top: 1px solid #e5e7eb;
}

.yla-faq .panel-group .panel:last-child{
  border-bottom:0 none !important;
}
