/* « Une » — page d'accueil composée à la main (grille de 12 colonnes). Utilisé par le site et par l'éditeur. */
.une-grid {
  --une-row: 56px; --une-gap: 12px;
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-rows: var(--une-row); gap: var(--une-gap);
  width: 100%; position: relative;
}
/* « Thème » / « Style » propres à une mise en page (js/kits.js) : une zone colorée et typée, sans toucher au reste du site */
.une-grid.has-theme { background: var(--theme-bg); padding: 14px; border-radius: 16px; box-sizing: border-box; }
.une-grid.has-style { font-family: var(--f-body); }
.une-item { position: relative; min-width: 0; min-height: 0; border-radius: 14px; overflow: hidden; color: var(--theme-ink, #f7efe6); }
.une-item a.une-link { position: absolute; inset: 0; z-index: 2; text-decoration: none; color: inherit; }

/* Dossier — 3 présentations */
.une-dossier { background: #1c1316 center / cover no-repeat; border: 1px solid rgba(246,238,230,.1); }
.une-dossier .u-img { position: absolute; inset: 0; background: center / cover no-repeat; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.une-dossier:hover .u-img { transform: scale(1.04); }
.une-dossier.v-cover .u-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(9,6,7,0) 30%, rgba(9,6,7,.88) 100%); }
.une-dossier .u-txt { position: absolute; left: 0; right: 0; bottom: 0; padding: clamp(12px, 2vw, 22px); z-index: 1; }
.u-badge { display: inline-block; font: 800 10.5px var(--f-body, Figtree, sans-serif); letter-spacing: .06em; text-transform: uppercase; background: var(--infoblock-badge-bg, #ff3e24); color: var(--infoblock-badge-text, #fff); padding: 3px 10px; border-radius: 99px; margin-bottom: 8px; }
.u-title { font-family: var(--f-title, Syne, sans-serif); font-weight: 800; letter-spacing: -.01em; line-height: 1.12; margin: 0; font-size: clamp(17px, 2.1vw, 28px); text-shadow: 0 1px 12px rgba(0,0,0,.45); }
.u-sub { margin: 8px 0 0; font-size: 14px; line-height: 1.45; color: var(--theme-muted, rgba(247,239,230,.85)); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.une-item[data-h="2"] .u-sub, .une-item[data-h="3"] .u-sub { display: none; }
.une-dossier.v-card { display: flex; flex-direction: column; background: var(--infoblock-bg, #1c1316); }
.une-dossier.v-card .u-imgwrap { position: relative; flex: 1 1 55%; min-height: 0; overflow: hidden; }
.une-dossier.v-card .u-img { position: absolute; inset: 0; }
.une-dossier.v-card .u-txt { position: static; flex: 0 0 auto; padding: 14px 16px 16px; }
.une-dossier.v-text { background: var(--infoblock-bg, #1c1316); border-color: var(--infoblock-border, rgba(246,238,230,.14)); display: flex; align-items: flex-end; }
.une-dossier.v-text .u-txt { position: static; }
.u-date { margin-top: 6px; font-size: 12px; color: rgba(247,239,230,.6); }
.u-more { display: inline-block; margin-top: 10px; color: var(--theme-gold, #f5c249); font-weight: 800; font-size: 13px; }
.u-missing { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 10px; color: rgba(247,239,230,.5); font-size: 13px; border: 2px dashed rgba(247,239,230,.2); border-radius: 14px; }

/* Titre */
.une-title { display: flex; align-items: center; background: none; border-radius: 0; overflow: visible; }
.une-title .t { margin: 0; font-family: var(--f-title, Syne, sans-serif); font-weight: 800; letter-spacing: -.02em; line-height: 1.1; width: 100%; overflow-wrap: anywhere; }
.une-title.s-s .t { font-size: clamp(15px, 1.6vw, 19px); } .une-title.s-m .t { font-size: clamp(19px, 2.3vw, 28px); }
.une-title.s-l .t { font-size: clamp(24px, 3.4vw, 42px); } .une-title.s-xl .t { font-size: clamp(30px, 5vw, 66px); }
.une-title.a-left .t { text-align: left; } .une-title.a-center .t { text-align: center; } .une-title.a-right .t { text-align: right; }
.une-title.tone-ink .t { color: var(--theme-ink, #f7efe6); } .une-title.tone-gold .t { color: var(--theme-gold, #f5c249); } .une-title.tone-accent .t { color: var(--theme-accent, #ff5942); }

/* Photo */
.une-image { background: #140e10; }
.une-image img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.une-image.fit-cover img { object-fit: cover; } .une-image.fit-contain img { object-fit: contain; }
.une-image .cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 14px 10px; font-size: 13px; background: linear-gradient(transparent, rgba(0,0,0,.65)); z-index: 1; }

/* Diaporama : carrousel ou grille */
.une-gallery { background: #140e10; }
.ug-car { position: absolute; inset: 0; }
.ug-slide { position: absolute; inset: 0; opacity: 0; transition: opacity .6s ease; }
.ug-slide.on { opacity: 1; z-index: 1; }
.ug-slide img, .ug-cell img { width: 100%; height: 100%; display: block; }
.ug-car.fit-cover img, .ug-cell img { object-fit: cover; } .ug-car.fit-contain img { object-fit: contain; }
.ug-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 14px 12px; font-size: 13px; background: linear-gradient(transparent, rgba(0,0,0,.7)); color: #fff; }
.ug-nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(0,0,0,.5); color: #fff; font-size: 24px; line-height: 1; cursor: pointer; opacity: 0; transition: opacity .2s; }
.ug-nav.prev { left: 10px; } .ug-nav.next { right: 10px; }
.une-gallery:hover .ug-nav, .ug-nav:focus-visible { opacity: 1; }
@media (hover: none) { .ug-nav { opacity: .75; } }
.ug-dots { position: absolute; left: 0; right: 0; bottom: 10px; z-index: 3; display: flex; justify-content: center; gap: 7px; pointer-events: none; }
.ug-dot { pointer-events: auto; width: 9px; height: 9px; padding: 0; border-radius: 50%; border: 0; background: rgba(255,255,255,.45); cursor: pointer; }
.ug-dot.on { background: var(--theme-gold, #f5c249); transform: scale(1.25); }
.ug-slide .ug-cap { padding-bottom: 28px; }
.ug-grid { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); grid-auto-rows: 1fr; gap: 6px; }
.ug-cell { position: relative; overflow: hidden; border-radius: 8px; min-height: 0; }
.ug-count { position: absolute; right: 8px; bottom: 8px; z-index: 3; font-size: 11px; font-weight: 800; background: rgba(0,0,0,.65); color: #fff; padding: 2px 9px; border-radius: 999px; }

/* Slideshow intégré (lecteur du Slideshow dans la grille) */
.une-slideshow { background: #000; }
.ss-stage { position: absolute; overflow: hidden; }
.ss-stage.ss-in { animation: ssIn .5s ease both; }
@keyframes ssIn { from { opacity: 0; } to { opacity: 1; } }
.ss-bg { position: absolute; inset: 0; background: center / cover no-repeat; }
.ss-layer { position: absolute; box-sizing: border-box; pointer-events: none; }
.ss-inner { width: 100%; }
.une-slideshow.ss-empty { background: rgba(255,255,255,.04); }

/* Texte libre */
.une-text { background: none; overflow: visible; font-size: 15px; line-height: 1.6; }
.une-text p { margin: 0 0 .8em; } .une-text strong { color: var(--theme-gold, #f5c249); } .une-text a { color: var(--theme-gold, #f5c249); }
.une-text ul, .une-text ol { margin: 0 0 .8em 1.2em; }
.une-text.a-left { text-align: left; } .une-text.a-center { text-align: center; } .une-text.a-right { text-align: right; }

/* Mobile : une seule colonne, dans l'ordre de lecture (haut → bas, gauche → droite) */
@media (max-width: 720px) {
  .une-grid:not(.une-edit):not(.une-thumb) { grid-template-columns: 1fr; grid-auto-rows: auto; }
  .une-grid:not(.une-edit):not(.une-thumb) .une-item { grid-column: 1 !important; grid-row: auto !important; min-height: calc(var(--uh, 4) * 34px); }
  .une-grid:not(.une-edit):not(.une-thumb) .une-item.une-title, .une-grid:not(.une-edit):not(.une-thumb) .une-item.une-text { min-height: 0; }
  .une-grid:not(.une-edit):not(.une-thumb) .une-item.une-image, .une-grid:not(.une-edit):not(.une-thumb) .une-item.une-gallery, .une-grid:not(.une-edit):not(.une-thumb) .une-item.une-slideshow { min-height: 56vw; }
  .une-grid:not(.une-edit):not(.une-thumb) .une-item.une-gallery.g-grid { min-height: 80vw; }
}
