 *, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --bg: #ffffff;
  --ink: #0b1220;
  --ink-soft: #475569;
  --ink-muted: #64748b;
  --line: #e6ebf0;
  --line-soft: #eef2f6;
  --primary: rgba(26, 143, 227, 1);
  --primary-strong: #155e75;
  --primary-soft: #ecfeff;
  --primary-tint: #f0f9ff;
  --gold:#f59e0b;
  --light-gold:#fbbf24;
}

* { box-sizing: border-box; }

    html { scroll-behavior: smooth; direction:rtl }
     a { text-decoration: none !important; color: inherit; }
    body {
      margin: 0;
      background: var(--bg);
      color: var(--ink);
      font-family: "Tajawal", "IBM Plex Sans Arabic", system-ui, -apple-system, "Segoe UI", sans-serif;
      font-size: 17px;
      line-height: 1.6;
      -webkit-font-smoothing: antialiased;
      text-rendering: optimizeLegibility;
    }
/* ===== Top bar ===== */
.top-physique-chimie-offre header.topbar {
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.top-physique-chimie-offre .topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 44px;
  gap: 16px;
}
.top-physique-chimie-offre .brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 42px; height: 42px; border-radius: 12px;
  background: linear-gradient(135deg, #0e7490, #155e75);
  color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 22px -12px rgba(14, 116, 144, 0.6);
}
.brand-name {
  font-family: "Cairo", sans-serif;
  font-weight: 900;
  letter-spacing: -0.02em;
  font-size: 19px;
}
.levels-pills {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.level-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: 999px;
  background: var(--primary-tint);
  border: 1px solid #bae6fd;
  color: var(--primary-strong);
  font-family: "Cairo", sans-serif; font-weight: 800;
  font-size: 12.5px; letter-spacing: 0.02em;
}
.level-pill .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--primary);
}
@media (max-width: 640px) {
  .topbar-inner { flex-wrap: wrap; row-gap: 10px; height: auto; }
  .levels-pills { width: 100%; }
  
}

/* ===== HERO ===== */
.hero {
  padding: 32px 0 56px;
  text-align: center;
}
.top-physique-chimie-offre h1 {
  font-family: "Cairo", sans-serif;
  font-weight: 900;
  letter-spacing: -0.035em;
  font-size: clamp(36px, 7vw, 64px);
  line-height: 1.18;
  margin: 0 0 56px;
  color: var(--ink);
}
.top-physique-chimie-offre h1 .accent { color: var(--primary); }
.top-physique-chimie-offre h1 .line { display: block; }

.top-physique-chimie-offre .visual {
  position: relative;
 /* aspect-ratio: 18/14;*/
  max-width: 520px;
  margin: 0 auto 24px;
  border-radius: 26px;
  background: #0b1220;
  box-shadow:
    0 36px 64px -26px rgba(15, 23, 42, 0.45),
    0 10px 22px -10px rgba(15, 23, 42, 0.2);
  overflow: hidden;
  border: 1px solid #1e293b;
}
.top-physique-chimie-offre .visual iframe {
  width: 100%; height: 100%; border: 0; display: block;
}

.top-physique-chimie-offre .cta-primary {
  display: inline-flex; align-items: center; gap: 11px;
  background: linear-gradient(180deg, var(--gold), var(--light-gold));
  color: #fff;
  font-family: "Cairo", sans-serif; font-weight: 900;
  font-size: 18px; letter-spacing: -0.005em;
  padding: 16px 30px; border-radius: 14px;
  border: 0; cursor: pointer;
  box-shadow: 0 14px 32px -12px rgba(14, 116, 144, 0.55);
  transition: transform .18s ease, box-shadow .25s ease, filter .2s ease;
}
.top-physique-chimie-offre .cta-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px -10px rgba(14, 116, 144, 0.7);
  filter: brightness(1.04);
}
.cta-primary svg { width: 22px; height: 22px; }

/* ===== Services ===== */
.top-physique-chimie-offre section.svc-section {
  padding: 40px 0 42px;
  border-top: 1px solid var(--line);
}

.top-physique-chimie-offre .svc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
} 
@media (max-width: 720px) { .svc-grid, .top-physique-chimie-offre .svc-grid{ grid-template-columns: 1fr; } 
  .top-physique-chimie-offre   .topbar-inner{flex-direction: column;flex-flow:revert-layer}}
