/* MotorwayInfo — motorwayinfofr.eu — Custom CSS */
:root {
  --primary: #2D6A4F;
  --primary-dark: #1B4332;
  --accent: #E63946;
  --bg-light: #E8F5E9;
  --bg-white: #ffffff;
  --text: #1a2e1a;
  --border: #B7E4C7;
  --sidebar-width: 240px;
}

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

body {
  margin: 0;
  font-family: 'Segoe UI', Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg-white);
}

/* ── Header ── */
.site-header {
  background: var(--primary-dark);
  color: white;
  padding: 0.6rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.site-header a { color: white; text-decoration: none; font-weight: bold; font-size: 1.1rem; }
.site-header .tagline { font-size: 0.85rem; opacity: 0.8; }

/* ── Classic Nav ── */
nav.classic-nav {
  background: var(--primary);
}
nav.classic-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
}
nav.classic-nav ul li a {
  display: block;
  padding: 0.7rem 1.1rem;
  color: white;
  text-decoration: none;
  font-weight: 500;
  transition: background 0.2s;
}
nav.classic-nav ul li a:hover,
nav.classic-nav ul li a.active,
nav.classic-nav ul li a[aria-current="page"] {
  background: var(--accent);
  color: white;
}

/* ── Layout: Sidebar ── */
.layout-sidebar {
  display: grid;
  grid-template-columns: var(--sidebar-width) 1fr;
  gap: 0;
  min-height: calc(100vh - 120px);
}
@media (max-width: 768px) {
  .layout-sidebar { grid-template-columns: 1fr; }
  .sidebar { border-right: none; border-bottom: 2px solid var(--border); }
}

.sidebar {
  background: var(--bg-light);
  border-right: 2px solid var(--border);
  padding: 1.5rem 1rem;
  position: sticky;
  top: 0;
  height: fit-content;
}
.sidebar h3 { color: var(--primary-dark); font-size: 0.95rem; margin-bottom: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; }
.sidebar ul { list-style: none; padding: 0; margin: 0 0 1.5rem; }
.sidebar ul li { margin: 0.3rem 0; }
.sidebar ul li a { color: var(--primary); text-decoration: none; font-size: 0.9rem; display: block; padding: 0.3rem 0.5rem; border-radius: 4px; }
.sidebar ul li a:hover { background: var(--primary); color: white; }
.sidebar ul li a.active { background: var(--accent); color: white; }

.main-content { padding: 2rem 2rem 2rem 1.5rem; }

/* ── Page hero ── */
.page-hero {
  background: var(--bg-light);
  border-left: 5px solid var(--accent);
  padding: 1.5rem 1.5rem 1rem;
  margin-bottom: 1.5rem;
  border-radius: 0 8px 8px 0;
}
.page-hero h1 { color: var(--primary-dark); margin: 0 0 0.5rem; font-size: clamp(1.4rem, 3vw, 2rem); }

/* ── Section titles ── */
.section-title {
  color: var(--primary-dark);
  border-bottom: 3px solid var(--accent);
  padding-bottom: 0.3rem;
  margin-bottom: 1rem;
}

