/* =========================================================
   /css/offres.css (zéro hardcode couleurs)
   Dépend de theme.css (surfaces/borders/inks/accent/shadows/radius)
   Desktop: mini cartes + panneau sticky (hover preview, click pin, blur others)
   Mobile: accordéon
   ========================================================= */


/* =======================
   HERO (réutilise tokens)
   ======================= */




/* =======================
   Offers layout
   (gauche un peu plus étroit, droite plus large)
   ======================= */
.offers-shell{ display:grid; gap:16px; }

@media (min-width: 992px){
  .offers-shell{
    grid-template-columns: minmax(0, 0.92fr) 480px;
    gap: 18px;
    align-items:start;
  }
}

.offers-grid{ display:grid; gap:14px; }
@media (min-width: 680px){
  .offers-grid{ grid-template-columns: repeat(2, minmax(0,1fr)); }
}

/* =======================
   Mini cards (left)
   Structure:
   - top row: icon + title
   - text
   - price + sub
   - CTA
   ======================= */

.mini-card{
  position:relative;
  border-radius: 26px;
  border: 1px solid var(--border-2);

  /* Glass card */
  background:
    radial-gradient(520px 260px at 15% 0%, rgba(var(--accent),0.16), transparent 60%),
    radial-gradient(620px 340px at 92% 15%, rgba(var(--secondary),0.10), transparent 65%),
    var(--surface-1);

  box-shadow: var(--shadow2);
  overflow:hidden;
  cursor:pointer;
  outline:none;

  padding: 16px 16px 14px;
  min-height: 230px;

  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    filter 180ms ease,
    opacity 180ms ease;

  transform: translate3d(0,0,0);
}

.mini-card{
  display: flex;
  flex-direction: column;
}



/* subtle veil layer for depth (token) */
.mini-card .mini-veil{
  display:none; /* not used; kept for possible future */
}

/* Glow outline (token) */
.mini-card::after{
  content:"";
  position:absolute;
  inset:-1px;
  border-radius: 26px;
  pointer-events:none;
  opacity: 0;
  transition: opacity 180ms ease;
  box-shadow: 0 0 0 1px rgba(var(--accent),0.14), 0 0 54px var(--accent-glow);
}
/*.mini-card:hover::after{ opacity: 1; }*/

.mini-card:hover{
/*  transform: translateY(-2px);*/
  border-color: rgba(var(--accent),0.22);
  box-shadow: var(--shadow), 0 0 0 1px rgba(var(--accent),0.10);
  }

/* Empêche les “déformations” d’icônes lors du hover (transform du parent) */
.mini-icon,
.mini-icon::before,
.mini-icon::after{
  transform: translateZ(0);
  backface-visibility: hidden;
  will-change: transform;
}

.mini-icon{
  contain: paint;
}


/* preview/pin states */
.mini-card.is-preview{
  border-color: rgba(var(--accent),0.28);
  box-shadow: var(--shadow), 0 0 0 1px rgba(var(--accent),0.14), 0 0 54px var(--accent-glow);

}
.mini-card.is-pinned{
  border-color: rgba(var(--accent),0.34);
  box-shadow: var(--shadow), 0 0 0 1px rgba(var(--accent),0.18), 0 0 60px var(--accent-glow);
}

.mini-card:focus-visible{
  outline: 2px solid rgba(var(--accent),0.60);
  outline-offset: 3px;
}

.mini-card--featured{
  border-color: rgba(var(--accent),0.24);
}

/* Row icon + title */
.mini-top{
  display:flex;
  align-items:center;
  gap: 12px;
  margin-bottom: 10px;
}

.mini-icon{
  width: 48px;
  height: 48px;
  border-radius: 16px;
  border: 1px solid var(--border-3);
  background: var(--ink-0);
  position:relative;
  flex: 0 0 auto;
}

/* Glyphs: use only tokens (text is token-based) */
.mini-icon--diag,
.detail-icon.mini-icon--diag{
  background:
      radial-gradient(circle at 22px 20px, transparent 8px, var(--stroke) 9px 11px, transparent 12px),
          /* reflet */
    radial-gradient(
      circle at 16px 18px,
      rgba(255,255,255,0.35) 0 3px,
      transparent 4px
    ),
    var(--ink-0);
}

.mini-icon--diag::after,
.detail-icon.mini-icon--diag::after{
  content:"";
  position:absolute;
  width: 12px;        /* ← court */
  height: 4px;        /* ← épais (≈ cercle) */
  left: 28px;
  top: 26px;
  background: var(--stroke);
  border-radius: 999px;
  transform: rotate(45deg);
  transform-origin: left center;
}

/* === COURS : laptop (bordure simple + reflet, écran vide) === */

