/* Adan Maroc — site de présentation (vert, or, crème ; thème sombre automatique) */
:root {
  --green: #0E5E4A;
  --green-dark: #083D31;
  --gold: #C9A54C;
  --gold-light: #E8CF8C;
  --cream: #F7F3EA;
  --bg: #F7F3EA;
  --surface: #FFFFFF;
  --text: #1B2622;
  --muted: #5B6B65;
  --border: rgba(14, 94, 74, 0.14);
  --shadow: 0 10px 30px rgba(8, 61, 49, 0.12);
  --radius: 18px;
  --max: 1120px;
  font-family: "Segoe UI", Roboto, "Noto Sans Arabic", "Noto Sans", Tahoma, Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0E1715;
    --surface: #17231F;
    --text: #E9EFEC;
    --muted: #9DB2AA;
    --border: rgba(201, 165, 76, 0.18);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); line-height: 1.6; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* Langue : seuls les textes de la langue active sont visibles */
html[lang="fr"] [data-l="ar"], html[lang="ar"] [data-l="fr"] { display: none !important; }
html[lang="ar"] body { font-family: "Segoe UI", "Noto Sans Arabic", Tahoma, Arial, sans-serif; }

/* En-tête */
.top {
  position: sticky; top: 0; z-index: 20;
  background: linear-gradient(120deg, rgba(8, 61, 49, 0.97), rgba(14, 94, 74, 0.88));
  border-bottom: 1px solid rgba(201, 165, 76, 0.45);
  backdrop-filter: blur(8px);
}
.top .wrap { display: flex; align-items: center; gap: 16px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 700; }
.brand img { width: 40px; height: 40px; border-radius: 10px; box-shadow: 0 2px 8px rgba(0,0,0,.3); }
.brand small { display: block; font-weight: 500; color: var(--gold-light); font-size: 12px; line-height: 1.2; }
.nav { margin-inline-start: auto; display: flex; gap: 20px; align-items: center; }
.nav a { color: #e6f0ec; text-decoration: none; font-size: 15px; }
.nav a:hover { color: var(--gold-light); }
.lang-btn {
  border: 1px solid var(--gold); background: transparent; color: var(--gold-light);
  border-radius: 999px; padding: 6px 14px; font: inherit; font-size: 14px; cursor: pointer;
}
.lang-btn:hover { background: rgba(201,165,76,.15); }

/* Boutons */
.btn-play {
  display: inline-flex; align-items: center; gap: 12px; text-decoration: none;
  background: #000; color: #fff; border-radius: 14px; padding: 10px 20px 10px 16px;
  border: 1px solid rgba(255,255,255,.25); box-shadow: var(--shadow); transition: transform .15s;
}
.btn-play:hover { transform: translateY(-2px); }
.btn-play svg { width: 30px; height: 30px; flex: none; }
.btn-play span { display: flex; flex-direction: column; line-height: 1.1; }
.btn-play small { font-size: 11px; opacity: .8; letter-spacing: .03em; }
.btn-play b { font-size: 20px; font-weight: 600; }

/* Héros */
.hero {
  background: radial-gradient(1200px 500px at 80% -10%, rgba(201,165,76,.25), transparent 60%),
              linear-gradient(160deg, var(--green-dark), var(--green));
  color: #fff; overflow: hidden;
}
.hero .wrap { display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: center; padding-top: 44px; padding-bottom: 44px; }
.hero h1 { font-size: clamp(30px, 5vw, 50px); line-height: 1.15; margin: 0 0 12px; }
.hero h1 .ar-title { display: block; color: var(--gold-light); font-size: .72em; margin-top: 6px; }
.hero p.lead { font-size: 18px; color: #dbe9e3; margin: 0 0 26px; max-width: 560px; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 0; padding: 0; list-style: none; }
.pills li { background: rgba(255,255,255,.1); border: 1px solid rgba(201,165,76,.5); border-radius: 999px; padding: 4px 12px; font-size: 14px; color: #f2efe6; }
.phone {
  justify-self: center; width: min(250px, 66vw); border-radius: 34px; padding: 9px;
  background: #0b1210; box-shadow: 0 30px 60px rgba(0,0,0,.45), 0 0 0 2px rgba(201,165,76,.5);
  transform: rotate(2deg);
}
.phone img { border-radius: 28px; }

/* Sections */
section { padding: 72px 0; }
.section-title { text-align: center; margin: 0 auto 40px; max-width: 720px; }
.section-title h2 { font-size: clamp(26px, 3.5vw, 36px); margin: 0 0 8px; color: var(--green); }
@media (prefers-color-scheme: dark) { .section-title h2 { color: var(--gold-light); } }
.section-title p { color: var(--muted); margin: 0; }
.kicker { display: inline-block; color: var(--gold); font-weight: 700; letter-spacing: .12em; font-size: 13px; text-transform: uppercase; margin-bottom: 8px; }

/* Fonctionnalités */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow);
}
.card .ico {
  width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--green-dark), var(--green)); color: var(--gold-light); margin-bottom: 14px;
}
.card .ico svg { width: 26px; height: 26px; }
.card h3 { margin: 0 0 6px; font-size: 18px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }

