/* ============================================================
   Datalys — site public. Style clair, professionnel, santé
   (inspiration Doctolib). CSS écrit à la main, sans build.
   ============================================================ */
:root {
  --bg: #ffffff;
  --bg-soft: #f4f8fb;
  --bg-soft-2: #eef4f9;
  --text: #15293b;
  --muted: #5c6f80;
  --primary: #0a86c7;
  --primary-dark: #086a9e;
  --primary-soft: #e6f3fa;
  --accent: #12b3a6;
  --accent-soft: #e3f7f4;
  --violet: #6c5ce7;
  --border: #e3ebf2;
  --shadow: 0 1px 2px rgba(21,41,59,.04), 0 8px 24px rgba(21,41,59,.06);
  --shadow-lg: 0 12px 40px rgba(10,134,199,.16);
  --radius: 16px;
  --radius-sm: 10px;
  --container: 1140px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3 { line-height: 1.2; margin: 0; letter-spacing: -.02em; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 600; font-size: 15px; padding: 12px 22px; border-radius: 999px;
  border: 1px solid transparent; cursor: pointer; transition: .2s; white-space: nowrap;
}
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 6px 18px rgba(10,134,199,.28); }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); }
.btn-ghost { background: #fff; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }
.btn-block { width: 100%; }
.btn svg { width: 18px; height: 18px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.9);
  backdrop-filter: blur(10px); border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.logo { display: flex; align-items: center; gap: 10px; }
.logo-mark {
  width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--primary), var(--accent)); color: #fff; font-weight: 800;
}
.logo-name { font-weight: 800; font-size: 18px; line-height: 1; }
.logo-sub { font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.nav-links { display: flex; gap: 28px; }
.nav-links a { color: var(--muted); font-weight: 500; font-size: 15px; transition: .15s; }
.nav-links a:hover { color: var(--primary); }
.nav-actions { display: flex; align-items: center; gap: 14px; }
.lang-switch { display: inline-flex; border: 1px solid var(--border); border-radius: 999px; overflow: hidden; }
.lang-switch a { padding: 5px 12px; font-size: 13px; font-weight: 600; color: var(--muted); text-transform: uppercase; }
.lang-switch a.active { background: var(--primary); color: #fff; }
.burger { display: none; background: none; border: 1px solid var(--border); border-radius: 8px; width: 40px; height: 40px; cursor: pointer; }

/* ---------- Hero ---------- */
.hero { background: linear-gradient(180deg, var(--bg-soft) 0%, #fff 100%); padding: 70px 0 60px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--border);
  color: var(--muted); padding: 7px 14px; border-radius: 999px; font-size: 13px; font-weight: 500; box-shadow: var(--shadow);
}
.hero-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.hero h1 { font-size: 52px; margin: 22px 0 0; max-width: 780px; }
.hero h1 .hl { color: var(--primary); }
.hero-sub { font-size: 19px; color: var(--muted); max-width: 620px; margin: 20px 0 0; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 40px; margin-top: 48px; }
.hero-stats .num { font-size: 28px; font-weight: 800; color: var(--text); }
.hero-stats .lbl { font-size: 14px; color: var(--muted); }

/* ---------- Sections ---------- */
.section { padding: 80px 0; }
.section-soft { background: var(--bg-soft); }
.section-head { max-width: 640px; margin: 0 auto 50px; text-align: center; }
.eyebrow { color: var(--primary); font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; }
.section-head h2 { font-size: 38px; margin-top: 12px; }
.lead { color: var(--muted); font-size: 18px; margin-top: 14px; }

.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); }

/* ---------- Cards ---------- */
.card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.feature-card { padding: 28px; transition: .25s; }
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: #cfe6f4; }
.icon-box { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); margin-bottom: 18px; }
.icon-box.accent { background: var(--accent-soft); color: var(--accent); }
.icon-box.violet { background: #efe9ff; color: var(--violet); }
.feature-card h3 { font-size: 19px; }
.feature-card p { color: var(--muted); margin: 10px 0 0; font-size: 15px; }
.feature-list { list-style: none; padding: 0; margin: 16px 0 0; }
.feature-list li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; margin-bottom: 10px; }
.feature-list svg { width: 18px; height: 18px; color: var(--accent); flex-shrink: 0; margin-top: 3px; }

