/* Page publique de l'Association (/Public), dans le style du site quartierducerf.com :
   grandes photos qui restent en place, panneaux qui glissent par-dessus, barre transparente qui se cache en descendant,
   cartes qui s'empilent, bouton flottant. Couleurs de la charte officielle (Nuit, Brume, Taupe, Écorce, Amande, Neige)
   et le bronze des boutons du site du Quartier. Photos : cahier de bienvenue de l'Association (img/bienvenue).
   Aucun style dans le HTML : la politique de sécurité du site n'accepte que cette feuille. */
@font-face { font-family: Gabarito; src: url("../fonts/Gabarito.woff2") format("woff2"); font-weight: 400 900; font-display: swap; }
@font-face { font-family: Gambetta; src: url("../fonts/Gambetta-SemiboldItalic.woff2") format("woff2"); font-weight: 600; font-style: italic; font-display: swap; }

:root {
  --amande: #FDFCFC; --brume: #E6E3E0; --pierre: #CFC9C3; --taupe: #B9AFA7; --ecorce: #897B71;
  --nuit: #5B535F; --nuit-f: #3F3943; --neige: #EFF1F2; --bronze: #C59565; --encre: #4A4450;
}
* { box-sizing: border-box; min-width: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body.pp { margin: 0; background: var(--brume); color: var(--nuit); font: 17px/1.6 Gabarito, system-ui, sans-serif; letter-spacing: .015em; overflow-x: clip; -webkit-text-size-adjust: 100%; }
.pp a { color: inherit; }
.pp em { font-family: Gambetta, Georgia, serif; font-style: italic; font-weight: 600; letter-spacing: 0; }
.pp :focus-visible { outline: 3px solid var(--bronze); outline-offset: 3px; }
.pp-saut { position: absolute; left: -9999px; top: 0; z-index: 30; background: var(--amande); color: var(--encre); padding: 8px 14px; }
.pp-saut:focus { left: 12px; top: 12px; }

/* Barre du haut : transparente sur la photo, se cache en descendant, revient givrée en remontant. */
.pp-haut { position: fixed; inset: 0 0 auto; z-index: 20; color: var(--neige); background: linear-gradient(180deg, rgba(0,0,0,.55), rgba(57,46,53,0)); transition: transform .5s cubic-bezier(.2,.7,.2,1), background-color .4s; }
.pp-haut.pp-cache { transform: translateY(-100%); }
.pp-haut.pp-fond { background: rgba(63,57,67,.8); -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2); }
.pp-haut-in { max-width: 1240px; margin: 0 auto; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 16px 28px; }
.pp-liens { display: flex; gap: 24px; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.pp-liens a { text-decoration: none; opacity: .92; }
.pp-liens a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 5px; }
.pp-picto img { height: 50px; width: auto; display: block; transition: height .4s; }
.pp-haut.pp-fond .pp-picto img { height: 40px; }
.pp-droite { display: flex; justify-content: flex-end; align-items: center; gap: 10px; }
.pp-langue { margin: 0; display: flex; gap: 2px; font-size: 12px; font-weight: 700; letter-spacing: .08em; }
.pp-langue a { text-decoration: none; padding: 8px 6px; opacity: .8; }
.pp-langue a[aria-current="true"] { opacity: 1; text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1.5px; }
.pp-btn { display: inline-flex; align-items: center; min-height: 40px; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; padding: 8px 14px; border: 1px solid var(--neige); border-radius: 2px; background: var(--neige); color: var(--nuit) !important; text-decoration: none; white-space: nowrap; transition: background-color .3s, color .3s; }
.pp-btn:hover { background: transparent; color: var(--neige) !important; }

