/* =========================================================
   MandySoft — Design system
   Concept : Corporate Precision — navy + orange
   Fonts   : Syne (titres) + Figtree (corps)
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Syne:wght@600;700;800&family=Figtree:wght@400;500;600&display=swap');

/* ── Tokens ─────────────────────────────────────────────── */
:root {
  --navy:        #0C1E3C;
  --navy-mid:    #1A3A6C;
  --navy-light:  #F0F4FA;
  --orange:      #E86018;
  --orange-h:    #CF5010;
  --orange-soft: #FEF0E8;
  --bg:          #FFFFFF;
  --bg-alt:      #F4F7FB;
  --fg:          #0C1E3C;
  --fg-muted:    #52637D;
  --border:      #D8E2F0;
  --white:       #FFFFFF;

  --ff-head: 'Syne', system-ui, sans-serif;
  --ff-body: 'Figtree', system-ui, sans-serif;

  --radius-s:  4px;
  --radius-m:  8px;
  --radius-l:  14px;
  --shadow-s:  0 1px 4px rgba(12,30,60,.06), 0 2px 12px rgba(12,30,60,.05);
  --shadow-m:  0 4px 24px rgba(12,30,60,.10);
  --max-w:     1160px;
  --side:      1.5rem;
}

/* ── Reset & base ───────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--ff-body);
  font-size: 1rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a   { color: var(--orange); text-decoration: none; }
a:hover { color: var(--orange-h); }
ul  { list-style: none; }

/* ── Layout helpers ─────────────────────────────────────── */
.container {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--side);
}

.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.5rem; }

/* ── Typography ─────────────────────────────────────────── */
h1,h2,h3,h4 { font-family: var(--ff-head); line-height: 1.15; text-wrap: balance; }
h1 { font-size: clamp(2rem, 5vw, 3.25rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 700; }
h4 { font-size: 1rem; font-weight: 600; }

.section-label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 0.75rem;
}

