/* Pages légales AML : feuille statique (sans Tailwind CDN) reprenant la charte de index.html.
   Navy #0d1b3e, violet #5b2d8e / #7340aa, or #c9a84c, ivoire #f5f3ef.
   Titres : Cormorant Garamond ; texte : DM Sans. */

:root {
  --navy: #0d1b3e;
  --navy-mid: #0f2255;
  --navy-50: #e8ecf4;
  --violet: #5b2d8e;
  --violet-400: #7340aa;
  --gold: #c9a84c;
  --gold-light: #e5ca7e;
  --ivory: #f5f3ef;
  --ink: #0d1b3e;
  --ink-soft: #3a4560;
  --line: #ddd6c6;
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--navy-50);
  /* Même fond que .geo-bg de la page d'accueil */
  background-color: var(--navy);
  background-image:
    radial-gradient(ellipse 80% 60% at 20% 10%, rgba(91,45,142,0.35) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 80% 80%, rgba(91,45,142,0.20) 0%, transparent 55%);
  background-attachment: fixed;
}

a { color: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

/* Lien d'évitement */
.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--gold); color: var(--navy); font-weight: 500;
  padding: .6rem 1rem; border-radius: 999px; text-decoration: none;
}
.skip-link:focus { top: .75rem; }

/* ── En-tête (identique à .nav-blur de l'accueil) ── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  background: rgba(13,27,62,0.82);
  border-bottom: 1px solid rgba(201,168,76,0.18);
}
.container { max-width: 72rem; margin: 0 auto; padding: 0 1rem; }
@media (min-width: 640px) { .container { padding: 0 1.5rem; } }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 4rem; }

.brand { display: flex; align-items: center; gap: .75rem; text-decoration: none; }
.brand-mark {
  width: 2.25rem; height: 2.25rem; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(201,168,76,0.6);
  background: linear-gradient(135deg, var(--violet), var(--navy));
}
.brand-mark svg { width: 1.25rem; height: 1.25rem; fill: var(--gold); }
.brand-name { font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; color: #fff; letter-spacing: .025em; }
.brand-name span { color: rgba(201,168,76,0.8); font-weight: 400; font-size: 1rem; }

.main-nav { display: none; align-items: center; gap: 1.75rem; font-size: .875rem; font-weight: 300; }
.main-nav a:not(.btn-cta) { color: rgba(232,236,244,0.8); text-decoration: none; transition: color .2s; }
.main-nav a:not(.btn-cta):hover { color: var(--gold); }
.header-cta-mobile { display: inline-block; }
@media (min-width: 768px) {
  .main-nav { display: flex; }
  .btn-cta.header-cta-mobile { display: none; }
}

.btn-cta {
  display: inline-block; color: #fff; text-decoration: none;
  font-size: .875rem; font-weight: 500; padding: .5rem 1.25rem; border-radius: 999px;
  background: linear-gradient(135deg, var(--violet) 0%, var(--violet-400) 100%);
  border: 1px solid rgba(201,168,76,0.4);
  transition: transform .2s, box-shadow .2s, filter .2s;
}
.btn-cta:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(91,45,142,0.5); filter: brightness(1.1); }
@media (prefers-reduced-motion: reduce) { .btn-cta, .btn-cta:hover { transition: none; transform: none; } }

/* ── Bandeau titre ── */
.legal-hero { text-align: center; padding: 3.5rem 1rem 2.5rem; }
.eyebrow {
  margin: 0 0 1rem; color: rgba(201,168,76,0.85);
  font-size: .75rem; letter-spacing: .2em; text-transform: uppercase;
}
/* Filets dorés de part et d'autre (même ornement que l'accueil) */
.eyebrow::before, .eyebrow::after {
  content: ''; display: inline-block; width: 40px; height: 1px;
  background: var(--gold); vertical-align: middle; margin: 0 12px;
}
.legal-hero h1 {
  margin: 0; font-family: var(--font-display); font-weight: 600; color: #fff;
  font-size: clamp(2.25rem, 6vw, 3.5rem); line-height: 1.1;
}

