/* =========================================================================
   Portail Entreprises — SNCF Voyageurs
   Design system inspiré de la charte officielle SNCF Voyageurs
   ========================================================================= */

:root {
  /* Couleurs de marque */
  --green-900: #052c25;   /* nav très foncé */
  --green-800: #0a423a;   /* header / fond sombre */
  --green-700: #0c4d42;   /* surfaces sombres */
  --green-600: #0f5c4e;
  --mint-500:  #63d894;   /* vert menthe accent principal */
  --mint-400:  #82e0a8;   /* boutons clairs */
  --mint-300:  #a8ecc4;
  --mint-100:  #e8f7ee;   /* fond clair menthe */
  --mint-50:   #f2fbf5;

  --ink:       #0a2c26;   /* texte foncé */
  --ink-soft:  #38564f;   /* texte secondaire */
  --line:      #d6e7dd;   /* bordures claires */
  --white:     #ffffff;

  --sncf-red:  #cd0037;   /* rouge du logo SNCF */

  --radius-sm: 10px;
  --radius:    16px;
  --radius-lg: 28px;
  --shadow:    0 10px 30px rgba(5, 44, 37, 0.10);
  --shadow-lg: 0 24px 60px rgba(5, 44, 37, 0.18);

  --font: "Poppins", "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
  --maxw: 1200px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--mint-50);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

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

/* Titres façon SNCF (italique gras) */
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.01em; }
.display {
  font-weight: 800;
  font-style: italic;
  font-size: clamp(2rem, 5vw, 3.4rem);
}
.section-title {
  font-weight: 800;
  font-size: clamp(1.6rem, 3.4vw, 2.4rem);
  text-align: center;
  color: var(--ink);
}
.section-lead {
  text-align: center;
  color: var(--ink-soft);
  max-width: 640px;
  margin: 12px auto 0;
}

/* =========================== Boutons ============================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: inherit;
  font-weight: 700;
  font-size: 1rem;
  padding: 14px 30px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .12s ease, background .2s ease, box-shadow .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--mint-400); color: var(--green-900); }
.btn-primary:hover { background: var(--mint-500); box-shadow: 0 8px 22px rgba(99, 216, 148, .4); }
.btn-white { background: var(--white); color: var(--green-800); box-shadow: var(--shadow); }
.btn-white:hover { transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,.5); }
.btn-ghost:hover { background: rgba(255,255,255,.12); }
.btn-outline { background: transparent; color: var(--green-800); border-color: var(--green-800); }
.btn-outline:hover { background: var(--green-800); color: var(--white); }
.btn-block { width: 100%; }
.btn-lg { padding: 17px 40px; font-size: 1.08rem; }

/* =========================== Header ============================= */
.site-header {
  background: var(--green-800);
  color: var(--white);
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
  gap: 20px;
}
.brand { display: flex; align-items: center; gap: 14px; }
.brand-logo {
  background: var(--white);
  border-radius: 12px;
  padding: 8px 10px;
  display: grid;
  place-items: center;
  box-shadow: 0 4px 14px rgba(0,0,0,.15);
}
.brand-logo .sncf {
  font-weight: 900;
  font-style: italic;
  font-size: 1.15rem;
  color: var(--sncf-red);
  letter-spacing: -.03em;
  line-height: 1;
}
.brand-logo .vy {
  font-size: .5rem;
  font-weight: 700;
  letter-spacing: .18em;
  color: var(--ink);
  text-align: center;
}
.brand-svg { height: 42px; display: block; }
.brand-text { display: none; font-weight: 700; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}
.nav-links a {
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 600;
  color: rgba(255,255,255,.9);
  transition: background .2s, color .2s;
}
.nav-links a:hover { background: rgba(255,255,255,.1); color: #fff; }
.nav-links a.active { color: var(--mint-400); }

.nav-links a.nav-account {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--mint-400);
  color: var(--green-900);
  padding: 11px 22px;
  border-radius: 999px;
  font-weight: 800;
  box-shadow: 0 6px 18px rgba(99, 216, 148, .35);
}
.nav-links a.nav-account:hover { background: var(--mint-500); color: var(--green-900); }
.nav-links a.nav-account.active { color: var(--green-900); }
.nav-account:hover { transform: translateY(-2px); transition: transform .15s; }
.nav-account .avatar {
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--green-800); color: #fff;
  display: grid; place-items: center; font-size: .85rem;
}

