/* ============================================================
   RÉGIE PRO — style.css
   Charte : Bleu-gris sombre + orange (marque/CTA) + bleu (accent
   secondaire) | Responsive mobile-first
   ============================================================ */

/* ── RESET & BASE ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  /* Couleurs principales — bleu-gris sombre (au lieu du vert forêt) */
  --bg:          #1B2430;
  --bg-surface:  #232E3B;
  --bg-card:     #2C3A49;
  --bg-hover:    #35455A;

  /* Accents — orange (marque/CTA principal) + bleu (accent secondaire,
     utilisé pour distinguer "Donneur d'ordre" de "Auto-entrepreneur") */
  --orange:      #FF8C42;
  --orange-light:#FD7700;
  --orange-dark: #CC6E2E;
  --blue:        #6FA8D8;
  --blue-light:  #93C0E6;
  --blue-dark:   #4A80B0;

  /* Vert : conservé uniquement pour les statuts fonctionnels
     (mission matchée/payée, message de succès) — plus utilisé comme
     couleur de marque ailleurs sur le site. */
  --green:       #74BC74;
  --green-light: #96CE96;
  --green-dark:  #4EA44E;

  /* Texte */
  --text:        #FFFFFF;
  --text-muted:  #FFFFFF;
  --text-faint:  #E5E5E5;

  /* Bordures */
  --border:       rgba(255, 255, 255, 0.09);
  --border-accent:rgba(255, 140, 66, 0.4);

  /* Typographie */
  --font-display: 'Barlow Condensed', sans-serif;
  --font-body:    'Barlow', sans-serif;

  /* Espacements */
  --gap-xs: 8px;
  --gap-sm: 14px;
  --gap-md: 26px;
  --gap-lg: 52px;
  --gap-xl: 80px;

  /* Rayons */
  --radius-sm: 3px;
  --radius-md: 6px;
  --radius-lg: 12px;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

/* ── TYPOGRAPHIE ── */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  line-height: 0.95;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(56px, 9vw, 108px); }
h2 { font-size: clamp(36px, 5vw, 60px); }
h3 { font-size: clamp(22px, 3vw, 32px); }

/* Titres de sous-section dans les longs formulaires (ex: "1. Nature
   du client", "2. Dirigeant ou responsable"...) -- volontairement
   discrets, pas au même gabarit que les vrais titres de page. */
.form-section-title {
  font-size: 15px;
  color: var(--orange);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

/* Libellés de champ, à l'intérieur d'une section -- distincts du
   titre de section (orange) par un bleu plus discret, pour bien
   séparer visuellement "quelle section" de "quel champ". */
.form-label-accent {
  color: var(--blue-light) !important;
}

.section-label {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--orange-light);
  margin-bottom: 12px;
  display: block;
}

.section-title { margin-bottom: 14px; }
.section-sub {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 100%;
  margin-bottom: 44px;
  line-height: 1.6;
}

/* ── BOUTONS ── */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  cursor: pointer;
  border: none;
  transition: background 0.18s, transform 0.15s, border-color 0.18s, color 0.18s;
  white-space: nowrap;
}

.btn-primary {
  background: var(--orange);
  color: #fff;
}
.btn-primary:hover {
  background: var(--orange-light);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  border: 1.5px solid var(--border-accent);
  color: var(--text);
}
.btn-outline:hover {
  border-color: var(--orange);
  color: var(--orange-light);
}

.btn-orange {
  background: var(--orange);
  color: #fff;
}
.btn-orange:hover {
  background: var(--orange-light);
  transform: translateY(-1px);
}

.btn-lg { padding: 16px 44px; font-size: 17px; }
.btn-sm { padding: 8px 18px; font-size: 13px; }

/* ── NAV ── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  background: rgba(28, 43, 30, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav-logo img {
  height: 44px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav-links a {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.18s;
}
.nav-links a:hover { color: var(--text); }

.nav-cta { display: flex; gap: 12px; align-items: center; }

/* Menu burger (mobile) */
.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}
.nav-burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.25s;
}

