/* ==========================================================================
   BMSet — landing page
   ========================================================================== */

:root {
  --brand-50: #effcf9;
  --brand-100: #d5f5ee;
  --brand-200: #aeeadf;
  --brand-500: #14a394;
  --brand-600: #0d9488;
  --brand-700: #0f766e;
  --brand-800: #115e59;
  --brand-900: #0b3d3a;

  --ink: #0b1220;
  --ink-2: #334155;
  --muted: #64748b;
  --line: #e6eaef;
  --line-2: #eef1f4;
  --bg: #ffffff;
  --bg-soft: #f7f9fb;
  --bg-tint: #f2faf8;
  --amber: #f59e0b;
  --rose: #e11d48;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06);
  --shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 8px 24px -8px rgba(15, 23, 42, .10);
  --shadow-lg: 0 2px 4px rgba(15, 23, 42, .04), 0 24px 60px -20px rgba(15, 23, 42, .25);

  --container: 1200px;
  --gutter: 20px;
  --font: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-2);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.12; letter-spacing: -0.025em; margin: 0; font-weight: 650; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--brand-600); outline-offset: 3px; border-radius: 6px; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.icon { width: 20px; height: 20px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Section scaffolding ---------- */
.section { padding-block: 88px; }
.section--soft { background: var(--bg-soft); border-block: 1px solid var(--line-2); }
.section-head { max-width: 680px; margin: 0 auto 56px; text-align: center; }
.section-head--left { margin-inline: 0; text-align: left; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; letter-spacing: .02em;
  color: var(--brand-700);
  margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 18px; height: 2px; border-radius: 2px; background: var(--brand-600); }
.section-title { font-size: clamp(30px, 4.2vw, 46px); }
.section-sub { margin-top: 16px; font-size: 18px; color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 20px;
  border-radius: 999px; border: 1px solid transparent;
  font-size: 15px; font-weight: 600; white-space: nowrap;
  transition: background-color .2s, border-color .2s, color .2s, box-shadow .2s, transform .2s;
}
.btn .icon { width: 18px; height: 18px; }
.btn--primary { background: var(--brand-600); color: #fff; box-shadow: 0 1px 2px rgba(13, 148, 136, .3), inset 0 1px 0 rgba(255, 255, 255, .15); }
.btn--primary:hover { background: var(--brand-700); }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: #1e293b; }
.btn--ghost { background: #fff; border-color: var(--line); color: var(--ink); }
.btn--ghost:hover { border-color: #cbd5e1; background: var(--bg-soft); }
.btn--white { background: #fff; color: var(--brand-800); }
.btn--white:hover { background: var(--brand-50); }
.btn--outline-light { border-color: rgba(255, 255, 255, .35); color: #fff; }
.btn--outline-light:hover { background: rgba(255, 255, 255, .1); }
.btn--lg { height: 52px; padding: 0 26px; font-size: 16px; }
.btn--block { width: 100%; }

/* ---------- Navbar ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background-color .2s, border-color .2s;
}
/* Scrolled (or menu open): the bar separates from the hero */
.nav.is-scrolled, .nav.is-open { background: #fff; border-bottom-color: var(--line); }
.nav__inner { display: flex; align-items: center; gap: 32px; height: 68px; }
.nav__brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 19px; color: var(--ink); letter-spacing: -0.02em; }
.nav__brand img { width: 34px; height: 33px; }
.nav__links { display: flex; gap: 4px; margin-right: auto; }
.nav__links a { padding: 8px 12px; border-radius: 8px; font-size: 15px; font-weight: 500; color: var(--ink-2); transition: color .2s, background-color .2s; }
.nav__links a:hover { color: var(--ink); background: var(--bg-soft); }
.nav__actions { display: flex; align-items: center; gap: 10px; }
.nav__login { font-size: 15px; font-weight: 600; color: var(--ink); padding: 8px 12px; }
.nav__login:hover { color: var(--brand-700); }
.nav__toggle { display: none; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 10px; background: #fff; align-items: center; justify-content: center; }
.nav__toggle .icon { width: 22px; height: 22px; }
.nav__toggle .icon-close { display: none; }
.nav.is-open .nav__toggle .icon-menu { display: none; }
.nav.is-open .nav__toggle .icon-close { display: block; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 140px 0 0; overflow: hidden; isolation: isolate; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 50% at 50% 0%, rgba(20, 163, 148, .12), transparent 70%),
    linear-gradient(180deg, #fff 0%, var(--bg-tint) 100%);
}
.hero__content { max-width: 860px; margin: 0 auto; text-align: center; }
.pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 14px 6px 6px; border-radius: 999px;
  background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  font-size: 14px; font-weight: 500; color: var(--ink-2);
  transition: border-color .2s, color .2s;
}
.pill:hover { border-color: var(--brand-200); color: var(--brand-700); }
.pill .icon { width: 15px; height: 15px; }
.pill__tag { padding: 2px 10px; border-radius: 999px; background: var(--brand-600); color: #fff; font-size: 12px; font-weight: 600; }
.hero__title { margin-top: 24px; font-size: clamp(38px, 6.4vw, 72px); font-weight: 700; letter-spacing: -0.04em; line-height: 1.04; }
.hero__title em { font-style: normal; color: var(--brand-600); }
.hero__sub { max-width: 640px; margin: 22px auto 0; font-size: clamp(17px, 2vw, 20px); color: var(--muted); }
.hero__ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 34px; }
.hero__trust { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 24px; margin-top: 26px; font-size: 14px; color: var(--muted); }
.hero__trust li { display: inline-flex; align-items: center; gap: 6px; }
.hero__trust .icon { width: 16px; height: 16px; color: var(--brand-600); stroke-width: 2.4; }

.hero__visual { position: relative; max-width: 1120px; margin: 64px auto 0; padding-inline: var(--gutter); }
.hero__visual::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 30%;
  background: linear-gradient(180deg, transparent, #fff); pointer-events: none;
}

/* Browser + phone frames */
.browser {
  border-radius: 14px; overflow: hidden; background: #fff;
  border: 1px solid rgba(15, 23, 42, .08);
  box-shadow: var(--shadow-lg), 0 0 0 6px rgba(255, 255, 255, .6);
}
.browser__bar { display: flex; align-items: center; gap: 12px; height: 38px; padding: 0 14px; background: #f8fafc; border-bottom: 1px solid var(--line); }
.browser__dots { display: flex; gap: 6px; }
.browser__dots span { width: 10px; height: 10px; border-radius: 50%; background: #e2e8f0; }
.browser__url {
  flex: 1; max-width: 340px; margin-inline: auto; height: 24px; border-radius: 6px;
  background: #fff; border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center; gap: 6px;
  font-size: 12px; color: var(--muted);
}
.browser__url .icon { width: 12px; height: 12px; }
.browser img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top left; }

.phone {
  position: absolute; right: 2%; bottom: 8%; z-index: 2; width: 21%; min-width: 150px;
  padding: 8px; border-radius: 34px; background: #0b1220;
  box-shadow: var(--shadow-lg);
}
.phone img { width: 100%; aspect-ratio: 390 / 844; object-fit: cover; object-position: top; border-radius: 27px; background: #fff; }
/* Mobile-only phone shots that replace the desktop browser frames on small screens */
.phone--solo { display: none; }

/* ---------- Proof / stats ---------- */
.proof { padding: 40px 0 72px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; }
.stat { padding: 28px 24px; text-align: center; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat__value { font-size: clamp(30px, 3.6vw, 40px); font-weight: 700; color: var(--ink); letter-spacing: -0.03em; line-height: 1.1; }
.stat__value span { color: var(--brand-600); }
.stat__label { margin-top: 6px; font-size: 14px; color: var(--muted); }

/* ---------- Facultés (map) ---------- */
.section--tint { background: linear-gradient(180deg, #fff 0%, var(--bg-tint) 100%); border-top: 1px solid var(--line-2); }
.unis-grid { display: grid; grid-template-columns: 1.55fr 1fr; gap: 32px; align-items: center; }
.map-card {
  position: relative; overflow: hidden; padding: 20px; border-radius: var(--radius-xl);
  background: linear-gradient(180deg, #eef8fb 0%, #f4fbfa 100%);
  border: 1px solid var(--line); box-shadow: var(--shadow);
}
.map { width: 100%; height: auto; overflow: hidden; border-radius: 14px; }
.map__land { fill: #fff; stroke: var(--brand-200); stroke-width: 1.4; stroke-linejoin: round; }
.map__land--other { fill: #f1f5f9; stroke: #dbe3ea; }
.map__sea { font-size: 17px; font-style: italic; fill: #7aa5b5; letter-spacing: .08em; }
.map__country { font-size: 13px; font-weight: 600; fill: #a3b1bf; letter-spacing: .2em; }
.map__country--dz { font-size: 22px; fill: var(--brand-200); letter-spacing: .5em; }
.pin { cursor: default; }
.pin__dot { fill: var(--brand-600); stroke: #fff; stroke-width: 3; transition: r .2s, fill .2s; }
.pin__pulse { fill: var(--brand-500); opacity: .35; transform-box: fill-box; transform-origin: center; animation: pulse 2.4s ease-out infinite; }
.pin__label { font-size: 19px; font-weight: 600; fill: var(--ink); paint-order: stroke; stroke: #fff; stroke-width: 5px; stroke-linejoin: round; transition: fill .2s; }
.pin.is-active .pin__dot { r: 10; fill: var(--brand-800); }
.pin.is-active .pin__label { fill: var(--brand-700); }
@keyframes pulse { 0% { transform: scale(1); opacity: .45; } 80%, 100% { transform: scale(3.2); opacity: 0; } }

.regions { display: grid; gap: 22px; }
.region h3 { font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.fac-list { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.fac-list li {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px;
  border-radius: 12px; background: #fff; border: 1px solid var(--line);
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.fac-list li:hover, .fac-list li.is-active { border-color: var(--brand-200); box-shadow: var(--shadow); }
.fac-list .icon { width: 30px; height: 30px; padding: 6px; border-radius: 9px; background: var(--brand-50); color: var(--brand-700); }
.fac-list strong { display: block; font-size: 15px; color: var(--ink); line-height: 1.25; }
.fac-list span { font-size: 12.5px; color: var(--muted); line-height: 1.3; }
.regions__note { display: flex; gap: 14px; padding: 18px; border-radius: var(--radius-lg); border: 1px dashed var(--brand-200); background: #fff; font-size: 14px; color: var(--muted); }
.regions__note-icon { flex: none; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; background: var(--brand-50, #f0fdfa); color: var(--brand-700); }
.regions__note-icon .icon { width: 19px; height: 19px; }
.regions__note strong { display: block; font-size: 15px; color: var(--ink); }
.regions__note p { margin-top: 4px; }
.regions__note a { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; color: var(--brand-700); font-weight: 600; }
.regions__note a .icon { width: 16px; height: 16px; transition: translate .2s; }
.regions__note a:hover .icon { translate: 3px 0; }

/* ---------- Bento features ---------- */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.card {
  position: relative; overflow: hidden;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 28px; box-shadow: var(--shadow-sm);
  transition: box-shadow .25s, transform .25s, border-color .25s;
}
.card:hover { box-shadow: var(--shadow); border-color: #dbe2ea; }
.bento .card { grid-column: span 2; display: flex; flex-direction: column; }
.bento .card--wide { grid-column: span 4; }
.bento .card--half { grid-column: span 3; }
.bento .card--full { grid-column: 1 / -1; }
.card--support { flex-direction: row !important; align-items: center; gap: 20px; }
.card--support .card__icon { flex: none; margin: 0; }
.card--support .card__body { flex: 1; }
.card--support .chips { flex: none; margin-top: 0; }
.card__icon {
  width: 44px; height: 44px; border-radius: 12px;
  display: grid; place-items: center;
  background: var(--brand-50); color: var(--brand-700); border: 1px solid var(--brand-100);
  margin-bottom: 18px;
}
.card__icon .icon { width: 22px; height: 22px; }
.card__badge { position: absolute; top: 24px; right: 24px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; color: #b45309; background: #fef3c7; }
.card h3 { font-size: 19px; letter-spacing: -0.015em; }
.card p { margin-top: 8px; font-size: 15px; color: var(--muted); }
.card__shot {
  margin: 24px -28px -28px 28px; margin-top: auto; padding-top: 24px;
}
.card__shot img {
  width: 100%; border-radius: 12px 0 0 0; border: 1px solid var(--line); border-right: 0; border-bottom: 0;
  aspect-ratio: 16 / 8.2; object-fit: cover; object-position: top left;
  box-shadow: 0 -6px 30px -10px rgba(15, 23, 42, .15);
}
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px; }
.chip { padding: 4px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 500; background: var(--bg-soft); border: 1px solid var(--line); color: var(--ink-2); }

/* mini visual: spaced repetition */
.srs { display: flex; gap: 6px; margin-top: 22px; }
.srs span { flex: 1; padding: 10px 6px; border-radius: 10px; text-align: center; font-size: 12px; font-weight: 600; }
.srs span b { display: block; font-size: 18px; letter-spacing: -0.02em; }
.srs .s1 { background: #eff6ff; color: #1d4ed8; }
.srs .s2 { background: #fff7ed; color: #c2410c; }
.srs .s3 { background: var(--brand-50); color: var(--brand-700); }
.srs .s4 { background: #fdf2f8; color: #be185d; }

/* ---------- Product tour ---------- */
.tour { display: flex; flex-direction: column; align-items: center; gap: 22px; }
/* Tabs: a centered grid of chips (all sizes); the open tab's description shows below */
.tour__tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; max-width: 1040px; }
.tour__group { display: none; }
.tour__tab {
  display: block; flex: none; text-align: left;
  padding: 7px 16px 7px 7px; border-radius: 999px; border: 1px solid var(--line); background: #fff;
  transition: background-color .2s, border-color .2s, box-shadow .2s, transform .2s;
}
.tour__tab:hover { border-color: var(--brand-200); transform: translateY(-1px); }
.tour__tab[aria-selected="true"] { background: var(--brand-600); border-color: var(--brand-600); box-shadow: 0 8px 20px -10px rgba(13, 148, 136, .8); transform: none; }
.tour__tab-title { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 600; color: var(--ink-2); }
.tour__tab[aria-selected="true"] .tour__tab-title { color: #fff; }
.tour__tab-title .icon {
  flex: none; width: 32px; height: 32px; padding: 7px; border-radius: 999px;
  background: var(--bg-soft); border: 1px solid var(--line-2); color: var(--muted);
  transition: background-color .2s, color .2s, border-color .2s;
}
.tour__tab:hover .tour__tab-title .icon { color: var(--brand-700); }
.tour__tab[aria-selected="true"] .tour__tab-title .icon { background: rgba(255, 255, 255, .18); border-color: transparent; color: #fff; }
.tour__tab-desc { display: none; }
.tour__caption { max-width: 640px; min-height: 3.2em; margin: 0; text-align: center; font-size: 16.5px; line-height: 1.6; color: var(--muted); }
.tour__panels { width: 100%; max-width: 1040px; }
.tour__panel[hidden] { display: none; }
.tour__panel { animation: fade .35s ease; }
/* Two overlapping windows (Cours & PDF): library behind on the right, PDF reader in front on the left */
.stack { position: relative; padding-bottom: 18.75%; }
.stack__back { width: 70%; margin-left: auto; }
.stack__front { position: absolute; left: 0; bottom: 0; width: 70%; box-shadow: 0 30px 60px -18px rgba(11, 18, 32, .35); }
/* Three windows (ECOS): library at the back, station in the middle, correction grid in front */
.stack--3 { padding-bottom: 40%; }
.stack--3 .stack__back { width: 66%; margin-left: auto; }
.stack--3 .stack__mid { position: absolute; left: 0; top: 20%; width: 66%; z-index: 1; box-shadow: 0 24px 48px -18px rgba(11, 18, 32, .3); }
.stack--3 .stack__front { left: auto; right: 4%; width: 58%; z-index: 2; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---------- Spotlight (dark) ---------- */
.spotlight { position: relative; overflow: hidden; background: var(--brand-900); color: #cfe9e5; isolation: isolate; }
.spotlight::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(50% 60% at 85% 20%, rgba(20, 184, 166, .28), transparent 70%),
    radial-gradient(40% 50% at 0% 100%, rgba(13, 148, 136, .25), transparent 70%);
}
.spotlight .eyebrow { color: #5eead4; }
.spotlight .eyebrow::before { background: #5eead4; }
.spotlight h2 { color: #fff; }
.spotlight .section-sub { color: #a7d3cd; }
.split { display: grid; grid-template-columns: 1fr 1.25fr; gap: 64px; align-items: center; }
.ticks { display: grid; gap: 14px; margin-top: 30px; }
.ticks li { display: flex; gap: 12px; font-size: 16px; }
.ticks .icon { width: 22px; height: 22px; padding: 3px; border-radius: 50%; color: var(--brand-900); background: #5eead4; stroke-width: 3; margin-top: 1px; }
.ticks strong { color: #fff; font-weight: 600; }
.spotlight .browser { border-color: rgba(255, 255, 255, .1); box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .5); }
.specialties { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 30px; }
.specialties span { padding: 6px 12px; border-radius: 999px; font-size: 13px; border: 1px solid rgba(255, 255, 255, .15); color: #d6efeb; }

/* ---------- Testimonials ---------- */
.quotes { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 16px; align-items: stretch; }
/* The other testimonials scroll by in two columns, fading out at the edges */
.quotes-wall {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px; height: 560px; overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 14%, #000 86%, transparent);
          mask-image: linear-gradient(to bottom, transparent, #000 14%, #000 86%, transparent);
}
.quotes-col { min-width: 0; }
.quotes-track { display: flex; flex-direction: column; gap: 16px; animation: quotes-up 48s linear infinite; }
.quotes-col--down .quotes-track { animation-name: quotes-down; animation-duration: 56s; }
.quotes-wall:hover .quotes-track { animation-play-state: paused; }
@keyframes quotes-up { to { transform: translateY(calc(-50% - 8px)); } }
@keyframes quotes-down { from { transform: translateY(calc(-50% - 8px)); } to { transform: translateY(0); } }
@keyframes quotes-left { to { transform: translateX(calc(-50% - 8px)); } }
/* Reduced motion: the four cards, still */
.quotes-wall.is-static { height: auto; -webkit-mask-image: none; mask-image: none; }
.quotes-wall.is-static .quotes-col { grid-column: 1 / -1; }
.quotes-wall.is-static .quotes-col--down { display: none; }
.quotes-wall.is-static .quotes-track { display: grid; grid-template-columns: 1fr 1fr; animation: none; }
.quote { margin: 0; padding: 26px; border-radius: var(--radius-lg); border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow-sm); }
.quote--featured { align-self: stretch; display: flex; flex-direction: column; justify-content: space-between; padding: 34px; background: var(--brand-700); border-color: var(--brand-700); color: #e2f5f2; }
.quote.quote--featured blockquote { font-size: 20px; line-height: 1.55; color: #fff; letter-spacing: -0.01em; }
.quote--featured .quote__name { color: #fff; }
.quote--featured .quote__role { color: #a7e3d9; }
.quote--featured .stars { color: #fde68a; }
.stars { display: flex; gap: 2px; color: var(--amber); }
.stars .icon { width: 16px; height: 16px; fill: currentColor; stroke: none; }
.quote blockquote { margin: 14px 0 0; font-size: 15.5px; line-height: 1.65; }
.quote__by { display: flex; align-items: center; gap: 12px; margin-top: 20px; }
.quote__by img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.quote__name { font-size: 15px; font-weight: 600; color: var(--ink); }
.quote__role { font-size: 13px; color: var(--muted); }

/* ---------- FAQ ---------- */
.faq__list { display: flex; flex-direction: column; gap: 12px; max-width: 820px; margin: 0 auto; }
.faq__item {
  border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; box-shadow: var(--shadow-sm);
  transition: border-color .2s, box-shadow .2s;
}
.faq__item:hover { border-color: #d5dde6; }
.faq__item[open] { border-color: var(--brand-200); box-shadow: 0 0 0 3px var(--brand-50), var(--shadow); }
.faq__item summary {
  display: flex; align-items: center; gap: 16px; padding: 18px 22px; cursor: pointer; list-style: none;
  font-size: 17px; font-weight: 600; color: var(--ink);
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__num {
  flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px;
  font-size: 13px; font-weight: 700; color: var(--brand-700); background: var(--brand-50); border: 1px solid var(--brand-100);
  transition: background-color .2s, color .2s;
}
.faq__item[open] .faq__num { background: var(--brand-600); border-color: var(--brand-600); color: #fff; }
.faq__q { flex: 1; }
.faq__item summary .icon {
  flex: none; width: 30px; height: 30px; padding: 6px; border-radius: 999px; background: var(--bg-soft); color: var(--muted);
  transition: transform .25s, background-color .2s, color .2s;
}
.faq__item[open] summary .icon { transform: rotate(45deg); background: var(--brand-50); color: var(--brand-600); }
.faq__a { padding: 0 22px 20px 74px; color: var(--muted); font-size: 16px; line-height: 1.65; }
.faq__a p + p { margin-top: 10px; }
/* Contact card under the questions */
.faq__contact {
  display: flex; align-items: center; gap: 18px; max-width: 820px; margin: 28px auto 0; padding: 22px 24px;
  border-radius: var(--radius-lg); background: var(--brand-700); color: #d5f5ee;
}
.faq__contact-icon { flex: none; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: rgba(255, 255, 255, .12); color: #fff; }
.faq__contact-icon .icon { width: 24px; height: 24px; }
.faq__contact-text { flex: 1; display: flex; flex-direction: column; gap: 2px; font-size: 15px; }
.faq__contact-text strong { color: #fff; font-size: 17px; }
.faq__contact-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.faq__contact .btn--dark { background: #fff; color: var(--brand-800); }
.faq__contact .btn--dark:hover { background: var(--brand-50); }
.faq__contact .btn--ghost { background: transparent; border-color: rgba(255, 255, 255, .35); color: #fff; }
.faq__contact .btn--ghost:hover { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .6); }

/* ---------- CTA ---------- */
.cta { padding: 0 0 96px; }
.cta__box {
  position: relative; overflow: hidden; isolation: isolate;
  padding: 72px 32px; border-radius: var(--radius-xl); text-align: center;
  background: var(--brand-700); color: #d5f5ee;
}
.cta__box::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 80% at 50% 0%, rgba(94, 234, 212, .35), transparent 70%),
    radial-gradient(40% 60% at 100% 100%, rgba(11, 61, 58, .7), transparent 70%);
}
.cta__box h2 { color: #fff; font-size: clamp(30px, 4.4vw, 48px); max-width: 720px; margin-inline: auto; }
.cta__box p { max-width: 560px; margin: 16px auto 0; font-size: 18px; }
.cta__box .hero__ctas { margin-top: 32px; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 64px 0 32px; background: var(--bg-soft); font-size: 15px; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.footer__brand p { margin-top: 14px; max-width: 300px; color: var(--muted); }
.footer h4 { font-size: 14px; font-weight: 600; color: var(--ink); margin-bottom: 14px; letter-spacing: 0; }
.footer ul { display: grid; gap: 10px; }
.footer ul a { color: var(--muted); }
.footer ul a:hover { color: var(--brand-700); }
.socials { display: flex; gap: 8px; margin-top: 22px; }
.socials a { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; border: 1px solid var(--line); background: #fff; color: var(--ink-2); transition: color .2s, border-color .2s; }
.socials a:hover { color: var(--brand-700); border-color: var(--brand-200); }
.socials .icon { width: 18px; height: 18px; }
.footer__bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }

/* ---------- Reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .split { gap: 40px; }
}

@media (max-width: 900px) {
  .section { padding-block: 72px; }
  .nav__links, .nav__actions .nav__login, .nav__actions .btn { display: none; }
  .nav__actions { margin-left: auto; }
  .nav__toggle { display: inline-flex; }
  .nav__panel {
    position: absolute; top: 100%; left: 0; right: 0;
    display: none; padding: 12px var(--gutter) 20px;
    background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
  }
  .nav.is-open .nav__panel { display: grid; gap: 4px; }
  .nav__panel a { padding: 12px 8px; font-weight: 500; color: var(--ink); border-radius: 8px; }
  .nav__panel .btn { margin-top: 8px; color: #fff; }

  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }

  .bento { grid-template-columns: repeat(2, 1fr); }
  .bento .card, .bento .card--half { grid-column: span 1; }
  .bento .card--wide, .bento .card--full { grid-column: 1 / -1; grid-row: auto; }
  .card--support { flex-direction: column !important; align-items: flex-start; }

  /* Phones / tablets: smaller chips and caption */
  .tour { gap: 20px; }
  .tour__tabs { gap: 8px; }
  .tour__tab { padding: 6px 12px 6px 6px; }
  .tour__tab-title { gap: 8px; font-size: 14px; }
  .tour__tab-title .icon { width: 28px; height: 28px; padding: 6px; }
  .tour__caption { max-width: 560px; min-height: 0; font-size: 15px; line-height: 1.55; }

  .split, .unis-grid { grid-template-columns: 1fr; gap: 40px; }
  .faq__contact { flex-direction: column; align-items: flex-start; }
  .quotes { grid-template-columns: 1fr; }
  /* Tablets / phones: one row sliding sideways */
  .quotes-wall {
    grid-template-columns: 1fr; height: auto; margin-inline: calc(var(--gutter) * -1);
    -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
            mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
  }
  .quotes-col--down { display: none; }
  .quotes-track { flex-direction: row; width: max-content; animation: quotes-left 40s linear infinite; }
  .quotes-track .quote { width: 300px; flex: none; }
  .quotes-wall.is-static { margin-inline: 0; }
  .quotes-wall.is-static .quotes-track { width: auto; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: span 2; }
}
@media (min-width: 901px) {
  .nav__panel { display: none !important; }
}

@media (max-width: 640px) {
  :root { --gutter: 16px; }
  .section { padding-block: 60px; }
  .section-head { margin-bottom: 40px; }
  .hero { padding-top: 116px; }
  /* Phones: the two buttons side by side (short label on the second one) */
  .hero__ctas { flex-wrap: nowrap; gap: 8px; }
  .hero__ctas .btn--lg { height: 46px; padding: 0 18px; font-size: 15px; }
  .hide-sm { display: none; }
  .hero__visual { margin-top: 44px; }
  /* Small screens show only the mobile screenshots */
  .desk-only { display: none !important; }
  .phone { width: 30%; min-width: 0; right: 4%; bottom: 4%; padding: 5px; border-radius: 22px; }
  .phone img { border-radius: 17px; }
  .phone--solo { display: block; position: relative; right: auto; bottom: auto; width: 68%; max-width: 280px; min-width: 0; margin: 0 auto; padding: 7px; border-radius: 31px; }
  .phone--solo img { border-radius: 24px; }
  /* QCM bank card: top half of the phone only, fading out at the bottom */
  .card .phone--solo { width: 72%; margin-top: 22px; height: 300px; overflow: hidden; border-radius: 31px 31px 0 0; padding-bottom: 0;
    -webkit-mask-image: linear-gradient(#000 45%, transparent 100%); mask-image: linear-gradient(#000 45%, transparent 100%); }
  .stack { display: flex; justify-content: center; gap: 12px; padding-bottom: 0; }
  .stack .phone--solo { width: 48%; margin: 0; padding: 5px; border-radius: 24px; }
  .stack .phone--solo img { border-radius: 19px; }
  .browser__bar { height: 28px; }
  .browser__url { display: none; }
  .bento { grid-template-columns: 1fr; }
  .bento .card, .bento .card--wide, .bento .card--half { grid-column: span 1; }
  .card { padding: 24px; }
  .card__shot { margin: 20px -24px -24px 24px; }
  .stat { padding: 22px 12px; }
  .map-card { padding: 10px; border-radius: var(--radius-lg); }
  .pin__label, .map__sea, .map__country { display: none; }
  .pin__dot { r: 10; }
  .fac-list li { padding: 9px 10px; gap: 8px; }
  .fac-list .icon { width: 26px; height: 26px; padding: 5px; }
  .fac-list strong { font-size: 14px; }
  .faq__item summary { gap: 12px; padding: 16px; font-size: 16px; }
  .faq__num { width: 30px; height: 30px; font-size: 12px; }
  .faq__a { padding: 0 16px 18px 58px; font-size: 15px; }
  .faq__contact-actions .btn { width: 100%; justify-content: center; }
  .faq__contact-actions { width: 100%; }
  .cta__box { padding: 56px 20px; }
  /* Phones: brand centered on top, links in two columns (Produit | Compte + Aide) */
  .footer { padding: 44px 0 28px; }
  .footer__grid {
    grid-template-columns: 1fr 1fr; grid-template-areas: "brand brand" "product account" "product help";
    gap: 28px 20px;
  }
  .footer__grid > :nth-child(1) { grid-area: brand; }
  .footer__grid > :nth-child(2) { grid-area: product; }
  .footer__grid > :nth-child(3) { grid-area: account; }
  .footer__grid > :nth-child(4) { grid-area: help; }
  .footer__brand { grid-column: auto; display: flex; flex-direction: column; align-items: center; text-align: center; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
  .footer__brand p { max-width: 280px; }
  .footer h4 { margin-bottom: 10px; }
  .footer ul { gap: 8px; }
  .footer ul a { overflow-wrap: anywhere; }
  .footer__bottom { flex-direction: column; align-items: center; gap: 6px; margin-top: 32px; padding-top: 20px; text-align: center; font-size: 13px; }
  .quotes { grid-template-columns: 1fr; }
  .quote--featured { grid-column: auto; }
  .quote.quote--featured blockquote { font-size: 17px; }
}

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

/* Narrow phones (360px): the two hero buttons still side by side */
@media (max-width: 380px) {
  .hero__ctas .btn--lg { padding: 0 14px; font-size: 14px; }
  .hero__ctas .btn--lg .icon { display: none; }
}