/* Navigation entre pages légales (onglets) */
.legal-tabs { margin-top: 1.75rem; }
.legal-tabs ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem;
}
.legal-tabs a {
  display: inline-block; text-decoration: none; font-size: .85rem;
  color: rgba(232,236,244,0.8); padding: .45rem 1rem; border-radius: 999px;
  border: 1px solid rgba(201,168,76,0.25); transition: color .2s, border-color .2s, background .2s;
}
.legal-tabs a:hover { color: var(--gold); border-color: rgba(201,168,76,0.6); }
.legal-tabs a[aria-current="page"] {
  color: #fff; border-color: rgba(201,168,76,0.6);
  background: linear-gradient(135deg, var(--violet) 0%, var(--violet-400) 100%);
}

/* ── Carte de contenu (fond ivoire, comme .section-light) ── */
.legal-body { padding: 0 1rem 4rem; }
.legal-card {
  max-width: 48rem; margin: 0 auto;
  background: var(--ivory); color: var(--ink);
  border-top: 3px solid var(--violet);
  border-radius: 1rem; padding: 2rem 1.25rem 2.5rem;
  box-shadow: 0 20px 40px rgba(2,5,12,0.35);
  line-height: 1.7; font-size: 1rem;
}
@media (min-width: 640px) { .legal-card { padding: 2.75rem 3rem 3rem; } }

.legal-card h2 {
  font-family: var(--font-display); font-weight: 600; color: var(--navy);
  font-size: 1.6rem; line-height: 1.2; margin: 2.25rem 0 .75rem;
  padding-bottom: .4rem; border-bottom: 1px solid rgba(201,168,76,0.45);
}
.legal-card h2:first-child { margin-top: 0; }
/* Ancres (#cookies) : le titre ne passe pas sous l'en-tête collant */
.legal-card h2[id] { scroll-margin-top: 5.5rem; }
.legal-card p, .legal-card ul { margin: 0 0 1rem; }
.legal-card ul { padding-left: 1.25rem; }
.legal-card li { margin-bottom: .35rem; }
.legal-card li::marker { color: var(--violet); }
.legal-card strong { color: var(--navy); }
/* Liens sur fond clair : violet souligné (l'or échoue au contraste sur l'ivoire) */
.legal-card a { color: var(--violet); text-decoration: underline; text-underline-offset: 3px; }
.legal-card a:hover { color: var(--violet-400); }
.legal-card :focus-visible { outline-color: var(--violet); }
.legal-card code {
  font-size: .875em; background: rgba(91,45,142,0.08); color: var(--violet);
  padding: .1em .35em; border-radius: 4px; word-break: break-word;
}

/* Champ à compléter */
.todo {
  background: rgba(229,202,126,0.45); color: var(--ink);
  padding: 0 .3em; border-radius: 3px;
  box-decoration-break: clone; -webkit-box-decoration-break: clone;
}

/* Encadré d'information */
.notice {
  border-left: 3px solid var(--gold); background: rgba(91,45,142,0.07);
  color: var(--ink-soft); padding: .9rem 1.1rem; margin: 0 0 1.5rem;
  border-radius: 0 .6rem .6rem 0; font-size: .925rem;
}
.notice strong { color: var(--violet); }

