:root{
  --bg: #031127;
  --bg-deep: #020b19;
  --text: #f5f2eb;
  --muted: #c9c0b2;
  --muted-soft: #a89e91;

  --ivory: #f3ebde;
  --ivory-deep: #ddd1bb;

  --shadow-soft: 0 8px 18px rgba(0,0,0,0.16);
  --shadow-photo: 0 18px 40px rgba(0,0,0,0.22);

  --radius: 16px;
  --pill: 999px;
  --container: 1480px;
}

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

html,
body{
  margin: 0;
  padding: 0;
}

img{
  display: block;
  max-width: 100%;
  height: auto;
}

a{
  text-decoration: none;
}

body.public-site{
  min-height: 100vh;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-deep) 100%);
}

/* HEADER */

body.public-site .top-area{
  width: 100%;
  background: rgba(0,0,0,0.18);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

body.public-site .top-wrap{
  max-width: 1560px;
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

body.public-site .brand-badge{
  display: flex;
  align-items: center;
}

body.public-site .logo-link{
  display: inline-flex;
  align-items: center;
}

body.public-site .logo-frame{
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border-radius: 14px;
  background: linear-gradient(145deg, #f8f2e8 0%, #eadfc9 100%);
  border: 1px solid var(--ivory-deep);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.82) inset,
    0 8px 18px rgba(0,0,0,0.14);
}

body.public-site .logo-img{
  position: relative;
  z-index: 1;
  width: auto;
  max-height: 58px;
}

body.public-site .logo-private{
  position: absolute;
  right: 6px;
  bottom: 4px;
  z-index: 2;
  padding: 2px 6px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(8, 18, 38, 0.82);
  border: 1px solid rgba(255,255,255,0.16);
}

body.public-site .topbar{
  flex: 1 1 auto;
  display: flex;
  justify-content: flex-end;
}

body.public-site .nav{
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

body.public-site .nav a{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border-radius: var(--pill);
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(255,255,255,0.06);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  box-shadow: var(--shadow-soft);
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.14s ease;
}

body.public-site .nav a:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,0.10);
  border-color: rgba(255,255,255,0.24);
}

body.public-site .nav .nav-active{
  background: rgba(255,255,255,0.14);
  border-color: rgba(255,255,255,0.24);
}

/* PAGE */

body.public-site .public-main{
  width: 100%;
}

body.public-site .public-shell{
  max-width: var(--container);
  margin: 0 auto;
  padding: 22px 28px 48px;
}

/* ACCUEIL */

body.public-home .home-layout{
  display: grid;
  grid-template-columns: 760px minmax(320px, 1fr);
  gap: 42px;
  align-items: start;
}

body.public-home .home-media{
  min-width: 0;
}

body.public-home .home-copy{
  min-width: 0;
  padding-top: 6px;
}

body.public-home .home-photo-card{
  margin: 0;
}

body.public-home .home-photo{
  width: 100%;
  border-radius: 6px;
  border: 5px solid #efe6d8;
  box-shadow:
    0 0 0 1px rgba(221, 209, 187, 0.95),
    var(--shadow-photo);
  background: #d8d2c8;
}

body.public-home .home-photo-caption{
  margin-top: 10px;
  font-size: 0.9rem;
  line-height: 1.4;
  font-weight: 400;
  color: var(--muted-soft);
}

body.public-home .home-copy__eyebrow{
  margin: 0 0 16px;
  font-size: 14px;
  line-height: 1.5;
  font-weight: 500;
  color: var(--ivory);
}

body.public-home .home-copy h1{
  margin: 0 0 18px;
  font-size: clamp(2.2rem, 3.8vw, 3.8rem);
  line-height: 1.04;
  letter-spacing: -0.03em;
  color: #fff;
}

body.public-home .home-copy__lead{
  margin: 0 0 18px;
  font-size: 1.12rem;
  line-height: 1.8;
  color: #f0ece4;
  max-width: 34ch;
}

body.public-home .home-copy p{
  margin: 0 0 14px;
  font-size: 1rem;
  line-height: 1.8;
  color: var(--muted);
  max-width: 36ch;
}

body.public-home .home-copy strong{
  color: #fff;
}

/* =========================
   PAGE GALERIES
========================= */

body.public-gallery .public-page--galleries{
  max-width: 1320px;
  padding-top: 28px;
}

body.public-gallery .public-page__header--compact{
  margin-bottom: 28px;
}

body.public-gallery .public-page__header--compact h1{
  margin-bottom: 8px;
}

body.public-gallery .public-page__header--compact p{
  max-width: 56ch;
}

/* Grille dédiée */
body.public-gallery .gallery-listing{
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
  align-items: start;
}

/* Carte */
body.public-gallery .gallery-teaser{
  min-width: 0;
}

body.public-gallery .gallery-teaser__link{
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border-radius: 18px;
  background: rgba(255,255,255,0.045);
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow: 0 10px 24px rgba(0,0,0,0.16);
  transition:
    transform 0.16s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease,
    background 0.18s ease;
}

body.public-gallery .gallery-teaser__link:hover,
body.public-gallery .gallery-teaser__link:focus-visible{
  transform: translateY(-3px);
  background: rgba(255,255,255,0.07);
  border-color: rgba(255,255,255,0.18);
  box-shadow: 0 18px 36px rgba(0,0,0,0.22);
}

/* Vignette plus petite */
body.public-gallery .gallery-teaser__media{
  position: relative;
  aspect-ratio: 4 / 3;
  max-height: 220px;
  overflow: hidden;
  background: rgba(255,255,255,0.04);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

body.public-gallery .gallery-teaser__image{
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.28s ease;
}

body.public-gallery .gallery-teaser__link:hover .gallery-teaser__image{
  transform: scale(1.03);
}

body.public-gallery .gallery-teaser__placeholder{
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-size: 13px;
  color: var(--muted);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.02) 100%);
}

