/*
Theme Name: Gvisuels
Author: Roger
Version: 1.0
*/

:root {
  --bg: #020202;
  --text: #ffffff;
  --muted: #bfbfbf;
  --accent: #ff6a00;
  --accent-soft: #ffb078;
  --border: rgba(255, 255, 255, 0.16);
  --panel: rgba(255, 255, 255, 0.03);
  /* Mise en forme initiale (= Personnaliser / thème) — source pour l’éditeur inline */
  --gve-font: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --gve-section-pad-y: 40px;
  --gve-section-pad-y-tablet: 26px;
  --gve-section-gap: 24px;
  --gve-gallery-gap: 12px;
  --gve-gallery-row-pad-top: 12px;
  --gve-gallery-row-pad-bottom: 28px;
  --gve-heading-h1: 28px;
  --gve-heading-h2: 22px;
  --gve-heading-h3: 18px;
  --gve-text-size: 14px;
  --gve-card-height: 480px;
  --gve-card-height-tablet: 320px;
  --gve-card-height-mobile: 300px;
  --gve-content-max: 1320px;
  --gve-bp-tablet: 900px;
  --gve-bp-mobile: 640px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--gve-font);
}

body {
  min-height: 100vh;
}

body::before,
body::after {
  content: "";
  position: fixed;
  left: 0;
  width: 100%;
  height: 180px;
  pointer-events: none;
  z-index: 0;
}

body::before {
  top: -60px;
  background: radial-gradient(circle at 50% 100%, rgba(255, 255, 255, 0.15), rgba(0, 0, 0, 0) 70%);
  filter: blur(16px);
}

body::after {
  bottom: -60px;
  background: radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.12), rgba(0, 0, 0, 0) 70%);
  filter: blur(22px);
}

.site-shell {
  position: relative;
  z-index: 1;
}

.site-header {
  position: relative;
  z-index: 20;
}

.site-header-sticky {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 21;
  width: 100%;
  box-sizing: border-box;
  backdrop-filter: blur(8px);
  background: rgba(0, 0, 0, 0.55);
  border-bottom: 1px solid var(--border);
}

.site-header-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 20px;
}

.brand-zone {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.zoom-toggle {
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  width: 34px;
  height: 34px;
  border-radius: 999px;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.brand-mark {
  width: 12px;
  height: 12px;
  background: var(--accent);
  border-radius: 2px;
}

.site-logo {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  object-fit: cover;
  display: block;
}

.site-title {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.12em;
  font-size: 14px;
}

.brand-stack {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.brand-main {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
}

.brand-tagline {
  display: none;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition: color 0.2s ease;
}

.brand-tagline:hover,
.brand-tagline:focus-visible {
  color: var(--accent-soft);
  outline: none;
}

.top-nav {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.top-nav a {
  color: var(--text);
  text-decoration: none;
  font-size: 12px;
  letter-spacing: 0.12em;
  opacity: 0.88;
}

.lang-btn {
  color: var(--text);
  border: 1px solid var(--border);
  background: transparent;
  border-radius: 999px;
  padding: 4px 10px;
  cursor: pointer;
  font-size: 12px;
  letter-spacing: 0.12em;
  opacity: 0.88;
}

.lang-btn-desktop {
  display: inline;
}

.lang-btn-mobile {
  display: none;
}

.top-nav a:hover,
.lang-btn:hover {
  opacity: 1;
}

@media (min-width: 641px) {
  .site-header {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 20;
    width: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 20px max(24px, calc((100% - 1320px) / 2));
    box-sizing: border-box;
    backdrop-filter: blur(8px);
    background: rgba(0, 0, 0, 0.55);
    border-bottom: 1px solid var(--border);
  }

  .site-header-sticky {
    position: relative;
    z-index: 1;
    flex: 1 1 auto;
    min-width: 0;
    background: transparent;
    border: none;
    backdrop-filter: none;
  }

  .site-header-inner {
    padding: 0;
    margin: 0;
    max-width: none;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 20px;
  }

  .site-header-nav-row {
    flex: 0 0 auto;
    margin-left: auto;
    max-width: none;
    padding: 0;
    margin-right: 0;
    background: transparent;
    border: none;
    backdrop-filter: none;
    box-shadow: none;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    position: relative;
    z-index: 2;
  }

  .top-nav {
    width: auto;
    max-width: none;
    justify-content: flex-end;
    flex-wrap: nowrap;
    overflow-x: visible;
    overflow-y: visible;
    white-space: nowrap;
    padding: 0;
    padding-bottom: 0;
    margin: 0;
    min-height: 0;
    gap: 16px;
  }

  .top-nav a {
    display: inline;
    opacity: 0.88;
    font-size: 12px;
    letter-spacing: 0.12em;
  }

  .top-nav .lang-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
}

.mobile-menu-toggle {
  display: none;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  border-radius: 999px;
  height: 34px;
  min-width: 44px;
  padding: 0 12px;
  font-size: 12px;
  letter-spacing: 0.18em;
  cursor: pointer;
}

.mobile-menu-popup {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: block;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 220ms ease, visibility 0s linear 220ms;
}

.mobile-menu-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(3px);
}

.mobile-menu-panel {
  position: absolute;
  inset: 0;
  transform: scale(0.98);
  border: 0;
  background: #000;
  padding: 20px 18px 28px;
  border-radius: 0;
  transition: transform 240ms ease;
  display: flex;
  flex-direction: column;
}

.mobile-menu-close {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  border-radius: 999px;
  width: 32px;
  height: 32px;
  cursor: pointer;
}

.mobile-menu-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 34px;
  align-items: center;
  justify-content: center;
  flex: 1 1 auto;
}

.mobile-menu-nav a {
  color: var(--text);
  text-decoration: none;
  font-size: 15px;
  letter-spacing: 0.14em;
  text-align: center;
}

.mobile-menu-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  border-top: 1px solid var(--border);
  padding-top: 16px;
}

.mobile-menu-bottom a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-size: 12px;
  letter-spacing: 0.08em;
  word-break: break-all;
}

body.mobile-menu-open {
  overflow: hidden;
}

body.mobile-menu-open .mobile-menu-popup {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 220ms ease;
}

body.mobile-menu-open .mobile-menu-panel {
  transform: scale(1);
}

main {
  max-width: 1320px;
  margin: 0 auto;
  padding: 50px 24px 80px;
  transform-origin: top center;
  transition: transform 240ms ease;
  overflow-x: clip;
}

@supports not (overflow: clip) {
  main {
    overflow-x: hidden;
  }
}

body.zoomed main {
  transform: scale(1.04);
}

section {
  padding: var(--gve-section-pad-y) 0;
}

.gve-section {
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  overflow-x: clip;
  container-type: inline-size;
  container-name: gve-section;
}

.gve-section-inner {
  display: grid;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  grid-template-columns: repeat(var(--gve-cols, 1), minmax(0, 1fr));
  gap: var(--gve-gap, var(--gve-section-gap, 24px));
  align-items: start;
}

/* Grille éditable des sections natives (About / Contact / Terms…) */
.gve-native-grid {
  display: grid;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  grid-template-columns: repeat(var(--gve-cols, 1), minmax(0, 1fr));
  gap: var(--gve-gap, 16px);
  align-items: start;
}

