/* ===== V7 : galerie en deux colonnes ===== */
.gl-split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 20px; align-items: stretch; margin-top: 4px; }
.gl-split.solo { grid-template-columns: minmax(0, 1fr); }
.gl-col { display: flex; flex-direction: column; min-width: 0; }
.gl-col .gl-g { margin: 18px 0 12px; }
.gl-col .gl-row { flex: 1; min-height: 0; gap: 8px; }
/* colonne de gauche : espaces communs, empilés et qui remplissent la hauteur */
.gl-col-com .gl-row { display: flex; flex-direction: column; flex-wrap: nowrap; align-items: stretch; }
.gl-col-com .gl-item { flex: 1 1 0 !important; min-height: 300px; }
/* colonne de droite : appartements en mosaïque, le premier en grand si le compte est impair */
.gl-col-apt .gl-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: auto; align-content: start; }
.gl-col-apt .gl-row.odd .gl-item:first-child { grid-column: 1 / -1; }
.gl-split.solo .gl-col-apt .gl-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.gl-split.solo .gl-col-apt .gl-row.odd .gl-item:first-child { grid-column: auto; }
.gl-split.solo .gl-col-com .gl-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.gl-split .gl-item { position: relative; width: 100%; min-width: 0; }
.gl-split .gl-item img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.gl-split .gl-col-apt .gl-item { aspect-ratio: 3 / 2; }
.gl-split .gl-col-apt .gl-row.odd .gl-item:first-child { aspect-ratio: 21 / 9; }
/* 3 espaces communs ou plus : deux colonnes égales, en grille */
.gl-split.wide-com:not(.solo) { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.wide-com .gl-col-com .gl-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: auto; align-content: start; }
.wide-com .gl-col-com .gl-item { aspect-ratio: 3 / 2; min-height: 0; flex: none !important; }
@media (max-width: 900px) {
  .gl-split { grid-template-columns: minmax(0, 1fr); }
  .gl-col-com .gl-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gl-col-com .gl-item { aspect-ratio: 3 / 2; min-height: 0; flex: none !important; }
  .gl-split .gl-item { flex-basis: auto !important; }
  .gl-col-apt .gl-row { grid-auto-rows: auto; align-content: start; }
}
@media (max-width: 520px) { .gl-col-com .gl-row, .gl-col-apt .gl-row { grid-template-columns: minmax(0, 1fr); } .gl-col-apt .gl-row.odd .gl-item:first-child { aspect-ratio: 3 / 2; } }

/* ===== V7 : boutons-icônes ===== */
.ico-only { position: relative; width: 44px; height: 44px; min-width: 44px; padding: 0 !important; border-radius: 50%; display: inline-grid; place-items: center; overflow: visible; }
.card-close.ico-only { width: 40px; height: 40px; min-width: 40px; }
.ico-only .ico { width: 20px; height: 20px; stroke-width: 2; }
.ico-only .ico-close, .ico-only .ico * { transition: transform 380ms var(--ease-out); }
.ico-only .w1, .ico-only .w2 { stroke-dasharray: 16; stroke-dashoffset: 0; }
@keyframes draw { from { stroke-dashoffset: 16; } to { stroke-dashoffset: 0; } }
@keyframes dotHop { 0%, 100% { transform: translateY(0); } 40% { transform: translateY(-3px); } }
@media (hover: hover) and (pointer: fine) {
  .ico-only:hover .ico-close { transform: rotate(90deg); }
  .ico-only:hover .ico-plan .w1 { animation: draw 520ms var(--ease-out) both; }
  .ico-only:hover .ico-plan .w2 { animation: draw 520ms 120ms var(--ease-out) both; }
  .ico-only:hover .ico-plan .dt { animation: dotHop 600ms 200ms var(--ease-out); }
  .ico-only:hover .ico-grid rect { animation: tile 560ms var(--ease-out) both; }
  .ico-only:hover .ico-grid .b { animation-delay: 70ms; } .ico-only:hover .ico-grid .c { animation-delay: 140ms; } .ico-only:hover .ico-grid .d { animation-delay: 210ms; }
  .ico-only:hover .ico-prev .ch { transform: translateX(-3px); }
  .ico-only:hover .ico-next .ch { transform: translateX(3px); }
  .ico-only[data-tip]:hover::after, .ico-only[data-tip]:focus-visible::after { opacity: 1; transform: translate(-50%, 0); transition-delay: 350ms; }
}
.ico-only:active .ico { transform: scale(.88); }
.ico-only[data-tip]::after { content: attr(data-tip); position: absolute; left: 50%; top: calc(100% + 8px); transform: translate(-50%, -4px); padding: 6px 10px; border-radius: 999px; background: #12181d; color: #fff; font-size: 12px; font-weight: 500; white-space: nowrap; opacity: 0; pointer-events: none; z-index: 5; transition: opacity 160ms var(--ease-out), transform 160ms var(--ease-out); }
.sp-ctrl .ico-only[data-tip]::after { top: auto; bottom: calc(100% + 8px); }
.sp-ctrl { gap: 10px; }
@media (max-width: 760px) { .sp-close.ico-only { top: var(--m); } }
@media (prefers-reduced-motion: reduce) { .ico-only .ico-close, .ico-only .ico * { transition: none; animation: none !important; } }
.sp-ctrl .ico-only:last-child[data-tip]::after { left: auto; right: 0; transform: translate(0, -4px); }
@media (hover: hover) and (pointer: fine) { .sp-ctrl .ico-only:last-child[data-tip]:hover::after { transform: translate(0, 0); } }
