/* Massar 2027 : landing globale, direction « Nuit & Or » (variante B Stitch, 29/11/2026) */

:root {
  --fond: #061624;
  --nuit: #0B2236;
  --carte: #102C45;
  --carte-2: #13314A;
  --bord: rgba(246, 185, 26, .22);
  --bord-doux: rgba(255, 255, 255, .08);
  --or: #F6B91A;
  --or-clair: #FFD98A;
  --texte: #EEF4FA;
  --texte-2: #AFC2D3;
  --wa: #1FAF55;
  --titre: 'Newsreader', Georgia, serif;
  --corps: 'Plus Jakarta Sans', system-ui, sans-serif;
  --gouttiere: clamp(16px, 5vw, 56px);
  --rayon: 18px;
}
html[lang="ar"] {
  --titre: 'Noto Naskh Arabic', 'IBM Plex Sans Arabic', serif;
  --corps: 'IBM Plex Sans Arabic', system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--fond); color: var(--texte);
  font-family: var(--corps); font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, p { margin: 0; }
svg { width: 20px; height: 20px; flex: none; }
:focus-visible { outline: 2px solid var(--or); outline-offset: 3px; border-radius: 6px; }

/* Titres : un mot en italique doré */
h1, h2 { font-family: var(--titre); font-weight: 400; letter-spacing: -.01em; line-height: 1.12; }
h1 em, h2 em { font-style: italic; color: var(--or-clair); }
html[lang="ar"] h1, html[lang="ar"] h2 { font-weight: 600; line-height: 1.45; letter-spacing: 0; }
html[lang="ar"] h1 em, html[lang="ar"] h2 em { font-style: normal; }
h2 { font-size: clamp(30px, 6.5vw, 52px); margin-top: 10px; }

.surtitre {
  display: flex; align-items: center; gap: 12px;
  color: var(--or); font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
}
.surtitre::before { content: ""; width: 28px; height: 1px; background: var(--or); }
.surtitre.centre { justify-content: center; }
.surtitre.centre::before { display: none; }
html[lang="ar"] .surtitre { letter-spacing: 0; font-size: 14px; }
.intro { color: var(--texte-2); margin-top: 14px; max-width: 560px; }

/* Boutons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 0 24px; border-radius: 14px;
  font-weight: 700; font-size: 16px; transition: transform .2s, background .2s, box-shadow .2s;
}
.btn:active { transform: scale(.98); }
.btn-or { background: var(--or); color: #0B2236; box-shadow: 0 10px 30px -10px rgba(246,185,26,.6); }
.btn-or:hover { background: var(--or-clair); }
.btn-wa-contour { border: 1.5px solid var(--wa); color: #3FD27A; }
.btn-wa-contour:hover { background: rgba(31,175,85,.12); }
.btn-wa { background: var(--wa); color: #fff; box-shadow: 0 12px 30px -12px rgba(31,175,85,.8); }
html[dir="rtl"] .btn-or svg { transform: scaleX(-1); }

/* En-tête */
.entete {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px var(--gouttiere); padding-top: max(14px, env(safe-area-inset-top));
  transition: background .3s, backdrop-filter .3s, border-color .3s;
  border-bottom: 1px solid transparent;
}
.entete.colle { background: rgba(6,22,36,.82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-color: var(--bord-doux); }
.marque { display: flex; align-items: center; gap: 10px; }
.marque img { width: 34px; height: 34px; }
.marque-txt { display: flex; flex-direction: column; line-height: 1.1; }
.marque-txt b { font-family: 'Newsreader', serif; font-weight: 500; font-size: 22px; color: var(--or-clair); }
.marque-txt small { font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--texte-2); }
.nav { display: none; gap: 28px; font-size: 14px; font-weight: 600; color: var(--texte-2); }
.nav a:hover { color: var(--texte); }
.entete-actions { display: flex; align-items: center; gap: 10px; }
.btn-langue {
  min-height: 40px; padding: 0 14px; border-radius: 999px; cursor: pointer;
  background: transparent; color: var(--texte); border: 1px solid rgba(255,255,255,.22);
  font: 600 14px 'IBM Plex Sans Arabic', 'Plus Jakarta Sans', sans-serif;
}
.btn-langue:hover { border-color: var(--or); }
.btn-wa-rond { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--wa); color: #fff; }

