:root {
  --vert-bouteille: #1B4332;
  --vert-bouteille-clair: #e8f0ed;
  --vert-bouteille-pale: #f0f7f3;
  --bleu-nuit: #2C3E50;
  --bleu-nuit-clair: #eaf0f5;
  --accent: #e67e22;
  --accent-clair: #fef3e8;
  --rouge: #c62828;
  --rouge-clair: #ffebee;
  --gris-clair: #F8F9FA;
  --blanc: #ffffff;
  --text: #333333;
  --text-muted: #6b7280;
  --text-light: #9ca3af;
  --border: #dee2e6;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.04);
  --shadow: 0 4px 12px rgba(0,0,0,.06);
  --shadow-lg: 0 8px 24px rgba(0,0,0,.08);
  --radius: 8px;
  --radius-lg: 12px;
  --radius-xl: 20px;
  --transition: .2s ease;
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  padding: 0;
  font-family: var(--font);
  background: var(--gris-clair);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  width: 100%;
}

a { color: var(--bleu-nuit); text-decoration: none; transition: color var(--transition); }
a:hover { text-decoration: underline; color: var(--accent); }

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 { color: var(--bleu-nuit); font-weight: 700; margin-top: 0; line-height: 1.25; }
h1 { font-size: 1.75rem; margin-bottom: 0.5rem; }
h2 { font-size: 1.25rem; margin-top: 1.5rem; margin-bottom: 0.5rem; border-bottom: 1px solid var(--border); padding-bottom: 0.25rem; }
h3 { font-size: 1.1rem; margin-top: 1.25rem; }