.nav-toggle {
  display: none;
  background: transparent; border: 0; color: #fff;
  font-size: 1.6rem; cursor: pointer;
}

/* =========================== Hero ============================== */
.hero {
  background: var(--green-800);
  color: var(--white);
  padding: 20px 0 0;
}
.hero-inner { padding-bottom: 48px; }
.hero h1 { color: var(--mint-500); }
.hero .sub {
  color: var(--mint-300);
  font-size: clamp(1.05rem, 2.2vw, 1.5rem);
  font-weight: 500;
  margin-top: 6px;
}
.hero-media {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 18px;
  margin-top: 34px;
}
.hero-media .frame {
  height: 340px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
}
.hero-media .frame img { width: 100%; height: 100%; object-fit: cover; }
.hero-actions {
  display: flex;
  gap: 18px;
  justify-content: center;
  flex-wrap: wrap;
  transform: translateY(50%);
  position: relative;
  z-index: 2;
}
.hero-actions .btn { min-width: 240px; }
.hero-actions-spacer { height: 44px; background: var(--mint-50); }

/* =========================== Sections ========================== */
section { padding: 72px 0; }
.section-tight { padding: 48px 0; }

/* Cartes offres */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
  margin-top: 44px;
}
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .18s ease, box-shadow .18s ease;
  display: flex;
  flex-direction: column;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.card .thumb { height: 170px; overflow: hidden; }
.card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.card .body { padding: 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card .body h3 { color: var(--green-700); font-weight: 800; }
.card .body p { color: var(--ink-soft); font-size: .95rem; }
.card .body .card-link {
  margin-top: auto; color: var(--green-700); font-weight: 700;
  display: inline-flex; align-items: center; gap: 6px;
}
.card .body .card-link:hover { gap: 12px; transition: gap .2s; }

/* Feature icônes */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px;
  margin-top: 44px;
}
.feature { text-align: center; padding: 10px; }
.feature .ic {
  width: 68px; height: 68px; margin: 0 auto 16px;
  border-radius: 20px;
  background: var(--mint-100);
  color: var(--green-700);
  display: grid; place-items: center;
  font-size: 1.7rem;
}
.feature h3 { font-weight: 700; font-size: 1.15rem; margin-bottom: 6px; }
.feature p { color: var(--ink-soft); font-size: .95rem; }

