/* ==========================================================================
   Wemedic — Consultants Cannabis Médical
   Design system + composants du site
   ========================================================================== */

:root {
  --green-900: #1f3a0c;
  --green-800: #2a4e10;
  --green-700: #386812;
  --green-600: #4b8f16;
  --green-500: #5da91f;
  --green-100: #eaf5df;
  --green-50: #f4faee;
  --orange-600: #e56f00;
  --orange-500: #ff7f00;
  --orange-100: #fff1e0;
  --flag-red-700: #a30f24;
  --flag-red-600: #c8102e;
  --flag-red-100: #fbe4e8;
  --dark: #181818;
  --gray-900: #202124;
  --gray-700: #4a4d4f;
  --gray-500: #767a7d;
  --gray-300: #d8dbdb;
  --gray-200: #e6e8e8;
  --gray-100: #f4f5f5;
  --white: #ffffff;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 2px 10px rgba(24, 24, 24, 0.06);
  --shadow-md: 0 10px 30px rgba(24, 24, 24, 0.09);
  --shadow-lg: 0 20px 50px rgba(31, 58, 12, 0.16);
  --container: 1180px;
  --font-head: "Poppins", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--gray-900);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { 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-head);
  color: var(--green-900);
  line-height: 1.2;
  margin: 0 0 .6em;
  font-weight: 700;
}
h1 { font-size: clamp(2rem, 4.5vw, 3.1rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; color: var(--gray-700); }
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
section { padding: 76px 0; }
.section-tight { padding: 48px 0; }
.section-alt { background: var(--green-50); }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--green-700);
  font-weight: 700;
  font-size: .82rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 3px;
  background: var(--orange-500);
  border-radius: 2px;
  display: inline-block;
}
.lede { font-size: 1.15rem; max-width: 62ch; }
.center { text-align: center; margin-left: auto; margin-right: auto; }
.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--green-800);
  color: #fff; padding: 10px 16px; z-index: 200; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .98rem;
  padding: 14px 26px;
  border-radius: 100px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease, color .15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--orange-500); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--orange-600); box-shadow: var(--shadow-md); }
