/* Fhamtini — feuille de style de la vitrine (refonte « plus moderne » du 29/10/2026)
   Jetons de la charte retenue (palette A, couleurs WhatsApp) : encre vert sombre, menthe, lavis menthe, papier, safran. */
:root {
  --ink: #0B2F28;        /* texte : vert très sombre */
  --ink-soft: #3F5C55;
  --teal-dark: #075E54;  /* en-têtes sombres, comme l'en-tête WhatsApp */
  --night: #07211C;      /* fond du hero et du pied */
  --paper: #F0F2EB;
  --white: #FFFFFF;
  --mint: #00A884;       /* boutons, liens */
  --mint-deep: #008069;
  --mint-light: #7CE3C1; /* liens et accents sur fond sombre */
  --wa: #25D366;         /* signaux : point « en ligne », bouton WhatsApp */
  --mint-wash: #DCF8C6;  /* bulle de réponse, comme WhatsApp */
  --saffron: #F2B705;    /* l'idée : étincelle, points « en train d'écrire » */
  --line: #D8DED6;
  --radius-s: 12px; --radius: 18px; --radius-l: 28px;
  --shadow-l: 0 30px 80px rgba(7, 33, 28, .45);
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-ar: "Tajawal", "Segoe UI", Tahoma, sans-serif;
  --wrap: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font-body); font-size: 1.05rem; line-height: 1.6;
  color: var(--ink); background: var(--paper); overflow-x: hidden;
}
[lang="ar"], :lang(ar) { font-family: var(--font-ar); }
img, svg, video { max-width: 100%; }

a { color: var(--mint-deep); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 3px solid var(--saffron); outline-offset: 3px;
}

h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.1; margin: 0 0 .5em; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); line-height: 1.04; }
h1 em { font-style: italic; color: var(--wa); }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); }
h3 { font-size: 1.25rem; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
.sub { color: var(--ink-soft); font-size: 1.12rem; max-width: 58ch; }
.muted { color: var(--ink-soft); font-size: .9rem; }

/* Sur-titre en pastille */
.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem; margin: 0 0 1.1rem;
  font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--mint-deep); background: var(--mint-wash); border-radius: 999px; padding: .4rem .9rem;
}
.eyebrow::before { content: ""; width: .5rem; height: .5rem; border-radius: 50%; background: var(--wa); }

/* Conteneurs */
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 1.25rem; }
.wrap.narrow { max-width: 820px; }
.sec { padding: 5.5rem 0; }
.sec-white { background: var(--white); }
.sec-mint { background: linear-gradient(180deg, var(--paper), var(--mint-wash)); }
.sec-head { max-width: 64ch; margin-bottom: 2.6rem; }
.sec-head.center { text-align: center; margin-inline: auto; }
.sec-head.center .sub { margin-inline: auto; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: start; }
.center { text-align: center; }

/* Boutons */
.btn {
  display: inline-flex; align-items: center; gap: .5rem; padding: .95rem 1.5rem; border-radius: 999px;
  font-weight: 700; text-decoration: none; border: 2px solid transparent; cursor: pointer;
  font-family: inherit; font-size: 1rem; line-height: 1.2; transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-sm { padding: .6rem 1.05rem; font-size: .92rem; }
.btn-primary { background: var(--mint); color: var(--white); box-shadow: 0 10px 24px rgba(0, 168, 132, .28); }
.btn-primary:hover { background: var(--mint-deep); }
.btn-wa { background: var(--wa); color: var(--night); box-shadow: 0 10px 28px rgba(37, 211, 102, .32); }
.btn-wa:hover { background: #3BE07A; }
.btn-ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--ink); color: var(--white); }
.btn-ghost-light { border-color: rgba(255, 255, 255, .35); color: var(--white); background: transparent; }
.btn-ghost-light:hover { background: rgba(255, 255, 255, .1); border-color: var(--white); }
.btn .arrow { transition: transform .18s ease; }
.btn:hover .arrow { transform: translateX(3px); }