/* ── Buttons ────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--ff-body);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.7rem 1.5rem;
  border-radius: var(--radius-s);
  border: 2px solid transparent;
  cursor: pointer;
  transition: background .18s, color .18s, border-color .18s, transform .12s;
  text-decoration: none;
  white-space: nowrap;
}
.btn:active { transform: scale(.97); }

.btn-primary {
  background: var(--orange);
  color: #fff;
  border-color: var(--orange);
}
.btn-primary:hover {
  background: var(--orange-h);
  border-color: var(--orange-h);
  color: #fff;
}

.btn-outline {
  background: transparent;
  color: var(--navy);
  border-color: var(--border);
}
.btn-outline:hover {
  border-color: var(--navy);
  color: var(--navy);
}

.btn-outline-white {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,.4);
}
.btn-outline-white:hover {
  border-color: #fff;
  background: rgba(255,255,255,.08);
  color: #fff;
}

/* ── Navigation ─────────────────────────────────────────── */
#site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
#site-nav.scrolled {
  border-color: var(--border);
  box-shadow: var(--shadow-s);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 2rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  flex-shrink: 0;
}
.nav-logo img { height: 38px; width: auto; }
.nav-logo-text {
  font-family: var(--ff-head);
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -.01em;
}
.nav-logo-text span { color: var(--orange); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.nav-links a {
  font-size: .9rem;
  font-weight: 500;
  color: var(--fg-muted);
  padding: .5rem .85rem;
  border-radius: var(--radius-s);
  transition: color .15s, background .15s;
  text-decoration: none;
}
.nav-links a:hover,
.nav-links a.active { color: var(--navy); background: var(--navy-light); }

.nav-cta { margin-left: 0.75rem; }

/* Hamburger */
.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.nav-burger span {
  display: block;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform .22s, opacity .22s;
}
.nav-burger.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Mobile menu */
.nav-mobile {
  display: none;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1rem var(--side) 1.5rem;
  border-top: 1px solid var(--border);
  background: var(--bg);
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  font-size: .95rem;
  font-weight: 500;
  color: var(--fg);
  padding: .65rem .75rem;
  border-radius: var(--radius-s);
  transition: background .15s;
  text-decoration: none;
}
.nav-mobile a:hover { background: var(--navy-light); }
.nav-mobile .btn { width: 100%; justify-content: center; margin-top: .5rem; }

/* ── Hero ───────────────────────────────────────────────── */
.hero {
  background: var(--bg-alt);
  padding-block: 5.5rem 4.5rem;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

/* Orange left accent bar */
.hero::before {
  content: '';
  position: absolute;
  left: 0; top: 0;
  width: 5px; height: 100%;
  background: var(--orange);
  z-index: 1;
}

/* Dot pattern (fond clair, sans photo) */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(var(--border) 1.5px, transparent 1.5px);
  background-size: 28px 28px;
  pointer-events: none;
  opacity: .7;
}

/* Cartouche texte hero — surcharge tous les modes (clair/sombre) */
.hero-text-card {
  background: rgba(255,255,255,.88);
  border-radius: var(--radius-l);
  padding: 2.25rem 2rem 2rem;
  box-shadow: 0 8px 32px rgba(12,30,60,.12);
  backdrop-filter: blur(4px);
}
.hero .hero-text-card .hero-badge {
  background: var(--orange-soft);
  border-color: rgba(232,96,24,.25);
  color: var(--orange);
}
.hero .hero-text-card h1,
.hero.has-bg .hero-text-card h1 { color: var(--navy); }
.hero .hero-text-card h1 em,
.hero.has-bg .hero-text-card h1 em { color: var(--orange); }
.hero .hero-text-card .hero-lead,
.hero.has-bg .hero-text-card .hero-lead { color: var(--fg-muted); }

.hero .hero-text-card .hero-product-list,
.hero.has-bg .hero-text-card .hero-product-list {
  background: transparent;
  border: none;
  padding: 0;
}
.hero .hero-text-card .hero-product-list li,
.hero.has-bg .hero-text-card .hero-product-list li { color: var(--fg-muted); border-color: var(--border); }
.hero .hero-text-card .hero-product-list .prod-name,
.hero.has-bg .hero-text-card .hero-product-list .prod-name { color: var(--navy); }

/* ── Hero avec photo de fond ────────────────────────────── */
.hero.has-bg {
  background-color: var(--navy);
  background-size: cover;
  background-position: center;
  border-bottom: none;
}
.hero.has-bg::after {
  background-image: radial-gradient(rgba(255,255,255,.08) 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: 1;
}
.hero.has-bg .hero-badge {
  background: rgba(232,96,24,.2);
  border-color: rgba(232,96,24,.4);
  color: #F9A96B;
}
.hero.has-bg h1 { color: #fff; }
.hero.has-bg h1 em { color: var(--orange); }
.hero.has-bg .hero-lead { color: rgba(255,255,255,.82); }
.hero.has-bg .hero-product-list {
  background: rgba(255,255,255,.07);
  border-color: rgba(255,255,255,.12);
}
.hero.has-bg .hero-product-list li { color: rgba(255,255,255,.7); border-color: rgba(255,255,255,.1); }
.hero.has-bg .hero-product-list .prod-name { color: #fff; }

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--orange-soft);
  border: 1px solid rgba(232,96,24,.25);
  color: var(--orange);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .35em .9em;
  border-radius: 20px;
  margin-bottom: 1.25rem;
}

.hero h1 {
  color: var(--navy);
  margin-bottom: 1.25rem;
}
.hero h1 em {
  font-style: normal;
  color: var(--orange);
}

.hero-lead {
  color: var(--fg-muted);
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 2rem;
  max-width: 480px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .875rem;
  align-items: center;
}

.hero-visual {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.hero-stat-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-stat {
  flex: 1;
  min-width: 120px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
  padding: 1.25rem;
}
.hero-stat-num {
  font-family: var(--ff-head);
  font-size: 2rem;
  font-weight: 800;
  color: var(--orange);
  line-height: 1;
  margin-bottom: .25rem;
  font-variant-numeric: tabular-nums;
}
.hero-stat-label {
  font-size: .82rem;
  color: var(--fg-muted);
}

.hero-product-list {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
  padding: 1.25rem 1.5rem;
}
.hero-product-list li {
  display: flex;
  align-items: center;
  gap: .75rem;
  font-size: .9rem;
  color: var(--fg-muted);
  padding: .5rem 0;
  border-bottom: 1px solid var(--border);
}
.hero-product-list li:last-child { border: none; }
.hero-product-list .dot {
  width: 8px; height: 8px;
  background: var(--orange);
  border-radius: 50%;
  flex-shrink: 0;
}
.hero-product-list .prod-name {
  font-weight: 600;
  color: var(--navy);
  min-width: 110px;
}

/* ── Sections ───────────────────────────────────────────── */
.section { padding-block: 5rem; }
.section-alt { background: var(--bg-alt); }
.section-navy {
  background-color: var(--navy-light);
  background-image:
    repeating-linear-gradient(
      -45deg,
      transparent 0px, transparent 22px,
      rgba(12,30,60,.04) 22px, rgba(12,30,60,.04) 23px
    );
  color: var(--fg);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  position: relative;
}
.section-navy h2 { color: var(--navy); }
.section-navy .section-label { color: var(--orange); }

.section-head {
  max-width: 600px;
  margin-bottom: 3rem;
}
.section-head p {
  color: var(--fg-muted);
  margin-top: .75rem;
  font-size: 1.05rem;
}
.section-navy .section-head p { color: var(--fg-muted); }

/* ── Product cards ──────────────────────────────────────── */
.product-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-l);
  padding: 2rem;
  position: relative;
  transition: box-shadow .2s, transform .2s;
  display: flex;
  flex-direction: column;
}
.product-card::before {
  content: '';
  position: absolute;
  left: 0; top: 1.5rem; bottom: 1.5rem;
  width: 3px;
  background: var(--orange);
  border-radius: 0 3px 3px 0;
  transition: top .2s, bottom .2s;
}
.product-card:hover {
  box-shadow: var(--shadow-m);
  transform: translateY(-2px);
}
.product-card:hover::before { top: .75rem; bottom: .75rem; }

.product-card-icon {
  width: 44px; height: 44px;
  background: var(--orange-soft);
  border-radius: var(--radius-s);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.25rem;
}
.product-card-icon svg { color: var(--orange); }

.product-card h3 { color: var(--navy); margin-bottom: .5rem; }
.product-card p {
  color: var(--fg-muted);
  font-size: .9rem;
  flex: 1;
  margin-bottom: 1.25rem;
}

.product-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  margin-top: auto;
}

