/* MERIT, site vitrine. Polices auto-hebergees (aucun appel a un service tiers). */

@font-face { font-family: "Inter"; font-weight: 400; font-style: normal; font-display: swap; src: url("inter-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 500; font-style: normal; font-display: swap; src: url("inter-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 600; font-style: normal; font-display: swap; src: url("inter-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 700; font-style: normal; font-display: swap; src: url("inter-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Space Grotesk"; font-weight: 500; font-style: normal; font-display: swap; src: url("space-grotesk-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Space Grotesk"; font-weight: 700; font-style: normal; font-display: swap; src: url("space-grotesk-latin-700-normal.woff2") format("woff2"); }

:root {
  --bg-deep: #04211f;
  --bg-deep-2: #0a3634;
  --bg-deep-3: #0e433f;
  --glow: #35d6c0;
  --glow-soft: rgba(53, 214, 192, 0.35);
  --accent: #d97a45;
  --accent-2: #c25f2e;
  --accent-soft: rgba(217, 122, 69, 0.16);
  --ink: #0a1f1d;
  --ink-soft: rgba(10, 31, 29, 0.68);
  --paper: #faf8f4;
  --paper-2: #f1ede4;
  --text-on-dark: #f6f8f6;
  --text-on-dark-muted: rgba(246, 248, 246, 0.72);
  --text-on-dark-faint: rgba(246, 248, 246, 0.5);
  --border-on-dark: rgba(246, 248, 246, 0.14);
  --border-on-light: rgba(10, 31, 29, 0.1);
  --radius-s: 10px;
  --radius-m: 18px;
  --radius-l: 28px;
  --radius-full: 999px;
  --shadow-1: 0 20px 60px -20px rgba(4, 33, 31, 0.45);
  --shadow-2: 0 30px 80px -30px rgba(4, 33, 31, 0.6);
  --container: 1180px;
  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.1; margin: 0; letter-spacing: -0.02em; }
p { margin: 0; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }

/* utilities */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display); font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent);
}
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.eyebrow.on-dark { color: #f2b184; }
.section-head { max-width: 640px; margin-bottom: 52px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(1.8rem, 3.6vw, 2.5rem); margin-top: 14px; }
.section-head p { margin-top: 16px; font-size: 1.05rem; line-height: 1.6; color: var(--ink-soft); }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* brand mark: 3 bars */
.e-mark { display: inline-flex; flex-direction: column; gap: 5px; width: 22px; }
.e-mark span { height: 5px; border-radius: 3px; background: var(--accent); width: 100%; }

.logo {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 700; font-size: 1.5rem;
  letter-spacing: 0.06em; color: var(--text-on-dark);
}
.logo .e-mark { width: 20px; margin: 0 1px; gap: 4px; }
.logo .e-mark span { height: 4px; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-display); font-weight: 700; font-size: 0.95rem;
  padding: 14px 26px; border-radius: var(--radius-full); border: 1px solid transparent;
  cursor: pointer; white-space: nowrap;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}
.btn-primary { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff8f2; box-shadow: 0 14px 30px -10px rgba(194, 95, 46, 0.55); }
.btn-primary:hover { transform: translateY(-2px); }
.btn-ghost-dark { background: transparent; border-color: var(--border-on-dark); color: var(--text-on-dark); }
.btn-ghost-dark:hover { background: rgba(246, 248, 246, 0.08); border-color: rgba(246, 248, 246, 0.3); }

.pill-badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 18px;
  border-radius: var(--radius-full); border: 1px solid var(--border-on-dark);
  background: rgba(246, 248, 246, 0.06); font-size: 0.82rem; font-weight: 600;
  color: var(--text-on-dark-muted); white-space: nowrap;
}

/* header */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(4, 33, 31, 0.85);
  backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--border-on-dark);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { font-size: 0.92rem; font-weight: 500; color: var(--text-on-dark-muted); transition: color 0.2s ease; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text-on-dark); }
.nav-toggle {
  display: none; width: 42px; height: 42px; border-radius: var(--radius-s);
  border: 1px solid var(--border-on-dark); background: transparent;
  align-items: center; justify-content: center; cursor: pointer;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; display: block; width: 18px; height: 2px; background: var(--text-on-dark); position: relative;
  transition: transform 0.25s ease;
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }
@media (max-width: 760px) {
  .nav-links {
    position: fixed; inset: 72px 0 0 0; background: var(--bg-deep);
    flex-direction: column; align-items: flex-start; gap: 4px; padding: 24px;
    display: none; z-index: 90;
  }
  .nav-links.is-open { display: flex; }
  .nav-links a { width: 100%; padding: 14px 4px; font-size: 1.05rem; border-bottom: 1px solid var(--border-on-dark); }
  .nav-toggle { display: inline-flex; }
}

