/* site/assets/css/style.css — charte « L'Œil-T » : bleu nuit, turquoise, or rare. */
:root {
  --nuit: #0B1E3F; --turq: #14B8AD; --turq-deep: #0B6E8A; --or: #F5B841;
  --fond: #F7FAFC; --tint: #EAF6F5; --texte: #0B1E3F; --gris: #4A5872; --bord: #DCE5EE;
  --wa-in: #FFFFFF; --wa-out: #DCF8C6; --rayon: 16px;
  --ombre: 0 10px 30px rgba(11, 30, 63, .08);
  --police: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
}
html[lang="ar"] { --police: 'Noto Sans Arabic', 'Inter', system-ui, sans-serif; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--police); color: var(--texte); background: var(--fond); line-height: 1.6; font-size: 17px; }
img { max-width: 100%; height: auto; }
a { color: var(--turq-deep); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; font-weight: 800; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); text-align: center; }
h3 { font-size: 1.15rem; font-weight: 700; }
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3 { letter-spacing: 0; }
.wrap { max-width: 1140px; margin-inline: auto; padding-inline: 20px; }
.narrow { max-width: 760px; }
.sub { text-align: center; color: var(--gris); max-width: 640px; margin: 0 auto 2.2rem; }
.small { font-size: .82rem; color: var(--gris); }

/* boutons — départ du dégradé #0A7C80 (5,0:1 avec le blanc) → --turq-deep (5,8:1) : AA sur toute la largeur */
.btn { display: inline-block; border: 0; cursor: pointer; text-decoration: none; font: inherit; font-weight: 700;
  color: #fff; background: linear-gradient(135deg, #0A7C80, var(--turq-deep)); padding: .85em 1.5em; border-radius: 999px;
  box-shadow: 0 6px 18px rgba(20, 184, 173, .35); transition: transform .15s, box-shadow .15s; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(20, 184, 173, .45); }
.btn:focus-visible, .chip:focus-visible, .langs button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--or); outline-offset: 2px; }
.btn--ghost { background: transparent; color: var(--turq-deep); box-shadow: inset 0 0 0 2px var(--turq-deep); }
.btn--small { padding: .55em 1.1em; font-size: .9rem; }
.btn[disabled] { opacity: .6; cursor: wait; }
.link { background: none; border: 0; color: inherit; text-decoration: underline; cursor: pointer; font: inherit; font-size: .85rem; padding: 0; }
.badge { display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--turq-deep); background: var(--tint); padding: .35em .9em; border-radius: 999px; margin-bottom: 1rem; }
html[lang="ar"] .badge { letter-spacing: 0; }
.badge--gold { background: var(--or); color: var(--nuit); }

