/* MG Art du Pavage V3 — « pages simples » restées en V2 : informations-legales, plan-du-site, 404.
   Texte et balisage inchangés : tout se joue en CSS (les styles en ligne de ces pages sont surchargés, d'où les !important).
   Même langage que les pages services : bandeau réduit aligné à gauche, fil d'Ariane, sur-titre, titre, trait rouge,
   motif de pavés très discret. À charger APRÈS /assets/eco/css/site.css (et avant commun.css). Préfixe mp-/body[data-page]. */
:root{--mp-e:cubic-bezier(.2,.8,.2,1)}

/* ---- motif de pavés (appareil à joints décalés), traits à 5 % de blanc ---- */
body[data-page="informations-legales"] > section:first-of-type,
body[data-page="plan-du-site"] > section:first-of-type,
body[data-page="404"] > section.prose:first-of-type{
  --mp-pave:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='64'%3E%3Cg fill='none' stroke='%23fff' stroke-opacity='.055' stroke-width='2'%3E%3Crect x='2' y='2' width='44' height='28' rx='5'/%3E%3Crect x='50' y='2' width='44' height='28' rx='5'/%3E%3Crect x='-22' y='34' width='44' height='28' rx='5'/%3E%3Crect x='26' y='34' width='44' height='28' rx='5'/%3E%3Crect x='74' y='34' width='44' height='28' rx='5'/%3E%3C/g%3E%3C/svg%3E")
}

