/* Gabarit « page de texte » (mentions légales, confidentialité, CGV) : la jetée. Repose sur site-panorama.css,
   site-applis.css (boutons, liens, intitulés) et site-faq.css (bandeau du bas, pied de page). */
.page-jetee { background: #f3ecdc; --marge: max(clamp(28px, 5vw, 90px), (100vw - 1560px) / 2); --encre: #1d2430; }

/* --- l'en-tête : le titre sur les pierres de la jetée --- */
.jetee { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 24px clamp(28px, 5vw, 90px); min-height: clamp(460px, 66vh, 720px); padding: clamp(120px, 17vh, 180px) var(--marge) clamp(30px, 5vh, 54px); overflow: hidden; isolation: isolate; color: var(--cream); }
.jetee .fond { position: absolute; z-index: -2; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 72%; }
.jetee::before { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg, rgba(12, 16, 24, 0.62), rgba(12, 16, 24, 0.3) 46%, rgba(12, 16, 24, 0) 72%), linear-gradient(180deg, rgba(12, 16, 24, 0.5), rgba(12, 16, 24, 0) 30%, rgba(12, 16, 24, 0) 70%, rgba(12, 16, 24, 0.45)); }
.jetee-texte { display: grid; gap: clamp(12px, 2vh, 20px); }
.jetee-texte > * { margin: 0; }
.jetee-texte .sur { color: #fff; }
.jetee.la .sur::before { transform: scaleX(1); transition: transform 900ms cubic-bezier(0.16, 1, 0.3, 1) 80ms; }
.jetee h1 { font: 600 clamp(44px, 5.6vw, 104px)/0.96 Bricolage, DM, sans-serif; letter-spacing: -0.04em; text-wrap: balance; text-shadow: 0 2px 28px rgba(8, 10, 16, 0.55); }
.jetee.la .mot > span { transform: none; transition: transform 1000ms cubic-bezier(0.16, 1, 0.3, 1) calc(var(--i) * 80ms + 160ms); }
.jetee-chapeau { max-width: 62ch; font-size: clamp(16px, 1.22vw, 21px); line-height: 1.5; color: rgba(255, 255, 255, 0.95); text-shadow: 0 1px 16px rgba(8, 10, 16, 0.75); }
.jetee-chapeau, .jetee-onglets { opacity: 0; translate: 0 16px; transition: opacity 800ms ease 520ms, translate 1000ms cubic-bezier(0.16, 1, 0.3, 1) 520ms; }
.jetee.la :is(.jetee-chapeau, .jetee-onglets) { opacity: 1; translate: 0 0; }
.jetee.la .jetee-onglets { transition-delay: 680ms; }
/* les trois pages du cadre */
.jetee-onglets { display: flex; width: max-content; max-width: 100%; flex: none; gap: 6px; padding: 6px; border: 1px solid rgba(247, 241, 227, 0.26); border-radius: 99px; background: rgba(14, 18, 26, 0.5); backdrop-filter: blur(14px); }
.jetee-onglets a { flex: none; padding: 11px 18px; border-radius: 99px; color: rgba(247, 241, 227, 0.86); font: 600 clamp(14px, 1.02vw, 16px)/1 DM, sans-serif; text-decoration: none; white-space: nowrap; transition: background 220ms ease, color 220ms ease; }
.jetee-onglets a:hover { background: rgba(247, 241, 227, 0.14); color: #fff; }
.jetee-onglets a[aria-current] { background: var(--cream); color: var(--encre); }

/* --- le texte : sommaire à gauche, articles en largeur --- */
.cadre-loi { display: grid; grid-template-columns: clamp(210px, 19vw, 300px) minmax(0, 1fr); gap: clamp(28px, 4.4vw, 84px); align-items: start; padding: clamp(40px, 7vh, 80px) var(--marge) clamp(56px, 9vh, 110px); color: var(--encre); }
.sommaire { position: sticky; top: 104px; display: grid; gap: 12px; }
.sommaire p { margin: 0; font: 700 12px/1 DM, sans-serif; letter-spacing: 0.16em; text-transform: uppercase; color: var(--copper); }
.sommaire ol { display: grid; margin: 0; padding: 0; max-height: calc(100vh - 190px); overflow-y: auto; scrollbar-width: thin; border-left: 1px solid #d9d0bb; list-style: none; }
.sommaire a { display: grid; grid-template-columns: 2em minmax(0, 1fr); gap: 4px; margin-left: -1px; padding: 6px 8px 6px 14px; border-left: 2px solid transparent; color: #4a5260; font: 500 clamp(13.5px, 0.98vw, 15.5px)/1.3 DM, sans-serif; text-decoration: none; transition: color 200ms ease, border-color 200ms ease; }
.sommaire a i { font: italic 400 1em/1.3 "Iowan Old Style", Baskerville, Georgia, serif; color: var(--copper); }
.sommaire a:hover { color: var(--encre); }
.sommaire a.ici { border-color: var(--copper); color: var(--encre); font-weight: 700; }
.sommaire .maj { font: 500 13px/1.4 DM, sans-serif; letter-spacing: 0; text-transform: none; color: #6a7280; }
.articles-loi { display: grid; }
.article-loi { display: grid; grid-template-columns: minmax(0, 0.42fr) minmax(0, 1fr); gap: 14px clamp(24px, 3.4vw, 64px); align-items: start; padding: clamp(22px, 3.6vh, 38px) 0; border-top: 1px solid #d9d0bb; scroll-margin-top: 96px; }
.article-loi:first-child { border-top: 2px solid var(--encre); }
.article-loi h2 { display: grid; gap: 6px; margin: 0; font: 600 clamp(22px, 1.9vw, 34px)/1.08 Bricolage, DM, sans-serif; letter-spacing: -0.025em; text-wrap: balance; }
.article-loi h2 i { font: italic 400 clamp(17px, 1.3vw, 22px)/1 "Iowan Old Style", Baskerville, Georgia, serif; letter-spacing: 0; color: var(--copper); }
.article-loi:target h2 { color: #9a4a1c; }
.loi-texte { display: grid; gap: 0.9em; max-width: 78ch; font-size: clamp(16px, 1.14vw, 19px); line-height: 1.62; color: #2c3440; }
.loi-texte > * { margin: 0; }
.loi-texte a { color: #9a4a1c; font-weight: 600; text-underline-offset: 4px; }
.loi-texte a:hover { color: var(--encre); }
.loi-texte strong { color: var(--encre); }
.loi-texte code { padding: 1px 6px; border-radius: 4px; background: #e6dcc6; font-size: 0.92em; }
.loi-texte em { color: #6a7280; }
/* les fiches (éditeur, hébergeur…) : intitulé à gauche, valeur à droite */
.legal-list { display: grid; padding: 0; list-style: none; border-top: 1px solid #d9d0bb; }
.legal-list li { display: grid; grid-template-columns: minmax(9em, 0.42fr) minmax(0, 1fr); gap: 4px 20px; padding: 10px 0; border-bottom: 1px solid #e3dac6; }
.legal-list li strong { font: 700 0.8em/1.9 DM, sans-serif; letter-spacing: 0.08em; text-transform: uppercase; color: #6a5a48; }
.legal-list--bullets { border: 0; gap: 0.5em; }
.legal-list--bullets li { display: block; position: relative; padding: 0 0 0 1.5em; border: 0; }
.legal-list--bullets li::before { content: ""; position: absolute; left: 0.1em; top: 0.76em; width: 0.7em; height: 2px; background: var(--copper); }
.legal-list--bullets li strong { font: inherit; font-weight: 700; letter-spacing: 0; text-transform: none; color: var(--encre); }

@media (max-width: 960px) {
  .jetee, .cadre-loi, .article-loi { grid-template-columns: 1fr; }
  .jetee-onglets { justify-self: start; } .sommaire { position: static; } .sommaire ol { max-height: none; }
}
@media (prefers-reduced-motion: reduce) {
  .jetee .mot > span { transform: none; }
  .jetee-chapeau, .jetee-onglets { opacity: 1 !important; translate: 0 0 !important; transition: none !important; }
}

/* Téléphone : les colonnes « 1fr » s'élargissaient pour contenir les onglets et les mots longs (e-mail), et la page débordait de 17 px. */
@media (max-width: 760px) {
  .jetee, .cadre-loi, .article-loi { grid-template-columns: minmax(0, 1fr); }
  .jetee-onglets { max-width: 100%; overflow-x: auto; scrollbar-width: none; }
  .jetee-onglets::-webkit-scrollbar { display: none; }
  .article-loi :is(dd, p, a, li) { overflow-wrap: anywhere; }
  html:has(.jetee) { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
}