/* En-tête flottant, en verre sombre */
.top {
  position: sticky; top: 0; z-index: 50; color: var(--white);
  background: rgba(7, 33, 28, .78); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.top-in { display: flex; align-items: center; gap: 1.6rem; max-width: var(--wrap); margin: 0 auto; padding: .7rem 1.25rem; }
.brand { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; color: inherit; }
.brand-mark { width: 3rem; height: 3rem; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-family: var(--font-display); font-weight: 600; font-size: 1.45rem; letter-spacing: -0.01em; }
.brand-ar { font-family: var(--font-ar); font-weight: 700; font-size: 1rem; color: var(--wa); margin-top: .2rem; }
.top-nav { display: flex; gap: .2rem; margin-inline-start: auto; }
.top-nav a { color: rgba(255, 255, 255, .82); text-decoration: none; font-weight: 500; font-size: .95rem; padding: .45rem .8rem; border-radius: 999px; }
.top-nav a:hover { color: var(--white); background: rgba(255, 255, 255, .08); }
.top-right { display: flex; align-items: center; gap: .8rem; }
.lang { display: flex; gap: .15rem; border: 1px solid rgba(255, 255, 255, .18); border-radius: 999px; padding: .2rem; }
.lang a { color: rgba(255, 255, 255, .85); text-decoration: none; padding: .2rem .6rem; border-radius: 999px; font-size: .85rem; font-weight: 600; }
.lang a[aria-current="page"] { background: var(--white); color: var(--night); }

/* Hero sombre */
.hero {
  position: relative; color: var(--white); overflow: hidden;
  background:
    radial-gradient(70rem 36rem at 85% -15%, rgba(0, 168, 132, .38), transparent 62%),
    radial-gradient(44rem 26rem at -5% 110%, rgba(37, 211, 102, .16), transparent 60%),
    linear-gradient(180deg, var(--night), #0B2F28 55%, #0A2B25);
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(rgba(255, 255, 255, .07) 1px, transparent 1.2px) 0 0 / 28px 28px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, .9), transparent 85%);
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, .9), transparent 85%);
}
.hero-in {
  position: relative; display: grid; grid-template-columns: 1.08fr .92fr; gap: 3rem; align-items: center;
  max-width: var(--wrap); margin: 0 auto; padding: 4.5rem 1.25rem 5.5rem;
}
.hero .eyebrow { color: var(--mint-light); background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14); }
.hero h1 { color: var(--white); max-width: 14ch; }
.lead { font-size: 1.22rem; color: rgba(255, 255, 255, .78); max-width: 46ch; }
.lead strong { color: var(--white); }
.actions { display: flex; flex-wrap: wrap; gap: .8rem; margin: 1.8rem 0 1rem; }
.hero-note { color: rgba(255, 255, 255, .62); font-size: .92rem; max-width: 50ch; }
.trust { list-style: none; margin: 1.6rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; font-size: .92rem; color: rgba(255, 255, 255, .8); }
.trust li { display: inline-flex; align-items: center; gap: .45rem; }
.trust li::before { content: "✓"; font-weight: 800; color: var(--wa); }

/* Entrée en scène du hero */
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.hero-text > * { animation: rise .7s cubic-bezier(.2, .7, .2, 1) both; }
.hero-text > *:nth-child(2) { animation-delay: .08s; }
.hero-text > *:nth-child(3) { animation-delay: .16s; }
.hero-text > *:nth-child(4) { animation-delay: .24s; }
.hero-text > *:nth-child(5) { animation-delay: .32s; }
.hero-text > *:nth-child(6) { animation-delay: .4s; }
.stage { animation: rise .9s .25s cubic-bezier(.2, .7, .2, 1) both; }

