/* =====================================================
   BASE repro
===================================================== */

body {
  font-family: "Verdana", serif;
  color: #111;
  background: #fff;
  opacity: 0;
  transition: opacity 0.5s ease-in;
}
.page-frame {
  position: relative;
  width: fit-content;
  margin: 0 auto;
  padding-bottom: 25px; /* espace pour le footer */
  
}
.page-frame::before,
.page-frame::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  pointer-events: none;

 background: rgba(0,0,0,0.12); /* très discret */
}
.page-frame::before,
.page-frame::after{
  border-bottom-left-radius:8px;
  border-bottom-right-radius:8px;
}

/* gauche */
.page-frame::before {
  left: -40px; /* espacement constant */
}

/* droite */
.page-frame::after {
  right: -40px; /* espacement constant */
}

/* ligne du bas */
.page-frame .footer-line{
  position: absolute;
  left: -40px;
  right: -40px;
  bottom: 0;
  height: 1px;
  background: rgba(0,0,0,0.12);
}
  



/* ================= HEADER GRID ================= */

.header-grid {
  position: sticky;
  top: 10px;
  z-index: 1000;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(4px);
  width: 100%;
  margin: 15px 0;  
  display: grid;
  grid-template-columns: auto auto;
  justify-content: center;   /* 🔥 clé */
  align-items: center;
  column-gap: 0px;          /* espace entre gauche et droite */
  border: 0px solid rgba(0,0,0,0.25);
  border-radius: 8px;
}


/* ================= LEFT COLUMN ================= */

.header-left {
  display: flex;
  flex-direction: column;
}


/* ================= H1 ================= */

.header-left h1 {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  
  margin: 0;
  padding: 5px 6px 4px;

  font-family: "Special Elite", cursive;
  font-size: 11px;
  font-weight: normal;

  width: fit-content;
  background: #FFFFFF;  
  border-top: 1px solid black;
    border-left: 1px solid black;
    border-right: 1px solid black;
    border-radius: 8px 8px 0 0; /* haut-gauche, haut-droite, bas-droite, bas-gauche */
}

.h1-logo {
  height: 15px;   /* 🔥 ajuste ici */
  width: auto;
  opacity: 0.6;
}
.title-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center; /* 🔥 centrage du texte */
}
.photo  {
  font-size: 10px;
}
/* Permet au panneau de se positionner correctement */
.title-box{
  position: relative;
  overflow: visible;
  z-index: 2;
  background: white;
}
.title-box a{
  text-decoration: none;
  color: #000;
}

/* panneau caché */
.title-panel{

  position: absolute;
  top: 0;
  left: 100%;

  height: 100%;
  display: flex;
  align-items: center;

  padding: 0 40px;
  white-space: nowrap;

  z-index: 1;

  /* caché entièrement sous le H1 */
  transform: translateX(-100%);
  opacity: 0;

  transition: transform 0.95s cubic-bezier(.22,.61,.36,1), opacity 0.25s;
}
.title-panel img{
  height:17px;
  width:auto;
  opacity:0.7;
  transition:opacity 0.2s;
}

.title-panel a{
  display:inline-flex;
  align-items:center;
  margin-right:6px;
}
.title-panel a.mail{
  margin-right:30px;
}
.title-panel a:hover img{
  opacity:1;
}

.title-box:hover .title-panel{
  transform: translateX(0);
  opacity: 1;
}
.title-box::after{
  content:"";
  position:absolute;
  top:0;
  right:-6px;
  width:6px;
  height:100%;

  pointer-events:none;
}
/* ================= NAV LEFT ================= */

.nav-left {
  display: flex;
  justify-content: center;   /* centrage horizontal */
  align-items: center;       /* centrage vertical */

  border-top: 1px solid #000; /* 🔥 LA ligne, AU BON ENDROIT */
  padding-top: 5px;
  padding-bottom: 5px;
  padding-right: 10px;

}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;

}

.nav-links a {
  text-decoration: none;
  color: #000;
  padding: 4px 0 4px;
}

.nav-links a.active {                                                     
  font-style: italic;
  color: #FA4500;
}

.nav-links span {
  color: #FA4500;
  font-size: 10px;
}

.nav-links a:hover {
  color: #808080;
}

/* ================= NAV RIGHT ================= */