/* Neutralise l'ancien dessin (traits) */
.mini-icon--cours::after,
.detail-icon.mini-icon--cours::after{
  content: "";
  /* on va réutiliser ::after pour le reflet, donc on ne fait pas content:none */
}

/* Base laptop + trackpad en background */
.mini-icon--cours,
.detail-icon.mini-icon--cours{
  position: relative;
  background:
    /* charnière (centrée) */
    linear-gradient(var(--stroke2) 0 0) 16px 27px / 16px 2px no-repeat,

    /* base (centrée) */
    linear-gradient(var(--stroke) 0 0) 11px 29px / 26px 6px no-repeat,
    linear-gradient(var(--ink-0) 0 0) 12px 30px / 24px 4px no-repeat,

    /* trackpad (centré) */
/*    linear-gradient(var(--stroke2) 0 0) 19px 30px / 6px 3px no-repeat,*/

    var(--ink-0);

  border: 1px solid var(--border-3);
}
/* Écran : bordure simple, intérieur vide (donc “transparent”) */
.mini-icon--cours::before,
.detail-icon.mini-icon--cours::before{
  content:"";
  position:absolute;
  left: 12px;
  top: 9px;
  width: 24px;
  height: 18px;

  background: transparent;                 /* IMPORTANT : pas de remplissage */
  border: 2px solid var(--stroke);         /* bordure simple */
  border-radius: 4px;                      /* léger arrondi */
  box-sizing: border-box;
}

/* Reflet : petit trait discret dans l’écran */
.mini-icon--cours::after,
.detail-icon.mini-icon--cours::after{
  content:"";
  position:absolute;
  left: 14px;
  top: 12px;
  width: 10px;
  height: 3px;

  background: color-mix(in srgb, var(--text) 18%, transparent);
  border-radius: 999px;
  transform: rotate(-25deg);
  pointer-events: none;
}

/* =======================
   CORRECTION : feuille centrée + lignes centrées H & V + ✅ plus visible
   ======================= */

/* FEUILLE + LIGNES */
.mini-icon--corr::before,
.detail-icon.mini-icon--corr::before{
  content:"";
  position:absolute;

  /* feuille parfaitement centrée */
  left: 50%;
  top: 50%;
  width: 24px;
  height: 28px;
  transform: translate(-50%, -50%);

  border: 2px solid var(--stroke);
  border-radius: 4px;
  box-sizing: border-box;

  /* 3 lignes IDENTIQUES, centrées verticalement */
  background:
    linear-gradient(0deg, var(--stroke2) 0 0)
      center calc(50% - 6px) / 16px 2px no-repeat,
    linear-gradient(0deg, var(--stroke2) 0 0)
      center 50% / 16px 2px no-repeat,
    linear-gradient(0deg, var(--stroke2) 0 0)
      center calc(50% + 6px) / 16px 2px no-repeat;
}

/* CHECK ✅ (plus gros + mieux placé) */
.mini-icon--corr::after,
.detail-icon.mini-icon--corr::after{
  content:"";
  position:absolute;

  /* ancré au centre de la feuille, puis décalé */
  left: 50%;
  top: 50%;

  /* décalage contrôlé : droite + bas léger */
  transform: translate(0px, 2px);

  width: 20px;
  height: 20px;

  /*  background: rgba(var(--accent),0.95);*/
  background: #10B981 !important;

  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 6L9 17l-5-5' fill='none' stroke='%23000' stroke-width='4.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 6L9 17l-5-5' fill='none' stroke='%23000' stroke-width='4.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}


/* =======================
   CYCLE DE SUIVI : Axes fléchés (X & Y) + Courbe ascendante
   ======================= */

.mini-icon--cycle,
.detail-icon.mini-icon--cycle {
    position: relative;
  background: var(--ink-0);
  border: 1px solid var(--border-3);
}