/* Bandeau précision */
.precision { background: linear-gradient(120deg, var(--green-dark), var(--green)); color: #fff; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 18px; text-align: center; }
.stat b { display: block; font-size: 40px; color: var(--gold-light); line-height: 1.1; }
.stat span { color: #d6e6df; font-size: 15px; }
.precision .note { text-align: center; color: #cfe1d9; margin: 28px auto 0; max-width: 760px; font-size: 15px; }

/* Captures d'écran */
.shots { display: flex; gap: 22px; overflow-x: auto; padding: 8px 4px 22px; scroll-snap-type: x mandatory; }
.shot { flex: 0 0 auto; width: 230px; scroll-snap-align: center; text-align: center; }
.shot img { border-radius: 24px; box-shadow: var(--shadow); border: 6px solid #0b1210; }
.shot figcaption { margin-top: 10px; font-weight: 600; }
.shot figcaption small { display: block; color: var(--muted); font-weight: 400; }

/* Thèmes visuels (miniatures) */
.thumbs { display: flex; justify-content: center; gap: 18px; flex-wrap: wrap; margin-top: 10px; }
.thumbs img { width: 64px; height: 64px; }

/* Téléchargement */
.cta { text-align: center; }
.cta .box {
  background: var(--surface); border: 1px solid var(--border); border-radius: 26px; box-shadow: var(--shadow);
  padding: 44px 24px; max-width: 760px; margin: 0 auto;
}
.cta .box img.app-icon { width: 96px; height: 96px; border-radius: 22px; margin: 0 auto 16px; box-shadow: var(--shadow); }
.cta .req { color: var(--muted); font-size: 14px; margin-top: 18px; }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 14px 18px; margin-bottom: 12px; }
.faq summary { cursor: pointer; font-weight: 600; }
.faq details p { color: var(--muted); margin: 10px 0 0; }

/* Pied de page */
footer { background: var(--green-dark); color: #cfe1d9; padding: 40px 0; font-size: 14px; }
footer .wrap { display: grid; gap: 14px; }
footer a { color: var(--gold-light); }
footer .links { display: flex; flex-wrap: wrap; gap: 18px; }

/* Pages de texte (confidentialité) */
.doc { max-width: 820px; margin: 0 auto; padding: 48px 20px 72px; }
.doc h1 { color: var(--green); }
@media (prefers-color-scheme: dark) { .doc h1, .doc h2 { color: var(--gold-light); } }
.doc h2 { margin-top: 32px; font-size: 21px; }
.doc table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 15px; }
.doc th, .doc td { border: 1px solid var(--border); padding: 8px 10px; text-align: start; vertical-align: top; }
.doc th { background: rgba(14,94,74,.08); }

/* Mobile */
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; text-align: center; }
  .hero p.lead { margin-inline: auto; }
  .pills { justify-content: center; }
  .phone { transform: none; }
  .nav a { display: none; }
}
@media (max-width: 420px) {
  .brand small { display: none; }
  .btn-play b { font-size: 18px; }
}
