/* ===================================================================
   ELA Design System v2 — Seafoam Premium
   Refonte avril 2026 · expertiselavageauto.fr
   =================================================================== */

/* === RESET === */
*,*::before,*::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif; background: var(--bg); color: var(--ink); line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img, video { max-width: 100%; display: block; height: auto; }
button { font-family: inherit; cursor: pointer; }

/* === DESIGN TOKENS === */
:root {
  /* Couleurs primaires (palette Seafoam Gamma) */
  --teal: #26A688;
  --teal-dark: #1c8a72;
  --teal-light: #B4EEE0;
  --mint: #DDF8F2;
  --navy: #333F70;
  --ink: #0f1f36;
  --bg: #fafffe;
  --surface: #ffffff;

  /* Couleurs secondaires */
  --muted: #64748b;
  --soft: #94a3b8;
  --border: #e2efeb;
  --border-strong: #cfe5dc;

  /* États */
  --success: #10b981;
  --warn: #f59e0b;
  --danger: #ef4444;

  /* Élévations */
  --shadow-xs: 0 1px 2px rgba(15,31,54,0.04);
  --shadow-sm: 0 1px 2px rgba(15,31,54,0.04), 0 1px 3px rgba(15,31,54,0.06);
  --shadow-md: 0 4px 6px rgba(15,31,54,0.04), 0 10px 25px rgba(15,31,54,0.08);
  --shadow-lg: 0 20px 50px rgba(38,166,136,0.15);
  --shadow-xl: 0 30px 80px rgba(38,166,136,0.2);

  /* Géométrie */
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-full: 100px;

  /* Espacements */
  --container-max: 1200px;
}

