/* Agent IA Maroc — v2 « startup tech » : fond sombre, vert et citron du logo. */
:root {
  --nuit: #04130f;
  --nuit-2: #07211b;
  --vert-fonce: #0b4f41;
  --vert: #0f7a62;
  --menthe: #3fd9a8;
  --citron: #c9f23c;
  --creme: #f4efe6;
  --texte: #e9f2ee;
  --doux: #9fb7ae;
  --verre: rgba(255, 255, 255, 0.06);
  --verre-bord: rgba(255, 255, 255, 0.12);
  --rayon: 22px;
  --large: 1160px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--nuit);
  color: var(--texte);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Noto Sans Arabic", "Geeza Pro", Tahoma, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
}
html[dir="rtl"] body { font-size: 18px; line-height: 1.8; }
a { color: var(--citron); }
img { max-width: 100%; }

/* Une seule langue à la fois : les blocs marqués data-lang ne s'affichent que dans la langue choisie. */
[data-lang] { display: none !important; }
html[data-l="ar"] [data-lang="ar"],
html[data-l="fr"] [data-lang="fr"],
html[data-l="en"] [data-lang="en"] { display: revert !important; }
html[data-l="ar"] span[data-lang="ar"],
html[data-l="fr"] span[data-lang="fr"],
html[data-l="en"] span[data-lang="en"] { display: inline !important; }

.conteneur { width: 100%; max-width: var(--large); margin: 0 auto; padding: 0 16px; }

/* Fond : halos lumineux */
.halo { position: fixed; inset: 0; pointer-events: none; z-index: -1; overflow: hidden; }
.halo::before, .halo::after {
  content: ""; position: absolute; width: 70vmax; height: 70vmax; border-radius: 50%; filter: blur(90px); opacity: .45;
}
.halo::before { background: radial-gradient(circle, var(--vert) 0%, transparent 65%); top: -30vmax; inset-inline-end: -20vmax; }
.halo::after { background: radial-gradient(circle, rgba(201, 242, 60, .35) 0%, transparent 60%); bottom: -40vmax; inset-inline-start: -25vmax; opacity: .25; }
.grille-fond {
  position: absolute; inset: 0; z-index: -1; opacity: .25;
  background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 50% 0%, black 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 0%, black 20%, transparent 70%);
}

/* Barre du haut */
.barre {
  position: sticky; top: 0; z-index: 20;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  background: rgba(4, 19, 15, .7); border-bottom: 1px solid var(--verre-bord);
}
.barre .conteneur { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 64px; }
.marque { display: flex; align-items: center; gap: 10px; color: var(--texte); text-decoration: none; font-weight: 800; letter-spacing: -.01em; }
.marque img { width: 34px; height: 34px; border-radius: 9px; }
.marque span { white-space: nowrap; }
.droite { display: flex; align-items: center; gap: 10px; }
.langues {
  display: flex; padding: 3px; border-radius: 999px; background: var(--verre); border: 1px solid var(--verre-bord);
}
.langues button {
  border: 0; background: transparent; color: var(--doux); font: inherit; font-size: 13px; font-weight: 700;
  padding: 6px 10px; border-radius: 999px; cursor: pointer; line-height: 1;
}
.langues button[aria-pressed="true"] { background: var(--citron); color: var(--nuit); }
.bouton {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--citron); color: var(--nuit); font-weight: 800; text-decoration: none;
  padding: 14px 24px; border-radius: 999px; border: 0; white-space: nowrap;
  box-shadow: 0 0 0 0 rgba(201, 242, 60, .5); transition: transform .2s, box-shadow .2s;
}
.bouton:hover { transform: translateY(-2px); box-shadow: 0 10px 34px -8px rgba(201, 242, 60, .6); color: var(--nuit); }
.bouton.petit { padding: 9px 16px; font-size: 14px; }
.bouton.fantome { background: transparent; color: var(--texte); border: 1px solid var(--verre-bord); }
.bouton.fantome:hover { border-color: var(--citron); color: var(--citron); box-shadow: none; }
@media (max-width: 640px) { .barre .bouton.petit { display: none; } }

