/* =========================================================
   OnlyWatt — style.css v3
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Syne:wght@700;900&family=DM+Sans:wght@400;500;700&display=swap');

:root {
  --bg:      #06161f;
  --card:    #0d2530;
  --muted:   #8fb3bf;
  --text:    #effcff;
  --green:   #02c39a;
  --blue:    #00a3ff;
  --line:    #183945;
  --warning: #ffd166;
  --light-bg:#f4fbfd;
  --light-card:#ffffff;
  --light-border:#dcecf0;
  --light-text:#09232d;
  --radius-lg:24px;
  --radius-md:14px;
  --radius-pill:999px;
  --nav-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', Arial, sans-serif;
  background: linear-gradient(180deg, var(--bg) 0%, #09232d 44%, var(--light-bg) 44%);
  color: var(--text);
  min-height: 100vh;
}
a { color: inherit; }

/* ── TOPBAR ────────────────────────────────────────── */
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 7%;
  height: var(--nav-h);
  background: rgba(6,22,31,.95);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.brand {
  display: flex;
  gap: 10px;
  align-items: center;
  text-decoration: none;
  font-family: 'Syne', sans-serif;
  font-weight: 900;
  font-size: 22px;
  letter-spacing: -.5px;
  flex-shrink: 0;
}
.brand img { width: 42px; height: auto; }
.brand-watt { color: #02c39a; }

.topbar nav { display: flex; gap: 6px; align-items: center; }
.topbar nav a {
  text-decoration: none;
  color: #d8f5fb;
  font-weight: 700;
  font-size: 15px;
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  transition: background .18s, color .18s;
}
.topbar nav a:hover { background: rgba(2,195,154,.12); color: var(--green); }
.topbar nav a.active { background: rgba(2,195,154,.15); color: #81ffe1; }

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 38px;
  height: 38px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
  border-radius: 8px;
  transition: background .2s;
}
.nav-toggle:hover { background: rgba(255,255,255,.08); }
.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .28s cubic-bezier(.68,-.6,.32,1.6), opacity .2s;
  transform-origin: center;
}
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav drawer */
.nav-drawer {
  display: none;
  flex-direction: column;
  gap: 4px;
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  background: rgba(6,22,31,.98);
  border-bottom: 1px solid var(--line);
  padding: 16px 7% 20px;
  z-index: 99;
  transform: translateY(-12px);
  opacity: 0;
  transition: opacity .22s, transform .22s;
  pointer-events: none;
}
.nav-drawer.open { opacity: 1; transform: translateY(0); pointer-events: auto; }
.nav-drawer a {
  text-decoration: none;
  color: #d8f5fb;
  font-weight: 700;
  font-size: 17px;
  padding: 13px 16px;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  transition: background .18s, border-color .18s;
}
.nav-drawer a:hover { background: rgba(2,195,154,.1); border-color: var(--line); }
.nav-drawer a.active { color: #81ffe1; background: rgba(2,195,154,.12); }

/* ── HERO ─────────────────────────────────────────── */
.hero {
  padding: 70px 7% 50px;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 40px;
  align-items: center;
  max-height: 720px;
}
.hero-text { animation: fadeUp .6s ease both; }
.hero-card  { animation: fadeUp .6s .12s ease both; }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}
.badge {
  display: inline-block;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  background: rgba(2,195,154,.12);
  color: #81ffe1;
  font-weight: 800;
  font-size: 13px;
  margin-bottom: 18px;
}
.hero h1 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(34px, 4.5vw, 62px);
  line-height: 1.04;
  margin-bottom: 18px;
  letter-spacing: -1.5px;
}
.hero p { font-size: 18px; color: #c0dce4; line-height: 1.65; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 22px;
  border-radius: var(--radius-pill);
  text-decoration: none;
  font-weight: 800;
  font-size: 15px;
  border: 1.5px solid transparent;
  transition: opacity .18s, transform .15s, box-shadow .18s;
  white-space: nowrap;
}
.btn:hover { opacity: .88; transform: translateY(-1px); }
.btn.primary { background: linear-gradient(90deg, var(--green), var(--blue)); color: #031017; box-shadow: 0 6px 24px rgba(2,195,154,.25); }
.btn.secondary { border-color: #385965; color: #fff; }
.btn.secondary:hover { background: rgba(255,255,255,.06); }

.hero-card, .card {
  background: rgba(13,37,48,.92);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px 28px;
  box-shadow: 0 28px 80px rgba(0,0,0,.3);
}
.hero-card h2 {
  font-family: 'Syne', sans-serif;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--muted);
  margin-bottom: 16px;
}
.price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}
.price-row:last-child { border-bottom: none; }
.price-row span { font-size: 14px; }
.price-row strong { font-family: 'Syne', sans-serif; font-size: 17px; color: var(--green); white-space: nowrap; }
.muted { color: var(--muted); font-size: 13px; }