.top-physique-chimie-offre .svc {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 26px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.top-physique-chimie-offre .svc:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px -14px rgba(14, 116, 144, 0.18);
  border-color: rgba(14, 116, 144, 0.28);
}
.top-physique-chimie-offre .svc .icon {
  width: 46px; height: 46px; border-radius: 12px;
  background: var(--primary-soft); color: var(--primary-strong);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.top-physique-chimie-offre .svc h3 {
  font-family: "Cairo", sans-serif;
  font-weight: 900; letter-spacing: -0.015em;
  font-size: 19px; margin: 0 0 6px;
}
.top-physique-chimie-offre .svc p { margin: 0; color: var(--ink-soft); font-size: 15px; line-height: 1.6; }

/* ===== 3AC featured card ===== */
.top-physique-chimie-offre .three-ac {
  background: linear-gradient(135deg, #f0f9ff, #ecfeff);
  border: 1px solid #bae6fd;
  border-radius: 18px;
  padding: 28px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 18px;
  margin-top: 16px;
}
@media (max-width: 720px) { .three-ac { grid-template-columns: 1fr; } }
.top-physique-chimie-offre .three-ac .badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--primary); color: #fff;
  padding: 5px 12px; border-radius: 999px;
  font-family: "Cairo", sans-serif; font-weight: 800;
  font-size: 12.5px; letter-spacing: 0.02em;
  margin-bottom: 14px;
}
.top-physique-chimie-offre .three-ac h3 {
  font-family: "Cairo", sans-serif;
  font-weight: 900; letter-spacing: -0.015em;
  font-size: 22px; margin: 0 0 4px;
}
.top-physique-chimie-offre .three-ac .lead-text { color: var(--ink-soft); font-size: 14.5px; margin: 0; }
.top-physique-chimie-offre .three-ac ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.top-physique-chimie-offre .three-ac li {
  display: flex; gap: 10px; align-items: flex-start;
  background: #fff;
  border: 1px solid #e0f2fe;
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 14.5px;
  color: var(--ink);
  line-height: 1.5;
}
.top-physique-chimie-offre .three-ac li svg { flex: 0 0 20px; margin-top: 1px; color: var(--primary); }

