/* === Styles communs aux pages légales (modalités, confidentialité) ===
   Reprend la palette et la typographie de pour-mere.html. */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Manrope', system-ui, -apple-system, sans-serif;
  color: var(--text);
  line-height: 1.7;
  background: var(--bg);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
img, video { max-width: 100%; display: block; }

:root {
  --primary: #37465A;
  --primary-dark: #1F2A3A;
  --primary-light: #DDE4EA;
  --primary-lighter: #F0F4F8;
  --gold: #B8923D;
  --gold-light: #D4B989;
  --gold-soft: #EFE2C2;
  --ink: #1F2A3A;
  --text: #1F2A3A;
  --text-light: #5C6B85;
  --bg: #FAF4EB;
  --bg-alt: #DDE4EA;
  --white: #FFFFFF;
  --rule: #D8C5A6;
  --shadow: 0 2px 16px rgba(31,20,16,0.07);
  --shadow-lg: 0 12px 32px rgba(31,20,16,0.12);
}

h1, h2, h3, h4 {
  font-family: 'Fraunces', 'Georgia', serif;
  font-weight: 500;
  font-variation-settings: "opsz" 96, "SOFT" 50;
  color: var(--ink);
  letter-spacing: -.01em;
  line-height: 1.2;
}
h1 { font-size: clamp(2.2rem, 5.4vw, 3.4rem); line-height: 1.06; font-weight: 400; }
h2 { font-size: clamp(1.5rem, 2.8vw, 1.95rem); margin: 0 0 1rem; }
h3 { font-size: 1.15rem; font-weight: 600; font-family: 'Manrope', sans-serif; letter-spacing: 0; margin: 0 0 0.6rem; }
p { margin-bottom: 1.1em; }
em { font-style: italic; }

.container { max-width: 920px; margin: 0 auto; padding: 0 1.5rem; }
.container-wide { max-width: 1100px; margin: 0 auto; padding: 0 1.5rem; }

/* === Header avec vidéo background ============= */
.legal-hero {
  position: relative;
  color: white;
  overflow: hidden;
  isolation: isolate;
  padding: 5.5rem 0;
  /* Block normal (ni flex ni grid) pour que le .container interne se centre
     strictement de la meme facon que le .container du <main class="legal-content">.
     Centrage vertical du contenu via le padding symetrique. */
}
.legal-hero__media {
  position: absolute; inset: 0;
  z-index: -2;
  background: var(--ink);
}
.legal-hero__media video,
.legal-hero__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center center;
}
.legal-hero__overlay {
  position: absolute; inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(31,20,16,0.55) 0%, rgba(31,20,16,0.78) 100%),
    radial-gradient(ellipse at 30% 50%, rgba(139,30,30,0.25), transparent 60%);
}
.legal-hero__breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 1.4rem;
}
.legal-hero__breadcrumb a {
  display: inline-flex;
  align-items: center;
  transition: opacity 0.2s ease;
  opacity: 0.95;
}
.legal-hero__breadcrumb a:hover { opacity: 1; }
.legal-hero__breadcrumb img {
  height: 66px;
  width: auto;
  display: block;
  filter: drop-shadow(0 4px 16px rgba(0,0,0,0.35));
}
.legal-hero__breadcrumb::after {
  content: "/";
  font-family: 'Fraunces', 'Georgia', serif;
  font-style: italic;
  font-size: 1.4rem;
  color: var(--gold-light);
  opacity: 0.6;
}
.legal-hero h1 {
  color: white;
  font-style: italic;
  font-weight: 400;
  margin: 0;
}
.legal-hero__sub {
  margin: 1rem 0 0;
  font-family: 'Manrope', sans-serif;
  font-size: 0.95rem;
  color: rgba(255,255,255,0.85);
  letter-spacing: 0.02em;
  max-width: 60ch;
}

