/* Klay collective — feuille de style du site public (valeurs pilotées par les variables du thème) */

/* Polices : équivalents libres des polices Adobe d'origine. Les noms internes (xbrs, lgmv, htpz)
   sont ceux utilisés dans les textes importés ; remplacer les fichiers ici suffit pour changer de police. */
@font-face { font-family: xbrs; src: url(/fonts/league-gothic-latin-400-normal.woff2) format('woff2'); font-weight: 400; font-display: swap;  size-adjust: 93.8%; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: xbrs; src: url(/fonts/league-gothic-latin-ext-400-normal.woff2) format('woff2'); font-weight: 400; font-display: swap; size-adjust: 93.8%; unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
/* La police d'origine (Abolition) n'a que des capitales : on reproduit cet effet. */
[style*="font-family:xbrs"], [style*="font-family: xbrs"] { text-transform: uppercase; }
.rich-text [style*="font-family:"]:not([style*="xbrs"]) { text-transform: none; }
@font-face { font-family: lgmv; src: url(/fonts/lato-latin-300-normal.woff2) format('woff2'); font-weight: 300; font-style: normal; font-display: swap; size-adjust: 92.9%; }
@font-face { font-family: lgmv; src: url(/fonts/lato-latin-300-italic.woff2) format('woff2'); font-weight: 300; font-style: italic; font-display: swap; size-adjust: 92.9%; }
@font-face { font-family: lgmv; src: url(/fonts/lato-latin-400-normal.woff2) format('woff2'); font-weight: 400 500; font-style: normal; font-display: swap; size-adjust: 92.9%; }
@font-face { font-family: lgmv; src: url(/fonts/lato-latin-400-italic.woff2) format('woff2'); font-weight: 400 500; font-style: italic; font-display: swap; size-adjust: 92.9%; }
@font-face { font-family: lgmv; src: url(/fonts/lato-latin-700-normal.woff2) format('woff2'); font-weight: 600 800; font-style: normal; font-display: swap; size-adjust: 95.3%; }
@font-face { font-family: lgmv; src: url(/fonts/lato-latin-700-italic.woff2) format('woff2'); font-weight: 600 800; font-style: italic; font-display: swap; size-adjust: 95.3%; }
@font-face { font-family: htpz; src: url(/fonts/barlow-condensed-latin-400-normal.woff2) format('woff2'); font-weight: 400; font-display: swap; size-adjust: 113.6%; }

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); min-height: 100%; }
body { margin: 0; min-height: 100%; font-family: sans-serif; color: #000; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; transition: color .2s ease, background .2s ease; }
img { border: 0; }
.disable-download img { -webkit-user-drag: none; user-select: none; }
.disable-download .project-module img, .disable-download .project-cover img { pointer-events: none; }

.site-container { position: relative; width: 100%; max-width: var(--max-width); margin: 0 auto; }
.site-content { margin: 0 var(--side-margin); }
.site-content::after { content: ""; display: table; clear: both; }

/* ---------- Barre latérale ---------- */
.sidebar-content { float: left; width: var(--sidebar-width); }
main { float: left; width: calc(100% - var(--sidebar-width)); min-height: 100vh; }

.logo-wrap { padding-bottom: var(--logo-below); }
.logo { font-family: var(--logo-font); text-transform: var(--logo-tt); font-size: var(--logo-size); line-height: var(--logo-lh); color: var(--logo-color); word-wrap: break-word; white-space: pre-wrap; }
.logo a { color: var(--logo-color); }
.logo a:hover { color: var(--logo-hover); }

.site-nav { padding-top: 3px; }
nav ul { list-style: none; margin: 0; padding: 0; }
nav .group { padding-bottom: 14px; }
nav .gallery-title { padding-bottom: var(--navg-below); }
nav .gallery-title a { font-family: var(--navg-font); text-transform: var(--navg-tt); font-size: var(--navg-size); line-height: var(--navg-lh); color: var(--navg-color); }
nav .gallery-title a:hover { color: var(--navg-hover); }
nav .gallery-title a.active { color: var(--navg-active); }
nav .project-title { padding-bottom: var(--navp-below); }
nav .project-title a { font-family: var(--navp-font); text-transform: var(--navp-tt); font-size: var(--navp-size); line-height: var(--navp-lh); color: var(--navp-color); }
nav .project-title a:hover { color: var(--navp-hover); }
nav .project-title a.active { color: var(--navp-active); }
nav .page-title, nav .link-title { padding-bottom: var(--navpage-below); }
nav .page-title a, nav .link-title a { font-family: var(--navpage-font); text-transform: var(--navpage-tt); font-size: var(--navpage-size); line-height: var(--navpage-lh); color: var(--navpage-color); }
nav .page-title a:hover, nav .link-title a:hover { color: var(--navpage-hover); }
nav .page-title a.active { color: var(--navpage-active); }

.hamburger { display: none; }
.responsive-nav { display: none; }

/* ---------- Modules ---------- */
.modules::after { content: ""; display: table; clear: both; }
.project-module { clear: both; word-break: break-word; position: relative; }
.module-image, .module-grid, .module-embed { padding-bottom: var(--image-spacing); }
.module-text { padding-top: 5px; padding-bottom: 20px; max-width: var(--text-max-width, 800px); margin-left: auto; margin-right: auto; }
.pm-image-wrap { position: relative; width: 100%; height: 0; background: rgba(0,0,0,.03); overflow: hidden; }
.pm-image-wrap img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

.grid--main { display: flex; flex-wrap: wrap; margin: 0 calc(var(--grid-gutter) / -2); }
.grid__item { position: relative; display: block; box-sizing: content-box !important; border-left: calc(var(--grid-gutter) / 2) solid transparent; border-right: calc(var(--grid-gutter) / 2) solid transparent; border-bottom: var(--grid-gutter) solid transparent; }
.grid__item img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; display: block; }
.grid__filler { display: block; background: rgba(0,0,0,.03); }
.grid--rows { display: block; }
.grid__spacer { display: none; flex-grow: 90000000000; }
.grid__row { display: flex; }

