/* SaraCake — saravision.online/saracake
 * Même langage visuel que SaraLingo et saravision.online, déclinaison
 * velours rosé & or (les couleurs de l application). */
:root {
  --bg: #08060c;
  --panel: #100c15;
  --gold: #f4d675;
  --gold2: #a96a27;
  --paper: #f7f2e8;
  --muted: #a69eaa;
  --soft: #c1b9c3;
  --line: rgba(244, 214, 117, .2);
  --edge: rgba(255, 255, 255, .11);
  --ok: #8fdcb0;
  --font: Manrope, Arial, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { position: relative; margin: 0; background: var(--bg); color: var(--paper); font-family: var(--font); line-height: 1.7; overflow-x: hidden; }
html[lang="ar"] body { --font: Cairo, Manrope, Arial, sans-serif; }
a { color: var(--gold); }
img { max-width: 100%; display: block; }
.container { width: min(1240px, 100% - 32px); margin-inline: auto; }

/* Atmosphere, as on the main site */
.noise { position: fixed; inset: 0; pointer-events: none; opacity: .055; z-index: 30;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.9'/%3E%3C/svg%3E"); }
.atmo { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: -1; }
.orb { position: absolute; filter: blur(80px); border-radius: 50%; pointer-events: none; z-index: -1; }
.orb-one { width: 430px; height: 430px; background: #652c77; top: 160px; inset-inline-end: -250px; opacity: .23; }
.orb-two { width: 400px; height: 400px; background: #a87524; top: 1500px; inset-inline-start: -320px; opacity: .13; }

/* Header */
header.site { position: sticky; top: 0; z-index: 20; backdrop-filter: blur(14px);
  background: rgba(8, 6, 12, .78); border-bottom: 1px solid rgba(255, 255, 255, .09); }
header.site .bar { display: flex; align-items: center; gap: 22px; height: 78px; }
.back { color: var(--muted); text-decoration: none; font: 500 11px 'DM Mono', monospace; letter-spacing: .08em; text-transform: uppercase;
  border: 1px solid var(--edge); padding: 8px 10px; white-space: nowrap; }
.back::before { content: "← "; color: var(--gold); }
html[dir="rtl"] .back::before { content: "→ "; }
html[lang="ar"] .back { font: 600 13px var(--font); letter-spacing: 0; }
.back:hover { color: var(--gold); border-color: var(--line); }
@media (max-width: 520px) {
  html .back, html[lang="ar"] .back { font-size: 0; padding: 8px 11px; }
  .back::before { font-size: 14px; content: "←"; }
  html[dir="rtl"] .back::before { content: "→"; }
  header.site .bar { gap: 12px; }
  .brand { font-size: .95rem; }
}
.brand { display: flex; align-items: center; gap: 12px; color: var(--paper); text-decoration: none; font-weight: 800; font-size: 1.05rem; letter-spacing: -.02em; }
.brand img { width: 42px; height: 42px; border-radius: 11px; }
nav.links { display: flex; gap: 28px; margin-inline-start: auto; }
nav.links a { color: #d3ccd4; text-decoration: none; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
html[lang="ar"] nav.links a { font-size: 14px; letter-spacing: 0; }
nav.links a:hover { color: var(--gold); }
.lang { display: flex; border: 1px solid var(--line); }
.lang button { background: none; border: 0; color: var(--muted); font: 500 11px 'DM Mono', monospace; letter-spacing: .1em;
  padding: 8px 11px; cursor: pointer; }
.lang button[aria-pressed="true"] { background: var(--gold); color: var(--bg); }
@media (max-width: 860px) { nav.links { display: none; } .lang { margin-inline-start: auto; } }

/* Eyebrows */
.eyebrow { font: 500 10px 'DM Mono', monospace; letter-spacing: .16em; color: var(--gold); display: flex; gap: 10px; align-items: center; text-transform: uppercase; margin-bottom: 18px; }
.eyebrow::before { content: ""; display: block; width: 28px; height: 1px; background: var(--gold); }
html[lang="ar"] .eyebrow { font-size: 12px; letter-spacing: .04em; }

/* Hero */
.hero { display: grid; grid-template-columns: 1.05fr .95fr; gap: 32px; align-items: center; padding: 90px 0 70px; position: relative; }
.hero h1 { font-size: clamp(2.6rem, 6vw, 5rem); letter-spacing: -.055em; line-height: .98; margin: 0 0 26px; font-weight: 700; }
html[lang="ar"] .hero h1 { letter-spacing: 0; line-height: 1.3; }
.hero h1 .hl, h2 em { font-family: 'Playfair Display', serif; font-style: italic; font-weight: 600; color: var(--gold); }
.hero p.lead { max-width: 470px; color: var(--soft); font-size: 15px; line-height: 1.8; margin: 0 0 32px; }
.cta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 12px; text-decoration: none;
  font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: 16px 18px;
  color: var(--paper); border: 1px solid var(--edge); background: rgba(255, 255, 255, .03); transition: .25s; }
html[lang="ar"] .btn { font-size: 14px; letter-spacing: 0; }
.btn:hover { border-color: var(--gold); color: var(--gold); }
.btn.gold, .btn.primary { background: linear-gradient(135deg, #f9e59b, #c2883e); color: #190f15; border: 0; box-shadow: 0 8px 32px rgba(204, 145, 49, .18); }
.btn.gold:hover, .btn.primary:hover { transform: translateY(-3px); box-shadow: 0 14px 36px rgba(204, 145, 49, .32); color: #190f15; }
.btn[aria-disabled="true"] { opacity: .5; pointer-events: none; }
.badge-trial { display: inline-block; margin-top: 22px; padding: 8px 14px; border: 1px solid var(--line);
  color: var(--gold); font: 500 11px 'DM Mono', monospace; letter-spacing: .08em; }
html[lang="ar"] .badge-trial { font: 600 14px var(--font); letter-spacing: 0; }
.tutors { position: relative; display: flex; justify-content: center; align-items: center; min-height: 380px; }
.tutors::before { content: ""; position: absolute; width: 420px; height: 420px; max-width: 92vw; max-height: 92vw; left: 50%; top: 50%;
  transform: translate(-50%, -50%); border-radius: 50%; border: 1px solid rgba(244, 214, 117, .28);
  box-shadow: 0 0 0 60px rgba(244, 214, 117, .03), 0 0 0 120px rgba(244, 214, 117, .02); }
.tutor { position: relative; margin: 0; border-radius: 50%; aspect-ratio: 1; padding: 6px;
  background: linear-gradient(135deg, #f9e59b, #c2883e); box-shadow: 0 24px 60px rgba(0, 0, 0, .55); }
.tutor img, .tutor canvas { display: block; width: 100%; height: 100%; border-radius: 50%; }
.tutor canvas { position: absolute; inset: 6px; width: calc(100% - 12px); height: calc(100% - 12px); opacity: 0; transition: opacity .4s; }
.tutor canvas.live { opacity: 1; }
.tutor figcaption { position: absolute; bottom: 4%; inset-inline-start: 50%; transform: translateX(-50%); padding: 3px 12px;
  background: var(--bg); border: 1px solid var(--line); color: var(--gold); font: 500 11px 'DM Mono', monospace; letter-spacing: .12em; text-transform: uppercase; }
html[dir="rtl"] .tutor figcaption { transform: translateX(50%); }
.tutor.sara { width: min(300px, 56vw); z-index: 1; }
.tutor.salim { width: min(230px, 43vw); margin-inline-start: -7%; margin-top: 22%; }
.hero > * { min-width: 0; }
.eyebrow { flex-wrap: wrap; }
@media (max-width: 860px) { .hero { grid-template-columns: minmax(0, 1fr); text-align: center; padding-top: 56px; } .hero p.lead { margin-inline: auto; }
  .cta { justify-content: center; } .hero .eyebrow { justify-content: center; } }

/* Marquee strip */
.strip { border-block: 1px solid rgba(255, 255, 255, .08); overflow: hidden; white-space: nowrap; padding: 18px 0; }
.strip div { display: inline-flex; gap: 28px; font: 500 12px 'DM Mono', monospace; letter-spacing: .16em; color: var(--soft); animation: slide 30s linear infinite; }
.strip i { color: var(--gold); font-style: normal; }
@keyframes slide { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .strip div { animation: none; } }

/* Sections */
section { padding: 110px 0; }
h2 { font-size: clamp(2rem, 4.4vw, 3.4rem); letter-spacing: -.05em; line-height: 1.05; margin: 0 0 14px; font-weight: 700; }
html[lang="ar"] h2 { letter-spacing: 0; line-height: 1.35; }
.sub { color: var(--muted); font-size: 14px; max-width: 520px; margin: 0 0 48px; }
.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.card { border: 1px solid var(--edge); padding: 26px; position: relative;
  background: linear-gradient(140deg, rgba(255, 255, 255, .055), transparent 45%); transition: transform .35s, border-color .35s; }
.grid .card:hover { border-color: var(--gold); transform: translateY(-6px); }
.grid .card:first-child { background: linear-gradient(140deg, rgba(190, 138, 209, .18), rgba(31, 19, 40, .6) 60%); }
.card .ico { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--gold); font-size: 1.35rem; margin: 22px 0 18px; }
.card .no { font: 10px 'DM Mono', monospace; color: var(--gold); letter-spacing: .12em; }
.card h3 { margin: 0 0 10px; font-size: 1.45rem; letter-spacing: -.03em; line-height: 1.15; }
.card p, .card li { color: #b9b1bd; font-size: 13.5px; margin: 0; }
.steps { counter-reset: s; display: grid; gap: 0; padding: 0; margin: 0; border-top: 1px solid var(--edge); }
.steps li { list-style: none; counter-increment: s; display: flex; gap: 22px; align-items: baseline;
  border-bottom: 1px solid var(--edge); padding: 22px 4px; color: var(--soft); }
.steps li::before { content: "0" counter(s); font: 500 12px 'DM Mono', monospace; color: var(--gold); letter-spacing: .12em; flex: 0 0 28px; }
.steps b { color: var(--paper); }

/* Pricing */
.price-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.price-grid .card h3 { font-size: 1.15rem; }
table.costs { width: 100%; border-collapse: collapse; }
table.costs td { padding: 10px 2px; border-bottom: 1px solid rgba(255, 255, 255, .07); color: var(--soft); font-size: 13.5px; }
table.costs td:last-child { text-align: end; color: var(--gold); font-family: 'DM Mono', monospace; white-space: nowrap; }
.big { font-family: 'Playfair Display', serif; font-style: italic; font-size: 4rem; line-height: 1; color: var(--gold); margin: 12px 0; }
.note { color: var(--muted); font-size: 12.5px; }
.card .note { margin-top: 14px; }
#pricing-live > .note { margin-top: 22px; }

/* FAQ */
details { border-bottom: 1px solid var(--edge); padding: 20px 4px; }
details:first-of-type { border-top: 1px solid var(--edge); }
summary { cursor: pointer; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--gold); font-family: 'DM Mono', monospace; }
details[open] summary::after { content: "−"; }
details p { color: var(--muted); margin: 12px 0 0; font-size: 14px; }

/* Legal pages */
.legal { max-width: 820px; padding: 64px 0 96px; }
.legal h1 { font-size: clamp(2rem, 5vw, 3rem); letter-spacing: -.04em; line-height: 1.1; }
html[lang="ar"] .legal h1 { letter-spacing: 0; }
.legal h2 { font-size: 1.15rem; letter-spacing: 0; margin-top: 34px; color: var(--gold); }
.legal p, .legal li { color: #d3ccd4; font-size: 15px; }
.updated { color: var(--muted); font: 12px 'DM Mono', monospace; letter-spacing: .06em; margin-top: 40px; }

footer.site { border-top: 1px solid rgba(255, 255, 255, .09); padding: 40px 0 44px; color: var(--muted); font-size: 12px; }
footer.site .row { display: flex; flex-wrap: wrap; gap: 22px; justify-content: space-between; align-items: center; }
footer.site a { color: #d3ccd4; text-decoration: none; text-transform: uppercase; letter-spacing: .08em; }
html[lang="ar"] footer.site a { text-transform: none; letter-spacing: 0; font-size: 13px; }
footer.site a:hover { color: var(--gold); }
footer.site .by { display: flex; align-items: center; gap: 12px; }
footer.site .by img { width: 92px; height: 60px; object-fit: contain; }
[hidden] { display: none !important; }

/* ---- Additions communes Sara Chef / SaraCake (même base que SaraLingo) ---- */
.tutors.solo .tutor.sara { width: min(340px, 64vw); }
.tutors.solo { min-height: 440px; }
.tutors .phone { position: absolute; width: min(150px, 28vw); height: auto; inset-inline-end: 0; bottom: 0; border-radius: 18px;
  border: 5px solid #1b1418; box-shadow: 0 24px 60px rgba(0, 0, 0, .6); overflow: hidden; z-index: 2; }
.banner { border: 1px solid var(--edge); margin-top: 8px; }
.banner img { width: 100%; height: auto; }
.gallery { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(190px, 230px); gap: 18px; overflow-x: auto;
  padding: 6px 2px 18px; scroll-snap-type: x mandatory; scrollbar-color: var(--gold2) transparent; }
.gallery figure { margin: 0; scroll-snap-align: start; }
.gallery img { width: 100%; height: auto; border-radius: 22px; border: 5px solid #1b1418; box-shadow: 0 18px 40px rgba(0, 0, 0, .5); }
.gallery figcaption { margin-top: 12px; text-align: center; color: var(--soft); font-size: 13px; }
.plans { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.plan { display: flex; flex-direction: column; }
.plan .tag { align-self: flex-start; font: 500 10px "DM Mono", monospace; letter-spacing: .12em; color: var(--bg); background: var(--gold); padding: 3px 8px; margin-bottom: 12px; }
html[lang="ar"] .plan .tag { font: 700 12px var(--font); letter-spacing: 0; }
.plan .big { font-size: 2.7rem; margin: 6px 0 4px; }
.plan .big small { font-size: 1rem; font-style: normal; font-family: var(--font); color: var(--soft); margin-inline-start: 6px; }
.plan ul { margin: 14px 0 0; padding-inline-start: 18px; }
.plan li { margin-bottom: 6px; }
.plan.highlight { border-color: var(--gold); }
.plan.free { background: linear-gradient(140deg, rgba(255, 255, 255, .07), transparent 55%); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: minmax(0, 1fr); } }
.checks { list-style: none; padding: 0; margin: 0 0 28px; }
.checks li { position: relative; padding-inline-start: 30px; margin-bottom: 12px; color: var(--soft); }
.checks li::before { content: "✦"; position: absolute; inset-inline-start: 0; color: var(--gold); }
.legal-links { display: grid; gap: 10px; }
@media (min-width: 900px) { .grid { grid-template-columns: repeat(3, 1fr); } }

/* Thème velours rosé */
:root { --bg: #0e0709; --panel: #1a0e12; --gold: #ecc77e; --muted: #b3a0a5; --soft: #d6c3c7; }
.orb-one { background: #8e3a4c; opacity: .3; }
.orb-two { background: #b07a3a; opacity: .14; }
header.site { background: rgba(14, 7, 9, .8); }
.grid .card:first-child { background: linear-gradient(140deg, rgba(201, 120, 135, .2), rgba(45, 20, 28, .6) 60%); }
.card p, .card li { color: #c4b2b7; }

#regles .card { display: flex; flex-direction: column; }
#regles .card .ico { margin-top: 0; }
#regles .checks { margin: 6px 0 22px; flex: 1; }
#regles .checks li { font-size: 13.5px; }
#regles .btn { align-self: flex-start; }