/* 1. Les Axes X et Y (Gris) avec un SVG en masque pour la netteté */
.mini-icon--cycle::before,
.detail-icon.mini-icon--cycle::before {
  content: "";
  position: absolute;
  inset: 0;
  /*  background: var(--stroke2);*/
  background: color-mix(in srgb, #FBBF24 85%, transparent);
  /* Tracé : L (axes) + flèches aux extrémités */
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48' fill='none' stroke='%23000' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M13 10 v25 h25'/%3E%3Cpath d='M10 13 l3-3 3 3'/%3E%3Cpath d='M35 32 l3 3-3 3'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48' fill='none' stroke='%23000' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M13 10 v25 h25'/%3E%3Cpath d='M10 13 l3-3 3 3'/%3E%3Cpath d='M35 32 l3 3-3 3'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* 2. Les 4 points de progression (Accent) via l'astuce box-shadow */
.mini-icon--cycle::after,
.detail-icon.mini-icon--cycle::after {
  content: "";
  position: absolute;
  /* 1er point : le point de départ, proche de l'origine */
  left: 16px;
  bottom: 15px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
/*  background: rgba(var(--accent), 0.95);*/
    background: #FBBF24 !important; /* Le 1er point */
  /* Points 2, 3 et 4 : clonés et décalés vers le haut et la droite */
/*  box-shadow:
    6px -4px 0 rgba(var(--accent), 0.95),
    12px -10px 0 rgba(var(--accent), 0.95),
    15px -16px 0 rgba(var(--accent), 0.95);*/
    box-shadow:
    6px -4px 0 #FBBF24,
    12px -10px 0 #FBBF24,
    15px -16px 0 #FBBF24 !important; /* Les 3 autres points clonés */
}
/*************************************************************/


.mini-title{
  font-size: 1.12rem;
  line-height: 1.15;
  letter-spacing:-0.02em;
}

.mini-summary{
  color: color-mix(in srgb, var(--text) 78%, transparent);
  line-height: 1.55;
  margin-bottom: 14px;
}

.mini-price{ display:grid; gap:2px; margin-bottom: 12px; }
.mini-price-big{
  font-size: 1.45rem;
  font-weight: 900;
  letter-spacing:-0.02em;
}
.mini-price-sub{
  color: var(--muted2);
  font-size: 0.95rem;
}

/* CTA */
.mini-cta{
    margin-top:0;
    width: fit-content;
}

/* templates never visible */
.mini-card template{ display:none !important; }

/* Micro parallax highlight (token) */
.mini-card{ --px: 0px; --py: 0px; }
.mini-card::before{
  content:"";
  position:absolute;
  inset:-2px;
  border-radius: 28px;
  pointer-events:none;
  opacity: 0.35;
  transform: translate3d(var(--px), var(--py), 0);
  transition: transform 90ms linear, opacity 180ms ease;
  background: radial-gradient(320px 220px at 20% 0%, rgba(var(--accent),0.18), transparent 70%);
}
.mini-card:hover::before{ opacity: 0.55; }


/* bloc prix = dernier contenu avant le CTA */
.mini-price{
  margin-bottom: 10;
}

/* CTA toujours poussé en bas */
.mini-cta{
  margin-top: auto;   /* ← TOUT SE JOUE ICI */
}
.mini-summary{
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3; /* ou 4 si tu veux un peu plus d’air */
  overflow: hidden;
}


/* Blur others on hover (desktop) */
@media (min-width: 992px){
  .offers-shell.is-hovering .mini-card{
    transition:
      filter 180ms ease,
      opacity 180ms ease,
      transform 180ms ease,
      border-color 180ms ease,
      box-shadow 180ms ease;
  }
  
  .offers-shell.is-hovering .mini-card:not(.is-preview):not(:hover){
  filter: blur(0.7px) saturate(0.95);
  opacity: 0.82;
  }

  /* NOUVEAU : On combine Grayscale + Blur pour les cartes non proposées */
  .offers-shell.is-hovering .mini-card.is-disabled:not(.is-preview):not(:hover){
    filter: grayscale(1) blur(2.2px) saturate(0.85) contrast(0.95) !important;
    opacity: 0.3 !important; /* Plus transparent pour bien montrer l'indisponibilité */
  }
  
  .offers-shell.is-hovering .mini-card.is-preview{
    filter: none;
    opacity: 1;
  }
}

/* =======================
   Detailed card (right)
   Header: icon (left) + title + chips on same line
   Summary below full width
   No CTA inside panel
   ======================= */
.detail-col{ display:none; }

@media (min-width: 992px){
  .detail-col{
    display:block;
    position: sticky;
    top: 92px;
  }
}

.detail-card{
  border-radius: 30px;
  border: 1px solid var(--border-2);
  background:
    radial-gradient(740px 360px at 18% 0%, rgba(var(--accent),0.16), transparent 62%),
    radial-gradient(640px 360px at 92% 20%, rgba(var(--secondary),0.10), transparent 65%),
    var(--surface-1);
  box-shadow: var(--shadow2);
  overflow:hidden;
  min-height: 490px;
  display:flex;
  flex-direction:column;
}

.detail-head{
  padding: 18px 18px 10px;
  display: grid;
  gap: 10px;
}

.detail-top{
  display:flex;
  align-items:center;
  gap: 12px;
  min-width: 0;
}

/* Panel icon = same look as mini-icon + dynamic class */
.detail-icon{
  width: 48px;
  height: 48px;
  border-radius: 16px;
  border: 1px solid var(--border-3);
  background: var(--ink-0);
  position:relative;
  flex: 0 0 auto;
}
.detail-icon::before{
  content:"";
  position:absolute;
  inset:-2px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(var(--accent),0.22), transparent 60%);
  opacity:0.9;
  pointer-events:none;
}

/* Apply the same glyphs to panel icon via same classes */
.detail-icon.mini-icon--diag::after,
.detail-icon.mini-icon--cours::after,
.detail-icon.mini-icon--corr::after,
.detail-icon.mini-icon--suivi::after{
  /* inherits definitions from .mini-icon--*::after above */
  content:"";
}

.detail-title{
  font-size: 1.18rem;
  line-height:1.18;
  letter-spacing:-0.02em;
  min-width: 0;
  flex: 1 1 auto;
}

.detail-chips{
  display:flex;
  gap: 8px;
  flex-wrap:wrap;
  justify-content:flex-end;
  flex: 0 0 auto;
  max-width: 45%;
}

.chip{
  height: 28px;
  display:inline-flex;
  align-items:center;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--ink-0);
  border: 1px solid var(--border-2);
  color: color-mix(in srgb, var(--text) 82%, transparent);
  font-size: 0.92rem;
  font-weight: 750;
}