/* Texte */
body.public-gallery .gallery-teaser__body{
  padding: 14px 14px 16px;
}

body.public-gallery .gallery-teaser__title{
  margin: 0 0 6px;
  font-size: 1rem;
  line-height: 1.35;
  color: #ffffff;
}

body.public-gallery .gallery-teaser__text{
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--muted);
}

body.public-gallery .gallery-teaser__text strong{
  color: #ffffff;
  font-weight: 600;
}

/* Etat vide */
body.public-gallery .gallery-empty{
  padding: 22px 0 8px;
}

/* =========================
   PAGE DETAIL GALERIE PHOTO
========================= */

body.public-gallery-detail .public-page--gallery-detail{
  max-width: 1380px;
  padding-top: 30px;
}

body.public-gallery-detail .gallery-detail-header{
  margin-bottom: 30px;
}

body.public-gallery-detail .gallery-detail-header__eyebrow{
  margin: 0 0 10px;
  font-size: 12px;
  line-height: 1.4;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ivory);
}

body.public-gallery-detail .gallery-detail-header h1{
  margin: 0 0 10px;
}

body.public-gallery-detail .gallery-detail-header__meta{
  margin: 0;
  color: var(--muted);
}

body.public-gallery-detail .gallery-detail-empty{
  padding: 10px 0 4px;
}

/* Grille photo */
body.public-gallery-detail .photo-showcase-grid{
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 26px 22px;
  align-items: start;
}

body.public-gallery-detail .photo-showcase-card{
  min-width: 0;
}

body.public-gallery-detail .photo-showcase-card__button{
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  text-align: left;
}

body.public-gallery-detail .photo-showcase-card__frame{
  display: block;
  padding: 5px;
  border-radius: 10px;
  background: linear-gradient(145deg, #f7f0e4 0%, #eadfc9 100%);
  box-shadow:
    0 0 0 1px rgba(221, 209, 187, 0.95),
    0 12px 24px rgba(0,0,0,0.16);
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease;
}

body.public-gallery-detail .photo-showcase-card__button:hover .photo-showcase-card__frame,
body.public-gallery-detail .photo-showcase-card__button:focus-visible .photo-showcase-card__frame{
  transform: translateY(-3px);
  box-shadow:
    0 0 0 1px rgba(221, 209, 187, 0.98),
    0 18px 32px rgba(0,0,0,0.20);
}

body.public-gallery-detail .photo-showcase-card__image{
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 4px;
  background: #d8d2c8;
}

body.public-gallery-detail .photo-showcase-card__meta{
  padding-top: 10px;
}

body.public-gallery-detail .photo-showcase-card__title{
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--muted);
  text-align: center;
}

