/* Huilerie — design sans framework */
:root {
  --accent: #5b7c2a;
  --accent-dark: #3e5a1d;
  --accent-soft: #eef3e6;
  --bg: #f4f6f1;
  --surface: #ffffff;
  --text: #2b2f26;
  --muted: #6b7264;
  --border: #d8ddd2;
  --danger: #b23b2e;
  --success: #3f7d3a;
  --amber: #b98900;
  --blue: #2f5f9e;
  --violet: #6b4fa0;
  --radius: 8px;
  --shadow: 0 1px 3px rgba(40, 50, 30, 0.08);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  color: var(--text);
  background: var(--bg);
}
a { color: var(--accent-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
h1 { font-size: 22px; margin: 0 0 12px; color: var(--accent-dark); }
h2 { font-size: 16px; margin: 0 0 10px; color: var(--accent-dark); }
h3 { font-size: 14px; margin: 12px 0 8px; }
.muted { color: var(--muted); }
.mt { margin-top: 16px; }
.inline-form { display: inline-block; margin: 0; }
.empty { text-align: center; color: var(--muted); padding: 18px !important; }

/* Layout */
.app { display: flex; min-height: 100vh; }
.app-anon .content-standalone { margin: 0 auto; max-width: 720px; padding: 40px 16px; }
.sidebar {
  width: 230px; flex: 0 0 230px;
  background: var(--accent-dark);
  color: #eef3e6;
  display: flex; flex-direction: column;
}
.sidebar-brand {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  padding: 14px; font-weight: 700; font-size: 15px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.sidebar-brand img { max-height: 64px; max-width: 100%; object-fit: contain; }
.sidebar-nav { flex: 1; overflow-y: auto; padding: 8px 0 20px; }
.nav-section {
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em;
  color: rgba(255,255,255,0.55); padding: 14px 16px 4px;
}
.sidebar-nav a {
  display: block; padding: 8px 16px; color: #eef3e6; font-size: 13.5px;
}
.sidebar-nav a:hover { background: rgba(255,255,255,0.08); text-decoration: none; }
.sidebar-nav a.active { background: var(--accent); font-weight: 600; }
.main { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; justify-content: space-between; align-items: center;
  background: var(--surface); border-bottom: 1px solid var(--border);
  padding: 10px 20px; box-shadow: var(--shadow);
}
.topbar-title { font-weight: 700; color: var(--accent-dark); }
.topbar-user { display: flex; align-items: center; gap: 10px; }
.user-name { font-weight: 600; }
.content { padding: 20px; max-width: 1280px; width: 100%; }

/* Page head / filters */
.page-head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }
.page-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.filter-bar { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; }
.filter-bar .field { margin: 0; min-width: 160px; }

/* Cards & KPI */
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow);
}
.card.notice { border-left: 4px solid var(--accent); }
.kpi-grid {
  display: grid; gap: 12px;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}
.kpi { padding: 14px 16px; }
.kpi-label { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }
.kpi-value { font-size: 20px; font-weight: 700; color: var(--accent-dark); margin: 4px 0; }
.kpi-sub { font-size: 12px; color: var(--muted); }

