/* 3D Art Média · écrans 3D Morocco Mall · editorial cinématique (light + dark bands) */

:root {
  --ivory: #f7f5f3;
  --ivory-2: #efece8;
  --white: #ffffff;
  --ink: #17131a;
  --ink-soft: #4c4753;
  --ink-faint: #8b8791;
  --line: #e6e1dc;
  --night: #0b0810;
  --night-2: #130f1b;
  --night-3: #1a1524;
  --night-line: rgba(255, 255, 255, 0.10);
  --on-night: rgba(255, 255, 255, 0.72);
  --on-night-faint: rgba(255, 255, 255, 0.52);
  /* charte = couleurs EXACTES du logo : bleu marine + sable (échantillonnés) */
  --wine: #2b4662;
  --wine-deep: #1c3247;
  --wine-tint: #eef0f4;
  --pink: #b69b66;
  --sand-soft: #cbb489;
  --radius: 18px;
  --radius-s: 12px;
  --shadow: 0 18px 50px rgba(23, 19, 26, 0.10);
  --shadow-s: 0 8px 24px rgba(23, 19, 26, 0.08);
  --maxw: 1200px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --disp: "Clash Display", "General Sans", system-ui, sans-serif;
  --body: "General Sans", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 72px; overflow-x: hidden; }