/* Mobile menu overlay */
.nav-mobile {
  display: none;
  position: fixed;
  top: 68px; left: 0; right: 0; bottom: 0;
  background: var(--bg);
  z-index: 99;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 36px;
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.18s;
}
.nav-mobile a:hover { color: var(--orange-light); }
.nav-mobile .btn { font-size: 18px; }

/* ── SECTION / LAYOUT ── */
.section {
  padding: var(--gap-xl) 48px;
}

.section-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.sep {
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    var(--border-accent) 25%,
    var(--border-accent) 75%,
    transparent 100%);
  margin: 0 48px;
}

/* ── HERO ── */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 116px 48px 64px;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 60% at 70% 48%, rgba(255,140,66,0.07) 0%, transparent 65%),
    repeating-linear-gradient(90deg, transparent, transparent 99px, rgba(255,255,255,0.012) 99px, rgba(255,255,255,0.012) 100px),
    repeating-linear-gradient(0deg,  transparent, transparent 99px, rgba(255,255,255,0.012) 99px, rgba(255,255,255,0.012) 100px);
  pointer-events: none;
}

.hero-watermark {
  position: absolute;
  right: -4%;
  bottom: 6%;
  width: 46%;
  max-width: 620px;
  opacity: 0.06;
  pointer-events: none;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 860px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,140,66,0.1);
  border: 1px solid rgba(255,140,66,0.28);
  color: var(--orange-light);
  padding: 6px 16px;
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 36px;
}
.hero-badge::before {
  content: '';
  width: 5px; height: 5px;
  background: var(--orange);
  border-radius: 50%;
  flex-shrink: 0;
}

.hero-title .accent { color: var(--orange-light); }
.hero-title .dim    { color: var(--text-faint); }
.hero-title {
  font-size: clamp(38px, 5.5vw, 72px);
}

.hero-title-oneline {
  font-size: clamp(22px, 2.9vw, 44px);
  white-space: normal;
}

.hero-counters {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px 18px;
  margin: 18px 0 26px;
}

.hero-counter-item {
  display: flex;
  align-items: baseline;
  gap: 7px;
  white-space: nowrap;
}

.hero-counter-number {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 22px;
  color: var(--orange-light);
}

.hero-counter-label {
  font-size: 13.5px;
  color: var(--text-muted);
}

.hero-counter-sep {
  color: var(--border-accent);
  font-size: 14px;
}

@media (max-width: 900px) {
  .hero-counter-sep { display: none; }
  .hero-counters { gap: 6px 22px; }
}

