:root {
  --bg: #0F0E0C;
  --bg-alt: #161412;
  --ink: #E8D5B7;
  --bright: #F4E8D2;
  --accent: #D9A876;
  --accent-bright: #EAC9A5;
  --mute: #8C8378;
  --rule: rgba(232, 213, 183, 0.15);
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --max-text: 40rem;
  --max-page: 80rem;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background: var(--ink);
  color: var(--bg);
}

:focus-visible {
  outline: 2px solid var(--bright);
  outline-offset: 4px;
  border-radius: 1px;
}

main {
  max-width: var(--max-page);
  margin: 0 auto;
  padding: 0 1.5rem;
}

section {
  padding: 5rem 0;
  border-bottom: 1px solid var(--rule);
}

section:last-of-type {
  border-bottom: none;
}

.band-before {
  border-bottom: none;
}

h1,
h2,
h3 {
  font-family: var(--sans);
  margin: 0;
  color: var(--ink);
}

h1 {
  font-size: clamp(3.5rem, 13vw, 9rem);
  line-height: 0.95;
  text-transform: uppercase;
  letter-spacing: -0.025em;
  font-weight: 800;
  margin-bottom: 2.5rem;
}

h2 {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0 0 3.5rem;
}

h3 {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  margin: 0 0 0.5rem;
}

p {
  margin: 0 0 1rem;
  max-width: var(--max-text);
  color: var(--ink);
}

a {
  color: var(--accent);
  transition: color 0.2s;
}

a:hover {
  color: var(--accent-bright);
}

/* ---------- Hero ---------- */

.hero {
  min-height: 80vh;
  padding: 5rem 0 4rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-bottom: none;
}

.tagline {
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  font-weight: 400;
  color: var(--mute);
  margin-bottom: 3.5rem;
  max-width: var(--max-text);
  line-height: 1.55;
}

/* ---------- CTA group ---------- */

.cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem 3rem;
  align-items: center;
}

.cta {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  font-family: var(--sans);
  text-decoration: none;
  padding: 0.5rem 0;
  font-weight: 500;
  text-transform: uppercase;
  transition: color 0.2s;
}

.cta::after {
  content: "→";
  font-size: 1.1rem;
  letter-spacing: 0;
  transition: transform 0.25s ease-out;
  display: inline-block;
}

.cta:hover::after {
  transform: translateX(8px);
}

.cta-primary {
  color: var(--accent);
  letter-spacing: 0.18em;
  font-size: 0.85rem;
}

.cta-primary:hover {
  color: var(--accent-bright);
}

.cta-secondary {
  color: var(--mute);
  letter-spacing: 0.14em;
  font-size: 0.72rem;
}

.cta-secondary::after {
  font-size: 0.95rem;
}

.cta-secondary:hover {
  color: var(--accent);
}

/* ---------- Placeholders (hero image + portes) ---------- */

.placeholder {
  background-color: var(--bg-alt);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border: 1px solid var(--rule);
  width: 100%;
  display: block;
}

.placeholder-hero {
  aspect-ratio: 16 / 9;
}

.placeholder-band {
  aspect-ratio: 16 / 9;
}

/* Visuels câblés — déposer le fichier dans images/ (cf. images/README.md) */
.img-hero {
  background-image: url("images/hero.jpg");
}

.img-bandeau-1 {
  background-image: url("images/bandeau-1.jpg");
}

.img-bandeau-2 {
  background-image: url("images/bandeau-2.jpg");
}

.hero-image,
.section-image {
  max-width: var(--max-page);
  margin: 0 auto;
}

.hero-image {
  margin-bottom: 5rem;
}

/* ---------- À qui ça s'adresse (grille 2×2) ---------- */

.grid-2x2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem 3rem;
}

.travail {
  border-top: 1px solid var(--rule);
  padding-top: 1.5rem;
}

.travail h3 {
  font-family: var(--sans);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-transform: none;
  margin-bottom: 0.65rem;
  color: var(--ink);
}

.travail p {
  color: var(--mute);
  font-size: 0.95rem;
  line-height: 1.65;
  margin: 0;
  max-width: none;
}

/* ---------- Portes & intros de section ---------- */

.portes-intro,
.travaux-intro {
  color: var(--mute);
  font-size: 1.05rem;
  max-width: var(--max-text);
  margin: 0 0 3.5rem;
}

.portes-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

.porte {
  border-top: 1px solid var(--rule);
  padding-top: 1.5rem;
}

.porte-pour-qui {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.85rem;
}

.porte h3 {
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-transform: none;
  margin-bottom: 0.65rem;
  color: var(--ink);
}

.porte-body p:last-child {
  color: var(--mute);
  font-size: 0.95rem;
  line-height: 1.65;
  margin: 0;
  max-width: none;
}

.portes-note {
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.7;
  max-width: var(--max-text);
  margin: 4.5rem 0 2rem;
}

/* ---------- Tarifs ---------- */