.gve-column {
  min-width: 0;
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.gve-section .gve-widget,
.gve-section [data-gve-widget],
.gve-column > * {
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.gve-section img,
.gve-section video,
.gve-section iframe,
.gve-column img,
.gve-column video,
.gve-column iframe {
  max-width: 100%;
  height: auto;
}

/* Colonnes : respect de --gve-cols (choix éditeur), même en section étroite */

h1,
h2,
h3 {
  margin: 0 0 16px;
  line-height: 1.18;
}

p {
  margin: 0 0 16px;
  color: var(--muted);
  max-width: 70ch;
}

.section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.section-heading h2,
.section-heading h1 {
  font-size: var(--gve-heading-h2);
  letter-spacing: 0.08em;
}

.section-heading:has(.theme-back-link) h2,
.section-heading:has(.theme-back-link) h1 {
  font-size: 18px;
  font-weight: 400;
  letter-spacing: 0.06em;
  margin: 0;
  margin-right: auto;
}

.section-heading small {
  color: var(--muted);
  letter-spacing: 0.08em;
}

.theme-back-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  color: var(--text);
  text-decoration: none;
  transition: color 0.2s ease;
}

.section-heading:has(.theme-back-link) {
  align-items: center;
  gap: 8px;
}

.theme-back-link svg {
  display: block;
  width: 18px;
  height: 18px;
}

.theme-back-link:hover,
.theme-back-link:focus-visible {
  color: var(--accent);
  outline: none;
}

.page-mobile-intro {
  display: none;
  color: var(--muted);
}

.page-section-lead {
  margin: 0 0 20px;
  max-width: 70ch;
  color: var(--muted);
}

.theme-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 36px;
}

.theme-tags span {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 12px;
  letter-spacing: 0.08em;
}

#gallery .theme-tags span {
  text-transform: uppercase;
  font-family: "Times New Roman", Times, serif;
  font-size: 11px;
  letter-spacing: 0.12em;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(var(--gve-cols, 3), minmax(0, 1fr));
  gap: var(--gve-gallery-gap);
  grid-auto-rows: 1fr;
}

.gve-section-line {
  /* grille par défaut : une ligne ajoutée dans l'éditeur garde ses colonnes côte à côte */
  display: grid;
  width: 100%;
  min-width: 0;
}

/* Lignes Sync OFF : visibles uniquement sur leur format (front) */
@media (min-width: 901px) {
  [data-gve-line-vp="tablet"],
  [data-gve-line-vp="mobile"] {
    display: none !important;
  }
}

@media (max-width: 900px) and (min-width: 641px) {
  [data-gve-line-vp="desktop"],
  [data-gve-line-vp="mobile"] {
    display: none !important;
  }
}

@media (max-width: 640px) {
  [data-gve-line-vp="desktop"],
  [data-gve-line-vp="tablet"] {
    display: none !important;
  }
}

/* Une section = une ligne de 3 images (éditable) */
.gallery-row-section {
  padding: var(--gve-gallery-row-pad-top) 0 var(--gve-gallery-row-pad-bottom);
}

.gallery-row-section .gallery-grid-row {
  margin: 0;
}

.gallery-card {
  /* Etat initial sans bordure : elle s'ajoute depuis le panneau Bordure */
  border: 0 solid var(--border);
  background: var(--panel);
  min-height: 0;
  height: var(--gve-card-height);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.gallery-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
  transition: transform 180ms ease, border-color 180ms ease;
}

.gallery-card-link:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.35);
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.gallery-card img {
  width: 100%;
  height: var(--gve-img-h, 390px);
  object-fit: var(--gve-object-fit, cover);
  display: block;
  filter: grayscale(15%);
}

.gallery-card[data-gve-editable="image"] {
  width: var(--gve-card-w, auto);
}

.site-footer-social-link[data-gve-editable="icon"] svg,
.contact-instagram-link[data-gve-editable="icon"] .contact-instagram-icon {
  width: 1em;
  height: 1em;
  font-size: inherit;
}

/* Print = section seule en haut, bannière pleine largeur */
.gallery-print-banner-section {
  padding-top: var(--gve-gallery-row-pad-top, 12px);
  padding-bottom: var(--gve-gallery-row-pad-bottom, 28px);
}

.gallery-grid-print-banner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gve-gallery-gap, 12px);
}

.gallery-card-print,
.gallery-card-themed.gallery-card-print,
.gallery-grid-print-banner .gallery-card-print {
  position: relative;
  display: block;
  grid-column: 1 / -1;
  width: 100%;
  max-width: none;
  justify-self: stretch;
  height: var(--gve-img-h, 260px);
  padding: 0;
  overflow: hidden;
}

#gallery .gallery-card-print-emoji,
.gallery-row-section .gallery-card-print-emoji {
  font-size: 15px;
  line-height: 1;
  filter: drop-shadow(0 1px 4px rgba(0, 0, 0, 0.5));
}

/* Autres thèmes : carte standard dans la grille (sauf cadrage bannière) */
.gallery-card-themed:not(.gallery-card-print):not(.is-banner-frame):not(.gallery-card-banner):not([data-object-fit="banner"]) {
  position: relative;
  display: block;
  overflow: hidden;
  height: 390px;
  padding: 0;
  grid-column: auto;
  width: auto;
}

.gallery-card-themed .gallery-card-media {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.gallery-card-themed .gallery-card-media img,
.gallery-card-themed .gallery-card-media .gallery-card-empty {
  width: 100%;
  height: 100%;
  object-fit: var(--gve-object-fit, cover);
  display: block;
}

.gallery-card-themed .gallery-card-bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 36px 16px 18px;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.96) 0%,
    rgba(0, 0, 0, 0.78) 35%,
    rgba(0, 0, 0, 0.42) 65%,
    transparent 100%
  );
  pointer-events: none;
}

.gallery-card-themed .gallery-card-bar-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: "Times New Roman", Times, serif;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
  line-height: 1.2;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.65);
}

.gallery-grid-print .gallery-card-print-item {
  padding: 0;
  overflow: hidden;
}

.gallery-grid-print .gallery-print-carousel {
  display: block;
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 0;
  overflow: hidden;
}

.gallery-grid-print .gallery-print-track {
  display: flex;
  height: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.gallery-grid-print .gallery-print-slide {
  flex: 0 0 100%;
  height: 100%;
  scroll-snap-align: start;
}

.gallery-grid-print .gallery-print-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: grayscale(15%);
}

.gallery-grid-print .gallery-print-carousel:not([data-gallery-carousel-multiple]) .gallery-print-track {
  overflow-x: hidden;
  scroll-snap-type: none;
}

.gallery-print-cover-link {
  display: none;
  flex: 1 1 auto;
  height: 380px;
}

.gallery-print-carousel {
  display: block;
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  height: 380px;
}

.gallery-print-track {
  display: flex;
  height: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.gallery-print-track::-webkit-scrollbar {
  display: none;
}

.gallery-print-slide {
  flex: 0 0 100%;
  height: 100%;
  display: block;
  scroll-snap-align: start;
}

button.gallery-print-slide {
  border: 0;
  padding: 0;
  margin: 0;
  background: transparent;
  font: inherit;
  color: inherit;
  text-align: inherit;
}

.gallery-print-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  display: block;
  filter: grayscale(15%);
}