/* ── SECTIONS ─────────────────────────────────────── */
.section { padding: 48px 7%; color: var(--light-text); }
.section h1 { font-family: 'Syne', sans-serif; font-size: clamp(26px,4vw,44px); letter-spacing: -1px; margin-bottom: 10px; }
.section h2 { font-family: 'Syne', sans-serif; font-size: clamp(22px,3vw,34px); letter-spacing: -.5px; margin-bottom: 18px; }
.section-intro p { color: #4a6b75; margin-top: 8px; font-size: 16px; line-height: 1.65; }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 24px; }

.light-card {
  background: var(--light-card);
  border: 1px solid var(--light-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: 0 8px 28px rgba(10,42,54,.07);
  color: var(--light-text);
  transition: box-shadow .2s, transform .2s;
}
.light-card:hover { box-shadow: 0 16px 48px rgba(10,42,54,.12); transform: translateY(-3px); }
.light-card h3 { font-family: 'Syne', sans-serif; font-size: 17px; margin-bottom: 10px; }

/* ── GUIDES ───────────────────────────────────────── */
.guide-card {
  background: var(--light-card);
  border: 1px solid var(--light-border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: 0 8px 28px rgba(10,42,54,.07);
  color: var(--light-text);
  transition: box-shadow .2s, transform .2s;
  text-decoration: none;
  display: block;
}
.guide-card:hover { box-shadow: 0 16px 48px rgba(10,42,54,.12); transform: translateY(-3px); }
.guide-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #008f72;
  background: rgba(2,195,154,.1);
  border-radius: var(--radius-pill);
  padding: 4px 10px;
  margin-bottom: 12px;
}
.guide-card h3 { font-family: 'Syne', sans-serif; font-size: 18px; line-height: 1.3; margin-bottom: 10px; }
.guide-card p { font-size: 14px; color: #4a6b75; line-height: 1.6; }
.guide-card .guide-meta { margin-top: 16px; font-size: 12px; color: #7a9aa6; font-weight: 600; }
.guide-cta { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; font-size: 13px; font-weight: 700; color: #008f72; }

/* ── ARRONDISSEMENTS ──────────────────────────────── */
.arr-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 24px; }
.arr-card {
  background: var(--light-card);
  border: 1.5px solid var(--light-border);
  border-radius: var(--radius-md);
  padding: 18px 16px;
  text-align: center;
  text-decoration: none;
  color: var(--light-text);
  transition: border-color .18s, background .18s, transform .18s, box-shadow .18s;
}
.arr-card:hover { border-color: var(--green); background: rgba(2,195,154,.04); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,.07); }
.arr-num { font-family: 'Syne', sans-serif; font-size: 22px; font-weight: 900; color: #008f72; }
.arr-name { font-size: 12px; color: #4a6b75; margin-top: 4px; }

/* ── BORNES ───────────────────────────────────────── */
.filters { display: flex; gap: 12px; flex-wrap: wrap; margin: 20px 0; }
.filters input, .filters select {
  padding: 12px 16px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--light-border);
  font-family: inherit;
  font-size: 14px;
  background: white;
  min-width: 200px;
  transition: border-color .18s, box-shadow .18s;
}
.filters input:focus, .filters select:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0,163,255,.12);
}

.station-list { display: grid; gap: 14px; }
.station {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: center;
  background: white;
  border: 1.5px solid var(--light-border);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  color: var(--light-text);
  transition: box-shadow .2s, border-color .2s;
}
.station:hover { box-shadow: 0 8px 32px rgba(0,0,0,.08); border-color: #bdd8e0; }
.station strong { font-family: 'Syne', sans-serif; font-size: 17px; }
.station p { font-size: 14px; color: #4a6b75; margin-top: 4px; line-height: 1.4; }
.station-meta { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  background: #eef8fb;
  color: #2e6e7e;
  border: 1px solid #cce4ed;
}
.tag.power-high { background: #fff3e0; color: #b05000; border-color: #fdd8b0; }
.tag.access-public { background: #e8f8f2; color: #007a56; border-color: #b5e8d5; }
.price-col { text-align: right; }
.price { font-family: 'Syne', sans-serif; font-size: 26px; font-weight: 900; color: #008f72; }
.price-session { font-size: 12px; color: #7a9aa6; margin-top: 3px; }

.no-result { display: none; text-align: center; padding: 48px 20px; color: #7a9aa6; font-size: 16px; }
.no-result.visible { display: block; }

/* ── AD BOX ───────────────────────────────────────── */
.adbox {
  margin: 20px 0;
  background: #eef8fb;
  border: 2px dashed #b7d9e1;
  border-radius: 20px;
  min-height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6d8992;
  font-weight: 700;
  font-size: 13px;
}

/* ── FOOTER ───────────────────────────────────────── */
.footer {
  padding: 32px 7%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  background: var(--bg);
  color: #ccecf3;
  border-top: 1px solid var(--line);
  font-size: 14px;
}
.footer strong { font-family: 'Syne', sans-serif; font-size: 16px; }
.footer a { color: #ccecf3; text-decoration: none; opacity: .7; }
.footer a:hover { opacity: 1; text-decoration: underline; }
.footer-links { display: flex; gap: 18px; }

/* ── ARTICLE ──────────────────────────────────────── */
.article-body { max-width: 720px; }
.article-body h2 { font-family: 'Syne', sans-serif; font-size: 22px; margin: 36px 0 12px; }
.article-body p { font-size: 16px; line-height: 1.75; color: #2a4f5a; margin-bottom: 18px; }
.article-body ul { padding-left: 22px; margin-bottom: 18px; }
.article-body ul li { font-size: 15px; line-height: 1.7; color: #2a4f5a; margin-bottom: 6px; }
.highlight-box {
  background: linear-gradient(135deg, rgba(2,195,154,.08), rgba(0,163,255,.06));
  border: 1px solid rgba(2,195,154,.25);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin: 24px 0;
}
.highlight-box p { color: #0d5a6a; margin: 0; }

.breadcrumb { font-size: 13px; color: #7a9aa6; margin-bottom: 20px; }
.breadcrumb a { color: #4a9ab5; text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span { margin: 0 6px; }

/* ── RESPONSIVE ───────────────────────────────────── */
@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .topbar nav { display: none; }
  .nav-drawer { display: flex; }

  .hero { grid-template-columns: 1fr; padding: 40px 6% 36px; max-height: none; gap: 28px; }
  .hero h1 { font-size: clamp(28px, 7vw, 46px); }
  .grid { grid-template-columns: 1fr; }
  .arr-grid { grid-template-columns: repeat(2, 1fr); }
  .station { grid-template-columns: 1fr; gap: 12px; }
  .price-col { text-align: left; }
  .filters { flex-direction: column; }
  .filters input, .filters select { min-width: 100%; }
  .footer { flex-direction: column; align-items: flex-start; }
  .footer-links { flex-wrap: wrap; }
}
@media (max-width: 480px) {
  .topbar { padding: 0 5%; }
  .section { padding: 36px 5%; }
  .hero { padding: 32px 5% 28px; }
  .arr-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .cta { flex-direction: column; }
}

/* ── FORMULAIRE SIGNALEMENT ───────────────────────────────── */
.report-form {
  max-width: 640px;
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-weight: 700; font-size: 14px; color: var(--light-text); }
.form-group input,
.form-group select,
.form-group textarea {
  padding: 12px 16px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--light-border);
  font-family: inherit;
  font-size: 15px;
  background: white;
  color: var(--light-text);
  transition: border-color .18s, box-shadow .18s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0,163,255,.12);
}
.form-group textarea { resize: vertical; min-height: 80px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.input-addon { display: flex; align-items: center; }
.input-addon input { border-radius: var(--radius-md) 0 0 var(--radius-md); border-right: none; flex: 1; }
.input-addon span {
  padding: 12px 14px;
  background: #eef8fb;
  border: 1.5px solid var(--light-border);
  border-left: none;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-size: 14px;
  color: #4a6b75;
  font-weight: 700;
  white-space: nowrap;
}
.form-hint { font-size: 12px; color: #7a9aa6; margin-top: 2px; }
.req { color: #e05c5c; margin-left: 2px; }
.optional { font-size: 11px; font-weight: 400; color: #7a9aa6; margin-left: 6px; }
.form-notice {
  background: #eef8fb;
  border: 1px solid var(--light-border);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  font-size: 13px;
  color: #4a6b75;
  line-height: 1.5;
}
.report-errors {
  background: rgba(224,92,92,.08);
  border: 1px solid rgba(224,92,92,.25);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  margin: 20px 0;
  color: #c0392b;
  font-size: 14px;
}
.report-errors p { margin: 4px 0; }
.report-success {
  text-align: center;
  padding: 48px 24px;
  max-width: 480px;
}
.report-success-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--green), var(--blue));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: #031017;
  font-weight: 900;
  margin: 0 auto 20px;
}
.report-success h2 { font-family: 'Syne', sans-serif; font-size: 24px; margin-bottom: 10px; color: var(--light-text); }
.report-success p { color: #4a6b75; }
.honeypot { display: none !important; }

@media (max-width: 600px) {
  .form-row { grid-template-columns: 1fr; }
}
