/* Immersion 3D — site vitrine v3 (2026-11-03) : la page ORIGINALE (mêmes sections, mêmes textes) repeinte
   « Alger la Blanche ». Sa décision : « le blanc rend meilleur ». Retirés : labels en majuscules, numéros 01-03,
   flèches, halos, apparitions au défilement. Gardés et multipliés : les objets qui tournent au défilement.
   L'ouverture est la photo 360° qui passe du plat à l'immersion (immersion.js). */

:root {
  --chaux: #f7f8f6;
  --chaux-2: #eceeeb;
  --blanc: #ffffff;
  --encre: #14213d;
  --granito: #5f6764;
  /* l'or de www.marcadz.com : #9c7427 (or vif, grands chiffres), #825e1a (actions : 5,9:1 sur blanc), #6a4c14 (survol) */
  --or: #9c7427;
  --volet: #825e1a;
  --volet-fonce: #6a4c14;
  --trait: #d5d9d6;
  /* noms lus par main.js (menu téléphone) */
  --surface: var(--chaux);
  --line: var(--trait);

  /* les polices de www.marcadz.com : Cormorant Garamond (titres) + Outfit (texte) ; en arabe Reem Kufi + Tajawal */
  --f: "Outfit", "Tajawal", system-ui, sans-serif;
  --f-titre: "Cormorant Garamond", "Reem Kufi", serif;
  --large: 1180px;
  --gout: clamp(20px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }   /* menu : on défile jusqu'à la rubrique, titre visible sous la barre */
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--chaux); color: var(--encre); font: 400 1.0625rem/1.6 var(--f); }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--volet); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--volet-fonce); }
:focus-visible { outline: 3px solid var(--volet); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3, h4 { margin: 0; font-weight: 500; text-wrap: balance; }
h1, h2 { font-family: var(--f-titre); font-weight: 500; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.7rem, 6.2vw, 4.9rem); line-height: 1.02; }
h2 { font-size: clamp(2.05rem, 3.7vw, 3.05rem); line-height: 1.08; }
h3 { font-size: 1.2rem; line-height: 1.3; letter-spacing: -0.005em; }
body { font-weight: 300; }
b, strong { font-weight: 500; }
[dir="rtl"] { --f: "Tajawal", "Outfit", system-ui, sans-serif; --f-titre: "Reem Kufi", "Cormorant Garamond", serif; }
[dir="rtl"] h1, [dir="rtl"] h2 { letter-spacing: 0; line-height: 1.3; }
[dir="rtl"] h1 { font-size: clamp(2.2rem, 5vw, 3.9rem); }
[dir="rtl"] h2 { font-size: clamp(1.7rem, 3vw, 2.5rem); }
[dir="rtl"] body { line-height: 1.75; font-weight: 400; }
p { margin: 0; text-wrap: pretty; }
.lead { font-size: clamp(1.05rem, 1.5vw, 1.2rem); line-height: 1.6; color: var(--granito); max-width: 62ch; }

.wrap { width: min(100% - 2 * var(--gout), var(--large)); margin-inline: auto; }
section { padding-block: clamp(64px, 9vw, 120px); }

/* ---------- boutons ---------- */
.btn { display: inline-flex; align-items: center; gap: .5em; padding: .82em 1.3em; border-radius: 6px;
  font: 500 1rem/1 var(--f); text-decoration: none; border: 1.5px solid var(--volet); color: var(--volet); background: transparent; }
.btn:hover { background: var(--chaux-2); }
.btn--primary { background: var(--volet); color: #fff; }
.btn--primary:hover { background: var(--volet-fonce); border-color: var(--volet-fonce); color: #fff; }
.btn img { display: none; }
.btn-row, .hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

/* ---------- navigation ---------- */
.nav { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--chaux) 92%, transparent);
  backdrop-filter: blur(8px); border-bottom: 1px solid var(--trait); }
.nav-inner { display: flex; align-items: center; gap: 28px; min-height: 64px; position: relative; }
.brand { font-family: var(--f-titre); font-weight: 600; font-size: 1.4rem; color: var(--encre); text-decoration: none; }
.nav-links { display: flex; gap: 22px; margin-inline-start: auto; font-size: .96rem; }
.nav-links a { color: var(--encre); text-decoration: none; padding-block: 6px; }
.nav-links a:hover { color: var(--volet); }
.nav-cta { padding: .62em 1em; font-size: .94rem; }
.nav-toggle { display: none; margin-inline-start: auto; background: none; border: 0; padding: 8px; color: var(--encre); }
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-links a { padding: 12px 0; border-bottom: 1px solid var(--chaux-2); }
  .nav-toggle { display: block; }
  .nav-cta { display: none; }
}