.btn-outline { background: transparent; border-color: var(--green-700); color: var(--green-800); }
.btn-outline:hover { background: var(--green-700); color: #fff; }
.btn-ghost-light { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.65); color: #fff; }
.btn-ghost-light:hover { background: #fff; color: var(--green-800); }
.btn-lg { padding: 16px 34px; font-size: 1.05rem; }
.btn-block { width: 100%; }

/* Promo topbar (veterans) */
.promo-topbar { background: linear-gradient(90deg, var(--flag-red-700), var(--flag-red-600)); color: #fff; }
.promo-topbar-inner {
  display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap;
  padding: 9px 24px; text-align: center; font-size: .85rem; font-weight: 600;
}
.promo-topbar-inner a {
  color: #fff; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; font-weight: 700;
}
.promo-topbar-inner a:hover { color: #ffd9de; }
@media (max-width: 640px) { .promo-topbar-inner { font-size: .78rem; padding: 8px 16px; } }

/* Veteran emblem graphic */
.veteran-emblem {
  width: 220px; height: 220px; border-radius: 50%; margin: 0 auto;
  background: repeating-conic-gradient(var(--flag-red-600) 0deg 90deg, #fff 90deg 180deg);
  padding: 8px; box-shadow: var(--shadow-lg);
  display: flex; align-items: center; justify-content: center;
}
.veteran-emblem-inner {
  width: 100%; height: 100%; border-radius: 50%; background: #fff;
  display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 4px;
  border: 3px solid var(--flag-red-600);
}
.veteran-emblem-inner .leaf { font-size: 4.2rem; line-height: 1; filter: drop-shadow(0 2px 4px rgba(0,0,0,.15)); }
.veteran-emblem-inner .medal { font-size: 1.6rem; }
.free-badge {
  display: inline-flex; align-items: center; gap: 8px; background: #fff; color: var(--flag-red-600);
  font-family: var(--font-head); font-weight: 700; font-size: .9rem; padding: 10px 20px;
  border-radius: 100px; box-shadow: var(--shadow-sm);
}

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--gray-200);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 12px 24px; gap: 14px; }
.brand { display: flex; align-items: center; gap: 8px; font-family: var(--font-head); font-weight: 700; color: var(--green-900); flex: none; }
.brand img { height: 44px; width: auto; }
.brand-name { font-size: 1.15rem; white-space: nowrap; }
.brand-tag { display: block; font-size: .66rem; font-weight: 500; color: var(--gray-500); letter-spacing: .02em; white-space: nowrap; }
.main-nav { display: flex; align-items: center; gap: 20px; min-width: 0; overflow-x: auto; scrollbar-width: none; -ms-overflow-style: none; }
.main-nav::-webkit-scrollbar { display: none; }
.main-nav ul { display: flex; gap: 14px; flex-wrap: nowrap; }
.main-nav a {
  font-weight: 600; font-size: .86rem; color: var(--gray-900); white-space: nowrap;
  padding: 8px 2px; border-bottom: 2px solid transparent; transition: color .15s, border-color .15s;
}
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--green-700); border-color: var(--orange-500); }
.nav-cta-mobile { display: none; }
.header-cta { display: flex; align-items: center; gap: 14px; flex: none; }
.header-phone { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: .87rem; color: var(--green-800); white-space: nowrap; }
.nav-toggle {
  display: none; background: none; border: 2px solid var(--gray-300); border-radius: 10px;
  width: 44px; height: 44px; align-items: center; justify-content: center; cursor: pointer;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; display: block; width: 20px; height: 2px; background: var(--dark); position: relative; transition: .2s;
}
.nav-toggle span::before { position: absolute; top: -6px; width: 20px; height: 2px; background: var(--dark); }
.nav-toggle span::after { position: absolute; top: 6px; width: 20px; height: 2px; background: var(--dark); }

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--green-900) 0%, var(--green-700) 55%, var(--green-600) 100%);
  color: #fff;
  padding: 84px 0;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(circle at 85% 20%, rgba(255,255,255,.14), transparent 45%),
    radial-gradient(circle at 10% 90%, rgba(255,127,0,.25), transparent 40%);
  pointer-events: none;
}
.hero-veterans { background: linear-gradient(135deg, var(--flag-red-700) 0%, var(--flag-red-600) 55%, var(--green-700) 100%); }
.hero-veterans::before {
  background-image: radial-gradient(circle at 85% 20%, rgba(255,255,255,.16), transparent 45%),
    radial-gradient(circle at 10% 90%, rgba(255,255,255,.18), transparent 40%);
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.hero h1 { color: #fff; }
.hero .lede { color: rgba(255,255,255,.88); }
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 30px; }
.badge {
  display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.3); padding: 8px 14px; border-radius: 100px; font-size: .82rem; font-weight: 600;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-panel {
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.25);
  border-radius: var(--radius-lg); padding: 28px; backdrop-filter: blur(6px);
}
.hero-panel h2 { color: #fff; font-size: 1.3rem; }
.hero-panel ol { display: flex; flex-direction: column; gap: 16px; counter-reset: steps; margin-top: 16px; }
.hero-panel ol li { display: flex; gap: 14px; align-items: flex-start; color: rgba(255,255,255,.92); font-size: .93rem; }
.step-num {
  flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--orange-500);
  color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: .85rem;
}

