/* ===========================================
   Gravel Débutant - Mini-site SEO
   Couleurs : terracotta / vert forêt / crème
   =========================================== */

:root {
  --color-primary: #c4612d;       /* terracotta gravel */
  --color-primary-dark: #9a4720;
  --color-secondary: #2d5a3d;     /* vert forêt */
  --color-bg: #fdfbf6;            /* crème */
  --color-bg-alt: #f4ede0;
  --color-text: #1f2a23;
  --color-text-soft: #4a5a4f;
  --color-border: #d9cfb8;
  --max-width: 1100px;
  --font-display: 'Helvetica Neue', Arial, sans-serif;
  --font-body: 'Helvetica Neue', Arial, sans-serif;
  --shadow: 0 2px 12px rgba(31,42,35,0.08);
  --radius: 8px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--color-text);
  background: var(--color-bg);
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--color-primary-dark); text-decoration: underline; text-underline-offset: 3px; }
a:hover { color: var(--color-primary); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-secondary);
  margin-top: 1.6em;
  margin-bottom: 0.6em;
}

h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); margin-top: 0.3em; }
h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); border-bottom: 2px solid var(--color-border); padding-bottom: 0.3em; }
h3 { font-size: 1.2rem; color: var(--color-primary-dark); }

p { margin: 0 0 1em; }

/* ============ HEADER ============ */
.site-header {
  background: var(--color-secondary);
  color: var(--color-bg);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow);
}
.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.9rem 1.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.logo {
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--color-bg);
  text-decoration: none;
  letter-spacing: 0.5px;
}
.logo span { color: var(--color-primary); }
.nav-list {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  gap: 1.4rem;
  flex-wrap: wrap;
}
.nav-list a {
  color: var(--color-bg);
  text-decoration: none;
  font-size: 0.95rem;
  padding: 0.3rem 0;
  border-bottom: 2px solid transparent;
}
.nav-list a:hover, .nav-list a[aria-current="page"] {
  border-bottom-color: var(--color-primary);
  color: var(--color-primary);
}

/* ============ HERO ============ */
.hero {
  background: linear-gradient(135deg, var(--color-bg-alt) 0%, var(--color-bg) 100%);
  padding: 3.5rem 1.2rem;
  border-bottom: 1px solid var(--color-border);
}
.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  text-align: center;
}
.hero h1 { color: var(--color-secondary); }
.hero .subtitle {
  font-size: 1.15rem;
  color: var(--color-text-soft);
  max-width: 700px;
  margin: 0.7em auto 1.5em;
}

/* ============ MAIN ============ */
main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2.5rem 1.2rem 3rem;
}
article > section {
  margin-bottom: 2.5rem;
}

/* ============ CTA ============ */
.cta-button {
  display: inline-block;
  background: var(--color-primary);
  color: var(--color-bg);
  padding: 0.9rem 1.8rem;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.3px;
  transition: background 0.2s, transform 0.1s;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}
.cta-button:hover { background: var(--color-primary-dark); color: var(--color-bg); transform: translateY(-1px); }
.cta-button.secondary { background: transparent; color: var(--color-primary-dark); border: 2px solid var(--color-primary); }
.cta-button.secondary:hover { background: var(--color-primary); color: var(--color-bg); }

.cta-block {
  background: var(--color-secondary);
  color: var(--color-bg);
  padding: 2.5rem 1.5rem;
  border-radius: var(--radius);
  text-align: center;
  margin: 3rem 0;
}
.cta-block h2 {
  color: var(--color-bg);
  border: none;
  margin-top: 0;
}
.cta-block p { color: var(--color-bg-alt); max-width: 600px; margin: 0 auto 1.5em; }
.cta-block .cta-button { background: var(--color-primary); color: var(--color-bg); }
.cta-block .cta-button:hover { background: var(--color-primary-dark); }

/* ============ CARDS / GRID ============ */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.2rem;
  margin: 1.5rem 0;
}
.card {
  background: white;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}
.card h3 { margin-top: 0; }

.tip {
  background: var(--color-bg-alt);
  border-left: 4px solid var(--color-primary);
  padding: 1rem 1.2rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 1.5rem 0;
}
.tip strong { color: var(--color-primary-dark); }

/* ============ TABLE ============ */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  background: white;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
th, td {
  padding: 0.8rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
}
th { background: var(--color-secondary); color: var(--color-bg); font-weight: 700; }
tr:last-child td { border-bottom: none; }
tr:hover td { background: var(--color-bg-alt); }

/* ============ FAQ ============ */
.faq-item {
  border-bottom: 1px solid var(--color-border);
  padding: 1.2rem 0;
}
.faq-item summary {
  font-weight: 700;
  cursor: pointer;
  font-size: 1.05rem;
  color: var(--color-secondary);
  padding: 0.5rem 0;
  list-style: none;
  position: relative;
  padding-right: 2rem;
}
.faq-item summary::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-primary);
  font-size: 1.5rem;
  font-weight: 700;
}
.faq-item[open] summary::after { content: '−'; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item p { margin-top: 0.7rem; color: var(--color-text-soft); }

/* ============ FOOTER ============ */
.site-footer {
  background: var(--color-secondary);
  color: var(--color-bg-alt);
  padding: 2.5rem 1.2rem 1.5rem;
  margin-top: 3rem;
}
.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}
.footer-inner h4 { color: var(--color-bg); margin-top: 0; font-size: 1rem; }
.footer-inner ul { list-style: none; padding: 0; margin: 0; }
.footer-inner li { margin-bottom: 0.4rem; }
.footer-inner a { color: var(--color-bg-alt); text-decoration: none; }
.footer-inner a:hover { color: var(--color-primary); }
.footer-bottom {
  max-width: var(--max-width);
  margin: 2rem auto 0;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(255,255,255,0.15);
  font-size: 0.85rem;
  color: var(--color-bg-alt);
  text-align: center;
}

/* ============ BREADCRUMB ============ */
.breadcrumb {
  font-size: 0.9rem;
  color: var(--color-text-soft);
  margin-bottom: 1.5rem;
}
.breadcrumb a { color: var(--color-text-soft); }
.breadcrumb span[aria-current] { color: var(--color-primary-dark); font-weight: 600; }

/* ============ RESPONSIVE ============ */
@media (max-width: 600px) {
  body { font-size: 16px; }
  .hero { padding: 2.5rem 1rem; }
  .nav-list { gap: 0.9rem; font-size: 0.9rem; }
  main { padding: 1.5rem 1rem 2rem; }
  .cta-block { padding: 2rem 1rem; }
  table { font-size: 0.9rem; }
  th, td { padding: 0.6rem 0.5rem; }
}