.detail-summary{
  color: var(--muted);
  line-height:1.55;
  text-align: justify; /* <-- Ligne à ajouter */
}

.detail-body{ padding: 6px 18px 0; flex:1;   color:  var(--muted);}

.bullets{
  margin: 10px 0 0;
  padding-left: 18px;
  display:grid;
  gap: 10px;
  color: color-mix(in srgb, var(--text) 80%, transparent);
}
.bullets li{ line-height:1.35; }
.bullets li.note{ color: var(--muted2); }
.bullets li.nope{ color: color-mix(in srgb, var(--text) 70%, transparent); }

.conditions{
  margin-top: 16px;
  border-radius: 18px;
  border: 1px solid var(--border-2);
  background: var(--ink-0);
  padding: 14px 14px;
}
.conditions-title{ font-weight: 900; margin-bottom: 8px; }
.conditions-text{ color: var(--muted); line-height: 1.55; text-align: justify; /* <-- Ligne à ajouter */}

.detail-footer{
  margin-top: 12px;
  padding: 14px 18px 18px;
  border-top: 1px solid var(--border-1);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
}
.detail-price{ display:grid; gap:2px; }
.detail-price-big{
  font-size: 1.55rem;
  font-weight: 950;
  letter-spacing:-0.02em;
}
.detail-price-sub{ color: var(--muted2); }