.tree-wrapper { display: flex; }
.tree-wrapper.valign-center { align-items: center; }
.tree-wrapper.valign-bottom { align-items: flex-end; }
.tree-col { min-width: 1px; border-left: 4px solid transparent; border-right: 4px solid transparent; }
.tree-col:first-child { border-left: 0; }
.tree-col:last-child { border-right: 0; }
.tree-col::after { content: ""; display: table; clear: both; }

.pm-embed { position: relative; height: 0; overflow: hidden; }
.pm-embed iframe, .pm-embed video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Texte riche : styles « Titre / Sous-titre / Texte / Légende » */
.rich-text { word-wrap: break-word; }
.rich-text div, .rich-text p, .rich-text .main-text { font-family: var(--text-font); text-transform: var(--text-tt); font-size: var(--text-size); line-height: var(--text-lh); color: var(--text-color); padding: var(--text-above) 0 var(--text-below); margin: 0; text-align: center; }
.rich-text .title { font-family: var(--title-font); text-transform: var(--title-tt); font-size: var(--title-size); line-height: var(--title-lh); color: var(--title-color); padding: var(--title-above) 0 var(--title-below); text-align: center; }
.rich-text .sub-title { font-family: var(--subtitle-font); text-transform: var(--subtitle-tt); font-size: var(--subtitle-size); line-height: var(--subtitle-lh); color: var(--subtitle-color); padding: var(--subtitle-above) 0 var(--subtitle-below); text-align: center; }
.rich-text .caption, .module-caption div, .module-caption p { font-family: var(--caption-font); text-transform: var(--caption-tt); font-size: var(--caption-size); line-height: var(--caption-lh); color: var(--caption-color); padding: var(--caption-above) 0 var(--caption-below); text-align: center; }
.rich-text a { color: var(--link); }
.rich-text a:hover { color: var(--link-hover); }
.rich-text .texteditor-inline-color a, .rich-text span[style*="color"] a { color: inherit; }
.rich-text span[style*="font-size"] a { font-size: inherit; }
.rich-text ul, .rich-text ol { margin: 0; padding: 0 0 var(--text-sb, 20px) 1.4em; }
.rich-text li { padding: 0; }
.rich-text ul, .rich-text ol { text-align: left; font-family: var(--text-font); text-transform: var(--text-tt); font-size: var(--text-size); line-height: var(--text-lh); color: var(--text-color); }
.rich-text blockquote { margin: 0 0 0 1.5em; }
.module-caption-container { max-width: 800px; margin: 0 auto; }