.price-tag {
  font-family: var(--ff-head);
  font-size: .85rem;
  font-weight: 700;
  color: var(--navy);
}
.price-tag span { color: var(--fg-muted); font-family: var(--ff-body); font-weight: 400; font-size: .8rem; }

.card-link {
  font-size: .85rem;
  font-weight: 600;
  color: var(--orange);
  display: flex;
  align-items: center;
  gap: .3rem;
  transition: gap .15s;
  text-decoration: none;
}
.card-link:hover { gap: .55rem; color: var(--orange-h); }

/* ── Feature list ───────────────────────────────────────── */
.feature-list {
  display: flex;
  flex-direction: column;
  gap: .6rem;
  margin: 1rem 0;
}
.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: .65rem;
  font-size: .9rem;
  color: var(--fg-muted);
}
.feature-list li::before {
  content: '';
  flex-shrink: 0;
  width: 6px; height: 6px;
  margin-top: .58em;
  background: var(--orange);
  border-radius: 50%;
}

/* ── Why section ────────────────────────────────────────── */
.why-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
  padding: 1.75rem;
  box-shadow: var(--shadow-s);
}
.why-card-num {
  font-family: var(--ff-head);
  font-size: 2.5rem;
  font-weight: 800;
  color: rgba(232,96,24,.25);
  line-height: 1;
  margin-bottom: .75rem;
}
.why-card h3 { color: var(--navy); margin-bottom: .5rem; font-size: 1.05rem; }
.why-card p  { color: var(--fg-muted); font-size: .88rem; }