/* en-tête */
.topbar { position: sticky; top: 0; z-index: 10; background: rgba(255, 255, 255, .92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--bord); }
.topbar__in { display: flex; align-items: center; gap: 1.2rem; min-height: 68px; }
.logo { display: flex; margin-inline-end: auto; }
.nav { display: flex; gap: 1.2rem; }
.nav a { color: var(--texte); text-decoration: none; font-weight: 600; font-size: .95rem; }
.langs { display: flex; gap: 2px; background: var(--tint); border-radius: 999px; padding: 3px; }
.langs button { border: 0; background: transparent; font: inherit; font-weight: 700; font-size: .85rem; padding: .3em .7em; border-radius: 999px; cursor: pointer; color: var(--gris); }
.langs button[aria-pressed="true"] { background: #fff; color: var(--nuit); box-shadow: var(--ombre); }

/* accroche */
.hero { background: radial-gradient(1000px 500px at 85% 0%, var(--tint), transparent 60%), #fff; padding: 64px 0 72px; }
.hero__in { display: grid; grid-template-columns: 1.2fr .8fr; gap: 48px; align-items: center; }
.lead { font-size: 1.15rem; color: var(--gris); }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; margin: 1.6rem 0 1rem; }
.proof { font-size: .9rem; color: var(--gris); }
.phone { background: var(--nuit); border-radius: 36px; padding: 14px; box-shadow: 0 30px 60px rgba(11, 30, 63, .25); max-width: 340px; justify-self: center; width: 100%; }
.phone__head { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 700; padding: 8px 10px 14px; }
.phone__body { background: #ECE5DD; border-radius: 24px; padding: 16px 12px; display: flex; flex-direction: column; gap: 8px; min-height: 300px; }
.msg { margin: 0; max-width: 85%; padding: .55em .8em; border-radius: 12px; font-size: .92rem; box-shadow: 0 1px 1px rgba(0, 0, 0, .08); }
.msg--in { background: var(--wa-in); align-self: flex-start; }
.msg--out { background: var(--wa-out); align-self: flex-end; }

/* sections */
.section { padding: 80px 0; }
.section--tint { background: var(--tint); }
.section--dark { background: var(--nuit); color: #fff; }
.section--dark h2 { text-align: start; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.card { background: #fff; border: 1px solid var(--bord); border-radius: var(--rayon); padding: 24px; box-shadow: var(--ombre); }
.card p { margin: 0; color: var(--gris); }
.card .ex { font-size: .92rem; }
.card__icon { font-size: 1.8rem; display: block; margin-bottom: .6rem; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.steps li { background: #fff; border-radius: var(--rayon); padding: 28px 24px; box-shadow: var(--ombre); }
.steps p { color: var(--gris); margin: 0; }
.steps__n { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: #fff; font-weight: 800; background: linear-gradient(135deg, #0A7C80, var(--turq-deep)); margin-bottom: .8rem; }

/* démo */
.demo { display: grid; grid-template-columns: .9fr 1.1fr; gap: 40px; align-items: start; }
.demo__intro p { color: #C9D4E5; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 1rem; }
.chip { border: 1px solid rgba(255, 255, 255, .3); background: transparent; color: #fff; font: inherit; font-weight: 600; padding: .45em 1em; border-radius: 999px; cursor: pointer; }
.chip.is-on { background: var(--turq); border-color: var(--turq); color: var(--nuit); }
.chat { background: #fff; color: var(--texte); border-radius: var(--rayon); padding: 16px; box-shadow: 0 20px 50px rgba(0, 0, 0, .35); }
.chat__log { background: #ECE5DD; border-radius: 12px; padding: 14px; height: 360px; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; }
.chat__log .msg { white-space: pre-wrap; overflow-wrap: anywhere; }
.chat__status { min-height: 1.4em; font-size: .85rem; color: var(--turq-deep); margin: .5rem 0; }
.chat__status.is-error { color: #B42318; }
.chat__form { display: flex; gap: 8px; }
.chat__form input { flex: 1; min-width: 0; font: inherit; padding: .75em 1em; border: 1px solid var(--bord); border-radius: 999px; }
.chat__foot { display: flex; justify-content: space-between; margin-top: .6rem; font-size: .85rem; color: var(--gris); }
.ts { margin: .6rem 0; min-height: 0; }

/* tarifs */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.plan { background: #fff; border-radius: var(--rayon); padding: 28px; box-shadow: var(--ombre); display: flex; flex-direction: column; position: relative; border: 2px solid transparent; }
.plan--pro { border-color: var(--or); transform: translateY(-8px); }
.plan--pro .badge { position: absolute; top: -14px; inset-inline-start: 24px; margin: 0; }
.plan__desc { color: var(--gris); margin: 0 0 1rem; }
.plan__price strong { font-size: 2rem; font-weight: 800; }
.plan ul { padding: 0; list-style: none; margin: 1rem 0 1.5rem; flex: 1; }
.plan li { padding-block: .35em; padding-inline-start: 1.6em; position: relative; }
.plan li::before { content: '✓'; position: absolute; inset-inline-start: 0; color: var(--turq); font-weight: 800; }
.plan .btn { text-align: center; }
.note { text-align: center; color: var(--gris); margin: 1.6rem 0 0; }
.note--strong { color: var(--texte); font-weight: 700; margin-top: .3rem; }

/* FAQ */
details { background: #fff; border: 1px solid var(--bord); border-radius: 12px; padding: 0 20px; margin-bottom: 10px; }
summary { cursor: pointer; font-weight: 700; padding: 16px 0; }
details p { margin: 0 0 16px; color: var(--gris); }

/* formulaire */
.form { background: #fff; border-radius: var(--rayon); padding: 28px; box-shadow: var(--ombre); display: grid; gap: 14px; }
.form label { display: grid; gap: 4px; font-weight: 600; font-size: .92rem; }
.form input, .form select, .form textarea { font: inherit; font-weight: 400; padding: .7em .9em; border: 1px solid var(--bord); border-radius: 10px; background: #fff; }
.form [aria-invalid="true"] { border-color: #B42318; }
.err { color: #B42318; font-style: normal; font-size: .82rem; font-weight: 400; min-height: 0; }
.form__status { margin: 0; font-weight: 700; }
.form__status.is-ok { color: #067647; }
.form__status.is-error { color: #B42318; }

/* pied de page */
.footer { background: var(--nuit); color: #C9D4E5; padding: 48px 0; text-align: center; }
.footer a { color: var(--turq); }
.footer__in p { margin: .4rem 0; }

/* mobile */
@media (max-width: 900px) {
  .hero__in, .demo { grid-template-columns: 1fr; }
  .grid3, .steps, .plans { grid-template-columns: 1fr; }
  .grid4 { grid-template-columns: 1fr 1fr; }
  .nav { display: none; }
  .plan--pro { transform: none; }
  .section { padding: 56px 0; }
}
@media (max-width: 520px) {
  .grid4 { grid-template-columns: 1fr; }
  .topbar .btn--small { display: none; }
  body { font-size: 16px; }
  .chat, .form { padding: 12px; }
}
@media (max-width: 360px) {
  .logo img { width: 120px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn { transition: none; } }
