/*
 * L'ouverture photo (ses portes : parties-v3/communs/portes.css). Reprise de la maquette
 * maquettes/home-2026-10/v1 (sections .ouverture et .portes), sur les jetons
 * de charte-v1.css. Aucune valeur en rem : le thème met html à 62,5 %.
 */
.gv1-ouv { position: relative; background: var(--gv-menu); }
.gv1-ouv-photo { position: relative; height: clamp(560px, 78vh, 740px); overflow: hidden; }
.gv1-ouv-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 40%; animation: gv1-ouv-zoom 9s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes gv1-ouv-zoom { from { transform: scale(1.08); } to { transform: none; } }
.gv1-ouv-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(28, 40, 52, .86) 0%, rgba(28, 40, 52, .62) 36%, rgba(28, 40, 52, .08) 66%), linear-gradient(0deg, rgba(28, 40, 52, .45), transparent 40%); }
.gv1-ouv--sans-photo .gv1-ouv-photo { height: clamp(420px, 60vh, 560px); }
.gv1-ouv-texte { position: absolute; inset: 0; z-index: 2; display: flex; align-items: center; }
.gv1-ouv-texte .gv-wrap { padding-bottom: 96px; }
/* Le surtitre du cahier V1.2 (D) est une phrase : deux lignes, la feuille en tête. */
.gv1-ouv .gv1-surtitre { color: var(--gv-tilleul); max-width: 720px; line-height: 1.6; align-items: flex-start; }
.gv1-ouv .gv1-surtitre svg { margin-top: 2px; }
.gv3 .gv1-ouv-titre { font-size: clamp(38px, 4.6vw, 62px); font-weight: 900; color: #fff; max-width: 13ch; margin: 16px 0 22px; line-height: 1.04; letter-spacing: -.02em; animation: gv1-ouv-monte 1s cubic-bezier(.2, .8, .2, 1) both; }
.gv3 .gv1-ouv-titre em { color: var(--gv-tilleul); }
@keyframes gv1-ouv-monte { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
.gv3 .gv1-ouv-sous { color: rgba(255, 255, 255, .9); font-size: clamp(16.5px, 1.25vw, 19px); max-width: 52ch; line-height: 1.6; animation: gv1-ouv-monte 1s 120ms cubic-bezier(.2, .8, .2, 1) both; }
.gv1-ouv-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; animation: gv1-ouv-monte 1s 240ms cubic-bezier(.2, .8, .2, 1) both; }
.gv3 .gv1-ouv-mention { position: absolute; right: var(--gv-gouttiere); bottom: 96px; z-index: 2; font-size: 11.5px; line-height: 1.4; color: rgba(255, 255, 255, .72); max-width: 320px; text-align: right; font-style: italic; }

/* Les deux publics : la photo du public qui n'est pas affiché est retirée par
   charte-v1.css ; ici, on empile seulement les onglets et le texte. */
.gv1-ouv-publics { margin: 0 0 22px; animation: gv1-ouv-monte 1s 80ms cubic-bezier(.2, .8, .2, 1) both; }
.gv1-ouv-version { max-width: 620px; }

@media (max-width: 760px) {
	.gv1-ouv-photo { height: 680px; }
	.gv1-ouv-photo img { object-position: 30% 40%; }
	.gv1-ouv-photo::after { background: linear-gradient(0deg, rgba(28, 40, 52, .92) 0%, rgba(28, 40, 52, .7) 45%, rgba(28, 40, 52, .2) 100%); }
	.gv1-ouv-texte { align-items: flex-end; }
	.gv1-ouv-texte .gv-wrap { padding-bottom: 96px; }
	.gv1-ouv-publics { display: flex; width: 100%; margin-bottom: 18px; }
	:root .gv1-ouv-publics a { flex: 1; padding: 0 8px; font-size: 13.5px; letter-spacing: 0; }
	.gv3 .gv1-ouv-titre { font-size: clamp(34px, 10vw, 46px); }
	.gv3 .gv1-ouv-sous { font-size: 16px; }
	.gv1-ouv-actions .gv-btn { flex: 1 1 100%; white-space: normal; }
	.gv3 .gv1-ouv-mention { left: var(--gv-gouttiere); right: var(--gv-gouttiere); bottom: 70px; text-align: left; font-size: 11px; max-width: none; }
}
@media (prefers-reduced-motion: reduce) {
	.gv1-ouv-photo img, .gv3 .gv1-ouv-titre, .gv3 .gv1-ouv-sous, .gv1-ouv-actions { animation: none; }
}

/* ── Le curseur avant / après (cahier V1.2, E) ─────────────────────────────
   L'avant à gauche de la frontière --x, l'après à droite. Le voile d'ardoise
   (::after) passe au-dessus des deux, pour que le texte reste lisible. */
.gv1-ouv-comparer { touch-action: pan-y; }
.gv1-ouv-comparer > img, .gv1-ouv-apres img { position: absolute; inset: 0; }
.gv1-ouv-apres { position: absolute; inset: 0; clip-path: inset(0 0 0 var(--x, 56%)); z-index: 0; }
.gv1-ouv-barre { position: absolute; top: 0; bottom: 0; left: var(--x, 56%); width: 3px; margin-left: -1.5px; background: #fff; z-index: 1; pointer-events: none; box-shadow: 0 0 18px rgba(0, 0, 0, .25); }
.gv1-ouv-poignee { position: absolute; top: 50%; left: var(--x, 56%); width: 56px; height: 56px; margin: -28px 0 0 -28px; border-radius: 50%; background: var(--gv-tilleul); color: var(--gv-ardoise); display: grid; place-items: center; box-shadow: 0 10px 30px rgba(0, 0, 0, .35); z-index: 1; pointer-events: none; }
.gv1-ouv-poignee svg { width: 22px; height: 22px; }
.gv1-ouv-comparer::after { z-index: 0; pointer-events: none; }
/* Deux photos claires sous le texte : le voile tient un peu plus loin. */
@media (min-width: 761px) {
	.gv1-ouv-comparer::after { background: linear-gradient(90deg, rgba(28, 40, 52, .88) 0%, rgba(28, 40, 52, .7) 40%, rgba(28, 40, 52, .1) 70%), linear-gradient(0deg, rgba(28, 40, 52, .45), transparent 40%); }
}
.gv1-ouv-curseur { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; z-index: 1; touch-action: pan-y; }
.gv1-ouv-comparer:focus-within .gv1-ouv-poignee { outline: 3px solid #fff; outline-offset: 3px; }
/* Le texte laisse passer le pointeur jusqu'au curseur ; ses commandes le gardent. */
.gv1-ouv-texte { pointer-events: none; }
.gv1-ouv-texte :is(a, button, input, select, [role="tab"]) { pointer-events: auto; }
/* Le voile de l'ouverture assombrit déjà l'avant : la frontière se lit à la barre. */
@media (max-width: 760px) {
	/* Sur téléphone, le texte occupe le bas : la poignée se tient en haut, sur la photo. */
	.gv1-ouv-poignee { top: 13%; width: 48px; height: 48px; margin: -24px 0 0 -24px; }
	.gv1-ouv .gv1-surtitre { font-size: 11.5px; letter-spacing: .07em; }
}

/* ── Le diaporama (6 novembre 2026) ────────────────────────────────────────
   Deux plans superposés : celui qui entre passe au-dessus en fondu. Chaque
   plan porte sa frontière (--x) ; la barre et la poignée suivent celle du
   conteneur, et s'effacent le temps du fondu. */
.gv1-ouv-plans { position: absolute; inset: 0; z-index: 0; }
.gv1-ouv-plan { position: absolute; inset: 0; opacity: 0; }
.gv1-ouv-plan.est-actif { opacity: 1; z-index: 1; }
.gv1-ouv-plan > img { position: absolute; inset: 0; }
.gv1-ouv-diapo .gv1-ouv-barre, .gv1-ouv-diapo .gv1-ouv-poignee { transition: opacity .3s ease; }
.gv1-ouv-change .gv1-ouv-barre, .gv1-ouv-change .gv1-ouv-poignee { opacity: 0; }
.gv1-ouv-defile { position: absolute; right: var(--gv-gouttiere); bottom: 28px; z-index: 3; display: flex; align-items: center; gap: 6px; max-width: min(680px, calc(100% - 2 * var(--gv-gouttiere))); padding: 6px; border-radius: 999px; background: rgba(28, 40, 52, .62); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); color: #fff; }
.gv1-ouv-defile[hidden] { display: none; }
.gv3 .gv1-ouv-legende { display: flex; flex-direction: column; min-width: 0; margin: 0; padding: 2px 12px 2px 14px; line-height: 1.3; color: #fff; }
.gv1-ouv-legende b { font-size: 10.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--gv-tilleul); }
.gv1-ouv-legende span { overflow: hidden; font-size: 14px; font-weight: 600; white-space: nowrap; text-overflow: ellipsis; }
.gv3 .gv1-ouv-cmd { flex-shrink: 0; display: grid; place-items: center; width: 36px; height: 36px; min-width: 0; min-height: 0; margin: 0; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .12); color: #fff; box-shadow: none; cursor: pointer; transition: background .2s ease; }
.gv3 .gv1-ouv-cmd:hover { background: rgba(255, 255, 255, .24); }
.gv3 .gv1-ouv-cmd:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.gv1-ouv-cmd svg { width: 16px; height: 16px; }
.gv1-ouv-cmd .gv1-ouv-lire, .gv1-ouv-cmd[aria-pressed="true"] .gv1-ouv-arret { display: none; }
.gv1-ouv-cmd[aria-pressed="true"] .gv1-ouv-lire { display: block; }
@media (max-width: 760px) {
	/* Le texte occupe le bas : la commande se pose dessous, la mention au-dessus d'elle. */
	.gv1-ouv-defile { left: 12px; right: 12px; bottom: 12px; max-width: none; justify-content: flex-end; border-radius: 22px; }
	.gv1-ouv-legende { flex: 1; }
	.gv1-ouv-legende span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; font-size: 12.5px; white-space: normal; }
	.gv1-ouv--diapo .gv1-ouv-texte .gv-wrap { padding-bottom: 116px; }
	.gv3 .gv1-ouv--diapo .gv1-ouv-mention { bottom: 82px; }
}
@media (prefers-reduced-motion: reduce) {
	.gv1-ouv-diapo .gv1-ouv-barre, .gv1-ouv-diapo .gv1-ouv-poignee, .gv3 .gv1-ouv-cmd { transition: none; }
}
