@font-face {
  font-family: 'Cinzel';
  src: url('assets/fonts/cinzel-700.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #0f0f0f;
  --surface: #1a1a1a;
  --border: #2a2a2a;
  --text: #e5e5e5;
  --muted: #888888;
  --gold: #d4a843;

  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 40px;
  --space-5: 64px;
  --space-6: 96px;

  --radius: 12px;
  --max-width: 1120px;
  --font-title: 'Cinzel', Georgia, 'Times New Roman', serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--font-title); font-weight: 700; line-height: 1.2; }
h1 { font-size: clamp(32px, 6vw, 56px); }
h2 { font-size: clamp(26px, 4vw, 38px); }
h3 { font-size: 20px; }

a { color: inherit; }

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

.container { width: 100%; max-width: var(--max-width); margin: 0 auto; padding: 0 var(--space-3); }

.section { padding: var(--space-6) 0; border-top: 1px solid var(--border); }

.reveal { opacity: 0; transform: translateY(12px); transition: opacity 0.5s ease, transform 0.5s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

.eyebrow {
  font-size: 14px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--space-2);
}

.lead { color: var(--muted); font-size: 18px; }

/* --- Header --- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(15, 15, 15, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: var(--space-3); }
.header__logo img { height: 36px; width: auto; }
.header__nav { display: flex; align-items: center; gap: var(--space-3); }
.header__nav a { text-decoration: none; font-size: 16px; color: var(--text); }
.header__nav a:hover { color: var(--gold); }
.header__burger { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.header__burger span { display: block; width: 24px; height: 2px; background: var(--text); margin: 5px 0; }

/* --- Boutons --- */
.btn {
  display: inline-block;
  padding: 14px 26px;
  border-radius: var(--radius);
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.btn--primary { background: var(--gold); color: #0f0f0f; }
.btn--primary:hover { background: #e0b954; }
.btn--ghost { border-color: var(--border); color: var(--text); }
.btn--ghost:hover { border-color: var(--gold); color: var(--gold); }

/* Accessibilité clavier */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}
.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--gold); color: #0f0f0f; padding: 12px 18px; z-index: 100;
}
.skip-link:focus { left: 8px; top: 8px; }

/* --- Hero --- */
.hero {
  position: relative;
  min-height: calc(100svh - 72px);
  display: flex;
  align-items: center;
  text-align: center;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 35%, rgba(212, 168, 67, 0.12), transparent 60%);
  pointer-events: none;
}
.hero__inner { position: relative; display: flex; flex-direction: column; align-items: center; gap: var(--space-3); padding: var(--space-5) 0; }
.hero__mark { opacity: 0.9; }
.hero__sub { max-width: 620px; color: var(--muted); font-size: 19px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: var(--space-2); justify-content: center; }
.hero__badges { list-style: none; display: flex; flex-wrap: wrap; gap: var(--space-3); justify-content: center; margin-top: var(--space-3); }
/* 17px et non 15 : ces badges portent la mention ORIAS, du contenu factuel, pas du chrome. */
.hero__badges li { font-size: 17px; color: var(--muted); padding-left: 20px; position: relative; }
.hero__badges li::before { content: '◆'; position: absolute; left: 0; color: var(--gold); font-size: 11px; top: 4px; }

/* --- Constat --- */
.constat__text { max-width: 720px; margin-top: var(--space-3); }
.constat__points { list-style: none; display: flex; flex-wrap: wrap; gap: var(--space-4); margin-top: var(--space-4); }
.constat__points li { position: relative; padding-left: 20px; font-weight: 600; }
.constat__points li::before { content: '◆'; position: absolute; left: 0; color: var(--gold); font-size: 11px; top: 6px; }

/* --- Étapes --- */
.steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-3); margin-top: var(--space-4); }
.steps__item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: var(--space-3); }
.steps__num { display: block; font-family: var(--font-title); font-size: 40px; color: var(--gold); line-height: 1; margin-bottom: var(--space-2); }
.steps__item h3 { margin-bottom: var(--space-1); }
.steps__item p { color: var(--muted); }

/* --- Grille de cartes --- */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-3); margin-top: var(--space-4); }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: var(--space-3); }
.card h3 { color: var(--gold); margin-bottom: var(--space-1); }
.card p { color: var(--muted); }
.expertises__legal { margin-top: var(--space-3); color: var(--muted); }