/* Page header (inner pages) */
.page-hero {
  background: linear-gradient(120deg, var(--green-800), var(--green-600));
  color: #fff; padding: 58px 0 64px;
}
.page-hero h1 { color: #fff; margin-bottom: .35em; }
.breadcrumbs { font-size: .82rem; color: rgba(255,255,255,.78); margin-bottom: 14px; }
.breadcrumbs a { color: rgba(255,255,255,.9); font-weight: 600; }
.breadcrumbs a:hover { text-decoration: underline; }
.page-hero .lede { color: rgba(255,255,255,.9); margin-bottom: 0; }

/* Trust strip */
.trust-strip { background: var(--gray-100); padding: 22px 0; border-top: 1px solid var(--gray-200); border-bottom: 1px solid var(--gray-200); }
.trust-strip .container { display: flex; flex-wrap: wrap; gap: 20px 34px; justify-content: center; align-items: center; }
.trust-item { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: .88rem; color: var(--gray-700); }
.trust-item svg { color: var(--green-600); flex: none; }

/* Grid / cards */
.grid { display: grid; gap: 26px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius-md);
  padding: 30px 26px; box-shadow: var(--shadow-sm); transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card-icon {
  width: 54px; height: 54px; border-radius: 14px; background: var(--green-100); color: var(--green-700);
  display: flex; align-items: center; justify-content: center; margin-bottom: 18px;
}
.card h3 { margin-bottom: 10px; }
.card p:last-child { margin-bottom: 0; }
.card-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--green-700); margin-top: 12px; font-size: .9rem; }

/* Two column content */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split-reverse { direction: rtl; }
.split-reverse > * { direction: ltr; }
.figure-card {
  background: linear-gradient(160deg, var(--green-100), #fff);
  border: 1px solid var(--gray-200); border-radius: var(--radius-lg); padding: 34px;
}
.photo-frame { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); line-height: 0; }
.photo-frame img { width: 100%; height: 100%; object-fit: cover; display: block; aspect-ratio: 4/3; }
.photo-frame.tall img { aspect-ratio: 3/4; }
.photo-banner { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); margin-top: 40px; }
.photo-banner img { width: 100%; height: auto; max-height: 420px; object-fit: cover; display: block; }
.checklist { display: flex; flex-direction: column; gap: 14px; margin: 18px 0; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; color: var(--gray-700); font-weight: 500; }
.checklist svg { flex: none; color: var(--green-600); margin-top: 3px; }

/* Steps timeline */
.timeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: tl; }
.timeline-step { position: relative; background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius-md); padding: 28px 22px; }
.timeline-step .num {
  width: 42px; height: 42px; border-radius: 50%; background: var(--green-700); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-family: var(--font-head);
  margin-bottom: 16px;
}

/* Conditions grid (pillar page) */
.tag-cloud { display: flex; flex-wrap: wrap; gap: 10px; }
.tag-cloud span {
  background: var(--green-100); color: var(--green-800); padding: 9px 16px; border-radius: 100px;
  font-weight: 600; font-size: .86rem;
}