.hero-sub {
  font-size: 19px;
  color: var(--text-muted);
  max-width: 100%;
  line-height: 1.55;
  margin: 24px 0 40px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-stats {
  position: absolute;
  right: 64px;
  bottom: 80px;
  display: flex;
  flex-direction: column;
  gap: 28px;
  z-index: 1;
}
.stat-item { text-align: right; }
.stat-number {
  font-family: var(--font-display);
  font-size: 44px;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
}
.stat-number span { color: var(--orange); }
.stat-label {
  font-size: 11px;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

/* Scroll hint */
.scroll-hint {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.scroll-hint span {
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.scroll-line {
  width: 1px;
  height: 32px;
  background: linear-gradient(to bottom, var(--orange), transparent);
  animation: scrollPulse 2s ease infinite;
}

/* ── STEPS ── */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}

.step {
  background: var(--bg-surface);
  padding: 36px 30px;
  border-top: 2px solid transparent;
  transition: background 0.3s, border-color 0.3s;
}
.step:hover,
.step.step-active {
  background: var(--bg-card);
  border-top-color: var(--orange);
}

.step-num {
  font-family: var(--font-display);
  font-size: 80px;
  font-weight: 800;
  color: rgba(255,140,66,0.38);
  line-height: 1;
  margin-bottom: 12px;
  transition: color 0.3s;
}
.step:hover .step-num,
.step.step-active .step-num { color: var(--orange); }

.step-title {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 12px;
}
.step-desc {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.65;
}

.tag {
  display: inline-block;
  margin-top: 24px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: var(--radius-sm);
}
.tag-green  { background: rgba(116,188,116,0.15);  color: var(--green-light); }
.tag-orange { background: rgba(255,140,66,0.13); color: var(--orange-light); }
.tag-blue   { background: rgba(30,100,200,0.13); color: #6BA3FF; }
.tag-grey   { background: rgba(154,168,156,0.13); color: var(--text-muted); }
.tag-red    { background: rgba(220,90,70,0.13);  color: #E8917A; }

/* ── TABLEAU MISSIONS (mes-missions.php) ── */
.missions-filter {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.missions-filter label {
  font-size: 13px;
  color: var(--text-muted);
  letter-spacing: 0.03em;
}
.filter-select {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 14px;
  padding: 9px 14px;
  outline: none;
  -webkit-appearance: none;
  transition: border-color 0.18s;
}
.filter-select:focus { border-color: var(--orange); }

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-surface);
}

.missions-table {
  width: 100%;
  min-width: 920px;
  border-collapse: collapse;
  font-size: 13.5px;
}
.missions-table th {
  text-align: left;
  font-family: var(--font-display);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-card);
  white-space: nowrap;
}
.missions-table td {
  padding: 13px 16px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
  color: var(--text-muted);
  white-space: nowrap;
}
.missions-table tr:last-child td { border-bottom: none; }
.missions-table tbody tr { cursor: pointer; }
.missions-table tbody tr:hover td { background: var(--bg-hover); }

.missions-table .mission-titre a {
  color: var(--orange-light);
  font-weight: 600;
}
.missions-table .mission-titre a:hover { text-decoration: underline; }

.row-actions { display: flex; gap: 8px; position: relative; z-index: 2; }

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: transparent;
  cursor: pointer;
  color: var(--text-muted);
  transition: all 0.15s;
}
.icon-btn:hover {
  border-color: var(--border-accent);
  color: var(--text);
  background: rgba(255,140,66,0.08);
}
.icon-btn.icon-danger:hover {
  border-color: rgba(220,90,70,0.4);
  color: #E8917A;
  background: rgba(220,90,70,0.08);
}
.icon-btn svg {
  width: 15px;
  height: 15px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.6;
}

@media (max-width: 768px) {
  .missions-table { min-width: 760px; }
}

/* ── RECHERCHE DE MISSIONS (chercher-missions.php, côté AE) ── */
.recherche-filtres {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
  align-items: flex-end;
}
.recherche-filtres .form-group { margin-bottom: 0; min-width: 160px; }
.recherche-filtres label {
  font-size: 12.5px;
  color: var(--text-muted);
  display: block;
  margin-bottom: 6px;
}
input.filter-select {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 14px;
  padding: 9px 14px;
  outline: none;
  width: 100%;
  box-sizing: border-box;
}
input.filter-select:focus { border-color: var(--orange); }

.recherche-layout {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}
.recherche-carte {
  flex: 0 0 40%;
  position: sticky;
  top: 20px;
}
#carteMissions {
  height: 620px;
  width: 100%;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}
.recherche-liste {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}
.mission-recherche-card {
  transition: border-color 0.3s;
}

@media (max-width: 1000px) {
  .recherche-layout { flex-direction: column; }
  .recherche-carte { position: static; flex: none; width: 100%; }
  #carteMissions { height: 360px; }
}

/* Popups Leaflet : le thème clair par défaut jure avec le reste du
   site -- on l'habille pour rester cohérent avec la charte sombre. */
.leaflet-popup-content-wrapper,
.leaflet-popup-tip {
  background: var(--bg-card);
  color: var(--text);
}
.leaflet-popup-content { font-family: var(--font-body); font-size: 13.5px; }
.leaflet-popup-content strong { color: var(--text); }
.leaflet-popup-content a.popup-lien-mission {
  color: var(--orange-light);
  text-decoration: underline;
}
.leaflet-container a.leaflet-popup-close-button { color: var(--text-muted); }

/* ── ROLES ── */
.roles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
}