.gve-widget-image[data-image-kind="carousel"],
.gve-widget-carousel,
.gallery-card.gallery-card-carousel {
  position: relative;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.gve-widget-image[data-image-kind="carousel"] .gve-carousel,
.gve-widget-carousel .gve-carousel,
.gallery-card-carousel .gve-carousel {
  width: 100%;
  height: 100%;
  min-height: 240px;
}

.gve-widget-image[data-image-kind="carousel"] .gallery-print-carousel,
.gallery-card-carousel .gallery-print-carousel {
  height: auto;
  min-height: 240px;
  aspect-ratio: 4 / 5;
}

.gve-widget-image[data-image-kind="carousel"][data-object-fit="photo"],
.gve-widget-image[data-image-kind="carousel"].is-photo-frame,
.gve-widget-carousel[data-object-fit="photo"],
.gve-widget-carousel.is-photo-frame,
.gallery-card-carousel[data-object-fit="photo"],
.gallery-card-carousel.is-photo-frame {
  position: relative;
  overflow: hidden;
  height: 390px;
}

.gve-widget-image[data-image-kind="carousel"][data-object-fit="photo"] .gve-carousel,
.gve-widget-image[data-image-kind="carousel"][data-object-fit="photo"] .gallery-print-carousel,
.gve-widget-image[data-image-kind="carousel"].is-photo-frame .gve-carousel,
.gve-widget-image[data-image-kind="carousel"].is-photo-frame .gallery-print-carousel,
.gve-widget-carousel[data-object-fit="photo"] .gve-carousel,
.gve-widget-carousel[data-object-fit="photo"] .gallery-print-carousel,
.gve-widget-carousel.is-photo-frame .gve-carousel,
.gve-widget-carousel.is-photo-frame .gallery-print-carousel,
.gallery-card-carousel[data-object-fit="photo"] .gve-carousel,
.gallery-card-carousel[data-object-fit="photo"] .gallery-print-carousel,
.gallery-card-carousel.is-photo-frame .gve-carousel,
.gallery-card-carousel.is-photo-frame .gallery-print-carousel {
  height: 100%;
  min-height: 0;
  aspect-ratio: auto;
}

.gve-widget-image[data-image-kind="carousel"] .gve-carousel-slide img,
.gve-widget-carousel .gve-carousel-slide img,
.gallery-card-carousel .gve-carousel-slide img,
.gve-widget-image[data-image-kind="carousel"] .gallery-print-slide img,
.gve-widget-carousel .gallery-print-slide img,
.gallery-card-carousel .gallery-print-slide img {
  width: 100%;
  height: 100%;
  object-fit: var(--gve-object-fit, cover);
  object-position: center center;
  display: block;
  filter: none;
}

.gallery-print-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 38px;
  height: 38px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(2, 2, 2, 0.72);
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(8px);
}

.gallery-print-nav:disabled {
  opacity: 0.35;
  cursor: default;
}

.gallery-print-nav:hover,
.gallery-print-nav:focus-visible {
  border-color: var(--accent);
  color: var(--accent);
  outline: none;
}

.gallery-print-nav-prev {
  left: 12px;
}

.gallery-print-nav-next {
  right: 12px;
}

.gallery-print-nav span[aria-hidden="true"] {
  font-size: 26px;
  line-height: 1;
}

.gallery-card-label-link {
  display: flex;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: flex-start;
  color: inherit;
  text-decoration: none;
  text-align: inherit;
}

#gallery .gallery-card-print .gallery-card-label,
.gallery-row-section .gallery-card-print .gallery-card-label {
  justify-content: center;
  align-items: center;
  text-align: center;
}

#gallery .gallery-card-print .gallery-card-label-link,
.gallery-row-section .gallery-card-print .gallery-card-label-link {
  justify-content: center;
}

.gallery-print-quote-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border: 1px solid rgba(255, 255, 255, 0.92);
  border-radius: 999px;
  background: #ffffff;
  color: #020202;
  text-decoration: none;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  line-height: 1;
  box-shadow: 0 8px 24px rgba(255, 255, 255, 0.18);
  transition: transform 0.2s ease, border-color 0.2s ease, color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.gallery-print-quote-btn:hover,
.gallery-print-quote-btn:focus-visible {
  border-color: #ffffff;
  color: #020202;
  background: #f2f2f2;
  box-shadow: 0 10px 28px rgba(255, 255, 255, 0.26);
  transform: translateY(-1px);
  outline: none;
}

.theme-gallery-actions {
  display: flex;
  justify-content: center;
  margin: 0;
}

.theme-page-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 0;
}

.theme-page-nav-link {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 84px;
  padding: 18px 20px;
  color: var(--text);
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease;
}

.theme-page-nav-link:hover,
.theme-page-nav-link:focus-visible {
  color: var(--accent);
  transform: translateY(-1px);
  outline: none;
}

.theme-page-nav-link-next {
  justify-content: flex-end;
  text-align: right;
}

.theme-page-nav-link-next:first-child {
  grid-column: 2;
}

.theme-page-nav-icon {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: 999px;
}

.theme-page-nav-icon svg {
  width: 18px;
  height: 18px;
  display: block;
}

.theme-page-nav-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.theme-page-nav-text small {
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.theme-page-nav-text strong {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.theme-print-details-section {
  max-width: min(760px, 100%);
  margin-left: auto;
  margin-right: auto;
  margin-top: var(--gve-section-pad-y, 40px);
  margin-bottom: 12px;
  padding: 24px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  box-sizing: border-box;
  text-align: center;
}

.theme-print-cta-section {
  padding-top: 12px;
  padding-bottom: 12px;
}

.theme-gallery-nav-section {
  padding-top: 12px;
}

.theme-print-details-intro {
  margin: 0 0 18px;
  color: var(--text);
  font-size: 14px;
  line-height: 1.65;
  text-align: center;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.theme-print-details-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 18px;
  align-items: center;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.theme-print-details-list p,
.theme-print-details-meta p {
  margin: 0;
  text-align: center;
}

.theme-print-details-list p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.theme-print-details-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.theme-print-price {
  color: var(--text);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.theme-print-shipping {
  color: var(--accent-soft);
  font-size: 12px;
  letter-spacing: 0.08em;
}

.gallery-card-empty {
  height: 390px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #888;
  letter-spacing: 0.14em;
  font-size: 11px;
}

.gallery-card-label {
  height: 90px;
  padding: 12px;
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--text);
  display: flex;
  align-items: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#gallery .gallery-card-label, .gallery-row-section .gallery-card-label {
  text-transform: uppercase;
  font-family: "Times New Roman", Times, serif;
}

.gallery-grid-photo-only .gallery-card-photo-only {
  height: 390px;
}

.gallery-grid-photo-only .gallery-card-photo-only img,
.gallery-grid-photo-only .gallery-card-photo-only .gallery-card-empty {
  height: 100%;
}

/* Cadres widget (hors grille photo-only) — mêmes proportions que la galerie */
.gve-widget-image.gallery-card {
  width: 100%;
  max-width: 100%;
  margin: 0;
  box-sizing: border-box;
}

/* Image libre : hauteur naturelle */
.gve-widget-image[data-image-kind="image"]:not(.gallery-card) {
  height: auto;
}

.gve-widget-image[data-image-kind="image"]:not(.gallery-card) img {
  height: auto;
  max-height: none;
}

/* Photo : cadre fixe type galerie (cadrage « photo ») */
.gve-widget-image.gallery-card-photo-only,
.gve-widget-image.is-photo-frame,
.gve-widget-image[data-object-fit="photo"],
.gve-widget-image[data-image-kind="photo"] {
  position: relative;
  display: block;
  overflow: hidden;
  height: 390px;
  padding: 0;
}

.gve-widget-image.gallery-card-photo-only img,
.gve-widget-image.gallery-card-photo-only .gallery-card-empty,
.gve-widget-image.is-photo-frame img,
.gve-widget-image.is-photo-frame .gallery-card-empty,
.gve-widget-image[data-object-fit="photo"] img,
.gve-widget-image[data-object-fit="photo"] .gallery-card-empty,
.gve-widget-image[data-image-kind="photo"] img,
.gve-widget-image[data-image-kind="photo"] .gallery-card-empty {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: var(--gve-object-fit, cover);
}

/* Bannière : pleine largeur, format horizontal */
.gve-widget-image.is-banner-frame,
.gve-widget-image.gallery-card-banner,
.gve-widget-image[data-object-fit="banner"],
.gallery-card.is-banner-frame,
.gallery-card.gallery-card-banner,
.gallery-card[data-object-fit="banner"],
.gallery-card-themed.is-banner-frame,
.gallery-card-themed.gallery-card-banner,
.gallery-card-themed[data-object-fit="banner"],
.gallery-card-carousel.is-banner-frame,
.gallery-card-carousel[data-object-fit="banner"],
.gve-widget-carousel.is-banner-frame,
.gve-widget-carousel[data-object-fit="banner"] {
  position: relative;
  display: block;
  grid-column: 1 / -1;
  /* largeur par défaut ; le panneau peut la réduire */
  width: 100%;
  max-width: 100%;
  justify-self: stretch;
  height: var(--gve-img-h, 260px);
  padding: 0;
  overflow: hidden;
}

.gve-widget-image.is-banner-frame img,
.gve-widget-image.is-banner-frame .gallery-card-empty,
.gve-widget-image.gallery-card-banner img,
.gve-widget-image.gallery-card-banner .gallery-card-empty,
.gve-widget-image[data-object-fit="banner"] img,
.gve-widget-image[data-object-fit="banner"] .gallery-card-empty,
.gallery-card.is-banner-frame img,
.gallery-card.is-banner-frame .gallery-card-empty,
.gallery-card.is-banner-frame .gallery-card-media,
.gallery-card.gallery-card-banner img,
.gallery-card.gallery-card-banner .gallery-card-empty,
.gallery-card.gallery-card-banner .gallery-card-media,
.gallery-card[data-object-fit="banner"] img,
.gallery-card[data-object-fit="banner"] .gallery-card-empty,
.gallery-card[data-object-fit="banner"] .gallery-card-media {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: var(--gve-object-fit, cover);
}

.gve-widget-image.is-banner-frame .gve-carousel,
.gve-widget-image[data-object-fit="banner"] .gve-carousel,
.gve-widget-image[data-object-fit="banner"] .gallery-print-carousel,
.gallery-card-carousel.is-banner-frame .gve-carousel,
.gallery-card-carousel[data-object-fit="banner"] .gve-carousel,
.gve-widget-carousel.is-banner-frame .gve-carousel,
.gve-widget-carousel[data-object-fit="banner"] .gve-carousel {
  height: 100% !important;
  min-height: 0 !important;
}

.gve-widget-image.gallery-card-themed img {
  object-fit: var(--gve-object-fit, cover);
}

.gve-widget-divider {
  display: flex;
  width: 100%;
  margin: 16px 0;
  padding: 0;
  border: none;
  background: transparent;
  box-sizing: border-box;
  align-items: center;
}

.gve-widget-divider .gve-divider-line {
  display: block;
  width: 100%;
  height: 0;
  margin: 0;
  padding: 0;
  border: none;
  border-top: 1px solid var(--border, rgba(255, 255, 255, 0.16));
  background: transparent;
}

.gallery-photo-enlarge {
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.gallery-photo-enlarge img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: grayscale(15%);
}

.photo-lightbox {
  border: 0;
  padding: 24px 16px;
  margin: 0;
  width: 100%;
  max-width: 100%;
  height: 100%;
  max-height: 100%;
  background: transparent;
  overflow: hidden;
}

.photo-lightbox[open] {
  display: flex;
  align-items: center;
  justify-content: center;
}

.photo-lightbox::backdrop {
  background: rgba(2, 2, 2, 0.5);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.photo-lightbox-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  max-height: 100dvh;
  gap: 12px;
}

.photo-lightbox-figure {
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(92vw, 1100px);
  height: min(62vh, 720px);
  flex: 0 0 auto;
  margin: 0;
}

.photo-lightbox.has-thumbs .photo-lightbox-figure {
  height: min(54vh, 620px);
}

.photo-lightbox-figure img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: none;
}

.photo-lightbox-thumbs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  justify-content: center;
  width: 100%;
  max-width: min(100%, 720px);
  padding: 4px 8px 8px;
  scrollbar-width: none;
}

.photo-lightbox-thumbs::-webkit-scrollbar {
  display: none;
}

.photo-lightbox-thumbs[hidden] {
  display: none !important;
}

.photo-lightbox-thumb {
  flex: 0 0 52px;
  width: 52px;
  height: 52px;
  padding: 0;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
  opacity: 0.7;
}

.photo-lightbox-thumb.is-active {
  border-color: var(--accent);
  opacity: 1;
}

.photo-lightbox-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(15%);
}

