/* TawrDz — page d'accueil, v4 « style SkillUp » : fond presque noir, cartes arrondies,
   citron #DAFF96 / pêche #FFE5C6 / bleu #C6E7FE, Poppins (latin) + Somar (arabe). */

@font-face { font-family: Poppins; src: url(../assets/fonts/Poppins-Light.woff2) format('woff2'); font-weight: 300; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: Poppins; src: url(../assets/fonts/Poppins-Regular.woff2) format('woff2'); font-weight: 400; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: Poppins; src: url(../assets/fonts/Poppins-Medium.woff2) format('woff2'); font-weight: 500; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: Poppins; src: url(../assets/fonts/Poppins-SemiBold.woff2) format('woff2'); font-weight: 600; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: Poppins; src: url(../assets/fonts/Poppins-Bold.woff2) format('woff2'); font-weight: 700; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: Somar; src: url(../assets/fonts/SomarSans-Regular.woff2) format('woff2'); font-weight: 300 400; font-display: swap; }
@font-face { font-family: Somar; src: url(../assets/fonts/SomarSans-Medium.woff2) format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: Somar; src: url(../assets/fonts/SomarSans-SemiBold.woff2) format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: Somar; src: url(../assets/fonts/SomarSans-Bold.woff2) format('woff2'); font-weight: 700 800; font-display: swap; }

:root {
  --bg: #0A0A0A; --panel: #13170D; --card: #151515; --card2: #1D1D1D; --line: #2A2A2A;
  --w: #FFFFFF; --tx: #F4F4F4; --mut: #A3A3A3; --ink: #0A0A0A;
  --lime: #DAFF96; --peach: #FFE5C6; --blue: #C6E7FE; --cream: #FFF1BF;
  --r: 24px;
  --font: Poppins, Somar, system-ui, sans-serif;
  /* flèche « aller » (vers le haut à gauche, sens de lecture RTL) */
  --arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 18 6 6M6 6h9M6 6v9'/%3E%3C/svg%3E");
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--tx); font: 400 17px/1.75 var(--font); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 500; letter-spacing: -.01em; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 28px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.hl-l { color: var(--lime); } .hl-p { color: var(--peach); } .hl-b { color: var(--blue); } .hl-w { color: var(--w); }