/* ── Logiciels detail page ──────────────────────────────── */
.product-detail {
  padding-block: 4.5rem;
}
.product-detail + .product-detail {
  border-top: 1px solid var(--border);
}

/* Vidéo de fond */
.product-detail-video {
  position: relative;
  overflow: hidden;
  border-top: none;
}
.product-video-bg {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
}
.product-video-overlay {
  position: absolute;
  inset: 0;
  background: rgba(12,30,60,.32);
  z-index: 0;
}
/* Cartouche texte sur fond vidéo */
.video-text-card {
  background: rgba(255,255,255,.92);
  border-radius: var(--radius-l);
  padding: 2rem 2rem 1.75rem;
  box-shadow: 0 8px 32px rgba(12,30,60,.18);
  backdrop-filter: blur(4px);
}
.product-detail-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}
.product-detail-inner.reverse { direction: rtl; }
.product-detail-inner.reverse > * { direction: ltr; }

.product-detail-label {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: .5rem;
}
.product-detail h2 { margin-bottom: 1rem; }
.product-detail p  { color: var(--fg-muted); margin-bottom: 1.25rem; }

.pricing-box {
  background: var(--navy-light);
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
  padding: 1.5rem;
  margin-top: 1.5rem;
}
.pricing-box h4 {
  color: var(--navy);
  margin-bottom: 1rem;
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.pricing-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .75rem 0;
  border-bottom: 1px solid var(--border);
  gap: 1rem;
}
.pricing-row:last-child { border: none; }
.pricing-row-name  { font-size: .9rem; color: var(--fg); }
.pricing-row-price {
  font-family: var(--ff-head);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy);
  white-space: nowrap;
}
.pricing-row-price small {
  font-family: var(--ff-body);
  font-size: .75rem;
  font-weight: 400;
  color: var(--fg-muted);
}

.product-visual {
  background: var(--navy-light);
  border: 1px solid var(--border);
  border-radius: var(--radius-l);
  aspect-ratio: 4/3;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.product-visual-placeholder {
  color: var(--fg-muted);
  font-size: .85rem;
  text-align: center;
  padding: 2rem;
}

/* ── App store badges ───────────────────────────────────── */
.store-badges {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 1.25rem;
}
.store-badge {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  background: var(--navy);
  color: #fff;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-s);
  padding: .55rem 1.1rem;
  font-size: .82rem;
  font-weight: 500;
  text-decoration: none;
  transition: background .15s;
}
.store-badge:hover { background: var(--navy-mid); color: #fff; }
.store-badge svg { flex-shrink: 0; }

/* ── Contact form ───────────────────────────────────────── */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 4rem;
  align-items: start;
}

.contact-info { padding-top: .5rem; }
.contact-info h2 { margin-bottom: 1rem; }
.contact-info p  { color: var(--fg-muted); margin-bottom: 2rem; }

.contact-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  align-items: flex-start;
}
.contact-item-icon {
  width: 40px; height: 40px;
  background: var(--orange-soft);
  border-radius: var(--radius-s);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.contact-item-icon svg { color: var(--orange); }
.contact-item-label {
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-bottom: .25rem;
}
.contact-item-value {
  font-size: .95rem;
  color: var(--fg);
  font-weight: 500;
}

.form-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-l);
  padding: 2.25rem 2rem;
  box-shadow: var(--shadow-s);
}
.form-card h3 { margin-bottom: 1.75rem; font-size: 1.2rem; }

.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block;
  font-size: .82rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: .45rem;
  letter-spacing: .02em;
}
.form-group label .req { color: var(--orange); margin-left: .2rem; }

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  font-family: var(--ff-body);
  font-size: .95rem;
  color: var(--fg);
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-s);
  padding: .7rem .9rem;
  transition: border-color .15s, box-shadow .15s;
  outline: none;
  appearance: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(232,96,24,.1);
}
.form-group textarea { resize: vertical; min-height: 130px; }
.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2352637D' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .9rem center;
  padding-right: 2.5rem;
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

