/* ===========================================================
   MA PHARMACIE — Design System
   Navy + Teal · Pharmacy SaaS · Minimal
   =========================================================== */

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

:root {
  /* Brand */
  --navy-900: #081D33;
  --navy-800: #0E2A47;
  --navy-700: #143A5E;
  --navy-600: #1C4E7C;
  --teal-700: #0E9384;
  --teal-600: #12B5A0;
  --teal-500: #19C3A8;
  --teal-400: #2DD4BF;
  --teal-300: #6EE7D6;
  --green-500: #16A06A;

  /* Neutral */
  --ink: #0C1B2A;
  --slate-700: #33485E;
  --slate-600: #51657A;
  --slate-500: #6B7E92;
  --slate-400: #94A6B8;
  --bg: #FFFFFF;
  --bg-soft: #F2F6FA;
  --bg-softer: #F8FAFC;
  --border: #E2EAF1;
  --border-strong: #D2DEE9;

  /* Type */
  --font-display: 'Sora', system-ui, sans-serif;
  --font-body: 'Hanken Grotesk', system-ui, sans-serif;

  /* Radii / shadow */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 18px;
  --r-xl: 26px;
  --shadow-sm: 0 1px 2px rgba(12,27,42,.06), 0 1px 3px rgba(12,27,42,.04);
  --shadow-md: 0 6px 18px rgba(12,27,42,.08), 0 2px 6px rgba(12,27,42,.05);
  --shadow-lg: 0 24px 60px rgba(12,27,42,.16), 0 8px 24px rgba(12,27,42,.08);
  --shadow-teal: 0 16px 40px rgba(18,181,160,.28);

  --maxw: 1200px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  color: var(--slate-600);
  background: var(--bg);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.08;
  letter-spacing: -0.02em;
  font-weight: 700;
}