/* === Contenu article ========================= */
.legal-content {
  padding: 4rem 0 5rem;
}
.legal-content h2 {
  font-family: 'Fraunces', 'Georgia', serif;
  font-size: clamp(1.4rem, 2.4vw, 1.75rem);
  color: var(--primary-dark);
  margin: 2.8rem 0 1.2rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--rule);
  font-style: italic;
  font-weight: 500;
}
.legal-content h2:first-of-type { margin-top: 0; padding-top: 0; border-top: 0; }
.legal-content h3 {
  font-family: 'Manrope', sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
  margin: 1.6rem 0 0.6rem;
}
.legal-content p {
  font-size: 1rem;
  color: var(--text);
  line-height: 1.75;
  max-width: 70ch;
}
.legal-content ul, .legal-content ol {
  margin: 0 0 1.2rem 1.6rem;
  padding: 0;
}
.legal-content li {
  margin-bottom: 0.55rem;
  line-height: 1.7;
  max-width: 70ch;
}
.legal-content a {
  color: var(--primary);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  word-break: break-word;
}
.legal-content a:hover { color: var(--primary-dark); }
.legal-content strong { font-weight: 700; }
.legal-content .article {
  margin-bottom: 1.4rem;
}
.legal-content .article p {
  margin-bottom: 0.7rem;
}
.legal-content .article-num {
  font-family: 'Fraunces', 'Georgia', serif;
  font-style: italic;
  font-weight: 500;
  color: var(--gold);
  font-size: 1.05rem;
  margin-right: 0.4rem;
}
.legal-content .legal-meta {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--rule);
  color: var(--text-light);
  font-size: 0.92rem;
  font-style: italic;
}
.legal-content .legal-meta address {
  font-style: normal;
  margin-top: 0.5rem;
  line-height: 1.7;
}

/* === Footer (identique pour-mere.html) ======= */
footer.legal-footer {
  background: var(--ink);
  color: rgba(255,255,255,0.7);
  padding: 4rem 0 1.5rem;
  font-size: 0.92rem;
  line-height: 1.6;
}
footer.legal-footer a { color: rgba(255,255,255,0.75); transition: color 0.2s; }
footer.legal-footer a:hover { color: white; text-decoration: underline; }
.legal-footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 3rem;
  align-items: start;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.legal-footer__brand { max-width: 420px; }
.legal-footer__logo { display: inline-block; margin-bottom: 1.4rem; }
.legal-footer__logo img { height: 56px; width: auto; display: block; }
.legal-footer__brand p { color: rgba(255,255,255,0.7); font-size: 0.92rem; margin: 0; }
.legal-footer__col h4 {
  font-family: 'Manrope', sans-serif;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 1.1rem;
}
.legal-footer__col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.6rem; }
.legal-footer__bottom {
  padding-top: 1.8rem;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; align-items: center;
}
.legal-footer__tagline {
  font-family: 'Fraunces', 'Georgia', serif;
  font-style: italic;
  font-size: 1.05rem;
  color: var(--gold-light);
  margin: 0;
}
.legal-footer__copy { font-size: 0.78rem; color: rgba(255,255,255,0.5); margin: 0; }

/* === Reduce motion ============================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .legal-hero__media video { display: none; }
}

/* === Responsive =============================== */
@media (max-width: 768px) {
  body { font-size: 16.5px; }
  .legal-hero { padding: 4rem 0; }
  .legal-hero h1 { font-size: clamp(1.8rem, 7vw, 2.4rem); }
  .legal-content { padding: 2.8rem 0 3.5rem; }
  .legal-content h2 { font-size: 1.4rem; margin: 2.2rem 0 1rem; padding-top: 1.2rem; }
  .legal-footer__grid { grid-template-columns: 1fr; gap: 2rem; }
  .legal-footer__bottom { flex-direction: column; align-items: flex-start; }
  footer.legal-footer { padding: 3rem 0 1.5rem; }
}
