/* ===================================================================
   Masterclass — landing inscription · المستشار الدكتور شهاب العزعزي
   Charte IBDIC · RTL · Tajawal · institutionnel & épuré
   Layout : desktop 2 colonnes (contenu à droite, formulaire sticky à
   gauche) ; mobile : empilé + CTA fixe en bas.
=================================================================== */

/* === Noda Arabic — police commerciale NumidiaType (licence requise) ===
   Dépose tes fichiers .woff2 LICENCIÉS dans ibdic-webinar/assets/fonts/
   avec ces noms (ou donne-moi les tiens). Tant qu'ils sont absents,
   la page retombe proprement sur Tajawal — rien ne casse. */
@font-face { font-family: 'Noda Arabic'; font-weight: 400; font-style: normal; font-display: swap; src: url('assets/fonts/NodaArabic-Regular.woff2') format('woff2'); }
@font-face { font-family: 'Noda Arabic'; font-weight: 500; font-style: normal; font-display: swap; src: url('assets/fonts/NodaArabic-Medium.woff2') format('woff2'); }
@font-face { font-family: 'Noda Arabic'; font-weight: 700; font-style: normal; font-display: swap; src: url('assets/fonts/NodaArabic-Bold.woff2') format('woff2'); }
@font-face { font-family: 'Noda Arabic'; font-weight: 800; font-style: normal; font-display: swap; src: url('assets/fonts/NodaArabic-ExtraBold.woff2') format('woff2'); }

/* === DG Bebo (Hossam El Deen Ahmed) — gratuite usage commercial — pour le titre du header ===
   Dépose le fichier dans ibdic-webinar/assets/fonts/ sous ce nom (TTF ou OTF). */
@font-face { font-family: 'DG Bebo'; font-weight: 700; font-style: normal; font-display: swap; src: url('assets/fonts/DGBebo-Bold.ttf') format('truetype'), url('assets/fonts/DGBebo-Bold.otf') format('opentype'); }

/* === DG Heaven (Hossam El Deen Ahmed) — gratuite usage commercial === */
@font-face { font-family: 'DG Heaven'; font-weight: 700; font-style: normal; font-display: swap; src: url('assets/fonts/DGHeaven-Bold.ttf') format('truetype'), url('assets/fonts/DGHeaven-Bold.otf') format('opentype'); }

/* === Kafa Black (Nadine Chahine) — pour le titre du header === */
@font-face { font-family: 'Kafa Black'; font-weight: 700; font-style: normal; font-display: swap; src: url('assets/fonts/Kafa-Black.woff2') format('woff2'), url('assets/fonts/Kafa-Black.ttf') format('truetype'), url('assets/fonts/Kafa-Black.otf') format('opentype'); }

:root {
  /* charte */
  --blue:   #1B5DAA;   /* bleu principal */
  --btn:    #15539A;   /* boutons */
  --navy:   #16263A;   /* marine — titres */
  --tint:   #EAF2FB;   /* accent bleu clair */
  --bg:     #FFFFFF;

  --ink:      #16263A;
  --ink-soft: #41506A;
  --muted:    #6E7D95;
  --line:     rgba(22,38,58,.10);
  --line-2:   rgba(22,38,58,.16);
  --ring:     rgba(27,93,170,.22);

  --shadow:   0 18px 44px -24px rgba(16,38,58,.30);
  --shadow-sm:0 8px 22px -14px rgba(16,38,58,.25);

  --ease: cubic-bezier(.33,.7,0,1);
  --r:    18px;
  --r-sm: 12px;
  --maxw: 1200px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Noda Arabic', 'Readex Pro', 'Tajawal', system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink-soft);
  font-size: 17px;
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
}

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 26px; }

h1, h2, h3 { color: var(--navy); line-height: 1.3; font-weight: 800; }
h1 { font-size: clamp(1.8rem, 3.4vw, 2.65rem); line-height: 1.32; }
h2 { font-size: clamp(1.35rem, 2.2vw, 1.7rem); }
h3 { font-size: 1.12rem; }
p  { color: var(--ink-soft); }
a  { color: inherit; text-decoration: none; }