/* ── Compare matrix ── */
.compare-matrix { width: 100%; border-collapse: collapse; margin: 1rem 0; }
.compare-matrix th { background: var(--primary-dark); color: white; padding: 0.65rem 0.75rem; text-align: left; }
.compare-matrix td { padding: 0.5rem 0.75rem; border-bottom: 1px solid var(--border); }
.compare-matrix tr:nth-child(even) td { background: #f0faf4; }
.compare-matrix .highlight-col { background: #d8f3dc !important; font-weight: bold; }

/* ── Filter buttons ── */
.filter-bar { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 1rem; }
.filter-btn {
  background: var(--bg-light);
  border: 2px solid var(--primary);
  color: var(--primary);
  padding: 0.35rem 0.8rem;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
}
.filter-btn:hover, .filter-btn.active-filter { background: var(--primary); color: white; }

/* ── Sequential nav ── */
.seq-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  margin: 1.5rem 0;
}
.seq-nav a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  padding: 0.4rem 0.8rem;
  border-radius: 4px;
  border: 1px solid var(--primary);
}
.seq-nav a:hover { background: var(--primary); color: white; }
.seq-nav .seq-current { font-size: 0.9rem; color: #555; }

/* ── Fact panels ── */
.fact-panel {
  background: var(--bg-light);
  border-left: 4px solid var(--accent);
  padding: 1rem 1.5rem;
  margin: 1rem 0;
  border-radius: 0 6px 6px 0;
}
.fact-panel h3 { margin: 0 0 0.5rem; color: var(--primary-dark); }

/* ── Review cards ── */
.review-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.5rem; margin: 1.5rem 0; }
.review-card { background: var(--bg-light); border-radius: 10px; padding: 1.5rem; border-top: 4px solid var(--accent); }
.review-card img { width: 80px; height: 80px; border-radius: 50%; margin-bottom: 0.75rem; }
.review-card .reviewer-name { font-weight: bold; color: var(--primary-dark); }
.review-card .reviewer-location { font-size: 0.85rem; color: #666; margin-bottom: 0.75rem; }
.review-card .stars { color: var(--accent); font-size: 1.2rem; margin-bottom: 0.5rem; }

/* ── Contact form ── */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
@media (max-width: 640px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-info { background: var(--bg-light); border-radius: 8px; padding: 1.5rem; }
.contact-form-wrap { background: white; border: 1px solid var(--border); border-radius: 8px; padding: 1.5rem; }
[data-cf-errors] { background: #fde8e8; border: 1px solid var(--accent); border-radius: 4px; padding: 0.75rem 1rem; margin-bottom: 1rem; color: #c0392b; }
label { display: block; margin-bottom: 0.25rem; font-weight: 500; }
input[type="text"], input[type="email"], textarea {
  width: 100%; padding: 0.5rem; border: 1px solid #ccc; border-radius: 4px;
  margin-bottom: 0.75rem; font-size: 1rem; font-family: inherit;
}
textarea { min-height: 120px; resize: vertical; }
.checkbox-row { display: flex; align-items: flex-start; gap: 0.5rem; margin-bottom: 1rem; }
.checkbox-row input[type="checkbox"] { width: auto; margin: 0; margin-top: 3px; }
button[type="submit"] {
  background: var(--primary);
  color: white;
  border: none;
  padding: 0.6rem 1.5rem;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: bold;
}
button[type="submit"]:hover { background: var(--accent); }

/* ── FAQ ── */
details.faq-item { border: 1px solid var(--border); border-radius: 6px; margin: 0.5rem 0; }
details.faq-item summary { padding: 0.75rem 1rem; cursor: pointer; font-weight: 600; color: var(--primary-dark); list-style: none; }
details.faq-item summary::-webkit-details-marker { display: none; }
details.faq-item summary::before { content: "+ "; color: var(--accent); }
details.faq-item[open] summary::before { content: "− "; }
details.faq-item .faq-body { padding: 0.75rem 1rem 1rem; }

/* ── Blockquote ── */
blockquote { border-left: 4px solid var(--accent); padding: 0.75rem 1rem; background: #f0faf4; margin: 1rem 0; font-style: italic; }

/* ── Checklist ── */
.checklist-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 0.6rem; }
.checklist-item { display: flex; align-items: flex-start; gap: 0.5rem; padding: 0.5rem; background: var(--bg-light); border-radius: 4px; font-size: 0.9rem; }
.checklist-item::before { content: "✓"; color: var(--accent); font-weight: bold; flex-shrink: 0; }

/* ── Cookie banner ── */
#cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0;
  background: var(--primary-dark); color: white;
  padding: 1rem 1.5rem; display: flex; gap: 1rem;
  align-items: center; flex-wrap: wrap; z-index: 9999;
}
#cookie-banner p { margin: 0; flex: 1; }
#cookie-banner button { background: var(--accent); color: white; border: none; padding: 0.4rem 1rem; border-radius: 4px; cursor: pointer; font-weight: bold; }
#cookie-banner a { color: #B7E4C7; }

/* ── Footer ── */
.site-footer { background: var(--primary-dark); color: #B7E4C7; padding: 2rem 1.5rem; margin-top: 3rem; }
.site-footer a { color: var(--accent); }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1.5rem; }

/* ── Utilities ── */
.back-link { display: inline-block; margin-top: 1rem; color: var(--primary); font-weight: 500; }
.back-link::before { content: "← "; }
.toc { background: #f0faf4; border: 1px solid var(--border); border-radius: 6px; padding: 1rem 1.5rem; margin: 1.5rem 0; }
.toc h3 { color: var(--primary-dark); margin-bottom: 0.5rem; }
.toc ol { margin: 0; padding-left: 1.2rem; }
.toc ol li { margin: 0.3rem 0; }
.toc ol li a { color: var(--primary); }
dl.glossary dt { font-weight: bold; color: var(--primary-dark); margin-top: 0.75rem; }
dl.glossary dd { margin-left: 1.5rem; }
aside.info-box { background: #d8f3dc; border: 1px solid var(--primary); border-radius: 6px; padding: 1rem; margin: 1rem 0; }