body {
  font-family: var(--body);
  background: var(--ivory);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
  font-size: 17px;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* Arabic */
html[dir="rtl"] body { font-family: "Tajawal", var(--body); }
html[dir="rtl"] .display,
html[dir="rtl"] h1, html[dir="rtl"] h2, html[dir="rtl"] h3 { font-family: "Tajawal", var(--disp); font-weight: 800; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 24px; }
.display { font-family: var(--disp); font-weight: 600; letter-spacing: -0.02em; line-height: 0.98; }

/* ---------- header (menu transparent intégré, texte adaptatif) ---------- */
.hdr { position: fixed; top: 0; inset-inline: 0; z-index: 50; background: transparent; }
.hdr .wrap { display: flex; align-items: center; gap: 20px; height: 72px; }
.brand { font-family: var(--disp); font-weight: 600; font-size: 22px; letter-spacing: -0.02em; white-space: nowrap; display: inline-flex; align-items: center; gap: 9px; }
.brand-mark { height: 34px; width: auto; display: block; }
.brand-name { line-height: 1; color: #fff; text-shadow: 0 1px 12px rgba(0, 0, 0, 0.5); transition: color 0.3s var(--ease), text-shadow 0.3s var(--ease); }
.hdr.on-light .brand-name { color: var(--ink); text-shadow: none; }

/* nav : transparent, aucun fond, texte adaptatif */
.nav { display: flex; align-items: center; gap: 2px; margin-inline-start: auto; }
.nav a { font-size: 15px; font-weight: 500; color: rgba(255, 255, 255, 0.92); padding: 8px 14px; border-radius: 999px; text-shadow: 0 1px 10px rgba(0, 0, 0, 0.4); transition: color 0.2s var(--ease), background 0.2s var(--ease); }
.nav a:hover { background: rgba(255, 255, 255, 0.14); }
.hdr.on-light .nav a { color: var(--ink-soft); text-shadow: none; }
.hdr.on-light .nav a:hover { color: var(--ink); background: rgba(0, 0, 0, 0.05); }
.hdr-actions { display: flex; align-items: center; gap: 12px; }

/* language switch : transparent, seul l'actif a une pastille */
.langsw { display: flex; align-items: center; gap: 2px; }
.langsw button { font-size: 12.5px; font-weight: 600; color: rgba(255, 255, 255, 0.72); padding: 5px 10px; border-radius: 999px; letter-spacing: 0.02em; text-shadow: 0 1px 8px rgba(0, 0, 0, 0.4); transition: all 0.2s var(--ease); }
.langsw button.on { background: rgba(255, 255, 255, 0.92); color: var(--ink); text-shadow: none; }
.hdr.on-light .langsw button { color: var(--ink-faint); text-shadow: none; }
.hdr.on-light .langsw button.on { background: var(--ink); color: #fff; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; font-size: 15px; border-radius: 999px;
  padding: 12px 22px; transition: transform 0.14s var(--ease), background 0.2s, box-shadow 0.2s;
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }
.btn-wine { background: var(--wine); color: var(--white); box-shadow: 0 8px 22px rgba(43, 70, 98, 0.28); }
.btn-wine:hover { background: var(--wine-deep); }
.btn-wa { background: #25d366; color: #06331a; }
.btn-wa:hover { background: #1fc35d; }
.btn-ghost { background: var(--white); color: var(--ink); border: 1px solid var(--line); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-lg { padding: 15px 28px; font-size: 16px; }

/* burger : transparent, barres adaptatives */
.burger { display: none; width: 42px; height: 42px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, 0.35); background: transparent; }
.burger span { display: block; width: 18px; height: 2px; background: #fff; margin: 3px auto; border-radius: 2px; transition: 0.25s var(--ease); }
.hdr.on-light .burger { border-color: var(--line); }
.hdr.on-light .burger span { background: var(--ink); }

/* ---------- cinematic screen frame (shared) ---------- */
.screen-frame {
  position: relative; border-radius: 20px; overflow: hidden;
  aspect-ratio: 9 / 16; background: #000;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.55), inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}
.screen-frame video, .screen-frame img { width: 100%; height: 100%; object-fit: cover; }
.screen-frame::before {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent 22%, transparent 78%, rgba(0, 0, 0, 0.35));
}
.screen-frame .scan {
  position: absolute; inset-inline: 0; top: -40%; height: 40%; z-index: 3; pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(182, 155, 102, 0.10), transparent);
  animation: scan 6s var(--ease) infinite;
}
@keyframes scan { 0% { top: -45%; } 60%, 100% { top: 115%; } }


/* ---------- hero (image corridor) ---------- */
.hero { position: relative; overflow: hidden; background: var(--night); color: var(--white); min-height: 640px; min-height: 100svh; min-height: 100dvh; display: flex; align-items: center; }
.corridor { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero-video-m { display: none; }
.hero-scrim {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(50% 44% at 50% 50%, rgba(11, 8, 16, 0.78), rgba(11, 8, 16, 0.32) 58%, rgba(11, 8, 16, 0) 80%),
    linear-gradient(0deg, var(--night), rgba(11, 8, 16, 0) 20%, rgba(11, 8, 16, 0) 78%, rgba(11, 8, 16, 0.5));
}
.hero-inner { position: relative; z-index: 2; width: 100%; max-width: 820px; margin-inline: auto; text-align: center; display: flex; flex-direction: column; align-items: center; padding-block: 96px; }
.hero-eyebrow { font-size: 13.5px; font-weight: 600; color: var(--pink); letter-spacing: 0.09em; text-transform: uppercase; margin-bottom: 20px; }
.hero h1 { font-size: clamp(40px, 6.4vw, 76px); margin-bottom: 22px; color: #fff; text-shadow: 0 2px 34px rgba(0, 0, 0, 0.55); }
.hero h1 em { font-style: normal; color: var(--pink); }
.hero p.lead { font-size: 19px; color: rgba(255, 255, 255, 0.84); max-width: 46ch; margin: 0 auto 32px; text-shadow: 0 1px 16px rgba(0, 0, 0, 0.55); }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }

/* ---------- stats band ---------- */
.stats { background: var(--night-2); color: var(--white); border-top: 1px solid var(--night-line); }
.stats .wrap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding-block: 44px; }
.stat b { font-family: var(--disp); font-size: clamp(30px, 4vw, 44px); display: block; letter-spacing: -0.01em; }
.stat b em { font-style: normal; color: var(--pink); }
.stat span { font-size: 14px; color: var(--on-night-faint); }

/* ---------- sections ---------- */
section { padding: 88px 0; }
.sec-head { max-width: 660px; margin-bottom: 48px; }
.sec-kicker { font-size: 13.5px; font-weight: 600; color: var(--wine); text-transform: uppercase; letter-spacing: 0.09em; margin-bottom: 12px; }
.sec-head h2 { font-size: clamp(30px, 4.4vw, 46px); margin-bottom: 16px; }
.sec-head p { font-size: 18px; color: var(--ink-soft); }
.alt { background: var(--white); }

/* ---------- showcase (dark chapter: intro + format bands) ---------- */
.showcase-head { background: var(--night); color: var(--white); padding: 88px 0 24px; }
.showcase-head .sec-kicker { color: var(--pink); }
.showcase-head .sec-head { margin-bottom: 0; }
.showcase-head .sec-head p { color: var(--on-night); }

.fband { position: relative; overflow: hidden; background: var(--night); color: var(--white); padding: 60px 0; }
.fband + .fband { border-top: 1px solid var(--night-line); }
.fband:nth-of-type(even) { background: var(--night-2); }
.fband::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(46% 60% at 80% 30%, rgba(43, 70, 98, 0.30), transparent 62%);
}
.fband--right::before { background: radial-gradient(46% 60% at 20% 30%, rgba(182, 155, 102, 0.14), transparent 62%); }
.fband .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: 0.95fr 1.05fr; gap: 64px; align-items: center; }
.fband-media { position: relative; }
.fband-media .screen-frame { max-height: 520px; max-width: 380px; margin-inline: auto; }
.fband--right .fband-media { order: 2; }
.fband-num {
  display: block; font-family: var(--disp); font-weight: 700;
  font-size: clamp(64px, 9vw, 128px); line-height: 0.9; margin-bottom: 10px;
  color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, 0.3);
  pointer-events: none;
}
.fband-body { max-width: 460px; }
.fband--right .fband-body { margin-inline-start: auto; }
.fband-body .sec-kicker { color: var(--pink); }
.fband-body h3 { font-size: clamp(26px, 3.4vw, 40px); font-weight: 600; margin-bottom: 16px; color: #fff; }
.fband-body p { font-size: 17px; color: var(--on-night); }
.fband-cta { margin-top: 22px; }

/* ---------- mall (light) ---------- */
.mall .wrap { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: center; }
.mall-media { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); aspect-ratio: 4/5; }
.mall-media img { width: 100%; height: 100%; object-fit: cover; }
.mall ul { list-style: none; margin-top: 24px; display: grid; gap: 14px; }
.mall li { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; color: var(--ink-soft); }
.mall li svg { flex: 0 0 auto; margin-top: 3px; color: var(--wine); }
.mall li b { color: var(--ink); font-weight: 600; }

/* ---------- why (light) ---------- */
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.why-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px; transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease); }
.why-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.why-card .ic { width: 44px; height: 44px; border-radius: 12px; background: var(--wine-tint); color: var(--wine); display: grid; place-items: center; margin-bottom: 16px; }
.why-card h3 { font-family: var(--disp); font-weight: 600; font-size: 19px; margin-bottom: 8px; }
.why-card p { font-size: 14.5px; color: var(--ink-soft); }