/* ---------- ouverture ---------- */
.hero { padding-block: clamp(44px, 7vw, 88px) clamp(28px, 4vw, 48px); }
.hero .wrap { display: grid; grid-template-columns: 1.15fr 1fr; gap: 24px clamp(32px, 6vw, 96px); align-items: end; }
.hero h1 { max-width: 14ch; }
.hero .hero-actions { margin-top: 26px; }
@media (max-width: 860px) { .hero .wrap { grid-template-columns: 1fr; } }

/* ---------- la photo 360° : du plat à l'immersion ---------- */
.immersion { height: 300vh; padding: 0; position: relative; }
.immersion-collant { position: sticky; top: 64px; height: calc(100vh - 64px); overflow: hidden; }
.immersion canvas { width: 100%; height: 100%; display: block; touch-action: pan-y; }
.immersion.dedans canvas { cursor: grab; }
.immersion .secours { position: absolute; inset: 0; margin: auto; width: min(92%, 170vh); height: auto; display: none; }
.immersion.sans-webgl { height: auto; }
.immersion.sans-webgl .immersion-collant { position: relative; top: 0; height: auto; padding-block: 24px 72px; }
.immersion.sans-webgl canvas { display: none; }
.immersion.sans-webgl .secours { display: block; position: static; margin: 0 auto; }
.immersion.sans-webgl .legende { position: static; opacity: 1; margin: 18px auto 0; }
.immersion.sans-webgl .legende:not(:last-child) { display: none; }
.legende { position: absolute; left: 50%; bottom: clamp(20px, 5vh, 48px); transform: translateX(-50%);
  width: min(92%, 640px); margin: 0; padding: 14px 18px; text-align: center; font-size: 1.05rem; line-height: 1.5;
  background: rgba(247, 248, 246, .92); border-radius: 6px; color: var(--encre);
  opacity: 0; transition: opacity .35s ease; pointer-events: none; }
.legende.vue { opacity: 1; pointer-events: auto; }
.legende .btn { margin-top: 12px; }
@media (prefers-reduced-motion: reduce) { .legende { transition: none; } }

/* ---------- blocs texte + image ---------- */
.split { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.split--reverse .split-media { order: -1; }
.split h2 + .lead { margin-top: 18px; }
.split-media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 4px; }
#about > .wrap + .wrap { margin-top: clamp(64px, 9vw, 104px); }
#about > .wrap:first-child h2 + .lead { margin-top: 16px; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split--reverse .split-media { order: 0; } }

/* ---------- fonctionnalités : trois captures du lecteur, sans boîte ni ombre ---------- */
#features .wrap > div:first-child h2 + .lead { margin-top: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 3vw, 40px); margin-top: 8px; }
.card img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 4px; }
.card-body { padding-top: 16px; }
.card-body h3 { margin-bottom: 6px; }
.card-body p { color: var(--granito); font-size: .98rem; }
@media (max-width: 860px) { .grid-3 { grid-template-columns: 1fr; } }

/* ---------- objets qui tournent au défilement ---------- */
.seq { height: 260vh; position: relative; padding: 0; background: var(--blanc); border-block: 1px solid var(--trait); }
.seq-sticky { position: sticky; top: 64px; height: calc(100vh - 64px); overflow: hidden; display: flex;
  justify-content: center; padding-top: 9vh !important; align-items: flex-start !important; }
.seq-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.seq-overlay { position: relative; z-index: 1; text-align: center; width: min(92%, 640px); }
.seq-overlay h2 { max-width: 20ch; margin: 0 auto; }
.seq-overlay .lead { margin: 14px auto 0; }
@media (max-width: 760px) { .seq { height: 220vh; } }
@media (prefers-reduced-motion: reduce) {
  .seq { height: auto; }
  .seq-sticky { position: relative; height: 70vh; }
}

/* ---------- secteurs et questions : grille de deux colonnes, séparées par des traits ---------- */
.grid-solutions { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 clamp(28px, 5vw, 72px); }
.sol { padding: 26px 0; border-top: 1px solid var(--trait); }
.sol img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 4px; margin-bottom: 18px; }
.sol h3 { margin-bottom: 8px; }
.sol p { color: var(--granito); font-size: .98rem; }
@media (max-width: 760px) { .grid-solutions { grid-template-columns: 1fr; } }
section > .wrap:first-child h2 + .lead { margin-top: 16px; }
section > .wrap:first-child:not(:only-child) { margin-bottom: 40px; }