/* Lightbox */
body.public-site.lightbox-open{
  overflow: hidden;
}

body.public-gallery-detail .gallery-lightbox{
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
}

body.public-gallery-detail .gallery-lightbox.is-open{
  display: block;
}

body.public-gallery-detail .gallery-lightbox__backdrop{
  position: absolute;
  inset: 0;
  background: rgba(2, 8, 18, 0.86);
  backdrop-filter: blur(4px);
}

body.public-gallery-detail .gallery-lightbox__panel{
  position: relative;
  z-index: 2;
  width: min(92vw, 1280px);
  margin: 4vh auto;
  padding: 22px 22px 18px;
  border-radius: 20px;
  background: rgba(10, 18, 34, 0.96);
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 24px 60px rgba(0,0,0,0.40);
}

body.public-gallery-detail .gallery-lightbox__close{
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  color: #fff;
  font-size: 20px;
  cursor: pointer;
}

body.public-gallery-detail .gallery-lightbox__media{
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) 54px;
  align-items: center;
  gap: 16px;
}

body.public-gallery-detail .gallery-lightbox__image{
  display: block;
  width: 100%;
  max-height: 78vh;
  object-fit: contain;
  border-radius: 10px;
  background: #0b1220;
}

body.public-gallery-detail .gallery-lightbox__nav{
  width: 54px;
  height: 54px;
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  color: #fff;
  font-size: 26px;
  cursor: pointer;
}

body.public-gallery-detail .gallery-lightbox__caption{
  padding-top: 14px;
  text-align: center;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

/* Responsive */
@media (max-width: 1200px){
  body.public-gallery-detail .photo-showcase-grid{
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 820px){
  body.public-gallery-detail .photo-showcase-grid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 16px;
  }

  body.public-gallery-detail .gallery-lightbox__panel{
    width: min(94vw, 1000px);
    padding: 18px 14px 14px;
  }

  body.public-gallery-detail .gallery-lightbox__media{
    grid-template-columns: 42px minmax(0, 1fr) 42px;
    gap: 10px;
  }

  body.public-gallery-detail .gallery-lightbox__nav{
    width: 42px;
    height: 42px;
    font-size: 20px;
  }
}

@media (max-width: 560px){
  body.public-gallery-detail .photo-showcase-grid{
    grid-template-columns: 1fr;
  }

  body.public-gallery-detail .gallery-lightbox__panel{
    margin: 2vh auto;
  }
}

/* =========================
   GALERIE - PLANCHE CONTACT HAUT DE GAMME
========================= */

body.public-gallery-contact .public-page--gallery-contact{
  max-width: 1480px;
  padding-top: 30px;
}

body.public-gallery-contact .gallery-contact-header{
  margin: 0 0 34px;
  text-align: center;
}

body.public-gallery-contact .gallery-contact-header__eyebrow{
  margin: 0 0 10px;
  font-size: 12px;
  line-height: 1.4;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ivory);
}

body.public-gallery-contact .gallery-contact-header h1{
  margin: 0 0 10px;
  font-size: clamp(2rem, 3.6vw, 3.2rem);
  line-height: 1.05;
}

body.public-gallery-contact .gallery-contact-header__meta{
  margin: 0;
  color: var(--muted);
  font-size: 0.96rem;
}

body.public-gallery-contact .gallery-contact-empty{
  padding: 16px 0 6px;
  text-align: center;
}

/* Planche contact */
body.public-gallery-contact .contact-sheet{
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 22px 18px;
  align-items: start;
}

body.public-gallery-contact .contact-sheet__item{
  margin: 0;
  min-width: 0;
}

body.public-gallery-contact .contact-sheet__button{
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  text-align: left;
}