.form-notice {
  font-size: .8rem;
  color: var(--fg-muted);
  margin-top: 1rem;
}

.form-success {
  display: none;
  background: #EEF7F1;
  border: 1px solid #6CB88A;
  border-radius: var(--radius-m);
  padding: 1.25rem 1.5rem;
  color: #1A5C35;
  font-size: .92rem;
  margin-top: 1rem;
}
.form-success.show { display: block; }

.form-error {
  display: none;
  background: #FEF0E8;
  border: 1px solid #E86018;
  border-radius: var(--radius-m);
  padding: 1rem 1.25rem;
  color: var(--orange-h);
  font-size: .88rem;
  margin-top: 1rem;
}
.form-error.show { display: block; }

/* ── Spinner bouton ─────────────────────────────────────── */
@keyframes ms-spin { to { transform: rotate(360deg); } }
.ms-spinner {
  display: inline-block;
  width: 16px; height: 16px;
  border: 2px solid rgba(255,255,255,.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: ms-spin .7s linear infinite;
  vertical-align: middle;
  margin-right: .45rem;
}

/* ── Popup modal ─────────────────────────────────────────── */
#ms-popup-overlay {
  display: none;
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(12,30,60,.55);
  backdrop-filter: blur(3px);
  align-items: center; justify-content: center;
}
#ms-popup-overlay.show { display: flex; }

.ms-popup {
  background: var(--bg);
  border-radius: var(--radius-l);
  box-shadow: 0 24px 60px rgba(0,0,0,.25);
  padding: 2.5rem 2rem 2rem;
  max-width: 400px; width: 90%;
  text-align: center;
  animation: ms-popup-in .25s ease;
}
@keyframes ms-popup-in {
  from { opacity: 0; transform: translateY(16px) scale(.97); }
  to   { opacity: 1; transform: none; }
}