/* Panel hidden until first hover */
.detail-card.is-empty{
  opacity: 0;
  transform: translateY(6px);
  pointer-events: none;
  transition: opacity 220ms ease, transform 220ms ease;
}
.detail-card.has-selection{
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* =======================
   Fineprint + FAQ (tokens)
   ======================= */
.fineprint{
  margin-top: 16px;
  padding: 14px;
  border-radius: var(--radius);
  border: 1px solid var(--border-2);
  background: var(--surface-1);
  color: color-mix(in srgb, var(--text) 78%, transparent);
  line-height: 1.55;
}
.faq{ margin-top: 10px; display:grid; gap:10px; }
details{
  border: 1px solid var(--border-2);
  background: var(--surface-0);
  border-radius: var(--radius);
  padding: 10px 12px;
}
summary{ cursor:pointer; font-weight:750; }
details p{
  margin-top: 10px;
  color: color-mix(in srgb, var(--text) 78%, transparent);
  line-height: 1.55;
}

/* =======================
   Mobile: accordion
   ======================= */
@media (max-width: 991px){
  .detail-col{ display:none !important; }
  .hero-inner{ grid-template-columns: 1fr; }
  .hero-card{ display:none; }

  .mini-card{ min-height:auto; }
  
  .mini-cta{ width: 100%; justify-content:center; }

  .mini-card .mobile-toggle{
    margin-top: 10px;
    height: 40px;
    border-radius: 14px;
    border: 1px solid var(--border-2);
    background: var(--ink-0);
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding: 0 12px;
    font-weight: 850;
    color: color-mix(in srgb, var(--text) 86%, transparent);
  }

  .mini-card .mobile-details{
    max-height: 0;
    overflow:hidden;
    opacity: 0;
    transform: translateY(8px);
    transition: max-height 650ms ease, opacity 650ms ease, transform 650ms ease;
    margin-top: 0;
  }
  .mini-card.is-open .mobile-details{
    max-height: 900px;
    opacity: 1;
    transform: translateY(0);
    margin-top: 12px;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  *{ transition:none !important; }
}

/* force la grille à prendre toute la largeur de .wrap (comme fineprint) */
.offers-shell{ width: 100%; }

/* le fineprint prend aussi toute la largeur du wrap */
.fineprint{ width: 100%; }

@media (min-width: 992px){
  .offers-shell{
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    gap: 18px;
  }
}

.detail-top{
  display:flex;
  align-items:center;
  gap: 12px;
  min-width: 0;
}

.detail-title{
  flex: 1 1 auto;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.detail-chips{
  flex: 0 0 auto;
  display:flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content:flex-end;
  max-width: 52%;
}

.chip{
  background: var(--surface-2);
  border: 1px solid var(--border-3);
  color: color-mix(in srgb, var(--text) 88%, transparent);
}

.chip--accent{
  background: var(--accent-soft);
  border-color: var(--accent-border);
  color: color-mix(in srgb, var(--text) 92%, transparent);
  box-shadow: 0 0 0 1px rgba(var(--accent),0.08);
}

/* Badge premium (Étoile / Recommandé) */
.chip--gold {
  background: rgba(251, 191, 36, 0.12); /* Fond légèrement doré */
  border-color: rgba(251, 191, 36, 0.35); /* Bordure dorée subtile */
  color: #fbbf24; /* Texte doré brillant (Amber 400) */
  box-shadow: 
    0 0 12px rgba(251, 191, 36, 0.15), 
    inset 0 0 8px rgba(251, 191, 36, 0.05); /* Halo lumineux premium */
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2); /* Renforce la lisibilité */
}

.chip--secondary{
  background: rgba(var(--secondary),0.16);
  border-color: rgba(var(--secondary),0.26);
  color: color-mix(in srgb, var(--text) 92%, transparent);
  box-shadow: 0 0 0 1px rgba(var(--secondary),0.08);
}

/* ========== ICONES PLUS "COMPLETES" (mini + panel) ========== */

/* base stroke */
:where(.mini-icon, .detail-icon){
  --stroke: color-mix(in srgb, var(--text) 62%, transparent);
  --stroke2: color-mix(in srgb, var(--text) 46%, transparent);
  --glow: rgba(var(--accent),0.18);
}

/* DIAGNOSTIC : loupe + point */




@media (min-width: 992px){
    .offers-shell.is-hovering .mini-card:not(.is-preview):not(:hover){
  filter: blur(2.2px) saturate(0.85) contrast(0.95);
  opacity: 0.62;
}

  .offers-shell.is-hovering .mini-card.is-preview{
    filter: none;
    opacity: 1;
    transform: translateY(-6px) :/*scale(1.02);*/
    z-index: 2;
    border-color: rgba(var(--accent),0.38);
    box-shadow: var(--shadow), 0 0 0 1px rgba(var(--accent),0.20), 0 0 80px var(--accent-glow);
  }
}


.mini-cta {
  margin-top: 0 !important; 
  width: 100%;
  
  /* Flexbox pour bien centrer le contenu */
  display: flex;
  justify-content: center;
  align-items: center;
  
  /* Gestion du texte sur plusieurs lignes */
  text-align: center; /* Centre le texte s'il passe à la ligne */
  white-space: normal; /* Autorise le texte à revenir à la ligne */
  line-height: 1.3; /* Espace un peu les lignes pour la lisibilité */
  
  /* Gestion de la taille du bouton */
  height: auto; /* Annule toute hauteur fixe qui pourrait couper le texte */
  min-height: 44px; /* Garde une taille minimum pour qu'il soit facile à cliquer */
  padding: 10px 12px; 
  box-sizing: border-box; /* Empêche le bouton de déborder de la carte */
}

/* ========= pour +/- sur mini carte en mobile =======*/
@media (max-width: 991px){

  .mini-card .mobile-toggle{
    position: relative;
    padding-right: 48px;
  }

  /* Barre horizontale (base du –) */
  .mini-card .mobile-toggle::after{
    content: "";
    position: absolute;
    right: 18px;
    top: 50%;
    width: 14px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transform: translateY(-50%);
  }

  /* Barre verticale (celle qui tourne) */
  .mini-card .mobile-toggle::before{
    content: "";
    position: absolute;
    right: 24px;
    top: 50%;
    width: 2px;
    height: 14px;
    background: #fff;
    border-radius: 2px;

    transform-origin: center;
    transform: translateY(-50%) rotate(0deg);
    transition: transform 240ms cubic-bezier(.4,0,.2,1);
  }

  /* État ouvert → rotation vers le – */
  .mini-card.is-open .mobile-toggle::before{
    transform: translateY(-50%) rotate(90deg);
  }
}
/*==========================================*/


/* =======================
   CTA accentué sur carte active
   ======================= */

/* état normal 
.mini-cta{
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease,
    border-color 160ms ease;
}*/

/* uniquement quand la carte est active 
.mini-card.is-preview .mini-cta,
.mini-card.is-pinned .mini-cta{
  transform: translateY(-1px) scale(1.04);
  box-shadow:
    0 6px 18px rgba(var(--accent),0.18),
    0 0 0 1px rgba(var(--accent),0.18);
}*/

/* hover direct du bouton (toujours carte active) 
.mini-card.is-preview .mini-cta:hover,
.mini-card.is-pinned .mini-cta:hover{
  transform: translateY(-2px) scale(1.06);
}*/


/* gradient subtil sur hover du CTA (theme tokens only) 
.mini-card.is-preview .mini-cta:hover,
.mini-card.is-pinned .mini-cta:hover{
  background:
    linear-gradient(
      135deg,
      rgba(var(--accent),0.28),
      rgba(var(--secondary),0.22)
    );
  border-color:
    color-mix(in srgb, rgba(var(--accent),0.42), rgba(var(--secondary),0.36));
}*/


/*=============================================*/

/* =======================
   HERO (réutilise tokens)
   ======================= */

/* =======================
   HERO 
   ======================= */

/* =======================
   HERO 
   ======================= */

/* =======================
   HERO 
   ======================= */

.hero-text h1 {
  /* Un bleu doux, élégant et uni (issu de la couleur claire de ton logo) */
/*  color: #7EC6FF; */
  
  /* Une ombre noire très diffuse pour détacher le texte sans effet "néon" */
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.4); 
}

/* =======================
   COLORISATION DES ICÔNES
   ======================= */

/* 1. Bilan (Loupe) : Bleu de ton thème (Logique, recherche) */
.mini-icon--diag, .detail-icon.mini-icon--diag {
          --stroke: #5AB0FF; 
  --stroke2: color-mix(in srgb, #5AB0FF 40%, transparent);

}

/* 2. Cours à l'unité (Laptop) : Violet doux (Technologie, digital) */
.mini-icon--cours, .detail-icon.mini-icon--cours {
--stroke: #A78BFA; /* <-- Un violet pastel, beaucoup plus reposant */
  --stroke2: color-mix(in srgb, #A78BFA 40%, transparent);

}

/* 3. Correction (Feuille) : Émeraude (Validation, notation, succès) */
.mini-icon--corr, .detail-icon.mini-icon--corr {
  --stroke: #10B981; 
  --stroke2: color-mix(in srgb, #10B981 40%, transparent);
}

/* 4. Cycle de suivi (Graphique) : Doré/Ambre (Premium, progression sur le long terme) */
.mini-icon--cycle, .detail-icon.mini-icon--cycle {
      --stroke: #FBBF24; 
  --stroke2: color-mix(in srgb, #FBBF24 40%, transparent);
}


/* =======================
   COLORISATION DES CHIPS (PANNEAU DÉTAIL)
   ======================= */

/* 1. Bilan (Bleu) */
.detail-icon.mini-icon--diag ~ .detail-chips .chip {
  background: color-mix(in srgb, #5AB0FF 12%, transparent);
  border-color: color-mix(in srgb, #5AB0FF 30%, transparent);
  color: #5AB0FF;
}

/* 2. Cours à l'unité (Lavande) */
.detail-icon.mini-icon--cours ~ .detail-chips .chip {
  background: color-mix(in srgb, #A78BFA 12%, transparent);
  border-color: color-mix(in srgb, #A78BFA 30%, transparent);
  color: #A78BFA;
}

/* 3. Correction (Émeraude) */
.detail-icon.mini-icon--corr ~ .detail-chips .chip {
  background: color-mix(in srgb, #10B981 12%, transparent);
  border-color: color-mix(in srgb, #10B981 30%, transparent);
  color: #10B981;
}

/* 4. Cycle de suivi (Doré) */
.detail-icon.mini-icon--cycle ~ .detail-chips .chip {
  background: color-mix(in srgb, #FBBF24 12%, transparent);
  border-color: color-mix(in srgb, #FBBF24 30%, transparent);
  color: #FBBF24;
}


/* --- SÉLECTEUR DE MATIÈRE --- */
.subject-selector {
  margin-bottom: 24px;
  display: flex;
  justify-content: center;
}
.subject-selector select {
  padding: 10px 20px;
  border-radius: 999px;
  background: var(--surface-1);
  border: 1px solid var(--border-2);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  cursor: pointer;
}

/* --- CARROUSEL PROFESSEURS --- */
.teacher-carousel-wrap {
  margin-bottom: 32px;
  position: relative;
}

.teacher-carousel {
  display: flex;
  gap: 16px;
/* NOUVEAUTÉ : On remplace l'overflow par un flex-wrap centré */
  flex-wrap: wrap;
  justify-content: center;  
  padding-bottom: 12px;
  scrollbar-width: thin;
}
.teacher-card {
  flex: 0 0 auto;
  width: 220px;
  padding: 16px;
  border-radius: 20px;
  border: 1px solid var(--border-2);
  background: var(--ink-0);
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.teacher-card:hover, .teacher-card.is-active {
  border-color: var(--accent);
  box-shadow: 0 4px 12px rgba(var(--accent), 0.15);
}
.teacher-card.is-active {
  background: rgba(var(--accent), 0.05);
}
.teacher-avatar {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 12px;
  border: 2px solid var(--border-1);
}
.teacher-name {
  font-weight: 800;
  font-size: 1.1rem;
  margin-bottom: 4px;
}
.teacher-pedigree {
  font-size: 0.85rem;
  color: var(--muted);
}

/* --- ÉTAT OFFRE DÉSACTIVÉE (Grisée) --- */
.mini-card.is-disabled {
  opacity: 0.4;
  pointer-events: none;
  filter: grayscale(1);
}
.mini-card.is-disabled .mini-cta {
  display: none;
}


/* --- 1. SÉLECTEUR DE MATIÈRE (CARTES) --- */
.subject-cards-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
  margin-bottom: 40px;
}

.subject-card {
  position: relative;
  width: 260px;
  height: 160px;
  border-radius: 20px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.subject-card:hover, .subject-card.is-active {
  transform: translateY(-5px);
  border-color: rgba(var(--accent), 0.8);
  box-shadow: 0 10px 25px rgba(var(--accent), 0.2);
}

.subject-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(0.6) saturate(1.2);
  transition: transform 0.4s ease, filter 0.4s ease;
}

.subject-card:hover .subject-bg, .subject-card.is-active .subject-bg {
  transform: scale(1.08);
  filter: brightness(0.8) saturate(1.2);
}

.subject-content {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.subject-content h3 {
  color: #ffffff;
  font-size: 1.5rem;
  font-weight: 800;
  text-shadow: 0 2px 10px rgba(0,0,0,0.8);
  margin: 0;
}

/* Titre intermédiaire pour guider l'élève */
.step-title {
  text-align: center;
  margin-bottom: 16px;
  font-size: 1.2rem;
  color: var(--text);
  font-weight: 700;
}


/* --- SÉLECTEUR DE FILIÈRE (CARTES) --- */
.filiere-selector {
  display: grid;
  /* Crée des colonnes automatiques d'au moins 130px de large */
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 16px;
  width: 100%;
}

.filiere-selector .pill-btn {
  /* Annule l'aspect "pilule" de base */
  margin: 0;
  width: 100%;
  height: auto;
  
  /* Style de la carte */
  background: var(--ink-0);
  border: 1px solid var(--border-2);
  border-radius: 16px;
  padding: 18px 12px;
  
  /* Typographie */
  font-size: 1.1rem;
  font-weight: 750;
  color: color-mix(in srgb, var(--text) 85%, transparent);
  text-align: center;
  
  /* Centrage parfait du texte */
  display: flex;
  align-items: center;
  justify-content: center;
  
  /* Effets visuels */
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Effet au survol --- */
.filiere-selector .pill-btn:hover {
  transform: translateY(-4px);
  border-color: rgba(var(--accent), 0.5);
  box-shadow: 0 8px 20px rgba(var(--accent), 0.15);
  color: var(--text);
}

/* --- Effet actif (quand l'élève a cliqué) --- */
.filiere-selector .pill-btn.is-active {
  background: rgba(var(--accent), 0.08);
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: 0 4px 12px rgba(var(--accent), 0.15), inset 0 0 0 1px rgba(var(--accent), 0.1);
  transform: translateY(0); /* Remet la carte à plat quand elle est sélectionnée */
}


/* Wrapper simulant un bouton unique divisé en deux */
.filiere-group {
  display: flex;
  width: 100%;
  border-radius: 16px;
  background: var(--ink-0);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* L'effet de soulèvement global s'applique au groupe */
.filiere-group:hover {
  box-shadow: 0 8px 20px rgba(var(--accent), 0.15);
  transform: translateY(-4px);
}

/* Neutraliser les styles individuels des boutons encapsulés */
.filiere-group .pill-btn {
  flex: 1;
  box-shadow: none;
  transform: none !important; /* Le groupe gère l'animation */
  margin: 0;
}

/* Bords cassés pour créer la jonction (moitié gauche) */
.filiere-group .pill-btn.split-left {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
  border-right: 1px solid var(--border-2);
}

/* Bords cassés pour créer la jonction (moitié droite) */
.filiere-group .pill-btn.split-right {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
  border-left: none;
}

/* Feedback léger au survol d'une moitié précise */
.filiere-group .pill-btn:hover {
  background: rgba(var(--accent), 0.04);
}

/* État actif exclusif (quand l'élève a cliqué sur MP ou MP*) */
.filiere-group .pill-btn.is-active {
  background: rgba(var(--accent), 0.08);
  border-color: var(--accent);
  color: var(--accent);
  z-index: 1; /* Force la bordure active à s'afficher par-dessus le séparateur */
  box-shadow: inset 0 0 0 1px rgba(var(--accent), 0.1);
}


/* =======================
   Mode Générique (Catalogue de base flouté)
   ======================= */

/* Floutage des listes à puces en mode générique */
.detail-card.is-generic .bullets,
.mobile-details.is-generic .bullets {
  filter: blur(4.5px);
  opacity: 0.4;
  pointer-events: none;
  user-select: none;
}

/* 1. On annule l'ancien repère (si vous l'aviez mis) */
.detail-card.is-generic .detail-body {
  position: static; 
}

/* 2. On place le point de repère EXACTEMENT sur la zone des puces */
.detail-card.is-generic .detail-bullets {
  position: relative;
  min-height: 100px; /* S'assure d'avoir la place pour le message */
}

/* 3. On centre parfaitement le message au milieu de cette zone */
.detail-card.is-generic .detail-bullets::after {
  content: "Les détails de la pédagogie sont personnalisés par chaque professeur.";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  text-align: center;
  z-index: 2;

  /* Typographie */
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.5;

  /* L'astuce lisibilité : le double halo sombre */
  text-shadow: 
    0 1px 3px rgba(0, 0, 0, 0.9), 
    0 0 14px rgba(0, 0, 0, 0.7);

  /* On supprime tout l'aspect "carte" / "bouton" */
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  box-shadow: none;

  /* Sécurité UX (les clics passent au travers) */
  pointer-events: none;
}


/* ========================================================
   CORRECTION : Message explicatif Mobile (Texte flottant)
   ======================================================== */

/* 1. On s'assure d'annuler la grille (si elle est encore là) */
.mobile-details.is-generic {
  display: block; 
}

/* 2. On annule le flou sur le conteneur parent en mobile... */
.mobile-details.is-generic .bullets {
  filter: none !important;
  opacity: 1 !important;
  position: relative; /* Devient la zone d'accroche parfaite */
  min-height: 100px;
}

/* 3. ... et on applique le flou UNIQUEMENT aux lignes de texte ! */
.mobile-details.is-generic .bullets li {
  filter: blur(4.5px);
  opacity: 0.4;
  pointer-events: none;
  user-select: none;
}

/* 4. Le message se centre exactement par-dessus, sans effet "carte" */
.mobile-details.is-generic .bullets::after {
  content: "Les détails de la pédagogie sont personnalisés par chaque professeur.";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 95%;
  text-align: center;
  z-index: 2;

  /* Typographie identique au desktop (aucun fond, juste le texte) */
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.5;

  /* Le double halo sombre pour détacher le texte du fond flou */
  text-shadow: 
    0 1px 3px rgba(0, 0, 0, 0.9), 
    0 0 14px rgba(0, 0, 0, 0.7);

  /* Sécurité : on écrase tous les anciens styles de "bouton" ou "carte" */
  background: transparent;
  border: none;
  padding: 0;
  box-shadow: none;
  pointer-events: none;
}

/* ========================================================
   Flou sur les prix (Petites cartes)
   ======================================================== */
.mini-card.is-generic .mini-price-big,
.mini-card.is-generic .mini-price-sub {
  filter: blur(4.5px);
  opacity: 0.3;
  user-select: none;
  pointer-events: none;
}

.mini-card.is-generic .mini-price {
  position: relative;
}

/* Texte explicatif qui remplace le prix sur la carte */
.mini-card.is-generic .mini-price::after {
  content: "Tarif fixé par le professeur"; /* Texte légèrement raccourci pour tenir sur la carte */
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  font-weight: 750;
  font-size: 0.95rem;
  color: var(--text);
  text-align: center;
  line-height: 1.3;
}

/* ========================================================
   Flou sur le prix (Grand panneau latéral détaillé)
   ======================================================== */
.detail-card.is-generic .detail-price-big,
.detail-card.is-generic .detail-price-sub {
  filter: blur(5px);
  opacity: 0.3;
  user-select: none;
  pointer-events: none;
}

.detail-card.is-generic .detail-price {
  position: relative;
  flex: 1; /* Permet à la zone de prendre l'espace nécessaire */
}

/* Texte complet qui remplace le prix dans le panneau */
.detail-card.is-generic .detail-price::after {
  content: "Le tarif et les modalités sont fixés par chaque professeur.";
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.4;
}



/* ========================================================
   Flou sur les chips (étiquettes) en mode générique
   ======================================================== */
.detail-card.is-generic .chip,
.mobile-details.is-generic .chip {
  filter: blur(3.5px);
  opacity: 0.4;
  pointer-events: none;
  user-select: none;
}


#selection-tunnel {
  animation: fadeInTunnel 0.5s ease-out;
}

@keyframes fadeInTunnel {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