@media (min-width: 641px) {
  .photo-lightbox-thumb {
    flex-basis: 64px;
    width: 64px;
    height: 64px;
  }

  .photo-lightbox-thumbs {
    max-width: min(100%, 920px);
  }
}

.about-block,
.contact-wrap,
.terms-wrap {
  border: 1px solid var(--border);
  background: var(--panel);
  padding: 22px;
}

.about-sell-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 16px;
}

/* Sections natives : contenues + responsive au cadre de la section */
main > section,
[data-gve-native] {
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  overflow-x: clip;
  overflow-wrap: anywhere;
  word-break: break-word;
  container-type: inline-size;
  container-name: gve-native-section;
}

main > section > *,
[data-gve-native] > * {
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

main > section img,
main > section video,
main > section iframe,
[data-gve-native] img,
[data-gve-native] video,
[data-gve-native] iframe {
  max-width: 100%;
  height: auto;
}

/* Bordure / fond = la section (éditable), pas un cadre interne */
.about-body-section,
.contact-body-section,
.terms-privacy-section,
.terms-legal-section {
  border: 1px solid var(--border);
  background: var(--panel);
  box-sizing: border-box;
}

.about-body-section {
  max-width: min(1320px, 100%);
  margin-left: auto;
  margin-right: auto;
  padding: 22px;
}

.about-hero-card,
.about-value-grid,
.about-cta-card {
  border: 1px solid var(--border);
  background: var(--panel);
  padding: 22px;
  max-width: none;
  margin: 0;
  box-sizing: border-box;
}

.contact-body-section {
  max-width: min(1320px, 100%);
  margin-left: auto;
  margin-right: auto;
  padding: 12px 28px;
}

.terms-privacy-section,
.terms-legal-section {
  max-width: min(1320px, 100%);
  margin-left: auto;
  margin-right: auto;
  padding-left: 22px;
  padding-right: 22px;
}

.terms-privacy-section > .gve-native-grid,
.terms-privacy-section > .legal-columns,
.terms-legal-section > .gve-native-grid,
.terms-legal-section > .legal-columns {
  margin: 0;
  border: none;
  background: transparent;
  padding: 8px 0;
}

.terms-privacy-section .terms-wrap,
.terms-legal-section .terms-wrap {
  margin: 0;
  border: none;
  background: transparent;
  padding: 0;
}

.legal-column {
  min-width: 0;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.legal-column .legal-column-sub {
  margin: 0;
}

.legal-column .page-rich-content {
  margin: 0;
  max-width: none;
}

.about-heading-section,
.contact-heading-section,
.contact-body-section,
.terms-heading-section,
.terms-privacy-section,
.terms-legal-section {
  padding-top: 12px;
  padding-bottom: 12px;
}

.about-body-section {
  padding: 22px;
}

.about-heading-section .section-heading,
.contact-heading-section .section-heading,
.terms-heading-section .section-heading {
  max-width: 1320px;
  margin-left: auto;
  margin-right: auto;
}

.about-kicker {
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--muted);
  margin-bottom: 10px;
}

.about-main-title {
  font-size: 30px;
  line-height: 1.14;
  margin: 0 0 14px;
}

.about-main-copy {
  margin: 0;
  max-width: 72ch;
}

.about-value-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.about-value-item {
  border: 1px solid var(--border);
  padding: 14px;
  background: rgba(255, 255, 255, 0.02);
}

.about-value-item h4 {
  margin: 0 0 8px;
  font-size: 12px;
  letter-spacing: 0.14em;
}

.about-value-item p {
  margin: 0;
}

.about-cta-card {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.about-cta-title {
  margin: 0;
  color: var(--text);
  font-size: 16px;
  letter-spacing: 0.04em;
}

.about-cta-link {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-size: 14px;
  letter-spacing: 0.08em;
}

.motion-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.motion-card {
  border: 1px solid var(--border);
  background: #0f0f0f;
  min-height: 220px;
  padding: 16px;
}

.motion-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.motion-item {
  border: 1px solid var(--border);
  background: #0f0f0f;
  padding: 16px;
}

.motion-item-title {
  font-size: 14px;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}

.motion-player {
  width: 100%;
  height: 520px;
  overflow: hidden;
}

.motion-player iframe,
.motion-player video,
.motion-player .wp-video,
.motion-player .wp-video-shortcode,
.motion-player .mejs-container {
  width: 100%;
  height: 520px;
  display: block;
  border: 0;
}

.motion-fallback-image {
  width: 100%;
  height: 520px;
  object-fit: cover;
  display: block;
}

.contact-wrap {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 20px;
  align-items: start;
}

.contact-layout {
  display: grid;
  grid-template-columns: repeat(var(--gve-cols, 2), minmax(0, 1fr));
  gap: var(--gve-gap, 32px);
  align-items: start;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  border: none;
  background: transparent;
  padding: 16px 0;
  box-sizing: border-box;
}

.contact-layout > * {
  min-width: 0;
  max-width: 100%;
}

/* Contact : même modèle d’image que le builder (figure + params data-*) */
.contact-body-section .contact-photo,
.contact-body-section .contact-photo-large {
  position: relative;
  display: block;
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: none;
  aspect-ratio: 4 / 5;
  box-sizing: border-box;
  border: 1px solid var(--border);
  overflow: hidden;
  justify-self: stretch;
}

.contact-body-section .contact-photo.is-photo-frame,
.contact-body-section .contact-photo-large.is-photo-frame,
.contact-body-section .contact-photo[data-object-fit="photo"],
.contact-body-section .contact-photo-large[data-object-fit="photo"] {
  aspect-ratio: 4 / 5;
}

.contact-body-section .contact-photo img,
.contact-body-section .contact-photo-large img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: var(--gve-object-fit, cover);
  object-position: center top;
  border: 0;
}

.contact-body-section .contact-photo.has-fixed-height,
.contact-body-section .contact-photo-large.has-fixed-height {
  height: var(--gve-img-h);
  aspect-ratio: auto;
}

.contact-body-section .contact-photo-empty,
.contact-body-section .contact-photo .gallery-card-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-height: 160px;
  color: #8d8d8d;
  background: rgba(255, 255, 255, 0.03);
}