/* ===== Community band ===== */
.top-physique-chimie-offre .community {
  background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
  border: 1px solid #6ee7b7;
  border-radius: 20px;
  padding: 32px 28px;
  text-align: center;
  margin-top: 16px;
  box-shadow: 0 12px 28px -16px rgba(16, 185, 129, 0.3);
}
.top-physique-chimie-offre .community .icon-big {
  width: 52px; height: 52px; border-radius: 14px;
  background: linear-gradient(180deg, #25d366, #1ebe5d);
  color: #04270f;
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
  box-shadow: 0 8px 20px -10px rgba(37, 211, 102, 0.55);
}
.top-physique-chimie-offre .community h2 {
  font-family: "Cairo", sans-serif;
  font-weight: 900; letter-spacing: -0.02em;
  font-size: 22px; margin: 0 0 8px;
  color: #064e3b;
}
.top-physique-chimie-offre .community h2 .accent { color: #047857; }
.top-physique-chimie-offre .community p {
  color: #065f46; font-size: 15.5px;
  max-width: 520px; margin: 0 auto;
  line-height: 1.6;
}

/* ===== Final CTA ===== */
.top-physique-chimie-offre .final {
  text-align: center;
  padding: 96px 0;
  border-top: 1px solid var(--line);
}
.top-physique-chimie-offre .final h2 {
  font-family: "Cairo", sans-serif;
  font-weight: 900; letter-spacing: -0.025em;
  font-size: clamp(28px, 4.4vw, 42px);
  line-height: 1.2;
  margin: 0 0 28px;
}
.top-physique-chimie-offre .final h2 .accent { color: var(--primary); }

/* ===== Footer ===== */
.top-physique-chimie-offre footer {
  padding: 26px 0 34px;
  text-align: center;
  color: var(--ink-muted);
  font-size: 13px;
  border-top: 1px solid var(--line);
}
/* ===== Featured cards — Top Dessert (gold) & Vidéo Géante (dark) ===== */
.featured {
  display: grid; grid-template-columns: 56px 1fr; gap: 18px; align-items: center;
  border-radius: 20px;
  padding: 26px;
  position: relative;
  overflow: hidden;
  transition: transform .2s ease, box-shadow .25s ease;
}
.featured:hover { transform: translateY(-2px); }
.featured .featured-icon {
  width: 56px; height: 56px; border-radius: 14px;
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.featured h3 {
  font-family: "Cairo", sans-serif;
  font-weight: 900; letter-spacing: -0.015em;
  font-size: 22px; margin: 6px 0 4px;
}
.featured p { margin: 0; font-size: 15px; line-height: 1.6; }
.featured .featured-badge {
  display: inline-flex; align-items: center;
  font-family: "Cairo", sans-serif; font-weight: 800;
  font-size: 12.5px; letter-spacing: 0.04em;
  padding: 4px 11px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid currentColor;
  color: var(--yellow-strong);
}

/* 🏆 Top Dessert — gold gradient */
.svc-grid-wide > .featured {
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
  border: 1px solid #fcd34d;
  box-shadow: 0 18px 40px -22px rgba(245, 158, 11, 0.5);
}
.svc-grid-wide > .featured:hover {
  box-shadow: 0 22px 48px -20px rgba(245, 158, 11, 0.6);
}
.svc-grid-wide > .featured .featured-icon {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  color: #422006;
  box-shadow: 0 8px 20px -10px rgba(245, 158, 11, 0.55);
}
.svc-grid-wide > .featured p { color: #78350f; }


/* Vidéo Géante — dark featured */
.svc-grid-wide > .featured-dark {
  background: linear-gradient(135deg, #0b1220, #1e293b);
  border: 1px solid #334155;
  box-shadow: 0 22px 50px -22px rgba(15, 23, 42, 0.6);
}
.svc-grid-wide > .featured-dark .featured-icon {
  background: linear-gradient(135deg, #0e7490, #155e75);
  color: #fff;
  box-shadow: 0 8px 20px -10px rgba(14, 116, 144, 0.6);
}
.svc-grid-wide > .featured-dark h3 { color: #fff; }
.svc-grid-wide > .featured-dark p { color: #94a3b8; }
.svc-grid-wide > .featured-dark .featured-badge {
  background: rgba(14, 116, 144, 0.18);
  color: #67e8f9;
  border-color: rgba(14, 116, 144, 0.5);
}

/* ===== Add-on section (Support Additionnel features) ===== */
section.addon-section {
  padding: 80px 0;
  border-top: 1px solid var(--line);
}

.addon-intro {
  text-align: center;
  margin-bottom: 40px;
}
.addon-intro .addon-intro-badge {
  display: inline-block;
  font-family: "Cairo", sans-serif; font-weight: 800;
  font-size: 12.5px; letter-spacing: 0.04em;
  color: var(--primary-strong);
  background: var(--primary-soft);
  border: 1px solid #bae6fd;
  padding: 5px 14px; border-radius: 999px;
  margin-bottom: 14px;
}
.addon-intro h2 {
  font-family: "Cairo", sans-serif;
  font-weight: 900; letter-spacing: -0.025em;
  font-size: clamp(28px, 4.4vw, 40px);
  line-height: 1.2;
  margin: 0 0 12px;
}
.addon-intro h2 .accent { color: var(--primary); }
.addon-intro p {
  color: var(--ink-soft); font-size: 16.5px;
  max-width: 620px; margin: 0 auto;
  line-height: 1.6;
}

.addon-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
@media (max-width: 720px) { .addon-grid { grid-template-columns: 1fr; } .featured.reveal{width:100%}}

.addon-card {
  background: linear-gradient(135deg, #f0f9ff 0%, #ecfeff 100%);
  border: 1px solid #bae6fd;
  border-radius: 20px;
  padding: 30px 28px;
  transition: transform .2s ease, box-shadow .25s ease;
}
.addon-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px -20px rgba(14, 116, 144, 0.3);
}
.addon-card .icon {
  width: 56px; height: 56px; border-radius: 14px;
  background: linear-gradient(135deg, #0e7490, #155e75);
  color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
  box-shadow: 0 10px 22px -12px rgba(14, 116, 144, 0.6);
}
.addon-card h3 {
  font-family: "Cairo", sans-serif;
  font-weight: 900; letter-spacing: -0.015em;
  font-size: 22px; margin: 0 0 8px;
  color: var(--ink);
}
.addon-card p {
  margin: 0; color: var(--ink-soft);
  font-size: 15.5px; line-height: 1.65;
}

/* ===== Final CTA ===== */
.final {
  text-align: center;
  padding: 96px 0;
  border-top: 1px solid var(--line);
}
.final h2 {
  font-family: "Cairo", sans-serif;
  font-weight: 900; letter-spacing: -0.025em;
  font-size: clamp(28px, 4.4vw, 42px);
  line-height: 1.2;
  margin: 0 0 28px;
}
.final h2 .accent { color: var(--primary); }
span.featured-gift{color:#fff}
/* Section divider (between Support Collectif & Support Additionnel) */
.section-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 22px;
}
.section-divider .divider-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line) 20%, var(--line) 80%, transparent);
}
.section-divider .divider-mark {
  width: 34px; height: 34px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--primary-strong);
  font-family: "Cairo", sans-serif; font-weight: 800;
  font-size: 18px;
  border: 1px solid #bae6fd;
}