/* La scène : halo, téléphone, étiquettes flottantes */
.stage { position: relative; justify-self: end; width: 100%; max-width: 420px; padding: 1.5rem 0; }
.glow { position: absolute; inset: -6% -28%; background: radial-gradient(closest-side, rgba(37, 211, 102, .32), transparent 72%); filter: blur(18px); pointer-events: none; }
.phone {
  position: relative; padding: .55rem; border-radius: 42px; background: #102E29;
  border: 1px solid rgba(255, 255, 255, .18); box-shadow: var(--shadow-l), inset 0 0 0 1px rgba(0, 0, 0, .45);
}
.phone::before { content: ""; position: absolute; top: .95rem; left: 50%; transform: translateX(-50%); width: 6.5rem; height: .42rem; border-radius: 999px; background: #22443C; }
.chat { position: relative; background: var(--white); border-radius: 34px; overflow: hidden; }
.chat-head { display: flex; align-items: center; gap: .8rem; padding: 1.7rem 1rem .9rem; background: var(--teal-dark); color: var(--white); }
.chat-avatar { display: inline-grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: 50%; background: var(--white); flex: none; }
.chat-avatar svg { width: 1.9rem; height: 1.9rem; }
.chat-name { font-weight: 600; }
.chat-status { font-size: .8rem; opacity: .85; display: flex; align-items: center; gap: .4rem; }
.dot { width: .5rem; height: .5rem; border-radius: 50%; background: var(--wa); display: inline-block; }
.thread {
  list-style: none; margin: 0; padding: 1rem 1rem 3rem; display: flex; flex-direction: column; gap: .55rem; min-height: 400px; color: var(--ink);
  background: linear-gradient(var(--paper), var(--paper)) padding-box, repeating-linear-gradient(135deg, transparent 0 14px, rgba(22, 168, 120, .06) 14px 15px) padding-box;
}
.msg { max-width: 86%; padding: .55rem .8rem .35rem; border-radius: 14px; font-size: .95rem; line-height: 1.45; position: relative;
  opacity: 0; transform: translateY(8px); transition: opacity .35s ease, transform .35s ease; }
.msg.show { opacity: 1; transform: none; }
.msg p { margin: 0 0 .15rem; }
.msg time { display: block; text-align: end; font-size: .7rem; color: var(--ink-soft); }
.msg .meta { display: flex; justify-content: flex-end; align-items: center; gap: .3rem; }
.msg .meta time { display: inline; }
.ticks { width: 1rem; height: .7rem; color: #53BDEB; }  /* les deux coches bleues « lu » de WhatsApp */
.from-client { align-self: flex-start; background: var(--white); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.from-bot { align-self: flex-end; background: var(--mint-wash); border-bottom-right-radius: 4px; }
.is-final p { font-size: 1.15rem; font-weight: 700; }
.is-final.show { box-shadow: 0 0 0 3px rgba(37, 211, 102, .45); }
.typing { position: absolute; inset-inline-start: 1rem; bottom: 1rem; display: none; gap: .3rem; padding: .55rem .7rem; background: var(--mint-wash); border-radius: 14px; }
.typing.on { display: inline-flex; }
.typing span { width: .45rem; height: .45rem; border-radius: 50%; background: var(--saffron); animation: blink 1s infinite ease-in-out; }
.typing span:nth-child(2) { animation-delay: .15s; }
.typing span:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 0%, 80%, 100% { opacity: .3; } 40% { opacity: 1; } }

.tag {
  position: absolute; z-index: 2; display: flex; align-items: center; gap: .6rem; padding: .6rem .85rem;
  background: var(--white); color: var(--ink); border-radius: 14px; box-shadow: 0 16px 40px rgba(7, 33, 28, .35);
  font-size: .82rem; line-height: 1.25; white-space: nowrap; animation: float 5s ease-in-out infinite alternate;
}
.tag strong { display: block; font-size: .95rem; }
/* Les étiquettes débordent du téléphone vers l'extérieur, sans couvrir les bulles */
.tag-1 { top: .1rem; inset-inline-start: -5.5rem; }
.tag-2 { top: 47%; inset-inline-end: -6.5rem; animation-delay: 1.3s; }
.tag-3 { bottom: .4rem; inset-inline-start: -8.5rem; animation-delay: 2.6s; }
@media (max-width: 1260px) { .tag-2 { inset-inline-end: -1.2rem; top: 58%; } }
.tag-clock { display: inline-grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; background: var(--night); color: var(--wa); font-weight: 800; font-size: .72rem; }
.tag-langs { font-family: var(--font-ar); font-weight: 700; color: var(--mint-deep); font-size: 1rem; }
.tag-avatar { display: inline-grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; background: var(--saffron); color: var(--night); font-weight: 800; }
@keyframes float { from { transform: translateY(0); } to { transform: translateY(-9px); } }

/* Bandeau défilant des secteurs */
.marquee { overflow: hidden; background: var(--white); border-bottom: 1px solid var(--line); }
.marquee-track { display: flex; width: max-content; animation: slide 46s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee ul { list-style: none; margin: 0; padding: 1rem 0; display: flex; white-space: nowrap; }
.marquee li { display: inline-flex; align-items: center; gap: 1.6rem; padding-inline-end: 1.6rem; font-weight: 600; color: var(--ink-soft); font-size: .98rem; }
.marquee li::before { content: "◆"; color: var(--saffron); font-size: .6rem; }
@keyframes slide { to { transform: translateX(-50%); } }
html[dir="rtl"] .marquee-track { animation-name: slide-rtl; }
@keyframes slide-rtl { to { transform: translateX(50%); } }

/* Vidéo */
.player { max-width: 940px; margin: 0 auto 2.4rem; border-radius: var(--radius-l); overflow: hidden; background: var(--night);
  box-shadow: 0 34px 80px rgba(11, 47, 40, .28); border: 1px solid rgba(11, 47, 40, .1); }
.player video { width: 100%; aspect-ratio: 16 / 9; display: block; }
.player-soon { position: relative; }
.player-soon img { display: block; width: 100%; height: auto; }
.player-soon span { position: absolute; inset-inline-start: 1rem; bottom: 1rem; background: var(--night); color: var(--white); font-size: .85rem; font-weight: 600; padding: .4rem .8rem; border-radius: 999px; }
.facts { list-style: none; margin: 0 auto 2rem; padding: 0; max-width: 940px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.facts li { display: flex; gap: .8rem; align-items: flex-start; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.1rem; font-size: .98rem; }
.facts li::before { content: "✓"; flex: none; display: grid; place-items: center; width: 1.6rem; height: 1.6rem; border-radius: 50%; background: var(--mint-wash); color: var(--mint-deep); font-weight: 800; font-size: .85rem; }

/* Étapes (vraie séquence : les numéros portent l'ordre) */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; counter-reset: etape; }
.steps li { position: relative; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.7rem 1.5rem 1.4rem; overflow: hidden; transition: transform .25s ease, box-shadow .25s ease; }
.steps li:hover { transform: translateY(-4px); box-shadow: 0 20px 44px rgba(11, 47, 40, .12); }
.steps li::before { counter-increment: etape; content: counter(etape); position: absolute; top: .2rem; inset-inline-end: 1rem; font-family: var(--font-display); font-style: italic; font-size: 4.2rem; line-height: 1; color: var(--mint); opacity: .22; }
.step-icon { width: 3.4rem; height: 3.4rem; padding: .5rem; margin-bottom: 1rem; display: block; background: var(--mint-wash); border-radius: 14px; }
.steps h3 { margin-bottom: .4rem; }
.steps p { margin: 0; color: var(--ink-soft); font-size: .98rem; }

/* Franc-jeu : grille « bento » sur fond sombre */
.sec-dark { color: var(--white); background: linear-gradient(180deg, var(--teal-dark), #0B2F28 70%, var(--night)); }
.sec-dark h2 { color: var(--white); }
.sec-dark .sub { color: rgba(255, 255, 255, .72); }
.sec-dark .eyebrow { color: var(--mint-light); background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); }
.bento { display: grid; grid-template-columns: 1.15fr 1fr 1fr; grid-auto-rows: minmax(0, auto); gap: 1rem; }
.cell { border-radius: var(--radius); padding: 1.5rem 1.5rem 1.3rem; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); }
.cell h3 { margin-bottom: .5rem; }
.cell p { margin: 0; color: rgba(255, 255, 255, .72); font-size: .98rem; }
.cell-yes { grid-row: span 2; background: var(--mint-wash); color: var(--ink); border-color: transparent; }
.cell-yes h3 { font-size: 1.5rem; }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: .7rem; }
.checks li { display: flex; gap: .7rem; align-items: flex-start; }
.checks li::before { content: "✓"; flex: none; display: grid; place-items: center; width: 1.5rem; height: 1.5rem; border-radius: 50%; background: var(--mint-deep); color: var(--white); font-weight: 800; font-size: .8rem; margin-top: .15rem; }
.no-mark { display: inline-grid; place-items: center; width: 2rem; height: 2rem; border-radius: 10px; background: rgba(242, 183, 5, .18); color: var(--saffron); font-weight: 800; margin-bottom: .8rem; }

/* Prix : une seule carte, bord dégradé menthe → safran */
.price-card {
  max-width: 640px; margin: 0 auto; padding: 2.2rem 2.2rem 1.8rem; border-radius: var(--radius-l); border: 1.5px solid transparent;
  background: linear-gradient(var(--white), var(--white)) padding-box, linear-gradient(135deg, var(--mint), var(--saffron)) border-box;
  box-shadow: 0 30px 70px rgba(0, 128, 105, .16);
}
.price-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: .5rem 1.5rem; border-bottom: 1px solid var(--line); padding-bottom: 1.2rem; margin-bottom: 1.3rem; }
.price-top h3 { margin: 0; font-size: 1.4rem; }
.amount { font-family: var(--font-display); font-size: 2.5rem; font-weight: 600; margin: 0; color: var(--mint-deep); line-height: 1; letter-spacing: -0.02em; }
.amount span { font-family: var(--font-body); font-size: 1rem; font-weight: 600; color: var(--ink-soft); letter-spacing: 0; }
.setup { width: 100%; color: var(--ink-soft); margin: 0; font-size: .98rem; }
.price-card .checks { margin-bottom: 1.6rem; }
.price-card .checks li::before { background: var(--mint-wash); color: var(--mint-deep); }
.more { max-width: 640px; margin: 1.4rem auto 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem 1.5rem; padding: 1.1rem 1.4rem; border: 1px dashed var(--line); border-radius: var(--radius); color: var(--ink-soft); font-size: .96rem; }
.more p { margin: 0; max-width: 46ch; }
.link-arrow { font-weight: 700; text-decoration: none; white-space: nowrap; }
.link-arrow:hover { text-decoration: underline; }

/* Questions dépliables */
.faq details { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.3rem; margin-bottom: .7rem; }
.faq details[open] { background: var(--white); box-shadow: 0 14px 36px rgba(11, 47, 40, .08); }
summary { cursor: pointer; font-weight: 700; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; flex: none; display: grid; place-items: center; width: 1.8rem; height: 1.8rem; border-radius: 50%; background: var(--mint-wash); color: var(--mint-deep); font-family: var(--font-display); font-size: 1.3rem; line-height: 1; }
details[open] summary::after { content: "−"; }
details p { margin: .8rem 0 0; color: var(--ink-soft); max-width: 70ch; }

/* Formulaire */
.form { display: grid; gap: 1rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-l); padding: 1.8rem; box-shadow: 0 30px 70px rgba(11, 47, 40, .12); }
.form label { display: grid; gap: .35rem; font-weight: 600; font-size: .92rem; }
.form input, .form select, .form textarea { font: inherit; font-weight: 400; padding: .78rem .9rem; border: 1px solid var(--line); border-radius: var(--radius-s); background: var(--paper); color: var(--ink); transition: border-color .15s ease, box-shadow .15s ease, background .15s ease; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--mint); background: var(--white); box-shadow: 0 0 0 4px rgba(0, 168, 132, .18); }
.form textarea { resize: vertical; }
.form .check { display: flex; align-items: flex-start; gap: .6rem; font-weight: 400; }
.form .check input { margin-top: .3rem; accent-color: var(--mint-deep); }
.form .btn { justify-self: start; }
.form-note { margin: 0; font-size: .85rem; color: var(--ink-soft); }
.contact-alt { margin-top: 1rem; }
/* Champ piège : hors écran pour les humains, présent pour les robots ; rogné dans le cadre, jamais -9999px */
.trap { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); opacity: 0; pointer-events: none; }