.contact-info {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 0;
  min-width: 0;
  max-width: 100%;
}

.contact-kicker {
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--muted);
  margin-bottom: 14px;
}

.contact-title {
  font-size: 26px;
  letter-spacing: 0.04em;
  margin: 0 0 14px;
}

.contact-copy {
  margin: 0 0 24px;
  max-width: 58ch;
}

.contact-bio {
  margin-top: 20px;
}

.contact-links-intro {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.contact-bio p {
  margin: 0 0 16px;
  max-width: none;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.contact-bio p:last-child {
  margin-bottom: 0;
}

.contact-links-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.contact-links-stack a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
  letter-spacing: 0.08em;
  font-size: 12px;
}

.contact-instagram-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  cursor: pointer;
  text-decoration: none;
}

.contact-instagram-link * {
  cursor: pointer;
}

.contact-instagram-icon {
  width: 18px;
  height: 18px;
  border: 1px solid currentColor;
  border-radius: 4px;
  display: inline-block;
  position: relative;
}

.contact-instagram-icon::before {
  content: "";
  position: absolute;
  width: 7px;
  height: 7px;
  border: 1px solid currentColor;
  border-radius: 999px;
  top: 4px;
  left: 4px;
}

.contact-instagram-icon::after {
  content: "";
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 999px;
  background: currentColor;
  top: 3px;
  right: 3px;
}

.contact-photo {
  width: 100%;
  max-width: 180px;
  aspect-ratio: 3/4;
  object-fit: cover;
  object-position: center top;
  border: 1px solid var(--border);
}

.contact-photo-large {
  width: 100%;
  max-width: none;
  aspect-ratio: 4/5;
}

.contact-links a {
  color: var(--text);
}