/* ---------- process (light) ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: st; }
.step { position: relative; padding-top: 20px; border-top: 2px solid var(--line); }
.step::before { counter-increment: st; content: "0" counter(st); font-family: var(--disp); font-size: 15px; color: var(--wine); font-weight: 600; display: block; margin-bottom: 14px; }
.step h3 { font-family: var(--disp); font-weight: 600; font-size: 20px; margin-bottom: 8px; }
.step p { font-size: 15px; color: var(--ink-soft); }

/* ---------- video wall band (full-bleed cinematic) ---------- */
.wall { padding: 0; background: #000; font-size: 0; }
.wall-video { display: block; width: 100%; height: auto; }

/* ---------- contact (dark) ---------- */
.contact { background: var(--night); color: var(--white); position: relative; overflow: hidden; }
.contact::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(50% 50% at 15% 20%, rgba(43, 70, 98, 0.34), transparent 60%);
}
.contact .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; }
.contact .sec-kicker { color: var(--pink); }
.contact h2 { font-size: clamp(30px, 4.4vw, 44px); margin-bottom: 16px; }
.contact .lead { font-size: 18px; color: var(--on-night); max-width: 38ch; margin-bottom: 26px; }
.contact-side .wa-big { display: inline-flex; align-items: center; gap: 10px; }
.contact-info { margin-top: 30px; display: grid; gap: 14px; }
.contact-info a, .contact-info div { display: flex; gap: 12px; align-items: center; color: var(--on-night); font-size: 15px; }
.contact-info svg { color: var(--pink); flex: 0 0 auto; }

form { background: var(--white); color: var(--ink); border-radius: var(--radius); padding: 30px; box-shadow: 0 30px 70px rgba(0, 0, 0, 0.4); }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 7px; color: var(--ink-soft); }
.field input, .field select, .field textarea {
  width: 100%; border: 1px solid var(--line); border-radius: var(--radius-s);
  padding: 13px 15px; font-size: 15.5px; font-family: inherit; color: var(--ink);
  background: var(--ivory); transition: border-color 0.2s, box-shadow 0.2s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--wine); box-shadow: 0 0 0 3px var(--wine-tint); background: #fff; }
