@font-face { font-family: Fraunces; src: url(fonts/fraunces.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: Fraunces; src: url(fonts/fraunces-italic.woff2) format("woff2"); font-weight: 100 900; font-style: italic; font-display: swap; }
@font-face { font-family: Manrope; src: url(fonts/manrope.woff2) format("woff2"); font-weight: 200 800; font-display: swap; }

:root {
  --bg: #f8f4ea;
  --surface: #fffdf8;
  --text: #14281f;
  --muted: #55665d;
  --primary: #1b6647;
  --line: #e3dccb;
  --danger: #b5391f;
  --danger-bg: #fbeae3;
  --forest: #0f3a2b;
  --forest-2: #17503c;
  --on-forest: #f8f4ea;
  --on-forest-muted: #bdd6c8;
  --amber: #f2b544;
  --on-amber: #14281f;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d1412;
    --surface: #16201c;
    --text: #e8efe9;
    --muted: #a3b4ab;
    --primary: #7ad3a5;
    --line: #2a3832;
    --danger: #f08a6f;
    --danger-bg: #2c1a14;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 500 16px/1.65 Manrope, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--primary); text-underline-offset: 2px; }
a:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { font-family: Fraunces, Georgia, serif; font-weight: 600; letter-spacing: -.01em; }
h1 { font-size: 2rem; line-height: 1.12; margin: 0 0 12px; text-wrap: balance; }
h2 { font-size: 1.4rem; line-height: 1.2; margin: 36px 0 10px; text-wrap: balance; }
h3 { font-size: 1.15rem; line-height: 1.25; margin: 0 0 6px; }
li { margin: 6px 0; }
.muted { color: var(--muted); }
.small { font-size: .875rem; line-height: 1.5; }

/* Pages simples (mentions légales…) et articles */
main { max-width: 720px; margin: 0 auto; padding: 32px 16px 64px; }
.back { margin: 0 0 24px; font-weight: 700; }
.back a { text-decoration: none; }

/* En-tête */
.site {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  max-width: 1080px; margin: 0 auto; padding: 14px 16px;
}
.band { background: var(--forest); color: var(--on-forest); }
.logo {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px;
  color: var(--on-forest); font-weight: 800; text-decoration: none; white-space: nowrap;
}
.logo img { width: 32px; height: 32px; border-radius: 8px; }
.site nav { display: flex; align-items: center; gap: 16px; }
.site nav a:not(.button) { color: var(--on-forest); font-weight: 700; text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }

/* Boutons */
.button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px;
  padding: 10px 22px; border-radius: 999px;
  background: var(--amber); color: var(--on-amber);
  font-weight: 800; text-decoration: none; transition: transform .15s ease, background-color .15s ease;
}
.button:hover { background: #f7c766; transform: translateY(-1px); }
.button.small-button { min-height: 44px; padding: 6px 16px; font-size: .875rem; }
.site nav a.hide-narrow { display: none; }

/* Bandeau de titre des articles */
.page-hero { max-width: 720px; margin: 0 auto; padding: 28px 16px 40px; }
.page-hero .crumb { margin: 0 0 12px; font-size: .875rem; color: var(--on-forest-muted); }
.page-hero .crumb a { color: inherit; }
.page-hero h1 { margin: 0; color: var(--on-forest); }

/* Accueil : héros */
.hero {
  display: grid; gap: 32px; max-width: 1080px; margin: 0 auto; padding: 32px 16px 0;
  overflow: hidden;
}
.hero h1 { font-size: clamp(2.5rem, 11vw, 3.75rem); line-height: 1.02; color: var(--on-forest); margin: 0 0 18px; }
.hero h1 em { display: block; color: var(--amber); font-weight: 500; }
.hero p { margin: 0 0 24px; font-size: 1.125rem; color: var(--on-forest-muted); max-width: 34em; }
.hero .note { margin: 12px 0 0; font-size: .875rem; }
.phones { position: relative; height: 380px; max-width: 420px; width: 100%; margin: 0 auto; }
.phone {
  position: absolute; width: 58%; padding: 6px; border-radius: 30px; background: #0a1512;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .45), 0 0 0 1px #2a4238;
}
.phone img { border-radius: 24px; }
.phones .back-phone { left: 0; top: 56px; transform: rotate(-6deg); }
.phones .front-phone { right: 0; top: 8px; transform: rotate(4deg); }

/* Accueil : sections */
.section { max-width: 1080px; margin: 0 auto; padding: 56px 16px 0; }
.section > h2 { font-size: clamp(1.75rem, 6vw, 2.5rem); margin: 0 0 8px; }
.section > .lead { margin: 0 0 28px; color: var(--muted); max-width: 40em; }
.grid { display: grid; gap: 16px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 22px; }
.card p { margin: 0; color: var(--muted); }
.card .icon {
  display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin-bottom: 14px;
  border-radius: 12px; background: var(--forest); color: var(--amber);
}
.icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.plus {
  display: grid; gap: 28px; align-items: center; margin-top: 56px; padding: 28px 20px 0; overflow: hidden;
  background: var(--forest); color: var(--on-forest); border-radius: 24px;
}
.plus h2 { margin: 0 0 10px; font-size: clamp(1.6rem, 5vw, 2.25rem); }
.plus p { margin: 0 0 16px; color: var(--on-forest-muted); }
.plus a:not(.button) { color: var(--amber); font-weight: 700; }
.plus .phone { position: static; width: 220px; margin: 0 auto -60px; }

.price { font-family: Fraunces, Georgia, serif; font-size: 1.75rem; font-weight: 600; line-height: 1.2; margin: 2px 0 12px; }
.card ul { margin: 0; padding-left: 20px; color: var(--muted); }
.card.featured { border: 2px solid var(--primary); }

.links { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.links li { margin: 0; }
.links a {
  display: flex; align-items: center; min-height: 52px; padding: 12px 18px; border-radius: 14px;
  background: var(--surface); border: 1px solid var(--line); color: var(--text); font-weight: 700; text-decoration: none;
  transition: border-color .15s ease;
}
.links a:hover { border-color: var(--primary); }

.foot { max-width: 1080px; margin: 64px auto 0; padding: 24px 16px 40px; border-top: 1px solid var(--line); font-size: .875rem; color: var(--muted); }
.foot ul { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 20px; margin: 0 0 8px; padding: 0; }
.foot a { display: inline-flex; align-items: center; min-height: 32px; }
.foot p { margin: 0; }

/* Articles */
.alert {
  margin: 20px 0; padding: 16px 18px;
  background: var(--danger-bg); border-left: 5px solid var(--danger); border-radius: 12px;
}
.alert a { color: inherit; font-weight: 800; }
.contacts { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 10px; }
.contacts li { margin: 0; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.contacts .muted { display: block; font-size: .9rem; line-height: 1.45; margin-top: 2px; }
ol.steps { list-style: none; counter-reset: step; margin: 12px 0 0; padding: 0; }
ol.steps li { counter-increment: step; position: relative; padding-left: 44px; margin: 14px 0; min-height: 32px; }
ol.steps li::before {
  content: counter(step); position: absolute; left: 0; top: 0; width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--forest); color: var(--amber); font-weight: 800; font-size: .9rem;
}
.cta { margin: 40px 0; padding: 24px; background: var(--forest); color: var(--on-forest); border-radius: 20px; }
.cta strong { display: block; font-family: Fraunces, Georgia, serif; font-size: 1.4rem; font-weight: 600; line-height: 1.2; }
.cta p { margin: 10px 0 18px; color: var(--on-forest-muted); }
.table { overflow-x: auto; margin-top: 12px; }
table { width: 100%; border-collapse: collapse; background: var(--surface); border-radius: 12px; overflow: hidden; }
th, td { padding: 12px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
th { font-weight: 800; }

@media (min-width: 480px) {
  .site nav a.hide-narrow { display: inline-flex; }
}
@media (min-width: 720px) {
  h1 { font-size: 2.6rem; }
  .grid.three { grid-template-columns: repeat(3, 1fr); }
  .grid.two { grid-template-columns: repeat(2, 1fr); }
  .links { grid-template-columns: repeat(2, 1fr); }
  .plus { grid-template-columns: 1fr 260px; padding: 40px 40px 0; }
}
@media (min-width: 900px) {
  .hero { grid-template-columns: 1.1fr 1fr; align-items: center; padding-top: 48px; }
  .hero > div:first-child { padding-bottom: 56px; }
  .phones { height: 520px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