/* ---------- Formation card ---------- */
.fcard { display: flex; flex-direction: column; padding: 24px; transition: .25s; height: 100%; }
.fcard:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: #cfe6f4; }
.fcard-top { display: flex; justify-content: space-between; align-items: center; }
.badge-ref { font-size: 12px; font-weight: 700; padding: 4px 9px; border-radius: 7px; background: var(--primary-soft); color: var(--primary-dark); }
.badge-ref.r { background: var(--accent-soft); color: #0a7d73; }
.badge-ref.ia { background: #efe9ff; color: #5343c4; }
.rating { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.stars { color: #f5a623; letter-spacing: 1px; font-size: 14px; }
.fcard h3 { font-size: 18px; margin-top: 16px; }
.fcard .tagline { color: var(--muted); font-size: 14px; margin-top: 8px; flex-grow: 1; }
.fcard-meta { display: flex; flex-wrap: wrap; gap: 14px; font-size: 13px; color: var(--muted); margin-top: 18px; }
.fcard-meta b { color: var(--text); }
.fcard-foot { display: flex; justify-content: space-between; align-items: flex-end; border-top: 1px solid var(--border); margin-top: 18px; padding-top: 16px; }
.price-from { font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.price-val { font-size: 22px; font-weight: 800; }
.price-val small { font-size: 13px; font-weight: 600; color: var(--muted); margin-left: 3px; }
.fcard-link { color: var(--primary); font-weight: 700; font-size: 14px; display: inline-flex; align-items: center; gap: 6px; }
.note { text-align: center; color: var(--muted); font-size: 13px; margin-top: 22px; }

/* ---------- Detail ---------- */
.detail-hero { background: var(--bg-soft); padding: 32px 0 40px; border-bottom: 1px solid var(--border); }
.back-link { color: var(--muted); font-size: 14px; font-weight: 500; }
.back-link:hover { color: var(--primary); }
.detail-grid { display: grid; grid-template-columns: 1fr 340px; gap: 40px; align-items: start; }
.detail-main h1 { font-size: 40px; margin-top: 18px; }
.detail-main .tagline { font-size: 18px; color: var(--muted); margin-top: 14px; max-width: 640px; }
.info-badges { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.info-badge { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 10px 16px; }
.info-badge .k { font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.info-badge .v { font-weight: 700; font-size: 15px; }
.price-box { position: sticky; top: 90px; padding: 26px; }
.price-box .pf { font-size: 12px; text-transform: uppercase; color: var(--muted); }
.price-box .pv { font-size: 34px; font-weight: 800; }
.price-box .pv small { font-size: 16px; color: var(--muted); font-weight: 600; }
.price-box .pp { font-size: 13px; color: var(--muted); }
.sessions { margin-top: 22px; border-top: 1px solid var(--border); padding-top: 18px; }
.sessions .st { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 700; }
.session-row { display: flex; justify-content: space-between; align-items: center; padding: 9px 0; border-bottom: 1px dashed var(--border); font-size: 14px; }
.session-row:last-child { border-bottom: none; }
.session-row .mode { color: var(--accent); font-size: 12px; font-weight: 600; }

.block { padding: 56px 0; border-bottom: 1px solid var(--border); }
.block:last-child { border-bottom: none; }
.block h2 { font-size: 28px; margin-bottom: 22px; }
.obj-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.obj-list li { display: flex; gap: 12px; align-items: flex-start; }
.obj-list svg { width: 22px; height: 22px; color: var(--primary); flex-shrink: 0; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.module { border: 1px solid var(--border); border-radius: var(--radius-sm); margin-bottom: 12px; overflow: hidden; background: #fff; }
.module-head { display: flex; gap: 14px; align-items: center; padding: 16px 20px; font-weight: 700; }
.module-head .n { color: var(--primary); font-weight: 800; }
.module ul { margin: 0; padding: 0 20px 18px 54px; }
.module li { color: var(--muted); font-size: 15px; margin-bottom: 8px; }
.info-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.info-cards .card { padding: 22px; }
.info-cards h3 { font-size: 16px; }
.info-cards p { color: var(--muted); font-size: 14px; margin: 8px 0 0; }

/* ---------- Trainer ---------- */
.trainer-card { padding: 40px; display: grid; grid-template-columns: 220px 1fr; gap: 36px; align-items: center; }
.avatar { width: 120px; height: 120px; border-radius: 20px; display: grid; place-items: center; background: linear-gradient(135deg, var(--primary), var(--accent)); color: #fff; font-size: 38px; font-weight: 800; }
.trainer-id h3 { font-size: 22px; }
.trainer-id .role { color: var(--primary); font-weight: 600; margin-top: 4px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.chip { background: var(--bg-soft); border: 1px solid var(--border); border-radius: 999px; padding: 6px 14px; font-size: 13px; }
.dl-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 18px; }
.dl-grid .k { font-size: 11px; text-transform: uppercase; color: var(--muted); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.form .field { margin-bottom: 16px; }
.form label { display: block; font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 6px; }
.form input, .form select, .form textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--border); border-radius: 10px;
  font-family: inherit; font-size: 15px; color: var(--text); background: #fff; transition: .15s;
}
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.alert-success { background: var(--accent-soft); border: 1px solid #b9ece6; color: #0a7d73; padding: 16px 18px; border-radius: 12px; margin-bottom: 20px; font-size: 15px; }
.alert-error { background: #fdecec; border: 1px solid #f7c5c5; color: #c0392b; padding: 12px 16px; border-radius: 10px; margin-bottom: 16px; font-size: 14px; }
.disclaimer { background: #fff8ec; border: 1px solid #f5e2bd; border-radius: 12px; padding: 18px 20px; }
.disclaimer h4 { color: #b7791f; margin: 0 0 6px; font-size: 15px; }
.disclaimer p { margin: 0; font-size: 14px; color: var(--muted); }

/* ---------- Footer ---------- */
.footer { background: #0e1f2e; color: #cdd9e3; padding: 56px 0 28px; }
.footer a { color: #cdd9e3; }
.footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
.footer h4 { color: #fff; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 16px; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: 10px; font-size: 14px; }
.footer .muted { color: #8aa0b3; font-size: 14px; max-width: 280px; }
.footer-bottom { border-top: 1px solid #1d3343; margin-top: 40px; padding-top: 22px; text-align: center; font-size: 13px; color: #8aa0b3; }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(135deg, var(--primary), var(--accent)); border-radius: 24px; padding: 48px; text-align: center; color: #fff; }
.cta-band h2 { font-size: 30px; }
.cta-band p { opacity: .92; margin: 12px auto 24px; max-width: 520px; }
.cta-band .btn-primary { background: #fff; color: var(--primary-dark); box-shadow: none; }
.cta-band .btn-primary:hover { background: #f0f6fb; }

/* ---------- Responsive ---------- */
.mobile-menu { display: none; }
@media (max-width: 900px) {
  .nav-links, .nav-actions .btn { display: none; }
  .burger { display: grid; place-items: center; }
  .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; }
  .detail-grid { grid-template-columns: 1fr; }
  .price-box { position: static; }
  .trainer-card { grid-template-columns: 1fr; text-align: center; }
  .avatar { margin: 0 auto; }
  .dl-grid, .two-col, .info-cards, .contact-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 38px; }
  .section-head h2 { font-size: 30px; }
  .mobile-menu.open { display: block; padding: 12px 0; border-top: 1px solid var(--border); }
  .mobile-menu a { display: block; padding: 12px 4px; color: var(--text); border-bottom: 1px solid var(--border); }
}
@media (max-width: 600px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .hero h1 { font-size: 32px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* ===== Ajouts : gratuit, places, essai, inscription ===== */
.badge-free { background:#e3f7f4; color:#0a7d73; font-weight:700; padding:4px 10px; border-radius:7px; font-size:12px; }
.seats { display:inline-block; background:#fff8ec; border:1px solid #f5e2bd; color:#b7791f; font-size:12px; font-weight:600; padding:3px 10px; border-radius:999px; }
.price-val.free { color:#0a7d73; }
.trial-band { background:linear-gradient(135deg,#0e9f8e,#0a86c7); color:#fff; border-radius:24px; padding:40px; }
.trial-band h2 { font-size:30px; }
.trial-band p { opacity:.92; margin:10px 0 18px; max-width:560px; }
.trial-grid { display:grid; grid-template-columns:1.1fr 1fr; gap:32px; align-items:center; }
.trial-band .form input, .trial-band .form select, .trial-band .form textarea { background:rgba(255,255,255,.96); border:none; }
.trial-band .btn-primary { background:#fff; color:#086a9e; }
@media (max-width:900px){ .trial-grid { grid-template-columns:1fr; } }

/* ===== Bandeau promo (haut du site) ===== */
.promo-bar { background:linear-gradient(90deg,#0a86c7,#12b3a6); color:#fff; text-align:center; padding:10px 16px; font-size:14px; font-weight:600; display:flex; align-items:center; justify-content:center; gap:14px; flex-wrap:wrap; }
.promo-bar .promo-btn { background:#fff; color:#086a9e; padding:5px 14px; border-radius:999px; font-weight:700; font-size:13px; white-space:nowrap; }
.promo-bar .promo-btn:hover { background:#eaf4fb; }

/* ===== Dropzone upload (style 2026) ===== */
.dropzone { position:relative; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:10px; text-align:center; padding:36px 22px; border:2px dashed var(--border); border-radius:18px; background:var(--bg-soft); cursor:pointer; transition:border-color .2s, background .2s, transform .2s; }
.dropzone:hover { border-color:var(--primary); background:var(--primary-soft); }
.dropzone.dragover { border-color:var(--primary); background:var(--primary-soft); transform:scale(1.01); box-shadow:0 12px 40px -16px rgba(10,134,199,.4); }
.dropzone input[type=file] { display:none; }
.dz-icon { width:56px; height:56px; border-radius:16px; display:grid; place-items:center; background:#fff; color:var(--primary); box-shadow:var(--shadow); }
.dz-icon svg { width:26px; height:26px; }
.dz-title { font-weight:600; color:var(--text); font-size:15px; }
.dz-hint { font-size:13px; color:var(--muted); }
.dz-list { margin-top:14px; display:flex; flex-direction:column; gap:8px; }
.dz-file { display:flex; align-items:center; gap:10px; background:#fff; border:1px solid var(--border); border-radius:12px; padding:10px 14px; font-size:14px; box-shadow:var(--shadow); }
.dz-file .dz-name { flex:1; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.dz-file .dz-size { color:var(--muted); font-size:12px; flex-shrink:0; }
