/* Structure adaptée de « Accueil éducatif InstaBac.tn ». Palette du site conservée. */
body.is-home { background: #f2eee6; }
body.is-home > .site-header, body.is-home > .footer { display: none; }
#main { width: 100%; }
#section-page, #detail { width: min(1192px, calc(100% - 40px)); margin-inline: auto; }
#home { --ink:#0f141b; --cream:#f2eee6; --lime:#ffad68; --blue:#e8e2d4; --line:rgba(15,20,27,.16); --accent:#e2452b; background:var(--cream); color:var(--ink); overflow:hidden; font-family:'DM Sans','Segoe UI',sans-serif; }
#home h1, #home h2, #home h3 { font-family:Manrope,'Segoe UI',sans-serif; }
#home .site-shell{ min-height: 100vh; overflow: hidden; }
#home .topbar{ height: 88px; display: flex; align-items: center; justify-content: space-between; padding: 0 5vw; border-bottom: 1px solid var(--line); position: relative; z-index: 20; }
#home .brand{ color: var(--ink); display: flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 800; letter-spacing: -.8px; text-decoration: none; }
#home .brand-mark{ width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: var(--ink); color: var(--lime); font-size: 15px; letter-spacing: -1px; transform: rotate(-4deg); }
#home .brand-dot{ color: #7383a7; }
#home .desktop-nav{ display: flex; gap: 38px; }
#home .desktop-nav a{ text-decoration: none; color: #526078; font-size: 14px; font-weight: 600; transition: color .2s; }
#home .desktop-nav a:hover{ color: var(--ink); }
#home .header-cta{ display: flex; align-items: center; gap: 15px; padding: 7px 7px 7px 18px; border: 1px solid var(--ink); border-radius: 100px; color: var(--ink); font-size: 13px; font-weight: 700; text-decoration: none; }
#home .header-cta span{ width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: var(--ink); color: white; }
#home .header-cta svg, #home .primary-button svg, #home .track-meta svg, #home .resource-card a svg{ width: 18px; }
#home .hero{ min-height: 710px; display: grid; grid-template-columns: 1fr 1fr; position: relative; }
#home .hero-copy{ padding: 94px 4vw 70px 7.5vw; position: relative; z-index: 3; }
#home .eyebrow{ display: flex; align-items: center; gap: 9px; color: #66728a; font-size: 12px; font-weight: 700; letter-spacing: 1.3px; text-transform: uppercase; }
#home .eyebrow span{ width: 8px; height: 8px; border-radius: 50%; background: var(--lime); border: 2px solid var(--ink); box-shadow: 0 0 0 3px var(--lime); }
#home .hero h1{ margin: 28px 0 25px; font-size: clamp(64px, 7.2vw, 108px); line-height: .86; letter-spacing: -7px; font-weight: 700; }
#home h1 em, #home h2 em{ font-family: Georgia, serif; font-weight: 400; color: #e2452b; }
#home .hero h1 em{ position: relative; color: var(--ink); }
#home .hero h1 em::after{ content: ""; position: absolute; left: 2%; right: 0; height: 12px; bottom: -2px; background: var(--lime); z-index: -1; transform: rotate(-1deg); border-radius: 50%; }
#home .hero-lead{ max-width: 535px; color: #5d687d; font-size: 18px; line-height: 1.7; }
#home .hero-actions{ display: flex; align-items: center; gap: 28px; margin-top: 32px; }
#home .primary-button{ display: inline-flex; align-items: center; gap: 30px; padding: 17px 18px 17px 24px; border-radius: 12px; background: var(--ink); color: white; text-decoration: none; font-weight: 700; font-size: 14px; box-shadow: 5px 5px 0 var(--lime); transition: transform .2s, box-shadow .2s; }
#home .primary-button:hover{ transform: translate(-2px, -2px); box-shadow: 8px 8px 0 var(--lime); }
#home .text-button{ display: flex; gap: 10px; align-items: center; color: var(--ink); font-size: 14px; font-weight: 700; text-decoration: none; }
#home .play{ width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--ink); display: grid; place-items: center; font-size: 10px; padding-left: 2px; }
#home .hero-proof{ display: flex; align-items: center; gap: 18px; margin-top: 52px; }
#home .avatar-stack{ display: flex; }
#home .avatar-stack span{ width: 36px; height: 36px; display: grid; place-items: center; margin-left: -8px; border-radius: 50%; border: 2px solid var(--cream); background: #d6c2aa; font-size: 9px; font-weight: 800; }
#home .avatar-stack span:first-child{ margin: 0; background: #ffad68; }
#home .avatar-stack span:nth-child(2){ background: #e8e2d4; }
#home .avatar-stack span:nth-child(3){ background: #e2452b; }
#home .avatar-stack span:last-child{ background: var(--ink); color: white; }
#home .hero-proof p{ color: #69758a; font-size: 11px; line-height: 1.5; }
#home .hero-proof strong{ color: var(--ink); font-size: 12px; }
#home .hero-visual{ position: relative; margin: 32px 3vw 32px 0; border-radius: 48px 8px 48px 48px; overflow: hidden; background: #e8e2d4; background-image: radial-gradient(circle at 70% 10%, #f2eee6 0, transparent 40%), linear-gradient(140deg, transparent 20%, rgba(255,255,255,.25)); }
#home .hero-visual::before{ content: ""; position: absolute; width: 500px; height: 500px; border: 1px solid rgba(16,24,45,.2); border-radius: 50%; right: -100px; top: 70px; box-shadow: 0 0 0 45px rgba(255,255,255,.05), 0 0 0 90px rgba(255,255,255,.04); }
#home .grid-sphere{ position: absolute; width: 290px; height: 290px; border-radius: 50%; left: 3%; top: 7%; opacity: .25; background: repeating-radial-gradient(ellipse at center, transparent 0 17px, #162241 18px 19px), repeating-linear-gradient(90deg, transparent 0 28px, #162241 29px 30px); transform: rotate(-18deg); }
#home .floating-card{ position: absolute; background: #f2eee6; box-shadow: 0 30px 70px rgba(29,44,83,.22); }
#home .exam-card{ width: 300px; min-height: 340px; left: 50%; top: 49%; transform: translate(-50%, -50%) rotate(5deg); border-radius: 20px; padding: 22px; border: 1px solid rgba(16,24,45,.1); }
#home .card-topline{ display: flex; justify-content: space-between; font-size: 10px; color: #73809a; text-transform: uppercase; letter-spacing: .8px; }
#home .card-topline b{ color: var(--ink); background: var(--lime); padding: 5px 7px; border-radius: 5px; }
#home .exam-card > p{ margin-top: 62px; color: #71809b; font-size: 12px; }
#home .exam-card h3{ margin-top: 4px; font-size: 25px; letter-spacing: -1.3px; }
#home .mini-chart{ display: flex; align-items: flex-end; gap: 8px; height: 80px; padding-top: 20px; }
#home .mini-chart i{ flex: 1; height: 35%; background: #e8e2d4; border-radius: 5px 5px 0 0; }
#home .mini-chart i:nth-child(2){ height: 55%; }
#home .mini-chart i:nth-child(3){ height: 42%; }
#home .mini-chart i:nth-child(4){ height: 78%; background: var(--lime); }
#home .mini-chart i:nth-child(5){ height: 65%; }
#home .card-footer{ margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; font-size: 11px; color: #758097; }
#home .card-footer b{ color: var(--ink); font-size: 18px; }
#home .score-card{ z-index: 3; display: flex; align-items: center; gap: 12px; right: 3%; top: 17%; padding: 14px; border-radius: 14px; transform: rotate(-5deg); }
#home .score-card .check{ width: 34px; height: 34px; display: grid; place-items: center; background: var(--lime); border-radius: 50%; font-weight: 800; }
#home .score-card div{ display: flex; flex-direction: column; font-size: 12px; }
#home .score-card small{ color: #7a8497; font-size: 9px; }
#home .score-card strong{ font-size: 11px; color: #46683b; }
#home .formula-card{ left: 5%; bottom: 20%; border-radius: 12px; padding: 19px 22px; font-family: Georgia, serif; font-size: 19px; transform: rotate(-8deg); }
#home .scribble{ position: absolute; right: 9%; bottom: 8%; font: italic 90px Georgia; color: rgba(16,24,45,.35); transform: rotate(-12deg); }
#home .hero-sticker{ position: absolute; z-index: 4; right: 3%; bottom: 5%; width: 110px; height: 110px; display: flex; flex-direction: column; align-items: center; justify-content: center; border-radius: 50%; background: var(--lime); border: 2px solid var(--ink); text-align: center; font: 800 22px Manrope,"Segoe UI",sans-serif; transform: rotate(9deg); }
#home .hero-sticker span{ width: 75px; font: 700 8px "DM Sans","Segoe UI",sans-serif; text-transform: uppercase; line-height: 1.3; }
#home .ticker { display: flex; align-items: stretch; background: var(--ink); color: white; border-top: 1px solid rgba(242,238,230,.16); }
#home .ticker-control { order: 1; display: flex; align-items: center; gap: 6px; padding: 0 12px; border-inline-start: 1px solid rgba(242,238,230,.16); font-size: .8rem; cursor: pointer; }
#home .ticker-control input { accent-color: var(--lime); }
#home .ticker-viewport { min-width: 0; flex: 1; overflow: hidden; }
#home .ticker-track { display: flex; width: max-content; animation: ticker 24s linear infinite; }
#home .ticker-group { display: flex; flex: none; align-items: center; justify-content: space-around; gap: 26px; min-width: 100vw; padding: 20px 13px; white-space: nowrap; }
#home .ticker:has(.ticker-control input:checked) .ticker-track { animation-play-state: paused; }
#home .ticker span{ font: 700 12px Manrope,"Segoe UI",sans-serif; letter-spacing: 2px; }
#home .ticker i{ color: var(--lime); font-style: normal; }
@keyframes ticker{ to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  #home .ticker-control, #home .ticker-group[aria-hidden] { display: none; }
  #home .ticker-track { width: 100%; animation: none; }
  #home .ticker-group { width: 100%; min-width: 0; flex-wrap: wrap; gap: 12px 20px; }
}
#home .sections-block, #home .resources{ padding: 120px 7.5vw; }
#home .section-heading{ display: flex; justify-content: space-between; align-items: end; margin-bottom: 52px; }
#home .section-number{ display: block; margin-bottom: 20px; font: 700 11px Manrope,"Segoe UI",sans-serif; color: #72809a; letter-spacing: 2px; }
#home .section-heading h2, #home .interactive-copy h2, #home .final-cta h2{ font-size: clamp(43px, 5vw, 70px); line-height: 1.02; letter-spacing: -4px; font-weight: 700; }
#home .section-heading p{ max-width: 350px; color: #6a758b; line-height: 1.65; font-size: 14px; }
#home .track-grid{ display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
#home .track-card{ min-height: 260px; display: flex; flex-direction: column; padding: 20px; border: 1px solid var(--line); border-radius: 18px; color: var(--ink); text-decoration: none; background: rgba(255,255,255,.3); transition: transform .25s, background .25s, box-shadow .25s; }
#home .track-card:hover{ background: var(--accent); transform: translateY(-6px); box-shadow: 0 15px 0 rgba(16,24,45,.05); }
#home .track-index{ text-align: right; color: #8a94a5; font: 600 10px Manrope,"Segoe UI",sans-serif; }
#home .track-icon{ width: 55px; height: 55px; margin-top: 15px; display: grid; place-items: center; border-radius: 16px; background: var(--accent); font: 700 20px Georgia; }
#home .track-card h3{ max-width: 190px; margin-top: 24px; font-size: 19px; line-height: 1.2; letter-spacing: -.6px; }
#home .track-meta{ display: flex; justify-content: space-between; align-items: center; margin-top: auto; color: #737e92; font-size: 10px; }
#home .track-meta b{ width: 31px; height: 31px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); color: var(--ink); }
#home .track-card:last-child{ grid-column: 4; }
#home .interactive-block{ padding: 110px 7.5vw; display: grid; grid-template-columns: .8fr 1.2fr; gap: 8vw; background: var(--ink); color: white; }
#home .section-number.light{ color: var(--lime); }
#home .interactive-copy{ padding-top: 35px; }
#home .interactive-copy h2 em{ color: #9fafd1; }
#home .interactive-copy > p{ margin-top: 30px; max-width: 430px; color: #aab3c7; font-size: 16px; line-height: 1.8; }
#home .interactive-copy ul{ margin-top: 45px; list-style: none; padding: 0; border-top: 1px solid rgba(255,255,255,.16); }
#home .interactive-copy li{ display: flex; gap: 24px; padding: 18px 0; border-bottom: 1px solid rgba(255,255,255,.16); font-size: 13px; }
#home .interactive-copy li span{ color: var(--lime); font-size: 10px; }
#home .scene-carousel{ position: relative; background: #f2eee6; color: var(--ink); padding: 18px; border-radius: 28px; transform: perspective(1200px) rotateY(-3deg) rotateX(1deg); box-shadow: 30px 30px 70px rgba(0,0,0,.25); }
#home .scene-label{ position: absolute; z-index: 5; top: 34px; left: 34px; font-size: 9px; font-weight: 800; letter-spacing: 1.2px; }
#home .scene-label span{ color: #f15a46; }
#home .scene-stage{ height: 410px; position: relative; overflow: hidden; display: grid; place-items: center; border-radius: 17px; background-color: var(--scene-accent); background-image: linear-gradient(rgba(16,24,45,.09) 1px, transparent 1px), linear-gradient(90deg, rgba(16,24,45,.09) 1px, transparent 1px); background-size: 28px 28px; }
#home .scene-stage::after{ content: ""; position: absolute; width: 330px; height: 80px; border-radius: 50%; background: rgba(16,24,45,.15); filter: blur(14px); bottom: 35px; }
#home .drag-hint{ position: absolute; z-index: 4; bottom: 20px; left: 50%; transform: translateX(-50%); background: rgba(16,24,45,.85); color: white; padding: 8px 14px; border-radius: 100px; font-size: 9px; }
#home .cone-wrap{ position: relative; width: 250px; height: 260px; z-index: 2; animation: float 4s ease-in-out infinite; }
#home .cone{ position: absolute; left: 50px; top: 20px; width: 150px; height: 210px; background: linear-gradient(90deg, #567be5, #b9cdff 45%, #3554b3); clip-path: polygon(50% 0, 100% 88%, 96% 95%, 85% 98%, 65% 100%, 35% 100%, 15% 98%, 4% 95%, 0 88%); border-radius: 50% 50% 45% 45%; filter: drop-shadow(18px 20px 10px rgba(16,24,45,.2)); }
#home .cone::after{ content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 25px; border-radius: 50%; background: #294391; border: 3px solid #b2c8ff; }
#home .orbit{ position: absolute; z-index: 3; left: 5px; width: 240px; height: 70px; border: 2px solid white; border-radius: 50%; transform: rotate(-8deg); }
#home .orbit-one{ top: 105px; }
#home .orbit-two{ top: 150px; transform: rotate(7deg); border-color: rgba(255,255,255,.6); }
#home .axis{ position: absolute; left: 122px; top: -10px; z-index: 5; font: italic 18px Georgia; }
#home .formula{ position: absolute; right: -65px; top: 55px; z-index: 5; padding: 8px 12px; background: white; border-radius: 7px; font: italic 14px Georgia; transform: rotate(5deg); box-shadow: 4px 5px 0 rgba(16,24,45,.12); }
@keyframes float{ 50% { transform: translateY(-10px) rotate(2deg); } }
#home .molecule{ position: relative; width: 300px; height: 270px; z-index: 2; animation: float 4s ease-in-out infinite; }
#home .atom{ position: absolute; width: 74px; height: 74px; border-radius: 50%; background: radial-gradient(circle at 32% 27%, white 0 5%, #4b74dd 10%, #172956 75%); box-shadow: inset -8px -8px 14px rgba(0,0,0,.25), 10px 20px 20px rgba(16,24,45,.18); z-index: 3; }
#home .atom-a{ left: 110px; top: 20px; width: 92px; height: 92px; }
#home .atom-b{ left: 25px; top: 145px; background: radial-gradient(circle at 32% 27%, white 0 5%, #fb9b87 10%, #b6383d 75%); }
#home .atom-c{ right: 20px; top: 150px; }
#home .atom-d{ left: 118px; bottom: -5px; width: 58px; height: 58px; background: radial-gradient(circle at 32% 27%, white 0 5%, #fff5ab 10%, #d4a72d 75%); }
#home .bond{ position: absolute; z-index: 1; width: 13px; height: 160px; background: #e8e8df; border: 2px solid rgba(16,24,45,.25); border-radius: 10px; transform-origin: top; left: 145px; top: 70px; }
#home .bond-a{ transform: rotate(38deg); }
#home .bond-b{ transform: rotate(-40deg); }
#home .bond-c{ transform: rotate(0deg); height: 180px; }
#home .gear-wrap{ position: relative; z-index: 2; width: 330px; height: 270px; animation: float 4s ease-in-out infinite; }
#home .gear{ position: absolute; display: grid; place-items: center; color: #213b85; font-family: serif; text-shadow: 8px 12px 18px rgba(16,24,45,.3); }
#home .gear-big{ font-size: 210px; left: 5px; top: -30px; animation: spin 10s linear infinite; }
#home .gear-small{ font-size: 130px; right: 0; bottom: -15px; color: #ee765e; animation: spin 7s linear infinite reverse; }
@keyframes spin{ to { transform: rotate(360deg); } }
#home .scene-info{ display: flex; justify-content: space-between; align-items: end; gap: 20px; padding: 22px 10px 8px; }
#home .scene-info > div:first-child{ max-width: 390px; }
#home .scene-info span{ color: #758198; font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: .8px; }
#home .scene-info h3{ margin: 5px 0; font-size: 24px; letter-spacing: -1px; }
#home .scene-info p{ color: #69758a; font-size: 11px; line-height: 1.5; }
#home .scene-controls{ display: flex; align-items: center; gap: 10px; white-space: nowrap; }
#home .scene-controls button{ width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 50%; background: transparent; cursor: pointer; transition: background .2s; }
#home .scene-controls button:hover{ background: var(--lime); }
#home .scene-controls span{ min-width: 28px; text-align: center; color: var(--ink); }
#home .resources{ background: #e8e2d4; }
#home .resource-grid{ display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
#home .resource-card{ min-height: 480px; border-radius: 24px; padding: 28px; display: flex; flex-direction: column; overflow: hidden; }
#home .resource-card.lime{ background: var(--lime); }
#home .resource-card.cream{ background: #f2eee6; }
#home .resource-card.blue{ background: var(--blue); }
#home .resource-icon{ width: 62px; height: 62px; display: grid; place-items: center; background: var(--ink); color: white; border-radius: 18px; transform: rotate(-6deg); }
#home .resource-icon svg{ width: 30px; }
#home .resource-card > div:nth-last-of-type(1){ margin-top: auto; }
#home .resource-card small{ font-size: 9px; font-weight: 800; letter-spacing: 1.5px; }
#home .resource-card h3{ margin: 10px 0; font-size: 28px; line-height: 1.1; letter-spacing: -1.5px; }
#home .resource-card p{ color: #566174; font-size: 12px; line-height: 1.5; }
#home .resource-card a{ display: flex; align-items: center; justify-content: space-between; margin-top: 24px; padding-top: 16px; border-top: 1px solid rgba(16,24,45,.25); color: var(--ink); text-decoration: none; font-size: 12px; font-weight: 700; }
#home .paper-stack{ position: relative; height: 175px; margin: 4px 0 15px!important; }
#home .paper-stack::before, #home .paper-stack::after, #home .paper-stack > div{ content: ""; position: absolute; width: 170px; height: 145px; left: 50%; top: 0; transform: translateX(-50%) rotate(8deg); border: 1px solid var(--line); border-radius: 8px; background: #e8e2d4; }
#home .paper-stack::after{ transform: translateX(-50%) rotate(-4deg); background: var(--lime); }
#home .paper-stack > div{ z-index: 2; transform: translateX(-50%); background: white; display: flex; flex-direction: column; padding: 22px; }
#home .paper-stack span{ color: #78849a; font-size: 8px; }
#home .paper-stack strong{ margin-top: 30px; font: 800 16px Manrope,"Segoe UI",sans-serif; }
#home .paper-stack i{ margin-top: 6px; font-size: 9px; color: #707b91; font-style: normal; }
#home .progress-ring{ width: 160px; height: 160px; margin: 4px auto 30px!important; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--ink) 0 84%, rgba(255,255,255,.5) 84%); position: relative; }
#home .progress-ring::before{ content: ""; position: absolute; inset: 17px; border-radius: 50%; background: var(--blue); }
#home .progress-ring span{ position: relative; font: 800 38px Manrope,"Segoe UI",sans-serif; }
#home .progress-ring small{ font-size: 15px; }
#home .final-cta{ min-height: 560px; padding: 110px 5vw; text-align: center; display: flex; flex-direction: column; align-items: center; justify-content: center; position: relative; background: var(--lime); overflow: hidden; }
#home .final-cta > span{ font-size: 10px; font-weight: 800; letter-spacing: 2px; }
#home .final-cta h2{ margin: 22px 0 38px; position: relative; z-index: 2; }
#home .final-cta h2 em{ color: var(--ink); }
#home .primary-button.dark{ box-shadow: 5px 5px 0 white; position: relative; z-index: 2; }
#home .primary-button.dark:hover{ box-shadow: 8px 8px 0 white; }
#home .cta-orbit{ position: absolute; width: 550px; height: 210px; display: grid; place-items: center; border: 2px solid rgba(16,24,45,.13); border-radius: 50%; font: 800 160px Manrope,"Segoe UI",sans-serif; color: rgba(16,24,45,.035); transform: rotate(-10deg); }
#home footer{ min-height: 190px; display: grid; grid-template-columns: 1fr 1fr 1fr auto; align-items: center; gap: 30px; padding: 40px 7.5vw; background: var(--ink); color: white; }
#home .footer-brand{ color: white; }
#home .footer-brand .brand-mark{ background: var(--lime); color: var(--ink); }
#home footer p, #home footer small{ color: #8e99b0; font-size: 11px; }
#home footer div{ display: flex; gap: 22px; }
#home footer div a{ color: white; text-decoration: none; font-size: 11px; font-weight: 700; }
@media (max-width: 950px){#home .desktop-nav{ display: none; }
#home .hero{ grid-template-columns: 1fr; }
#home .hero-copy{ padding: 80px 7vw 60px; }
#home .hero-visual{ min-height: 580px; margin: 0 4vw 60px; }
#home .hero h1{ letter-spacing: -5px; }
#home .track-grid{ grid-template-columns: repeat(2, 1fr); }
#home .track-card:last-child{ grid-column: auto; }
#home .interactive-block{ grid-template-columns: 1fr; }
#home .interactive-copy{ max-width: 600px; }
#home .scene-carousel{ transform: none; }
#home .resource-grid{ grid-template-columns: 1fr; }
#home .resource-card{ min-height: 420px; }
#home footer{ grid-template-columns: 1fr 1fr; }

}
@media (max-width: 600px){#home .topbar{ height: 72px; padding: 0 20px; }
#home .brand{ font-size: 18px; }
#home .brand-mark{ width: 34px; height: 34px; }
#home .header-cta{ font-size: 0; padding-left: 7px; border: 0; }
#home .hero-copy{ padding: 62px 22px 50px; }
#home .hero h1{ font-size: 60px; letter-spacing: -4px; }
#home .hero-lead{ font-size: 16px; }
#home .hero-actions{ align-items: flex-start; flex-direction: column; }
#home .hero-proof{ margin-top: 40px; }
#home .hero-visual{ min-height: 480px; border-radius: 30px 8px 30px 30px; }
#home .exam-card{ width: 245px; min-height: 310px; }
#home .score-card{ top: 8%; right: -25px; }
#home .formula-card{ left: 1%; bottom: 12%; }
#home .hero-sticker{ width: 90px; height: 90px; font-size: 18px; }
#home .sections-block, #home .resources, #home .interactive-block{ padding: 85px 22px; }
#home .section-heading{ display: block; }
#home .section-heading p{ margin-top: 22px; }
#home .section-heading h2, #home .interactive-copy h2, #home .final-cta h2{ font-size: 43px; letter-spacing: -3px; }
#home .track-grid{ grid-template-columns: 1fr; }
#home .track-card{ min-height: 220px; }
#home .scene-carousel{ margin-top: 20px; padding: 10px; }
#home .scene-stage{ height: 340px; }
#home .scene-info{ align-items: start; flex-direction: column; }
#home .scene-label{ top: 25px; left: 25px; }
#home .cone-wrap{ transform: scale(.8); }
#home .formula{ right: -25px; }
#home .molecule{ transform: scale(.8); }
#home .gear-wrap{ transform: scale(.8); }
#home .resource-card{ padding: 24px; }
#home .resource-card h3{ font-size: 25px; }
#home .final-cta{ min-height: 520px; padding: 80px 20px; }
#home .cta-orbit{ width: 400px; }
#home footer{ grid-template-columns: 1fr; align-items: start; padding: 60px 25px; }

}
@media (prefers-reduced-motion: reduce){#home *{ scroll-behavior: auto!important; animation-duration: .01ms!important; animation-iteration-count: 1!important; }

}


/* Existing dark hero, orange calls to action and cream content. */
#home .topbar { background:#101923; color:var(--cream); }
#home .desktop-nav a { color:var(--cream); }
#home .header-cta { color:var(--cream); border-color:rgba(242,238,230,.4); }
#home .header-cta span { background:var(--accent); font-size:22px; }
#home .hero { margin:0; padding:0; gap:0; border:0; border-radius:0; box-shadow:none; background:radial-gradient(circle at 82% 16%,rgba(226,69,43,.24),transparent 36%),#101923; color:var(--cream); align-items:stretch; }
#home .hero h1 { color:var(--cream); }
#home .hero h1 em { display:inline; color:var(--lime); font-style:italic; }
#home .hero h1 em::after { background:var(--accent); opacity:.65; }
#home .hero-lead, #home .hero-proof p { color:rgba(242,238,230,.75); }
#home .hero-proof strong { color:var(--cream); }
#home .eyebrow { color:var(--lime); }
#home .eyebrow span { background:var(--accent); border:0; box-shadow:none; }
#home .hero .text-button, #home .interactive-copy .text-button { color:var(--cream); }
#home .play { border-color:rgba(242,238,230,.4); }
#home .primary-button { background:var(--accent); color:white; min-height:48px; font-size:16px; }
#home .primary-button.dark { background:var(--ink); }
#home .hero-visual { color:var(--ink); min-width:0; }
#home .hero-actions { flex-wrap:wrap; }
#home .hero-proof { align-items:center; }
#home .hero-proof p { font-size:14px; }
#home .avatar-stack span { font-size:11px; }
#home .score-card small { font-size:12px; }
#home .score-card strong { color:var(--accent); }
#home .card-topline, #home .card-footer { font-size:14px; }
#home .hero-sticker span { font-size:10px; }
#home .ticker span { font-size:13px; }
#home .section-number { font-size:14px; color:#5d646d; }
#home .section-number.light { color:var(--lime); }
#home .section-heading { gap:30px; }
#home .section-heading p { font-size:16px; color:#5d646d; }
#home h2 em { color:var(--accent); }
#home .track-grid { align-items:stretch; font-weight:400; }
#home .track-card { min-width:0; }
#home .track-card:hover { background:var(--blue); }
#home .track-card:last-child { grid-column:auto; }
#home .track-icon { background:var(--blue); }
#home .track-card:nth-child(3n + 1) .track-icon { background:var(--lime); }
#home .track-card:nth-child(3n) .track-icon { background:var(--accent); color:white; }
#home .track-index { font-size:14px; color:#5d646d; }
#home .track-meta { gap:10px; padding-top:24px; font-size:14px; line-height:1.5; color:#5d646d; }
#home .track-meta b { flex:none; }
#home .interactive-block { background:#101923; grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr); }
#home .interactive-copy h2 em { color:var(--lime); }
#home .interactive-copy > p { color:rgba(242,238,230,.75); }
#home .interactive-copy li { font-size:16px; }
#home .interactive-copy li span { font-size:14px; }
#home .interactive-copy .text-button { margin-top:24px; text-decoration:underline; text-underline-offset:5px; }
#home .interactive-preview { min-width:0; padding:18px; border:1px solid rgba(242,238,230,.2); border-radius:28px; background:#18202a; }
#home .preview-label { color:var(--lime); font-size:14px; letter-spacing:.1em; padding:6px 6px 18px; }
#home .preview-caption { color:rgba(242,238,230,.7); font-size:14px; line-height:1.6; padding:18px 6px 4px; }
#home .stage.scene-carousel { display:flex; flex-direction:column; gap:12px; height:440px; padding:0; border:0; border-radius:0; box-shadow:none; background:none; transform:none; }
#home .scene-viewport { position:relative; flex:1; min-height:240px; overflow:hidden; border:1px solid rgba(242,238,230,.16); border-radius:18px; background:#0f141b; }
#home .scene-viewport iframe { position:absolute; inset:0; width:100%; height:100%; border:0; pointer-events:none; }
#home .scene-status { position:absolute; inset:0; display:grid; place-content:center; padding:30px; text-align:center; color:var(--cream); font-size:15px; z-index:1; pointer-events:none; background:#0f141b; }
#home .scene-controls { justify-content:center; }
#home .scene-controls button { width:auto; min-width:44px; height:44px; padding:0 14px; color:var(--cream); border-color:rgba(242,238,230,.35); font-size:15px; }
#home .scene-controls button:hover { background:var(--accent); }
#home .resource-icon { font-size:36px; }
#home .resource-card h3 { letter-spacing:-1px; }
#home .resource-card small { font-size:14px; }
#home .resource-card p, #home .resource-card a { font-size:16px; }
#home .resource-card p { color:#454c55; }
#home .resource-card a { min-height:48px; }
#home .paper-stack span, #home .paper-stack i { font-size:12px; }
#home .resource-card.lime { background:var(--lime); }
#home .final-cta > span { font-size:14px; }
#home .home-footer p, #home .home-footer small, #home .home-footer a { font-size:14px; }
#home .home-footer { background:#0f141b; color:var(--cream); }
#home .home-arabic, #home .seo-sections { grid-column:1 / -1; }
#home .seo-sections { display:flex; flex-wrap:wrap; gap:12px 24px; font-weight:400; }
#home .seo-sections a { color:rgba(242,238,230,.65); }
#home .catalog { margin:0; padding:0; }

@media(max-width:1100px) { #home .hero-actions { gap:20px; } #home .interactive-block { gap:4vw; } }
@media(max-width:950px) { #home .interactive-block { grid-template-columns:minmax(0,1fr); } }
@media(max-width:600px) {
  #home .header-cta { font-size:14px; gap:8px; padding:4px 4px 4px 10px; }
  #home .hero h1 { font-size:clamp(50px,14vw,60px); letter-spacing:-3px; }
  #home .hero-proof { gap:12px; } #home .avatar-stack span { width:32px; height:32px; }
  #home .section-heading h2, #home .interactive-copy h2, #home .final-cta h2 { font-size:clamp(36px,10vw,43px); letter-spacing:-2px; }
  #home .stage.scene-carousel { height:340px; }
  #home .score-card { right:8px; } #home .exam-card { width:min(245px,85%); }
  #home .ticker span { font-size:12px; }
}

#home .section-heading { padding:0; border:0; border-radius:0; background:none; }
#home .track-meta p { margin:0; font-size:14px; line-height:1.5; }
#home .resource-card.blue { background:#101923; color:#f2eee6; }
#home .resource-card.blue p, #home .resource-card.blue a { color:#f2eee6; }
#home .resource-card.blue a { border-color:rgba(242,238,230,.3); }
#home .progress-ring { background:conic-gradient(#ffad68 0 84%,rgba(242,238,230,.2) 84%); }
#home .progress-ring::before { background:#101923; }
#home .catalog:not([hidden]) { padding:40px 7.5vw; }
/* Keep the existing search available when the navigation collapses. */
@media(max-width:950px) {
  #home .topbar { height:auto; min-height:88px; flex-wrap:wrap; gap:16px; padding-block:16px; }
  #home .desktop-nav { display:flex; order:3; flex-basis:100%; justify-content:center; }
  #home .desktop-nav > a { display:none; }
}