.legal-columns {
  display: grid;
  grid-template-columns: repeat(var(--gve-cols, 2), minmax(0, 1fr));
  gap: var(--gve-gap, 16px);
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.legal-columns > * {
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}

@container gve-native-section (max-width: 520px) {
  .about-cta-section .about-cta-card,
  .about-cta-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .contact-body-section,
  .about-body-section,
  .about-hero-section,
  .about-values-section,
  .about-cta-section,
  .terms-privacy-section,
  .terms-legal-section {
    padding-left: 16px;
    padding-right: 16px;
  }

  .contact-layout {
    grid-template-columns: repeat(var(--gve-cols, 1), minmax(0, 1fr));
    justify-items: stretch;
  }

  .contact-body-section .contact-photo,
  .contact-body-section .contact-photo-large {
    width: 100%;
    max-width: none;
    justify-self: stretch;
  }

  .contact-body-section .contact-info {
    width: 100%;
  }
}

.legal-column-sub {
  margin: 0 0 12px;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.page-rich-content {
  max-width: 72ch;
  color: var(--muted);
  line-height: 1.6;
}

.page-rich-content p {
  margin: 0 0 1em;
}

/* Terms builder : titres type Privacy / Legal */
.page-template-page-accessibility-php .gve-widget-heading[data-level="3"] {
  margin: 0 0 12px;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.page-template-page-accessibility-php .gve-widget-text {
  color: var(--muted);
  line-height: 1.6;
  max-width: 72ch;
}

.site-footer {
  max-width: 1320px;
  margin: 0 auto;
  padding: 22px 24px 34px;
  color: var(--muted);
  font-size: 12px;
  overflow-x: clip;
  text-align: center;
}

.site-footer-socials {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.site-footer-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text);
  text-decoration: none;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.site-footer-social-link:hover,
.site-footer-social-link:focus-visible {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(255, 106, 0, 0.08);
  transform: translateY(-1px);
  outline: none;
}

.site-footer-social-link svg {
  width: 18px;
  height: 18px;
  display: block;
}

.site-footer-social-link-disabled {
  opacity: 0.5;
  cursor: default;
}

.site-footer-social-link-disabled:hover,
.site-footer-social-link-disabled:focus-visible {
  border-color: var(--border);
  color: var(--text);
  background: transparent;
  transform: none;
  outline: none;
}

.site-footer-copyright {
  color: var(--accent-soft);
}

.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  margin: 0;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: rgba(2, 2, 2, 0.88);
  backdrop-filter: blur(10px);
  color: var(--text);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(12px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  transition:
    opacity 0.3s ease,
    transform 0.3s ease,
    visibility 0.3s ease,
    border-color 0.2s ease,
    color 0.2s ease,
    background 0.2s ease;
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.back-to-top:hover,
.back-to-top:focus-visible {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(2, 2, 2, 0.96);
  outline: none;
}

.back-to-top svg {
  display: block;
  width: 20px;
  height: 20px;
}

@media (max-width: 640px) {
  .back-to-top {
    right: 16px;
    bottom: 16px;
    width: 42px;
    height: 42px;
  }

  .back-to-top svg {
    width: 18px;
    height: 18px;
  }
}

@supports not (overflow: clip) {
  .site-footer {
    overflow-x: hidden;
  }
}

@media (max-width: 900px) {
  /* Soft default tablette si pas d’override (styles BP / inline gagnent) */
  .gallery-row-section {
    --gve-cols: 3;
  }

  [data-gve-section] {
    --gve-cols: 2;
  }

  .gallery-grid,
  .motion-grid,
  .legal-columns,
  #gallery .gallery-grid,
  .gallery-row-section .gallery-grid,
  .gve-section-inner {
    grid-template-columns: repeat(var(--gve-cols, 2), minmax(0, 1fr));
  }

  main {
    padding: 26px 16px 48px;
  }

  section {
    padding: var(--gve-section-pad-y-tablet) 0;
  }

  .section-heading {
    flex-direction: row;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
  }

  .theme-tags {
    margin-bottom: 24px;
  }

  .theme-tags span {
    font-size: 10px;
    padding: 6px 10px;
  }

  .gallery-card {
    height: var(--gve-card-height-tablet);
  }

  #gallery .gallery-card-print-visual img,
  .gallery-row-section .gallery-card-print-visual img,
  #gallery .gallery-card-print-visual .gallery-card-empty,
  .gallery-row-section .gallery-card-print-visual .gallery-card-empty {
    height: 100%;
  }

  #gallery .gallery-card-print-shadow-bar, .gallery-row-section .gallery-card-print-shadow-bar {
    padding: 28px 14px 14px;
  }

  .gallery-card img,
  .gallery-card .gallery-card-empty {
    height: 250px;
  }

  .gallery-card-themed:not(.gallery-card-print):not(.is-banner-frame):not(.gallery-card-banner):not([data-object-fit="banner"]) {
    height: var(--gve-card-height-tablet, 320px);
  }

  .gallery-card-themed:not(.gallery-card-print):not(.is-banner-frame):not(.gallery-card-banner):not([data-object-fit="banner"]) img,
  .gallery-card-themed:not(.gallery-card-print):not(.is-banner-frame):not(.gallery-card-banner):not([data-object-fit="banner"]) .gallery-card-empty {
    height: 100%;
  }

  .gallery-card-themed.is-banner-frame,
  .gallery-card-themed.gallery-card-banner,
  .gallery-card-themed[data-object-fit="banner"] {
    height: 200px;
    width: 100%;
    max-width: none;
    grid-column: 1 / -1;
  }

  .gallery-card-print,
  .gallery-card-themed.gallery-card-print {
    grid-column: 1 / -1;
    width: 100%;
    max-width: none;
    height: 200px;
  }

  .gallery-card-print .gallery-card-media img,
  .gallery-card-print .gallery-card-media .gallery-card-empty {
    height: 100%;
  }

  .gallery-print-cover-link,
  .gallery-print-carousel {
    height: 200px;
  }

  .theme-print-details-section {
    padding: 20px;
  }

  .theme-print-details-intro {
    font-size: 13px;
  }

  .theme-page-nav {
    gap: 12px;
    margin-top: 32px;
  }

  .theme-page-nav-link {
    min-height: 76px;
    padding: 16px 18px;
  }

  .gallery-card-label {
    height: 70px;
    font-size: 10px;
    letter-spacing: 0.08em;
    white-space: normal;
    line-height: 1.3;
    align-items: flex-start;
  }

  .gallery-grid-photo-only .gallery-card-photo-only {
    height: 250px;
  }

  .gallery-grid-photo-only .gallery-card-photo-only img,
  .gallery-grid-photo-only .gallery-card-photo-only .gallery-card-empty {
    height: 100%;
  }

  .contact-wrap {
    grid-template-columns: 1fr;
  }

  .contact-layout {
    grid-template-columns: repeat(var(--gve-cols, 2), minmax(0, 1fr));
    gap: var(--gve-gap, 20px);
    padding: 12px 0;
  }

  #contact .contact-info,
  .contact-body-section .contact-info {
    display: flex;
  }

  #contact .contact-photo-large,
  .contact-body-section .contact-photo-large {
    width: 100%;
    max-width: none;
    margin-left: 0;
  }

  .about-sell-layout {
    grid-template-columns: 1fr;
  }

  .about-main-title {
    font-size: 24px;
  }

  .about-cta-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .motion-player,
  .motion-player iframe,
  .motion-player video,
  .motion-player .wp-video,
  .motion-player .wp-video-shortcode,
  .motion-player .mejs-container,
  .motion-fallback-image {
    height: 320px;
  }
}

@media (max-width: 640px) {
  .site-header {
    display: contents;
  }

  .site-header-inner {
    position: relative;
    justify-content: center;
    align-items: center;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    min-height: 52px;
  }

  .site-header-sticky {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 22;
    width: 100%;
    box-sizing: border-box;
  }

  .site-header-nav-row {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    position: relative;
    z-index: 1;
    padding: 6px 0 12px;
    margin: 0;
    max-width: none;
    background: transparent !important;
    border: none !important;
    border-bottom: 1px solid var(--border) !important;
    backdrop-filter: none !important;
    box-shadow: none;
  }

  .zoom-toggle {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
  }

  .mobile-menu-toggle {
    display: none;
  }

  .top-nav {
    display: flex;
    position: static;
    left: auto;
    right: auto;
    top: auto;
    width: 100%;
    padding: 0;
    margin: 0;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    gap: 8px;
    justify-content: flex-start;
    flex-wrap: nowrap;
    align-items: center;
    min-height: 26px;
    padding-left: 16px;
    padding-right: 8px;
  }

  .top-nav a {
    display: inline;
    font-size: 10px;
    letter-spacing: 0.08em;
    opacity: 0.45;
  }

  .top-nav .lang-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-left: auto;
    padding: 2px 8px;
    font-size: 10px;
    letter-spacing: 0.08em;
  }

  .mobile-menu-popup {
    display: none;
  }

  .gallery-grid,
  .motion-grid,
  .legal-columns,
  .gve-section-inner {
    grid-template-columns: repeat(var(--gve-cols, 1), minmax(0, 1fr));
  }

  #gallery .gallery-card-print .gallery-card-label,
  .gallery-row-section .gallery-card-print .gallery-card-label {
    justify-content: center;
    align-items: center;
    text-align: center;
  }

  #gallery .gallery-card-print .gallery-card-label-link,
  .gallery-row-section .gallery-card-print .gallery-card-label-link {
    justify-content: center;
  }

  #gallery .gallery-card-print-shadow-bar, .gallery-row-section .gallery-card-print-shadow-bar {
    padding: 24px 12px 12px;
  }

  .theme-gallery-actions {
    justify-content: center;
    margin-bottom: 16px;
  }

  .brand-zone {
    display: flex;
    width: 100%;
    gap: 10px;
    justify-content: center;
    margin: 0 auto;
    align-items: center;
  }

  .brand-stack {
    display: grid;
    grid-template-columns: auto auto;
    grid-template-rows: auto auto;
    column-gap: 8px;
    row-gap: 3px;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
  }

  .brand-main {
    display: contents;
    transform: none;
  }

  .site-logo,
  .brand-mark {
    grid-column: 1;
    grid-row: 1 / span 2;
    align-self: center;
    justify-self: center;
  }

  .site-title {
    grid-column: 2;
    grid-row: 1;
    font-size: 13px;
    justify-self: start;
    align-self: end;
  }

  .brand-tagline {
    display: block;
    grid-column: 2;
    grid-row: 2;
    width: auto;
    text-align: left;
    transform: none;
    align-self: start;
  }

  .zoom-toggle,
  .site-logo {
    width: 26px;
    height: 26px;
  }

  .gallery-card {
    height: var(--gve-card-height-mobile, 300px);
  }

  .gallery-card img,
  .gallery-card-empty {
    height: 230px;
  }

  .gallery-card-themed:not(.gallery-card-print):not(.is-banner-frame):not(.gallery-card-banner):not([data-object-fit="banner"]) {
    height: var(--gve-card-height-mobile, 300px);
  }

  .gallery-card-themed:not(.gallery-card-print):not(.is-banner-frame):not(.gallery-card-banner):not([data-object-fit="banner"]) img,
  .gallery-card-themed:not(.gallery-card-print):not(.is-banner-frame):not(.gallery-card-banner):not([data-object-fit="banner"]) .gallery-card-empty {
    height: 100%;
  }

  .gallery-card-themed.is-banner-frame,
  .gallery-card-themed.gallery-card-banner,
  .gallery-card-themed[data-object-fit="banner"] {
    height: 160px;
    width: 100%;
    max-width: none;
    grid-column: 1 / -1;
  }

  .gallery-card-print,
  .gallery-card-themed.gallery-card-print {
    grid-column: 1 / -1;
    width: 100%;
    height: 160px;
  }

  .gallery-print-cover-link,
  .gallery-print-carousel {
    height: 180px;
  }

  .theme-print-details-section {
    padding: 18px 16px;
    margin-top: 24px;
  }

  .theme-print-price {
    font-size: 22px;
  }

  .theme-page-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 28px;
  }

  .theme-page-nav-link-next:first-child {
    grid-column: 2;
  }

  .theme-page-nav-link {
    justify-content: flex-start;
    text-align: left;
    min-height: 0;
    padding: 12px 0;
    gap: 8px;
  }

  .theme-page-nav-link-next {
    justify-content: flex-end;
    text-align: right;
  }

  .theme-page-nav-icon {
    width: 32px;
    height: 32px;
  }

  .theme-page-nav-icon svg {
    width: 16px;
    height: 16px;
  }

  .theme-page-nav-text small {
    display: none;
  }

  .theme-page-nav-text strong {
    font-size: 12px;
    letter-spacing: 0.04em;
  }

  .gallery-grid-photo-only .gallery-card-photo-only {
    height: 230px;
  }

  .motion-player,
  .motion-player iframe,
  .motion-player video,
  .motion-player .wp-video,
  .motion-player .wp-video-shortcode,
  .motion-player .mejs-container,
  .motion-fallback-image {
    height: 220px;
  }

  #contact .contact-layout,
  .contact-body-section .contact-layout {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: stretch;
  }

  #contact .contact-info,
  .contact-body-section .contact-info {
    display: flex;
  }

  #contact .contact-photo-large,
  .contact-body-section .contact-photo-large {
    width: 100%;
    max-width: none;
    aspect-ratio: 4 / 5;
    margin-left: 0;
    align-self: stretch;
  }

  #contact .contact-links-stack,
  .contact-body-section .contact-links-stack {
    align-items: flex-start;
    width: 100%;
  }

  #contact .contact-bio p,
  .contact-body-section .contact-bio p {
    font-size: 12px;
  }

  .page-mobile-intro {
    display: none;
  }

  .section-heading>small {
    display: none;
  }

  .section-heading h2,
  .section-heading h1 {
    margin-bottom: 0;
  }

  .section-heading:has(.theme-back-link) {
    display: flex;
    align-items: center;
    gap: 2px;
    justify-content: flex-start;
    margin: 0 -4px 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
  }

  .section-heading:has(.theme-back-link) h2,
  .section-heading:has(.theme-back-link) h1 {
    flex: 1;
    min-width: 0;
    padding-top: 0;
    text-align: left;
    font-size: 16px;
    letter-spacing: 0.1em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .theme-back-link {
    display: flex;
    align-items: center;
    justify-content: center;
    position: static;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    margin: 0;
    color: var(--text);
    text-decoration: none;
    transition: color 0.2s ease;
  }

  .theme-back-link svg {
    display: block;
    width: 22px;
    height: 22px;
  }

  .theme-back-link:hover,
  .theme-back-link:focus-visible {
    color: var(--accent);
    outline: none;
  }

  /* Soft default mobile — overrides BP / inline gagnent */
  .gallery-row-section,
  [data-gve-native],
  [data-gve-section] {
    --gve-cols: 1;
  }

  #gallery .gallery-grid, .gallery-row-section .gallery-grid {
    grid-template-columns: repeat(var(--gve-cols, 1), minmax(0, 1fr));
  }

  .gallery-grid.gallery-grid-photo-only {
    grid-template-columns: repeat(var(--gve-cols, 2), minmax(0, 1fr));
  }

  .gallery-grid-print .gallery-print-nav {
    display: none;
  }

  #gallery .theme-tags {
    display: none;
  }
}
/* Cadres "Theme" crees dans l'editeur : cliquables comme les cartes d'origine */
.gallery-card-themed[data-href]:not(a) {
  cursor: pointer;
}

