/* Page gestionnaire (gestionnaire.php). Utilise les couleurs de site.css. */

/* ---- héros : photo plein cadre décalée à droite, titre posé en bas ---- */
.g-hero { position: relative; overflow: hidden; display: flex; align-items: flex-end; min-height: min(860px, calc(100vh - 70px)); }
.g-hero > img { position: absolute; top: 0; left: 20%; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 50% 58%;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 24%); mask-image: linear-gradient(90deg, transparent, #000 24%); }
.g-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, var(--bg) 0, rgba(10,10,9,.86) 18%, rgba(10,10,9,0) 52%), linear-gradient(90deg, rgba(10,10,9,.82) 0, rgba(10,10,9,0) 52%); }
.g-hero-txt { position: relative; z-index: 1; padding-bottom: 56px; }
.g-hero h1 { max-width: 640px; margin: 0 0 22px; font-size: clamp(44px, 6vw, 80px); }
.g-hero p { max-width: 520px; margin: 0 0 28px; font-size: 19px; line-height: 1.6; color: var(--text); opacity: .85; }

.g-center { padding-top: 120px; padding-bottom: 120px; text-align: center; }
.g-center h2, .g-split h2 { margin: 0 0 18px; }
.g-center h2 { max-width: 820px; margin-left: auto; margin-right: auto; }
.g-center > p { max-width: 520px; margin: 0 auto; font-size: 19px; line-height: 1.6; color: var(--muted); }

.g-split { display: grid; grid-template-columns: 1fr 1fr; min-height: 680px; }
.g-split-img { position: relative; }
.g-split-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.g-split-txt { display: flex; flex-direction: column; justify-content: center; padding: 70px clamp(24px, 6vw, 80px); background: var(--surface); }
.g-split ul { margin: 10px 0 0; padding: 0; list-style: none; }
.g-split li { padding: 14px 0; border-top: 2px solid var(--border-gold); font-size: 21px; font-weight: 700; }

.g-strip { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 6px; padding: 6px 6px 0; }
.g-strip img { width: 100%; height: 100%; aspect-ratio: 4 / 5; object-fit: cover; }

@media (max-width: 820px) {
  .g-hero { display: block; min-height: 0; }
  .g-hero > img { position: static; display: block; width: 100%; height: 62vh; min-height: 420px; max-height: 620px; object-position: 66% 50%;
    -webkit-mask-image: linear-gradient(180deg, #000 66%, transparent 98%); mask-image: linear-gradient(180deg, #000 66%, transparent 98%); }
  .g-hero::after { display: none; }
  .g-hero-txt { margin-top: -64px; padding-bottom: 30px; }
  .g-center { padding-top: 70px; padding-bottom: 70px; }
  .g-split { grid-template-columns: 1fr; min-height: 0; }
  .g-split-img { height: 420px; }
  .g-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g-strip img:last-child:nth-child(odd) { grid-column: 1 / -1; }
}