/* === LAYOUT === */
.container { max-width: var(--container-max); margin: 0 auto; padding: 0 24px; }
.mono { font-family: 'JetBrains Mono', 'SF Mono', Monaco, monospace; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* === TYPOGRAPHY === */
h1, h2, h3, h4, h5, h6 { font-weight: 800; line-height: 1.15; letter-spacing: -0.02em; color: var(--ink); margin: 0 0 16px; }
h1 { font-size: clamp(36px, 5vw, 64px); font-weight: 800; line-height: 1.05; letter-spacing: -0.03em; }
h2 { font-size: clamp(28px, 3.5vw, 44px); }
h3 { font-size: clamp(20px, 2vw, 24px); font-weight: 700; }
h4 { font-size: 18px; font-weight: 700; }
em.accent, .accent { font-style: normal; background: linear-gradient(135deg, var(--teal) 0%, var(--navy) 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.eyebrow { display: inline-block; padding: 6px 14px; background: var(--mint); color: var(--teal-dark); border-radius: var(--radius-full); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 16px; }
.lead { font-size: 19px; color: var(--muted); line-height: 1.6; max-width: 720px; }
.section-head { margin-bottom: 56px; max-width: 800px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .lead { margin: 0 auto; }

/* === HEADER === */
.nav { position: sticky; top: 0; z-index: 100; background: rgba(250,255,254,0.85); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border-bottom: 1px solid rgba(38,166,136,0.08); }
.nav-inner { display: flex; justify-content: space-between; align-items: center; padding: 14px 0; gap: 24px; }
.nav-logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 16px; color: var(--ink); flex-shrink: 0; }
.nav-logo-mark { width: 32px; height: 32px; background: linear-gradient(135deg, var(--teal) 0%, var(--navy) 100%); border-radius: 8px; display: grid; place-items: center; color: white; font-weight: 900; font-size: 14px; box-shadow: var(--shadow-sm); }
.nav-tagline { font-size: 11px; color: var(--muted); font-weight: 500; margin-left: 4px; }
.nav-links { display: flex; gap: 4px; flex-wrap: wrap; }
.nav-link { padding: 8px 14px; font-size: 13px; color: var(--muted); font-weight: 500; border-radius: 8px; transition: all 0.2s; white-space: nowrap; }
.nav-link:hover, .nav-link.active { color: var(--teal-dark); background: rgba(38,166,136,0.06); }
.nav-cta { padding: 9px 18px; background: var(--ink); color: white !important; border-radius: 8px; font-size: 13px; font-weight: 600; transition: all 0.2s; white-space: nowrap; }
.nav-cta:hover { background: var(--teal-dark); transform: translateY(-1px); }
.nav-dropdown { position: relative; }
.nav-dropdown-menu { display: none; position: absolute; top: 100%; left: 0; min-width: 260px; padding: 8px; background: white; border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow-lg); z-index: 200; margin-top: 6px; }
.nav-dropdown:hover .nav-dropdown-menu { display: block; }
.nav-dropdown-menu a { display: block; padding: 10px 14px; color: var(--ink); font-size: 13px; font-weight: 500; border-radius: 8px; transition: all 0.2s; }
.nav-dropdown-menu a:hover { background: var(--mint); color: var(--teal-dark); }
.menu-toggle { display: none; background: none; border: none; padding: 8px; cursor: pointer; color: var(--ink); }
.mobile-nav { display: none; padding: 12px 0; border-top: 1px solid var(--border); }
.mobile-nav a { display: block; padding: 12px 0; color: var(--ink); font-size: 14px; font-weight: 500; }
.mobile-nav a.mobile-sub { padding-left: 16px; color: var(--muted); font-size: 13px; }

/* === BUTTONS === */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border-radius: var(--radius); font-weight: 600; font-size: 14px; transition: all 0.2s; border: none; text-decoration: none; line-height: 1; }
.btn-primary { background: var(--ink); color: white; box-shadow: var(--shadow-md); }
.btn-primary:hover { background: var(--teal); transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-secondary { background: white; color: var(--ink); border: 1px solid var(--border); }
.btn-secondary:hover { border-color: var(--teal); color: var(--teal-dark); }
.btn-teal { background: var(--teal); color: white; }
.btn-teal:hover { background: var(--teal-dark); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { color: var(--teal); }
.btn-large { padding: 16px 32px; font-size: 16px; }
.btn-block { display: flex; width: 100%; justify-content: center; }

/* === CARDS === */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px; transition: all 0.3s; }
.card:hover { border-color: var(--teal-light); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.card-feature { background: linear-gradient(135deg, var(--mint) 0%, white 100%); border: 1px solid var(--teal-light); }

/* === HERO === */
.hero { position: relative; padding: 80px 0 60px; overflow: hidden; }
.hero::before { content: ""; position: absolute; top: -200px; left: -100px; width: 500px; height: 500px; background: radial-gradient(circle, var(--teal-light) 0%, transparent 70%); opacity: 0.4; pointer-events: none; }
.hero::after { content: ""; position: absolute; top: -100px; right: -200px; width: 600px; height: 600px; background: radial-gradient(circle, var(--mint) 0%, transparent 70%); opacity: 0.5; pointer-events: none; }
.hero-inner { position: relative; z-index: 1; }
.hero-eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; background: white; border: 1px solid var(--border); border-radius: var(--radius-full); font-size: 12px; font-weight: 600; color: var(--teal); box-shadow: var(--shadow-sm); margin-bottom: 24px; }
.hero-eyebrow .pulse { width: 6px; height: 6px; background: var(--teal); border-radius: 50%; animation: pulse 2s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.4; transform: scale(1.3); } }
.hero h1 { margin-bottom: 24px; }
.hero p { font-size: 19px; color: var(--muted); margin: 0 0 36px; max-width: 700px; line-height: 1.6; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.hero-trust { margin-top: 28px; display: flex; align-items: center; gap: 14px; font-size: 12px; color: var(--muted); flex-wrap: wrap; }
.hero-trust .dot { width: 4px; height: 4px; background: var(--teal); border-radius: 50%; flex-shrink: 0; }

/* === STATS BAR === */
.stats-bar { padding: 48px 0; background: white; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat-item { text-align: center; }
.stat-value { font-size: 36px; font-weight: 800; color: var(--ink); letter-spacing: -0.02em; line-height: 1; }
.stat-value em { font-style: normal; color: var(--teal); }
.stat-label { font-size: 13px; color: var(--muted); margin-top: 8px; font-weight: 500; }

/* === SECTIONS === */
section { padding: 80px 0; }
.section-light { background: var(--bg); }
.section-white { background: white; border-top: 1px solid var(--border); }
.section-mint { background: linear-gradient(180deg, var(--mint) 0%, var(--bg) 100%); }
.section-dark { background: var(--ink); color: white; }
.section-dark h1, .section-dark h2, .section-dark h3 { color: white; }
.section-dark .lead { color: rgba(255,255,255,0.7); }
.section-dark .eyebrow { background: rgba(38,166,136,0.15); color: var(--teal-light); }

/* === GRIDS === */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* === FORM === */
.form-card { background: white; border: 1px solid var(--border); border-radius: var(--radius-xl); padding: 40px; box-shadow: var(--shadow-md); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.form-group input, .form-group textarea, .form-group select { width: 100%; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius); font-size: 14px; font-family: inherit; background: var(--bg); transition: border-color 0.2s, background 0.2s; }
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { outline: none; border-color: var(--teal); background: white; }
.form-group textarea { min-height: 100px; resize: vertical; }

/* === CTA SECTION === */
.cta-final { background: linear-gradient(135deg, var(--ink) 0%, var(--navy) 100%); color: white; position: relative; overflow: hidden; }
.cta-final::before { content: ""; position: absolute; top: -200px; right: -200px; width: 600px; height: 600px; background: radial-gradient(circle, rgba(38,166,136,0.3) 0%, transparent 70%); pointer-events: none; }
.cta-final-inner { position: relative; z-index: 1; text-align: center; max-width: 800px; margin: 0 auto; }
.cta-final h2 { color: white; margin-bottom: 20px; }
.cta-final p { color: rgba(255,255,255,0.8); font-size: 19px; margin: 0 auto 40px; max-width: 600px; }

/* === FOOTER === */
footer { background: var(--ink); color: rgba(255,255,255,0.7); padding: 60px 0 32px; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 40px; }
.footer-brand p { color: rgba(255,255,255,0.6); line-height: 1.7; max-width: 260px; margin-top: 16px; font-size: 13px; }
.footer-brand .nav-logo { color: white; }
.footer-col h4 { font-size: 13px; font-weight: 700; color: white; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 16px; }
.footer-col a { display: block; font-size: 14px; color: rgba(255,255,255,0.6); margin-bottom: 10px; transition: color 0.2s; }
.footer-col a:hover { color: var(--teal-light); }
.footer-bottom { padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.1); display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: rgba(255,255,255,0.5); flex-wrap: wrap; gap: 16px; }
.footer-bottom a { color: rgba(255,255,255,0.6); transition: color 0.2s; }
.footer-bottom a:hover { color: var(--teal-light); }
.footer-social { display: flex; gap: 14px; margin-top: 12px; }
.footer-social a { color: rgba(255,255,255,0.5); transition: color 0.2s; }
.footer-social a:hover { color: var(--teal-light); }

/* === ARTICLE/BLOG === */
.article { padding: 64px 0; max-width: 860px; margin: 0 auto; }
.article h1 { margin-bottom: 16px; }
.article-meta { font-size: 14px; color: var(--muted); margin-bottom: 32px; padding-bottom: 24px; border-bottom: 1px solid var(--border); }
.article-content { font-size: 17px; color: var(--ink); line-height: 1.8; }
.article-content h2 { margin-top: 48px; margin-bottom: 16px; }
.article-content h3 { margin-top: 32px; }
.article-content p { margin: 0 0 20px; }
.article-content a { color: var(--teal-dark); border-bottom: 1px solid var(--teal-light); transition: all 0.2s; }
.article-content a:hover { border-bottom-color: var(--teal); }
.article-content ul, .article-content ol { padding-left: 24px; margin: 0 0 20px; }
.article-content li { margin-bottom: 8px; }
.article-content blockquote { margin: 24px 0; padding: 20px 24px; background: var(--mint); border-left: 4px solid var(--teal); border-radius: 0 12px 12px 0; font-style: italic; color: var(--ink); }
.article-content img { border-radius: var(--radius-lg); margin: 24px 0; box-shadow: var(--shadow-sm); }
.article-content table { width: 100%; border-collapse: collapse; margin: 24px 0; font-size: 14px; }
.article-content th, .article-content td { padding: 12px 16px; border-bottom: 1px solid var(--border); text-align: left; }
.article-content th { background: var(--mint); color: var(--ink); font-weight: 700; }

/* === BREADCRUMB === */
.breadcrumb { padding: 16px 0; font-size: 13px; color: var(--muted); }
.breadcrumb a { color: var(--muted); transition: color 0.2s; }
.breadcrumb a:hover { color: var(--teal-dark); }
.breadcrumb .sep { margin: 0 8px; color: var(--soft); }

/* === RESPONSIVE === */
@media (max-width: 1024px) {
  .nav-links { display: none; }
  .menu-toggle { display: block; }
  .nav-cta { display: none; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .hero { padding: 56px 0 40px; }
  section { padding: 56px 0; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .form-card { padding: 24px; }
}