.gallery-card-themed[data-href]:not(a):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Titres de carrousel : un par coin, poses sur l'image */
.gve-carousel-captions {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}

.gve-carousel-caption {
  position: absolute;
  max-width: calc(80% - 20px);
  padding: 6px 10px;
  color: #ffffff;
  font-size: var(--gve-text-size, 14px);
  line-height: 1.25;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.75);
  overflow-wrap: break-word;
}

.gve-carousel-caption.gve-cap-tl {
  top: 10px;
  left: 10px;
  text-align: left;
}

.gve-carousel-caption.gve-cap-tr {
  top: 10px;
  right: 10px;
  text-align: right;
}

.gve-carousel-caption.gve-cap-bl {
  bottom: 10px;
  left: 10px;
  text-align: left;
}

.gve-carousel-caption.gve-cap-br {
  right: 10px;
  bottom: 10px;
  text-align: right;
}

@media (max-width: 640px) {
  .gve-carousel-caption {
    max-width: calc(80% - 12px);
    padding: 4px 6px;
    font-size: 12px;
  }
}

/* Carrousel : titres par image + agrandissement au clic */
.gve-carousel-slide {
  position: relative;
}

.gve-carousel-slide > img {
  cursor: zoom-in;
}

a .gve-carousel-slide > img,
.gallery-card-print .gve-carousel-slide > img {
  cursor: inherit;
}

.gve-carousel-slide > .gve-carousel-caption {
  z-index: 3;
  pointer-events: none;
}

/* Hauteur choisie dans le panneau : le carrousel remplit le cadre */
[data-image-kind="carousel"][data-height]:not([data-height="auto"]):not([data-height=""]) .gve-carousel,
[data-image-kind="carousel"][data-height]:not([data-height="auto"]):not([data-height=""]) .gallery-print-carousel {
  height: 100% !important;
  min-height: 0 !important;
  aspect-ratio: auto !important;
}

[data-image-kind="carousel"][data-height]:not([data-height="auto"]):not([data-height=""]) .gve-carousel-track,
[data-image-kind="carousel"][data-height]:not([data-height="auto"]):not([data-height=""]) .gve-carousel-slide {
  height: 100%;
}

/* Image agrandie : titre de l'image au-dessus */
.photo-lightbox-title {
  flex: 0 0 auto;
  max-width: min(92vw, 1100px);
  margin: 0;
  color: #ffffff;
  font-size: 16px;
  line-height: 1.3;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: center;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.7);
}

.photo-lightbox-title[hidden] {
  display: none;
}

.photo-lightbox.has-title .photo-lightbox-figure {
  height: min(56vh, 680px);
}

.photo-lightbox.has-title.has-thumbs .photo-lightbox-figure {
  height: min(50vh, 580px);
}

/* Cadre image sans image (média supprimé) : invisible pour les visiteurs, visible dans l'éditeur */
body:not(.gvisuels-inline-editing) .gve-widget-image:has(> .gve-image-placeholder) {
  display: none;
}

/* Images simples des galeries : agrandissables au clic */
body:not(.gvisuels-inline-editing) .gve-widget-image[data-image-kind="image"] > img,
body.gve-is-preview .gve-widget-image[data-image-kind="image"] > img {
  cursor: zoom-in;
}

/* Textes éditables : les retours à la ligne saisis dans l'éditeur sont respectés */
.gve-widget-text,
.gve-widget-heading,
[data-gvisuels-row],
[data-gvisuels-field][data-gve-editable="text"]:not([data-gvisuels-field^="legal"]):not([data-gvisuels-field^="privacy"]) {
  white-space: pre-line;
}

/* ---------- Protection des images (droits d'auteur) ----------
   Pas de glisser vers le bureau, pas de sélection, pas de menu « Enregistrer l'image » sur mobile
   (appui long). L'éditeur n'est pas concerné. */