.ms-popup-icon {
  width: 64px; height: 64px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.25rem;
}
.ms-popup-icon.ok  { background: #EEF7F1; color: #2A9E5C; }
.ms-popup-icon.err { background: var(--orange-soft); color: var(--orange); }

.ms-popup-msg {
  color: var(--fg);
  font-size: .95rem;
  line-height: 1.55;
  margin-bottom: 1.75rem;
}
.ms-popup-close { min-width: 120px; }

/* ── CTA banner ─────────────────────────────────────────── */
.cta-banner {
  background-color: var(--orange);
  background-image:
    repeating-linear-gradient(
      -55deg,
      transparent 0px, transparent 30px,
      rgba(255,255,255,.06) 30px, rgba(255,255,255,.06) 31px
    );
  padding-block: 4rem;
  text-align: center;
}
.cta-banner h2 { color: #fff; margin-bottom: .75rem; }
.cta-banner p  { color: rgba(255,255,255,.85); max-width: 520px; margin-inline: auto; margin-bottom: 2rem; }

/* ── Page hero (inner pages) ────────────────────────────── */
.page-hero {
  background-color: var(--bg-alt);
  background-image: radial-gradient(var(--border) 1.5px, transparent 1.5px);
  background-size: 24px 24px;
  border-bottom: 1px solid var(--border);
  padding-block: 3.5rem 3rem;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  left: 0; top: 0;
  width: 4px; height: 100%;
  background: var(--orange);
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: var(--navy); margin-bottom: .75rem; }
.page-hero p  { color: var(--fg-muted); max-width: 560px; font-size: 1.05rem; }

.page-hero-img { border-bottom: none; }
.page-hero-img h1 { color: #fff; }
.page-hero-img p  { color: rgba(255,255,255,.85); }
.page-hero-img .section-label { color: rgba(255,255,255,.7); letter-spacing: .1em; }

.page-hero-video { border-bottom: none; overflow: hidden; }
.page-hero-video h1 { color: #fff; }
.page-hero-video p  { color: rgba(255,255,255,.85); }
.page-hero-video .section-label { color: rgba(255,255,255,.7); letter-spacing: .1em; }

/* ── À propos ────────────────────────────────────────────── */
.timeline {
  position: relative;
  padding-left: 2rem;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 0; top: .5rem; bottom: 0;
  width: 2px;
  background: linear-gradient(var(--orange) 0%, var(--border) 100%);
}
.timeline-item {
  position: relative;
  padding-bottom: 2rem;
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: -2.45rem; top: .45rem;
  width: 10px; height: 10px;
  background: var(--orange);
  border-radius: 50%;
  border: 2px solid var(--bg);
  box-shadow: 0 0 0 2px var(--orange);
}
.timeline-item h4 { color: var(--navy); font-size: 1rem; }
.timeline-item p  { color: var(--fg-muted); font-size: .9rem; margin-top: .3rem; }

.tech-pill {
  display: inline-flex;
  align-items: center;
  background: var(--navy-light);
  color: var(--navy);
  font-size: .78rem;
  font-weight: 600;
  padding: .3em .8em;
  border-radius: 20px;
  border: 1px solid var(--border);
  margin: .2rem;
}

/* ── Aide / FAQ ─────────────────────────────────────────── */
.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 0;
  cursor: pointer;
  gap: 1rem;
  font-weight: 600;
  color: var(--navy);
  user-select: none;
}
.faq-question svg {
  flex-shrink: 0;
  transition: transform .2s;
}
.faq-item.open .faq-question svg { transform: rotate(180deg); }
.faq-answer {
  display: none;
  padding-bottom: 1.25rem;
  color: var(--fg-muted);
  font-size: .92rem;
  line-height: 1.65;
}
.faq-item.open .faq-answer { display: block; }

.support-card {
  background: var(--navy);
  border-radius: var(--radius-l);
  padding: 2.5rem;
  text-align: center;
  color: #fff;
}
.support-card h3 { color: #fff; margin-bottom: .75rem; }
.support-card p  { color: rgba(255,255,255,.7); margin-bottom: 2rem; }

/* ── Footer ─────────────────────────────────────────────── */
#site-footer {
  background: var(--navy);
  color: rgba(255,255,255,.7);
  padding-block: 3.5rem 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,.1);
  margin-bottom: 2rem;
}

.footer-brand .nav-logo-text { color: #fff; }
.footer-brand p {
  font-size: .85rem;
  margin-top: .75rem;
  line-height: 1.6;
}

.footer-col h5 {
  font-family: var(--ff-head);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.4);
  margin-bottom: 1rem;
}
.footer-col ul { display: flex; flex-direction: column; gap: .5rem; }
.footer-col a {
  font-size: .88rem;
  color: rgba(255,255,255,.65);
  text-decoration: none;
  transition: color .15s;
}
.footer-col a:hover { color: var(--orange); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: .75rem;
  font-size: .8rem;
  color: rgba(255,255,255,.35);
}
.footer-bottom a { color: rgba(255,255,255,.45); text-decoration: none; }
.footer-bottom a:hover { color: var(--orange); }

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 900px) {
  .hero-inner          { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero-visual         { display: none; }
  .product-detail-inner{ grid-template-columns: 1fr; gap: 2rem; }
  .product-detail-inner.reverse { direction: ltr; }
  .footer-grid         { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 700px) {
  .nav-links, .nav-cta { display: none; }
  .nav-burger           { display: flex; }
  .contact-layout       { grid-template-columns: 1fr; gap: 2.5rem; }
  .form-row             { grid-template-columns: 1fr; }
  .footer-grid          { grid-template-columns: 1fr; }
  .hero                 { padding-block: 4rem 3rem; }
  .section              { padding-block: 3.5rem; }
}

@media (max-width: 400px) {
  :root { --side: 1rem; }
}

/* ── Utilities ──────────────────────────────────────────── */
.text-center { text-align: center; }
.text-muted  { color: var(--fg-muted); }
.mt-sm       { margin-top: .75rem; }
.mt-md       { margin-top: 1.5rem; }
.mt-lg       { margin-top: 2.5rem; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
