/* Mobile first : texte puis visuel empilés → côte à côte à partir de 1025px */
.page-hero {padding: 2rem 0 3rem;}

.page-hero h1 {font-size: clamp(3.2rem, 8vw, 7.2rem); color: var(--couleur-principale); margin-bottom: 1.6rem; max-width: 80rem; font-weight: 400; line-height: 1.1em; overflow-wrap: break-word;}
.page-hero h1 strong {font-weight: inherit;}
.page-hero .entete-columns {flex-direction: column; row-gap: 3.6rem;}
.page-hero .entete-left {flex: 1; min-width: 0;}
.page-hero .entete-left p {font-size: 1.6rem; line-height: 1.6; color: var(--couleur-principale); max-width: 64rem; margin: 0 0 1.4rem;}
.page-hero .entete-left p:last-child {margin-bottom: 0;}
.page-hero .entete-left a:not(.btn-light) {color: var(--couleur-principale); font-weight: 600; text-decoration: underline; text-decoration-color: var(--couleur-secondaire); text-decoration-thickness: .2rem; text-underline-offset: .3rem; overflow-wrap: anywhere;}
.page-hero .entete-left p .btn-light {margin: 1rem 1rem 0 0;}

/* Visuel + cadre décoratif décalé de 1.2rem (marge à droite pour ne pas
   déborder de l'écran) */
.page-hero .entete-right {width: calc(100% - 1.2rem); max-width: 45rem; aspect-ratio: 4 / 3; position: relative; z-index: 1; align-self: center;}
.page-hero .entete-right::after {content: ''; border: .3rem solid var(--couleur-secondaire); opacity: .7; border-radius: 2rem 2rem 2rem .5rem; width: calc(100% - 2rem); height: calc(100% - 2rem); right: -1.2rem; top: -1rem; position: absolute; z-index: -1;}
.page-hero .entete-right img {border-radius: 2rem 2rem 2rem .5rem; overflow: hidden;}

.page-hero--communale .page-hero-eyebrow {color: var(--couleur-principale);}
.page-hero--asso .page-hero-eyebrow {color: var(--couleur-vie-associative);}
.page-hero--travaux .page-hero-eyebrow {color: var(--couleur-travaux);}
.page-hero--budget .page-hero-eyebrow {color: var(--couleur-budget);}

/* Chiffres clés : 2 par ligne sur mobile */
.hero-inner-stats {display: grid; grid-template-columns: 1fr; gap: 3rem; align-items: flex-end;}
.hero-stats {display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.2rem; list-style: none; margin: 2.4rem 0 0; padding: 0;}
.hero-stat {background: #fff; padding: 1.6rem 1.2rem; border-radius: var(--border-radius, 1.4rem); border: .1rem solid var(--couleur-background-dark); text-align: center; min-width: 0;}
.hero-stat-nombre {display: block; font-family: 'Fraunces', Georgia, serif; font-size: 3rem; line-height: 1; color: var(--couleur-vie-associative);}
.hero-stat-libelle {display: block; font-size: 1.2rem; color: var(--couleur-texte); opacity: .75; letter-spacing: .06em; margin-top: .6rem;}

@media (min-width: 768px) {
    .page-hero {padding: 2rem 0 4rem;}
    .page-hero .entete-left p {font-size: 1.7rem;}
    .page-hero .entete-right {aspect-ratio: 1 / 1;}
    .page-hero .entete-right::after {border-radius: 3rem 3rem 3rem .5rem; width: calc(100% - 3rem); height: auto; aspect-ratio: 1 / 1; right: -1.4rem; top: -1.1rem;}
    .page-hero .entete-right img {border-radius: 3rem 3rem 3rem .5rem;}
    .hero-stats {display: flex; flex-wrap: wrap; gap: 2rem; margin-top: 3rem;}
    .hero-stat {padding: 2rem 2.4rem; min-width: 12rem;}
    .hero-stat-nombre {font-size: 3.8rem;}
}

@media (min-width: 1025px) {
    .page-hero {padding: 2rem 0;}
    .page-hero .entete-columns {flex-direction: row; align-items: center; column-gap: 5rem;}
    .page-hero .entete-left {padding-bottom: 3rem;}
    .page-hero .entete-right {flex: 0 1 45rem; width: auto;}
    .hero-inner-stats {grid-template-columns: 1fr auto; gap: 4rem;}
}

@media (min-width: 1280px) {
    .page-hero .entete-columns {column-gap: 8rem;}
}
