/* Feuille de style commune aux pages légales — Live Green Garden 974 */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --forest: #1a2e1a;
  --moss: #2d4a2d;
  --leaf: #4a7c3f;
  --gold: #c8a84e;
  --cream: #f5f0e8;
  --white: #fefefe;
  --text: #2a2a2a;
  --muted: #5f6b5f;
  --line: #ddd5c4;
  --todo-bg: #fff4d6;
  --todo-line: #c8a84e;
}

html { scroll-behavior: smooth; }
body {
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  background: var(--cream);
  line-height: 1.7;
  -webkit-text-size-adjust: 100%;
}

/* En-tête */
.legal-header {
  background: linear-gradient(160deg, #0f1f0f 0%, var(--forest) 55%, var(--moss) 100%);
  padding: 1.4rem 2rem 3.4rem;
  color: var(--white);
}
.legal-header .bar {
  max-width: 860px; margin: 0 auto 2.4rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.legal-header .brand {
  display: inline-flex; align-items: center; gap: 0.8rem;
  color: var(--white); text-decoration: none;
}
.legal-header .brand img {
  width: 46px; height: 46px; object-fit: contain; border-radius: 12px;
  background: rgba(255,255,255,0.96); padding: 0.2rem; flex-shrink: 0;
}
.legal-header .brand strong {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.25rem; font-weight: 700; letter-spacing: 0.01em;
}
.legal-header .brand strong span { color: var(--gold); }
.legal-header .back {
  color: rgba(255,255,255,0.86); text-decoration: none;
  font-size: 0.82rem; font-weight: 500; letter-spacing: 0.04em;
  border: 1px solid rgba(255,255,255,0.24); border-radius: 6px;
  padding: 0.55rem 1.1rem; white-space: nowrap; transition: all 0.25s;
}
.legal-header .back:hover, .legal-header .back:focus-visible {
  background: var(--gold); color: var(--forest); border-color: var(--gold);
}
.legal-header .title { max-width: 860px; margin: 0 auto; }
.legal-header .eyebrow {
  font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.16em;
  color: var(--gold); font-weight: 600; margin-bottom: 0.7rem;
}
.legal-header h1 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(1.9rem, 5vw, 3rem); font-weight: 700; line-height: 1.12;
}
.legal-header .maj {
  margin-top: 0.8rem; font-size: 0.84rem; color: rgba(255,255,255,0.66);
}

/* Corps */
main {
  max-width: 860px; margin: -2rem auto 0; padding: 0 1.2rem 4rem;
}
.sheet {
  background: var(--white); border: 1px solid var(--line);
  border-radius: 14px; padding: clamp(1.4rem, 4vw, 2.8rem);
  box-shadow: 0 18px 48px rgba(26,46,26,0.09);
}
.sheet section + section { margin-top: 2.4rem; }
.sheet h2 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.5rem; color: var(--forest); font-weight: 700;
  padding-bottom: 0.5rem; margin-bottom: 0.9rem;
  border-bottom: 2px solid var(--line);
}
.sheet h3 {
  font-size: 1rem; color: var(--moss); font-weight: 600;
  margin: 1.4rem 0 0.5rem;
}
.sheet p { margin-bottom: 0.85rem; }
.sheet p:last-child { margin-bottom: 0; }
.sheet ul, .sheet ol { margin: 0 0 0.95rem 1.3rem; }
.sheet li { margin-bottom: 0.4rem; }
.sheet a { color: var(--leaf); text-decoration: underline; text-underline-offset: 2px; }
.sheet a:hover, .sheet a:focus-visible { color: var(--forest); }
.sheet strong { color: var(--forest); }

/* Tableau d'identité / données */
table.legal {
  width: 100%; border-collapse: collapse; margin: 0.4rem 0 1rem; font-size: 0.94rem;
}
table.legal th, table.legal td {
  text-align: left; padding: 0.65rem 0.7rem;
  border-bottom: 1px solid var(--line); vertical-align: top;
}
table.legal th {
  width: 38%; color: var(--moss); font-weight: 600; background: rgba(200,168,78,0.06);
}
.tblwrap { overflow-x: auto; }

/* Marqueur "à compléter" — impossible à rater */
.todo {
  display: inline-block; background: var(--todo-bg);
  border: 1px dashed var(--todo-line); border-radius: 5px;
  padding: 0.1rem 0.5rem; font-size: 0.88rem; font-weight: 600;
  color: #7a5c00; white-space: normal;
}
.notice {
  background: var(--todo-bg); border-left: 4px solid var(--todo-line);
  border-radius: 0 8px 8px 0; padding: 0.95rem 1.1rem;
  margin-bottom: 1.8rem; font-size: 0.9rem;
}
.notice strong { color: #7a5c00; }
.recap {
  background: rgba(74,124,63,0.07); border-left: 4px solid var(--leaf);
  border-radius: 0 8px 8px 0; padding: 0.95rem 1.1rem; margin: 1.1rem 0;
  font-size: 0.93rem;
}

/* Pied de page */
.legal-footer {
  background: var(--forest); color: rgba(255,255,255,0.72);
  padding: 2.4rem 1.2rem; text-align: center; font-size: 0.86rem;
}
.legal-footer nav {
  display: flex; gap: 1.4rem; justify-content: center; flex-wrap: wrap;
  margin-bottom: 1rem;
}
.legal-footer a { color: rgba(255,255,255,0.86); text-decoration: none; }
.legal-footer a:hover, .legal-footer a:focus-visible { color: var(--gold); text-decoration: underline; }
.legal-footer .tel { color: var(--gold); font-weight: 600; text-decoration: none; }

:where(a, button):focus-visible {
  outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px;
}

@media (max-width: 560px) {
  .legal-header { padding: 1.1rem 1.1rem 3rem; }
  .legal-header .bar { margin-bottom: 1.8rem; }
  .legal-header .brand strong { font-size: 1.05rem; }
  table.legal th { width: 42%; }
}

@media print {
  .legal-header { background: none; color: #000; padding: 0 0 1rem; }
  .legal-header .bar, .legal-footer nav { display: none; }
  .legal-header h1, .legal-header .eyebrow, .legal-header .maj { color: #000; }
  .sheet { border: 0; box-shadow: none; padding: 0; }
  body { background: #fff; }
  .legal-footer { background: none; color: #000; }
}