.role-card {
  background: var(--bg-surface);
  padding: 44px 42px;
  border-left: 3px solid transparent;
  transition: background 0.2s;
}
.role-card:hover { background: var(--bg-card); }
.role-card.card-do { border-left-color: var(--blue); }
.role-card.card-ae { border-left-color: var(--orange); }

.role-icon {
  width: 48px; height: 48px;
  background: rgba(255,140,66,0.1);
  border: 1px solid rgba(255,140,66,0.25);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 28px;
}
.role-icon svg {
  width: 22px; height: 22px;
  stroke: var(--orange-light);
  fill: none;
  stroke-width: 1.5;
}

.role-title {
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.role-sub   { font-size: 14px; color: var(--text-muted); margin-bottom: 28px; }
.role-list  { display: flex; flex-direction: column; gap: 12px; margin-bottom: 40px; }
.role-list li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 15px; color: var(--text-muted);
}
.role-list li::before {
  content: '→';
  color: var(--orange);
  flex-shrink: 0;
}

/* ── METIERS ── */
.metiers-grid { display: flex; flex-wrap: wrap; gap: 8px; }

.metier-tag {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: all 0.18s;
}
.metier-tag:hover {
  border-color: var(--border-accent);
  color: var(--text);
  background: rgba(255,140,66,0.07);
}

/* ── COMMISSION ── */
.commission-block {
  background: var(--bg-surface);
  border: 1px solid var(--border-accent);
  padding: 58px 52px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 80px;
  align-items: center;
}

.big-percent {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1;
  color: var(--orange-light);
}
.big-percent .num { font-size: 120px; letter-spacing: -0.04em; }
.big-percent .sym { font-size: 52px; vertical-align: super; }
.big-percent .sub {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-faint);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-top: 8px;
}

.commission-title {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 800;
  text-transform: uppercase;
  line-height: 1.05;
  margin-bottom: 16px;
}
.commission-desc {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 36px;
}

.commission-pills { display: flex; gap: 32px; flex-wrap: wrap; }
.pill-item .pill-label {
  font-size: 11px;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 4px;
}
.pill-item .pill-val {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
}
.pill-item .pill-val.green  { color: var(--blue-light); }
.pill-item .pill-val.orange { color: var(--orange); }

/* ── CTA FINAL ── */
.cta-final {
  text-align: center;
  padding: 130px 48px;
  position: relative;
  overflow: hidden;
}
.cta-final::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 70% 55% at 50% 50%, rgba(255,140,66,0.06) 0%, transparent 70%);
  pointer-events: none;
}
.cta-final-content { position: relative; z-index: 1; }

.cta-title { margin-bottom: 24px; }
.cta-title .accent { color: var(--orange-light); }
.cta-sub   { font-size: 18px; color: var(--text-muted); margin-bottom: 48px; }
.cta-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ── FOOTER ── */
footer {
  border-top: 1px solid var(--border);
  padding: 36px 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-logo img { height: 30px; width: auto; opacity: 0.8; transition: opacity 0.2s; }
.footer-logo img:hover { opacity: 1; }

.footer-links { display: flex; gap: 24px; }
.footer-links a {
  font-size: 13px;
  color: var(--text-faint);
  transition: color 0.18s;
}
.footer-links a:hover { color: var(--text); }

.footer-copy { font-size: 12px; color: var(--text-faint); opacity: 0.6; }

/* ── FORMULAIRES (pages inscription / connexion) ── */
.form-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 100px 24px 48px;
}

.form-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 40px;
  width: 100%;
  max-width: 640px;
}

.form-card h2 { margin-bottom: 8px; }
.form-sub { font-size: 15px; color: var(--text-muted); margin-bottom: 36px; }

