/* ============================================================
   PAGES LÉGALES — refonte V2
   ------------------------------------------------------------
   Feuille commune à mentions-legales.html, CGV.html et
   politique-confidentialite.html. Chargée en dernier sur ces
   trois pages uniquement. Classes préfixées .lg-* : aucune
   collision possible avec les feuilles du développeur.

   Parti pris : ces pages ne sont pas des vitrines, elles sont
   consultées pour trouver une information précise. D'où un
   sommaire ancré à gauche, des lignes courtes (66 caractères)
   et beaucoup de blanc. Même grammaire typographique que le
   reste du site.
   ============================================================ */

body {
  padding-top: 0;
  background-color: #fff;
}

main { padding-top: 0; background: #fff; }


/* ============================================================
   1. BANDEAU DE TITRE
   Plus court que sur les pages commerciales (360px) et sans
   photo : personne n'arrive ici pour être séduit.
   ============================================================ */
.lg-hero {
  position: relative;
  min-height: 340px;
  display: flex;
  align-items: center;
  padding: 150px 48px 56px;
  background-color: #0f1f4a;
  background-image:
    radial-gradient(800px 380px at 88% 10%, rgba(92, 224, 229, 0.16), transparent 62%),
    radial-gradient(700px 400px at 6% 100%, rgba(47, 111, 235, 0.28), transparent 62%),
    linear-gradient(105deg, #0b1738 0%, #132a63 60%, #1b3c86 100%);
  overflow: hidden;
}

.lg-hero-inner {
  max-width: 1180px;
  width: 100%;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.lg-eyebrow {
  font-family: var(--font-primary);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .03em;
  color: #bcd0f5;
  margin-bottom: 14px;
}

.lg-titre {
  font-family: var(--font-heading);
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: #fff;
  margin: 0 0 14px;
  max-width: 700px;
}

.lg-hero-texte {
  font-family: var(--font-primary);
  font-size: 14.5px;
  line-height: 1.6;
  color: #e2e8f7;
  max-width: 560px;
  margin: 0 0 16px;
}

.lg-maj {
  font-family: var(--font-primary);
  font-size: 12.5px;
  color: #9fb6e6;
  margin: 0;
}


/* ============================================================
   2. CORPS : sommaire + texte
   ============================================================ */
.lg-corps {
  max-width: 1180px;
  margin: 0 auto;
  padding: 56px 48px 90px;
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 56px;
  align-items: start;
}

/* --- sommaire --- */
.lg-sommaire { position: sticky; top: 104px; }

.lg-sommaire-titre {
  font-family: var(--font-primary);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--brand-blue);
  margin: 0 0 14px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--brand-blue);
}

.lg-sommaire ol { list-style: none; margin: 0; padding: 0; counter-reset: lgnum; }

.lg-sommaire li { counter-increment: lgnum; }

.lg-sommaire a {
  display: block;
  padding: 8px 0 8px 26px;
  position: relative;
  font-family: var(--font-primary);
  font-size: 13px;
  line-height: 1.4;
  color: #5a6072;
  text-decoration: none;
  border-left: 2px solid transparent;
  transition: color .2s ease, border-color .2s ease;
}

.lg-sommaire a::before {
  content: counter(lgnum);
  position: absolute;
  left: 8px;
  color: #b3b8c7;
  font-size: 11.5px;
  font-weight: 700;
}

.lg-sommaire a:hover { color: var(--brand-blue); }
.lg-sommaire a:hover::before { color: var(--brand-blue); }


/* --- texte --- */
.lg-texte { max-width: 68ch; }

.lg-section {
  padding-top: 8px;
  margin-bottom: 44px;
  /* le titre visé par une ancre ne doit pas passer sous la barre fixe */
  scroll-margin-top: 104px;
}

.lg-section:last-child { margin-bottom: 0; }

.lg-section h2 {
  font-family: var(--font-heading);
  font-size: clamp(20px, 2.4vw, 26px);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: #12151c;
  margin: 0 0 14px;
}

.lg-section h3 {
  font-family: var(--font-heading);
  font-size: 15.5px;
  font-weight: 700;
  color: #12151c;
  margin: 24px 0 8px;
}

.lg-section p,
.lg-section li {
  font-family: var(--font-primary);
  font-size: 14.5px;
  line-height: 1.75;
  color: #3d4356;
}

.lg-section p { margin: 0 0 14px; }
.lg-section p:last-child { margin-bottom: 0; }

.lg-section ul,
.lg-section ol { margin: 0 0 14px; padding-left: 20px; }
.lg-section li { margin-bottom: 7px; }

.lg-section a { color: var(--brand-blue); text-decoration: underline; text-underline-offset: 2px; }
.lg-section strong { color: #12151c; font-weight: 600; }


/* --- tableau d'identification (éditeur, hébergeur) --- */
.lg-fiche {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2px;
  background: rgba(18, 21, 28, 0.08);
  border: 1px solid rgba(18, 21, 28, 0.08);
  border-radius: 14px;
  overflow: hidden;
  margin: 0 0 16px;
}

.lg-fiche-item { background: #f6f7fb; padding: 15px 17px; }

.lg-fiche-cle {
  display: block;
  font-family: var(--font-primary);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: #8a90a3;
  margin-bottom: 5px;
}

.lg-fiche-val {
  display: block;
  font-family: var(--font-primary);
  font-size: 14px;
  line-height: 1.5;
  color: #12151c;
  font-weight: 500;
  word-break: break-word;
}

.lg-fiche-val a { color: var(--brand-blue); text-decoration: none; }
.lg-fiche-val a:hover { text-decoration: underline; }


/* --- encadré « à compléter » ---
   Volontairement voyant : ces informations sont obligatoires,
   il ne faut pas qu'elles passent inaperçues avant la mise en ligne. */
.lg-arenseigner {
  display: block;
  padding: 3px 9px;
  border-radius: 6px;
  background: rgba(214, 158, 46, 0.14);
  border: 1px dashed rgba(180, 120, 20, 0.55);
  color: #8a6212;
  font-family: var(--font-primary);
  font-size: 12.5px;
  font-weight: 600;
}

.lg-note {
  padding: 16px 18px;
  border-radius: 14px;
  background: #f6f7fb;
  border-left: 3px solid var(--brand-blue);
  margin: 0 0 16px;
}

.lg-note p { font-size: 13.5px; color: #3d4356; margin: 0; }


/* --- bloc de contact en fin de page --- */
.lg-fin {
  margin-top: 44px;
  padding: 26px 26px 28px;
  border-radius: 18px;
  background: #f6f7fb;
  border: 1px solid rgba(18, 21, 28, 0.05);
}

.lg-fin h2 {
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 700;
  color: #12151c;
  margin: 0 0 8px;
}

.lg-fin p {
  font-family: var(--font-primary);
  font-size: 13.5px;
  line-height: 1.6;
  color: #5a6072;
  margin: 0 0 16px;
}

.lg-fin-liens { display: flex; flex-wrap: wrap; gap: 10px; }

.lg-fin-lien {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid rgba(18, 21, 28, 0.1);
  font-family: var(--font-primary);
  font-size: 13.5px;
  font-weight: 600;
  color: #12151c;
  text-decoration: none;
  transition: border-color .2s ease, transform .2s ease;
}

.lg-fin-lien:hover { border-color: var(--brand-blue); color: var(--brand-blue); transform: translateY(-2px); }


/* --- renvois vers les autres pages légales --- */
.lg-voisines { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }

.lg-voisine {
  display: inline-flex;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid rgba(18, 21, 28, 0.12);
  font-family: var(--font-primary);
  font-size: 13px;
  color: #5a6072;
  text-decoration: none;
  transition: border-color .2s ease, color .2s ease;
}

.lg-voisine:hover { border-color: var(--brand-blue); color: var(--brand-blue); }


/* ============================================================
   3. RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
  .lg-corps { grid-template-columns: 1fr; gap: 34px; padding: 44px 28px 72px; }

  /* le sommaire passe en tête, replié sur lui-même */
  .lg-sommaire {
    position: static;
    padding: 18px 20px 20px;
    border-radius: 16px;
    background: #f6f7fb;
    border: 1px solid rgba(18, 21, 28, 0.06);
  }

  .lg-sommaire ol { columns: 2; column-gap: 24px; }
  .lg-texte { max-width: none; }
}

@media (max-width: 620px) {
  .lg-hero { padding: 125px 18px 46px; min-height: 280px; }
  .lg-corps { padding: 34px 18px 60px; }
  .lg-sommaire ol { columns: 1; }
  .lg-fiche { grid-template-columns: 1fr; }
}