body.public-gallery-contact .contact-sheet__frame{
  display: block;
  padding: 5px;
  border-radius: 8px;
  background: linear-gradient(145deg, #f7f0e4 0%, #eadfc9 100%);
  box-shadow:
    0 0 0 1px rgba(221, 209, 187, 0.96),
    0 10px 22px rgba(0,0,0,0.14);
  transition:
    transform 0.16s ease,
    box-shadow 0.18s ease,
    filter 0.18s ease;
}

body.public-gallery-contact .contact-sheet__button:hover .contact-sheet__frame,
body.public-gallery-contact .contact-sheet__button:focus-visible .contact-sheet__frame{
  transform: translateY(-2px);
  box-shadow:
    0 0 0 1px rgba(221, 209, 187, 1),
    0 16px 28px rgba(0,0,0,0.18);
  filter: brightness(1.01);
}

body.public-gallery-contact .contact-sheet__image{
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 3px;
  background: #d8d2c8;
}

body.public-gallery-contact .contact-sheet__caption{
  margin-top: 10px;
  padding: 0 2px;
  text-align: center;
  font-size: 0.84rem;
  line-height: 1.45;
  color: var(--muted-soft);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Lightbox */
body.public-site.lightbox-open{
  overflow: hidden;
}

body.public-gallery-contact .contact-lightbox{
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
}

body.public-gallery-contact .contact-lightbox.is-open{
  display: block;
}

body.public-gallery-contact .contact-lightbox__backdrop{
  position: absolute;
  inset: 0;
  background: rgba(2, 8, 18, 0.90);
  backdrop-filter: blur(5px);
}

body.public-gallery-contact .contact-lightbox__panel{
  position: relative;
  z-index: 2;
  width: min(92vw, 1320px);
  margin: 3vh auto;
  padding: 20px 20px 16px;
  border-radius: 18px;
  background: rgba(9, 18, 34, 0.96);
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow: 0 24px 60px rgba(0,0,0,0.42);
}

body.public-gallery-contact .contact-lightbox__close{
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  color: #fff;
  font-size: 20px;
  cursor: pointer;
}

body.public-gallery-contact .contact-lightbox__media{
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 52px;
  gap: 14px;
  align-items: center;
}

body.public-gallery-contact .contact-lightbox__image{
  display: block;
  width: 100%;
  max-height: 78vh;
  object-fit: contain;
  border-radius: 10px;
  background: #0b1220;
}

body.public-gallery-contact .contact-lightbox__nav{
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  color: #fff;
  font-size: 24px;
  cursor: pointer;
}

body.public-gallery-contact .contact-lightbox__caption{
  padding-top: 12px;
  text-align: center;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

/* Responsive */
@media (max-width: 1280px){
  body.public-gallery-contact .contact-sheet{
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 980px){
  body.public-gallery-contact .contact-sheet{
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px 16px;
  }
}

@media (max-width: 720px){
  body.public-gallery-contact .contact-sheet{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.public-gallery-contact .contact-lightbox__panel{
    width: min(94vw, 1000px);
    padding: 16px 12px 12px;
  }

  body.public-gallery-contact .contact-lightbox__media{
    grid-template-columns: 40px minmax(0, 1fr) 40px;
    gap: 8px;
  }

  body.public-gallery-contact .contact-lightbox__nav{
    width: 40px;
    height: 40px;
    font-size: 18px;
  }
}

@media (max-width: 520px){
  body.public-gallery-contact .contact-sheet{
    grid-template-columns: 1fr;
  }
}

/* =========================
   RESPONSIVE GALERIES
========================= */

@media (max-width: 1200px){
  body.public-gallery .gallery-listing{
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 820px){
  body.public-gallery .gallery-listing{
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }

  body.public-gallery .gallery-teaser__media{
    max-height: 200px;
  }
}

@media (max-width: 560px){
  body.public-gallery .gallery-listing{
    grid-template-columns: 1fr;
  }

  body.public-gallery .gallery-teaser__media{
    max-height: none;
  }
}

/* RESPONSIVE */

@media (max-width: 1200px){
  body.public-home .home-layout{
    grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  }
}

@media (max-width: 980px){
  body.public-site .top-wrap{
    flex-direction: column;
    align-items: stretch;
  }

  body.public-site .brand-badge,
  body.public-site .topbar,
  body.public-site .nav{
    justify-content: center;
  }

  body.public-home .home-layout{
    grid-template-columns: 1fr;
    gap: 26px;
  }

  body.public-home .home-copy{
    padding-top: 0;
  }
}

@media (max-width: 640px){
  body.public-site .top-wrap,
  body.public-site .public-shell{
    padding-left: 14px;
    padding-right: 14px;
  }

  body.public-site .nav a{
    min-height: 40px;
    padding: 0 14px;
    font-size: 13px;
  }
}