.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.form-group input:not([type="checkbox"]):not([type="radio"]),
.form-group select,
.form-group textarea {
  width: 100%;
  background: #38495B;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  padding: 12px 16px;
  transition: border-color 0.18s;
  outline: none;
  -webkit-appearance: none;
}
.form-group input:not([type="checkbox"]):not([type="radio"]):focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--orange);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-faint); }
.form-group select option { background: var(--bg-card); }
.form-group textarea { resize: vertical; min-height: 100px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.form-footer {
  margin-top: 28px;
  text-align: center;
  font-size: 14px;
  color: var(--text-muted);
}
.form-footer a { color: var(--orange-light); }
.form-footer a:hover { text-decoration: underline; }

.form-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 24px;
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.5;
}
.form-check input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--orange);
  flex-shrink: 0;
}
.form-check a { color: var(--orange-light); }
.form-check a:hover { text-decoration: underline; }

.form-alert {
  border-radius: var(--radius-md);
  padding: 14px 18px;
  font-size: 14px;
  margin-bottom: 24px;
  line-height: 1.5;
}
.form-alert-error {
  background: rgba(220, 90, 70, 0.12);
  border: 1px solid rgba(220, 90, 70, 0.35);
  color: #F2A896;
}
.form-alert-error ul { margin: 6px 0 0 18px; padding: 0; }
.form-alert-success {
  background: rgba(255, 140, 66, 0.12);
  border: 1px solid var(--border-accent);
  color: var(--orange-light);
}

.field-error {
  color: #E8917A;
  font-size: 12.5px;
  margin-top: 6px;
}

.form-honeypot { position: absolute; left: -9999px; top: -9999px; }

.role-switch {
  text-align: center;
  margin-bottom: 32px;
  font-size: 14px;
  color: var(--text-muted);
}
.role-switch a { color: var(--orange-light); font-weight: 600; }
.role-switch a:hover { text-decoration: underline; }

.dashboard-burger {
  display: none;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
}
.dashboard-burger button {
  display: flex;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}
.dashboard-burger button span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
}
.dashboard-burger img { height: 28px; }

.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 95;
}
.sidebar-overlay.open { display: block; }

/* ── DASHBOARD (structure générale) ── */
.dashboard {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: 100vh;
}

.sidebar {
  background: var(--bg-surface);
  border-right: 1px solid var(--border);
  padding: 24px 0;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}

.sidebar-logo {
  padding: 8px 24px 24px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}
.sidebar-logo img { height: 32px; }
.badge-role { font-size: 11px; letter-spacing: 0.03em; }

.badge-role-mobile {
  font-size: 11px;
  margin-left: auto;
}

/* Les h1/h2 globaux (clamp jusqu'à 108px) sont dimensionnés pour la
   landing page. Dans le dashboard, un titre de page doit rester un
   titre de page, pas un titre d'accroche. */
.main-content h1 { font-size: clamp(24px, 2.6vw, 34px); line-height: 1.1; }
.main-content h2 { font-size: clamp(19px, 2vw, 24px); line-height: 1.15; margin-bottom: 4px; }

.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  transition: background 0.15s, color 0.15s;
}
.sidebar-nav a:hover,
.sidebar-nav a.active {
  background: rgba(255,140,66,0.1);
  color: var(--text);
}
.sidebar-nav a.active { border-left: 2px solid var(--orange); }

.main-content {
  padding: 40px 48px;
  overflow-y: auto;
}

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeLeft {
  from { opacity: 0; transform: translateX(20px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; }
  50%       { opacity: 1; }
}

.anim-up   { opacity: 0; animation: fadeUp  0.55s ease forwards; }
.anim-left { opacity: 0; animation: fadeLeft 0.55s ease forwards; }
.anim-delay-1 { animation-delay: 0.15s; }
.anim-delay-2 { animation-delay: 0.30s; }
.anim-delay-3 { animation-delay: 0.45s; }
.anim-delay-4 { animation-delay: 0.60s; }

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .commission-block {
    grid-template-columns: 1fr;
    padding: 48px 36px;
    gap: 32px;
  }
  .big-percent .num { font-size: 90px; }
}