/* Les photos restent en place ; le reste de la page glisse par-dessus. */
.pp-scene { position: relative; }
.pp-photo { position: sticky; top: 0; height: 100vh; height: 100svh; background: center / cover no-repeat; display: grid; place-items: center; overflow: hidden; }
.pp-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(40,34,44,.25), rgba(40,34,44,.45)); }
.pp-montagne { background-image: url("../img/bienvenue/montagne.jpg"); }
.pp-soiree { background-image: url("../img/bienvenue/soiree.jpg"); }
.pp-marque { position: relative; z-index: 1; text-align: center; padding: 0 24px; will-change: transform, opacity; }
.pp-marque img { width: min(560px, 84vw); height: auto; display: block; margin: 0 auto; }
.pp-marque p { margin: 26px 0 0; color: var(--neige); font-size: 13px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; opacity: .9; }
.pp-indice { position: absolute; z-index: 1; bottom: 28px; left: 50%; width: 26px; height: 42px; margin-left: -13px; border: 1.5px solid rgba(239,241,242,.8); border-radius: 14px; }
.pp-indice::before { content: ""; position: absolute; left: 50%; top: 8px; width: 3px; height: 8px; margin-left: -1.5px; border-radius: 2px; background: var(--neige); animation: pp-roule 1.8s infinite; }
@keyframes pp-roule { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* Panneau collant à gauche (« L'art de vivre ») et panneau blanc qui monte par-dessus. */
.pp-monte { position: relative; z-index: 2; margin-top: -18vh; }
.pp-cadre { max-width: 1240px; margin: 0 auto; padding: 0 28px; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: start; }
.pp-titre { position: sticky; top: 96px; background: var(--pierre); padding: 56px 48px 70px; min-height: 70vh; }
.pp-titre h1 { font-weight: 400; font-size: clamp(38px, 4.6vw, 58px); line-height: 1.06; letter-spacing: -.035em; margin: 0 0 22px; text-wrap: balance; color: var(--nuit); }
.pp-titre p { margin: 0; color: var(--encre); font-size: 18px; }
.pp-texte { background: var(--amande); margin: 160px 0 0 -60px; padding: 56px 60px 64px; box-shadow: 0 30px 60px -30px rgba(63,57,67,.25); }
.pp-etiquette { font-size: 15px; text-transform: uppercase; letter-spacing: .04em; color: var(--ecorce); margin: 0 0 30px; display: flex; align-items: center; gap: 12px; }
.pp-etiquette::before { content: ""; width: 10px; height: 10px; background: currentColor; flex: none; }
.pp-chapeau { margin: -16px 0 30px; color: var(--ecorce); font-size: 15px; }
.pp-role { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 34px 36px; }
.pp-role li { display: grid; grid-template-columns: 50px minmax(0, 1fr); gap: 16px; align-items: start; }
.pp-role svg { width: 48px; height: 48px; fill: none; stroke: var(--ecorce); stroke-width: 1.1; stroke-linecap: round; stroke-linejoin: round; }
.pp-role span { font-size: 16px; text-transform: uppercase; letter-spacing: .03em; color: var(--ecorce); line-height: 1.35; }

/* Les trois étapes : cartes collantes qui s'empilent. */
.pp-bande { background: var(--brume); margin-top: 110px; }
.pp-etapes { max-width: 1240px; margin: 0 auto; padding: 90px 28px 60px; }
.pp h2 { font-weight: 400; font-size: clamp(32px, 3.8vw, 48px); line-height: 1.08; letter-spacing: -.03em; margin: 0 0 10px; text-wrap: balance; color: var(--nuit); }
.pp-intro { margin: 0 0 40px; color: var(--encre); max-width: 620px; }
.pp-cartes { list-style: none; margin: 0; padding: 0; }
.pp-cartes li { position: sticky; top: 110px; min-height: 300px; display: grid; grid-template-columns: minmax(0, 180px) minmax(0, 1fr); gap: 28px; align-items: center; padding: 44px 52px; margin-bottom: 28px; box-shadow: 0 -18px 40px -28px rgba(63,57,67,.35); }
.pp-cartes li:nth-child(1) { background: var(--amande); }
.pp-cartes li:nth-child(2) { background: var(--pierre); top: 130px; }
.pp-cartes li:nth-child(3) { background: var(--taupe); top: 150px; }
.pp-no { font-family: Gambetta, serif; font-style: italic; font-weight: 600; font-size: clamp(64px, 8vw, 104px); line-height: 1; color: var(--bronze); }
.pp-cartes li:nth-child(3) .pp-no { color: var(--amande); }
.pp-cartes p { margin: 0; font-size: 20px; line-height: 1.5; color: var(--encre); max-width: 640px; }

/* Nous joindre : panneau givré qui glisse sur la photo du soir. */
.pp-joindre { position: relative; z-index: 2; max-width: 1000px; margin: -55vh auto 0; padding: 0 28px 120px; }
.pp-boite { background: rgba(253,252,252,.9); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); padding: 56px 60px; }
.pp-contacts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px; margin-top: 26px; }
.pp-contacts h3 { font-weight: 400; font-size: 16px; text-transform: uppercase; letter-spacing: .04em; color: var(--ecorce); margin: 0 0 8px; }
.pp-contacts p { margin: 0; color: var(--encre); overflow-wrap: anywhere; }
.pp-contacts .pp-note { margin-top: 8px; font-size: 14px; color: var(--ecorce); }
.pp-faits { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; margin: 40px 0 0; padding-top: 26px; border-top: 1px solid var(--pierre); }
.pp-faits dt { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--ecorce); }
.pp-faits dd { margin: 4px 0 0; font-size: 15px; }