/* Pied de page sombre */
.foot { background: var(--night); color: rgba(255, 255, 255, .68); }
.foot .wrap { padding: 3rem 1.25rem 2.4rem; font-size: .92rem; }
.foot-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; margin-bottom: 1.6rem; }
.foot .brand { color: var(--white); }
.foot p { margin: 0 0 .5rem; max-width: 80ch; }
.foot a { color: var(--mint-light); }
.foot .muted { color: rgba(255, 255, 255, .45); }
.social { list-style: none; margin: 0; padding: 0; display: flex; gap: .6rem; }
.social a { display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: 50%; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14); color: var(--white); transition: background .18s ease, transform .18s ease; }
.social a:hover { background: var(--wa); border-color: var(--wa); color: var(--night); transform: translateY(-2px); }
.social svg { width: 1.15rem; height: 1.15rem; fill: currentColor; }

/* Apparitions au défilement (classe posée par app.js) */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s cubic-bezier(.2, .7, .2, 1), transform .7s cubic-bezier(.2, .7, .2, 1); }
.reveal.in { opacity: 1; transform: none; }
.steps li:nth-child(2), .facts li:nth-child(2), .bento .cell:nth-child(3) { transition-delay: .1s; }
.steps li:nth-child(3), .facts li:nth-child(3), .bento .cell:nth-child(4) { transition-delay: .2s; }
.bento .cell:nth-child(5) { transition-delay: .3s; }