@media (max-width: 768px) {
  :root { --gap-xl: 64px; }

  .nav { padding: 0 20px; }
  .nav-links,
  .nav-cta { display: none; }
  .nav-burger { display: flex; }

  .hero { padding: 100px 20px 60px; }
  .hero-stats { display: none; }
  .scroll-hint { display: none; }

  .section { padding: var(--gap-xl) 20px; }
  .sep { margin: 0 20px; }

  h1 { font-size: clamp(44px, 12vw, 72px); }
  h2 { font-size: clamp(30px, 8vw, 48px); }

  .steps  { grid-template-columns: 1fr; }
  .roles  { grid-template-columns: 1fr; }

  .role-card { padding: 36px 28px; }

  .commission-block { grid-template-columns: 1fr; padding: 36px 24px; gap: 24px; }
  .big-percent .num { font-size: 80px; }

  .cta-final { padding: 80px 20px; }
  .cta-buttons { flex-direction: column; align-items: center; }

  footer { padding: 28px 20px; flex-direction: column; align-items: flex-start; }

  .form-card { padding: 32px 24px; }
  .form-row  { grid-template-columns: 1fr; }

  .dashboard { grid-template-columns: 1fr; }
  .sidebar {
    display: block;
    position: fixed;
    left: 0; top: 0;
    width: 260px;
    transform: translateX(-100%);
    transition: transform 0.2s ease;
    z-index: 100;
  }
  .sidebar.open { transform: translateX(0); }
  .dashboard-burger {
    display: flex;
    position: sticky;
    top: 0;
    z-index: 90;
  }
  .main-content { padding: 24px 20px; }
}

@media (min-width: 769px) {
  .dashboard-burger { display: none; }
}

@media (max-width: 420px) {
  .btn-lg { width: 100%; text-align: center; }
}

/* Boutons du hero (Entreprise / Auto-entrepreneur / Connexion) --
   restent sur UNE seule ligne même sur petit mobile, en se
   compressant plutôt qu'en s'empilant (le texte peut passer sur 2
   lignes dans chaque bouton si besoin, jamais de débordement). */
@media (max-width: 480px) {
  .hero-actions {
    flex-wrap: nowrap;
    gap: 6px;
  }
  .hero-actions .btn {
    flex: 1;
    width: auto;
    padding: 10px 6px;
    font-size: 11px;
    line-height: 1.25;
    white-space: normal;
    text-align: center;
  }
}


/* ================================================================
   CONTENU DE CONTRAT : titres en gras, texte justifié
   ================================================================ */
.contrat-contenu h2, .contrat-contenu h3 { font-weight: 700; }
.contrat-contenu p { text-align: justify; }

/* Pied de page du contrat (coordonnées légales de l'entreprise) --
   invisible à l'écran, affiché uniquement à l'impression, répété en
   bas de chaque page copiée depuis l'annexe. */
.pied-de-page-contrat {
  display: none;
}
@media print {
  .pied-de-page-contrat {
    display: block;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    font-size: 10px;
    color: #555;
    text-align: center;
    border-top: 1px solid #ccc;
    padding-top: 4px;
    background: #fff;
  }
}

/* ================================================================
   IMPRESSION / EXPORT PDF NAVIGATEUR
   Aucune règle d'impression n'existait avant -- le navigateur
   imprimait le tableau de bord tel quel (sidebar sombre, boutons,
   fond sombre). On masque tout ce qui n'est pas le contenu utile et
   on repasse en clair pour l'impression.
   ================================================================ */
@media print {
  .sidebar, .dashboard-burger, .sidebar-overlay, .no-print { display: none !important; }
  .dashboard { display: block !important; min-height: 0; }
  .main-content { padding: 0; overflow: visible; }
  body, .main-content, .form-card {
    background: #fff !important;
    color: #000 !important;
    box-shadow: none !important;
    border: none !important;
  }
  /* Le plafond de hauteur + scroll servait à l'affichage écran avant
     signature -- à l'impression il coupait le contrat après 600px. */
  .contrat-contenu { max-height: none !important; overflow: visible !important; }
  .contrat-contenu * { color: #000 !important; }
  a { color: #000 !important; text-decoration: none !important; }
}