.field textarea { resize: vertical; min-height: 96px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }
.form-ok { display: none; text-align: center; padding: 20px 0; }
.form-ok.show { display: block; }
.form-ok .check { width: 56px; height: 56px; border-radius: 50%; background: var(--wine-tint); color: var(--wine); display: grid; place-items: center; margin: 0 auto 16px; }
.form-ok h3 { font-family: var(--disp); font-weight: 600; font-size: 22px; margin-bottom: 8px; }
.form-ok p { color: var(--ink-soft); }
button[type="submit"] { width: 100%; justify-content: center; }

/* ---------- footer ---------- */
.ft { background: var(--ivory-2); border-top: 1px solid var(--line); padding: 48px 0 30px; }
.ft .wrap { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; align-items: flex-start; }
.ft .brand { font-size: 24px; margin-bottom: 10px; }
.ft-logo { height: 92px; width: auto; display: block; margin-bottom: 14px; }
.ft p { font-size: 14.5px; color: var(--ink-faint); max-width: 34ch; }
.ft-links { display: flex; gap: 50px; flex-wrap: wrap; }
.ft-col h4 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-faint); margin-bottom: 14px; }
.ft-col a, .ft-col div { display: block; font-size: 14.5px; color: var(--ink-soft); margin-bottom: 9px; }
.ft-col a:hover { color: var(--wine); }
.ft-bottom { border-top: 1px solid var(--line); margin-top: 36px; padding-top: 22px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--ink-faint); }

/* floating whatsapp */
.wa-float { position: fixed; inset-inline-end: 20px; bottom: 20px; z-index: 60; width: 56px; height: 56px; border-radius: 50%; background: #25d366; display: grid; place-items: center; box-shadow: 0 10px 30px rgba(37,211,102,0.4); transition: transform 0.2s var(--ease); }
.wa-float:hover { transform: scale(1.06); }
.wa-float svg { width: 30px; height: 30px; }

/* reveal */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .nav { display: none; }
  .burger { display: block; }
  .hdr-actions .btn-wine { display: none; }
  .hero-inner { padding-block: 88px; }
  .stats .wrap { grid-template-columns: 1fr 1fr; gap: 28px 16px; }
  .fband .wrap { grid-template-columns: 1fr; gap: 34px; }
  .fband-media { order: -1; }
  .fband--right .fband-media { order: -1; }
  .fband-media .screen-frame { max-width: 300px; }
  .mall .wrap, .contact .wrap { grid-template-columns: 1fr; gap: 34px; }
  .why-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  section { padding: 64px 0; }
  .showcase-head { padding: 64px 0 8px; }
  .nav-open {
    display: flex !important; position: fixed; inset: 72px 10px auto 10px;
    flex-direction: column; border-radius: 22px; padding: 12px; gap: 2px;
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.72), rgba(247, 245, 243, 0.5));
    border: 1px solid rgba(255, 255, 255, 0.65);
    box-shadow: inset 1.5px 1.5px 1px rgba(255, 255, 255, 0.85), 0 20px 50px rgba(23, 19, 26, 0.16);
    backdrop-filter: blur(20px) saturate(1.8);
    -webkit-backdrop-filter: blur(20px) saturate(1.8);
  }
  .nav-open a { padding: 13px 16px; font-size: 16px; border-radius: 12px; color: var(--ink); }
  .nav-open a:hover { background: rgba(255, 255, 255, 0.6); }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .wrap { padding-inline: 18px; }
  .grid-2 { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .brand { font-size: 20px; }
  form { padding: 22px; }
}

/* glass fallback: lisibilité si l'utilisateur réduit la transparence */
@media (prefers-reduced-transparency: reduce) {
  .nav, .langsw, .nav-open {
    background: var(--white);
    border-color: var(--line);
    box-shadow: var(--shadow-s);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .hero-tag { background: var(--night-3); backdrop-filter: none; -webkit-backdrop-filter: none; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  .screen-frame .scan { display: none; }
  html { scroll-behavior: auto; }
}

/* hero : scrim renforcé sur mobile (texte lisible sur le corridor) */
@media (max-width: 700px) {
  .hero-scrim {
    background:
      radial-gradient(78% 48% at 50% 46%, rgba(11, 8, 16, 0.88), rgba(11, 8, 16, 0.42) 60%, rgba(11, 8, 16, 0.1) 92%),
      linear-gradient(0deg, var(--night), rgba(11, 8, 16, 0.35) 26%, rgba(11, 8, 16, 0) 58%, rgba(11, 8, 16, 0.55));
  }
  .hero-inner { padding-block: 84px; }
  .corridor { display: none; }
  .hero-video-m { display: block; position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
}