/* Accueil */
.accueil { position: relative; padding: 56px 0 40px; }
.accueil .conteneur { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
@media (max-width: 900px) { .accueil .conteneur { grid-template-columns: 1fr; } }
.etiquette {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px;
  background: var(--verre); border: 1px solid var(--verre-bord); color: var(--doux); font-size: 14px; margin-bottom: 18px;
}
.etiquette .point { width: 8px; height: 8px; border-radius: 50%; background: var(--menthe); box-shadow: 0 0 0 0 var(--menthe); animation: pouls 2s infinite; }
@keyframes pouls { 0% { box-shadow: 0 0 0 0 rgba(63,217,168,.7); } 70% { box-shadow: 0 0 0 10px rgba(63,217,168,0); } 100% { box-shadow: 0 0 0 0 rgba(63,217,168,0); } }
h1 {
  font-size: clamp(36px, 7vw, 68px); line-height: 1.08; letter-spacing: -.03em; margin: 0 0 20px; font-weight: 850;
}
html[dir="rtl"] h1 { line-height: 1.3; letter-spacing: 0; }
.degrade { background: linear-gradient(90deg, var(--citron), var(--menthe)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.chapeau { color: var(--doux); font-size: clamp(17px, 2.4vw, 20px); max-width: 560px; margin: 0 0 30px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Téléphone de démonstration */
.scene { position: relative; display: flex; justify-content: center; }
.scene::before {
  content: ""; position: absolute; width: 340px; height: 340px; border-radius: 50%; top: 18%;
  background: radial-gradient(circle, rgba(201,242,60,.35), transparent 70%); filter: blur(40px);
}
.telephone {
  position: relative; width: min(340px, 92vw); height: 640px; border-radius: 46px; padding: 12px;
  background: linear-gradient(160deg, #1d2b27, #0a1411); border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 40px 80px -20px rgba(0,0,0,.8), inset 0 0 0 2px rgba(255,255,255,.04);
}
.ecran { position: relative; height: 100%; border-radius: 36px; overflow: hidden; background: #0b1512; display: flex; flex-direction: column; }
.encoche { position: absolute; top: 8px; left: 50%; transform: translateX(-50%); width: 96px; height: 26px; border-radius: 20px; background: #000; z-index: 3; }
.entete-chat {
  display: flex; align-items: center; gap: 10px; padding: 44px 14px 12px; background: rgba(255,255,255,.04);
  border-bottom: 1px solid rgba(255,255,255,.07); direction: ltr;
}
.entete-chat img { width: 34px; height: 34px; border-radius: 50%; }
.entete-chat .nom { font-weight: 700; font-size: 14px; line-height: 1.2; }
.entete-chat .statut { font-size: 12px; color: var(--menthe); }
.fil {
  flex: 1; overflow: hidden; padding: 14px 12px; display: flex; flex-direction: column; justify-content: flex-end; gap: 8px;
  direction: rtl; font-family: "Noto Sans Arabic", "Geeza Pro", Tahoma, system-ui, sans-serif;
}
.bulle {
  max-width: 84%; padding: 9px 12px; border-radius: 18px; font-size: 13.5px; line-height: 1.6;
  animation: entre .35s ease-out both; word-wrap: break-word;
}
@keyframes entre { from { opacity: 0; transform: translateY(10px) scale(.97); } to { opacity: 1; transform: none; } }
.bulle.client { align-self: flex-start; background: #23302c; border-end-start-radius: 6px; }
.bulle.agent { align-self: flex-end; background: linear-gradient(135deg, #0f7a62, #0b5f4d); border-end-end-radius: 6px; }
.vocal { display: flex; align-items: center; gap: 8px; direction: ltr; }
.vocal .lecture { width: 26px; height: 26px; border-radius: 50%; background: var(--citron); display: grid; place-items: center; flex: none; }
.vocal .lecture::before { content: ""; border-left: 8px solid var(--nuit); border-top: 5px solid transparent; border-bottom: 5px solid transparent; margin-left: 2px; }
.vocal .onde { display: flex; gap: 2px; align-items: center; height: 22px; }
.vocal .onde i { display: block; width: 3px; border-radius: 2px; background: rgba(255,255,255,.55); }
.vocal .duree { font-size: 11px; color: var(--doux); }
.transcrit { display: block; margin-top: 6px; font-size: 12px; color: var(--doux); font-style: italic; }
.saisie { align-self: flex-end; display: flex; gap: 4px; padding: 12px 14px; border-radius: 18px; background: #0f5f4d; }
.saisie i { width: 6px; height: 6px; border-radius: 50%; background: var(--texte); opacity: .5; animation: saut 1s infinite; }
.saisie i:nth-child(2) { animation-delay: .15s; } .saisie i:nth-child(3) { animation-delay: .3s; }
@keyframes saut { 0%, 60%, 100% { transform: translateY(0); opacity: .4; } 30% { transform: translateY(-4px); opacity: 1; } }
.agenda {
  align-self: center; width: 92%; margin-top: 4px; padding: 10px 12px; border-radius: 14px; direction: ltr;
  background: var(--creme); color: #10241e; font-family: "Inter", system-ui, sans-serif; font-size: 12.5px;
  display: flex; gap: 10px; align-items: center; animation: entre .45s ease-out both;
  box-shadow: 0 10px 30px -10px rgba(201,242,60,.6);
}
.agenda .jour { flex: none; width: 44px; text-align: center; border-radius: 10px; background: var(--vert-fonce); color: var(--citron); padding: 4px 0; font-weight: 800; line-height: 1.15; }
.agenda .jour small { display: block; font-size: 10px; color: var(--creme); font-weight: 600; }
.agenda b { display: block; font-size: 13px; }
.barre-saisie { display: flex; align-items: center; gap: 8px; padding: 10px 12px 18px; border-top: 1px solid rgba(255,255,255,.06); }
.barre-saisie .champ { flex: 1; height: 34px; border-radius: 999px; background: rgba(255,255,255,.06); }
.barre-saisie .micro { width: 34px; height: 34px; border-radius: 50%; background: var(--vert); }
.legende { text-align: center; color: var(--doux); font-size: 13px; margin-top: 16px; }

/* Bandeau des atouts */
.atouts { padding: 30px 0 10px; }
.atouts ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
@media (max-width: 800px) { .atouts ul { grid-template-columns: repeat(2, 1fr); } }
.atouts li {
  padding: 18px; border-radius: 18px; background: var(--verre); border: 1px solid var(--verre-bord); text-align: center;
}
.atouts .gros { display: block; font-size: clamp(22px, 3.4vw, 30px); font-weight: 850; color: var(--citron); line-height: 1.2; }
.atouts .petit { color: var(--doux); font-size: 14px; }

/* Sections */
section { padding: 84px 0; position: relative; }
.sur-titre { color: var(--menthe); font-weight: 700; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; margin: 0 0 10px; }
html[dir="rtl"] .sur-titre { letter-spacing: 0; }
h2 { font-size: clamp(30px, 5vw, 48px); line-height: 1.15; letter-spacing: -.02em; margin: 0 0 36px; font-weight: 820; }
html[dir="rtl"] h2 { line-height: 1.4; letter-spacing: 0; }

.etapes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 860px) { .etapes { grid-template-columns: 1fr; } }
.carte {
  position: relative; padding: 28px; border-radius: var(--rayon); background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.02));
  border: 1px solid var(--verre-bord); overflow: hidden; transition: transform .3s, border-color .3s;
}
.carte:hover { transform: translateY(-4px); border-color: rgba(201,242,60,.4); }
.carte .icone { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: rgba(201,242,60,.12); color: var(--citron); margin-bottom: 18px; }
.carte .icone svg { width: 24px; height: 24px; }
.carte .rang { position: absolute; top: 18px; inset-inline-end: 22px; font-size: 56px; font-weight: 900; color: rgba(255,255,255,.05); line-height: 1; }
.carte h3 { margin: 0 0 6px; font-size: 21px; }
.carte p { margin: 0; color: var(--doux); }

.pour-qui { display: flex; flex-wrap: wrap; gap: 12px; }
.pour-qui span[data-lang], .pour-qui .puce {
  padding: 12px 20px; border-radius: 999px; background: var(--verre); border: 1px solid var(--verre-bord); font-weight: 600;
}
.pour-qui .puce { display: inline-flex; align-items: center; gap: 8px; }

.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 860px) { .duo { grid-template-columns: 1fr; } }

.prix {
  position: relative; padding: 40px; border-radius: 28px; overflow: hidden;
  background: radial-gradient(circle at 100% 0%, rgba(201,242,60,.25), transparent 50%), linear-gradient(135deg, var(--vert-fonce), #062a22);
  border: 1px solid rgba(201,242,60,.25);
}
.prix .de { color: var(--doux); margin: 0; }
.prix .montant { font-size: clamp(44px, 8vw, 76px); font-weight: 900; line-height: 1.05; margin: 6px 0; letter-spacing: -.03em; }
.prix .montant small { font-size: .32em; font-weight: 700; color: var(--doux); letter-spacing: 0; }
.prix .mois { font-size: clamp(20px, 3vw, 26px); font-weight: 800; color: var(--citron); margin: 0 0 18px; }
.prix .note { color: var(--doux); margin: 0 0 26px; }

.final { text-align: center; }
.final h2 { margin-bottom: 18px; }
.final p { color: var(--doux); margin: 0 auto 30px; max-width: 520px; }

/* Apparition au défilement */
.revele { opacity: 0; transform: translateY(26px); transition: opacity .8s ease, transform .8s ease; }
.revele.vu { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .revele { opacity: 1; transform: none; transition: none; }
  .bulle, .agenda { animation: none; }
  html { scroll-behavior: auto; }
}

/* Pages de texte */
.document { padding: 48px 0 80px; }
.feuille { max-width: 820px; margin: 0 auto; padding: 36px 26px; border-radius: 26px; background: var(--verre); border: 1px solid var(--verre-bord); }
.feuille h1 { font-size: clamp(30px, 5vw, 44px); margin-bottom: 8px; }
.feuille h2 { font-size: 22px; margin: 34px 0 10px; color: var(--citron); letter-spacing: 0; }
.feuille .date { color: var(--doux); margin: 0 0 24px; font-size: 15px; }
.feuille p, .feuille li { color: #cfe0d9; }
.feuille ul, .feuille ol { padding-inline-start: 22px; }
.feuille li { margin: 6px 0; }
.encadre { padding: 16px 18px; border-radius: 16px; background: rgba(201,242,60,.08); border: 1px solid rgba(201,242,60,.25); }

/* Pied */
.pied { border-top: 1px solid var(--verre-bord); padding: 34px 0; color: var(--doux); font-size: 14px; }
.pied .conteneur { display: flex; flex-wrap: wrap; gap: 14px 28px; justify-content: space-between; align-items: center; }
.pied nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.pied a { color: var(--doux); text-decoration: none; }
.pied a:hover { color: var(--citron); }