/* hero */
.hero {
  position: relative; overflow: hidden; color: var(--text-on-dark);
  background:
    radial-gradient(60% 55% at 50% 18%, var(--glow-soft), transparent 65%),
    linear-gradient(165deg, var(--bg-deep-3) 0%, var(--bg-deep-2) 45%, var(--bg-deep) 100%);
  padding: 88px 0 96px;
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(246, 248, 246, 0.055) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: radial-gradient(70% 70% at 50% 25%, black, transparent 80%);
  -webkit-mask-image: radial-gradient(70% 70% at 50% 25%, black, transparent 80%);
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; }
.hero-copy .pill-badge { margin-bottom: 26px; }
.hero-copy h1 { font-size: clamp(2.5rem, 5.4vw, 4rem); color: #fff; }
.hero-copy h1 .accent { color: var(--accent); }
.hero-copy .lead { margin-top: 24px; font-size: 1.15rem; line-height: 1.65; color: var(--text-on-dark-muted); max-width: 520px; }
.hero-actions { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 14px; }
.hero-visual { display: flex; justify-content: center; }

/* phone mockup */
.phone {
  width: 290px; border-radius: 42px; padding: 14px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(246, 248, 246, 0.16); box-shadow: var(--shadow-2);
}
.phone-screen {
  background: linear-gradient(175deg, #0c3c39, #06211f 70%); border-radius: 30px;
  padding: 22px 18px 26px; min-height: 470px; display: flex; flex-direction: column; gap: 14px;
  position: relative; overflow: hidden;
}
.phone-notch { align-self: center; width: 90px; height: 22px; background: rgba(0, 0, 0, 0.35); border-radius: var(--radius-full); margin-bottom: 6px; }
.phone-logo { display: flex; justify-content: center; margin-bottom: 4px; }
.phone-logo .logo { font-size: 1.05rem; }
.phone-logo .logo .e-mark { width: 14px; gap: 3px; }
.phone-logo .logo .e-mark span { height: 3px; }
.ph-card { background: rgba(246, 248, 246, 0.07); border: 1px solid var(--border-on-dark); border-radius: 16px; padding: 14px; }
.ph-line { height: 8px; border-radius: 4px; background: rgba(246, 248, 246, 0.16); }
.ph-line.w60 { width: 60%; } .ph-line.w40 { width: 40%; } .ph-line.w80 { width: 80%; }
.ph-line.big { height: 18px; margin-top: 10px; background: rgba(246, 248, 246, 0.28); width: 70%; }
.ph-bars { display: flex; align-items: flex-end; gap: 8px; height: 90px; margin-top: 14px; }
.ph-bars span { flex: 1; border-radius: 6px 6px 2px 2px; background: linear-gradient(180deg, var(--glow), rgba(53, 214, 192, 0.25)); }
.ph-row { display: flex; align-items: center; gap: 12px; }
.ph-dot { width: 30px; height: 30px; border-radius: 50%; background: var(--accent-soft); flex-shrink: 0; }
.ph-row .ph-col { flex: 1; display: flex; flex-direction: column; gap: 7px; }

/* strip */
.strip { background: var(--bg-deep); border-top: 1px solid var(--border-on-dark); padding: 22px 0; }
.strip-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px; color: var(--text-on-dark-faint); font-size: 0.86rem; font-weight: 600; }
.strip-row span { display: flex; align-items: center; gap: 8px; }
.strip-row .e-mark { width: 12px; gap: 2px; }
.strip-row .e-mark span { height: 2px; }

/* light sections */
.section-light { background: var(--paper); padding: 100px 0; }
.section-light.alt { background: var(--paper-2); }

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature-card { background: #fff; border: 1px solid var(--border-on-light); border-radius: var(--radius-l); padding: 30px 26px; }
.feature-icon {
  width: 48px; height: 48px; border-radius: 14px; background: var(--accent-soft); color: var(--accent-2);
  display: flex; align-items: center; justify-content: center; margin-bottom: 20px;
}
.feature-card h3 { font-size: 1.15rem; }
.feature-card p { margin-top: 10px; color: var(--ink-soft); font-size: 0.95rem; line-height: 1.6; }
@media (max-width: 900px) { .feature-grid { grid-template-columns: 1fr; } }

.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.about-grid .section-head { margin-bottom: 0; }
.info-card { background: #fff; border: 1px solid var(--border-on-light); border-radius: var(--radius-l); padding: 30px; box-shadow: var(--shadow-1); }
.info-list { display: flex; flex-direction: column; gap: 18px; }
.info-list li { display: flex; gap: 14px; align-items: flex-start; }
.info-list .icon-dot {
  width: 40px; height: 40px; border-radius: 12px; background: var(--accent-soft); color: var(--accent-2);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.info-list strong { display: block; font-size: 0.95rem; }
.info-list span.desc, .info-list a.desc { display: block; margin-top: 3px; font-size: 0.92rem; color: var(--ink-soft); line-height: 1.5; }
.info-list a.desc { color: var(--accent-2); font-weight: 600; }
.info-list a.desc:hover { text-decoration: underline; }
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; } }

/* contact band */
.cta-band {
  background:
    radial-gradient(60% 90% at 50% 100%, var(--glow-soft), transparent 60%),
    linear-gradient(165deg, var(--bg-deep-3), var(--bg-deep));
  color: var(--text-on-dark); padding: 96px 0; text-align: center;
}
.cta-band h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); color: #fff; margin-top: 14px; }
.cta-band p { margin: 18px auto 0; max-width: 540px; color: var(--text-on-dark-muted); font-size: 1.02rem; line-height: 1.6; }
.cta-band .hero-actions { justify-content: center; }

/* subpage hero + prose */
.page-hero {
  background:
    radial-gradient(60% 70% at 50% 0%, var(--glow-soft), transparent 65%),
    linear-gradient(165deg, var(--bg-deep-3), var(--bg-deep));
  color: var(--text-on-dark); padding: 96px 0 72px; text-align: center;
}
.page-hero h1 { margin-top: 16px; font-size: clamp(2rem, 5vw, 3rem); color: #fff; }
.page-hero p { margin: 18px auto 0; max-width: 600px; color: var(--text-on-dark-muted); font-size: 1.05rem; line-height: 1.6; }
.prose { max-width: 780px; margin: 0 auto; padding: 72px 24px 96px; }
.prose .updated { display: block; color: var(--ink-soft); font-size: 0.86rem; margin-bottom: 28px; }
.prose h2 { font-size: 1.4rem; margin-top: 42px; margin-bottom: 12px; }
.prose h2:first-of-type { margin-top: 0; }
.prose p, .prose li { color: var(--ink-soft); line-height: 1.75; font-size: 0.98rem; }
.prose p + p { margin-top: 12px; }
.prose ul { margin-top: 10px; padding-left: 20px; list-style: disc; }
.prose li { margin-bottom: 6px; }
.prose a { color: var(--accent-2); font-weight: 600; }
.prose a:hover { text-decoration: underline; }
.prose strong { color: var(--ink); }

/* footer */
.site-footer { background: var(--bg-deep); color: var(--text-on-dark-muted); padding: 64px 0 30px; border-top: 1px solid var(--border-on-dark); }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.footer-brand p { margin-top: 16px; font-size: 0.9rem; line-height: 1.6; max-width: 300px; color: var(--text-on-dark-faint); }
.footer-col h4 { font-family: var(--font-display); font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-on-dark); }
.footer-col ul { margin-top: 16px; display: flex; flex-direction: column; gap: 11px; }
.footer-col a, .footer-col li > span { font-size: 0.9rem; }
.footer-col a:hover { color: #fff; }
.footer-disclaimer { margin-top: 44px; font-size: 0.78rem; line-height: 1.6; color: var(--text-on-dark-faint); max-width: 900px; }
.footer-bottom {
  margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--border-on-dark);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 0.82rem; color: var(--text-on-dark-faint);
}
@media (max-width: 900px) { .footer-top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-top { grid-template-columns: 1fr; } }

/* responsive hero */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-copy .lead { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-visual { margin-top: 12px; }
}

/* error page */
.error-page {
  min-height: 100vh; display: flex; align-items: center; justify-content: center; text-align: center;
  background: radial-gradient(60% 60% at 50% 30%, var(--glow-soft), transparent 65%), linear-gradient(165deg, var(--bg-deep-3), var(--bg-deep));
  color: var(--text-on-dark); padding: 40px 24px;
}
.error-code { font-family: var(--font-display); font-size: clamp(5rem, 18vw, 8rem); font-weight: 700; color: #fff; line-height: 1; }
.error-page h1 { margin-top: 18px; font-size: clamp(1.5rem, 3vw, 2rem); color: #fff; }
.error-page p { margin: 16px auto 0; max-width: 460px; color: var(--text-on-dark-muted); line-height: 1.6; }
.error-page .hero-actions { justify-content: center; }