/* Bandeau menthe */
.band {
  background: var(--mint-100);
}
.band-dark {
  background: var(--green-800);
  color: var(--white);
}
.band-dark .section-title, .band-dark .section-lead { color: #fff; }
.band-dark .section-lead { color: var(--mint-300); }

/* Toggle segment */
.segment {
  display: inline-flex;
  background: var(--green-800);
  border-radius: 999px;
  padding: 5px;
  margin: 22px auto 0;
}
.segment button {
  border: 0; background: transparent; color: #fff;
  font-family: inherit; font-weight: 700; cursor: pointer;
  padding: 10px 26px; border-radius: 999px;
}
.segment button.active { background: var(--mint-400); color: var(--green-900); }

/* =========================== Widget recherche ================== */
.search-widget {
  background: var(--green-700);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow-lg);
}
.search-tabs {
  display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px;
}
.search-tabs button {
  border: 0; background: transparent; color: rgba(255,255,255,.85);
  font-family: inherit; font-weight: 600; cursor: pointer;
  padding: 10px 18px; border-radius: 999px;
  display: inline-flex; align-items: center; gap: 8px;
}
.search-tabs button.active { border: 2px solid var(--mint-400); color: #fff; }
.search-row {
  display: grid;
  grid-template-columns: 2fr auto 1fr auto;
  gap: 14px;
  align-items: stretch;
}
.search-field {
  background: transparent;
  border: 2px solid rgba(255,255,255,.25);
  border-radius: 12px;
  padding: 12px 18px;
  color: #fff;
  display: flex; align-items: center; gap: 12px;
}
.search-field.two { display: grid; grid-template-columns: 1fr auto 1fr; }
.search-field label { font-size: .72rem; color: var(--mint-300); text-transform: uppercase; letter-spacing: .05em; display: block; }
.search-field input, .search-field select {
  background: transparent; border: 0; color: #fff; font-family: inherit;
  font-size: 1rem; font-weight: 600; width: 100%; outline: none;
}
.search-field input::placeholder { color: rgba(255,255,255,.6); }
.search-field select option { color: #000; }
.swap {
  width: 42px; height: 42px; border-radius: 50%;
  border: 2px solid var(--mint-400); background: transparent; color: var(--mint-400);
  align-self: center; cursor: pointer; font-size: 1.1rem;
  display: grid; place-items: center;
}

/* =========================== Espace interne =================== */
.app-shell { display: grid; grid-template-columns: 260px 1fr; min-height: calc(100vh - 84px); }
.sidebar {
  background: var(--green-800);
  color: #fff;
  padding: 30px 18px;
}
.sidebar .who {
  display: flex; align-items: center; gap: 12px;
  padding: 12px; background: rgba(255,255,255,.08);
  border-radius: 14px; margin-bottom: 22px;
}
.sidebar .who .avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--mint-400); color: var(--green-900);
  display: grid; place-items: center; font-weight: 800;
}
.sidebar .who small { color: var(--mint-300); display: block; }
.side-nav { list-style: none; display: flex; flex-direction: column; gap: 4px; }
.side-nav a {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px; border-radius: 12px;
  color: rgba(255,255,255,.85); font-weight: 600;
}
.side-nav a:hover { background: rgba(255,255,255,.1); color: #fff; }
.side-nav a.active { background: var(--mint-400); color: var(--green-900); }
.side-nav .ic { width: 22px; display: inline-flex; align-items: center; justify-content: center; }
.side-nav .ic svg { width: 19px; height: 19px; }
.sidebar .side-foot { margin-top: 22px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.15); }

.app-main { padding: 34px 40px; background: var(--mint-50); }
.app-head { display: flex; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin-bottom: 26px; }
.app-head h1 { font-size: 1.9rem; font-weight: 800; }
.app-head p { color: var(--ink-soft); }

/* Stat tiles */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 18px; }
.stat {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow);
}
.stat .k { font-size: 2rem; font-weight: 800; color: var(--green-700); }
.stat .l { color: var(--ink-soft); font-size: .9rem; }
.stat .trend { font-size: .82rem; font-weight: 700; }
.stat .up { color: #1a9d5a; }

/* Panels */
.panel {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 26px; margin-top: 24px;
}
.panel h2 { font-size: 1.25rem; font-weight: 800; margin-bottom: 4px; }
.panel .panel-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; flex-wrap: wrap; gap: 10px; }