/* Version arabe : Tajawal partout */
html[lang="ar"] body, html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3, html[lang="ar"] .brand-name, html[lang="ar"] .amount, html[lang="ar"] .steps li::before { font-family: var(--font-ar); }
html[lang="ar"] h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 700; letter-spacing: 0; }
html[lang="ar"] h2, html[lang="ar"] h3 { font-weight: 700; letter-spacing: 0; }
html[lang="ar"] h1 em { font-style: normal; }
html[lang="ar"] .eyebrow { letter-spacing: 0; }
html[lang="ar"] .steps li::before { font-style: normal; }

/* Mouvement réduit : tout apparaît, rien ne bouge */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .msg, .reveal { opacity: 1; transform: none; transition: none; }
  .typing span, .hero-text > *, .stage, .tag, .marquee-track { animation: none; }
  .marquee ul { white-space: normal; flex-wrap: wrap; justify-content: center; }
  .marquee ul[aria-hidden="true"] { display: none; }
  .btn:hover { transform: none; }
}

/* Écrans moyens et téléphones */
@media (max-width: 960px) {
  .hero-in, .two { grid-template-columns: 1fr; }
  .hero-in { padding-top: 3.2rem; padding-bottom: 3.8rem; }
  .stage { justify-self: center; max-width: 380px; margin-top: 1rem; }
  .tag { display: none; }
  .top-nav { display: none; }
  .steps, .facts { grid-template-columns: 1fr 1fr; }
  .bento { grid-template-columns: 1fr 1fr; }
  .cell-yes { grid-row: auto; grid-column: span 2; }
}
@media (max-width: 640px) {
  .sec { padding: 3.6rem 0; }
  .sec-head { margin-bottom: 1.8rem; }
  .steps, .facts, .bento { grid-template-columns: 1fr; }
  .cell-yes { grid-column: auto; }
  .thread { min-height: 0; }
  .price-card { padding: 1.5rem 1.3rem; }
  .form { padding: 1.3rem; }
  .top-in { gap: .8rem; }
  .top .btn { display: none; }
  .brand-mark { width: 2.6rem; height: 2.6rem; }
  .lead { font-size: 1.1rem; }
}