/* ---------- ce qui est inclus ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0 clamp(20px, 3vw, 40px); }
.stat { padding-top: 18px; border-top: 2px solid var(--encre); }
.stat .big { font-family: var(--f-titre); font-size: clamp(2.4rem, 4vw, 3.2rem); font-weight: 500; color: var(--or); line-height: 1; }
.stat .lbl { margin-top: 10px; color: var(--granito); font-size: .98rem; }
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, 1fr); gap: 28px 20px; } }

/* ---------- tarifs ---------- */
#pricing { background: var(--blanc); border-block: 1px solid var(--trait); }
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 8px; border-top: 1px solid var(--trait); }
.plan { padding: 32px clamp(18px, 2.6vw, 34px) 36px; display: flex; flex-direction: column; }
.plan + .plan { border-inline-start: 1px solid var(--trait); }
.plan--featured { box-shadow: inset 0 4px 0 var(--volet); }
.tier { font-size: 1.15rem; font-weight: 500; }
.plan .desc { color: var(--granito); margin-top: 6px; font-size: .98rem; }
.price { margin-top: 20px; font-size: clamp(2.1rem, 3.4vw, 2.7rem); font-weight: 500; letter-spacing: -0.02em; line-height: 1; }
.price span { display: block; margin-top: 8px; font-size: .95rem; font-weight: 400; color: var(--granito); letter-spacing: 0; }
.plan ul { margin: 22px 0 28px; padding: 0; list-style: none; }
.plan li { padding: 9px 0; border-top: 1px solid var(--chaux-2); font-size: .98rem; }
.plan li img { display: none; }
.plan .btn { margin-top: auto; align-self: flex-start; }
@media (max-width: 900px) {
  .pricing-grid { grid-template-columns: 1fr; }
  .plan + .plan { border-inline-start: 0; border-top: 1px solid var(--trait); }
}

/* ---------- fin et pied ---------- */
.cta-final { background: var(--volet); color: #fff; }
.cta-final h2 { max-width: 22ch; }
.cta-final .btn { border-color: #fff; color: #fff; }
.cta-final .btn:hover { background: rgba(255, 255, 255, .12); }
.cta-final .btn--primary { background: #fff; color: var(--volet); }
.cta-final .btn--primary:hover { background: var(--chaux-2); color: var(--volet-fonce); }

footer { padding-block: 48px; font-size: .95rem; color: var(--granito); }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
.foot-brand .brand { margin-bottom: 8px; }
.foot-col { display: flex; flex-direction: column; gap: 6px; }
.foot-col h4 { font-size: 1rem; color: var(--encre); margin-bottom: 4px; }
.foot-col a { color: var(--encre); text-decoration: none; }
.foot-col a:hover { color: var(--volet); }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 36px;
  padding-top: 20px; border-top: 1px solid var(--trait); font-size: .9rem; }
@media (max-width: 700px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-brand { grid-column: 1 / -1; } }

/* ajouts du 2026-11-03 (2e passe) */
#features .wrap > div:first-child { margin-inline: auto; }            /* centré comme les autres en-têtes de section */
.seq-etape { margin-top: 18px; font-size: 1.15rem; font-weight: 500; color: var(--volet); min-height: 1.6em; }

/* 3e passe (2026-11-03) : en-tête des sections à objets plus compact — Cormorant est plus grand que Readex, et la
   légende du chantier touchait la grue sur ordinateur */
.seq-sticky { padding-top: 6vh !important; }
.seq-overlay { width: min(92%, 820px); }
.seq-overlay h2 { max-width: 30ch; font-size: clamp(1.9rem, 3.2vw, 2.6rem); }
.seq-overlay .lead { margin-top: 10px; max-width: 60ch; }
.seq-etape { margin-top: 10px; }

/* 2026-11-10 : bande de promesses sous le titre (il veut marteler « payé après avoir vu » dans les GRANDS titres) */
.promesses { grid-column: 1 / -1; list-style: none; margin: 30px 0 0; padding: 20px 0 0; border-top: 1px solid rgba(156,116,39,.35); display: flex; flex-wrap: wrap; gap: 12px 34px; }
.promesses li { font-family: var(--f-titre); font-size: clamp(1.2rem, 2.2vw, 1.5rem); font-weight: 500; line-height: 1.25; }
.promesses li::before { content: "✓"; color: var(--or); font-weight: 600; margin-inline-end: .45em; }
a.cond { font-family: inherit; font-size: .72em; opacity: .75; color: inherit; text-decoration: underline dotted; text-underline-offset: 3px; white-space: nowrap; }