.pp-pied { position: relative; z-index: 3; background: var(--nuit-f); color: var(--neige); font-size: 14px; }
.pp-pied-in { max-width: 1240px; margin: 0 auto; padding: 40px 28px calc(96px + env(safe-area-inset-bottom)); display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.pp-pied img { height: 60px; width: auto; display: block; }

/* Bouton flottant, comme le « Calculateur » du site du Quartier. */
.pp-flottant { position: fixed; z-index: 15; left: 50%; bottom: calc(22px + env(safe-area-inset-bottom)); transform: translateX(-50%); background: var(--bronze); color: #fff !important; font-size: 15px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; text-decoration: none; padding: 14px 22px; border-radius: 2px; box-shadow: 0 10px 30px -10px rgba(63,57,67,.6); white-space: nowrap; transition: transform .4s, opacity .4s; }
.pp-flottant.pp-hors { opacity: 0; transform: translate(-50%, 20px); pointer-events: none; }
/* Avant l'ouverture du portail : un avis, pas un bouton (aucun lien, aucun effet au survol). */
.pp-bientot { cursor: default; margin: 0; }
.pp-btn.pp-bientot:hover { background: var(--neige); color: var(--nuit) !important; }
.pp-flottant.pp-bientot { pointer-events: none; }

/* Apparitions : le texte monte doucement, les icônes se dessinent. Sans JavaScript, tout reste visible. */
.pp-js .pp-apparait { opacity: 0; transform: translateY(34px); transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1); }
.pp-js .pp-apparait.pp-vu { opacity: 1; transform: none; }
.pp-js .pp-role svg path { stroke-dasharray: var(--l, 200); stroke-dashoffset: var(--l, 200); transition: stroke-dashoffset 1.6s ease-out .2s; }
.pp-js .pp-role li.pp-vu svg path { stroke-dashoffset: 0; }

@media (max-width: 860px) {
  body.pp { font-size: 16px; }
  .pp-haut-in { grid-template-columns: auto 1fr; padding: 12px 16px; }
  .pp-liens { display: none; }
  .pp-picto img { height: 40px; }
  .pp-btn { font-size: 12px; padding: 6px 10px; }
  .pp-monte { margin-top: -12vh; }
  .pp-cadre { grid-template-columns: minmax(0, 1fr); padding: 0; }
  .pp-titre { position: relative; top: 0; min-height: 0; padding: 44px 24px; }
  .pp-texte { margin: 0; padding: 44px 24px; }
  .pp-role { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .pp-bande { margin-top: 0; }
  .pp-etapes { padding: 64px 16px 40px; }
  .pp-cartes li { grid-template-columns: minmax(0, 1fr); gap: 8px; padding: 30px 26px; min-height: 240px; top: 84px; }
  .pp-cartes li:nth-child(2) { top: 100px; }
  .pp-cartes li:nth-child(3) { top: 116px; }
  .pp-cartes p { font-size: 17px; }
  .pp-joindre { padding: 0 12px 100px; margin-top: -60vh; }
  .pp-boite { padding: 40px 24px; }
  .pp-contacts { grid-template-columns: minmax(0, 1fr); }
  .pp-faits { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pp-flottant { font-size: 13px; padding: 12px 16px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .pp-js .pp-apparait, .pp-js .pp-role svg path { transition: none; opacity: 1; transform: none; stroke-dashoffset: 0; }
  .pp-indice::before { animation: none; }
  .pp-haut, .pp-flottant { transition: none; }
}