a { color: inherit; text-decoration: none; }
a[href^="tel:"] { white-space: nowrap; }
button { font-family: inherit; cursor: pointer; }
[hidden] { display: none !important; }
img { max-width: 100%; display: block; }
::selection { background: var(--teal-300); color: var(--navy-900); }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
.section { padding: 96px 0; }
.section-sm { padding: 64px 0; }
.bg-soft { background: var(--bg-soft); }
.bg-navy { background: var(--navy-800); color: #C9D7E6; }

.eyebrow {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal-700);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.eyebrow::before {
  content: "";
  width: 22px; height: 2px;
  background: var(--teal-600);
  display: inline-block;
}
.bg-navy .eyebrow { color: var(--teal-400); }
.bg-navy .eyebrow::before { background: var(--teal-400); }

.section-head { max-width: 680px; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .eyebrow::before { display: none; }
h2.title { font-size: clamp(30px, 4vw, 46px); margin: 18px 0 16px; }
.lead { font-size: 19px; color: var(--slate-600); }
.bg-navy h2.title { color: #fff; }
.bg-navy .lead { color: #9FB4C8; }
.bg-navy .feat-list h4 { color: #fff; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--font-body); font-weight: 600; font-size: 16px;
  padding: 14px 24px; border-radius: var(--r-md); border: 1px solid transparent;
  transition: transform .16s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--teal-600); color: #fff; box-shadow: var(--shadow-teal); }
.btn-primary:hover { background: var(--teal-700); box-shadow: 0 20px 46px rgba(18,181,160,.36); transform: translateY(-1px); }
.btn-dark { background: var(--navy-800); color: #fff; }
.btn-dark:hover { background: var(--navy-700); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--border-strong); }
.btn-ghost:hover { border-color: var(--navy-700); background: #fff; }
.btn-light { background: #fff; color: var(--navy-800); }
.btn-light:hover { background: #EFF6F4; }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.28); }
.btn-outline-light:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.btn-lg { padding: 17px 30px; font-size: 17px; }
.btn-block { width: 100%; }
.btn svg { width: 19px; height: 19px; }

/* ---------- Icon chip ---------- */
.icon-chip {
  display: inline-flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; border-radius: 14px;
  background: #E7F6F3; color: var(--teal-700);
  flex: none;
}
.icon-chip svg { width: 26px; height: 26px; }
.icon-chip.navy { background: rgba(45,212,191,.12); color: var(--teal-400); }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 80;
  background: rgba(255,255,255,.86);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.brand { display: flex; align-items: center; gap: 12px; cursor: pointer; }
.brand-mark {
  width: 40px; height: 40px; border-radius: 11px;
  background: linear-gradient(150deg, var(--teal-500), var(--teal-700));
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-sm);
}
.brand-mark svg { width: 24px; height: 24px; color: #fff; }
.brand-text { font-family: var(--font-display); font-weight: 700; letter-spacing: .02em; color: var(--ink); line-height: 1; }
.brand-text small { display: block; font-size: 11px; letter-spacing: .26em; font-weight: 600; color: var(--teal-700); margin-top: 3px; }
.brand-text b { font-size: 18px; font-weight: 800; }

.nav { display: flex; align-items: center; gap: 6px; }
.nav-link {
  font-weight: 600; font-size: 15.5px; color: var(--slate-700);
  padding: 9px 14px; border-radius: 9px; transition: color .15s, background .15s;
}
.nav-link:hover { color: var(--ink); background: var(--bg-soft); }
.nav-link.active { color: var(--teal-700); }
.header-cta { display: flex; align-items: center; gap: 12px; }

/* Menu déroulant (Juridique) */
.nav-item.has-dropdown { position: relative; display: flex; align-items: center; }
.nav-toggle { display: inline-flex; align-items: center; gap: 4px; border: 0; background: none; cursor: pointer; font: inherit; }
.nav-caret { width: 16px; height: 16px; transition: transform .18s; }
.nav-item.has-dropdown:hover .nav-caret,
.nav-item.has-dropdown:focus-within .nav-caret { transform: rotate(180deg); }
.nav-dropdown {
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 252px;
  display: flex; flex-direction: column; gap: 2px; padding: 8px;
  background: #fff; border: 1px solid var(--border); border-radius: 12px;
  box-shadow: var(--shadow-lg); z-index: 90;
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .15s, transform .15s, visibility .15s;
}
/* pont invisible pour conserver le survol entre le bouton et le panneau */
.nav-dropdown::before { content: ""; position: absolute; left: 0; right: 0; top: -8px; height: 8px; }
.nav-item.has-dropdown:hover .nav-dropdown,
.nav-item.has-dropdown:focus-within .nav-dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-dropdown .nav-link { display: block; white-space: nowrap; }

.burger { display: none; width: 44px; height: 44px; border: 1px solid var(--border); border-radius: 11px; background: #fff; align-items: center; justify-content: center; }
.burger svg { width: 22px; height: 22px; color: var(--ink); }

.mobile-menu { display: none; }

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--navy-900); color: #fff; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(900px 520px at 78% -10%, rgba(45,212,191,.22), transparent 60%),
    radial-gradient(700px 500px at 6% 110%, rgba(28,78,124,.55), transparent 55%);
}
.hero-grid-bg {
  position: absolute; inset: 0; opacity: .5;
  background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(120% 120% at 70% 0%, #000 30%, transparent 75%);
          mask-image: radial-gradient(120% 120% at 70% 0%, #000 30%, transparent 75%);
}
.hero-inner { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; padding: 96px 0 104px; }
.hero h1 { color: #fff; font-size: clamp(38px, 5.2vw, 62px); font-weight: 800; letter-spacing: -0.03em; }
.hero h1 .accent { color: var(--teal-400); }
.hero p.sub { font-size: 20px; color: #A9BED2; margin: 24px 0 34px; max-width: 520px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-meta { display: flex; gap: 28px; margin-top: 40px; flex-wrap: wrap; }
.hero-meta-item { display: flex; align-items: center; gap: 10px; color: #9FB4C8; font-size: 14.5px; font-weight: 500; }
.hero-meta-item svg { width: 18px; height: 18px; color: var(--teal-400); flex: none; }

/* ---------- Faux app dashboard ---------- */
.app-window {
  border-radius: 16px; background: #fff; box-shadow: var(--shadow-lg);
  overflow: hidden; border: 1px solid rgba(255,255,255,.6);
  transform: perspective(1600px) rotateY(-6deg) rotateX(3deg);
}
.app-shot { display: block; width: 100%; height: auto; }
/* Halo translucide autour de la fenêtre (même cadre que .split-media, pour fond navy) */
.app-halo { background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1); border-radius: var(--r-xl); padding: 28px; }
.app-bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; background: var(--bg-soft); border-bottom: 1px solid var(--border); }
.app-dot { width: 11px; height: 11px; border-radius: 50%; background: var(--border-strong); }
.app-dot:nth-child(1){ background:#F2675A;} .app-dot:nth-child(2){ background:#F6C453;} .app-dot:nth-child(3){ background:#5DC97F;}
.app-url { margin-left: 12px; font-size: 12px; color: var(--slate-500); font-family: var(--font-body); background:#fff; border:1px solid var(--border); padding:4px 12px; border-radius:6px; }
.app-body { display: grid; grid-template-columns: 72px 1fr; min-height: 320px; }
.app-side { background: var(--navy-800); padding: 16px 0; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.app-side .si { width: 38px; height: 38px; border-radius: 10px; display:flex;align-items:center;justify-content:center; color:#6B86A3; }
.app-side .si.active { background: rgba(45,212,191,.16); color: var(--teal-400); }
.app-side .si svg { width: 20px; height: 20px; }
.app-main { padding: 20px; background: var(--bg-softer); }
.app-main-head { display:flex; justify-content:space-between; align-items:center; margin-bottom:16px; }
.app-main-head h5 { font-family: var(--font-display); font-size: 15px; color: var(--ink); }
.app-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; margin-bottom: 16px; }
.app-stat { background:#fff; border:1px solid var(--border); border-radius:10px; padding:12px; }
.app-stat .k { font-size: 11px; color: var(--slate-500); font-weight:600; }
.app-stat .v { font-family: var(--font-display); font-size: 19px; color: var(--ink); font-weight:700; margin-top:4px; }
.app-stat .v.teal { color: var(--teal-700); }
.app-chart { background:#fff; border:1px solid var(--border); border-radius:10px; padding:14px; height: 132px; display:flex; align-items:flex-end; gap:8px; }
.app-bar-col { flex:1; background: linear-gradient(var(--teal-400), var(--teal-600)); border-radius:5px 5px 0 0; opacity:.92; }

/* ---------- Cards / features ---------- */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2,1fr); }
.grid-3 { grid-template-columns: repeat(3,1fr); }
.grid-4 { grid-template-columns: repeat(4,1fr); }

.feature {
  background:#fff; border:1px solid var(--border); border-radius: var(--r-lg);
  padding: 28px; transition: transform .18s ease, box-shadow .2s ease, border-color .2s;
}
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--border-strong); }
.feature h3 { font-size: 19px; margin: 18px 0 8px; }
.feature p { font-size: 15.5px; color: var(--slate-600); }

/* logos / trust */
.trust { display:flex; align-items:center; justify-content:center; gap: 48px; flex-wrap: wrap; opacity:.75; }
.trust .stat { text-align:center; }
.trust .stat b { font-family: var(--font-display); font-size: 30px; color: var(--ink); display:block; }
.trust .stat span { font-size: 14px; color: var(--slate-500); }

/* steps */
.steps { display:grid; grid-template-columns: repeat(3,1fr); gap: 0; counter-reset: step; }
.step { padding: 0 28px; position: relative; }
.step:not(:last-child)::after { content:""; position:absolute; top: 22px; right:-24px; width:48px; height:2px; background: var(--border-strong); }
.step-num { width:46px; height:46px; border-radius:13px; background: var(--navy-800); color:#fff; font-family:var(--font-display); font-weight:700; display:flex; align-items:center; justify-content:center; font-size:18px; margin-bottom:20px; }
.step h3 { font-size: 19px; margin-bottom: 8px; }
.step p { font-size: 15px; }

/* ---------- Pricing ---------- */
.price-grid { display:grid; grid-template-columns: repeat(3,1fr); gap: 20px; align-items: stretch; }
.price-card {
  background:#fff; border:1px solid var(--border); border-radius: var(--r-lg);
  padding: 28px 24px; display:flex; flex-direction:column; position:relative;
  transition: box-shadow .2s, transform .2s, border-color .2s;
}
.price-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.price-card.featured { border-color: var(--teal-500); box-shadow: 0 20px 50px rgba(18,181,160,.16); }
.price-card.featured::before {
  content: "Le plus avantageux"; position:absolute; top:-13px; left:24px;
  background: var(--teal-600); color:#fff; font-size:12px; font-weight:700;
  padding:5px 12px; border-radius:20px; letter-spacing:.02em;
}
/* Bandeau de réassurance données (page Tarifs) */
.reassure { max-width: 960px; margin: 0 auto; display:flex; gap:20px; align-items:flex-start;
  background:#FCE4E1; border:1.5px solid #E8A89F; border-left:6px solid #C0392B; border-radius: var(--r-lg);
  padding: 26px 30px; box-shadow: 0 14px 38px rgba(192,57,42,.16); }
.reassure .ic { flex:none; width:50px; height:50px; border-radius:13px; background:#C0392B; color:#fff;
  display:flex; align-items:center; justify-content:center; box-shadow: 0 6px 16px rgba(192,57,42,.3); }
.reassure .ic svg { width:26px; height:26px; }
.reassure h3 { color:#B5271A; font-size:21px; margin-bottom:7px; }
.reassure p { color:#7E261C; font-size:15.5px; line-height:1.6; }
.reassure p b { color:#B5271A; }
@media (max-width:600px){ .reassure { flex-direction:column; gap:12px; padding:20px; } }

.price-tag { display:flex; align-items:baseline; gap:6px; margin: 14px 0 6px; }
.price-tag .amount { font-family:var(--font-display); font-size: 40px; font-weight:800; color: var(--ink); letter-spacing:-.03em; }
.price-tag .unit { font-size: 14px; color: var(--slate-500); font-weight:600; }
.price-card h3 { font-size: 18px; }
.price-card .desc { font-size: 14px; color: var(--slate-600); min-height: 40px; margin-bottom: 18px; }
.price-feats { list-style:none; margin: 4px 0 24px; display:flex; flex-direction:column; gap:11px; flex:1; }
.price-feats li { display:flex; gap:10px; font-size: 14.5px; color: var(--slate-700); align-items:flex-start; }
.price-feats li svg { width:18px; height:18px; color: var(--teal-600); flex:none; margin-top:2px; }
.price-feats li.no { color: var(--slate-500); }
.price-feats li.no svg { color: #C0392B; }
.badge-free { font-size:12px; font-weight:700; color: var(--green-500); background:#E6F6EF; padding:4px 10px; border-radius:20px; }
.badge-required { display:inline-flex; align-items:center; gap:6px; font-size:12px; font-weight:700; color:#fff; background: rgba(255,255,255,.14); border:1px solid rgba(255,255,255,.22); padding:5px 11px; border-radius:20px; letter-spacing:.02em; }
.badge-required svg { width:14px; height:14px; color: var(--teal-300); }
.install-note { display:flex; gap:16px; align-items:flex-start; margin-top:28px; padding:20px 24px; background:#FFF7ED; border:1px solid #F3DCC0; border-left:4px solid #E0904A; border-radius: var(--r-md); }
.install-note .ic { width:42px;height:42px;border-radius:11px;background:#F6E6D2;color:#C0742A;display:flex;align-items:center;justify-content:center;flex:none;}
.install-note .ic svg{width:21px;height:21px;}
.install-note p { font-size:15px; color:#7A5B33; }
.install-note b { color:#5E4322; }

/* ---------- Subdomain checker ---------- */
.checker { background:#fff; border:1px solid var(--border); border-radius: var(--r-xl); padding: 32px; box-shadow: var(--shadow-md); }
.checker-input { display:flex; align-items:stretch; border:1.5px solid var(--border-strong); border-radius: var(--r-md); overflow:hidden; transition:border-color .2s, box-shadow .2s; }
.checker-input:focus-within { border-color: var(--teal-500); box-shadow: 0 0 0 4px rgba(25,195,168,.14); }
.checker-input .prefix-in { flex:1; border:none; outline:none; padding: 15px 16px; font-size:16px; font-family:var(--font-body); color:var(--ink); min-width:0; }
.checker-input .suffix { display:flex; align-items:center; padding: 0 16px; background: var(--bg-soft); color: var(--slate-500); font-weight:600; font-size:15px; border-left:1px solid var(--border); }
.checker-result { margin-top:16px; padding:14px 16px; border-radius:var(--r-md); font-size:15px; font-weight:600; display:flex; align-items:center; gap:10px; }
.checker-result svg{width:20px;height:20px;flex:none;}
.checker-result.ok { background:#E6F6EF; color:#0E7C50; }
.checker-result.no { background:#FDECEA; color:#C0392B; }

/* ---------- Forms ---------- */
.field { margin-bottom: 18px; }
.field label { display:block; font-weight:600; font-size:14px; color: var(--slate-700); margin-bottom:7px; }
.field input, .field textarea, .field select {
  width:100%; border:1.5px solid var(--border-strong); border-radius: var(--r-md);
  padding: 13px 15px; font-size:16px; font-family:var(--font-body); color:var(--ink);
  background:#fff; outline:none; transition: border-color .18s, box-shadow .18s;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--teal-500); box-shadow: 0 0 0 4px rgba(25,195,168,.14); }
.field.err input, .field.err textarea { border-color:#E0604E; }
.field .msg { color:#C0392B; font-size:13px; margin-top:6px; font-weight:500; }

/* ---------- CTA band ---------- */
.cta-band { position:relative; overflow:hidden; background: var(--navy-800); border-radius: var(--r-xl); padding: 56px; text-align:center; }
.cta-band::before { content:""; position:absolute; inset:0; background: radial-gradient(700px 360px at 50% -30%, rgba(45,212,191,.28), transparent 60%); }
.cta-band h2 { position:relative; color:#fff; font-size: clamp(28px,3.6vw,40px); }
.cta-band p { position:relative; color:#A9BED2; margin: 14px auto 28px; max-width: 560px; font-size: 18px; }
.cta-band .hero-actions { position:relative; justify-content:center; }

/* ---------- Footer ---------- */
.footer { background: var(--navy-900); color:#9FB4C8; padding: 64px 0 30px; }
.footer-top { display:grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 44px; border-bottom:1px solid rgba(255,255,255,.08); }
.footer h4 { color:#fff; font-size:14px; letter-spacing:.06em; text-transform:uppercase; margin-bottom:18px; font-family:var(--font-body); font-weight:700; }
.footer ul { list-style:none; display:flex; flex-direction:column; gap:11px; }
.footer a:hover { color: var(--teal-400); }
.footer .brand-text b, .footer .brand-text { color:#fff; }
.footer-blurb { font-size:15px; max-width:300px; margin-top:18px; color:#8AA0B5; }
.footer-bottom { display:flex; justify-content:space-between; align-items:center; padding-top:24px; font-size:13.5px; color:#7891A8; flex-wrap:wrap; gap:12px; }
.footer-bottom a { color: var(--teal-300); font-weight:700; }
.footer-bottom a:hover { color:#fff; text-decoration:underline; }

/* ---------- Page hero (interior) ---------- */
.page-hero { background: var(--navy-900); color:#fff; padding: 72px 0 78px; position:relative; overflow:hidden; }
.page-hero::before { content:""; position:absolute; inset:0; background: radial-gradient(800px 400px at 85% -20%, rgba(45,212,191,.18), transparent 60%); }
.page-hero .wrap { position:relative; }
.page-hero h1 { color:#fff; font-size: clamp(34px,4.6vw,52px); font-weight:800; max-width: 760px; }
.page-hero p { color:#A9BED2; font-size:19px; margin-top:18px; max-width: 620px; }

/* pills */
.pill-row { display:flex; gap:10px; flex-wrap:wrap; margin-top: 26px; }
.pill { display:inline-flex; align-items:center; gap:8px; background: rgba(255,255,255,.08); border:1px solid rgba(255,255,255,.12); color:#CFE0EF; padding:8px 14px; border-radius:30px; font-size:14px; font-weight:500; }
.pill svg { width:16px; height:16px; color: var(--teal-400); }

/* split feature rows */
.split { display:grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items:center; }
/* min-width:0 : empêche un titre long de gonfler la track de grille au-delà du viewport (grid blowout, vu sur mobile) */
.split > * { min-width: 0; }
.split.rev .split-media { order:-1; }
.split-media { background: var(--bg-soft); border:1px solid var(--border); border-radius: var(--r-xl); padding: 28px; }
.feat-list { list-style:none; display:flex; flex-direction:column; gap:18px; margin-top:24px; }
.feat-list li { display:flex; gap:14px; }
.feat-list .ic { width:40px;height:40px;border-radius:11px;background:#E7F6F3;color:var(--teal-700);display:flex;align-items:center;justify-content:center;flex:none;}
.feat-list .ic svg{width:21px;height:21px;}
.feat-list h4 { font-size:16.5px; color:var(--ink); margin-bottom:3px; }
.feat-list p { font-size:15px; }

/* FAQ */
.faq-item { border-bottom:1px solid var(--border); }
.faq-q { width:100%; text-align:left; background:none; border:none; padding: 22px 0; display:flex; justify-content:space-between; align-items:center; gap:20px; font-family:var(--font-display); font-weight:600; font-size:18px; color:var(--ink); }
.faq-q svg { width:22px; height:22px; color:var(--teal-600); flex:none; transition: transform .25s; }
.faq-item.open .faq-q svg { transform: rotate(45deg); }
.faq-a { max-height:0; overflow:hidden; transition: max-height .3s ease, padding .3s ease; }
.faq-item.open .faq-a { max-height: 280px; padding-bottom: 22px; }
.faq-a p { font-size:16px; color: var(--slate-600); }

/* toast / cart */
.toast { position: fixed; bottom: 26px; left: 50%; transform: translateX(-50%) translateY(140%); background: var(--ink); color:#fff; padding: 14px 22px; border-radius: var(--r-md); font-weight:600; font-size:15px; box-shadow: var(--shadow-lg); z-index:200; display:flex; align-items:center; gap:10px; transition: transform .35s cubic-bezier(.2,.9,.3,1.2); }
.toast.show { transform: translateX(-50%) translateY(0); }
.toast svg { width:20px; height:20px; color: var(--teal-400); }

/* system req table */
.req { display:grid; grid-template-columns: 1fr 1fr; gap:0; border:1px solid var(--border); border-radius: var(--r-lg); overflow:hidden; }
.req div { padding: 16px 20px; border-bottom:1px solid var(--border); font-size:15px; }
.req div:nth-child(odd){ background: var(--bg-soft); font-weight:600; color:var(--slate-700); }
.req div:nth-child(even){ color: var(--slate-600); }
.req div:nth-last-child(-n+2){ border-bottom:none; }

/* download card */
.dl-card { background: var(--navy-800); color:#fff; border-radius: var(--r-xl); padding: 36px; position:relative; overflow:hidden; }
.dl-card::before { content:""; position:absolute; inset:0; background: radial-gradient(500px 280px at 100% 0%, rgba(45,212,191,.22), transparent 60%); }
.dl-card .inner { position:relative; }
.dl-ver { display:inline-flex; align-items:center; gap:8px; background: rgba(45,212,191,.14); color: var(--teal-300); padding:6px 12px; border-radius:20px; font-size:13px; font-weight:600; }

/* contact info */
.cinfo { display:flex; gap:16px; align-items:flex-start; padding: 20px 0; border-bottom:1px solid var(--border); }
.cinfo:last-child{border-bottom:none;}
.cinfo .ic { width:46px;height:46px;border-radius:12px;background:#E7F6F3;color:var(--teal-700);display:flex;align-items:center;justify-content:center;flex:none;}
.cinfo .ic svg{width:22px;height:22px;}
.cinfo h4{font-size:16px;color:var(--ink);margin-bottom:2px;}
.cinfo p{font-size:15px;}

/* hero data pledge */
.data-pledge {
  display:flex; align-items:center; gap:13px;
  background: linear-gradient(120deg, rgba(45,212,191,.16), rgba(28,78,124,.18));
  border:1px solid rgba(45,212,191,.32);
  border-radius: 14px; padding: 13px 18px; margin-bottom: 18px;
  backdrop-filter: blur(6px);
  box-shadow: 0 8px 24px rgba(8,29,51,.35);
}
.data-pledge .dp-ic { flex:none; width:38px; height:38px; border-radius:10px; background: rgba(45,212,191,.18); display:flex; align-items:center; justify-content:center; }
.data-pledge .dp-ic svg { width:21px; height:21px; color: var(--teal-300); }
.data-pledge .dp-txt { color:#DDEBF4; font-size:16px; font-weight:500; line-height:1.35; }
.data-pledge .dp-txt b { color:#fff; font-weight:700; }

/* screenshots gallery */
.shots { display:grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.shots .shot { width:100% !important; height:auto !important; aspect-ratio: 16 / 10; border:1px solid var(--border); border-radius:16px; background: var(--bg-soft); }
.shots .shot-wide { grid-column: 1 / -1; aspect-ratio: 24 / 8; }
/* Vraie capture pleine largeur dans la galerie (garde son ratio naturel, pas de rognage) */
.shots .shot-img { grid-column: 1 / -1; display:block; width:100%; height:auto; border:1px solid var(--border); border-radius:16px; }
/* Bloc « description + capture » : une légende au-dessus de chaque image */
.shots .shot-block { grid-column: 1 / -1; margin:0; }
.shots .shot-block + .shot-block { margin-top:28px; }
.shots .shot-cap { margin:0 0 12px; padding-left:14px; border-left:3px solid var(--teal-500); }
.shots .shot-cap b { display:block; font-family:var(--font-display); font-weight:700; font-size:18px; color:var(--ink); }
.shots .shot-cap span { display:block; margin-top:3px; color:var(--slate-600); font-size:14px; line-height:1.5; }
.shots .shot-placeholder { display:flex; align-items:center; justify-content:center; text-align:center; padding:16px;
  background: linear-gradient(135deg, var(--bg-soft), #fff); border-style:dashed; }
.shots .shot-placeholder span { display:inline-flex; flex-direction:column; align-items:center; gap:10px;
  color: var(--slate-500); font-weight:600; font-size:14px; }
.shots .shot-placeholder svg { width:30px; height:30px; color: var(--teal-500); }
@media (max-width: 600px) {
  .shots { grid-template-columns: 1fr; }
  .shots .shot-wide { aspect-ratio: 16 / 10; }
}

/* Indicateur de force du mot de passe */
.pwd-meter { margin-top:10px; }
.pwd-bar { height:6px; background:#E6ECF3; border-radius:4px; overflow:hidden; }
.pwd-bar span { display:block; height:100%; width:0; transition:width .2s, background .2s; }
.pwd-bar span.weak { background:#C0392B; }
.pwd-bar span.mid { background:#E0904A; }
.pwd-bar span.strong { background:var(--green-500); }
.pwd-rules { list-style:none; margin:8px 0 0; padding:0; display:flex; flex-wrap:wrap; gap:4px 16px; }
.pwd-rules li { font-size:12.5px; color:var(--slate-500); position:relative; padding-left:18px; }
.pwd-rules li::before { content:"○"; position:absolute; left:0; }
.pwd-rules li.ok { color:var(--green-500); }
.pwd-rules li.ok::before { content:"✓"; }

/* Sélecteur de mode (inscription Espace) */
.mode-choice { display:grid; grid-template-columns:repeat(3, 1fr); gap:12px; }
.mode-opt { display:flex; flex-direction:column; align-items:center; text-align:center; gap:9px; padding:16px 14px; border:1.5px solid var(--border-strong); border-radius:var(--r-md); cursor:pointer; transition:border-color .15s, background .15s; }
.mode-opt.selected { border-color:var(--teal-500); background:#F0FBF9; }
.mode-opt input { margin:0; flex:none; }
.mode-opt b { display:block; font-size:14.5px; color:var(--ink); }
.mode-opt small { display:block; color:var(--teal-700); font-weight:600; font-size:12.5px; margin-top:3px; line-height:1.45; }
@media (max-width:600px) {
  .mode-choice { grid-template-columns:1fr; }
  .mode-opt { flex-direction:row; align-items:flex-start; text-align:left; gap:12px; }
  .mode-opt input { margin-top:3px; }
}

/* Pages légales (prose) */
.legal { max-width: 820px; margin: 0 auto; }
.legal h2 { font-family: var(--font-display); font-size: 22px; margin: 34px 0 12px; color: var(--ink); }
.legal h2:first-child { margin-top: 0; }
.legal p, .legal li { color: var(--slate-700); font-size: 16px; line-height: 1.7; }
.legal p { margin-bottom: 14px; }
.legal ul { margin: 0 0 16px; padding-left: 22px; list-style: disc; }
.legal li { margin-bottom: 6px; }
.legal a { color: var(--teal-700); font-weight: 600; }
.legal .muted { color: var(--slate-500); font-size: 14px; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .nav, .header-cta .btn { display: none; }
  .burger { display: inline-flex; }
  .hero-inner { grid-template-columns: 1fr; gap: 40px; padding: 64px 0 72px; }
  .hero-media { max-width: 520px; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2,1fr); }
  .price-grid { grid-template-columns: repeat(2,1fr); }
  .split { grid-template-columns: 1fr; gap: 36px; }
  .split.rev .split-media { order: 0; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 28px; }
  .steps { grid-template-columns: 1fr; gap: 28px; }
  .step { padding: 0; }
  .step:not(:last-child)::after { display:none; }
  .mobile-menu.open { display:block; position: fixed; inset: 74px 0 0; background:#fff; z-index:90; padding: 18px 28px; overflow:auto; }
  .mobile-menu .nav-link { display:block; font-size:19px; padding: 16px 4px; border-bottom:1px solid var(--border); border-radius:0; }
  .mobile-menu .btn { margin-top: 22px; }
  .mobile-group-title { display:block; font-size:13px; font-weight:700; letter-spacing:.12em; text-transform:uppercase; color:var(--slate-500); padding: 18px 4px 6px; }
  .mobile-menu .nav-link.mobile-sub { font-size:17px; padding: 13px 4px 13px 18px; }
}
@media (max-width: 600px) {
  .wrap { padding: 0 20px; }
  .section { padding: 64px 0; }
  .grid-3, .grid-4, .grid-2, .price-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .cta-band { padding: 38px 24px; }
  .hero h1 { font-size: 38px; }
  .app-window { transform: none; }
  .req { grid-template-columns: 1fr; }
  /* Évite qu'un bouton au texte long ne déborde le viewport (ex. « Comment installer PostgreSQL ? ») */
  .btn { max-width: 100%; white-space: normal; }
}

/* ----- Encart « indépendance » (page Téléchargement) ----- */
.indep-note { display: flex; gap: 20px; align-items: flex-start; margin-top: 40px;
  padding: 26px 30px; border-radius: 18px; background: #E7F6F3;
  border: 1px solid var(--teal-300); }
.indep-ic { flex: none; width: 52px; height: 52px; border-radius: 14px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--teal-500); color: #fff; }
.indep-ic svg { width: 26px; height: 26px; }
.indep-note h3 { font-size: 19px; color: var(--ink); margin: 2px 0 8px; }
.indep-note p { color: var(--slate-700); font-size: 15.5px; line-height: 1.65; margin: 0; }
.indep-note b { color: var(--teal-700); }
@media (max-width: 600px) { .indep-note { flex-direction: column; gap: 14px; padding: 22px; } }

/* ----- Schéma « passerelle / sous-domaine » ----- */
.flow { display:grid; grid-template-columns: 1fr auto 1fr auto 1fr; align-items:stretch; margin-top: 12px; }
.flow-node { background:#fff; border:1px solid var(--border); border-radius: var(--r-lg);
  padding:28px 22px; text-align:center; display:flex; flex-direction:column; align-items:center; }
.flow-node.featured { border-color: var(--teal-300); box-shadow: var(--shadow-md);
  background: linear-gradient(180deg, #F4FBFA, #fff); }
.flow-node .icon-chip { width:60px; height:60px; margin-bottom:16px; }
.flow-node.featured .icon-chip { background: var(--teal-500); color:#fff; }
.flow-node h3 { font-family: var(--font-display); font-size:18px; color:var(--ink); margin:0 0 8px; }
.flow-node p { font-size:14.5px; color:var(--slate-600); line-height:1.62; margin:0; }
.flow-node code { display:inline-block; font-family: ui-monospace, Menlo, Consolas, monospace; font-size:13px;
  background:var(--bg-soft); border:1px solid var(--border); color:var(--teal-700);
  padding:5px 11px; border-radius:8px; margin-bottom:12px; font-weight:600; }
.flow-arrow { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:8px;
  padding:0 16px; color:var(--teal-500); }
.flow-arrow svg { width:30px; height:30px; }
.flow-arrow small { font-size:11px; font-weight:700; letter-spacing:.04em; color:var(--slate-500);
  text-transform:uppercase; max-width:96px; text-align:center; line-height:1.35; }
@media (max-width: 860px) {
  .flow { grid-template-columns: 1fr; max-width:420px; margin-left:auto; margin-right:auto; }
  .flow-arrow { flex-direction:row; padding:14px 0; }
  .flow-arrow svg { transform: rotate(90deg); }
}

/* ----- Guide d'installation PostgreSQL ----- */
.guide-steps { display: flex; flex-direction: column; gap: 26px; margin-top: 8px; }
.guide-step { display: grid; grid-template-columns: 1.05fr 1fr; gap: 34px; align-items: center;
  background: #fff; border: 1px solid var(--border); border-radius: 20px; padding: 30px 32px;
  box-shadow: 0 10px 30px rgba(8,29,51,.05); }
.guide-step:nth-child(even) .gs-media { order: -1; }
.gs-num { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px;
  border-radius: 50%; background: var(--teal-500); color: #fff; font-family: var(--font-display);
  font-weight: 800; font-size: 18px; margin-bottom: 14px; }
.gs-text h3 { font-size: 21px; margin: 0 0 8px; color: var(--ink); }
.gs-text p { color: var(--slate-700); font-size: 15.5px; line-height: 1.6; }
.gs-tip { margin-top: 14px; padding: 12px 16px; border-radius: 12px; background: #FFF6E6;
  border: 1px solid #F4D58B; color: #7A5A12; font-size: 14.5px; line-height: 1.5;
  display: flex; gap: 10px; align-items: flex-start; }
.gs-tip svg { width: 20px; height: 20px; flex: none; color: #C8881A; margin-top: 1px; }
.gs-media svg { width: 100%; height: auto; display: block; border-radius: 12px; }
@media (max-width: 860px) {
  .guide-step, .guide-step:nth-child(even) { grid-template-columns: 1fr; gap: 22px; padding: 24px; }
  .guide-step .gs-media, .guide-step:nth-child(even) .gs-media { order: -1; }
}