.tarifs-note {
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.7;
  max-width: var(--max-text);
  margin: 0 0 1rem;
}

/* ---------- Process (numbered list) ---------- */

.numbered-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.numbered-list li {
  display: flex;
  align-items: flex-start;
  gap: 2.5rem;
  padding: 2rem 0;
  border-bottom: 1px solid var(--rule);
}

.numbered-list li:last-child {
  border-bottom: none;
}

.num {
  font-family: var(--sans);
  font-size: 0.75rem;
  color: var(--mute);
  letter-spacing: 0.15em;
  min-width: 2.5rem;
  font-weight: 500;
  padding-top: 0.15rem;
}

.process-list li > div {
  flex: 1;
  max-width: var(--max-text);
}

.process-list h3 {
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 0 0 0.5rem;
  color: var(--ink);
}

.process-list p {
  color: var(--mute);
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.65;
}

/* ---------- À propos ---------- */

.bio p {
  max-width: var(--max-text);
  margin-bottom: 1.5rem;
  font-size: 1rem;
  line-height: 1.75;
  color: var(--ink);
}

.bio p:last-child {
  margin-bottom: 0;
}

/* ---------- FAQ ---------- */

.qa {
  padding: 2rem 0;
  border-bottom: 1px solid var(--rule);
  max-width: var(--max-text);
}

.qa:last-child {
  border-bottom: none;
}

.qa h3 {
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  text-transform: none;
  margin-bottom: 0.75rem;
  color: var(--ink);
}

.qa p {
  margin: 0;
  color: var(--mute);
  line-height: 1.7;
}

/* ---------- CTA final ---------- */

.cta-final {
  padding: 7rem 0;
}

.cta-final .lede {
  font-size: clamp(1.85rem, 4vw, 2.85rem);
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 3rem;
  max-width: var(--max-text);
  text-transform: uppercase;
}

/* ---------- Footer ---------- */

footer {
  max-width: var(--max-page);
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
  font-size: 0.85rem;
  color: var(--mute);
  border-top: 1px solid var(--rule);
}

footer p {
  margin: 0 0 0.5rem;
  max-width: none;
}

.fine {
  font-size: 0.75rem;
  line-height: 1.5;
  opacity: 0.9;
}

.fine a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: var(--rule);
  text-underline-offset: 3px;
}

.fine a:hover {
  color: var(--accent-bright);
  text-decoration-color: var(--accent-bright);
}

/* ---------- Desktop refinements ---------- */

@media (min-width: 720px) {
  body {
    font-size: 18px;
  }

  main {
    padding: 0 3rem;
  }

  section {
    padding: 7rem 0;
  }

  .hero {
    min-height: 85vh;
    padding: 7rem 0 5rem;
  }

  .hero-image {
    margin-bottom: 7rem;
  }

  .grid-2x2 {
    grid-template-columns: 1fr 1fr;
    gap: 5rem 4rem;
  }

  footer {
    padding: 4rem 3rem 5rem;
  }
}

@media (min-width: 960px) {
  main {
    padding: 0 4rem;
  }

  .hero {
    padding: 9rem 0 6rem;
  }

  .portes-list {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 4rem 3rem;
  }
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  * {
    transition: none !important;
  }
}

/* ---------- Legal pages (mentions légales, CGV) ---------- */

body.legal main {
  max-width: var(--max-text);
  padding: 4rem 1.5rem 2rem;
}

body.legal .back {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mute);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 4rem;
  transition: color 0.2s;
}

body.legal .back::before {
  content: "←";
  display: inline-block;
  transition: transform 0.25s ease-out;
}

body.legal .back:hover {
  color: var(--accent);
}

body.legal .back:hover::before {
  transform: translateX(-6px);
}

body.legal h1 {
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.1;
  text-transform: none;
  margin: 0 0 0.75rem;
}

body.legal .meta {
  font-size: 0.78rem;
  color: var(--mute);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 3rem;
}

body.legal section {
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--rule);
}

body.legal section:last-of-type {
  border-bottom: none;
}

body.legal h2 {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0 0 1.25rem;
}

body.legal h3 {
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink);
  margin: 1.75rem 0 0.6rem;
}

body.legal p,
body.legal li {
  font-size: 0.97rem;
  line-height: 1.75;
  color: var(--ink);
  max-width: none;
}

body.legal p {
  margin: 0 0 1.1rem;
}

body.legal ul,
body.legal ol {
  padding-left: 1.25rem;
  margin: 0 0 1.1rem;
}

body.legal li {
  margin-bottom: 0.5rem;
}

body.legal strong {
  font-weight: 600;
  color: var(--bright);
}

body.legal footer {
  border-top: 1px solid var(--rule);
  padding: 3rem 0 0;
  margin-top: 4rem;
}

@media (min-width: 720px) {
  body.legal main {
    padding: 6rem 3rem 3rem;
  }

  body.legal section {
    padding: 3rem 0;
  }

  body.legal footer {
    padding: 4rem 0 0;
  }
}
