/* =====================================================================
   EduLink Learning — Page d'accueil (index.php)
   S'appuie sur les variables et composants de assets/site.css.
   ===================================================================== */

/* ============ HERO ============ */
.hero { position: relative; padding-top: clamp(28px, 5vw, 64px); padding-bottom: clamp(72px, 9vw, 112px); overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -40% -10% auto auto; width: 70vw; height: 120%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(99,56,196,.10), transparent 70%);
}
.hero-grid > * { min-width: 0; }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.02fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px 7px 8px; border-radius: var(--r-pill);
  background: #fff; border: 1px solid var(--c-line); box-shadow: var(--sh-1); font-size: .8125rem; font-weight: 500; color: var(--c-deep);
  margin-bottom: 22px;
}
.hero-badge .dot { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--c-coral-soft); color: var(--c-coral-ink); font-size: 13px; }
.hero h1 { font-size: var(--fs-h1); font-weight: 700; line-height: 1.08; letter-spacing: -.03em; margin-bottom: 20px; }
.hero h1 .accent-u { position: relative; z-index: 0; }
.hero .lead { font-size: clamp(1rem, 1.3vw, 1.125rem); color: var(--c-mut); max-width: 520px; margin-bottom: 30px; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 28px; }

.hero-search {
  display: flex; align-items: center; gap: 6px; max-width: 520px; padding: 6px 6px 6px 18px; border-radius: 16px;
  background: #fff; border: 1.5px solid var(--c-line); box-shadow: var(--sh-1);
  transition: border-color var(--d-fast), box-shadow var(--d-base) var(--ease);
}
.hero-search:focus-within { border-color: var(--c-primary); box-shadow: var(--ring), var(--sh-1); }
.hero-search > .ic { color: var(--c-mut); font-size: 18px; }
.hero-search input { flex: 1; min-width: 0; border: 0; outline: none; background: none; font: 400 .9375rem var(--font); color: var(--c-text); padding: 10px 4px; }
.hero-search input::placeholder { color: #A39DB5; }
.hero-search .btn { padding: 12px 18px; }

.hero-trust { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 26px; }
.hero-trust li { display: flex; align-items: center; gap: 8px; font-size: .8125rem; color: var(--c-text); font-weight: 500; }
.hero-trust .ic { color: var(--c-success); font-size: 17px; }
.hero-trust { list-style: none; padding: 0; margin-bottom: 0; }

/* ---- Composition visuelle ---- */
.hero-stage { position: relative; aspect-ratio: 1 / .9; max-width: 600px; width: 100%; margin-left: auto; }
.stage-bg {
  position: absolute; inset: 6% 0 4% 10%; border-radius: 36px;
  background: linear-gradient(150deg, #EFE8FC 0%, #E3D7F8 55%, #F5DCD6 100%);
}
.stage-bg::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; opacity: .55;
  background-image: radial-gradient(rgba(53,35,79,.16) 1px, transparent 1.4px); background-size: 18px 18px;
  -webkit-mask-image: linear-gradient(140deg, transparent 35%, #000 100%); mask-image: linear-gradient(140deg, transparent 35%, #000 100%);
}
.stage-orb { position: absolute; border-radius: 50%; pointer-events: none; }
.stage-orb--coral { width: 34%; aspect-ratio: 1; right: -4%; top: -2%; background: radial-gradient(circle at 35% 35%, #F2B8AE, var(--c-coral)); opacity: .85; }
.stage-orb--violet { width: 14%; aspect-ratio: 1; left: 4%; bottom: 10%; background: radial-gradient(circle at 35% 35%, #9C7BE6, var(--c-primary)); opacity: .9; }

.stage-photo {
  position: absolute; right: 4%; top: 10%; width: 54%; aspect-ratio: 4 / 5; border-radius: 28px; overflow: hidden;
  box-shadow: var(--sh-3); background: var(--c-lav-2);
}
.stage-photo img { width: 100%; height: 100%; object-fit: cover; }

.laptop { position: absolute; left: 0; right: 3%; top: 17%; filter: drop-shadow(0 34px 40px rgba(53,35,79,.28)); }
.hero-stage.has-photo .laptop { right: 30%; top: 40%; left: 0; }
.laptop-screen { background: #1E1730; border-radius: 16px 16px 6px 6px; padding: 3.2% 3.2% 2.6%; position: relative; }
.laptop-screen::before { content: ""; position: absolute; top: 1.3%; left: 50%; width: 5px; height: 5px; border-radius: 50%; background: #3A3150; transform: translateX(-50%); }
.laptop-screen img { width: 100%; aspect-ratio: 1200 / 799; object-fit: cover; object-position: left top; border-radius: 6px; background: #fff; }
.laptop-base { height: 14px; margin: 0 -7%; border-radius: 2px 2px 14px 14px; background: linear-gradient(#E9E4F1, #CFC7DD); position: relative; }
.laptop-base::before { content: ""; position: absolute; left: 50%; top: 0; width: 16%; height: 5px; transform: translateX(-50%); border-radius: 0 0 6px 6px; background: #BDB3CE; }

.float-card {
  position: absolute; background: rgba(255,255,255,.96); border-radius: 16px; padding: 12px 14px;
  box-shadow: 0 18px 40px -14px rgba(53,35,79,.35); border: 1px solid rgba(255,255,255,.8); z-index: 3;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.float-card .float-inner { animation: floatY 6s ease-in-out infinite; }
.float-card--course { left: -2%; top: 2%; display: flex; align-items: center; gap: 12px; max-width: 270px; }
.float-card--course img, .float-card--course .thumb { width: 52px; height: 52px; border-radius: 12px; object-fit: cover; flex-shrink: 0; background: linear-gradient(135deg, var(--c-brand), var(--c-coral)); }
.float-card--course .t { font-size: .8125rem; font-weight: 600; color: var(--c-deep); line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.float-card--course .p { font-size: .75rem; color: var(--c-coral-ink); font-weight: 700; margin-top: 2px; }
.float-card--progress { right: -2%; bottom: 14%; width: 210px; }
.float-card--progress .row { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.float-card--progress .row .icon-tile { width: 34px; height: 34px; border-radius: 10px; font-size: 17px; background: var(--c-success-bg); color: var(--c-success); }
.float-card--progress .t { font-size: .8125rem; font-weight: 600; color: var(--c-deep); line-height: 1.25; }
.float-card--progress .s { font-size: .6875rem; color: var(--c-mut); }
.float-card--progress .track { height: 6px; border-radius: 6px; background: var(--c-lav); overflow: hidden; }
.float-card--progress .track i { display: block; height: 100%; width: 72%; border-radius: inherit; background: linear-gradient(90deg, var(--c-primary), var(--c-coral)); transform-origin: left; animation: barGrow 1.4s var(--ease) 1.1s both; }
@keyframes barGrow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.float-card--skills { left: 6%; bottom: -2%; }
.float-card--skills .lbl { font-size: .6875rem; font-weight: 600; color: var(--c-mut); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 8px; }
.float-card--skills .icons { display: flex; gap: 6px; }
.float-card--skills .sk { width: 36px; height: 36px; border-radius: 10px; background: var(--c-lav); display: grid; place-items: center; font-size: 18px; }
.float-card--skills .sk img { width: 22px; height: 22px; object-fit: contain; }
.float-chip {
  position: absolute; right: 8%; top: 4%; z-index: 3; display: inline-flex; align-items: center; gap: 8px;
  background: var(--c-deep); color: #fff; font-size: .75rem; font-weight: 600; padding: 9px 14px; border-radius: var(--r-pill);
  box-shadow: 0 14px 30px -12px rgba(53,35,79,.6);
}
.float-chip .ic { color: #F2B8AE; }
.float-card--course .float-inner, .float-card--course { animation-delay: 0s; }
.float-card--progress .float-inner { animation-delay: -2s; }
.float-card--skills .float-inner { animation-delay: -4s; }

/* ============ BANDEAU AVANTAGES ============ */
.benefits { position: relative; margin-top: calc(clamp(72px, 9vw, 112px) * -0.55); z-index: 2; }
.benefits-bar {
  display: grid; grid-template-columns: repeat(4, 1fr); background: #fff; border-radius: var(--r-xl);
  border: 1px solid var(--c-line); box-shadow: var(--sh-2); padding: 8px;
}
.benefit { display: flex; align-items: center; gap: 14px; padding: 18px 20px; position: relative; border-radius: var(--r-lg); transition: background-color var(--d-base); }
.benefit:hover { background: var(--c-bg); }
.benefit + .benefit::before { content: ""; position: absolute; left: 0; top: 22%; bottom: 22%; width: 1px; background: var(--c-line); }
.benefit:hover .icon-tile { transform: translateY(-2px) rotate(-6deg); }
.benefit h3 { font-size: .9375rem; font-weight: 600; margin-bottom: 2px; }
.benefit p { font-size: .75rem; color: var(--c-mut); line-height: 1.45; }

/* ============ SÉANCE LIVE ============ */
.seance {
  position: relative; display: grid; grid-template-columns: auto 1fr auto; gap: 24px; align-items: center;
  padding: 22px 26px; border-radius: var(--r-xl); background: linear-gradient(120deg, var(--c-deep), #4A2F78);
  color: rgba(255,255,255,.8); overflow: hidden; box-shadow: var(--sh-2);
}
.seance::after { content: ""; position: absolute; right: -80px; top: -120px; width: 320px; height: 320px; border-radius: 50%; background: radial-gradient(circle, rgba(208,123,113,.35), transparent 65%); pointer-events: none; }
.seance > * { position: relative; z-index: 1; }
.seance-photo { width: 92px; height: 92px; border-radius: 18px; background: rgba(255,255,255,.1) center / cover no-repeat; border: 3px solid rgba(255,255,255,.18); }
.seance .live { display: inline-flex; align-items: center; gap: 8px; font-size: .6875rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #F7C6BE; margin-bottom: 6px; }
.seance .live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #FF7A6B; box-shadow: 0 0 0 0 rgba(255,122,107,.6); animation: livePulse 2s ease-out infinite; }
@keyframes livePulse { 0% { box-shadow: 0 0 0 0 rgba(255,122,107,.6); } 100% { box-shadow: 0 0 0 10px rgba(255,122,107,0); } }
.seance h3 { color: #fff; font-size: 1.125rem; margin-bottom: 4px; }
.seance .sub { font-size: .8125rem; max-width: 560px; }
.seance-side { display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.countdown { display: flex; gap: 6px; }
.countdown .unit { min-width: 54px; text-align: center; background: rgba(255,255,255,.1); border-radius: 12px; padding: 8px 6px; }
.countdown .unit b { display: block; color: #fff; font-size: 1.25rem; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; }
.countdown .unit span { display: block; font-size: .5625rem; text-transform: uppercase; letter-spacing: .08em; margin-top: 4px; }
.countdown .now { color: #fff; font-weight: 700; }
.seance-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.seance .btn--ghost-light { --btn-bg: rgba(255,255,255,.1); --btn-fg: #fff; --btn-bd: rgba(255,255,255,.2); }
.seance .btn--ghost-light:hover { --btn-bg: rgba(255,255,255,.18); transform: translateY(-2px); }

/* ============ CATALOGUE ============ */
.catalog-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.catalog-search { position: relative; width: min(320px, 100%); }
.catalog-search .ic { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--c-mut); font-size: 17px; pointer-events: none; }
.catalog-search input { padding-left: 42px; border-radius: var(--r-pill); }
.course-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.course-card { display: flex; flex-direction: column; overflow: hidden; height: 100%; }
.course-card[hidden] { display: none; }
.course-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: linear-gradient(135deg, var(--c-brand), var(--c-coral)); }
.course-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.course-card:hover .course-media img { transform: scale(1.06); }
.course-media .ph { width: 100%; height: 100%; display: grid; place-items: center; color: rgba(255,255,255,.85); font-size: 40px; }
.course-media .badges { position: absolute; top: 12px; left: 12px; display: flex; gap: 6px; flex-wrap: wrap; }
.course-body { display: flex; flex-direction: column; flex: 1; padding: 18px 18px 18px; }
.course-level { font-size: .6875rem; font-weight: 600; color: var(--c-primary); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 8px; }
.course-card h3 {
  font-size: var(--fs-h3); font-weight: 600; line-height: 1.35; margin-bottom: 12px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.7em;
}
.teacher { display: flex; align-items: center; gap: 9px; font-size: .8125rem; color: var(--c-mut); margin-bottom: 14px; min-width: 0; }
.teacher .av {
  width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0;
  background: linear-gradient(135deg, var(--c-primary), var(--c-coral)); color: #fff; font-size: .6875rem; font-weight: 700;
}
.teacher span:last-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.course-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .75rem; color: var(--c-mut); padding-bottom: 14px; margin-bottom: 14px; border-bottom: 1px dashed var(--c-line-strong); }
.course-meta span { display: inline-flex; align-items: center; gap: 5px; }
.course-meta .ic { font-size: 14px; }
.course-foot { margin-top: auto; display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; }
.price { font-size: 1.125rem; font-weight: 700; color: var(--c-deep); letter-spacing: -.01em; white-space: nowrap; }
.rating { display: inline-flex; align-items: center; gap: 4px; font-size: .75rem; font-weight: 600; color: var(--c-deep); margin-bottom: 2px; }
.rating .ic { color: var(--c-star); fill: var(--c-star); stroke: var(--c-star); font-size: 14px; }
.course-foot .btn { padding: 10px 14px; }
.catalog-empty { text-align: center; padding: 48px 20px; color: var(--c-mut); border: 1.5px dashed var(--c-line-strong); border-radius: var(--r-lg); background: #fff; }
.catalog-empty .ic { font-size: 28px; color: var(--c-primary); margin: 0 auto 10px; }
.catalog-more { text-align: center; margin-top: 32px; }

/* Fenêtre de détails */
.course-dialog {
  width: min(640px, calc(100vw - 32px)); max-height: calc(100vh - 32px); padding: 0; border: 0; border-radius: var(--r-xl);
  box-shadow: var(--sh-3); color: var(--c-text); overflow: hidden;
}
.course-dialog[open] { animation: dialogIn .4s var(--ease) both; display: flex; flex-direction: column; }
.course-dialog::backdrop { background: rgba(41,33,61,.5); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); animation: fadeOnly .3s ease both; }
@keyframes dialogIn { from { opacity: 0; transform: translateY(18px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes fadeOnly { from { opacity: 0; } to { opacity: 1; } }
.dlg-media { aspect-ratio: 16 / 7; background: linear-gradient(135deg, var(--c-brand), var(--c-coral)); position: relative; flex-shrink: 0; }
.dlg-media img { width: 100%; height: 100%; object-fit: cover; }
.dlg-close {
  position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; border-radius: 12px; border: 0; cursor: pointer;
  background: rgba(255,255,255,.95); color: var(--c-deep); display: grid; place-items: center; font-size: 18px;
  transition: transform var(--d-base) var(--ease), background-color var(--d-fast);
}
.dlg-close:hover { transform: rotate(90deg); }
.dlg-body { padding: 24px 28px 28px; overflow-y: auto; }
.dlg-body h2 { font-size: 1.375rem; margin: 6px 0 10px; }
.dlg-desc { color: var(--c-mut); font-size: .875rem; margin: 16px 0 22px; white-space: pre-line; }
.dlg-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 18px; border-top: 1px solid var(--c-line); flex-wrap: wrap; }
.dlg-foot .price { font-size: 1.5rem; }
.dlg-foot small { display: block; font-size: .75rem; color: var(--c-mut); font-weight: 500; }

/* ============ COMMENT ÇA MARCHE ============ */
.timeline { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; position: relative; counter-reset: step; }
.timeline::before, .timeline::after {
  content: ""; position: absolute; top: 31px; left: 12.5%; right: 12.5%; height: 2px; border-radius: 2px;
}
.timeline::before { background: var(--c-lav-2); }
.timeline::after { background: linear-gradient(90deg, var(--c-primary), var(--c-coral)); transform: scaleX(0); transform-origin: left; transition: transform 1.6s var(--ease) .2s; }
.timeline.is-in::after { transform: scaleX(1); }
.js .timeline:not(.is-in)::after { transform: scaleX(0); }
.tl-step { text-align: center; position: relative; padding: 0 6px; }
.tl-num {
  width: 64px; height: 64px; margin: 0 auto 20px; border-radius: 50%; display: grid; place-items: center; position: relative; z-index: 1;
  background: #fff; border: 2px solid var(--c-lav-2); color: var(--c-primary); font-size: 22px;
  box-shadow: 0 0 0 8px var(--c-bg);
  transition: border-color .5s var(--ease), background-color .5s var(--ease), color .5s, transform var(--d-base) var(--ease-spring);
  transition-delay: calc(var(--i, 0) * 260ms + 300ms);
}
.section--white .tl-num { box-shadow: 0 0 0 8px #fff; }
.tl-num .n {
  position: absolute; top: -4px; right: -4px; width: 24px; height: 24px; border-radius: 50%; background: var(--c-coral); color: #fff;
  font-size: .6875rem; font-weight: 700; display: grid; place-items: center; box-shadow: 0 0 0 3px #fff;
}
.timeline.is-in .tl-num { border-color: var(--c-primary); background: var(--c-primary); color: #fff; }
.tl-step:hover .tl-num { transform: translateY(-3px) scale(1.04); }
.tl-step h3 { font-size: 1rem; font-weight: 600; margin-bottom: 8px; }
.tl-step p { font-size: .8125rem; color: var(--c-mut); max-width: 240px; margin: 0 auto; }
.how-cta { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-top: 44px; }

/* ============ À PROPOS ============ */
.about-grid > *, .contact-grid > * { min-width: 0; }
.about-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.about-intro h2 { font-size: var(--fs-h2); margin-bottom: 16px; }
.about-intro > p { color: var(--c-mut); font-size: var(--fs-md); margin-bottom: 26px; }
.mission {
  position: relative; padding: 26px 26px 26px 28px; border-radius: var(--r-lg); background: var(--c-deep); color: rgba(255,255,255,.82); overflow: hidden;
}
.mission::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: linear-gradient(var(--c-coral), var(--c-primary)); }
.mission::after { content: ""; position: absolute; right: -60px; bottom: -80px; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(circle, rgba(208,123,113,.3), transparent 65%); }
.mission .eyebrow { color: #F2B8AE; margin-bottom: 10px; }
.mission p { position: relative; font-size: 1rem; line-height: 1.7; color: #fff; font-weight: 500; }
.about-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.why-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.why-card { padding: 22px; display: flex; gap: 16px; align-items: flex-start; }
.why-card h3 { font-size: .9375rem; font-weight: 600; margin-bottom: 4px; }
.why-card p { font-size: .8125rem; color: var(--c-mut); line-height: 1.55; }

/* ============ TÉMOIGNAGES ============ */
.testi-page { display: none; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.testi-page.active { display: grid; animation: loadIn .55s var(--ease) both; }
.testi-card { padding: 24px; display: flex; flex-direction: column; position: relative; }
.testi-card .quote { position: absolute; right: 20px; top: 14px; font-size: 64px; line-height: 1; color: var(--c-lav-2); font-family: Georgia, serif; }
.testi-card .stars { display: flex; gap: 2px; margin-bottom: 12px; color: var(--c-star); }
.testi-card .stars .ic { fill: currentColor; font-size: 15px; }
.testi-card .stars .off { color: var(--c-lav-2); }
.testi-card .tx { font-size: .875rem; color: var(--c-text); line-height: 1.7; flex: 1; margin-bottom: 18px; position: relative; }
.testi-card .who { display: flex; align-items: center; gap: 12px; padding-top: 16px; border-top: 1px solid var(--c-line); }
.testi-card .who img, .testi-card .who .av { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.testi-card .who .av { display: grid; place-items: center; background: linear-gradient(135deg, var(--c-primary), var(--c-coral)); color: #fff; font-weight: 700; }
.testi-card .nm { font-weight: 600; color: var(--c-deep); font-size: .875rem; }
.testi-card .rl { font-size: .75rem; color: var(--c-mut); }
.testi-dots { display: flex; gap: 8px; justify-content: center; margin-top: 28px; }
.testi-dots button { width: 10px; height: 10px; border-radius: var(--r-pill); border: 0; padding: 0; cursor: pointer; background: var(--c-lav-2); transition: width var(--d-base) var(--ease), background-color var(--d-base); }
.testi-dots button.active { width: 28px; background: var(--c-primary); }

/* ============ CONTACT ============ */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
.contact-intro h2 { font-size: var(--fs-h2); margin-bottom: 14px; }
.contact-intro > p { color: var(--c-mut); font-size: var(--fs-md); margin-bottom: 28px; }
.contact-list { display: grid; gap: 12px; }
.contact-item { display: flex; align-items: center; gap: 14px; padding: 16px 18px; color: inherit; }
.contact-item h3 { font-size: .875rem; font-weight: 600; margin-bottom: 2px; }
.contact-item p { font-size: .8125rem; color: var(--c-mut); }
.contact-item .go { margin-left: auto; color: var(--c-primary); transition: transform var(--d-base) var(--ease); }
.contact-item:hover .go { transform: translateX(4px); }
.contact-form { padding: clamp(22px, 3vw, 34px); }
.contact-form h3 { font-size: 1.125rem; margin-bottom: 4px; }
.contact-form > p { font-size: .8125rem; color: var(--c-mut); margin-bottom: 22px; }
.contact-form .btn { margin-top: 22px; }
.contact-form .alert { margin-top: 14px; }

/* ============ ASSISTANT (chatbot) ============ */
.chat-fab {
  position: fixed; bottom: 22px; right: 22px; z-index: 90; width: 58px; height: 58px; border-radius: 50%; border: 0; cursor: pointer;
  background: linear-gradient(135deg, var(--c-primary), var(--c-deep)); color: #fff; display: grid; place-items: center; font-size: 24px;
  box-shadow: 0 14px 30px -10px rgba(53,35,79,.6); transition: transform var(--d-base) var(--ease-spring);
}
.chat-fab:hover { transform: translateY(-3px) scale(1.04); }
.chat-fab[aria-expanded="true"] .ic-open { display: none; }
.chat-fab .ic-close { display: none; }
.chat-fab[aria-expanded="true"] .ic-close { display: block; }
.chat-panel {
  position: fixed; bottom: 92px; right: 22px; z-index: 90; width: 340px; max-width: calc(100vw - 32px); max-height: min(560px, 66vh);
  background: #fff; border-radius: var(--r-xl); box-shadow: var(--sh-3); display: flex; flex-direction: column; overflow: hidden;
  transform-origin: bottom right; opacity: 0; transform: translateY(12px) scale(.96); visibility: hidden; pointer-events: none;
  transition: opacity var(--d-base) var(--ease), transform var(--d-base) var(--ease), visibility 0s linear var(--d-base);
}
.chat-panel.open { opacity: 1; transform: none; visibility: visible; pointer-events: auto; transition: opacity var(--d-base) var(--ease), transform var(--d-base) var(--ease), visibility 0s; }
.chat-head { background: linear-gradient(135deg, var(--c-deep), #4A2F78); color: #fff; padding: 16px 18px; display: flex; align-items: center; justify-content: space-between; }
.chat-head .t { font-weight: 600; font-size: .9375rem; }
.chat-head .t small { display: block; font-weight: 400; font-size: .6875rem; opacity: .75; }
.chat-head button { background: rgba(255,255,255,.12); border: 0; color: #fff; width: 32px; height: 32px; border-radius: 10px; cursor: pointer; display: grid; place-items: center; }
.chat-body { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; background: var(--c-bg); }
.chat-bubble { max-width: 86%; padding: 10px 14px; border-radius: 16px; font-size: .8125rem; line-height: 1.55; animation: loadIn .35s var(--ease) both; }
.chat-bubble.bot { background: #fff; border: 1px solid var(--c-line); align-self: flex-start; border-bottom-left-radius: 4px; }
.chat-bubble.user { background: var(--c-primary); color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }
.chat-quick { display: flex; flex-direction: column; gap: 6px; }
.chat-quick button { background: #fff; border: 1.5px solid var(--c-line-strong); color: var(--c-deep); font: 500 .8125rem var(--font); padding: 9px 12px; border-radius: 12px; text-align: left; cursor: pointer; transition: border-color var(--d-fast), color var(--d-fast), transform var(--d-fast); }
.chat-quick button:hover { border-color: var(--c-primary); color: var(--c-primary); transform: translateX(2px); }
.chat-foot { padding: 12px 16px; border-top: 1px solid var(--c-line); }
.chat-foot a { font-size: .75rem; font-weight: 600; display: inline-flex; gap: 6px; align-items: center; }

/* ============ RESPONSIVE ============ */
@media (max-width: 1180px) {
  .course-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { max-width: 640px; }
  .hero-stage { margin: 8px auto 0; max-width: 560px; }
  .benefits { margin-top: -40px; }
  .benefits-bar { grid-template-columns: repeat(2, 1fr); }
  .benefit:nth-child(3)::before { display: none; }
  .course-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .testi-page { grid-template-columns: repeat(2, 1fr); }
  .seance { grid-template-columns: auto 1fr; }
  .seance-side { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; align-items: center; flex-wrap: wrap; }
}
@media (max-width: 760px) {
  .timeline { grid-template-columns: 1fr; gap: 0; max-width: 520px; margin: 0 auto; }
  .timeline::before, .timeline::after { top: 32px; bottom: 32px; left: 31px; right: auto; width: 2px; height: auto; }
  .timeline::after { transform: scaleY(0); transform-origin: top; }
  .timeline.is-in::after { transform: scaleY(1); }
  .js .timeline:not(.is-in)::after { transform: scaleY(0); }
  .tl-step { display: grid; grid-template-columns: 64px 1fr; gap: 0 18px; text-align: left; padding: 0 0 28px; }
  .tl-step:last-child { padding-bottom: 0; }
  .tl-num { margin: 0; grid-row: span 2; }
  .tl-step h3 { align-self: end; margin-top: 8px; }
  .tl-step p { margin: 0; max-width: none; }
}
@media (max-width: 640px) {
  .hero { padding-top: 20px; }
  .hero-ctas .btn { flex: 1 1 auto; }
  .hero-search { padding-left: 14px; }
  .hero-search .btn span { display: none; }
  .hero-search .btn { padding: 12px 14px; }
  .hero-trust { gap: 8px 16px; }
  .hero-stage { aspect-ratio: 1 / .95; }
  .float-card--course { max-width: 200px; padding: 10px; gap: 10px; }
  .float-card--course img, .float-card--course .thumb { width: 40px; height: 40px; }
  .float-card--progress { width: 170px; right: 0; bottom: 10%; padding: 10px 12px; }
  .float-card--skills { display: none; }
  .float-chip { top: auto; bottom: 0; right: auto; left: 4%; }
  .benefits-bar { grid-template-columns: 1fr; padding: 6px; }
  .benefit { padding: 14px 16px; }
  .benefit + .benefit::before { left: 16px; right: 16px; top: 0; bottom: auto; width: auto; height: 1px; }
  .benefit:nth-child(3)::before { display: block; }
  .catalog-toolbar { flex-direction: column; align-items: stretch; flex-wrap: nowrap; }
  .catalog-toolbar > * { min-width: 0; }
  .chips { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(var(--gutter) * -1); padding: 2px var(--gutter) 6px; scrollbar-width: none; }
  .chips::-webkit-scrollbar { display: none; }
  .chip { flex-shrink: 0; }
  .catalog-search { width: 100%; }
  .why-grid { grid-template-columns: 1fr; }
  .testi-page { grid-template-columns: 1fr; }
  .seance { grid-template-columns: 1fr; text-align: left; padding: 20px; }
  .seance-photo { width: 64px; height: 64px; border-radius: 14px; }
  .seance-side { flex-direction: column; align-items: stretch; }
  .countdown .unit { flex: 1; min-width: 0; }
  .seance-actions { justify-content: stretch; }
  .seance-actions .btn { flex: 1; }
  .dlg-body { padding: 20px; }
  .chat-panel { right: 16px; bottom: 86px; }
  .chat-fab { right: 16px; bottom: 16px; }
}
@media (max-width: 480px) {
  .course-grid { grid-template-columns: 1fr; }
}
@media (min-width: 481px) and (max-width: 640px) {
  .course-grid { gap: 14px; }
  .course-body { padding: 14px; }
  .course-foot { flex-direction: column; align-items: stretch; }
  .course-foot .btn { width: 100%; }
}

/* ============ AMÉLIORATIONS UX ============ */
/* Carte formation entièrement cliquable (le bouton « Détails » couvre la carte) */
.course-card { position: relative; }
.course-card .card-link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.course-card:has(.card-link:focus-visible) { box-shadow: var(--ring), var(--sh-2); }
.course-card .card-link:focus-visible { box-shadow: none; }
.course-card:hover .card-link { --btn-bg: var(--c-primary-hover); }

/* Visuel de remplacement : initiales de la formation plutôt qu'une icône identique partout */
.course-media .ph span { font-size: 2.6rem; font-weight: 700; letter-spacing: -.03em; color: rgba(255,255,255,.92); text-shadow: 0 6px 24px rgba(0,0,0,.18); transition: transform .7s var(--ease); }
.course-card:hover .course-media .ph span { transform: scale(1.08); }
.course-media:has(.ph[data-tone="1"]) { background: linear-gradient(135deg, #6338C4, #B07CE0); }
.course-media:has(.ph[data-tone="2"]) { background: linear-gradient(135deg, #35234F, #6338C4); }
.course-media:has(.ph[data-tone="3"]) { background: linear-gradient(135deg, #B05A50, #E9A23B); }

/* FAQ */
.faq-wrap { max-width: 820px; }
.faq { display: grid; gap: 12px; }
.faq details { background: #fff; border: 1px solid var(--c-line); border-radius: var(--r-lg); transition: border-color var(--d-base), box-shadow var(--d-base); }
.faq details[open] { border-color: var(--c-lav-2); box-shadow: var(--sh-1); }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px; font-weight: 600; color: var(--c-deep); border-radius: inherit; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--c-primary); }
.faq summary:focus-visible { outline: none; box-shadow: var(--ring); }
.faq .faq-ic { flex-shrink: 0; color: var(--c-primary); transition: transform var(--d-base) var(--ease); }
.faq details[open] .faq-ic { transform: rotate(90deg); }
.faq details p { padding: 0 22px 20px; color: var(--c-mut); line-height: 1.65; }

/* Témoignages juste après le catalogue : on resserre l'espace */
#temoignages { padding-top: 0; }

@media (max-width: 640px) {
  /* Visuel du hero plus compact : le catalogue arrive plus vite */
  .hero-stage { max-width: 420px; }
  .float-card--skills { display: none; }
  .hero-ctas .btn--tertiary { flex: 0 0 100%; }
  .faq summary { padding: 16px 18px; }
  .faq details p { padding: 0 18px 18px; }
}