.nav-right {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  padding-left: 8px;
  padding-right: 6px;  
}

.nav-right::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: #000;
}
.nav-right::after {
  top: 0;
  border-left: 1px solid #000;
  border-top: 1px solid #000;
  border-top-left-radius: 5px;
}
.nav-right::after,
.nav-right .corner-bottom {
  content: "";
  position: absolute;
  left: 0;
  width: 8px;
  height: 8px;
}
.corner-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 8px;
  height: 8px;
  border-left: 1px solid #000;
  border-bottom: 1px solid #000;
  border-bottom-left-radius: 5px;
}
.nav-right .arrow {
color: #FA4500;               
}

.nav-right a {
  font-family: "Cutive Mono", monospace;
  font-size: 13px;
  text-decoration: none;
  color: #000;
}

.nav-right a:hover {
  color: #808080;
}
.nav-right a.active {                                                     
  color: #FA4500;
}
.nav-right #align-center {
  margin: 0;
}

.gallery-intro {
  max-width: 100%;
  margin: 10px 0 5px 50px; /* top/right/bottom/left */
  text-align: left;
  padding: 1rem;
}

.gallery-intro p {
  font-size: 12px;
  color: #444;
  margin: 0;           /* pas de marge supplémentaire */
}
.gallery-intro a {
  text-decoration: none;
  color: #808080;
  padding: 5px 0;
}
.gallery-intro a:hover {
  color: #808080;
}



/* ================= GALERIE + LAYOUT ================= */

/* conteneur des galeries empilées */
.galleries {
  display: flex;
  flex-direction: column;
  gap: 10px; /* espace entre les deux galeries */
}
.gallery-layout {
  display: flex;              /* flex pour garder menu à droite si présent */
  justify-content: center;    /* centre horizontalement la galerie */
  align-items: flex-start;
  gap: 30px;                  /* espace entre galerie et menu */
  max-width: 900px;          /* largeur totale du bloc (gallery + menu) */
  margin: 0 auto;             /* 🔑 centre le bloc sur la page */
  padding: 0 20px;
}

/* galerie centrée dans le layout */
.gallery {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 10px auto 60px auto;
  max-width: 900px;           /* largeur de la galerie */
  width: 100%;
  transition: opacity 0.3s ease;
}
/* ================= GALERIES — FILTRE VISUEL ================= */

.galleries .gallery {
  opacity: 0.35;
  filter: grayscale(40%);
  transition: opacity 0.6s ease, filter 0.6s ease;
}

/* galerie active */
.galleries .gallery.is-active {
  opacity: 1;
  filter: none;
}
/* exclure la 9x9 du système de focus */
.gallery.gallery-9x9 {
  opacity: 1 !important;
  filter: none !important;
}


/* ================= MENU DROIT ================= */
.side-menu {
  flex-shrink: 0;
  width: 160px;
  position: sticky;
  top: 120px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-family: "Special Elite", cursive;
  font-size: 13px;
}


.side-menu a {
  text-decoration: none;
  color: #000;
  padding-left: 2px;
  border-left: 1px solid transparent;
  transition: color 0.3s ease, border-color 0.3s ease;
}

.side-menu a:hover {
  color: #808080;
  border-left: 1px solid #000;
}
.side-menu a.active {
  color: #FF4500;
  border-left: 1px solid #000;
  transition: color 0.3s ease;
}
/* base */
.side-menu a {
  position: relative;
}

/* prix cachés par défaut */
.side-menu a:not(.prix)::after {
  content: attr(data-price);
  position: absolute;
  right: 0px;          /* ← rapproche le prix */

  transform: translateY(-50%) translateX(-4px);
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
  font-size: 11px;
  color: #000;
  white-space: nowrap;
}

/* apparition des prix au survol de "tarifs" */
.side-menu:has(a.prix:hover) a:not(.prix)::after {
  opacity: 1;
  transform: translateX(0);
}

/* style du lien tarifs */
.side-menu a.prix {
  margin-top: 15px;
  margin-bottom: 15px;
  font-style: italic;
}
.side-menu a.prix:hover {
  color: #FF4500;
  border-left: none;
  transition: color 0.3s ease;
}