/* --- À propos --- */
.apropos { display: grid; grid-template-columns: minmax(260px, 420px) 1fr; gap: var(--space-5); align-items: center; }
.apropos__media img { border-radius: var(--radius); border: 1px solid var(--border); object-fit: cover; }
.apropos__creds { list-style: none; margin-top: var(--space-3); }
.apropos__creds li { padding: 10px 0; border-bottom: 1px solid var(--border); color: var(--muted); }

@media (max-width: 768px) {
  .header__burger { display: block; }
  .header__nav {
    position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--surface); border-bottom: 1px solid var(--border);
    padding: var(--space-2); display: none;
  }
  .header__nav.is-open { display: flex; }
  .header__nav a { padding: 14px 8px; }
  .header__nav .btn { text-align: center; margin-top: var(--space-1); }
  .steps, .grid { grid-template-columns: 1fr; }
  .apropos { grid-template-columns: 1fr; gap: var(--space-3); }
  .constat__points { gap: var(--space-2); flex-direction: column; }
  .section { padding: var(--space-5) 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* --- Avis --- */
.avis__score { margin-top: var(--space-3); font-size: 18px; color: var(--gold); }
.avis__card .avis__text { color: var(--text); }
.avis__stars { color: var(--gold); letter-spacing: 2px; margin-bottom: var(--space-1); }
.avis__author { margin-top: var(--space-2); color: var(--muted); }
.avis__link { color: var(--gold); }

/* --- Contact --- */
.section--contact { background: var(--surface); }
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-5); align-items: start; }
.contact__direct { list-style: none; margin-top: var(--space-3); }
.contact__direct li { padding: 8px 0; color: var(--muted); }
.contact__direct a { color: var(--gold); text-decoration: none; }

.contact__form .row { display: flex; gap: var(--space-2); }
.contact__form .row .field { flex: 1; min-width: 0; }
.field { margin-bottom: var(--space-2); }
.field label { display: block; color: var(--muted); margin-bottom: 6px; }
.field input, .field textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-family: inherit;
  font-size: 17px;
  padding: 13px 14px;
}
.field input:focus, .field textarea:focus { outline: 2px solid var(--gold); outline-offset: 1px; border-color: var(--gold); }
.field--hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Consentement RGPD et messages d'erreur : du texte que l'utilisateur doit
   pouvoir lire, pas du chrome — plancher 17px comme le reste du corps. */
.consent { display: flex; gap: 10px; align-items: flex-start; color: var(--muted); margin: var(--space-2) 0; }
.consent input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--gold); flex-shrink: 0; }
.consent a { color: var(--gold); }

.form__error { color: #e57373; margin-bottom: var(--space-2); }
#submit-btn[disabled] { opacity: 0.6; cursor: progress; }
.contact__success { grid-column: 1 / -1; text-align: center; padding: var(--space-4); border: 1px solid var(--gold); border-radius: var(--radius); }
.contact__success h3 { color: var(--gold); margin-bottom: var(--space-1); }

@media (max-width: 768px) {
  .contact { grid-template-columns: 1fr; gap: var(--space-4); }
  .contact__form .row { flex-direction: column; gap: 0; }
}

/* --- Footer --- */
.footer { border-top: 1px solid var(--border); padding: var(--space-5) 0 var(--space-3); }
.footer__inner { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: var(--space-4); }
.footer__baseline { color: var(--muted); margin-top: var(--space-2); max-width: 360px; }
.footer__title { color: var(--gold); font-family: var(--font-body); font-size: 17px; font-weight: 600; margin-bottom: var(--space-1); }
/* Le footer porte les coordonnées et le numéro ORIAS : du contenu qu'on doit
   pouvoir lire, donc le plancher 17px s'applique. Seul le copyright descend. */
.footer__inner p { color: var(--muted); }
.footer__inner a { color: var(--muted); }
.footer__inner a:hover { color: var(--gold); }
.footer__legal { margin-top: var(--space-4); padding-top: var(--space-2); border-top: 1px solid var(--border); }
.footer__legal p { color: var(--muted); font-size: 16px; }

/* Pages légales */
.legal { max-width: 760px; margin: 0 auto; padding: var(--space-5) var(--space-3); }
.legal h1 { margin-bottom: var(--space-3); }
.legal h2 { font-size: 22px; margin: var(--space-4) 0 var(--space-1); color: var(--gold); }
.legal p, .legal li { color: var(--muted); margin-bottom: var(--space-1); }
.legal ul { padding-left: 20px; }
.legal__back { display: inline-block; margin-top: var(--space-4); color: var(--gold); }

@media (max-width: 768px) {
  .footer__inner { grid-template-columns: 1fr; gap: var(--space-3); }
}
