/* ==========================================================================
   Pages légales (mentions légales, politique de confidentialité) — 14/10/2026
   Fond crème de la charte (#FBF7F2) avec un halo doux aux couleurs du logo,
   début de page « pilule + titre avec un mot orange + sous-titre », sommaire
   collant à gauche, une carte par rubrique. Généré par pages-source/pages_legales.py.
   ========================================================================== */
body.lg-page {
  --lg-fond: #fbf7f2;
  --lg-carte: #ffffff;
  --lg-trait: #1f4e7914;
  --lg-titre: #12304b;
  --lg-texte: #3a4552;
  --lg-orange: #ff6b35;
  --lg-accent: #e4531f;
  --lg-marine: #1f4e79;
  --lg-courbe: cubic-bezier(.16, 1, .3, 1);
  background-color: var(--lg-fond);
}

.lg {
  position: relative;
  z-index: 1;
  overflow: hidden;
  overflow: clip;
  padding: 11rem 2.5rem 7rem;
  font-family: var(--font-family--text);
  color: var(--lg-texte);
}

/* le halo : trois taches floues orange, sable et bleu ciel derrière le haut de page */
.lg-halo {
  position: absolute;
  top: -14rem;
  left: 50%;
  width: 80rem;
  height: 44rem;
  transform: translateX(-50%);
  background:
    radial-gradient(closest-side at 30% 55%, #ff6b3530, transparent),
    radial-gradient(closest-side at 52% 40%, #ffd58059, transparent),
    radial-gradient(closest-side at 72% 55%, #b3e2ff80, transparent);
  pointer-events: none;
}

.lg-tete {
  position: relative;
  display: flex;
  flex-flow: column;
  align-items: center;
  gap: 1.25rem;
  max-width: 52rem;
  margin: 0 auto 4.5rem;
  text-align: center;
  animation: lg-arrivee .9s var(--lg-courbe) both;
}

.lg-fil {
  margin: 0;
  font-size: .9rem;
  color: #3a455299;
}

.lg-fil a {
  color: inherit;
  text-decoration: none;
}

.lg-fil a:hover {
  color: var(--lg-accent);
}

.lg .eye-brow {
  background-color: #fff;
}

.lg-h1 {
  margin: 0;
  font-family: Parkinsans, Arial, sans-serif;
  font-size: clamp(2.5rem, 5vw, 4.25rem);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -.03em;
  color: var(--lg-titre);
  text-wrap: balance;
}

.lg-h1 span {
  color: var(--lg-accent);
}

.lg-chapo {
  max-width: 44rem;
  margin: 0;
  font-size: 1.15rem;
  line-height: 1.65;
}

.lg-chapo a,
.lg-carte a {
  color: var(--lg-marine);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.lg-chapo a:hover,
.lg-carte a:hover {
  color: var(--lg-accent);
}

.lg-maj {
  margin: 0;
  padding: .35rem .85rem;
  border: 1px solid var(--lg-trait);
  border-radius: 999px;
  background-color: #ffffffb3;
  font-size: .85rem;
}

.lg-corps {
  position: relative;
  display: grid;
  grid-template-columns: 16rem minmax(0, 1fr);
  align-items: start;
  gap: 3rem;
  max-width: 68rem;
  margin: 0 auto;
}

.lg-cote {
  position: sticky;
  top: 7.5rem;
  display: flex;
  flex-flow: column;
  gap: 1rem;
}

.lg-sommaire {
  padding: 1.5rem 1.25rem 1.25rem;
  border: 1px solid var(--lg-trait);
  border-radius: 1.5rem;
  background-color: #ffffffb3;
}

.lg-sommaire-titre {
  margin: 0 0 .75rem;
  color: var(--lg-accent);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.lg-sommaire ol {
  display: flex;
  flex-flow: column;
  gap: .25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.lg-sommaire a {
  display: flex;
  gap: .6rem;
  padding: .45rem .6rem;
  border-radius: .75rem;
  color: var(--lg-titre);
  font-size: .95rem;
  line-height: 1.35;
  text-decoration: none;
  transition: background-color .25s ease, color .25s ease, transform .35s var(--lg-courbe);
}

.lg-sommaire a span {
  flex: none;
  color: #1f4e7980;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.lg-sommaire a:hover {
  background-color: #fff;
  color: var(--lg-accent);
  transform: translateX(3px);
}

/* « Voir aussi » : l'autre page légale, en petite carte bleu marine */
.lg-autre {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: .15rem 1rem;
  padding: 1.1rem 1.25rem;
  border-radius: 1.25rem;
  background-color: #12304b;
  color: #fff;
  text-decoration: none;
  transition: transform .4s var(--lg-courbe), box-shadow .3s ease;
}

.lg-autre span {
  grid-column: 1;
  color: #ffd580;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.lg-autre strong {
  grid-column: 1;
  font-family: Parkinsans, Arial, sans-serif;
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1.25;
}

.lg-autre svg {
  grid-column: 2;
  grid-row: 1 / span 2;
  transition: transform .35s var(--lg-courbe);
}

.lg-autre:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 34px -22px #0b1f33b3;
}

.lg-autre:hover svg {
  transform: translateX(3px);
}

.lg-cartes {
  display: flex;
  flex-flow: column;
  gap: 1.25rem;
}

.lg-carte {
  padding: 2rem 2.25rem;
  border: 1px solid var(--lg-trait);
  border-radius: 1.75rem;
  background-color: var(--lg-carte);
  box-shadow: 0 24px 44px -38px #0b1f3366;
  scroll-margin-top: 7.5rem;
  animation: lg-arrivee .9s var(--lg-courbe) both;
}

.lg-carte:nth-child(2) { animation-delay: .08s; }
.lg-carte:nth-child(3) { animation-delay: .16s; }
.lg-carte:nth-child(n+4) { animation-delay: .24s; }

.lg-carte-tete {
  display: flex;
  align-items: center;
  gap: .9rem;
  margin-bottom: 1.1rem;
}

.lg-ico {
  flex: none;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: .9rem;
  background-color: #ffe4d8;
  color: var(--lg-accent);
}

.lg-num {
  color: #1f4e7966;
  font-family: Parkinsans, Arial, sans-serif;
  font-size: .95rem;
  font-weight: 500;
}

.lg-carte h2 {
  margin: 0;
  font-family: Parkinsans, Arial, sans-serif;
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -.01em;
  color: var(--lg-titre);
}

.lg-carte p {
  margin: 0 0 .9rem;
  font-size: 1.02rem;
  line-height: 1.7;
}

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

/* l'identité de l'éditeur, en tableau */
.lg-tableau {
  margin: 0 0 1rem;
  border: 1px solid var(--lg-trait);
  border-radius: 1.1rem;
  overflow: hidden;
}

.lg-ligne {
  display: grid;
  grid-template-columns: 8.5rem minmax(0, 1fr);
  gap: 1rem;
  padding: .8rem 1.1rem;
  font-size: 1rem;
  line-height: 1.5;
}

.lg-ligne + .lg-ligne {
  border-top: 1px solid var(--lg-trait);
}

.lg-ligne:nth-child(odd) {
  background-color: #fbf7f2;
}

.lg-ligne dt {
  color: #3a4552b3;
  font-weight: 500;
}

.lg-ligne dd {
  margin: 0;
  color: var(--lg-titre);
}

@keyframes lg-arrivee {
  from { opacity: 0; transform: translateY(1.5rem); filter: blur(5px); }
  to { opacity: 1; transform: none; filter: none; }
}

@media screen and (max-width: 991px) {
  .lg-corps { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
  .lg-cote { position: static; }
}

@media screen and (max-width: 767px) {
  .lg { padding: 9rem 1.25rem 5rem; }
  .lg-tete { margin-bottom: 3rem; }
  .lg-carte { padding: 1.5rem 1.25rem; border-radius: 1.4rem; }
  .lg-carte h2 { font-size: 1.25rem; }
  .lg-ligne { grid-template-columns: minmax(0, 1fr); gap: .15rem; }
}

@media (prefers-reduced-motion: reduce) {
  .lg-tete, .lg-carte { animation: none; }
}

/* 15/10/2026 : plus de ligne de coupure entre le fond crème et le pied de page.
   Un fondu de 120 px part du crème de la page et s'efface dans le haut du pied de page ;
   la ligne des réseaux est posée sous le fondu. */
body.lg-page .footer::before {
  content: "";
  position: absolute;
  z-index: 3;
  top: 0;
  left: 0;
  right: 0;
  height: 120px;
  background-image: linear-gradient(var(--lg-fond), rgba(251, 247, 242, 0));
  pointer-events: none;
}

body.lg-page .footer-bottom {
  padding-top: 9rem;
}

.lg {
  padding-bottom: 5rem;
}

@media screen and (max-width: 767px) {
  body.lg-page .footer-bottom { padding-top: 8rem; }
}