@media (max-width: 800px) {
  .gallery-layout {
    flex-direction: column;
    align-items: center;
  }

}
/* caché par défaut */
.side-menu a[data-filter="21x21"] {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transform: translateX(-10px);
  transition:
    max-height 0.4s ease,
    opacity 0.4s ease,
    transform 0.4s ease;
}

/* visible */
.side-menu.show-21 a[data-filter="21x21"] {
  max-height: 40px;
  opacity: 1;
  transform: translateX(0);
}

.gallery-tri .gallery {
  scroll-margin-top: 120px; /* hauteur header + respiration */
}
.gallery-pano .gallery {
  scroll-margin-top: 120px; /* hauteur header + respiration */
}
.gallery-bazar .gallery {
  scroll-margin-top: 120px; /* hauteur header + respiration */
}
.gallery-mono .gallery {
  scroll-margin-top: 120px; /* hauteur header + respiration */
}

/* ================= GALERIE ================= */
/* lignes normales */
.row,
.row.alt,
.vertical-only,
.horizontal-only {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-start;
  align-items: flex-start;
}

/* alternance row.alt */
.row.alt > :first-child { order: 2; }
.row.alt > :last-child  { order: 1; }

/* ================= SEPARATEUR DE GALERIE ================= */

.gallery-separator {
  width: 100%;
  max-width: 1000px;   /* même largeur que tes galeries */
  margin: 0px auto 0px auto;
  padding: 0 50px;
}

.gallery-separator h2 {
  font-family: 'Special Elite', serif;
  font-size: 12px;
  font-weight: normal;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin: 0 0 8px 0;
  text-align: left;
  transition: opacity 0.3s ease;
}
.gallery-separator h2 span {
  text-transform: lowercase;
  font-size: 10px;
  font-style: italic;
  
}

