/* ============================================================
   Bambino — site statique
   Design tokens, reset minimal, layout, responsive.
   La police EB Garamond est chargée via <link> dans chaque page
   (perf : évite la chaîne CSS @import → Google Fonts CSS → woff).
   ============================================================ */

:root {
  --brand: #8A6851;
  --brand-dark: #6B4F3D;
  --brand-light: #F5EDE7;
  --bg: #EEE6D9;
  --surface: #FFFFFF;
  --text: #1A1A1A;
  --text-muted: #5C4A3A;
  --text-tertiary: #8A7A6A;
  --border: #D8BF9F;
  --border-light: #E8DED0;
  --footer-bg: #1A1A1A;
  --footer-text: #EEE6D9;
  --disabled-bg: #C4B8A8;

  --font-serif: 'EB Garamond', Georgia, 'Times New Roman', serif;

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-6: 24px;
  --space-8: 32px;
  --space-12: 48px;
  --space-16: 64px;

  --max-width: 960px;
}

/* Reset minimal */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-serif);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover, a:focus { text-decoration: underline; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }

h1, h2, h3 { color: var(--brand); margin: 0 0 var(--space-4) 0; line-height: 1.2; }
h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.25rem); }
h3 { font-size: clamp(1.15rem, 2.5vw, 1.4rem); }
p { margin: 0 0 var(--space-4) 0; }
ul, ol { margin: 0 0 var(--space-4) 0; padding-left: var(--space-6); }
li { margin-bottom: var(--space-2); }

/* Layout containers */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-6);
}

/* Header */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: var(--space-4) 0;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}
.site-header .logo img { height: 32px; width: auto; }
.site-nav ul { list-style: none; display: flex; gap: var(--space-6); margin: 0; padding: 0; }
.site-nav a { color: var(--text-muted); font-size: 0.95rem; }

/* Hero */
.hero {
  background: var(--bg);
  padding: var(--space-12) 0;
  text-align: center;
}
.hero h1 { margin-bottom: var(--space-4); }
.hero .lead {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto var(--space-6);
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  justify-content: center;
  margin-bottom: var(--space-8);
}

.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 8px;
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: opacity 0.15s;
}
.btn-primary { background: var(--brand); color: var(--surface); }
.btn-primary:hover, .btn-primary:focus { opacity: 0.9; text-decoration: none; }
.btn-disabled {
  background: var(--disabled-bg);
  color: var(--surface);
  cursor: not-allowed;
  opacity: 0.75;
}

.hero-visual {
  max-width: 520px;
  margin: 0 auto;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
  background: var(--surface);
}
.hero-visual img { width: 100%; display: block; }
.hero-visual.placeholder {
  aspect-ratio: 16 / 11;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-tertiary);
  font-style: italic;
  font-size: 0.9rem;
  border: 1px dashed var(--border);
}

/* Features */
.features {
  background: var(--surface);
  padding: var(--space-12) 0;
}
.features h2 { text-align: center; margin-bottom: var(--space-8); }
.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
  max-width: 720px;
  margin: 0 auto;
}
.feature {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: var(--space-6);
}
.feature h3 { margin-bottom: var(--space-2); font-size: 1.15rem; }
.feature p { margin: 0; color: var(--text-muted); font-size: 0.97rem; }

/* CTA final */
.cta-final {
  background: var(--brand-light);
  padding: var(--space-12) 0;
  text-align: center;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.cta-final p {
  font-size: clamp(1.15rem, 2.5vw, 1.5rem);
  color: var(--brand);
  margin-bottom: var(--space-6);
}

/* Footer */
.site-footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  padding: var(--space-8) 0;
  text-align: center;
  font-size: 0.9rem;
}
.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-3);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-6);
}
.site-footer a { color: var(--footer-text); }
.site-footer .copy { color: var(--text-tertiary); }

/* Pages internes (privacy / terms / support / 404) */
main.page {
  background: var(--surface);
  padding: var(--space-12) 0;
}
main.page .container { max-width: 720px; }
main.page section { margin-bottom: var(--space-8); }
main.page h2 { margin-top: var(--space-8); }
main.page .meta {
  color: var(--text-tertiary);
  font-size: 0.9rem;
  margin-bottom: var(--space-8);
}
main.page address {
  font-style: normal;
  background: var(--brand-light);
  padding: var(--space-4) var(--space-6);
  border-left: 3px solid var(--brand);
  border-radius: 0 8px 8px 0;
}

/* FAQ (page support) */
.faq dt {
  font-weight: 700;
  color: var(--brand);
  margin-top: var(--space-6);
}
.faq dd {
  margin: var(--space-2) 0 0 0;
  color: var(--text-muted);
}

/* 404 */
main.notfound {
  background: var(--bg);
  padding: var(--space-16) 0;
  text-align: center;
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
main.notfound h1 { font-size: clamp(2.5rem, 6vw, 4rem); }

/* Responsive */
@media (min-width: 768px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .container { padding: 0 var(--space-8); }
  .hero { padding: var(--space-16) 0; }
}

@media (min-width: 1024px) {
  .features-grid { grid-template-columns: repeat(3, 1fr); }
}

/* Accessibilité — skip link */
.skip-link {
  position: absolute;
  left: -9999px;
}
.skip-link:focus {
  position: static;
  background: var(--brand);
  color: var(--surface);
  padding: var(--space-2) var(--space-4);
}