/* Tableaux : conteneur défilable sur mobile */
.table-wrap { overflow-x: auto; margin: 0 0 1.25rem; border-radius: .6rem; border: 1px solid var(--line); }
.table-wrap:focus-visible { outline: 2px solid var(--violet); outline-offset: 2px; }
.legal-card table { border-collapse: collapse; width: 100%; font-size: .925rem; background: #fff; }
.legal-card th, .legal-card td { padding: .65rem .8rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.legal-card tr:last-child td { border-bottom: 0; }
.legal-card th { background: var(--navy); color: var(--navy-50); font-weight: 500; font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; }

.back-link { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(201,168,76,0.45); }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
/* ── Pied de page (commun accueil / pages légales) ── */
.site-footer {
  position: relative; font-family: 'DM Sans', sans-serif; font-size: .875rem;
  color: rgba(232,236,244,0.75); background-color: #0a1632;
  background-image: radial-gradient(ellipse 50% 80% at 90% 20%, rgba(91,45,142,0.22) 0%, transparent 70%);
}
/* Filet doré qui s'estompe sur les bords */
.site-footer::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201,168,76,0.55) 50%, transparent);
}
.site-footer a { color: inherit; text-decoration: none; transition: color .2s; }
.site-footer a:hover, .site-footer a[aria-current="page"] { color: #c9a84c; }
.site-footer a:focus-visible { outline: 2px solid #c9a84c; outline-offset: 3px; border-radius: 4px; }
.footer-wrap { max-width: 72rem; margin: 0 auto; padding: 0 1rem; }
@media (min-width: 640px) { .footer-wrap { padding: 0 1.5rem; } }
.footer-grid { display: grid; gap: 2.5rem; padding-top: 3.5rem; padding-bottom: 3rem; }
@media (min-width: 640px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 3rem; } }

.footer-brand { display: inline-flex; align-items: center; gap: .75rem; }
.footer-brand-mark {
  width: 2.5rem; height: 2.5rem; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(201,168,76,0.6); background: linear-gradient(135deg, #5b2d8e, #0d1b3e);
}
.footer-brand-mark svg { width: 1.25rem; height: 1.25rem; fill: #c9a84c; }
.footer-brand-name { font-family: 'Cormorant Garamond', serif; font-size: 1.5rem; font-weight: 600; color: #fff; letter-spacing: .025em; }
.footer-brand-name span { color: rgba(201,168,76,0.85); font-weight: 400; font-size: 1.125rem; }
.footer-tagline {
  margin: 1rem 0 0; max-width: 17rem; line-height: 1.6;
  font-family: 'Cormorant Garamond', serif; font-style: italic; font-size: 1.125rem; color: rgba(232,236,244,0.8);
}

/* Titres de colonne : même style que les petits titres dorés du site */
.footer-title {
  margin: 0 0 1.25rem; font-family: 'DM Sans', sans-serif; font-size: .75rem; font-weight: 500;
  letter-spacing: .2em; text-transform: uppercase; color: #c9a84c;
}
.footer-title::after { content: ''; display: block; width: 28px; height: 1px; margin-top: .6rem; background: rgba(201,168,76,0.6); }
.footer-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; }

.footer-contact { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.footer-contact li { display: flex; gap: .75rem; align-items: flex-start; line-height: 1.5; }
.footer-icon {
  flex-shrink: 0; width: 2rem; height: 2rem; border-radius: .6rem; display: flex; align-items: center; justify-content: center;
  background: rgba(91,45,142,0.35); color: #c9a84c;
}
.footer-icon svg { width: 1rem; height: 1rem; }
.footer-contact address { font-style: normal; }
.footer-contact a { word-break: break-all; }

.footer-bar { border-top: 1px solid rgba(201,168,76,0.15); background: rgba(4,11,25,0.45); font-size: .75rem; }
.footer-bar-inner { display: flex; flex-direction: column; align-items: center; gap: .75rem; padding-top: 1.25rem; padding-bottom: 1.25rem; text-align: center; }
.footer-bar p { margin: 0; color: rgba(232,236,244,0.7); }
.site-footer .footer-bar a { color: rgba(201,168,76,0.95); }
.site-footer .footer-bar a:hover { color: #e5ca7e; }
@media (min-width: 640px) { .footer-bar-inner { flex-direction: row; justify-content: space-between; text-align: left; } }
