/* WARAP Academy — Page styles
 * Extracted from academy.html inline <style> for cacheability (1 mo via mod_expires)
 * Keep in sync with academy.html critical inline (header + hero only)
 */

*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
body{font-family:'Inter',system-ui,-apple-system,sans-serif;color:#0f172a;background:#f8fafc;-webkit-font-smoothing:antialiased;overflow-x:hidden}
.header{position:fixed;top:0;left:0;right:0;z-index:300;background:rgba(255,255,255,0.72);backdrop-filter:blur(20px) saturate(180%);-webkit-backdrop-filter:blur(20px) saturate(180%);border-bottom:1px solid rgba(255,255,255,0.2)}
.container{max-width:1200px;margin:0 auto;padding:0 1rem}
.skeleton{background:linear-gradient(90deg,#e2e8f0 25%,#f1f5f9 50%,#e2e8f0 75%);background-size:468px 100%;animation:shimmer 1.5s infinite linear;border-radius:10px}
@keyframes shimmer{0%{background-position:-468px 0}100%{background-position:468px 0}}
@keyframes fadeInUp{from{opacity:0;transform:translateY(20px)}to{opacity:1;transform:translateY(0)}}

/* ===== ACADEMY HERO (Mobile-first) ===== */
.academy-hero{position:relative;padding:calc(64px + 2rem) 0 2.5rem;background:linear-gradient(135deg,#312e81 0%,#4f46e5 30%,#6366f1 60%,#818cf8 100%);overflow:hidden;text-align:center}
.academy-hero::before{content:'';position:absolute;inset:0;background-image:radial-gradient(rgba(255,255,255,0.06) 1px,transparent 1px);background-size:20px 20px}
.academy-hero .container{position:relative;z-index:1}
.academy-hero-badge{display:inline-flex;align-items:center;gap:.5rem;padding:.375rem .875rem;background:rgba(255,255,255,0.12);border:1px solid rgba(255,255,255,0.2);border-radius:100px;color:rgba(255,255,255,0.9);font-size:.75rem;font-weight:600;letter-spacing:.02em;margin-bottom:1rem}
.academy-hero h1{font-family:'Inter',system-ui,sans-serif;font-size:1.75rem;font-weight:800;color:#fff;line-height:1.15;margin-bottom:.75rem}
.academy-hero h1 .highlight{background:linear-gradient(135deg,#fbbf24,#f59e0b);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text}
.academy-hero p{font-size:.9375rem;color:rgba(255,255,255,0.8);max-width:520px;margin:0 auto 1.5rem;line-height:1.6}
.academy-hero-stats{display:flex;justify-content:center;gap:1.5rem;flex-wrap:wrap}
.academy-hero-stat{text-align:center}
.academy-hero-stat strong{display:block;font-size:1.25rem;font-weight:800;color:#fff}
.academy-hero-stat span{font-size:.75rem;color:rgba(255,255,255,0.7)}

/* ===== CATEGORY FILTER PILLS (Mobile-first) ===== */
.filter-section{padding:1.25rem 0;background:#fff;border-bottom:1px solid #e2e8f0;position:sticky;top:64px;z-index:90}
.filter-scroll{display:flex;gap:.5rem;overflow-x:auto;-webkit-overflow-scrolling:touch;scrollbar-width:none;padding-bottom:2px}
.filter-scroll::-webkit-scrollbar{display:none}
.filter-pill{flex-shrink:0;padding:.5rem 1rem;border-radius:100px;font-size:.8125rem;font-weight:600;border:1.5px solid #e2e8f0;background:#fff;color:#475569;cursor:pointer;white-space:nowrap;transition:all .2s ease;text-decoration:none}
.filter-pill:hover{border-color:#4f46e5;color:#4f46e5}
.filter-pill.active,.filter-pill[aria-checked="true"]{background:#4f46e5;color:#fff;border-color:#4f46e5}
.filter-pill:focus-visible{outline:3px solid #818cf8;outline-offset:2px}

/* ===== COURSES GRID (Mobile-first: 1 col) ===== */
.courses-section{padding:2rem 0 3rem}
.courses-section .section-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:1.25rem;flex-wrap:wrap;gap:.5rem}
.courses-section .section-title{display:flex;align-items:center;gap:.5rem;font-size:1.125rem;font-weight:700;color:#0f172a}
.courses-grid{display:grid;grid-template-columns:1fr;gap:1rem}
.course-card{background:#fff;border-radius:12px;overflow:hidden;border:1px solid #e2e8f0;transition:all .3s ease;text-decoration:none;color:inherit;display:flex;flex-direction:column}
.course-card:hover{transform:translateY(-2px);box-shadow:0 8px 25px rgba(0,0,0,0.08);border-color:#c7d2fe}
.course-thumb{position:relative;width:100%;padding-top:56.25%;background:#e2e8f0;overflow:hidden}
.course-thumb img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.course-badge{position:absolute;top:.625rem;left:.625rem;padding:.25rem .625rem;border-radius:6px;font-size:.6875rem;font-weight:700;letter-spacing:.03em;text-transform:uppercase}
.course-badge.gratuit{background:#dcfce7;color:#15803d}
.course-badge.premium{background:linear-gradient(135deg,#fef3c7,#fde68a);color:#92400e}
.course-badge.nouveau{background:#e0e7ff;color:#4338ca}
.course-body{padding:1rem;flex:1;display:flex;flex-direction:column}
.course-category{font-size:.6875rem;font-weight:600;color:#6366f1;text-transform:uppercase;letter-spacing:.05em;margin-bottom:.375rem}
.course-title{font-size:.9375rem;font-weight:700;color:#0f172a;line-height:1.35;margin-bottom:.5rem;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.course-instructor{display:flex;align-items:center;gap:.5rem;margin-bottom:.625rem}
.course-instructor-avatar{width:24px;height:24px;border-radius:50%;background:#e2e8f0;overflow:hidden;flex-shrink:0}
.course-instructor-avatar img{width:100%;height:100%;object-fit:cover}
.course-instructor-name{font-size:.75rem;color:#64748b}
.course-meta{display:flex;align-items:center;gap:.75rem;margin-bottom:.75rem;flex-wrap:wrap}
.course-rating{display:flex;align-items:center;gap:.25rem;font-size:.75rem;font-weight:600;color:#f59e0b}
.course-students{display:flex;align-items:center;gap:.25rem;font-size:.75rem;color:#64748b}
.course-footer{margin-top:auto;padding-top:.75rem;border-top:1px solid #f1f5f9;display:flex;align-items:center;justify-content:space-between}
.course-price{font-size:1rem;font-weight:800;color:#4f46e5}
.course-price .original{font-size:.75rem;color:#94a3b8;text-decoration:line-through;margin-left:.375rem;font-weight:500}
.course-price.free{color:#15803d}
.course-cta{padding:.375rem .875rem;border-radius:8px;background:#4f46e5;color:#fff;font-size:.75rem;font-weight:600;border:none;cursor:pointer;text-decoration:none;transition:background .2s}
.course-cta:hover{background:#4338ca}

/* ===== FEATURED SECTION ===== */
.featured-section{padding:2.5rem 0;background:linear-gradient(135deg,#eef2ff,#e0e7ff)}
.featured-section .section-header{text-align:center;margin-bottom:1.5rem}
.featured-section .section-title{font-size:1.25rem;font-weight:800;color:#0f172a;justify-content:center}
.featured-grid{display:grid;grid-template-columns:1fr;gap:1rem}
.featured-card{background:#fff;border-radius:16px;overflow:hidden;border:2px solid #c7d2fe;display:flex;flex-direction:column}
.featured-card .course-badge{background:linear-gradient(135deg,#fbbf24,#f59e0b);color:#fff}

/* ===== BECOME INSTRUCTOR CTA ===== */
.instructor-cta{padding:3rem 0;background:linear-gradient(135deg,#312e81 0%,#4f46e5 50%,#6366f1 100%);text-align:center;position:relative;overflow:hidden}
.instructor-cta::before{content:'';position:absolute;inset:0;background-image:radial-gradient(rgba(255,255,255,0.06) 1px,transparent 1px);background-size:24px 24px}
.instructor-cta .container{position:relative;z-index:1}
.instructor-cta h2{font-size:1.5rem;font-weight:800;color:#fff;margin-bottom:.75rem}
.instructor-cta p{font-size:.9375rem;color:rgba(255,255,255,0.8);max-width:480px;margin:0 auto 1.5rem;line-height:1.6}
.instructor-cta-features{display:flex;flex-direction:column;gap:.75rem;max-width:320px;margin:0 auto 1.5rem;text-align:left}
.instructor-cta-feature{display:flex;align-items:center;gap:.625rem;color:rgba(255,255,255,0.9);font-size:.875rem}
.instructor-cta-feature svg{flex-shrink:0;color:#fbbf24}
.btn-gold{display:inline-flex;align-items:center;gap:.5rem;padding:.75rem 1.5rem;background:linear-gradient(135deg,#f59e0b,#fbbf24);color:#0f172a;font-size:.9375rem;font-weight:700;border-radius:12px;border:none;cursor:pointer;text-decoration:none;transition:all .3s ease;box-shadow:0 4px 15px rgba(245,158,11,0.3)}
.btn-gold:hover{transform:translateY(-2px);box-shadow:0 6px 25px rgba(245,158,11,0.4)}

/* ===== SKELETON LOADER ===== */
.course-skeleton{background:#fff;border-radius:12px;overflow:hidden;border:1px solid #e2e8f0}
.course-skeleton .skeleton-thumb{width:100%;padding-top:56.25%}
.course-skeleton .skeleton-body{padding:1rem}
.course-skeleton .skeleton-line{height:12px;margin-bottom:.625rem;border-radius:6px}
.course-skeleton .skeleton-line.w60{width:60%}
.course-skeleton .skeleton-line.w80{width:80%}
.course-skeleton .skeleton-line.w40{width:40%}

/* ===== RESPONSIVE: Tablet (640px+) ===== */
@media(min-width:640px){
  .academy-hero h1{font-size:2.25rem}
  .academy-hero p{font-size:1rem}
  .academy-hero-stat strong{font-size:1.5rem}
  .courses-grid,.featured-grid{grid-template-columns:repeat(2,1fr);gap:1.25rem}
  .instructor-cta h2{font-size:1.75rem}
  .instructor-cta-features{flex-direction:row;max-width:none;justify-content:center;flex-wrap:wrap;gap:1rem}
}

/* ===== RESPONSIVE: Desktop (1024px+) ===== */
@media(min-width:1024px){
  .academy-hero{padding:calc(64px + 3.5rem) 0 3.5rem}
  .academy-hero h1{font-size:2.75rem}
  .academy-hero p{font-size:1.0625rem}
  .academy-hero-stats{gap:2.5rem}
  .academy-hero-stat strong{font-size:1.75rem}
  .courses-grid,.featured-grid{grid-template-columns:repeat(3,1fr);gap:1.5rem}
  .courses-section{padding:3rem 0 4rem}
  .instructor-cta{padding:4rem 0}
  .instructor-cta h2{font-size:2rem}
}

/* ===== COURSE DETAIL VIEW ===== */
.course-detail-view{display:none;padding:calc(64px + 2rem) 0 3rem}
.course-detail-view.active{display:block}
.course-detail-back{display:inline-flex;align-items:center;gap:.5rem;font-size:.875rem;font-weight:600;color:#4f46e5;text-decoration:none;margin-bottom:1.5rem;cursor:pointer;transition:color .2s}
.course-detail-back:hover{color:#4338ca}
.course-detail-header{display:grid;grid-template-columns:1fr;gap:1.5rem;margin-bottom:2rem}
.course-detail-thumb{position:relative;width:100%;padding-top:56.25%;border-radius:16px;overflow:hidden;background:#e2e8f0}
.course-detail-thumb img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.course-detail-thumb .no-image{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;background:linear-gradient(135deg,#e0e7ff,#c7d2fe)}
.course-detail-info h1{font-size:1.5rem;font-weight:800;color:#0f172a;line-height:1.25;margin-bottom:.75rem}
.course-detail-info .course-detail-desc{font-size:.9375rem;color:#475569;line-height:1.65;margin-bottom:1rem}
.course-detail-meta{display:flex;flex-wrap:wrap;gap:1rem;margin-bottom:1.25rem}
.course-detail-meta-item{display:flex;align-items:center;gap:.375rem;font-size:.8125rem;color:#64748b}
.course-detail-meta-item svg{flex-shrink:0;color:#94a3b8}
.course-detail-meta-item strong{color:#0f172a;font-weight:600}
.course-detail-level{display:inline-flex;align-items:center;gap:.375rem;padding:.25rem .75rem;border-radius:100px;font-size:.75rem;font-weight:600;text-transform:capitalize}
.course-detail-level.beginner{background:#dcfce7;color:#15803d}
.course-detail-level.intermediate{background:#fef3c7;color:#92400e}
.course-detail-level.advanced{background:#fee2e2;color:#991b1b}
.course-detail-level.expert{background:#ede9fe;color:#5b21b6}
.course-detail-actions{display:flex;flex-wrap:wrap;gap:.75rem;margin-top:1.25rem}
.btn-enroll{display:inline-flex;align-items:center;justify-content:center;gap:.5rem;padding:.75rem 1.5rem;border-radius:12px;font-size:.9375rem;font-weight:700;border:none;cursor:pointer;transition:all .3s;text-decoration:none}
.btn-enroll.primary{background:linear-gradient(135deg,#4f46e5,#6366f1);color:#fff;box-shadow:0 4px 15px rgba(79,70,229,0.3)}
.btn-enroll.primary:hover{transform:translateY(-2px);box-shadow:0 6px 25px rgba(79,70,229,0.4)}
.btn-enroll.free{background:linear-gradient(135deg,#15803d,#22c55e);color:#fff;box-shadow:0 4px 15px rgba(21,128,61,0.3)}
.btn-enroll.free:hover{transform:translateY(-2px);box-shadow:0 6px 25px rgba(21,128,61,0.4)}
.btn-enroll.enrolled{background:#e0e7ff;color:#4f46e5;cursor:default}
.course-detail-price{font-size:1.5rem;font-weight:800;color:#4f46e5}
.course-detail-price.free{color:#15803d}
.course-detail-price .original{font-size:.875rem;color:#94a3b8;text-decoration:line-through;margin-left:.5rem;font-weight:500}

/* ===== MODULES ACCORDION ===== */
.modules-section{margin-top:2rem}
.modules-section h2{font-size:1.125rem;font-weight:700;color:#0f172a;margin-bottom:1rem;display:flex;align-items:center;gap:.5rem}
.module-accordion{border:1px solid #e2e8f0;border-radius:12px;overflow:hidden;margin-bottom:.75rem;background:#fff}
.module-header{display:flex;align-items:center;justify-content:space-between;padding:1rem 1.25rem;cursor:pointer;transition:background .2s;gap:.75rem}
.module-header:hover{background:#f8fafc}
.module-header-left{display:flex;align-items:center;gap:.75rem;flex:1;min-width:0}
.module-number{width:28px;height:28px;border-radius:8px;background:#e0e7ff;color:#4f46e5;font-size:.75rem;font-weight:700;display:flex;align-items:center;justify-content:center;flex-shrink:0}
.module-title{font-size:.875rem;font-weight:600;color:#0f172a;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.module-lesson-count{font-size:.75rem;color:#94a3b8;flex-shrink:0}
.module-chevron{width:20px;height:20px;color:#94a3b8;transition:transform .3s;flex-shrink:0}
.module-accordion.open .module-chevron{transform:rotate(180deg)}
.module-lessons{display:none;border-top:1px solid #e2e8f0}
.module-accordion.open .module-lessons{display:block}
.lesson-item{display:flex;align-items:center;gap:.75rem;padding:.75rem 1.25rem .75rem 3.25rem;border-bottom:1px solid #f1f5f9;transition:background .2s;font-size:.8125rem;color:#475569}
.lesson-item:last-child{border-bottom:none}
.lesson-item:hover{background:#f8fafc}
.lesson-icon{width:18px;height:18px;color:#94a3b8;flex-shrink:0}
.lesson-title{flex:1;min-width:0}

/* ===== COURSE DETAIL SKELETON ===== */
.course-detail-skeleton{padding:calc(64px + 2rem) 0 3rem}
.course-detail-skeleton .skeleton-back{width:120px;height:16px;margin-bottom:1.5rem}
.course-detail-skeleton .skeleton-hero{width:100%;padding-top:56.25%;margin-bottom:1.5rem}
.course-detail-skeleton .skeleton-title{width:80%;height:24px;margin-bottom:1rem}
.course-detail-skeleton .skeleton-desc{width:100%;height:60px;margin-bottom:1rem}
.course-detail-skeleton .skeleton-meta{display:flex;gap:1rem;margin-bottom:1rem}
.course-detail-skeleton .skeleton-meta-item{width:100px;height:16px}

@media(min-width:640px){
  .course-detail-info h1{font-size:1.75rem}
}
@media(min-width:1024px){
  .course-detail-header{grid-template-columns:1.2fr 1fr;gap:2rem}
  .course-detail-info h1{font-size:2rem}
  .course-detail-thumb{padding-top:0;min-height:340px}
}

/* ===== HERO CTA BUTTONS ===== */
.academy-hero-cta{display:flex;flex-direction:column;gap:.75rem;justify-content:center;align-items:center;margin-top:1.75rem;flex-wrap:wrap}
.hero-btn-primary{display:inline-flex;align-items:center;gap:.5rem;padding:.875rem 1.75rem;background:linear-gradient(135deg,#fbbf24,#f59e0b);color:#0f172a;font-size:.9375rem;font-weight:700;border-radius:12px;text-decoration:none;box-shadow:0 6px 20px rgba(245,158,11,0.35);transition:all .3s ease;border:none;cursor:pointer}
.hero-btn-primary:hover{transform:translateY(-2px);box-shadow:0 10px 30px rgba(245,158,11,0.45)}
.hero-btn-secondary{display:inline-flex;align-items:center;gap:.5rem;padding:.875rem 1.5rem;background:rgba(255,255,255,0.1);color:#fff;font-size:.9375rem;font-weight:600;border-radius:12px;text-decoration:none;border:1.5px solid rgba(255,255,255,0.25);transition:all .2s ease;backdrop-filter:blur(8px)}
.hero-btn-secondary:hover{background:rgba(255,255,255,0.18);border-color:rgba(255,255,255,0.4)}
@media(min-width:640px){.academy-hero-cta{flex-direction:row}}

/* ===== SECTION HEADERS REUTILISABLES ===== */
.section-eyebrow{display:inline-block;font-size:.75rem;font-weight:700;text-transform:uppercase;letter-spacing:.08em;color:#4f46e5;margin-bottom:.5rem;padding:.25rem .75rem;background:#e0e7ff;border-radius:100px}
.why-section .section-header,
.bundles-section .section-header,
.testimonials-section .section-header,
.faq-section .section-header{display:block;text-align:center;margin-bottom:2rem}

/* ===== POURQUOI WARAP (why-section) ===== */
.why-section{padding:3rem 0;background:#fff;border-bottom:1px solid #e2e8f0}
.why-title{font-size:1.5rem;font-weight:800;color:#0f172a;margin-bottom:.5rem;line-height:1.25}
.why-subtitle{font-size:.9375rem;color:#475569;max-width:600px;margin:0 auto;line-height:1.6}
.why-grid{display:grid;grid-template-columns:1fr;gap:1rem;margin-top:1.5rem}
.why-card{background:#fff;border:1px solid #e2e8f0;border-radius:14px;padding:1.5rem;transition:all .3s ease}
.why-card:hover{transform:translateY(-3px);box-shadow:0 12px 30px rgba(0,0,0,0.08);border-color:#c7d2fe}
.why-icon{width:48px;height:48px;border-radius:12px;display:flex;align-items:center;justify-content:center;margin-bottom:1rem}
.why-card h3{font-size:1rem;font-weight:700;color:#0f172a;margin-bottom:.5rem}
.why-card p{font-size:.875rem;color:#64748b;line-height:1.6}
@media(min-width:640px){.why-grid{grid-template-columns:repeat(2,1fr);gap:1.25rem}.why-title{font-size:1.875rem}}
@media(min-width:1024px){.why-grid{grid-template-columns:repeat(3,1fr);gap:1.5rem}.why-section{padding:4rem 0}.why-title{font-size:2.125rem}}

/* ===== PARCOURS CERTIFIANTS (bundles-section) ===== */
.bundles-section{padding:3rem 0;background:linear-gradient(180deg,#fff8eb,#fef3c7)}
.bundles-title{font-size:1.5rem;font-weight:800;color:#0f172a;margin-bottom:.5rem}
.bundles-subtitle{font-size:.9375rem;color:#475569;max-width:600px;margin:0 auto;line-height:1.6}
.bundles-grid{display:grid;grid-template-columns:1fr;gap:1.25rem;margin-top:1.5rem}
.bundle-card{background:#fff;border-radius:18px;overflow:hidden;border:1px solid #fde68a;display:flex;flex-direction:column;transition:all .3s ease;box-shadow:0 4px 12px rgba(0,0,0,0.04)}
.bundle-card:hover{transform:translateY(-4px);box-shadow:0 16px 40px rgba(0,0,0,0.12)}
.bundle-card.bundle-featured{border:2px solid #4f46e5;transform:scale(1.02)}
.bundle-card.bundle-featured:hover{transform:scale(1.02) translateY(-4px)}
.bundle-header{padding:1.5rem;color:#fff;position:relative}
.bundle-icon{width:56px;height:56px;border-radius:14px;background:rgba(255,255,255,0.18);display:flex;align-items:center;justify-content:center;margin-bottom:.875rem;backdrop-filter:blur(6px)}
.bundle-badge{display:inline-block;font-size:.6875rem;font-weight:700;text-transform:uppercase;letter-spacing:.05em;padding:.3rem .75rem;background:rgba(255,255,255,0.18);border-radius:100px;margin-bottom:.875rem;backdrop-filter:blur(6px)}
.bundle-badge-hot{background:#fbbf24;color:#0f172a}
.bundle-header h3{font-size:1.25rem;font-weight:800;margin-bottom:.375rem;color:#fff}
.bundle-header p{font-size:.8125rem;color:rgba(255,255,255,0.85);line-height:1.5}
.bundle-body{padding:1.5rem;display:flex;flex-direction:column;flex:1}
.bundle-features{list-style:none;padding:0;margin:0 0 1.25rem;display:flex;flex-direction:column;gap:.625rem}
.bundle-features li{display:flex;align-items:center;gap:.5rem;font-size:.875rem;color:#334155}
.bundle-price{display:flex;align-items:baseline;gap:.625rem;margin-bottom:1rem;flex-wrap:wrap}
.bundle-price-old{font-size:.875rem;color:#94a3b8;text-decoration:line-through;font-weight:500}
.bundle-price-new{font-size:1.5rem;font-weight:800;color:#4f46e5}
.bundle-cta{display:flex;align-items:center;justify-content:center;gap:.5rem;padding:.75rem 1rem;background:#4f46e5;color:#fff;font-size:.875rem;font-weight:700;border-radius:10px;text-decoration:none;transition:background .2s;margin-top:auto}
.bundle-cta:hover{background:#4338ca}
.bundle-cta-featured{background:linear-gradient(135deg,#4f46e5,#6366f1);box-shadow:0 6px 18px rgba(79,70,229,0.35)}
@media(min-width:640px){.bundles-grid{grid-template-columns:repeat(2,1fr)}.bundles-title{font-size:1.875rem}}
@media(min-width:1024px){.bundles-grid{grid-template-columns:repeat(3,1fr);gap:1.5rem}.bundles-section{padding:4rem 0}.bundles-title{font-size:2.125rem}}

/* ===== TEMOIGNAGES (testimonials-section) ===== */
.testimonials-section{padding:3rem 0;background:#f8fafc}
.testimonials-title{font-size:1.5rem;font-weight:800;color:#0f172a;margin-bottom:.5rem}
.testimonials-grid{display:grid;grid-template-columns:1fr;gap:1.25rem;margin-top:1.5rem}
.testimonial-card{background:#fff;border:1px solid #e2e8f0;border-radius:14px;padding:1.5rem;display:flex;flex-direction:column;transition:all .3s ease}
.testimonial-card:hover{transform:translateY(-3px);box-shadow:0 12px 30px rgba(0,0,0,0.08)}
.testimonial-stars{display:flex;gap:.25rem;margin-bottom:.875rem}
.testimonial-quote{font-size:.9375rem;color:#334155;line-height:1.65;margin:0 0 1.25rem;font-style:italic;font-weight:500;flex:1}
.testimonial-author{display:flex;align-items:center;gap:.75rem;padding-top:1rem;border-top:1px solid #f1f5f9}
.testimonial-avatar{width:44px;height:44px;border-radius:50%;color:#fff;font-size:1.0625rem;font-weight:700;display:flex;align-items:center;justify-content:center;flex-shrink:0}
.testimonial-author strong{display:block;font-size:.875rem;color:#0f172a;font-weight:700}
.testimonial-author span{font-size:.75rem;color:#64748b}
@media(min-width:640px){.testimonials-grid{grid-template-columns:repeat(2,1fr)}.testimonials-title{font-size:1.875rem}}
@media(min-width:1024px){.testimonials-grid{grid-template-columns:repeat(3,1fr);gap:1.5rem}.testimonials-section{padding:4rem 0}.testimonials-title{font-size:2.125rem}}

/* ===== INSTRUCTOR STATS CARD (dans .instructor-cta) ===== */
.instructor-stats-card{display:flex;flex-direction:column;align-items:center;gap:1rem;background:rgba(255,255,255,0.08);backdrop-filter:blur(12px);border:1px solid rgba(255,255,255,0.15);border-radius:16px;padding:1.25rem 1.5rem;max-width:520px;margin:0 auto 1.5rem}
.instructor-stat{text-align:center}
.instructor-stat strong{display:block;font-size:1.375rem;font-weight:800;color:#fbbf24;line-height:1.2}
.instructor-stat span{font-size:.75rem;color:rgba(255,255,255,0.75);text-transform:uppercase;letter-spacing:.04em}
.instructor-stat-divider{width:60px;height:1px;background:rgba(255,255,255,0.15)}
@media(min-width:640px){
  .instructor-stats-card{flex-direction:row;justify-content:space-around;padding:1.5rem 2rem}
  .instructor-stat-divider{width:1px;height:40px}
}

/* ===== FAQ (faq-section) ===== */
.faq-section{padding:3rem 0;background:#fff;border-top:1px solid #e2e8f0}
.faq-title{font-size:1.5rem;font-weight:800;color:#0f172a;margin-bottom:.5rem}
.faq-list{max-width:760px;margin:0 auto;display:flex;flex-direction:column;gap:.75rem}
.faq-item{background:#f8fafc;border:1px solid #e2e8f0;border-radius:12px;overflow:hidden;transition:all .2s ease}
.faq-item[open]{border-color:#c7d2fe;background:#fff;box-shadow:0 4px 14px rgba(79,70,229,0.06)}
.faq-item summary{display:flex;align-items:center;justify-content:space-between;padding:1rem 1.25rem;font-size:.9375rem;font-weight:600;color:#0f172a;cursor:pointer;list-style:none;gap:1rem}
.faq-item summary::-webkit-details-marker{display:none}
.faq-item summary:hover{color:#4f46e5}
.faq-chevron{flex-shrink:0;color:#94a3b8;transition:transform .25s ease}
.faq-item[open] .faq-chevron{transform:rotate(180deg);color:#4f46e5}
.faq-answer{padding:0 1.25rem 1.125rem;font-size:.875rem;color:#475569;line-height:1.65}
@media(min-width:640px){.faq-title{font-size:1.875rem}}
@media(min-width:1024px){.faq-section{padding:4rem 0}.faq-title{font-size:2.125rem}}

/* ===== ANIMATION SPIN (loading buttons) ===== */
@keyframes spin{from{transform:rotate(0deg)}to{transform:rotate(360deg)}}
.btn-enroll[disabled]{opacity:.75;cursor:wait}
.btn-enroll svg.spinning{animation:spin .85s linear infinite}

/* ===== EMPTY FALLBACK (apres timeout enroll) ===== */
.empty-fallback{grid-column:1/-1;text-align:center;padding:3rem 1.5rem;background:#f8fafc;border-radius:14px;border:1px dashed #cbd5e1}
.empty-fallback h4{margin-top:1rem;font-size:1rem;font-weight:700;color:#0f172a}
.empty-fallback p{color:#64748b;margin-top:.5rem;font-size:.875rem}
.empty-fallback button{margin-top:1.25rem;padding:.625rem 1.25rem;background:#4f46e5;color:#fff;border:none;border-radius:10px;font-size:.875rem;font-weight:600;cursor:pointer;transition:background .2s}
.empty-fallback button:hover{background:#4338ca}

/* ===== DARK MODE — explicit (data-theme) ===== */
[data-theme="dark"] body{background:#0f172a;color:#e2e8f0}
[data-theme="dark"] .filter-section{background:#1e293b;border-bottom-color:#334155}
[data-theme="dark"] .filter-pill{background:#1e293b;border-color:#334155;color:#94a3b8}
[data-theme="dark"] .filter-pill:hover{border-color:#818cf8;color:#818cf8}
[data-theme="dark"] .filter-pill.active,[data-theme="dark"] .filter-pill[aria-checked="true"]{background:#4f46e5;border-color:#4f46e5;color:#fff}
[data-theme="dark"] .courses-section .section-title{color:#f1f5f9}
[data-theme="dark"] .course-card{background:#1e293b;border-color:#334155}
[data-theme="dark"] .course-card:hover{border-color:#6366f1;box-shadow:0 8px 25px rgba(0,0,0,0.3)}
[data-theme="dark"] .course-thumb{background:#334155}
[data-theme="dark"] .course-title{color:#f1f5f9}
[data-theme="dark"] .course-instructor-name{color:#94a3b8}
[data-theme="dark"] .course-students{color:#94a3b8}
[data-theme="dark"] .course-footer{border-top-color:#334155}
[data-theme="dark"] .featured-section{background:linear-gradient(135deg,#1e1b4b,#312e81)}
[data-theme="dark"] .featured-card{border-color:#4338ca}
[data-theme="dark"] .course-skeleton{background:#1e293b;border-color:#334155}
[data-theme="dark"] .skeleton{background:linear-gradient(90deg,#1e293b 25%,#334155 50%,#1e293b 75%);background-size:468px 100%}
[data-theme="dark"] #sortCourses{background:#1e293b;border-color:#334155;color:#e2e8f0}
[data-theme="dark"] .course-detail-view{color:#e2e8f0}
[data-theme="dark"] .course-detail-info h1{color:#f1f5f9}
[data-theme="dark"] .course-detail-info .course-detail-desc{color:#94a3b8}
[data-theme="dark"] .course-detail-meta-item{color:#94a3b8}
[data-theme="dark"] .course-detail-meta-item strong{color:#e2e8f0}
[data-theme="dark"] .module-accordion{background:#1e293b;border-color:#334155}
[data-theme="dark"] .module-header:hover{background:#0f172a}
[data-theme="dark"] .module-title{color:#f1f5f9}
[data-theme="dark"] .module-lessons{border-top-color:#334155}
[data-theme="dark"] .lesson-item{color:#94a3b8;border-bottom-color:#1e293b}
[data-theme="dark"] .lesson-item:hover{background:#0f172a}
[data-theme="dark"] .modules-section h2{color:#f1f5f9}
[data-theme="dark"] .course-detail-back{color:#818cf8}
[data-theme="dark"] .btn-enroll.enrolled{background:#312e81;color:#818cf8}
[data-theme="dark"] .section-eyebrow{background:#312e81;color:#a5b4fc}
[data-theme="dark"] .why-section{background:#0f172a;border-bottom-color:#1e293b}
[data-theme="dark"] .why-title{color:#f1f5f9}
[data-theme="dark"] .why-subtitle{color:#94a3b8}
[data-theme="dark"] .why-card{background:#1e293b;border-color:#334155}
[data-theme="dark"] .why-card:hover{border-color:#6366f1}
[data-theme="dark"] .why-card h3{color:#f1f5f9}
[data-theme="dark"] .why-card p{color:#94a3b8}
[data-theme="dark"] .bundles-section{background:linear-gradient(180deg,#1c1917,#292524)}
[data-theme="dark"] .bundles-title{color:#f1f5f9}
[data-theme="dark"] .bundles-subtitle{color:#94a3b8}
[data-theme="dark"] .bundle-card{background:#1e293b;border-color:#451a03}
[data-theme="dark"] .bundle-features li{color:#cbd5e1}
[data-theme="dark"] .bundle-price-new{color:#a5b4fc}
[data-theme="dark"] .testimonials-section{background:#0f172a}
[data-theme="dark"] .testimonials-title{color:#f1f5f9}
[data-theme="dark"] .testimonial-card{background:#1e293b;border-color:#334155}
[data-theme="dark"] .testimonial-quote{color:#cbd5e1}
[data-theme="dark"] .testimonial-author{border-top-color:#334155}
[data-theme="dark"] .testimonial-author strong{color:#f1f5f9}
[data-theme="dark"] .testimonial-author span{color:#94a3b8}
[data-theme="dark"] .faq-section{background:#0f172a;border-top-color:#1e293b}
[data-theme="dark"] .faq-title{color:#f1f5f9}
[data-theme="dark"] .faq-item{background:#1e293b;border-color:#334155}
[data-theme="dark"] .faq-item[open]{background:#0f172a;border-color:#4338ca}
[data-theme="dark"] .faq-item summary{color:#f1f5f9}
[data-theme="dark"] .faq-answer{color:#94a3b8}
[data-theme="dark"] .empty-fallback{background:#1e293b;border-color:#334155}
[data-theme="dark"] .empty-fallback h4{color:#f1f5f9}
[data-theme="dark"] .empty-fallback p{color:#94a3b8}

/* ===== DARK MODE — system preference (auto) ===== */
@media (prefers-color-scheme: dark){
  html:not([data-theme]) body,html[data-theme="auto"] body{background:#0f172a;color:#e2e8f0}
  html:not([data-theme]) .filter-section,html[data-theme="auto"] .filter-section{background:#1e293b;border-bottom-color:#334155}
  html:not([data-theme]) .filter-pill,html[data-theme="auto"] .filter-pill{background:#1e293b;border-color:#334155;color:#94a3b8}
  html:not([data-theme]) .course-card,html[data-theme="auto"] .course-card{background:#1e293b;border-color:#334155}
  html:not([data-theme]) .course-title,html[data-theme="auto"] .course-title{color:#f1f5f9}
  html:not([data-theme]) .featured-section,html[data-theme="auto"] .featured-section{background:linear-gradient(135deg,#1e1b4b,#312e81)}
  html:not([data-theme]) .why-section,html[data-theme="auto"] .why-section{background:#0f172a;border-bottom-color:#1e293b}
  html:not([data-theme]) .testimonials-section,html[data-theme="auto"] .testimonials-section{background:#0f172a}
  html:not([data-theme]) .faq-section,html[data-theme="auto"] .faq-section{background:#0f172a;border-top-color:#1e293b}
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce){
  *,*::before,*::after{animation-duration:0.01ms !important;animation-iteration-count:1 !important;transition-duration:0.01ms !important;scroll-behavior:auto !important}
  .skeleton{animation:none}
  .course-card:hover,.featured-card:hover,.why-card:hover,.testimonial-card:hover,.bundle-card:hover,.btn-enroll:hover,.btn-gold:hover,.hero-btn-primary:hover,.hero-btn-secondary:hover,.bundle-cta:hover{transform:none}
}