/* Tables */
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { text-align: left; padding: 14px 12px; border-bottom: 1px solid var(--line); }
.table th { font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-soft); }
.table tbody tr:hover { background: var(--mint-50); }
.badge {
  display: inline-block; padding: 4px 12px; border-radius: 999px;
  font-size: .78rem; font-weight: 700;
}
.badge-green { background: var(--mint-100); color: var(--green-700); }
.badge-amber { background: #fff3d6; color: #a67400; }
.badge-red { background: #ffe1e7; color: var(--sncf-red); }

/* =========================== Résultats trains ================= */
.trip-result {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 22px; margin-bottom: 16px;
  display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: center;
}
.trip-times { display: flex; align-items: center; gap: 22px; }
.trip-times .t { font-size: 1.6rem; font-weight: 800; }
.trip-times .g { color: var(--ink-soft); font-size: .85rem; }
.trip-line { flex: 1; min-width: 90px; text-align: center; color: var(--ink-soft); }
.trip-line .bar { height: 2px; background: var(--line); position: relative; margin: 8px 0; }
.trip-line .bar::after { content: "🚄"; position: absolute; right: -4px; top: -10px; }
.trip-meta { display: flex; gap: 18px; margin-top: 8px; color: var(--ink-soft); font-size: .85rem; flex-wrap: wrap; }
.trip-buy { text-align: right; display: flex; flex-direction: column; gap: 10px; align-items: flex-end; }
.trip-buy .price { font-size: 1.7rem; font-weight: 800; color: var(--green-700); }
.trip-buy .price small { font-size: .8rem; font-weight: 600; color: var(--ink-soft); }

/* =========================== Formulaires ====================== */
.form-card {
  background: #fff; border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); padding: 40px;
  max-width: 480px; margin: 0 auto;
}
.form-card.wide { max-width: 760px; }
.form-card h1 { font-size: 1.7rem; font-weight: 800; margin-bottom: 6px; }
.form-card .muted { color: var(--ink-soft); margin-bottom: 26px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 7px; }
.field input, .field select, .field textarea {
  width: 100%; font-family: inherit; font-size: 1rem;
  padding: 13px 16px; border: 2px solid var(--line); border-radius: 12px;
  background: #fff; outline: none; transition: border .2s;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--mint-500); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-row-between { display: flex; justify-content: space-between; align-items: center; font-size: .9rem; margin: 4px 0 22px; }
.form-row-between a { color: var(--green-700); font-weight: 600; }
.checkbox { display: flex; align-items: flex-start; gap: 10px; font-size: .9rem; color: var(--ink-soft); }
.divider { display: flex; align-items: center; gap: 14px; color: var(--ink-soft); margin: 22px 0; font-size: .85rem; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.auth-split {
  min-height: calc(100vh - 84px);
  display: grid; grid-template-columns: 1fr 1fr;
}
.auth-visual {
  background: var(--green-800); color: #fff;
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; justify-content: center;
  padding: 60px;
}
.auth-visual::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(120deg, rgba(10,66,58,.85), rgba(10,66,58,.4)), url('https://images.unsplash.com/photo-1474487548417-781cb71495f3?auto=format&fit=crop&w=1200&q=60') center/cover;
  z-index: 0;
}
.auth-visual > * { position: relative; z-index: 1; }
.auth-visual h2 { font-size: 2rem; font-weight: 800; font-style: italic; margin-bottom: 14px; }
.auth-visual p { color: var(--mint-300); max-width: 380px; }
.auth-visual ul { list-style: none; margin-top: 26px; display: flex; flex-direction: column; gap: 12px; }
.auth-visual li { display: flex; align-items: center; gap: 12px; }
.auth-visual li .ck { color: var(--mint-400); font-weight: 800; }
.auth-form-wrap { display: grid; place-items: center; padding: 50px 24px; background: var(--mint-50); }

/* Stepper */
.stepper { display: flex; gap: 8px; align-items: center; justify-content: center; margin: 0 auto 30px; flex-wrap: wrap; }
.step { display: flex; align-items: center; gap: 10px; color: var(--ink-soft); }
.step .n { width: 30px; height: 30px; border-radius: 50%; background: var(--line); color: #fff; display: grid; place-items: center; font-weight: 700; }
.step.done .n, .step.active .n { background: var(--mint-500); color: var(--green-900); }
.step.active span { color: var(--ink); font-weight: 700; }
.step-sep { width: 34px; height: 2px; background: var(--line); }

/* Récap */
.summary-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 24px; align-items: start; }
.summary-line { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.summary-total { display: flex; justify-content: space-between; font-size: 1.3rem; font-weight: 800; padding-top: 14px; color: var(--green-700); }

/* =========================== Footer =========================== */
.site-footer {
  background: var(--green-900);
  color: rgba(255,255,255,.8);
  padding: 56px 0 26px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 34px;
}
.footer-grid h4 { color: #fff; margin-bottom: 14px; font-size: 1rem; }
.footer-grid ul { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.footer-grid a:hover { color: var(--mint-400); }
.footer-brand p { max-width: 300px; margin-top: 14px; font-size: .92rem; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.14);
  margin-top: 40px; padding-top: 22px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-size: .85rem;
}

/* Floating aide */
.fab {
  position: fixed; right: 26px; bottom: 26px;
  width: 62px; height: 62px; border-radius: 50%;
  background: var(--mint-400); color: var(--green-900);
  display: grid; place-items: center; font-size: 1.5rem;
  box-shadow: var(--shadow-lg); cursor: pointer; z-index: 90;
  border: 0;
}
.fab:hover { background: var(--mint-500); }

/* =========================== Composants additionnels ========== */
/* Cellule collaborateur dans les tables */
.who-cell { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.avatar-sm {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--mint-100); color: var(--green-700);
  display: grid; place-items: center; font-size: .72rem; font-weight: 800;
  flex-shrink: 0;
}
.badge-neutral { background: #eef2f0; color: var(--ink-soft); }

/* Histogramme (bilan carbone) */
.chart {
  display: flex; align-items: flex-end; gap: 14px;
  height: 240px; padding-top: 10px;
}
.chart .bar-col {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: flex-end; height: 100%;
}
.chart .bar {
  width: 100%; max-width: 56px; border-radius: 10px 10px 0 0;
  background: linear-gradient(180deg, var(--mint-400), var(--mint-500));
  transition: height .3s ease;
}
.chart .bar-live { background: linear-gradient(180deg, var(--mint-500), var(--green-600)); }
.chart .bar-val { font-size: .78rem; font-weight: 700; color: var(--green-700); margin-top: 8px; }
.chart .bar-lab { font-size: .78rem; color: var(--ink-soft); margin-top: 2px; }

/* Jauges (répartition par mode) */
.meter { display: flex; align-items: center; gap: 14px; margin: 12px 0; }
.meter-lab { width: 96px; font-weight: 600; font-size: .9rem; }
.meter-track { flex: 1; height: 12px; border-radius: 999px; background: var(--mint-50); border: 1px solid var(--line); overflow: hidden; }
.meter-fill { height: 100%; border-radius: 999px; background: var(--mint-500); }
.meter-fill.amber { background: #f2b53c; }
.meter-fill.red { background: var(--sncf-red); }
.meter-val { width: 44px; text-align: right; font-weight: 700; font-size: .9rem; color: var(--ink-soft); }

/* FAQ (accordéon) */
.faq { max-width: 780px; margin: 34px auto 0; display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 4px 22px; overflow: hidden;
}
.faq-item summary {
  cursor: pointer; list-style: none; font-weight: 700; color: var(--ink);
  padding: 16px 0; display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--green-700); font-size: 1.5rem; font-weight: 700; transition: transform .2s; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { color: var(--ink-soft); font-size: .95rem; padding-bottom: 18px; }

/* Utils */
.text-center { text-align: center; }
.mt-24 { margin-top: 24px; }
.mt-40 { margin-top: 40px; }
.hide { display: none !important; }

/* =========================== Responsive ======================= */
@media (max-width: 900px) {
  .brand-text { display: none; }
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 84px; left: 0; right: 0;
    background: var(--green-800); flex-direction: column; align-items: stretch;
    padding: 16px 24px; gap: 4px; display: none;
    box-shadow: var(--shadow-lg);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 14px 16px; }
  .hero-media { grid-template-columns: 1fr; }
  .hero-media .frame { height: 220px; }
  .hero-media .frame:first-child { display: none; }
  .search-row { grid-template-columns: 1fr; }
  .swap { transform: rotate(90deg); }
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .app-main { padding: 24px 18px; }
  .auth-split { grid-template-columns: 1fr; }
  .auth-visual { display: none; }
  .summary-grid { grid-template-columns: 1fr; }
  .trip-result { grid-template-columns: 1fr; }
  .trip-buy { text-align: left; align-items: flex-start; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .grid-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-actions .btn { min-width: 100%; }
}

/* =========================== Popup d'accueil (démo) =========== */
.intro-overlay {
  position: fixed; inset: 0; z-index: 300;
  display: grid; place-items: center; padding: 20px;
  background: rgba(5, 44, 37, 0.55);
  -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px);
  animation: introFade .25s ease;
}
.intro-card {
  position: relative;
  background: #fff; border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  max-width: 460px; width: 100%;
  padding: 40px 34px 34px; text-align: center;
  animation: introPop .32s cubic-bezier(.2,.8,.25,1);
}
.intro-badge {
  display: inline-block; margin-bottom: 18px;
  background: var(--mint-100); color: var(--green-700);
  padding: 6px 16px; border-radius: 999px;
  font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em;
}
.intro-photo {
  width: 116px; height: 116px; border-radius: 50%;
  object-fit: cover; margin: 0 auto 20px; display: block;
  border: 4px solid var(--mint-400);
  box-shadow: 0 10px 26px rgba(5,44,37,.22);
}
.intro-photo.is-fallback {
  display: grid; place-items: center;
  background: var(--mint-100); color: var(--green-700); font-size: 2.6rem;
}
.intro-card h2 { font-size: 1.5rem; font-weight: 800; margin-bottom: 12px; }
.intro-card p { color: var(--ink-soft); font-size: .96rem; margin-bottom: 12px; }
.intro-card .intro-fine { font-size: .82rem; color: var(--ink-soft); opacity: .85; margin-bottom: 24px; }
.intro-card .btn { width: 100%; }
.intro-x {
  position: absolute; top: 14px; right: 16px;
  width: 34px; height: 34px; border-radius: 50%; border: 0;
  background: var(--mint-50); color: var(--ink-soft);
  font-size: 1.2rem; cursor: pointer; line-height: 1;
}
.intro-x:hover { background: var(--mint-100); }
body.intro-open { overflow: hidden; }
@keyframes introFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes introPop { from { opacity: 0; transform: translateY(16px) scale(.96); } to { opacity: 1; transform: none; } }

/* =========================== Icônes (masques SVG) ============= */
.mi {
  display: inline-block; width: 20px; height: 20px; flex-shrink: 0;
  background-color: currentColor;
  -webkit-mask: var(--ico) center / contain no-repeat;
  mask: var(--ico) center / contain no-repeat;
}
.mi-dashboard { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='7' height='7' rx='1'/%3E%3Crect x='14' y='3' width='7' height='7' rx='1'/%3E%3Crect x='14' y='14' width='7' height='7' rx='1'/%3E%3Crect x='3' y='14' width='7' height='7' rx='1'/%3E%3C/svg%3E"); }
.mi-train { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='4' width='14' height='12' rx='3'/%3E%3Cpath d='M5 11h14'/%3E%3Cpath d='M8 16l-2 4'/%3E%3Cpath d='M16 16l2 4'/%3E%3Cpath d='M9 8h6'/%3E%3C/svg%3E"); }
.mi-ticket { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 9a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2 2 2 0 0 0 0 4 2 2 0 0 1-2 2H6a2 2 0 0 1-2-2 2 2 0 0 0 0-4z'/%3E%3Cpath d='M14 7v10'/%3E%3C/svg%3E"); }
.mi-users { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M17 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='9' cy='7' r='4'/%3E%3Cpath d='M23 21v-2a4 4 0 0 0-3-3.87'/%3E%3Cpath d='M16 3.13a4 4 0 0 1 0 7.75'/%3E%3C/svg%3E"); }
.mi-invoice { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z'/%3E%3Cpath d='M14 2v6h6'/%3E%3Cpath d='M9 13h6'/%3E%3Cpath d='M9 17h6'/%3E%3C/svg%3E"); }
.mi-leaf { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 22V11'/%3E%3Cpath d='M12 11C12 7 9 4 4 4c0 4 3 7 8 7z'/%3E%3Cpath d='M12 11c0-3 3-6 8-6 0 3-3 6-8 6z'/%3E%3C/svg%3E"); }
.mi-admin { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z'/%3E%3C/svg%3E"); }
.mi-logout { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4'/%3E%3Cpath d='M16 17l5-5-5-5'/%3E%3Cpath d='M21 12H9'/%3E%3C/svg%3E"); }
.mi-sliders { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 21v-7'/%3E%3Cpath d='M4 10V3'/%3E%3Cpath d='M12 21v-9'/%3E%3Cpath d='M12 8V3'/%3E%3Cpath d='M20 21v-5'/%3E%3Cpath d='M20 12V3'/%3E%3Cpath d='M1 14h6'/%3E%3Cpath d='M9 8h6'/%3E%3Cpath d='M17 16h6'/%3E%3C/svg%3E"); }
.mi-card { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='5' width='20' height='14' rx='2'/%3E%3Cpath d='M2 10h20'/%3E%3C/svg%3E"); }
.mi-edit { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 20h9'/%3E%3Cpath d='M16.5 3.5a2.12 2.12 0 0 1 3 3L7 19l-4 1 1-4z'/%3E%3C/svg%3E"); }
.mi-chart { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 3v18h18'/%3E%3Cpath d='M7 14l4-4 3 3 5-6'/%3E%3C/svg%3E"); }
.mi-euro { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 7a7 7 0 1 0 0 10'/%3E%3Cpath d='M5 10h9'/%3E%3Cpath d='M5 14h7'/%3E%3C/svg%3E"); }
.mi-support { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 14v-2a8 8 0 0 1 16 0v2'/%3E%3Cpath d='M4 14h3v5H5a1 1 0 0 1-1-1z'/%3E%3Cpath d='M20 14h-3v5h2a1 1 0 0 1 1-1z'/%3E%3C/svg%3E"); }

/* Icônes dans la sidebar */
.side-nav .mi { width: 20px; height: 20px; }

/* Bouton icône (crayon d'édition, etc.) */
.icon-btn {
  width: 36px; height: 36px; border-radius: 10px;
  border: 1px solid var(--line); background: #fff; color: var(--green-700);
  display: inline-grid; place-items: center; cursor: pointer;
  transition: background .15s, border-color .15s;
}
.icon-btn:hover { background: var(--mint-100); border-color: var(--mint-400); }
.icon-btn .mi { width: 17px; height: 17px; }

/* =========================== Points forts (accueil) ========== */
.points {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 26px 40px;
  margin-top: 46px;
}
.point { display: flex; gap: 16px; align-items: flex-start; }
.point .pico {
  width: 48px; height: 48px; border-radius: 14px; flex-shrink: 0;
  background: var(--mint-100); color: var(--green-700);
  display: grid; place-items: center;
}
.point .pico .mi { width: 26px; height: 26px; }
.point h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 3px; }
.point p { color: var(--ink-soft); font-size: .92rem; }

/* =========================== Découvrez aussi ================= */
.discover-thumb { height: 190px; display: grid; place-items: center; }
.discover-thumb .mi { width: 58px; height: 58px; color: #fff; }
.discover-thumb .tag {
  position: absolute; margin: 16px; align-self: start; justify-self: start;
  background: rgba(255,255,255,.9); color: var(--green-800);
  font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em;
  padding: 5px 12px; border-radius: 999px;
}

/* =========================== Section application ============= */
.appcta { background: var(--green-800); color: #fff; }
.appcta-grid {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center;
}
.appcta h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; font-style: italic; }
.appcta .lead { color: var(--mint-300); margin: 14px 0 24px; max-width: 460px; }
.appcta ul { list-style: none; display: flex; flex-direction: column; gap: 10px; margin-bottom: 28px; }
.appcta li { display: flex; align-items: center; gap: 10px; color: rgba(255,255,255,.92); }
.appcta li .mi { width: 18px; height: 18px; color: var(--mint-400); }
.store-badges { display: flex; gap: 14px; flex-wrap: wrap; }
.store-badge {
  display: inline-flex; align-items: center; gap: 11px;
  background: #000; color: #fff; border: 1px solid rgba(255,255,255,.25);
  border-radius: 12px; padding: 9px 18px; transition: transform .15s, background .2s;
}
.store-badge:hover { transform: translateY(-2px); background: #111; }
.store-badge svg { width: 26px; height: 26px; fill: #fff; flex-shrink: 0; }
.store-badge .sb-sub { display: block; font-size: .62rem; text-transform: uppercase; letter-spacing: .06em; opacity: .85; line-height: 1.1; }
.store-badge .sb-main { display: block; font-size: 1.08rem; font-weight: 700; line-height: 1.15; }
.app-mock { display: grid; place-items: center; }
.app-mock img, .app-mock svg { width: 100%; max-width: 320px; }

@media (max-width: 800px) {
  .appcta-grid { grid-template-columns: 1fr; }
  .app-mock { order: -1; }
}