/* Tables */
.table { width: 100%; border-collapse: collapse; background: var(--surface); }
.table th, .table td { padding: 9px 10px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
.table thead th { background: var(--accent-soft); color: var(--accent-dark); font-size: 12px; text-transform: uppercase; letter-spacing: 0.03em; }
.table tbody tr:nth-child(even) { background: #fafbf8; }
.table tbody tr:hover { background: var(--accent-soft); }
.actions { white-space: nowrap; }
.actions .btn { margin: 1px 2px 1px 0; }
.card .table { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }

/* Badges */
.badge {
  display: inline-block; padding: 2px 8px; border-radius: 999px;
  font-size: 11.5px; font-weight: 600; line-height: 1.6;
  background: #e6e9e1; color: var(--text);
}
.badge.en_attente { background: #fdf3d7; color: var(--amber); }
.badge.en_cours { background: #dfe9f8; color: var(--blue); }
.badge.traite { background: #ece4f8; color: var(--violet); }
.badge.termine { background: #dff0dc; color: var(--success); }
.badge.annule { background: #f8e0dc; color: var(--danger); }
.badge.ok { background: #dff0dc; color: var(--success); }
.badge.ko { background: #f8e0dc; color: var(--danger); }
.badge.role, .badge.cat { background: var(--accent-soft); color: var(--accent-dark); }
.badge.palox { background: #e8ebe4; color: #4a5240; margin-right: 4px; font-family: ui-monospace, monospace; }

/* Forms */
.form .field, .field { margin-bottom: 12px; }
.field label { display: block; font-size: 12.5px; font-weight: 600; margin-bottom: 4px; color: var(--accent-dark); }
input[type="text"], input[type="password"], input[type="number"], input[type="date"],
input[type="time"], input[type="tel"], select, textarea {
  width: 100%; padding: 8px 10px; border: 1px solid var(--border); border-radius: 6px;
  font: inherit; background: #fff; color: var(--text);
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent); }
.help { font-size: 12px; color: var(--muted); margin: 4px 0 0; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px 16px; }
.span-2 { grid-column: span 2; }
.form-actions { margin-top: 16px; display: flex; gap: 8px; }
.checkbox-label { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 500 !important; color: var(--text) !important; }
.checkbox-label input { width: auto; }
.input-sm { width: auto; min-width: 110px; display: inline-block; padding: 5px 8px; }
.input-xs { width: 70px; padding: 4px 6px; }
.row-form { display: inline-flex; gap: 6px; align-items: center; margin: 2px 8px 2px 0; flex-wrap: wrap; }

/* Tableau utilisateurs : la colonne Actions doit pouvoir se plier
   (sinon white-space:nowrap la pousse hors du viewport à droite) */
.users-table .actions { white-space: normal; min-width: 250px; }
.users-table .actions .row-form { display: flex; width: 100%; margin: 0 0 6px; }
.users-table .actions .row-form:last-child { margin-bottom: 0; }

/* Buttons */
.btn {
  display: inline-block; padding: 8px 14px; border-radius: 6px;
  border: 1px solid var(--accent); background: var(--surface); color: var(--accent-dark);
  font: inherit; font-weight: 600; cursor: pointer; text-align: center;
}
.btn:hover { background: var(--accent-soft); text-decoration: none; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); color: #fff; }
.btn-danger { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn-danger:hover { background: #8f2e23; color: #fff; }
.btn-ghost { background: transparent; border-color: var(--border); color: var(--text); }
.btn-ghost:hover { background: var(--accent-soft); }
.btn-sm { padding: 5px 10px; font-size: 12.5px; }
.btn-xs { padding: 0 7px; font-size: 14px; line-height: 1.6; }
.btn-block { display: block; width: 100%; }

/* Tabs */
.tabs { display: flex; gap: 4px; border-bottom: 2px solid var(--border); }
.tab {
  padding: 9px 18px; border: 1px solid var(--border); border-bottom: none;
  border-radius: var(--radius) var(--radius) 0 0; background: #ecefe8; color: var(--muted);
  font-weight: 600;
}
.tab:hover { background: var(--accent-soft); text-decoration: none; }
.tab.active { background: var(--surface); color: var(--accent-dark); border-color: var(--accent); border-bottom: 2px solid var(--surface); margin-bottom: -2px; }

/* Flashes */
.flash { padding: 10px 14px; border-radius: var(--radius); margin-bottom: 10px; font-weight: 500; }
.flash.success { background: #dff0dc; color: var(--success); border: 1px solid #b7dcb2; }
.flash.error { background: #f8e0dc; color: var(--danger); border: 1px solid #e6b3ab; }
.flash.info { background: #dfe9f8; color: var(--blue); border: 1px solid #b5c9e8; }

/* Création rapide (dossier) & logo */
.inline-row { display: flex; gap: 8px; align-items: center; }
.inline-row > select, .inline-row > input { flex: 1; min-width: 0; }
.quick-party { border-left: 4px solid var(--accent); }
.qp-error { color: var(--danger); font-size: 12.5px; margin: 6px 0 0; }
.logo-preview { max-height: 120px; border: 1px solid var(--border); border-radius: 6px; padding: 4px; background: #fff; display: block; margin-bottom: 8px; }

/* Detail grids */
.detail-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px 20px; }
.detail-grid .span-2 { grid-column: span 2; }
.dt-label { display: block; font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); margin-bottom: 2px; }
.dt-value { font-weight: 600; }

/* Quick links */
.quick-links { display: flex; gap: 8px; flex-wrap: wrap; }

/* Position form in queue */
.position-form { display: inline-flex; gap: 4px; align-items: center; }

/* Error page */
.error-page { text-align: center; padding: 60px 20px; }
.error-page h1 { font-size: 28px; }

/* Login */
.login-body {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(160deg, var(--accent-dark), var(--accent) 60%, #7a9c45);
}
.login-card {
  background: var(--surface); border-radius: 12px; padding: 36px 32px;
  width: 100%; max-width: 400px; box-shadow: 0 12px 40px rgba(0,0,0,0.25);
}
.login-logo { display: block; max-height: 128px; width: auto; margin: 0 auto 12px; }
.login-title { text-align: center; margin: 0 0 4px; color: var(--accent-dark); font-size: 20px; }
.login-subtitle { text-align: center; margin: 0 0 18px; color: var(--muted); font-weight: 500; font-size: 15px; }
.login-back { text-align: center; margin: 16px 0 0; font-size: 13px; }

/* Landing publique style site vitrine (avant connexion, FR/EN) */
.lp-body { min-height: 100vh; background: var(--bg); }

/* Barre de navigation — fond clair (logo vert lisible) */
.lp-nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px; flex-wrap: wrap; padding: 12px 26px;
  background: var(--surface); position: sticky; top: 0; z-index: 20;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 12px rgba(40,50,30,0.10);
}
.lp-brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 15.5px; color: var(--accent-dark); }
.lp-brand:hover { text-decoration: none; }
.lp-brand img { max-height: 48px; max-width: 170px; object-fit: contain; }
.lp-menu { display: flex; gap: 4px; flex-wrap: wrap; }
.lp-menu a {
  color: var(--text); font-size: 12px; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.06em; padding: 7px 10px; border-radius: 6px;
}
.lp-menu a:hover { background: var(--accent-soft); text-decoration: none; color: var(--accent-dark); }
.lp-nav-right { display: flex; align-items: center; gap: 10px; }
.lp-login { background: var(--accent); border-color: var(--accent); color: #fff; }
.lp-login:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; }
.lang-switch { display: inline-flex; gap: 4px; align-items: center; font-weight: 600; }
.lang-switch a {
  padding: 4px 9px; border-radius: 6px; border: 1px solid var(--border);
  color: var(--text); font-size: 12.5px;
}
.lang-switch a:hover { text-decoration: none; background: var(--accent-soft); color: var(--accent-dark); }
.lang-switch a.active { background: var(--accent-dark); color: #fff; border-color: var(--accent-dark); }

/* Héros plein écran (type site vitrine) */
.lp-hero {
  position: relative; overflow: hidden; text-align: center; color: #fff;
  padding: 92px 20px 84px;
  background:
    radial-gradient(ellipse at 18% 25%, rgba(255,255,255,0.12), transparent 48%),
    radial-gradient(ellipse at 82% 75%, rgba(255,255,255,0.07), transparent 45%),
    repeating-linear-gradient(115deg, rgba(0,0,0,0.05) 0 14px, transparent 14px 42px),
    linear-gradient(160deg, #2c4013, var(--accent) 58%, #7a9c45);
}
.lp-hero-inner { max-width: 900px; margin: 0 auto; }
.lp-hero-kicker {
  font-size: 13px; text-transform: uppercase; letter-spacing: 0.22em;
  color: rgba(255,255,255,0.8); margin: 0 0 18px;
}
.lp-hero h1 {
  font-family: Georgia, "Times New Roman", serif; color: #fff;
  font-size: clamp(32px, 6vw, 54px); letter-spacing: 0.06em;
  margin: 0 auto 18px; text-transform: uppercase;
}
.lp-hero-sub { max-width: 640px; margin: 0 auto 30px; font-size: 16.5px; line-height: 1.7; color: rgba(255,255,255,0.92); }
.lp-hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.lp-btn-hero { background: #fff; border-color: #fff; color: var(--accent-dark); font-weight: 700; padding: 11px 30px; font-size: 15px; }
.lp-btn-hero:hover { background: var(--accent-soft); }
.lp-btn-outline { background: transparent; border-color: rgba(255,255,255,0.75); color: #fff; padding: 11px 30px; font-size: 15px; }
.lp-btn-outline:hover { background: rgba(255,255,255,0.14); color: #fff; }
.lp-hero-badge {
  position: absolute; right: 34px; bottom: 26px;
  width: 92px; height: 92px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: radial-gradient(circle at 32% 30%, #f4d77a, #c9971f 62%, #9a7312);
  border: 3px solid rgba(255,255,255,0.65);
  box-shadow: 0 8px 24px rgba(0,0,0,0.35);
  color: #4a3708; font-family: Georgia, serif; font-size: 22px; letter-spacing: 0.08em;
}

/* Sections */
.lp-section { padding: 64px 20px; }
.lp-section.lp-band { background: var(--surface); }
.lp-split { max-width: 1040px; margin: 0 auto; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 44px; align-items: center; }
.lp-split.lp-reverse .lp-text { order: 2; }
.lp-split.lp-reverse .lp-visual { order: 1; }
.lp-kicker {
  font-size: 12px; text-transform: uppercase; letter-spacing: 0.18em;
  color: var(--accent); font-weight: 700; margin: 0 0 8px;
}
.lp-text h2, .lp-head h2 {
  font-family: Georgia, "Times New Roman", serif; font-size: 30px;
  margin: 0 0 16px; color: var(--accent-dark);
}
.lp-text p { line-height: 1.75; color: var(--text); margin: 0 0 14px; font-size: 15px; }
.lp-text .btn { margin-top: 6px; }
.lp-visual {
  display: flex; align-items: center; justify-content: center;
  border-radius: 16px; min-height: 300px; padding: 26px;
  background:
    radial-gradient(circle at 75% 20%, rgba(255,255,255,0.5), transparent 45%),
    linear-gradient(150deg, #f2f6ea, #dfe9cf);
  border: 1px solid var(--border);
}
.lp-visual--warm { background: radial-gradient(circle at 25% 25%, rgba(255,255,255,0.55), transparent 50%), linear-gradient(150deg, #f7f3e3, #e8dcbc); }
.lp-svg { width: min(100%, 300px); height: auto; }
.lp-visual--flip .lp-svg { transform: scaleX(-1); }

/* Produits */
.lp-head { max-width: 760px; margin: 0 auto 36px; text-align: center; }
.lp-head p { color: var(--muted); line-height: 1.65; margin: 0; }
.lp-products-grid { max-width: 680px; margin: 0 auto; display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.lp-product {
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
  padding: 22px 18px; text-align: center; box-shadow: var(--shadow);
}
.lp-swatch {
  width: 58px; height: 58px; border-radius: 50%; margin: 0 auto 14px;
  border: 4px solid var(--accent-soft);
}
.lp-swatch--1 { background: linear-gradient(140deg, #b9c957, #7f9a2a); }
.lp-swatch--2 { background: linear-gradient(140deg, #e3ce63, #c3a52c); }
.lp-swatch--3 { background: linear-gradient(140deg, #d3a637, #a8771b); }
.lp-swatch--4 { background: linear-gradient(140deg, #cfc39b, #a89a6d); }
.lp-product h3 { margin: 0 0 8px; font-size: 14.5px; color: var(--accent-dark); }
.lp-product p { margin: 0; font-size: 13px; line-height: 1.55; color: var(--muted); }

/* Médailles / qualité */
.lp-medals { max-width: 900px; margin: 34px auto 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; justify-items: center; }
.lp-medal-circle {
  width: 130px; height: 130px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; text-align: center;
  padding: 14px; font-size: 12.5px; font-weight: 700; line-height: 1.35;
  background: radial-gradient(circle at 32% 28%, #f6dd8d, #cf9f27 60%, #9c7414);
  border: 4px solid #fff; box-shadow: 0 8px 22px rgba(0,0,0,0.22);
  color: #4a3708;
}

/* Bandeau CTA / contact */
.lp-cta {
  background:
    repeating-linear-gradient(115deg, rgba(0,0,0,0.05) 0 14px, transparent 14px 42px),
    linear-gradient(160deg, #2c4013, var(--accent-dark) 55%, var(--accent));
  color: #fff; text-align: center; padding: 60px 20px;
}
.lp-cta h2 { font-family: Georgia, serif; color: #fff; font-size: 30px; margin: 0 0 12px; }
.lp-cta > p { max-width: 560px; margin: 0 auto 22px; color: rgba(255,255,255,0.9); line-height: 1.7; }
.lp-cta-contact { margin: 24px auto 0; font-size: 14px; color: rgba(255,255,255,0.85); max-width: 480px; }

/* Pied de page */
.lp-footer { background: #23301a; color: rgba(255,255,255,0.8); padding: 40px 24px 24px; font-size: 13.5px; }
.lp-footer-inner { max-width: 1040px; margin: 0 auto; display: flex; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.lp-footer-brand { max-width: 420px; }
.lp-footer-brand strong { display: block; color: #fff; font-size: 15px; margin-bottom: 8px; }
.lp-footer-brand p { margin: 0; line-height: 1.6; }
.lp-footer-links { display: flex; flex-direction: column; gap: 7px; }
.lp-footer-links a { color: rgba(255,255,255,0.8); }
.lp-footer-links a:hover { color: #fff; }
.lp-footer-bottom {
  max-width: 1040px; margin: 26px auto 0; padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.14);
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  font-size: 12.5px; color: rgba(255,255,255,0.6);
}
.lp-footer-bottom a { color: rgba(255,255,255,0.85); }

/* Page document publique (politique de confidentialité) */
.lp-doc { max-width: 860px; margin: 0 auto; padding: 46px 20px; }
.lp-doc-card {
  background: var(--surface); border-radius: 14px; padding: 36px 34px;
  box-shadow: 0 10px 34px rgba(40,50,30,0.1); border: 1px solid var(--border);
}
.lp-doc-card h1 { font-family: Georgia, serif; margin-top: 0; }
.lp-doc-updated { color: var(--muted); font-size: 13px; margin-top: -6px; }
.lp-doc-card h2 { font-size: 16.5px; margin: 26px 0 8px; }
.lp-doc-card p { line-height: 1.75; margin: 0 0 12px; }
.lp-doc-back { margin-top: 26px !important; font-size: 13.5px; }

/* Section contact */
.lp-flashes { max-width: 1040px; margin: 14px auto 0; padding: 0 20px; }
.lp-contact .lp-inner { max-width: 1040px; margin: 0 auto; }
.lp-contact .lp-kicker { text-align: center; }
.lp-contact-title {
  font-family: Georgia, "Times New Roman", serif; font-size: 30px;
  text-align: center; margin: 0 0 6px; color: var(--accent-dark);
}
.lp-contact-intro { text-align: center; color: var(--muted); margin: 0 0 34px; font-size: 15.5px; }
.lp-contact-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 26px; align-items: start; }
.lp-contact-form-card, .lp-contact-info {
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
  padding: 26px; box-shadow: var(--shadow);
}
.lp-contact-form-card h3, .lp-contact-info h3 {
  margin: 0 0 4px; font-size: 14px; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--accent-dark);
}
.lp-contact-form-sub { margin: 0 0 16px; color: var(--muted); font-size: 13.5px; }
.lp-contact-info p { line-height: 1.7; margin: 0; }
.lp-contact-info h3:not(:first-child) { margin-top: 22px; }
.lp-contact-loc { font-weight: 600; }
.lp-contact-info .btn { margin-top: 12px; }

/* Sale total */
.sale-total { font-size: 16px; margin: 12px 0; padding: 10px 12px; background: var(--accent-soft); border-radius: var(--radius); color: var(--accent-dark); }

/* Responsive */
@media (max-width: 800px) {
  .app { flex-direction: column; }
  .sidebar { width: 100%; flex: 0 0 auto; }
  .sidebar-nav { display: flex; flex-wrap: wrap; padding: 6px; }
  .nav-section { width: 100%; }
  .sidebar-nav a { padding: 8px 10px; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .span-2, .detail-grid .span-2 { grid-column: span 1; }
  .content { padding: 12px; }
  .table { display: block; overflow-x: auto; }
  .lp-split { grid-template-columns: 1fr; }
  .lp-split.lp-reverse .lp-text, .lp-split.lp-reverse .lp-visual { order: initial; }
  .lp-products-grid { grid-template-columns: 1fr 1fr; }
  .lp-medals { grid-template-columns: 1fr; }
  .lp-hero { padding: 64px 18px 58px; }
  .lp-hero-badge { display: none; }
  .lp-menu { display: none; }
  .lp-section { padding: 44px 16px; }
  .lp-contact-grid { grid-template-columns: 1fr; }
}

/* Print */
@media print {
  .sidebar, .topbar, .toolbar, .page-actions, .form-actions, .flash, .btn, form .btn { display: none !important; }
  .app { display: block; }
  .content { padding: 0; max-width: none; }
  .card { box-shadow: none; border: none; padding: 0; }
  body { background: #fff; }
}
.print-sheet { max-width: 210mm; margin: 0 auto; padding: 15mm; background: #fff; }
.signature-box { border: 1px solid #444; height: 60px; width: 220px; margin: 0 auto 6px; }

/* Popine de confirmation (formulaire de contact) */
.modal-overlay {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(0, 0, 0, 0.5);
  display: flex; align-items: center; justify-content: center;
}
.modal {
  background: var(--surface); border-radius: 10px;
  padding: 28px 32px; max-width: 420px; width: calc(100% - 40px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
  text-align: center;
}
.modal h2 { margin: 0 0 10px; }
.modal p { margin: 0 0 18px; color: var(--muted); line-height: 1.5; }

/* Section flux (tableau de bord) */
.flow {
  display: flex; align-items: stretch; justify-content: center;
  gap: 10px; flex-wrap: wrap; margin: 4px 0 18px;
}
.flow-step {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  flex: 1 1 140px; max-width: 220px; min-width: 140px;
  padding: 16px 12px; text-align: center; text-decoration: none;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow);
  color: var(--text); transition: transform .15s, box-shadow .15s, border-color .15s;
}
.flow-step:hover {
  transform: translateY(-2px); border-color: var(--accent);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1); text-decoration: none;
}
.flow-step svg { width: 44px; height: 44px; margin-bottom: 2px; }
.flow-step--wait svg { color: var(--muted); }
.flow-step--mill svg { color: var(--accent); }
.flow-step--done svg { color: var(--accent-dark); }
.flow-step .flow-dot { fill: var(--accent); }
.flow-step--wait .flow-dot { fill: #c9a227; }
.flow-step .flow-window { fill: var(--accent-soft); }
.flow-step .flow-chimney { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.flow-step .flow-check { stroke: var(--accent-dark); }
.flow-step svg circle:not(.flow-dot),
.flow-step svg path:not(.flow-chimney):not(.flow-check) { fill: currentColor; }
.flow-step--wait svg path:not(:last-child),
.flow-step--done svg path:not(.flow-check) { fill: currentColor; opacity: .85; }
.flow-arrow { display: flex; align-items: center; color: var(--muted); }
.flow-arrow svg { width: 28px; height: 28px; }
.flow-count { font-size: 26px; font-weight: 700; color: var(--accent-dark); line-height: 1.1; }
.flow-label { font-weight: 600; color: var(--text); font-size: 14px; }
.flow-sub { font-size: 12px; color: var(--muted); }
@media (max-width: 640px) {
  .flow { flex-direction: column; align-items: stretch; }
  .flow-step { max-width: none; }
  .flow-arrow { justify-content: center; transform: rotate(90deg); height: 28px; }
}
