/* =========================================================
   LES RUBRIQUES
   Une photo d'en-tête, puis des blocs qui alternent cartes,
   étapes et texte. Même grammaire que l'espace CCAS, pour
   qu'on ne réapprenne pas à lire d'une page à l'autre.
   ========================================================= */
.vue--page { background: var(--bg); }

.pg-tete {
  position: relative; overflow: hidden;
  border-radius: var(--r-lg, 24px);
  margin-bottom: 2rem;
  padding: clamp(2rem, 7vw, 4.2rem) clamp(1.2rem, 4vw, 2.6rem);
  color: #fff;
  isolation: isolate;
}
.pg-tete::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background-image: var(--photo);
  background-size: cover; background-position: center;
}
.pg-tete::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(120deg, rgba(20, 49, 42, .92), rgba(20, 49, 42, .66));
}
.pg-tete__txt { max-width: 56ch; }
.pg-tete__sur {
  margin: 0 0 .25rem; font-size: .72rem; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase; color: var(--c-anis);
}
.pg-tete h1 { margin: 0 0 .6rem; color: #fff; line-height: 1.04; }
.pg-tete__chapo { margin: 0; font-size: var(--fs-md); line-height: 1.6; color: rgba(255, 255, 255, .9); }

.pg-bloc { max-width: 74ch; margin-bottom: 2.2rem; }
.pg-bloc h2 {
  margin: 0 0 .9rem; padding-bottom: .35rem;
  border-bottom: 2px solid var(--c-anis);
  font-family: var(--f-titre, inherit); font-size: 1.5rem; letter-spacing: .02em;
}

.pg-cartes { display: grid; gap: .8rem; grid-template-columns: repeat(auto-fill, minmax(255px, 1fr)); }
.pg-carte {
  display: flex; flex-direction: column; gap: .3rem; min-width: 0;
  padding: 1rem 1.1rem; border-radius: var(--r-md, 14px);
  background: var(--surface); box-shadow: inset 0 0 0 1px var(--trait);
  text-decoration: none; color: inherit;
  transition: transform .18s, box-shadow .18s;
}
a.pg-carte:hover {
  transform: translateY(-2px);
  box-shadow: inset 0 0 0 2px var(--accent), var(--ombre-1);
}
/* Une carte sans lien reste une information, pas un bouton mort. */
.pg-carte--muette { background: var(--bg-alt); box-shadow: none; }
.pg-carte h3 { margin: 0; font-size: 1.02rem; line-height: 1.3; }
.pg-carte h3 em { font-style: normal; color: var(--accent); }
.pg-carte p { margin: 0; font-size: .86rem; line-height: 1.55; color: var(--texte-doux); }
.pg-carte__b {
  margin-top: auto; padding-top: .55rem;
  font-size: .68rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--c-bleu);
}

.pg-etapes { display: grid; gap: .7rem; }
.pg-etape {
  display: grid; grid-template-columns: 2.1rem 1fr; gap: .9rem; align-items: start;
  padding: .9rem 1.1rem; border-radius: var(--r-md, 14px);
  background: var(--surface); box-shadow: inset 0 0 0 1px var(--trait);
}
.pg-etape__n {
  display: grid; place-items: center;
  width: 2.1rem; height: 2.1rem; border-radius: 50%;
  background: var(--accent); color: #fff;
  font-family: var(--f-titre, inherit); font-size: 1.15rem;
}
.pg-etape h3 { margin: 0; font-size: 1rem; }
.pg-etape p { margin: .15rem 0 0; font-size: .87rem; line-height: 1.55; color: var(--texte-doux); }

.pg-texte p { margin: 0 0 .8rem; font-size: .95rem; line-height: 1.72; }

.pg-appel {
  padding: 1.4rem 1.6rem; border-radius: var(--r-lg, 24px);
  background: var(--accent); color: #fff;
}
.pg-appel h2 { border: 0; margin: 0 0 .4rem; color: #fff; padding: 0; }
.pg-appel p { margin: 0; font-size: .95rem; line-height: 1.6; color: rgba(255, 255, 255, .88); }
.pg-appel__b { display: flex; gap: .6rem; flex-wrap: wrap; margin-top: 1.1rem; }
.pg-appel__b a {
  padding: .6rem 1.2rem; border-radius: 999px;
  background: var(--c-anis); color: #343a00;
  text-decoration: none; font-weight: 700; font-size: .9rem;
}
.pg-appel__b a + a { background: rgba(255, 255, 255, .16); color: #fff; }

.pg-suite { max-width: 74ch; padding-top: 1.4rem; border-top: 2px solid var(--trait); }
.pg-suite h2 {
  margin: 0 0 .7rem;
  font-family: var(--f-titre, inherit); font-size: 1.25rem; letter-spacing: .02em;
}
.pg-suite__l { display: flex; gap: .5rem; flex-wrap: wrap; }
.pg-suite__l a {
  padding: .45rem .95rem; border-radius: 999px;
  background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--trait);
  text-decoration: none; color: var(--texte); font-size: .86rem; font-weight: 600;
}
.pg-suite__l a:hover { box-shadow: inset 0 0 0 1.5px var(--accent); color: var(--accent); }

@media (max-width: 620px) {
  .pg-etape { grid-template-columns: 1.8rem 1fr; gap: .7rem; }
  .pg-appel { padding: 1.1rem 1.2rem; }
  .pg-appel__b a { flex: 1 1 100%; text-align: center; }
}