/* ---------- Galerie (couvertures de projets) ---------- */
.project-covers { display: flex; flex-wrap: wrap; gap: 0 var(--cover-gap); }
.project-cover { position: relative; display: block; width: calc((100% - (var(--cover-cols) - 1) * var(--cover-gap)) / var(--cover-cols)); }
.cover-image { position: relative; padding-bottom: var(--cover-ratio); overflow: hidden; background: rgba(0,0,0,.03); }
.cover-image img, .cover-placeholder { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; transition: opacity .2s ease; }
.cover-rollover { opacity: 0; }
.project-cover.has-rollover:hover .cover-rollover { opacity: 1; }
.project-cover.has-rollover:hover .cover-normal { opacity: 0; }
.cover-image { margin-top: 1%; }
.cover-image::after { content: ""; position: absolute; inset: 0; z-index: 1; background: #fff; opacity: 0; transition: opacity .2s ease; pointer-events: none; }
.project-cover:hover .cover-image::after { opacity: .85; }
.cover-details { position: absolute; inset: 0; z-index: 2; padding: 5% 0; box-sizing: border-box; opacity: 0; transition: opacity .15s ease; pointer-events: none; }
.cover-details-box { height: 100%; display: flex; align-items: center; justify-content: center; padding: 0 5%; background: rgba(255,255,255,.9); }
.project-cover:hover .cover-details { opacity: 1; }
.covers-show-title .project-cover:hover .cover-image::after { opacity: 0; }
.covers-show-title .cover-details-box { background: none; padding: 0; }
.page-content[data-offset] { margin-left: var(--pg-ml); margin-right: var(--pg-mr); width: var(--pg-w); }
.cover-title { font-family: var(--cover-font); text-transform: var(--cover-tt); font-size: var(--cover-size); line-height: var(--cover-lh); color: var(--cover-color); text-align: center; }
.covers-show-title .cover-details { opacity: 1; position: static; padding: 8px 5% 16px; }

/* ---------- Pied de page ---------- */
.site-footer { clear: both; font-family: var(--footer-font); text-transform: var(--footer-tt); font-size: var(--footer-size); line-height: var(--footer-lh); color: var(--footer-color); padding: var(--footer-above) 0 var(--footer-below); text-align: center; }
.footer-text { white-space: pre-wrap; }

.back-to-top { position: fixed; right: 40px; bottom: 40px; width: 50px; height: 50px; border-radius: 5px; background: rgba(0,0,0,.05); display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: opacity .2s, visibility .2s; z-index: 3; }
.back-to-top svg { fill: #999; }
.back-to-top.visible { opacity: 1; visibility: visible; }

/* ---------- Transitions entre les pages (comme Portfolio) ---------- */
@keyframes klay-fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes klay-fade-out { from { opacity: 1; } to { opacity: 0; } }
body.transition-enabled { opacity: 0; animation: klay-fade-in .25s ease-in forwards; }
body.transition-out { opacity: 1; animation: klay-fade-out .25s ease-out forwards; }
.link-transition a { transition: background .2s ease, color .2s ease; }
.link-transition a svg { transition: fill .2s ease; }
@media (prefers-reduced-motion: reduce) { body.transition-enabled, body.transition-out { animation: none; opacity: 1; } }

/* ---------- Bouton ---------- */
.pm-button { padding: 5px 0 20px; }
.button-module { display: inline-block; background: var(--btn-bg, #000); color: var(--btn-color, #fff) !important; border-radius: var(--btn-radius, 0); font-family: var(--text-font); font-size: var(--btn-size, 16px); line-height: 1.2; padding: .9em 2em; text-decoration: none !important; border: 0; cursor: pointer; transition: opacity .2s; }
.button-module:hover { opacity: .8; }

/* ---------- Formulaire de contact ---------- */
.contact-form { max-width: 600px; margin: 0 auto; padding: 5px 0 20px; text-align: left; }
.form-field { display: block; margin-bottom: 16px; }
.form-label { display: block; font-family: var(--text-font); text-transform: var(--text-tt); font-size: 14px; line-height: 20px; color: var(--text-color); margin-bottom: 6px; }
.contact-form input, .contact-form textarea { display: block; width: 100%; box-sizing: border-box; font: 16px/1.4 var(--text-font); color: #222; background: #fff; border: 1px solid rgba(0,0,0,.18); border-radius: 0; padding: 10px 12px; resize: vertical; }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: rgba(0,0,0,.5); }
.contact-form .form-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-actions { text-align: center; }
.form-submit { --btn-bg: #000; --btn-color: #fff; }
.contact-form.sending .form-submit { opacity: .5; pointer-events: none; }
.form-status { font-family: var(--text-font); font-size: 15px; line-height: 22px; text-align: center; padding-top: 12px; color: var(--text-color); }
.form-status.error { color: #c0392b; }
.contact-form.sent .form-field, .contact-form.sent .form-actions { display: none; }

/* ---------- Réseaux sociaux ---------- */
.social-icons { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 6px; }
.social-icons a { color: var(--navpage-color); display: inline-flex; transition: color .2s; }
.social-icons a:hover { color: var(--navpage-hover); }
.site-footer .social-icons { justify-content: center; padding: 0 0 14px; }
.responsive-nav .social-icons { justify-content: center; padding: 10px 0 40px; }

/* ---------- Page protégée ---------- */
.lock-box { max-width: 360px; margin: 60px auto; text-align: center; font-family: var(--text-font); color: var(--text-color); }
.lock-box h1 { font-family: var(--title-font); text-transform: var(--title-tt); font-size: var(--title-size); line-height: var(--title-lh); color: var(--title-color); font-weight: 400; margin: 0 0 10px; }
.lock-box p { font-size: 15px; line-height: 22px; margin: 0 0 18px; }
.lock-box input { display: block; width: 100%; box-sizing: border-box; font: 16px/1.4 var(--text-font); padding: 10px 12px; border: 1px solid rgba(0,0,0,.18); margin-bottom: 12px; text-align: center; }
.lock-box .lock-error { color: #c0392b; }

/* ---------- Responsive ---------- */
@media (max-width: 932px) {
  .cover-title { font-size: 19px; line-height: 24px; }
  .site-content { margin: 0; }
  .sidebar-content, main { float: none; width: 100%; min-height: 0; }
  .site-header { display: flex; align-items: center; justify-content: space-between; padding: 40px 5%; }
  .logo-wrap { padding: 0; }
  .logo { line-height: 34px; }
  .site-nav { display: none; }
  .hamburger { display: block; background: none; border: 0; padding: 8px; cursor: pointer; width: 40px; }
  .hamburger i { display: block; height: 2px; background: var(--logo-color); margin: 5px 0; }
  .responsive-nav { display: flex; position: fixed; inset: 0; background: var(--bg); z-index: 99999; overflow: auto; padding: 50px 5% 0; text-align: center; opacity: 0; visibility: hidden; transition: opacity .2s, visibility 0s .2s; }
  .nav-open .responsive-nav { opacity: 1; visibility: visible; transition: opacity .2s; }
  .responsive-nav nav { margin: auto; width: 100%; }
  .responsive-nav .gallery-title, .responsive-nav .project-title, .responsive-nav .page-title, .responsive-nav .link-title { padding: 0 0 30px; }
  .responsive-nav .group { padding: 0; }
  .responsive-nav a { font-size: 22px !important; line-height: 32px !important; }
  .close-nav { position: fixed; top: 16px; right: 5%; font-size: 36px; background: none; border: 0; cursor: pointer; color: var(--logo-color); }
  .page-content[data-offset] { margin-left: 0; margin-right: 0; width: auto; }
  .modules .module-text { padding-left: 5% !important; padding-right: 5% !important; }
  .rich-text .title { font-size: 22px; line-height: 26px; }
  .rich-text .sub-title { font-size: 17px; line-height: 22px; padding-top: 14px; padding-bottom: 14px; }
  .rich-text div, .rich-text p { font-size: 14px; line-height: 19px; padding-bottom: 14px; }
  .rich-text span[style*="font-size"] { font-size: inherit !important; }
  .project-cover { width: calc((100% - var(--cover-gap)) / 2); }
  .site-footer { font-size: 14px; line-height: 20px; padding: 23px 5% 33px; }
  .back-to-top { right: 20px; bottom: 20px; }
}
@media (max-width: 540px) {
  .cover-title { font-size: 16px; line-height: 20px; }
  .logo { font-size: 23px; line-height: 24px; }
  .site-header { padding: 30px 5%; }
  .tree-wrapper { display: block; }
  .tree-col { border: 0; }
  .project-covers { gap: 2% 0; }
  .project-cover { width: 100%; }
  .site-footer { padding: 20px 5% 29px; }
}

/* ---------- Visionneuse de photos ---------- */
.lightbox-enabled .lb-link { cursor: zoom-in; }
/* Légendes des images de grille (au survol, comme Portfolio) */
.grid__image-caption, .grid__image-caption-lightbox { font-family: xbrs, sans-serif; text-transform: uppercase; position: absolute; bottom: 0; left: 0; width: 100%; margin: 0; text-align: center; box-sizing: border-box; pointer-events: none; }
.grid__image-caption { background: linear-gradient(rgba(0,0,0,0), rgba(0,0,0,.4) 20px, rgba(0,0,0,.5)); padding: 15px 15px 10px; opacity: 0; transition: opacity 150ms ease-in-out; }
.grid__image-caption-lightbox { background: linear-gradient(rgba(0,0,0,0), rgba(0,0,0,.4) 25px, rgba(0,0,0,.5)); padding: 20px 5px 15px; }
.grid__caption-text { color: #fff; font-size: 14px; font-weight: normal; line-height: 17px; margin: 0 auto; max-width: 600px; padding: 0; position: relative; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; top: 15px; transition: top 150ms 50ms ease-out; }
.lightbox-enabled .grid__caption-text, .grid__image-caption-lightbox .grid__caption-text { overflow: visible; top: 0; transition: none; white-space: normal; }
.grid__item.hoverable:hover .grid__caption-text { top: 0; }
.grid__item.hoverable:hover .grid__image-caption { opacity: 1; }
.lightbox { position: fixed; inset: 0; z-index: 100000; display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: opacity .25s ease, visibility 0s .25s; }
.lightbox.open { opacity: 1; visibility: visible; transition: opacity .25s ease; }
.lb-backdrop { position: absolute; inset: 0; opacity: .96; }
.lb-figure { position: relative; margin: 0; height: 100%; width: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 20px 80px; }
.lb-imgwrap { position: relative; display: flex; min-height: 0; max-width: 100%; }
.lb-imgwrap .grid__image-caption-lightbox { display: none; }
.lb-imgwrap.has-caption .grid__image-caption-lightbox { display: block; }
.lb-img { max-width: 100%; max-height: calc(100vh - 40px); object-fit: contain; display: block; opacity: 0; transition: opacity .2s ease; user-select: none; -webkit-user-drag: none; }
.lb-img.loaded { opacity: 1; }
.lb-caption { font-family: var(--caption-font); text-transform: var(--caption-tt); font-size: var(--caption-size); line-height: var(--caption-lh); color: var(--caption-color); text-align: center; padding-top: 10px; max-width: 800px; }
.lb-caption:empty { display: none; }
.lightbox:has(.lb-caption:not(:empty)) .lb-img { max-height: calc(100vh - 90px); }
.lb-btn { position: absolute; border: 0; background: none; color: #555; cursor: pointer; padding: 12px; border-radius: 50%; display: flex; transition: color .2s, background .2s; }
.lb-btn:hover { color: #000; background: rgba(0,0,0,.05); }
.lb-close { top: 16px; right: 16px; z-index: 3; }
/* Zones de navigation : 30 % de la largeur de chaque côté, toute la hauteur (comme Portfolio) */
.lb-prev, .lb-next { top: 0; bottom: 0; width: 30vw; border-radius: 0; z-index: 2; align-items: center; padding: 0 16px; background: none !important; }
.lb-prev { left: 0; justify-content: flex-start; }
.lb-next { right: 0; justify-content: flex-end; }
.lb-prev svg, .lb-next svg { padding: 12px; border-radius: 50%; transition: background .2s; box-sizing: content-box; }
.lb-prev:hover svg, .lb-next:hover svg { background: rgba(0,0,0,.05); }
.lightbox.dark .lb-prev:hover svg, .lightbox.dark .lb-next:hover svg { background: rgba(255,255,255,.08); }
.lightbox.single .lb-prev, .lightbox.single .lb-next { display: none; }
.lb-count { position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%); font: 12px/1 sans-serif; color: #999; letter-spacing: .05em; }
.lb-open { overflow: hidden; }
@media (max-width: 932px) {
  .lb-figure { padding: 60px 0; }
  .lb-img { max-height: calc(100vh - 120px); }
}
.lightbox.dark .lb-btn { color: #ccc; }
.lightbox.dark .lb-btn:hover { color: #fff; background: rgba(255,255,255,.08); }