/* FAQ accordion */
.faq-list { display: flex; flex-direction: column; gap: 14px; }
.faq-item { border: 1px solid var(--gray-200); border-radius: var(--radius-md); background: #fff; overflow: hidden; }
.faq-q {
  width: 100%; text-align: left; background: none; border: none; cursor: pointer;
  padding: 20px 22px; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  font-family: var(--font-head); font-weight: 600; font-size: 1rem; color: var(--gray-900);
}
.faq-q .chev { transition: transform .2s ease; color: var(--green-600); flex: none; }
.faq-item[open] .faq-q .chev { transform: rotate(180deg); }
.faq-a { padding: 0 22px 20px; color: var(--gray-700); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary { list-style: none; }

/* CTA band */
.cta-band {
  background: linear-gradient(120deg, var(--orange-600), var(--orange-500));
  color: #fff; border-radius: var(--radius-lg); padding: 50px 44px;
  display: flex; justify-content: space-between; align-items: center; gap: 30px; flex-wrap: wrap;
}
.cta-band h2 { color: #fff; margin-bottom: 6px; }
.cta-band p { color: rgba(255,255,255,.92); margin-bottom: 0; }
.cta-band .btn-primary { background: #fff; color: var(--orange-600); }
.cta-band .btn-primary:hover { background: var(--dark); color: #fff; }

/* Pricing / info table */
.info-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-sm); }
.info-table th, .info-table td { text-align: left; padding: 16px 20px; border-bottom: 1px solid var(--gray-200); font-size: .93rem; }
.info-table th { background: var(--green-800); color: #fff; font-family: var(--font-head); }
.info-table tr:last-child td { border-bottom: none; }

/* Testimonial-ish quote / disclaimer box */
.callout {
  border-left: 4px solid var(--orange-500); background: var(--orange-100); border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 20px 24px; font-size: .93rem; color: var(--gray-900);
}
.callout strong { color: var(--green-900); }

/* Forms */
.form-card { background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius-lg); padding: 34px; box-shadow: var(--shadow-sm); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; font-size: .88rem; margin-bottom: 7px; color: var(--gray-900); }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 14px; border: 1.5px solid var(--gray-300); border-radius: 10px; font-family: var(--font-body);
  font-size: .95rem; color: var(--gray-900); background: var(--gray-100); transition: border-color .15s, background .15s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--green-600); background: #fff;
}
.field small { color: var(--gray-500); }
.form-note { font-size: .82rem; color: var(--gray-500); margin-top: 14px; }

/* Contact info cards */
.contact-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.contact-cards .card { text-align: center; }
.contact-cards .card-icon { margin: 0 auto 16px; }

/* Footer */
.site-footer { background: var(--dark); color: rgba(255,255,255,.78); padding: 64px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 44px; border-bottom: 1px solid rgba(255,255,255,.12); }
.footer-brand img { height: 46px; margin-bottom: 14px; }
.footer-brand p { color: rgba(255,255,255,.65); font-size: .9rem; max-width: 32ch; }
.footer-contact { font-size: .9rem; font-weight: 600; margin-top: -6px; }
.footer-contact a { color: #fff; transition: color .15s; }
.footer-contact a:hover { color: var(--orange-500); }
.footer-col h4 { color: #fff; font-size: .92rem; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 16px; }
.footer-col ul { display: flex; flex-direction: column; gap: 11px; }
.footer-col a { color: rgba(255,255,255,.72); font-size: .92rem; transition: color .15s; }
.footer-col a:hover { color: var(--orange-500); }
.footer-social { display: flex; gap: 10px; margin-top: 16px; }
.footer-social a {
  width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.1);
  display: flex; align-items: center; justify-content: center; transition: background .15s;
}
.footer-social a:hover { background: var(--green-600); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; padding: 22px 0; font-size: .82rem; color: rgba(255,255,255,.55); }
.footer-bottom a { color: rgba(255,255,255,.55); }
.footer-bottom a:hover { color: #fff; }
.footer-lang { display: flex; gap: 10px; }
.footer-lang a { border: 1px solid rgba(255,255,255,.25); padding: 4px 10px; border-radius: 100px; }

/* Utility */
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.text-center { text-align: center; }
.section-head { max-width: 720px; margin: 0 auto 46px; text-align: center; }
.section-head.left { margin-left: 0; text-align: left; }
.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.stat { text-align: center; }
.stat .num { font-family: var(--font-head); font-size: 2.4rem; font-weight: 700; color: var(--green-700); }
.stat .label { font-size: .88rem; color: var(--gray-500); font-weight: 600; }

/* Responsive */
@media (max-width: 1360px) {
  .header-phone { display: none; }
}
@media (max-width: 1180px) {
  .brand-tag { display: none; }
}
@media (max-width: 980px) {
  .hero-grid, .split { grid-template-columns: 1fr; }
  .split-reverse { direction: ltr; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .timeline { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-cards { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .main-nav { position: fixed; inset: 68px 0 0 0; background: #fff; flex-direction: column; align-items: stretch;
    padding: 20px 24px; transform: translateY(-12px); opacity: 0; pointer-events: none; transition: .2s; overflow-y: auto; }
  .main-nav.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .main-nav ul { flex-direction: column; gap: 4px; flex-wrap: wrap; }
  .main-nav a { display: block; padding: 14px 6px; border-bottom: 1px solid var(--gray-200); }
  .nav-toggle { display: flex; }
  .header-phone { display: none; }
  .brand-tag { display: none; }
  .header-cta .btn-primary { display: none; }
  .nav-cta-mobile { display: block; margin-top: 16px; }
  section { padding: 54px 0; }
  .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-band { flex-direction: column; text-align: center; padding: 38px 26px; }
  .stat-grid { grid-template-columns: 1fr; gap: 16px; }
}