p { margin: 0.5rem 0; }
strong { font-weight: 600; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: none;
  border-radius: var(--radius);
  padding: 10px 20px;
  font-weight: 600;
  font-size: .875rem;
  cursor: pointer;
  transition: all var(--transition);
  line-height: 1.2;
  text-decoration: none;
}
.btn:hover { transform: translateY(-1px); text-decoration: none; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.btn-sm { padding: 6px 14px; font-size: .75rem; }
.btn-lg { padding: 14px 32px; font-size: 1rem; }
.btn-primary { background: var(--vert-bouteille); color: var(--blanc); }
.btn-primary:hover { background: #143028; color: var(--blanc); }
.btn-outline { background: transparent; color: var(--vert-bouteille); border: 2px solid var(--vert-bouteille); }
.btn-outline:hover { background: var(--vert-bouteille); color: var(--blanc); }
.btn-accent { background: var(--accent); color: var(--blanc); }
.btn-accent:hover { background: #d35400; }
.btn-danger { background: var(--rouge); color: var(--blanc); }
.btn-danger:hover { background: #b71c1c; }

/* ===== CARDS ===== */
.card {
  background: var(--blanc);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), transform var(--transition);
}
.card:hover { box-shadow: var(--shadow); }
.card-body { padding: 24px; }
.card-dark { background: var(--vert-bouteille); color: var(--blanc); border-radius: var(--radius-lg); }
.card-dark .card-body { padding: 24px; }

/* ===== FORM ===== */
input, select, textarea {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 14px;
  font-size: .875rem;
  background: var(--blanc);
  color: var(--text);
  transition: border-color var(--transition), box-shadow var(--transition);
  width: 100%;
  font-family: var(--font);
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--vert-bouteille);
  box-shadow: 0 0 0 3px rgba(27,67,50,.1);
}
input::placeholder, textarea::placeholder { color: var(--text-light); }

/* ===== TABLE ===== */
.table-wrap { overflow-x: auto; border-radius: var(--radius-lg); background: var(--blanc); border: 1px solid var(--border); }
table { width: 100%; border-collapse: collapse; }
th { background: var(--bleu-nuit-clair); color: var(--bleu-nuit); padding: 12px 16px; text-align: left; font-weight: 600; font-size: .875rem; }
td { padding: 12px 16px; border-bottom: 1px solid var(--border); font-size: .875rem; }
tr:last-child td { border-bottom: none; }
tr:hover td { background: var(--vert-bouteille-pale); }

/* ===== BADGE ===== */
.badge { display: inline-block; padding: 4px 12px; border-radius: 9999px; font-size: .75rem; font-weight: 600; }
.badge-green { background: var(--vert-bouteille-clair); color: var(--vert-bouteille); }
.badge-blue { background: var(--bleu-nuit-clair); color: var(--bleu-nuit); }
.badge-accent { background: var(--accent-clair); color: var(--accent); }
.badge-red { background: var(--rouge-clair); color: var(--rouge); }

/* ===== ALERT ===== */
.alert { padding: 14px 20px; border-radius: var(--radius); margin-bottom: 16px; font-size: .875rem; border: 1px solid transparent; }
.alert-error { background: var(--rouge-clair); color: var(--rouge); border-color: #ffcdd2; }
.alert-success { background: var(--vert-bouteille-clair); color: var(--vert-bouteille); border-color: #c8e6c9; }

/* ===== TOAST ===== */
.toast { position: fixed; top: 16px; right: 16px; z-index: 50; padding: 12px 20px; border-radius: var(--radius); font-size: .875rem; font-weight: 500; box-shadow: var(--shadow-lg); }
.toast-success { background: var(--vert-bouteille); color: var(--blanc); }
.toast-error { background: var(--rouge); color: var(--blanc); }

/* ===== TOGGLE ===== */
.toggle { position: relative; display: inline-flex; cursor: pointer; align-items: center; }
.toggle input { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.toggle-track { height: 20px; width: 36px; border-radius: 9999px; background: var(--border); transition: background var(--transition); }
.toggle-track::after { content: ""; position: absolute; left: 2px; top: 2px; height: 16px; width: 16px; border-radius: 9999px; background: var(--blanc); transition: transform var(--transition); }
.toggle input:checked + .toggle-track { background: var(--vert-bouteille); }
.toggle input:checked + .toggle-track::after { transform: translateX(16px); }

/* ===== LANGUAGE SWITCHER ===== */
.lang-switcher {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  margin-bottom: 16px;
}
.lang-btn {
  background: var(--blanc);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 6px 14px;
  font-size: .8rem;
  font-weight: 500;
  cursor: pointer;
  color: var(--text);
  transition: all var(--transition);
}
.lang-btn:hover { border-color: var(--vert-bouteille); color: var(--vert-bouteille); }
.lang-btn.active { background: var(--vert-bouteille); color: #fff; border-color: var(--vert-bouteille); }

/* ===== NAV ===== */
.nav-bar { background: var(--blanc); border-bottom: 1px solid var(--border); display: flex; align-items: center; height: 60px; }
.nav-link { color: var(--text); padding: 8px 16px; font-weight: 500; border-radius: var(--radius); transition: background var(--transition); }
.nav-link:hover { background: var(--vert-bouteille-clair); text-decoration: none; color: var(--vert-bouteille); }

/* ===== LAYOUT ===== */
.container,
.container-90 { width: 90%; max-width: 1400px; margin: 0 auto; padding: 0 24px; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 4px; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.gap-6 { gap: 24px; }
.grid { display: grid; }
.grid-cols-1 { grid-template-columns: repeat(1,1fr); }
.grid-cols-2 { grid-template-columns: repeat(2,1fr); }
.grid-cols-3 { grid-template-columns: repeat(3,1fr); }
.w-full { width: 100%; }
.w-auto { width: auto; }
.w-380 { width: 380px; }
.h-full { height: 100%; }
.min-h-screen { min-height: 100vh; }
.relative { position: relative; }
.fixed { position: fixed; }
.absolute { position: absolute; }
.top-0 { top: 0; }
.left-0 { left: 0; }
.right-0 { right: 0; }
.bottom-0 { bottom: 0; }
.z-10 { z-index: 10; }
.z-40 { z-index: 40; }
.z-50 { z-index: 50; }
.overflow-hidden { overflow: hidden; }
.overflow-auto { overflow: auto; }
.overflow-x-auto { overflow-x: auto; }
.hidden { display: none !important; }
.block { display: block; }
.flex-1 { flex: 1; }
.flex-initial { flex: 0 0 auto; }

/* ===== SPACING ===== */
.p-0 { padding: 0; }
.p-2 { padding: 8px; }
.p-3 { padding: 12px; }
.p-4 { padding: 16px; }
.p-6 { padding: 24px; }
.p-8 { padding: 32px; }
.px-2 { padding-left: 8px; padding-right: 8px; }
.px-3 { padding-left: 12px; padding-right: 12px; }
.px-4 { padding-left: 16px; padding-right: 16px; }
.px-6 { padding-left: 24px; padding-right: 24px; }
.py-1 { padding-top: 4px; padding-bottom: 4px; }
.py-2 { padding-top: 8px; padding-bottom: 8px; }
.py-3 { padding-top: 12px; padding-bottom: 12px; }
.py-4 { padding-top: 16px; padding-bottom: 16px; }
.py-5 { padding-top: 32px; padding-bottom: 32px; }
.py-6 { padding-top: 40px; padding-bottom: 40px; }
.pt-16 { padding-top: 64px; }
.mt-1 { margin-top: 4px; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 12px; }
.mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 24px; }
.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 12px; }
.mb-4 { margin-bottom: 16px; }
.ml-2 { margin-left: 8px; }
.ml-3 { margin-left: 12px; }
.mr-2 { margin-right: 8px; }
.mx-auto { margin-left: auto; margin-right: auto; }
.my-4 { margin-top: 16px; margin-bottom: 16px; }
.space-y-1 > * + * { margin-top: 4px; }
.space-y-2 > * + * { margin-top: 8px; }
.space-y-3 > * + * { margin-top: 12px; }
.space-y-4 > * + * { margin-top: 16px; }
.space-y-6 > * + * { margin-top: 24px; }
.space-y-8 > * + * { margin-top: 32px; }
.pb-32 { padding-bottom: 128px; }

/* ===== TEXT UTILITIES ===== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.text-xs { font-size: .75rem; }
.text-sm { font-size: .875rem; }
.text-base { font-size: 1rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.text-3xl { font-size: 1.875rem; }
.text-4xl { font-size: 2.25rem; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.uppercase { text-transform: uppercase; }
.capitalize { text-transform: capitalize; }
.tracking-wide { letter-spacing: .025em; }
.tracking-widest { letter-spacing: .1em; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ===== COLORS ===== */
.text-green { color: var(--vert-bouteille) !important; }
.text-blue { color: var(--bleu-nuit) !important; }
.text-accent { color: var(--accent) !important; }
.text-muted { color: var(--text-muted) !important; }
.text-white { color: var(--blanc) !important; }
.text-red { color: var(--rouge) !important; }
.text-title { color: var(--bleu-nuit) !important; }
.bg-white { background: var(--blanc) !important; }
.bg-light { background: var(--gris-clair) !important; }
.bg-green { background: var(--vert-bouteille) !important; color: var(--blanc) !important; }
.bg-green-light { background: var(--vert-bouteille-clair) !important; }
.bg-blue-light { background: var(--bleu-nuit-clair) !important; }
.bg-accent-light { background: var(--accent-clair) !important; }
.bg-red-light { background: var(--rouge-clair) !important; }
.bg-icon-blue { background: #e8f4fd !important; }
.bg-icon-accent { background: #fef3e7 !important; }
.opacity-50 { opacity: .5; }
.opacity-60 { opacity: .6; }
.border { border: 1px solid var(--border); }
.border-b { border-bottom: 1px solid; }
.border-t { border-top: 1px solid; }
.border-2 { border-width: 2px; }
.border-green { border-color: var(--vert-bouteille) !important; }

/* ===== RESPONSIVE GRID ===== */
@media (min-width:640px) { .sm\:grid-cols-2 { grid-template-columns: repeat(2,1fr); } }
@media (min-width:768px) { .md\:grid-cols-3 { grid-template-columns: repeat(3,1fr); } }
@media (min-width:1024px) { .lg\:grid-cols-3 { grid-template-columns: repeat(3,1fr); } .lg\:grid-cols-4 { grid-template-columns: repeat(4,1fr); } }

/* ===== DRAWER / SIDEBAR ===== */
.drawer-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.3); z-index: 50; }
.drawer { position: fixed; top: 0; left: 0; z-index: 50; display: flex; height: 100%; width: 256px; flex-direction: column; background: var(--blanc); color: var(--text); box-shadow: var(--shadow-lg); border-right: 1px solid var(--border); }
.drawer-header { display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--border); padding: 16px; }
.drawer-nav { flex: 1; padding: 16px 12px; }
.drawer-link { display: block; padding: 10px 12px; border-radius: var(--radius); font-size: .875rem; color: var(--text); transition: background var(--transition); }
.drawer-link:hover { background: var(--vert-bouteille-clair); text-decoration: none; color: var(--vert-bouteille); }
.drawer-link.active { background: var(--vert-bouteille-clair); color: var(--vert-bouteille); font-weight: 600; }
.drawer-footer { border-top: 1px solid var(--border); padding: 16px; font-size: .75rem; color: var(--text-light); }

/* ===== LANDING PAGE ===== */
.hero-section {
  background: linear-gradient(135deg, var(--vert-bouteille-clair) 0%, var(--gris-clair) 100%);
  padding: 100px 0 80px;
  position: relative;
  overflow: hidden;
}
.hero-section h1 { font-size: 2.75rem; font-weight: 800; color: var(--vert-bouteille); letter-spacing: -.5px; }
.hero-section p { font-size: 1.1rem; color: var(--text-muted); max-width: 540px; }

.feature-card {
  background: var(--blanc);
  border-radius: var(--radius-xl);
  padding: 32px 24px;
  border: 1px solid var(--border);
  height: 100%;
  transition: all .3s;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--vert-bouteille); }
.feature-icon { width: 56px; height: 56px; border-radius: var(--radius-lg); display: flex; align-items: center; justify-content: center; font-size: 1.5rem; margin-bottom: 1rem; }

.pricing-card { border-radius: var(--radius-xl) !important; transition: transform var(--transition), box-shadow var(--transition); }
.pricing-card:hover { transform: scale(1.02); }
.pricing-card.featured { border: 2px solid var(--accent) !important; transform: scale(1.05); }
.pricing-card.featured:hover { transform: scale(1.07); }

.cta-section { background: var(--vert-bouteille); color: var(--blanc); }
.cta-section h2 { color: var(--blanc); }

.footer-section { background: var(--vert-bouteille); color: rgba(255,255,255,.8); padding: 32px 24px; }
.footer-section a { color: var(--accent-clair); }

/* ===== UTILITIES ===== */
.rounded { border-radius: var(--radius); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-xl { border-radius: var(--radius-xl); }
.rounded-full { border-radius: 9999px; }
.list-none { list-style: none; padding: 0; margin: 0; }
hr { border: none; border-top: 1px solid var(--border); margin: 16px 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.max-w-xs { max-width: 320px; }
.max-w-sm { max-width: 480px; }
.max-w-md { max-width: 560px; }
.max-w-lg { max-width: 640px; }
.max-w-xl { max-width: 720px; }
.max-w-2xl { max-width: 800px; }
.max-w-4xl { max-width: 960px; }
.max-w-5xl { max-width: 1100px; }

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--gris-clair); }
::-webkit-scrollbar-thumb { background: #d1d5db; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #9ca3af; }

@media (max-width: 640px) {
  body { padding: 16px; }
  h1 { font-size: 1.4rem; }
  h2 { font-size: 1.1rem; }
}