body:not(.gvisuels-inline-editing) img,
body.gve-is-preview img,
body:not(.gvisuels-inline-editing) video,
body.gve-is-preview video,
body:not(.gvisuels-inline-editing) a,
body.gve-is-preview a,
body:not(.gvisuels-inline-editing) figure,
body.gve-is-preview figure,
body:not(.gvisuels-inline-editing) .gallery-card,
body.gve-is-preview .gallery-card,
body:not(.gvisuels-inline-editing) .gve-carousel,
body.gve-is-preview .gve-carousel,
body:not(.gvisuels-inline-editing) .gallery-print-carousel,
body.gve-is-preview .gallery-print-carousel,
body:not(.gvisuels-inline-editing) .photo-lightbox,
body.gve-is-preview .photo-lightbox {
  -webkit-user-drag: none;
  user-drag: none;
  -webkit-touch-callout: none;
}

body:not(.gvisuels-inline-editing) img,
body.gve-is-preview img,
body:not(.gvisuels-inline-editing) video,
body.gve-is-preview video {
  -webkit-user-select: none;
  user-select: none;
}

/* Impression / « Enregistrer en PDF » : les images ne sont pas incluses */
@media print {
  html body,
  html body * {
    visibility: hidden !important;
    background-image: none !important;
  }
}

/* Cadres Thème : main au survol sur toute la carte (image, bandeau, nom) */
[data-image-kind="theme"],
[data-image-kind="theme"] img,
[data-image-kind="theme"] .gallery-card-bar {
  cursor: pointer;
}

/* Rangée de bulles vide (page sans thème) : aucune place occupée */
.theme-tags:empty {
  display: none;
}

/* Bulles sur une page de thème (sous-thèmes) : même aspect que sur Gallery */
#theme-gallery .theme-tags {
  margin-top: 18px;
  margin-bottom: 0;
}

#theme-gallery .theme-tags span {
  text-transform: uppercase;
  font-family: "Times New Roman", Times, serif;
  font-size: 11px;
  letter-spacing: 0.08em;
}

/* Élément « Bulles » placé dans une section */
.gve-widget-bubbles .theme-tags {
  margin: 0;
}

.gve-widget-bubbles .theme-tags span {
  text-transform: uppercase;
  font-family: "Times New Roman", Times, serif;
  font-size: 11px;
  letter-spacing: 0.08em;
}

/* Textes / titres avec un lien (champ « Lien » de l'éditeur) */
[data-gve-editable="text"][data-href]:not(a),
.gve-widget-text[data-href],
.gve-widget-heading[data-href],
[data-gvisuels-row][data-href] {
  cursor: pointer;
}

[data-gve-editable="text"][data-href]:not(a):hover,
.gve-widget-text[data-href]:hover,
.gve-widget-heading[data-href]:hover,
[data-gvisuels-row][data-href]:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Lien posé sur une partie d'un texte */
a.gve-inline-link {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

a.gve-inline-link:hover {
  opacity: 0.75;
}

/* ---------- Encadrement des images : rendu « vrai cadre accroché au mur » ---------- */
html body [data-frame][data-frame] {
  --gve-frame-w: clamp(8px, 2.6vw, 16px);
  --gve-frame-mat: 0px;
  --gve-frame-mat-color: #f5f2ea;
  box-sizing: border-box !important;
  border: var(--gve-frame-w) solid #111111 !important;
  border-radius: 1px !important;
  padding: var(--gve-frame-mat) !important;
  background: var(--gve-frame-mat-color) !important;
  box-shadow:
    0 22px 44px rgba(0, 0, 0, 0.6),
    0 3px 8px rgba(0, 0, 0, 0.45),
    inset 0 0 0 1px rgba(0, 0, 0, 0.35),
    inset 0 2px 6px rgba(0, 0, 0, 0.3) !important;
  overflow: hidden;
}

html body [data-frame="black"][data-frame],
html body [data-frame="black-mat"][data-frame] {
  border-color: #141414 #0a0a0a #050505 #111111 !important;
}

html body [data-frame="white"][data-frame],
html body [data-frame="white-mat"][data-frame] {
  border-color: #ffffff #ececec #dcdcdc #f5f5f5 !important;
}

html body [data-frame="wood"][data-frame],
html body [data-frame="wood-mat"][data-frame] {
  border-image: linear-gradient(135deg, #b98a55 0%, #8c5f33 28%, #a9794a 52%, #7a4f29 78%, #a67646 100%) 1 !important;
}

/* Cadre alu : baguette fine en aluminium brossé, sans passe-partout */
html body [data-frame="thin"][data-frame] {
  --gve-frame-w: clamp(4px, 0.9vw, 7px);
  --gve-frame-mat: 0px;
  border-image: linear-gradient(
      135deg,
      #eceef0 0%,
      #b4b8be 22%,
      #dfe1e4 45%,
      #989ca3 68%,
      #cfd2d6 100%
    )
    1 !important;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.55),
    0 18px 36px rgba(0, 0, 0, 0.55),
    0 3px 8px rgba(0, 0, 0, 0.4),
    inset 0 0 0 1px rgba(0, 0, 0, 0.6),
    inset 0 2px 5px rgba(0, 0, 0, 0.35) !important;
}

/* ancienne valeur retirée : aucun cadre */
html body [data-frame="dibond"][data-frame] {
  border: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

/* le fond clair du passe-partout ne doit pas déteindre sur l'intérieur */
[data-frame] > .gallery-print-carousel,
[data-frame] > .gve-carousel,
[data-frame] > .gallery-card-media,
[data-frame] > a,
[data-frame] > button {
  background: #0a0a0a;
}

[data-frame] img {
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.25);
}

/* Image agrandie avec un cadre : le cadre épouse la photo (et non toute la zone d'affichage) */
.photo-lightbox.has-frame .photo-lightbox-figure img[data-frame] {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* Carrousel : image encadrée individuellement */
.gve-carousel-slide[data-frame],
.gallery-print-slide[data-frame] {
  box-shadow: none !important;
}

/* Texte vide dans la langue affichée (ex. traduction manquante) : pas de trou sur le site.
   Dans l'éditeur il reste visible pour pouvoir le remplir. */
body:not(.gvisuels-inline-editing) [data-gvisuels-row]:empty,
body:not(.gvisuels-inline-editing) [data-gvisuels-field]:empty,
body.gve-is-preview [data-gvisuels-row]:empty,
body.gve-is-preview [data-gvisuels-field]:empty {
  display: none;
}

/* ---------- Alignement du contenu d'une section (réglages « Contenu » et « Vertical ») ----------
   Couche de faible priorité : n'agit que là où aucune autre règle du thème ne fixe déjà ces valeurs,
   et sans réglage choisi tout reste exactement comme avant. */
@layer gve-section-align {
  .gve-section .gve-column {
    text-align: var(--gve-text-align);
  }

  .gve-section .gve-column > [data-gve-widget] {
    margin-left: var(--gve-ml);
    margin-right: var(--gve-mr);
  }

  .gve-section .gve-column .gve-icons-row,
  .gve-section .gve-column .theme-tags {
    justify-content: var(--gve-justify);
  }

  .gve-section {
    display: flex;
    flex-direction: column;
    justify-content: var(--gve-vjustify, flex-start);
  }
}

.gve-section-inner,
.gve-section-line {
  align-items: var(--gve-align, start);
}

/* Images : le thème met leurs marges latérales à 0 ; le centrage de la section doit passer devant.
   Sans réglage, la valeur reste 0 comme avant. Le réglage « Alignement » de l'image passe toujours devant. */
.gve-section .gve-column > .gve-widget-image {
  margin-left: var(--gve-ml, 0);
  margin-right: var(--gve-mr, 0);
}

/* Ligne d'un texte alignée individuellement (réglage Alignement sur une sélection) */
.gve-line {
  display: block;
}

/* Téléphone : les colonnes s'empilent, sauf si un nombre de colonnes a été choisi pour le mobile
   ou si la ligne a été créée spécialement pour le mobile */
@media (max-width: 640px) {
  section.gve-section > .gve-section-inner {
    grid-template-columns: repeat(var(--gve-cols-mobile, 1), minmax(0, 1fr));
  }

  .gve-section-line:not([data-gve-line-vp="mobile"]) {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}