/* ---- en-tête ---- */
.top { position: sticky; top: 0; z-index: 20; background: rgba(10, 10, 10, .86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; gap: 40px; height: 78px; }
.brand { display: flex; }
.brand img { height: 30px; width: auto; display: block; }
.nav { display: flex; gap: 30px; }
.nav a, .auth a { text-decoration: none; font-size: .95rem; color: var(--mut); transition: color .15s; }
.nav a:hover, .auth a:hover { color: var(--w); }
.auth { margin-inline-start: auto; display: flex; align-items: center; gap: 22px; }
.auth a.strong { background: var(--lime); color: var(--ink); font-weight: 600; padding: 9px 22px; border-radius: 999px; }
.auth a.strong:hover { background: #E8FFBE; color: var(--ink); }

/* ---- éléments communs ---- */
.chip { display: inline-block; margin: 0; background: var(--card2); border: 1px solid var(--line); color: var(--lime); font-size: .85rem; font-weight: 500; padding: 5px 16px; border-radius: 999px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; background: var(--lime); color: var(--ink); font-weight: 600; font-size: 1rem; text-decoration: none; padding: 14px 30px; border-radius: 999px; border: 0; transition: background .15s, transform .15s; }
.btn:hover { background: #E8FFBE; transform: translateY(-1px); }
.btn.ghost { background: var(--card2); color: var(--w); border: 1px solid var(--line); }
.btn.ghost:hover { background: #262626; }
.btn.dark { background: var(--ink); color: var(--w); }
.btn.dark:hover { background: #262626; }
.bar { display: block; background: var(--card2); color: var(--c, var(--lime)); text-align: center; border-radius: 999px; padding: 22px 24px; font-size: clamp(1.45rem, 2.6vw, 2.1rem); font-weight: 500; margin-bottom: 40px; }
section { padding: 72px 0; }

/* ---- hero ---- */
.hero { padding: 72px 0 104px; background: radial-gradient(52% 60% at 22% 45%, rgba(218, 255, 150, .07), transparent 70%); }
.hero-in { display: grid; grid-template-columns: .9fr 1.22fr; gap: 52px; align-items: center; }
.hero h1 { font-size: clamp(2rem, 3.6vw, 3.05rem); line-height: 1.3; margin: 22px 0 20px; color: var(--w); }
.hero h1 span { font-weight: 700; }
.lead { color: var(--mut); font-size: 1.1rem; max-width: 34em; margin: 0; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 32px 0 28px; }
.ticks { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 26px; font-size: .92rem; color: #D6D6D6; }
.ticks li::before, .plan li::before { content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--lime); margin-inline-end: 10px; vertical-align: middle; }

/* maquette du tableau de bord */
.hero-art { position: relative; padding-bottom: 58px; }
.mock { display: grid; grid-template-columns: 148px 1fr; gap: 12px; padding: 12px; background: #0D0F0A; border: 6px solid #2B2B2B; border-radius: 30px; font-size: 12px; line-height: 1.5; color: var(--w); }
.m-side { background: var(--panel); border-radius: 18px; padding: 14px 10px; display: flex; flex-direction: column; gap: 3px; }
.m-side img { height: 20px; width: auto; align-self: flex-start; margin: 2px 8px 16px; }
.m-side span { display: flex; align-items: center; gap: 9px; padding: 7px 10px; border-radius: 999px; color: #D8D8D8; }
.m-side span.on { background: var(--lime); color: var(--ink); font-weight: 600; }
.m-side i { margin-inline-start: auto; font-style: normal; font-size: 10px; font-weight: 600; background: var(--lime); color: var(--ink); border-radius: 999px; padding: 0 6px; }
.m-side em { margin-top: auto; font-style: normal; text-align: center; background: var(--w); color: var(--ink); font-weight: 500; border-radius: 999px; padding: 6px 8px; font-size: 11px; }
.ic { flex: none; width: 12px; height: 12px; border: 1.6px solid currentColor; border-radius: 50%; text-decoration: none; }
.ic.sq { border-radius: 3px; background: currentColor; }
.m-main { display: grid; gap: 11px; align-content: start; min-width: 0; }
.m-top { display: flex; align-items: center; gap: 10px; padding: 2px 2px 0; }
.m-top b { font-size: 16px; font-weight: 500; }
.m-search { margin-inline-start: auto; border: 1px solid var(--line); border-radius: 999px; padding: 4px 14px; color: var(--mut); font-size: 11px; }
.m-bell { width: 24px; height: 24px; border-radius: 50%; background: var(--lime); flex: none; }
.m-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; }
.m-stats div { background: var(--c); color: var(--ink); border-radius: 14px; padding: 11px 11px 9px; }
.m-stats b { display: block; font-size: 21px; font-weight: 500; line-height: 1.15; }
.m-stats small { font-size: 10.5px; opacity: .75; }
.m-cont { display: grid; grid-template-columns: 46% 1fr; gap: 12px; align-items: center; background: var(--card); border-radius: 16px; padding: 9px; }
.ph { position: relative; border-radius: 12px; overflow: hidden; aspect-ratio: 16 / 11; }
.ph img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; display: block; }
.play { position: absolute; inset: 0; margin: auto; width: 34px; height: 34px; border-radius: 50%; background: rgba(218, 255, 150, .92); }
.play::after { content: ''; position: absolute; left: 13px; top: 10px; border-style: solid; border-width: 7px 0 7px 11px; border-color: transparent transparent transparent var(--ink); }
.m-info small { color: var(--mut); font-size: 10.5px; }
.m-info b { display: block; font-size: 14px; font-weight: 500; margin: 1px 0 3px; }
.m-info p { margin: 0 0 9px; color: var(--mut); font-size: 11px; }
.m-row { display: flex; align-items: center; gap: 10px; }
.m-btn { background: var(--lime); color: var(--ink); font-weight: 600; border-radius: 999px; padding: 6px 16px; font-size: 11px; }
.ring { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-size: 9.5px; font-weight: 600;
        background: radial-gradient(closest-side, var(--card) 74%, transparent 75% 100%), conic-gradient(var(--lime) calc(var(--p) * 1%), #333 0); }
.m-tasks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }
.m-tasks div { background: var(--c); color: var(--ink); border-radius: 13px; padding: 9px 11px; display: flex; align-items: center; justify-content: space-between; gap: 8px; font-weight: 500; font-size: 11.5px; }
.m-tasks small { display: block; font-weight: 400; font-size: 10px; opacity: .7; }
.box { flex: none; width: 14px; height: 14px; border: 1.6px solid var(--ink); border-radius: 4px; text-decoration: none; }
.box.done { background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 8.5 2.5 2.5L12 5.5'/%3E%3C/svg%3E") center / 12px no-repeat; }
.notif { position: absolute; bottom: 0; left: -26px; width: 270px; display: flex; align-items: center; gap: 12px; background: var(--card2); border: 1px solid var(--line); border-radius: 20px; padding: 10px 14px 10px 10px; font-size: 12.5px; line-height: 1.55; color: #DDD; box-shadow: 0 18px 40px rgba(0, 0, 0, .45); }
.notif img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; object-position: 55% 42%; flex: none; }
.notif p { margin: 0; }
.notif b { display: block; color: var(--lime); font-weight: 600; }

/* ---- paragraphe « overview » ---- */
.overview { padding-top: 40px; }
.big { font-size: clamp(1.45rem, 2.9vw, 2.35rem); line-height: 1.75; font-weight: 300; color: #CFCFCF; margin: 22px 0 40px; max-width: 30em; }
.big b { font-weight: 600; }
.strip { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 26px; border: 1px solid var(--line); background: #111; border-radius: 30px; padding: 30px 34px; font-size: clamp(1.15rem, 2.3vw, 1.75rem); font-weight: 500; }
.strip i { width: 8px; height: 8px; border-radius: 50%; background: var(--w); }

/* ---- cartes pastel ---- */
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feat { background: var(--c); color: var(--ink); border-radius: var(--r); padding: 26px 28px 30px; min-height: 250px; display: flex; flex-direction: column; transition: transform .2s; }
.feat:hover { transform: translateY(-4px); }
.go { width: 44px; height: 44px; border-radius: 50%; background: var(--ink); align-self: flex-end; margin-bottom: auto; position: relative; }
.go::after { content: ''; position: absolute; inset: 0; margin: auto; width: 18px; height: 18px; background: var(--lime); -webkit-mask: var(--arrow) center / contain no-repeat; mask: var(--arrow) center / contain no-repeat; }
.feat b { font-size: 1.3rem; font-weight: 600; margin: 34px 0 8px; }
.feat p { margin: 0; font-size: .96rem; line-height: 1.7; opacity: .78; }

/* ---- process ---- */
.proc { list-style: none; margin: 0; padding: 0; }
.proc li { display: grid; grid-template-columns: 96px 1fr 52px; align-items: center; gap: 12px; padding: 26px 30px; border-bottom: 1px solid var(--line); border-radius: 0; transition: background .2s, color .2s, border-radius .2s; cursor: default; }
.proc li.on, .proc li:hover { background: var(--lime); color: var(--ink); border-radius: 22px; border-color: transparent; }
.proc:hover li.on:not(:hover) { background: none; color: inherit; border-radius: 0; border-color: var(--line); }
.no { font-family: Poppins, sans-serif; font-size: clamp(1.8rem, 3vw, 2.6rem); font-weight: 300; color: #6B6B6B; }
.proc li.on .no, .proc li:hover .no { color: var(--ink); }
.proc:hover li.on:not(:hover) .no { color: #6B6B6B; }
.proc b { display: block; font-size: clamp(1.4rem, 2.8vw, 2.3rem); font-weight: 400; line-height: 1.4; }
.proc p { margin: 4px 0 0; font-size: .98rem; opacity: .7; }
.arr { width: 44px; height: 44px; justify-self: end; background: currentColor; -webkit-mask: var(--arrow) center / contain no-repeat; mask: var(--arrow) center / contain no-repeat; opacity: .55; }
.proc li.on .arr, .proc li:hover .arr { opacity: 1; }

/* ---- niveaux ---- */
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.level { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 30px 32px; }
.tag { display: inline-block; background: var(--lime); color: var(--ink); font-size: .82rem; font-weight: 600; padding: 3px 14px; border-radius: 999px; }
.level:not(.on) .tag { background: var(--peach); }
.level b { display: block; font-size: 1.4rem; font-weight: 500; margin: 18px 0 8px; color: var(--w); }
.level p { margin: 0; color: var(--mut); }

/* ---- prix ---- */
.sub { text-align: center; color: var(--mut); margin: -18px 0 34px; }
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; max-width: 900px; margin: 0 auto; }
.plan { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: 28px; padding: 32px; display: flex; flex-direction: column; }
.plan > b { font-size: 1.15rem; font-weight: 500; }
.price { font-size: 1.2rem; margin: 6px 0 18px; }
.price span { font-family: Poppins, sans-serif; font-size: 3.1rem; font-weight: 500; letter-spacing: -.02em; }
.plan ul { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 8px; color: #D2D2D2; }
.plan .btn { margin-top: auto; }
.plan.best { background: var(--lime); color: var(--ink); border-color: transparent; }
.plan.best ul { color: #26301A; }
.plan.best li::before { background: var(--ink); }
.plan .tag { position: absolute; top: 28px; left: 28px; background: var(--ink); color: var(--lime); }

/* ---- FAQ ---- */
.faq-in { display: grid; grid-template-columns: .85fr 1.15fr; gap: 56px; align-items: start; }
.faq-head h2 { font-size: clamp(1.9rem, 3.4vw, 2.8rem); margin: 18px 0 24px; color: var(--w); }
.search { display: flex; align-items: center; gap: 10px; background: var(--card2); border: 1px solid var(--line); border-radius: 999px; padding: 12px 20px; transition: border-color .15s; }
.search:focus-within { border-color: var(--lime); }
.search svg { width: 20px; height: 20px; flex: none; fill: none; stroke: var(--mut); stroke-width: 2; stroke-linecap: round; }
.search input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; color: var(--w); font: inherit; font-size: 1rem; }
.search input::placeholder { color: #777; }
.qa details { background: var(--card); border: 1px solid var(--line); border-radius: 20px; margin-bottom: 10px; padding: 0 22px; transition: border-color .15s; }
.qa details[open] { border-color: #3A3A3A; }
.qa summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 0; font-weight: 500; font-size: 1.05rem; color: var(--w); }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: '+'; flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--card2); color: var(--lime); font-size: 1.2rem; line-height: 1; }
.qa details[open] summary::after { content: '–'; background: var(--lime); color: var(--ink); }
.qa details p { margin: 0 0 20px; color: var(--mut); }
.none { color: var(--mut); }

/* ---- appel final ---- */
.final { padding: 48px 0 96px; }
.final-card { display: grid; grid-template-columns: 1.25fr 1fr; align-items: center; gap: 40px; background: var(--lime); color: var(--ink); border-radius: 36px; padding: 56px 60px; overflow: hidden; }
.final-card h2 { font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1.25; }
.final-card p { margin: 14px 0 28px; font-size: 1.1rem; opacity: .75; }
.final-ph { justify-self: center; width: min(100%, 300px); aspect-ratio: 4 / 5; border-radius: 28px; overflow: hidden; transform: rotate(-4deg); border: 6px solid var(--ink); }
.final-ph img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 45%; display: block; }

/* ---- pied de page ---- */
.foot { border-top: 1px solid var(--line); padding: 34px 0; }
.foot-in { display: flex; flex-wrap: wrap; align-items: center; gap: 24px 36px; }
.foot-in img { height: 26px; width: auto; }
.foot nav { display: flex; flex-wrap: wrap; gap: 24px; }
.foot a { text-decoration: none; font-size: .93rem; color: var(--mut); }
.foot a:hover { color: var(--w); }
.foot-in > span { margin-inline-start: auto; font-size: .88rem; color: #777; }

/* personnage (sous-ensemble des styles de l'app, utilisé par brand/showcase/teacher-capture.html) */
.teacher { width: 100%; height: auto; overflow: visible; }
.teacher .t-body { transform-origin: 110px 300px; animation: breathe 3.2s ease-in-out infinite; }
@keyframes breathe { 50% { transform: scale(1.01, 1.018); } }
.teacher .armL { transform-origin: 82px 148px; transform: rotate(118deg); }
.teacher .armR { transform-origin: 138px 148px; }
.teacher .finger, .teacher .eyes-happy, .teacher .wink, .teacher .m-o { opacity: 0; }
.teacher .eyes { transform-origin: 110px 85px; animation: blink 4.6s infinite; }
@keyframes blink { 0%, 95%, 100% { transform: scaleY(1); } 97% { transform: scaleY(.1); } }
.teacher .m-closed { opacity: 0; }
.teacher .m-open { transform-origin: 110px 119px; animation: talk .17s ease-in-out infinite alternate; }
@keyframes talk { from { transform: scaleY(.25); } to { transform: scaleY(1); } }

@media (max-width: 1060px) {
  .mock { grid-template-columns: 1fr; }
  .m-side { display: none; }
}
@media (max-width: 960px) {
  .nav { display: none; }
  .hero { padding: 44px 0 72px; }
  .hero-in { grid-template-columns: 1fr; gap: 44px; }
  .hero-art { max-width: 620px; width: 100%; margin: 0 auto; }
  .notif { left: auto; right: 14px; }
  .grid3 { grid-template-columns: 1fr 1fr; }
  .faq-in { grid-template-columns: 1fr; gap: 28px; }
  .final-card { grid-template-columns: 1fr; padding: 44px 32px; }
  .final-ph { display: none; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding: 0 18px; }
  .top-in { gap: 16px; height: 66px; }
  .brand img { height: 26px; }
  .auth { gap: 14px; }
  .auth a.strong { padding: 8px 16px; }
  section { padding: 56px 0; }
  .bar { border-radius: 26px; padding: 16px 18px; margin-bottom: 28px; }
  .mock { padding: 9px; border-width: 5px; border-radius: 24px; }
  .m-search { display: none; }
  .m-top { justify-content: space-between; }
  .m-stats { grid-template-columns: 1fr 1fr; }
  .m-cont { grid-template-columns: 1fr; }
  .m-tasks { grid-template-columns: 1fr; }
  .hero-art { padding-bottom: 0; }
  .notif { position: static; width: auto; margin-top: 12px; box-shadow: none; }
  .grid3, .grid2, .plans { grid-template-columns: 1fr; }
  .feat { min-height: 0; }
  .proc li { grid-template-columns: 52px 1fr 30px; padding: 20px 16px; gap: 8px; }
  .arr { width: 28px; height: 28px; }
  .strip { padding: 22px 18px; border-radius: 24px; gap: 8px 16px; }
  .plan { padding: 26px 22px; }
  .final-card { border-radius: 28px; padding: 36px 24px; }
  .foot-in > span { margin-inline-start: 0; }
}