/* ---------- HEADER ---------- */
.site-header { border-bottom: 2px solid var(--blue); background: #fff; }
.site-header .container { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 28px; padding-block: 18px; max-width: 1340px; }
.site-header .brand { justify-self: start; }
.site-header .academy { justify-self: end; }
.academy { display: flex; flex-direction: column; align-items: center; gap: 7px; }
.academy__emblem { width: 92px; height: 92px; overflow: hidden; }
.academy__emblem img { width: 100%; height: 100%; object-fit: cover; object-position: center; transform: scale(1.6); }
.academy__sub { font-size: 12px; font-weight: 600; color: var(--ink-soft); text-align: center; line-height: 1.35; }
.header-tag { justify-self: center; text-align: center; font-family: 'Cairo', 'Readex Pro', Tajawal, sans-serif; font-weight: 800; color: var(--navy); font-size: clamp(1.8rem, 3.6vw, 2.9rem); line-height: 1.3; letter-spacing: 0; max-width: 100%; }
.header-tag i { color: var(--blue); font-size: 21px; }
.brand { display: flex; flex-direction: column; align-items: center; gap: 7px; }
.brand__sub { font-size: 12px; font-weight: 600; color: var(--ink-soft); text-align: center; max-width: 170px; line-height: 1.35; }
.brand__name { color: var(--navy); font-weight: 800; font-size: clamp(1.05rem, 2vw, 1.5rem); line-height: 1.4; }
.brand__name b { color: var(--blue); font-weight: 800; }
.brand__logo { height: 86px; width: auto; object-fit: contain; }
.logo-fb {
  width: 64px; height: 64px; border-radius: 50%; background: var(--blue); color: #fff;
  display: inline-flex; align-items: center; justify-content: center; font-weight: 800;
  font-family: 'Plus Jakarta Sans', sans-serif; font-size: 17px; letter-spacing: .03em; flex-shrink: 0;
}

/* ---------- LAYOUT 2 COLONNES ---------- */
.layout { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(330px, .82fr); gap: 52px; align-items: start; padding-block: 56px 90px; }
/* En RTL, la 1re colonne (contenu) se place à droite, la 2e (formulaire) à gauche. */

/* ---------- CONTENU ---------- */
.content > * + * { margin-top: 26px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700;
  color: var(--blue); background: var(--tint); padding: 8px 16px; border-radius: 100px;
  letter-spacing: .02em;
}
.eyebrow i { font-size: 16px; }

/* bannière en-tête : rectangle bleu nuit, logo centré + « ماستر كلاس حصرية » */
.hero-banner {
  display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center;
  background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%);
  border-radius: var(--r); padding: 32px 24px; box-shadow: var(--shadow);
}
.hero-banner__chip { background: #fff; border-radius: 14px; padding: 14px 24px; box-shadow: 0 10px 22px -12px rgba(0,0,0,.35); }
.hero-banner__logo { height: 58px; width: auto; display: block; }
.hero-banner__tag { display: inline-flex; align-items: center; gap: 10px; color: #fff; font-weight: 800; font-size: 1.2rem; letter-spacing: .02em; }
.hero-banner__tag i { color: #bcd5f2; font-size: 22px; }
.lead { font-size: 1.18rem; color: var(--ink); }

/* carte méta : date / heure / meet — mises en valeur (cartes + pastilles) */
.meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.meta__item {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px;
  background: var(--tint); border: 1px solid var(--ring); border-radius: var(--r); padding: 24px 18px;
  box-shadow: var(--shadow-sm);
}
.meta__ico {
  width: 56px; height: 56px; border-radius: 16px; flex-shrink: 0;
  background: var(--blue); color: #fff; display: inline-flex; align-items: center; justify-content: center;
  font-size: 28px; box-shadow: 0 10px 22px -8px rgba(27,93,170,.65);
}
.meta__text { display: flex; flex-direction: column; gap: 3px; }
.meta__k { font-size: 14px; color: var(--blue); font-weight: 700; }
.meta__v { font-size: 1.35rem; color: var(--navy); font-weight: 800; line-height: 1.3; }

.body-text p { font-size: 1.05rem; }
.body-text b { color: var(--navy); }

.divider { height: 1px; background: var(--line); border: 0; margin-block: 8px; }

/* blocs titrés */
.block__title { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.block__title i { color: var(--blue); font-size: 24px; }

/* intervenants */
.speakers { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.speaker {
  display: flex; align-items: center; gap: 16px; background: var(--tint); border: 1px solid var(--ring);
  border-radius: var(--r); padding: 18px; box-shadow: var(--shadow-sm);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.speaker:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
/* photos CARRÉES (coins arrondis) avec liseré bleu + zoom au survol */
.speaker__media {
  width: 90px; height: 90px; flex-shrink: 0; border-radius: 16px; overflow: hidden;
  border: 3px solid var(--blue); box-shadow: 0 0 0 4px var(--tint);
}
.speaker__photo, .speaker__fb {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .7s var(--ease);
}
.speaker__fb { display: flex; align-items: center; justify-content: center; background: var(--blue); color: #fff; font-weight: 800; font-size: 32px; }
.speaker:hover .speaker__photo, .speaker:hover .speaker__fb { transform: scale(1.09); }
.speaker__tag { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; font-size: 12.5px; font-weight: 700; color: var(--blue); }
.speaker__tag i { font-size: 15px; }
.speaker__name { color: var(--navy); font-weight: 800; font-size: 1.02rem; line-height: 1.4; }
.speaker__role { color: var(--muted); font-size: 14px; line-height: 1.55; margin-top: 2px; }

/* liste “ماذا ستتعلم” */
.learn { list-style: none; display: grid; gap: 14px; }
.learn li { display: flex; gap: 14px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: var(--r-sm); padding: 16px 18px; }
.learn li i { color: var(--blue); background: var(--tint); width: 30px; height: 30px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 17px; flex-shrink: 0; margin-top: 2px; }
.learn li span { color: var(--ink); font-weight: 500; }

/* panneaux hédiya / certificat */
.panel { background: var(--tint); border: 1px solid var(--ring); border-radius: var(--r); padding: 24px; }
.panel h3 { margin-bottom: 8px; }
.price-badge { display: inline-block; margin-inline-start: 8px; font-size: 13px; font-weight: 800; color: #fff; background: var(--blue); padding: 3px 12px; border-radius: 100px; vertical-align: middle; }
.panel--row { display: flex; gap: 16px; align-items: flex-start; }
.panel__ico { width: 48px; height: 48px; border-radius: 14px; background: var(--blue); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 24px; flex-shrink: 0; }

.scarcity { font-weight: 700; color: var(--navy); }
.cta-line { font-size: 1.12rem; font-weight: 800; color: var(--navy); background: linear-gradient(90deg, var(--tint), transparent); border-inline-start: 4px solid var(--blue); border-radius: 0; padding: 14px 18px; }
.closing { color: var(--muted); font-size: .98rem; }

/* ---------- FORMULAIRE (sticky) ---------- */
.form-col { position: sticky; top: 22px; }
.form-card { background: var(--tint); border: 1px solid var(--ring); border-radius: var(--r); box-shadow: var(--shadow); overflow: hidden; }
.form-card__head { background: var(--navy); color: #fff; padding: 22px 24px; }
.form-card__head h2 { color: #fff; font-size: 1.3rem; }
.form-card__head p { color: rgba(255,255,255,.75); font-size: 14px; margin-top: 4px; }
.form-card__body { padding: 22px 24px 26px; }

.field { display: block; margin-bottom: 15px; }
.field > span { display: block; font-weight: 700; font-size: 14px; color: var(--navy); margin-bottom: 7px; }
.field .req { color: var(--blue); }
.field input, .field select, .field textarea {
  width: 100%; font-family: inherit; font-size: 15px; color: var(--navy);
  background: #fff; border: 1px solid var(--line-2); border-radius: 11px; padding: 12px 14px;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.field textarea { resize: vertical; min-height: 84px; }
.field input::placeholder, .field textarea::placeholder { color: var(--muted); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px var(--ring); }
.select-wrap { position: relative; }
.select-wrap select { appearance: none; -webkit-appearance: none; cursor: pointer; padding-inline-start: 38px; }
.select-wrap i { position: absolute; inset-inline-start: 13px; inset-block-start: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; font-size: 17px; }

.check { display: flex; gap: 10px; align-items: flex-start; margin: 4px 0 18px; cursor: pointer; }
.check input { width: 18px; height: 18px; margin-top: 4px; accent-color: var(--blue); flex-shrink: 0; }
.check span { font-size: 13.5px; color: var(--ink-soft); line-height: 1.6; }

.btn {
  position: relative; overflow: hidden;
  width: 100%; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--btn); color: #fff; font-family: inherit; font-weight: 800; font-size: 17px;
  border: 0; border-radius: 12px; padding: 16px; cursor: pointer;
  box-shadow: 0 12px 26px -12px rgba(21,83,154,.7);
  transition: transform .45s var(--ease), background .3s var(--ease), box-shadow .45s var(--ease);
}
.btn:hover { background: #11447f; transform: translateY(-2px); box-shadow: 0 18px 34px -14px rgba(21,83,154,.75); }
.btn:active { transform: scale(.98); }
.btn i { font-size: 20px; transition: transform .45s var(--ease); }
.btn:hover i { transform: translateX(-4px); }

.form-note { font-size: 12px; color: var(--muted); text-align: center; margin-top: 12px; line-height: 1.6; }

/* succès */
.form-success { padding: 44px 26px; text-align: center; }
.form-success__ico { width: 64px; height: 64px; border-radius: 50%; background: #fff; color: var(--blue); display: inline-flex; align-items: center; justify-content: center; font-size: 36px; margin-bottom: 14px; }
.form-success h3 { color: var(--navy); margin-bottom: 6px; font-size: 1.3rem; }
.form-success p { color: var(--ink-soft); }
.wa-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; margin-top: 20px; background: #25D366; color: #fff; font-family: inherit; font-weight: 800; font-size: 16px; padding: 15px 28px; border-radius: 12px; text-decoration: none; box-shadow: 0 14px 28px -12px rgba(37,211,102,.65); transition: transform .4s var(--ease), background .3s var(--ease); }
.wa-btn:hover { background: #1ebe5a; transform: translateY(-2px); }
.wa-btn i { font-size: 22px; }

/* ---------- CTA FIXE MOBILE ---------- */
.cta-bar { position: fixed; inset-inline: 0; inset-block-end: 0; z-index: 30; display: none; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--line); }
.cta-bar .btn { box-shadow: none; }
.cta-bar.is-hidden { display: none !important; }   /* masqué après inscription réussie */
.form-card__head.is-hidden { display: none !important; }   /* en-tête masqué après inscription réussie */
/* Champ anti-robot (honeypot) : hors écran, invisible et ignoré par les humains */
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; opacity: 0; pointer-events: none; }

/* ---------- FOOTER ---------- */
.footer { background: var(--navy); color: #fff; padding: 40px 0; text-align: center; }
.footer__name { font-weight: 800; font-size: 1.1rem; }
.footer__tag { color: rgba(255,255,255,.6); font-size: 14px; margin-top: 6px; }
.footer__copy { color: rgba(255,255,255,.45); font-size: 13px; margin-top: 18px; }

/* ---------- ANIMATIONS « WAW » ---------- */
/* barre de progression au scroll */
.scroll-progress { position: fixed; inset-block-start: 0; inset-inline: 0; height: 3px; width: 0; z-index: 50; background: linear-gradient(90deg, var(--blue), #4f93de); transform-origin: right; transition: width .12s linear; }

/* intro plein écran : le titre s'affiche en grand puis file vers le header */
.intro { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; overflow: hidden; background: var(--navy); animation: introFade 2.4s var(--ease) forwards; }
.intro__text { position: relative; z-index: 1; font-family: 'DG Bebo', 'Readex Pro', Tajawal, sans-serif; font-weight: 700; color: #fff; text-align: center; line-height: 1.15; max-width: 92vw; font-size: clamp(3rem, 13vw, 8rem); animation: introZoom 2.4s var(--ease) forwards; }

/* explosion rouge derrière le titre */
.intro__burst { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.intro__burst > span { position: absolute; top: 50%; left: 50%; border-radius: 50%; }
.b-rays { width: 170px; height: 170px; background: repeating-conic-gradient(from 0deg, #ff5a3c 0deg 7deg, transparent 7deg 20deg); -webkit-mask: radial-gradient(circle, #000 10%, rgba(0,0,0,.4) 40%, transparent 70%); mask: radial-gradient(circle, #000 10%, rgba(0,0,0,.4) 40%, transparent 70%); animation: burstRays 1.7s var(--ease) forwards; }
.b-flash { width: 130px; height: 130px; background: radial-gradient(circle, #ffd9c2 0%, #ff6a3d 38%, #e2342c 58%, rgba(226,52,44,0) 76%); animation: burstFlash 1.7s var(--ease) forwards; }
.b-ring { width: 130px; height: 130px; border: 6px solid #ff6a3d; animation: burstRing 1.7s var(--ease) forwards; }
@keyframes burstRays { 0% { transform: translate(-50%,-50%) scale(0) rotate(0); opacity: 0; } 10% { opacity: 1; } 100% { transform: translate(-50%,-50%) scale(12) rotate(28deg); opacity: 0; } }
@keyframes burstFlash { 0% { transform: translate(-50%,-50%) scale(0); opacity: 0; } 10% { opacity: 1; } 45% { transform: translate(-50%,-50%) scale(7); opacity: .85; } 100% { transform: translate(-50%,-50%) scale(16); opacity: 0; } }
@keyframes burstRing { 0% { transform: translate(-50%,-50%) scale(0); opacity: .9; } 100% { transform: translate(-50%,-50%) scale(24); opacity: 0; } }
@keyframes introZoom {
  0%   { transform: scale(1.25); opacity: 0; }
  16%  { transform: scale(1);    opacity: 1; }
  62%  { transform: scale(1);    opacity: 1; }
  100% { transform: scale(.16) translateY(-42vh); opacity: 0; }
}
@keyframes introFade { 0%, 72% { opacity: 1; visibility: visible; } 100% { opacity: 0; visibility: hidden; } }

/* reveal d'entrée : translate + scale + blur */
.reveal { opacity: 0; transform: translateY(30px) scale(.985); filter: blur(8px); transition: opacity .9s var(--ease), transform .9s var(--ease), filter .9s var(--ease); transition-delay: var(--d, 0ms); will-change: transform, opacity; }
.reveal.in { opacity: 1; transform: none; filter: blur(0); }
/* le formulaire glisse depuis la gauche */
.reveal--left { transform: translateX(-44px) scale(.985); }

/* brillance accentuée : glint lumineux qui balaie le bouton + halo qui pulse */
.btn::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 1;
  background: linear-gradient(108deg,
    transparent 34%,
    rgba(255,255,255,.22) 43%,
    rgba(255,255,255,.85) 50%,
    rgba(255,255,255,.22) 57%,
    transparent 66%);
  transform: translateX(-160%); animation: sheen 2.8s var(--ease) infinite;
}
@keyframes sheen { 0% { transform: translateX(-160%); } 38%, 100% { transform: translateX(160%); } }

/* halo bleu qui respire pour attirer l'œil (désactivé au survol) */
.btn { animation: ctaGlow 2.8s ease-in-out infinite; }
.btn:hover { animation: none; }
@keyframes ctaGlow {
  0%, 100% { box-shadow: 0 12px 26px -12px rgba(21,83,154,.7); }
  50% { box-shadow: 0 14px 30px -10px rgba(21,83,154,.7), 0 0 0 5px rgba(27,93,170,.14), 0 0 30px 3px rgba(31,78,158,.45); }
}

/* pulse de l'icône eyebrow */
.eyebrow i { animation: twinkle 2.6s ease-in-out infinite; }
@keyframes twinkle { 0%,100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.18); opacity: .75; } }

/* survols premium */
.learn li { transition: transform .45s var(--ease), border-color .45s var(--ease), box-shadow .45s var(--ease); }
.learn li:hover { transform: translateX(-6px); border-color: var(--ring); box-shadow: var(--shadow-sm); }
.learn li i { transition: transform .45s var(--ease); }
.learn li:hover i { transform: scale(1.15) rotate(-6deg); }
.panel { transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.panel:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.panel__ico { transition: transform .5s var(--ease); }
.panel:hover .panel__ico { transform: rotate(-6deg) scale(1.06); }
.meta__item { transition: transform .4s var(--ease); }
.meta__item:hover { transform: translateY(-3px); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation: none !important; }
  .reveal { opacity: 1; transform: none; filter: none; }
  .intro { display: none; }
  html { scroll-behavior: auto; }
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 900px) {
  .layout { grid-template-columns: 1fr; gap: 36px; padding-block: 36px 96px; }
  .form-col { position: static; order: 2; }       /* formulaire après le contenu */
  .content { order: 1; }
  .cta-bar { display: block; }                     /* CTA fixe visible sur mobile */
  .speakers { grid-template-columns: 1fr; }
  .meta { grid-template-columns: 1fr; gap: 14px; }
  .meta__item { flex-direction: row; align-items: center; text-align: right; gap: 14px; padding: 18px; }
  .meta__ico { width: 48px; height: 48px; font-size: 24px; }
}

@media (max-width: 480px) {
  .container { padding-inline: 16px; }
  .site-header .container { gap: 12px; }
  .brand__logo { height: 58px; width: auto; }
  .logo-fb { width: 52px; height: 52px; }
  .academy__emblem { width: 52px; height: 52px; }
  .academy__sub { font-size: 10px; }
  .header-tag { display: none; }
  .brand__sub { font-size: 10px; max-width: 120px; }
  .panel--row { flex-direction: column; }
}