.gallery-separator hr {
  border: none;
  height: 1px;
  background: #000;
  opacity: 0.3;
  background: linear-gradient(to right, #000 40%, transparent);
}
/* =========TRI======== */

/* ================= GALERIE TRI – HORIZONTAL-ONLY ================= */
.gallery-tri .row.horizontal-only {
  display: flex;
  gap: 30px; /* espace horizontal entre les horiz-groups */
  margin-bottom: 0px; /* espace vertical entre les lignes horizontal-only */
}

/* ===== Groupes horizontaux ===== */
.gallery-tri .row.horizontal-only .horiz-group {
  display: flex;
  flex-direction: column;
  gap: 0px; /* on gère le vertical par vert_tri directement */
}

/* ===== Images horizontales ===== */
.gallery-tri .row.horizontal-only .horiz-group a.horiz {
  width: 180px;   /* largeur contrôlable */
  height: auto;
  flex: 0 0 auto;
}

.gallery-tri .row.horizontal-only .horiz-group a.horiz img {
  width: 100%;
  height: auto;
  display: block;
    border: 1px solid #808080;
  
}

/* ===== Images verticales ===== */
.gallery-tri .row.horizontal-only .horiz-group a.vert_tri {
  width: auto;       /* largeur automatique */
  height: 180px;     /* hauteur contrôlable */
  flex: 0 0 auto;
  margin-bottom: 0px; /* espace vertical entre verticales */
  margin-right: 0px;
  margin-left: 7px;
    border: 1px solid #808080;
}

.gallery-tri .row.horizontal-only .horiz-group a.vert_tri img {
  width: auto;
  height: 100%;
  display: block;
}

/* ===== Dernier élément vertical n’a pas de marge ===== */
.gallery-tri .row.horizontal-only .horiz-group a.vert_tri:last-child {
  margin-bottom: 0;
}

/* =========FIN TRI======== */

/* =========PANO======== */

/* verticales */
.gallery-pano .gallery a.vert {
  height: 140px;
  width: auto;
  flex: 0 0 auto;
}

.gallery-pano .gallery a.vert img {
  height: 100%;
  width: auto;
  display: block;
}

/* horizontales */
.gallery-pano .gallery .horiz-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.gallery-pano .gallery .horiz-group a.horiz {
  width: 130px;
  height: auto;
  flex: 0 0 auto;
}

.gallery-pano .gallery .horiz-group a.horiz img {
  width: 100%;
  height: auto;
  display: block;
}
/* ================= PANO – LIGNE HORIZONTAL-ONLY ================= */

.gallery-pano
.row.horizontal-only
.horiz-group a.horiz {
  width: 140px;   /* ← largeur spécifique */
  height: auto;
  flex: 0 0 auto;
  
}

.gallery-pano
.row.horizontal-only
.horiz-group a.horiz img {
  width: 100%;
  height: auto;
  display: block;
 }
 
 .gallery-pano .row.horizontal-only {
  display: flex;
  gap: 18px;
}

.gallery-pano .row.horizontal-only a.horiz {
  width: 140px;
}

/* =========BAZAR======== */
 .gallery-bazar .row.horizontal-only {
  display: flex;
  gap: 30px;
}


/* =========MONO======== */

/* verticales */
.gallery-mono .gallery .vert {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.gallery-mono .gallery a.vert {
  height: 100px;
  width: auto;
  flex: 0 0 auto;
}

.gallery-mono .gallery a.vert img {
  height: 100%;
  width: auto;
  display: block;
}

/* horizontales */
.gallery-mono .gallery .horiz-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.gallery-mono .gallery .horiz-group a.horiz {
  width: 100px;
  height: auto;
  flex: 0 0 auto;
}

.gallery-mono .gallery .horiz-group a.horiz img {
  width: 100%;
  height: auto;
  display: block;
}
/* ================= MONO – LIGNE HORIZONTAL-ONLY ================= */

.gallery-mono
.row.horizontal-only
.horiz-group a.horiz {
  width: 100px;   /* ← largeur spécifique */
  height: auto;
  flex: 0 0 auto;
}

.gallery-mono
.row.horizontal-only
.horiz-group a.horiz img {
  width: 100%;
  height: auto;
  display: block;
}
/* =========FIN MONO======== */

/* ================= 9x9 ================= */
.repro {
  transition:
    opacity 0.35s ease,
    transform 0.35s ease;
}

.repro.is-hidden {
  opacity: 0;
  transform: scale(0.95);
  pointer-events: none;
  position: absolute;
}

.gallery a.repro {
  height: 90px;       /* hauteur contrôlable */
  width: auto;         /* largeur automatique pour respecter ratio */
  flex: 0 0 auto;      /* pas de rétrécissement */
}

.gallery a.repro img {
  height: 100%;        /* prend toute la hauteur du lien */
  width: auto;         /* ratio conservé */
  display: block;
  border: 1px solid #000;
}


/* =========FIN 9x9======== */


/* verticales */
.gallery a.vert {
  height: 170px;       /* hauteur contrôlable */
  width: auto;         /* largeur automatique pour respecter ratio */
  flex: 0 0 auto;      /* pas de rétrécissement */
}

.gallery a.vert img {
  height: 100%;        /* prend toute la hauteur du lien */
  width: auto;         /* ratio conservé */
  display: block;
}

/* horizontales */
.horiz-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.horiz-group a.horiz {
  width: 170px;        /* largeur contrôlable */
  height: auto;        /* ratio conservé */
  flex: 0 0 auto;
}

.horiz-group a.horiz img {
  width: 100%;
  height: auto;
  display: block;
}
.gallery-mono .row .vert{
  margin-right: 2px;
}



/* variantes */
.vertical-only { gap: 10px; }
.horizontal-only { gap: 4px; }
.horizontal-only .horiz-group { gap: 10px; }

/* mobile */
@media (max-width: 550px) {
  .row,
  .row.alt,
  .vertical-only,
  .horizontal-only {
    flex-direction: column;
    justify-content: center;
  }

  .horiz-group {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 5px;
  }

  .gallery a.vert {
    height: 150px;     /* réduire hauteur sur mobile */
  }

  .horiz-group a.horiz {
    width: 100px;      /* réduire largeur sur mobile */
  }
}

/* ================= LIGHTBOX ================= */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(255,255,255,0.95);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.lightbox.visible {
  opacity: 1;
}

.lightbox-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-content img {
  max-width: 90vw;
  max-height: 80vh;
  border: 1px solid #000;
  box-sizing: border-box;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.caption {
  margin-top: 12px;
  font-family: "Special Elite", monospace;
  font-size: 14px;
  text-align: center;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.prev,
.next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #808080;
  font-size: 60px;
  cursor: pointer;
}

.prev { left: 30px; }
.next { right: 30px; }

