/* Black Olive, page Galerie (refonte 4) : héros photo sur vert, vague crème, 3 vidéos, mosaïque, bandeau vert.
   S'ajoute à css/style.css (jetons, en-tête, boutons, pied de page) et css/galerie2.css (visionneuse). */
:root { --gv-cream: #f6efdf; --gv-green: #10281f; --gv-green-2: #173a2d; --gv-gold: #c9a063; --gv-gold-lt: #e2c68b; }
.g-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.gv-wrap { width: min(100% - 2 * var(--gutter), 1320px); margin-inline: auto; }

/* ---------- Héros ---------- */
.gv-hero {
  position: relative; isolation: isolate; overflow: hidden; color: var(--cream); background: var(--gv-green);
  padding: calc(var(--g-top) + clamp(40px, 6vw, 84px)) 0 clamp(120px, 13vw, 190px); min-height: clamp(540px, 50vw, 700px);
}
.gv-hero__photo { position: absolute; z-index: -2; top: 0; right: 0; bottom: 0; width: 68%; margin: 0; }
.gv-hero__photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 58%; }
.gv-hero::before {
  content: ''; position: absolute; z-index: -1; inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 24, 18, .6) 0%, rgba(10, 24, 18, 0) 30%),
    linear-gradient(90deg, #10281f 0%, #10281f 31%, rgba(16, 40, 31, .78) 45%, rgba(16, 40, 31, .24) 66%, rgba(16, 40, 31, 0) 84%);
}
.gv-hero::after {
  content: ''; position: absolute; z-index: 1; left: 0; right: 0; bottom: -1px; height: clamp(70px, 8vw, 116px); pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 100' preserveAspectRatio='none'%3E%3Cpath d='M0 62C230 8 520 2 780 34S1230 76 1440 22V100H0Z' fill='%23f6efdf'/%3E%3C/svg%3E") center bottom / 100% 100% no-repeat;
}
.gv-hero__in { position: relative; width: min(100% - 2 * var(--gutter), 1240px); margin-inline: auto; }
.gv-kicker { display: flex; align-items: center; gap: 14px; margin: 0 0 22px; font-size: .8rem; font-weight: 500; letter-spacing: .3em; text-transform: uppercase; color: var(--gv-gold-lt); }
.gv-kicker::before { content: '\2726'; flex: none; font-size: .8em; line-height: 1; color: var(--gv-gold); }
.gv-title { margin: 0; max-width: 11em; font-family: var(--font-display); font-weight: 500; font-size: clamp(2.8rem, 5.8vw, 4.9rem); line-height: 1.02; letter-spacing: -.005em; color: #f6f1e4; }
.gv-title span { display: block; color: var(--gv-gold-lt); }
.gv-lead { margin: clamp(18px, 2.4vw, 28px) 0 0; max-width: 27em; font-size: clamp(1rem, 1.25vw, 1.12rem); font-weight: 300; line-height: 1.65; color: #efe9da; }

/* branches d'olivier décoratives */
.gv-leaf { position: absolute; pointer-events: none; }
.gv-leaf svg { display: block; width: 100%; height: auto; }
.gv-leaf--a { z-index: 2; left: -22px; bottom: clamp(56px, 8vw, 118px); width: clamp(120px, 12vw, 186px); }
.gv-leaf--b { z-index: 1; right: clamp(-10px, 1vw, 20px); bottom: clamp(20px, 3vw, 46px); width: clamp(150px, 17vw, 260px); transform: scaleX(-1) rotate(-6deg); opacity: .92; }

/* ---------- Section crème ---------- */
.gv-main { position: relative; background: var(--gv-cream); color: var(--gv-green); padding: clamp(10px, 2vw, 24px) 0 clamp(40px, 6vw, 80px); }
.gv-h { display: flex; align-items: center; justify-content: center; gap: clamp(14px, 2vw, 24px); margin: 0 0 clamp(26px, 3.4vw, 40px); }
.gv-h::before, .gv-h::after { content: '\2726'; flex: none; font-size: 1rem; line-height: 1; color: #b8914f; }
.gv-h h2 { margin: 0; font-family: var(--font-display); font-weight: 500; font-size: clamp(1.6rem, 2.6vw, 2.35rem); line-height: 1.1; text-align: center; color: var(--gv-green); }
.gv-block + .gv-block { margin-top: clamp(48px, 6vw, 84px); }

/* vidéos */
.gv-cards { list-style: none; margin: 0 auto; padding: 0; width: min(100% - 2 * var(--gutter), 1040px); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2.2vw, 28px); }
.gv-card { position: relative; aspect-ratio: 3 / 4.7; overflow: hidden; border-radius: 22px; background: #0b110f; box-shadow: 0 22px 40px -22px rgba(16, 40, 31, .55); }
.gv-card video, .gv-card__poster { position: absolute; inset: 0; width: 100%; height: 100%; display: block; object-fit: cover; background: #0b110f; }
.gv-card__shade { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(0, 0, 0, .28) 0%, rgba(0, 0, 0, 0) 24%, rgba(0, 0, 0, 0) 52%, rgba(0, 0, 0, .78) 100%); }
.gv-card__reel { position: absolute; top: 16px; right: 16px; width: 24px; height: 24px; color: #fff; pointer-events: none; }
.gv-card__play {
  position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px; display: grid; place-items: center; padding: 0; cursor: pointer;
  border: 2px solid rgba(255, 255, 255, .92); border-radius: 50%; background: rgba(0, 0, 0, .22); color: #fff; -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  transition: transform .25s var(--ease-out), background-color .25s var(--ease-out);
}
.gv-card__play svg { width: 24px; height: 24px; margin-left: 3px; }
.gv-card__play:active { transform: scale(.94); }
.gv-card__play:focus-visible { outline: 2px solid var(--gv-gold-lt); outline-offset: 5px; }
@media (hover: hover) and (pointer: fine) { .gv-card__play:hover { transform: scale(1.07); background: rgba(0, 0, 0, .42); } }
.gv-card__cap { position: absolute; left: 18px; right: 70px; bottom: 16px; margin: 0; font-size: .92rem; line-height: 1.35; color: #fff; pointer-events: none; }
.gv-card__dur { position: absolute; right: 18px; bottom: 16px; font-size: .86rem; color: #fff; font-variant-numeric: tabular-nums; pointer-events: none; }
.gv-card.is-playing .gv-card__poster, .gv-card.is-playing .gv-card__shade, .gv-card.is-playing .gv-card__reel, .gv-card.is-playing .gv-card__play,
.gv-card.is-playing .gv-card__cap, .gv-card.is-playing .gv-card__dur { display: none; }

/* mosaïque */
.gv-mosaic { width: min(100% - 2 * var(--gutter), 1320px); margin-inline: auto; display: grid; gap: clamp(8px, 1.1vw, 14px); grid-template-columns: minmax(0, 1.32fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, .86fr); grid-template-rows: repeat(2, clamp(150px, 17.5vw, 248px)); }
.gv-ph { position: relative; display: block; width: 100%; height: 100%; padding: 0; border: 0; overflow: hidden; border-radius: 18px; cursor: pointer; background: #d9cfb8; }
.gv-ph img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease-out); }
.gv-ph:focus-visible { outline: 2px solid var(--gv-green); outline-offset: 3px; }
@media (hover: hover) and (pointer: fine) { .gv-ph:hover img { transform: scale(1.05); } }
.gv-mosaic > :nth-child(1) { grid-column: 1; grid-row: 1 / span 2; }
.gv-mosaic > :nth-child(2) { grid-column: 2; grid-row: 1; }
.gv-mosaic > :nth-child(3) { grid-column: 2; grid-row: 2; }
.gv-mosaic > :nth-child(4) { grid-column: 3; grid-row: 1; }
.gv-mosaic > :nth-child(5) { grid-column: 3; grid-row: 2; }
.gv-mosaic > :nth-child(6) { grid-column: 4; grid-row: 1 / span 2; }
.gv-mosaic > li, .gv-more > li { margin: 0; min-width: 0; min-height: 0; }
.gv-mosaic { list-style: none; padding: 0; margin-block: 0; }

.gv-more { list-style: none; margin: clamp(10px, 1.4vw, 14px) auto 0; padding: 0; width: min(100% - 2 * var(--gutter), 1320px); display: grid; gap: clamp(8px, 1.1vw, 14px); grid-template-columns: repeat(4, minmax(0, 1fr)); }
.gv-more[hidden] { display: none; }
.gv-more > li { aspect-ratio: 4 / 5; margin: 0; }
.gv-more.is-in > li { animation: gvIn .5s var(--ease-out) both; }
@keyframes gvIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* ---------- Bandeau vert ---------- */
.gv-end { position: relative; overflow: hidden; background: var(--gv-green); padding: clamp(110px, 12vw, 170px) 0 clamp(70px, 8vw, 110px); text-align: center; }
.gv-end::before {
  content: ''; position: absolute; left: 0; right: 0; top: -1px; height: clamp(60px, 7vw, 100px); pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 100' preserveAspectRatio='none'%3E%3Cpath d='M0 0H1440V30C1210 84 930 90 680 60S230 16 0 56Z' fill='%23f6efdf'/%3E%3C/svg%3E") center top / 100% 100% no-repeat;
}
.gv-end::after { content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none; background: radial-gradient(ellipse 60% 80% at 50% 100%, rgba(52, 100, 76, .3) 0%, transparent 70%); }
.gv-btn {
  position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 12px; min-height: 52px; padding: 14px 36px; cursor: pointer;
  border: 1px solid var(--gv-gold); border-radius: 999px; background: transparent; color: #f6f1e4; font: inherit; font-size: .96rem; letter-spacing: .04em;
  transition: background-color .3s var(--ease-out), color .3s var(--ease-out), transform .16s var(--ease-out);
}
.gv-btn i { font-style: normal; transition: transform .35s var(--ease-out); }
.gv-btn:active { transform: scale(.97); }
.gv-btn:focus-visible { outline: 2px solid var(--gv-gold-lt); outline-offset: 5px; }
.gv-btn[aria-expanded="true"] i { transform: rotate(-90deg); }
@media (hover: hover) and (pointer: fine) { .gv-btn:hover { background: var(--gv-gold); color: var(--gv-green); } }

/* ---------- Mobile et tablette ---------- */
@media (max-width: 899px) {
  .gv-hero { min-height: 0; padding-bottom: clamp(110px, 24vw, 150px); }
  .gv-hero__photo { width: 100%; }
  .gv-hero::before { background: linear-gradient(180deg, rgba(10, 24, 18, .5) 0%, rgba(16, 40, 31, .25) 22%, rgba(16, 40, 31, .78) 58%, #10281f 100%); }
  .gv-hero__in { padding-top: clamp(150px, 42vw, 300px); }
  .gv-leaf { display: none; }
  .gv-cards { display: flex; width: 100%; margin: 0; padding: 4px var(--gutter) 14px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; gap: 14px; }
  .gv-cards::-webkit-scrollbar { display: none; }
  .gv-card { flex: 0 0 min(72vw, 300px); scroll-snap-align: center; }
  .gv-mosaic { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: none; grid-auto-rows: auto; }
  .gv-mosaic > li { aspect-ratio: 4 / 5; }
  .gv-mosaic > :nth-child(1), .gv-mosaic > :nth-child(6) { grid-column: 1 / -1; grid-row: auto; aspect-ratio: 4 / 3; }
  .gv-mosaic > :nth-child(n+2):nth-child(-n+5) { grid-column: auto; grid-row: auto; }
  .gv-more { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gv-end::before { height: 56px; }
}
@media (prefers-reduced-motion: reduce) { .gv-ph img, .gv-card__play, .gv-btn i { transition: none; } .gv-more.is-in > li { animation: none; } }