/* Haut de page */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; padding: 110px var(--gouttiere) 48px; overflow: hidden; }
.hero-media { position: absolute; inset: 0; }
.hero-video { width: 100%; height: 100%; object-fit: cover; }
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(6,22,36,.55) 0%, rgba(6,22,36,.15) 30%, rgba(6,22,36,.75) 62%, var(--fond) 100%);
}
.hero-txt { position: relative; max-width: 620px; }
.pilule {
  display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px; border-radius: 999px;
  border: 1px solid var(--bord); background: rgba(6,22,36,.55); backdrop-filter: blur(8px);
  color: var(--or-clair); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
}
html[lang="ar"] .pilule { letter-spacing: 0; font-size: 13px; }
.point { width: 7px; height: 7px; border-radius: 50%; background: var(--or); box-shadow: 0 0 0 4px rgba(246,185,26,.2); }
.hero h1 { font-size: clamp(40px, 10.5vw, 76px); margin: 18px 0 16px; }
.hero-sous { color: #D3DEE8; font-size: 17px; max-width: 520px; }
.hero-btns { display: grid; gap: 12px; margin-top: 28px; }

/* Blocs */
.bloc { padding: 72px var(--gouttiere) 0; max-width: 1240px; margin: 0 auto; }

/* Univers */
.grille-univers { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 32px; }
.tuile {
  position: relative; display: block; aspect-ratio: 3 / 4.4; border-radius: var(--rayon); overflow: hidden;
  border: 1px solid var(--bord-doux); background: var(--carte);
}
.tuile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.tuile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6,22,36,0) 25%, rgba(6,22,36,.78) 55%, rgba(6,22,36,.96) 85%); }
.tuile:hover img { transform: scale(1.05); }
.tuile:hover { border-color: var(--bord); }
.tuile-txt { position: absolute; inset: auto 0 0 0; z-index: 1; display: flex; flex-direction: column; gap: 4px; padding: 14px; }
.tuile-txt small { color: var(--or); font-size: 10.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.tuile-txt b { font-size: 17px; line-height: 1.25; }
.tuile-txt span { color: #C9D6E2; font-size: 12.5px; line-height: 1.45; }
html[lang="ar"] .tuile-txt small { letter-spacing: 0; font-size: 12px; }
.tuile-fleche { position: absolute; top: 12px; inset-inline-end: 12px; z-index: 1; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: rgba(6,22,36,.6); border: 1px solid var(--bord); color: var(--or); font-size: 16px; }
html[dir="rtl"] .tuile-fleche { transform: scaleX(-1); }

/* Confiance */
.carte-confiance {
  border-radius: 24px; padding: 40px 20px 28px; text-align: center;
  background: radial-gradient(120% 80% at 50% 0%, #17395A 0%, var(--carte) 55%, var(--nuit) 100%);
  border: 1px solid var(--bord-doux);
}
.gros-chiffre { font-family: 'Newsreader', serif; font-size: clamp(64px, 18vw, 120px); line-height: 1; color: var(--or-clair); margin-top: 14px; }
.gros-label { font-family: var(--titre); font-style: italic; font-size: 22px; margin-top: 8px; }
html[lang="ar"] .gros-label { font-style: normal; }
.gros-sous { color: var(--texte-2); font-size: 14px; margin-top: 4px; }
.bande-photos { display: flex; gap: 10px; overflow-x: auto; margin: 28px -20px 0; padding: 0 20px 6px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.bande-photos::-webkit-scrollbar { display: none; }
.bande-photos img { flex: none; width: 128px; height: 160px; object-fit: cover; border-radius: 14px; scroll-snap-align: start; border: 1px solid var(--bord-doux); }
.legende { color: var(--texte-2); font-size: 12.5px; margin-top: 10px; }
.engagements { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 20px; text-align: start; border-top: 1px solid var(--bord-doux); padding-top: 28px; }
.engagements li { display: flex; gap: 14px; align-items: flex-start; }
.engagements b { display: block; font-size: 16px; }
.engagements span { color: var(--texte-2); font-size: 14px; }
.ico-or { display: grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 12px; border: 1px solid var(--bord); color: var(--or); background: rgba(246,185,26,.06); }

/* Frise */
.frise { list-style: none; padding: 0; margin: 32px 0 0; position: relative; }
.frise::before { content: ""; position: absolute; top: 18px; bottom: 18px; inset-inline-start: 17px; width: 1px; background: linear-gradient(var(--or), rgba(246,185,26,.15)); }
.frise li { position: relative; padding-inline-start: 58px; padding-bottom: 28px; }
.frise .num {
  position: absolute; inset-inline-start: 0; top: 0; display: grid; place-items: center;
  width: 36px; height: 36px; border-radius: 50%; background: var(--fond); border: 1px solid var(--or);
  color: var(--or); font-family: 'Newsreader', serif; font-size: 18px; box-shadow: 0 0 18px rgba(246,185,26,.25);
}
.frise small { color: var(--or); font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
html[lang="ar"] .frise small { letter-spacing: 0; font-size: 12px; }
.frise b { display: block; font-size: 19px; margin: 2px 0 4px; }
.frise p { color: var(--texte-2); font-size: 15px; }

/* FAQ */
.faq { display: grid; gap: 12px; margin-top: 28px; }
.faq details { border: 1px solid var(--bord-doux); border-radius: 16px; background: var(--carte); }
.faq details[open] { border-color: var(--bord); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 18px 20px; font-weight: 600; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--or); font-size: 24px; font-weight: 400; line-height: 1; transition: transform .25s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { padding: 0 20px 20px; color: var(--texte-2); font-size: 15px; }

/* Contact */
.carte-contact { position: relative; overflow: hidden; border-radius: 24px; border: 1px solid var(--bord); text-align: center; }
.contact-fond { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .28; }
.carte-contact::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,34,54,.75), rgba(6,22,36,.95)); }
.contact-txt { position: relative; padding: 48px 20px 36px; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.contact-txt > p { color: #D3DEE8; max-width: 440px; }
.contact-txt .btn-wa { width: 100%; max-width: 380px; margin-top: 6px; }
.appels { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.appels a, .lien-carte { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 12px; border: 1px solid rgba(255,255,255,.18); font-weight: 600; font-size: 15px; }
.appels a:hover, .lien-carte:hover { border-color: var(--or); }
.lien-carte { border: 0; color: var(--texte-2); font-weight: 500; font-size: 14px; }
.lien-carte svg, .appels svg { color: var(--or); }

/* Pied de page */
.pied { margin-top: 80px; padding: 48px var(--gouttiere) calc(100px + env(safe-area-inset-bottom)); border-top: 1px solid var(--bord-doux); background: #04111C; }
.pied-haut { display: grid; gap: 32px; max-width: 1240px; margin: 0 auto; }
.pied-haut a:not(.marque) { display: block; color: var(--texte-2); font-size: 14px; padding: 5px 0; }
.pied-haut a:not(.marque):hover { color: var(--texte); }
.pied-tag { color: var(--texte-2); font-size: 14px; margin-top: 14px; }
.pied-titre { color: var(--or); font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 8px; }
html[lang="ar"] .pied-titre { letter-spacing: 0; }
.pied-bas { max-width: 1240px; margin: 36px auto 0; padding-top: 20px; border-top: 1px solid var(--bord-doux); color: #6F8597; font-size: 13px; }

/* Bouton WhatsApp flottant */
.wa-flottant {
  position: fixed; z-index: 60; bottom: calc(18px + env(safe-area-inset-bottom)); inset-inline-end: 18px;
  display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%;
  background: var(--wa); color: #fff; box-shadow: 0 12px 30px -8px rgba(31,175,85,.7);
  opacity: 0; transform: translateY(20px); pointer-events: none; transition: opacity .3s, transform .3s;
}
.wa-flottant.visible { opacity: 1; transform: none; pointer-events: auto; }
.wa-flottant svg { width: 28px; height: 28px; }

/* Apparition au défilement */
.js .revele { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1); }
.js .revele.vu { opacity: 1; transform: none; }

/* Tablette et ordinateur */
@media (min-width: 640px) {
  .hero-btns { display: flex; flex-wrap: wrap; }
  .tuile-txt { padding: 20px; }
  .tuile-txt b { font-size: 21px; }
  .tuile-txt span { font-size: 14px; }
  .carte-confiance { padding: 56px 48px 40px; }
  .bande-photos { justify-content: center; margin: 32px 0 0; padding: 0 0 6px; }
  .engagements { grid-template-columns: repeat(3, 1fr); gap: 28px; }
  .engagements li { flex-direction: column; }
  .pied-haut { grid-template-columns: 1.4fr 1fr 1fr; }
}
@media (min-width: 1000px) {
  .nav { display: flex; }
  .bloc { padding-top: 110px; }
  .hero { align-items: center; padding-bottom: 80px; }
  .hero-media { inset: 90px var(--gouttiere) 40px auto; width: min(38vw, 460px); border-radius: 220px 220px 32px 32px; overflow: hidden; border: 1px solid var(--bord); box-shadow: 0 40px 90px -30px rgba(0,0,0,.8), 0 0 0 10px rgba(246,185,26,.04); }
  html[dir="rtl"] .hero-media { inset: 90px auto 40px var(--gouttiere); }
  .hero-media::after { background: linear-gradient(180deg, rgba(6,22,36,0) 60%, rgba(6,22,36,.5)); }
  .hero-txt { max-width: 640px; }
  .grille-univers { grid-template-columns: repeat(4, 1fr); gap: 18px; }
  .frise { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
  .frise::before { top: 17px; bottom: auto; inset-inline: 18px 18px; width: auto; height: 1px; background: linear-gradient(90deg, var(--or), rgba(246,185,26,.15)); }
  .frise li { padding: 58px 0 0; }
  .faq { max-width: 820px; }
  .contact-txt { padding: 72px 40px 56px; }
  .wa-flottant { width: 62px; height: 62px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .revele { opacity: 1; transform: none; transition: none; }
  .tuile img { transition: none; }
}

/* Bloc confiance commun aux 4 univers (29/11 : le « +5 000 » part sur la page Études) */
.titre-confiance { font-size: clamp(32px, 8vw, 56px); margin-top: 12px; }
.carte-confiance .gros-sous { font-size: 15px; margin-top: 10px; }
@media (min-width: 640px) { .engagements.quatre { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .engagements.quatre { grid-template-columns: repeat(4, 1fr); } }

/* iOS en mode économie d'énergie : pas de bouton ▶ par-dessus la vidéo de fond, l'image fixe reste visible */
.hero-video::-webkit-media-controls,
.hero-video::-webkit-media-controls-start-playback-button,
.hero-video::-webkit-media-controls-overlay-play-button { display: none !important; -webkit-appearance: none; }