/* ---- bandeau réduit : légales + plan du site ---- */
body[data-page="informations-legales"] > section:first-of-type,
body[data-page="plan-du-site"] > section:first-of-type{
  min-height:0!important;
  background:
    linear-gradient(90deg,rgba(var(--overlay-rgb),.96) 0%,rgba(var(--overlay-rgb),.8) 55%,rgba(var(--overlay-rgb),.45) 100%),
    var(--mp-pave) 0 0/96px 64px,
    rgb(var(--overlay-rgb))!important;
  border-bottom:1px solid rgba(255,255,255,.06)
}
body[data-page="informations-legales"] > section:first-of-type > div,
body[data-page="plan-du-site"] > section:first-of-type > div{
  max-width:1240px!important;padding:46px 24px 36px!important;gap:12px!important;
  text-align:left!important;align-items:flex-start!important
}
/* fil d'Ariane */
body[data-page="informations-legales"] > section:first-of-type > div > div:first-child,
body[data-page="plan-du-site"] > section:first-of-type > div > div:first-child{
  justify-content:flex-start!important;color:rgba(255,255,255,.7)!important
}
body[data-page="informations-legales"] > section:first-of-type > div > div:first-child a,
body[data-page="plan-du-site"] > section:first-of-type > div > div:first-child a{color:rgba(255,255,255,.7)!important}
/* sur-titre */
body[data-page="informations-legales"] > section:first-of-type > div > span,
body[data-page="plan-du-site"] > section:first-of-type > div > span{margin:0!important;color:var(--accent-sur-sombre,#ee5a5a)!important}
/* titre + trait rouge */
body[data-page="informations-legales"] > section:first-of-type h1,
body[data-page="plan-du-site"] > section:first-of-type h1{
  font-size:clamp(32px,4.6vw,50px)!important;font-weight:700;line-height:1.05;letter-spacing:-.02em;color:#fff!important
}
body[data-page="informations-legales"] > section:first-of-type h1::after,
body[data-page="plan-du-site"] > section:first-of-type h1::after{
  content:"";display:block;width:84px;height:4px;border-radius:4px;background:var(--accent);margin-top:14px;
  transform-origin:left;animation:mp-trait 1s var(--mp-e) .35s both
}
body[data-page="informations-legales"] > section:first-of-type > div > *,
body[data-page="plan-du-site"] > section:first-of-type > div > *{animation:mp-up .8s var(--mp-e) both}
body[data-page="informations-legales"] > section:first-of-type > div > :nth-child(2),
body[data-page="plan-du-site"] > section:first-of-type > div > :nth-child(2){animation-delay:.08s}
body[data-page="informations-legales"] > section:first-of-type > div > :nth-child(3),
body[data-page="plan-du-site"] > section:first-of-type > div > :nth-child(3){animation-delay:.16s}

/* ---- corps de texte : colonne de lecture, titres de section avec filet rouge ---- */
body[data-page="informations-legales"] > section.prose,
body[data-page="plan-du-site"] > section.prose{padding-top:56px!important;padding-bottom:110px!important}
body[data-page="informations-legales"] > section.prose h2,
body[data-page="plan-du-site"] > section.prose h2{
  padding-left:16px;border-left:4px solid var(--accent);line-height:1.15;margin:52px 0 18px
}
body[data-page="informations-legales"] > section.prose h2:first-child,
body[data-page="plan-du-site"] > section.prose h2:first-child{margin-top:0}
body[data-page="informations-legales"] > section.prose h3{margin:30px 0 8px;color:var(--titre)}
body[data-page="informations-legales"] > section.prose p:has(> em){color:var(--texte-doux);font-size:14px}

/* ---- plan du site : listes lisibles, liens clairs (rouge au survol) ---- */
body[data-page="plan-du-site"] .plan ul{list-style:none;padding-left:0;margin:6px 0;line-height:1.5}
body[data-page="plan-du-site"] .plan > ul > li{padding:10px 0;border-bottom:1px solid var(--bord);margin:0}
body[data-page="plan-du-site"] .plan li > ul{
  margin:10px 0 4px 6px;padding-left:18px;border-left:2px solid color-mix(in srgb,var(--accent) 55%,transparent)
}
body[data-page="plan-du-site"] .plan li > ul > li{padding:5px 0;margin:0;font-size:14.5px}
body[data-page="plan-du-site"] .plan a{color:var(--titre);font-weight:500;transition:color .2s}
body[data-page="plan-du-site"] .plan li li a{color:var(--texte-doux);font-weight:400}
body[data-page="plan-du-site"] .plan a:hover{color:var(--accent-sur-sombre,#ee5a5a)}

/* ---- 404 : même motif, gros « 404 » sobre, bouton inchangé ---- */
body[data-page="404"] > section.prose:first-of-type{
  position:relative;max-width:none!important;padding:96px 24px 110px!important;
  background:
    radial-gradient(60% 70% at 50% 40%,rgba(var(--overlay-rgb),.55),rgba(var(--overlay-rgb),.95)),
    var(--mp-pave) 50% 0/96px 64px,
    var(--fond)!important;
  border-bottom:1px solid rgba(255,255,255,.06)
}
body[data-page="404"] > section.prose:first-of-type > *{position:relative;max-width:640px;margin-left:auto;margin-right:auto}
body[data-page="404"] > section.prose:first-of-type > p:first-child{
  font-size:13px;font-weight:700;text-transform:uppercase;letter-spacing:.12em;color:var(--accent-sur-sombre,#ee5a5a)!important
}
body[data-page="404"] > section.prose:first-of-type h1{
  font-size:clamp(88px,15vw,160px)!important;line-height:1!important;font-weight:800;letter-spacing:-.03em;margin:6px auto 4px!important;
  color:var(--accent-sur-sombre,#ee5a5a)!important
}
body[data-page="404"] > section.prose:first-of-type h1::after{
  content:"";display:block;width:84px;height:4px;border-radius:4px;background:var(--accent);margin:12px auto 0;
  transform-origin:center;animation:mp-trait 1s var(--mp-e) .35s both
}
body[data-page="404"] > section.prose:first-of-type > p:nth-of-type(2){font-size:17px;color:var(--texte)}
body[data-page="404"] > section.prose:first-of-type > *{animation:mp-up .8s var(--mp-e) both}
body[data-page="404"] > section.prose:first-of-type > :nth-child(2){animation-delay:.08s}
body[data-page="404"] > section.prose:first-of-type > :nth-child(3){animation-delay:.16s}
body[data-page="404"] > section.prose:first-of-type > :nth-child(4){animation-delay:.24s}

@keyframes mp-up{from{opacity:0;transform:translateY(22px)}to{opacity:1;transform:none}}
@keyframes mp-trait{from{transform:scaleX(0)}to{transform:scaleX(1)}}

@media (max-width:640px){
  body[data-page="informations-legales"] > section:first-of-type > div,
  body[data-page="plan-du-site"] > section:first-of-type > div{padding:34px 20px 28px!important}
  body[data-page="404"] > section.prose:first-of-type{padding:64px 20px 80px!important}
}
@media (prefers-reduced-motion:reduce){
  body[data-page] > section:first-of-type > div > *,
  body[data-page] > section.prose:first-of-type > *,
  body[data-page] > section:first-of-type h1::after,
  body[data-page] > section.prose:first-of-type h1::after{animation:none!important}
}
