/* =========================
   RESET & BASE
========================= */
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { width: 100%; height: 100%; }

/* Anti sélection + anti drag */
body, img, a, button {
  -webkit-user-select: none;
  user-select: none;
  -webkit-user-drag: none;
}

.no-scroll { overflow: hidden; }


.no-scroll .screen{
  width: 100vw;
  height: 100vh;
  min-height: 100vh;
  position: relative;
  overflow: hidden;
}
:root{
  --bg: #140021;

  /* Gold palette */
  --gold-1: #f7e7a7;
  --gold-2: #e7c46a;
  --gold-3: #c79a2a;
  --gold-4: #fff2c6;

  --gold-text: rgba(247,231,167,0.88);
  --gold-border: rgba(231,196,106,0.38);
  --gold-border-strong: rgba(247,231,167,0.58);
  --gold-glow: rgba(231,196,106,0.30);
}

body{
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: var(--bg);
  color: #fff;
}

.theme-uneamets{ background: var(--bg); }

/* Fullscreen container */
.screen{
  width: 100vw;
  min-height: 100vh;
  height: auto;
  position: relative;
  overflow: visible;
}

/* =========================
   NAV
========================= */
.header{
  position: absolute;
  top: 0; left: 0; right: 0;
  padding: 22px 32px;
  z-index: 10;
}

.nav{
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
}

.nav__link{
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.10em;
  font-size: 12px;
  padding: 10px 12px;
  border-radius: 999px;

  color: var(--gold-text);
  border: 1px solid var(--gold-border);
  background: rgba(0,0,0,0.14);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  transition: 200ms ease;
}

.nav__link:hover{
  color: var(--gold-4);
  border-color: var(--gold-border-strong);
  box-shadow: 0 0 28px var(--gold-glow);
  transform: translateY(-1px);
}

.nav__link.is-active{
  color: var(--gold-4);
  border-color: var(--gold-border-strong);
  box-shadow: 0 0 34px var(--gold-glow);
}

/* =========================
   FOOTER
========================= */
.footer{
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 18px 24px;
  display: flex;
  justify-content: center;
  z-index: 10;
}

.footer__sig{
  font-size: 12px;
  letter-spacing: 0.08em;
  color: rgba(247,231,167,0.70);
}

/* =========================
   SOCIAL DOCK (droite, 3 icônes) — x4 plus petites
   Ancien: 164x158
   Nouveau: 41x40 (propre)
========================= */
.social-dock{
  position: fixed;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 40;

  display: flex;
  flex-direction: column;
  gap: 10px;
}

.social-dock a{
  width: 41px;
  height: 40px;

  display: grid;
  place-items: center;

  border-radius: 12px;
  overflow: hidden;

  border: 1px solid rgba(231,196,106,0.20);
  background: rgba(0,0,0,0.18);

  box-shadow:
    0 0 0 1px rgba(231,196,106,0.10),
    0 0 18px rgba(231,196,106,0.12),
    0 12px 26px rgba(0,0,0,0.34);

  transition: 220ms ease;
}

.social-dock a:hover{
  transform: translateY(-2px);
  border-color: rgba(247,231,167,0.55);
  box-shadow:
    0 0 0 1px rgba(247,231,167,0.20),
    0 0 26px rgba(231,196,106,0.20),
    0 16px 36px rgba(0,0,0,0.40);
}

.social-dock img{
  width: 90%;
  height: 90%;
  object-fit: contain;
  display: block;
  pointer-events: none;
  filter: drop-shadow(0 8px 14px rgba(0,0,0,0.30));
}

@media (max-width: 900px){
  .social-dock{ right: 10px; gap: 8px; }
  .social-dock a{ width: 36px; height: 36px; border-radius: 10px; }
}

/* =========================
   HOME (logo + halo + anim + boutons)
========================= */
.center-stage{
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 18px;
  padding: 120px 24px 80px;
  text-align: center;
  position: relative;
  z-index: 5;
  overflow: visible;
}

.center-stage::before{
  content:"";
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);

  width: min(1300px, 160vw);
  height: min(1300px, 160vw);

  background: radial-gradient(
    circle,
    rgba(231,196,106,0.22) 0%,
    rgba(231,196,106,0.12) 32%,
    rgba(231,196,106,0.05) 52%,
    rgba(20,0,33,0.0) 72%
  );

  filter: blur(16px);
  opacity: 0;
  z-index: -1;
  pointer-events: none;

  animation: haloFade 2400ms cubic-bezier(.16,1,.3,1) both;
  animation-delay: 250ms;
}

@keyframes haloFade{
  from { opacity: 0; transform: translate(-50%,-50%) scale(0.96); }
  to   { opacity: 1; transform: translate(-50%,-50%) scale(1.00); }
}

.logo-opener{
  width: min(720px, 92vw);
  height: auto;

  opacity: 0;
  transform-origin: center;
  filter: blur(3px) drop-shadow(0 16px 46px rgba(0,0,0,0.60));

  animation: opener 2200ms cubic-bezier(.16,1,.3,1) both;
  animation-delay: 250ms;

  pointer-events: none;
}

@keyframes opener{
  0%   { opacity: 0; transform: scale(0.78); filter: blur(6px) drop-shadow(0 16px 46px rgba(0,0,0,0.60)); }
  55%  { opacity: 1; transform: scale(1.04); filter: blur(0px) drop-shadow(0 18px 50px rgba(0,0,0,0.65)); }
  100% { opacity: 1; transform: scale(1.00); filter: blur(0px) drop-shadow(0 18px 50px rgba(0,0,0,0.65)); }
}

.cta-row{
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 6px;

  opacity: 0;
  animation: ctaIn 1400ms ease both;
  animation-delay: 1350ms;
}

@keyframes ctaIn{
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.btn-gold{
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 12px 18px;
  border-radius: 999px;

  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.10em;
  font-size: 12px;

  color: #2a1600;
  background: linear-gradient(135deg, var(--gold-1), var(--gold-2) 45%, var(--gold-3));
  border: 1px solid rgba(255,255,255,0.10);

  box-shadow:
    0 10px 26px rgba(0,0,0,0.38),
    0 0 30px rgba(231,196,106,0.16);

  transition: 200ms ease;
}

.btn-gold:hover{
  transform: translateY(-1px);
  box-shadow:
    0 14px 34px rgba(0,0,0,0.44),
    0 0 40px rgba(231,196,106,0.22);
}

.btn-gold--ghost{
  background: rgba(0,0,0,0.18);
  color: var(--gold-4);
  border: 1px solid var(--gold-border);
}

.btn-gold--ghost:hover{
  border-color: var(--gold-border-strong);
}

/* =========================
   GALLERY
========================= */
.gallery-wrap{
  height: 100vh;
  padding: 110px 56px 76px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  overflow: hidden;
}

.gallery-grid{
  flex: 1;
  display: grid;

  /* ✅ 5 colonnes × 3 lignes (15 thumbnails) */
  grid-template-columns: repeat(5, minmax(0, 1fr));
  grid-template-rows: repeat(3, minmax(0, 1fr));
  grid-auto-flow: row;

  gap: clamp(12px, 1.4vw, 20px);
  align-content: stretch;

  /* ✅ pas de scroll sur desktop */
  overflow: hidden;
  padding: 6px;
}
.gallery-grid::-webkit-scrollbar{ width: 0; height: 0; }

.gallery-empty{
  grid-column: 1 / -1;
  align-self: center;
  justify-self: center;
  padding: 18px 22px;
  border-radius: 16px;
  border: 1px solid rgba(231,196,106,0.25);
  background: rgba(0,0,0,0.18);
  color: rgba(247,231,167,0.70);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 12px;
}


.g-item{
  position: relative;
  padding: 0;
  border: none;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;

  background: rgba(0,0,0,0.18);

  box-shadow:
    0 0 0 1px rgba(231,196,106,0.25),
    0 0 22px rgba(231,196,106,0.18),
    0 18px 46px rgba(0,0,0,0.38);

  transition: 260ms ease;

  aspect-ratio: 16 / 10;
}

/* =========================
   GALLERY — LIVING ANIMATION
   (subtle, slow, dream-adjacent)
========================= */
.g-item.is-reveal{
  opacity: 0;
  transform: translateY(10px) scale(0.985);
  transition:
    opacity 900ms cubic-bezier(.16,.9,.25,1),
    transform 900ms cubic-bezier(.16,.9,.25,1),
    box-shadow 260ms ease;
  transition-delay: calc(var(--stagger, 0) * 55ms);
}

.g-item.is-reveal.is-visible{
  opacity: 1;
  transform: translateY(0) scale(1);
}

.g-item::before{
  content:"";
  position: absolute;
  inset: -14px;
  border-radius: 22px;

  background:
    radial-gradient(circle at 18% 28%, rgba(247,231,167,0.28), transparent 42%),
    radial-gradient(circle at 80% 72%, rgba(231,196,106,0.20), transparent 44%),
    radial-gradient(circle at 52% 52%, rgba(199,154,42,0.14), transparent 58%);

  filter: blur(12px);
  opacity: 0.78;
  pointer-events: none;
  z-index: 0;
  transition: 260ms ease;
}

@media (prefers-reduced-motion: no-preference){
  /* A slow "aura" drift behind each frame */
  .g-item::before{
    animation: ua-aura 8s ease-in-out infinite;
  }
}

@keyframes ua-aura{
  0%   { transform: translate3d(0,0,0) scale(1); opacity: 0.72; }
  50%  { transform: translate3d(0.8%, -0.6%, 0) scale(1.02); opacity: 0.95; }
  100% { transform: translate3d(0,0,0) scale(1); opacity: 0.72; }
}

.g-item img{
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: brightness(0.92);
  transition: 260ms ease;

  /* ✅ zoom par défaut (thumbnail uniquement) */
  transform: scale(3);
  transform-origin: center;
  will-change: transform;
}

.g-item:hover{
  transform: translateY(-2px);
  box-shadow:
    0 0 0 1px rgba(247,231,167,0.48),
    0 0 34px rgba(231,196,106,0.34),
    0 22px 60px rgba(0,0,0,0.45);
}

.g-item:hover::before{
  opacity: 1;
  filter: blur(16px);
}

.g-item:hover img{
  filter: brightness(1);

  /* ✅ au survol: dézoom */
  transform: scale(1);
}

.gallery-hint{
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(247,231,167,0.62);
  text-align: center;
}

/* =========================
   GALLERY — PAGINATION (NEW)
========================= */
.gallery-pagination{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 4px 0 0;
}

.page-numbers{
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

.page-btn{
  appearance: none;
  border: 1px solid rgba(231,196,106,0.25);
  background: rgba(0,0,0,0.18);
  color: rgba(247,231,167,0.78);

  height: 36px;
  min-width: 44px;
  padding: 0 12px;

  border-radius: 999px;
  cursor: pointer;

  font-size: 12px;
  letter-spacing: 0.10em;
  text-transform: uppercase;

  transition: 200ms ease;
}

.page-btn:hover{
  border-color: rgba(247,231,167,0.55);
  color: var(--gold-4);
  box-shadow: 0 0 26px rgba(231,196,106,0.18);
  transform: translateY(-1px);
}

.page-btn:disabled{
  opacity: 0.35;
  cursor: default;
  transform: none;
  box-shadow: none;
}

.page-btn.is-active{
  color: var(--gold-4);
  border-color: rgba(247,231,167,0.55);
  box-shadow: 0 0 30px rgba(231,196,106,0.22);
}

/* Lightbox */
.lightbox{
  position: fixed;
  inset: 0;
  background: rgba(8, 0, 14, 0.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 50;
}

.lightbox.is-open{
  display: flex;
}

@media (prefers-reduced-motion: no-preference){
  .lightbox.is-open{ animation: ua-lb-fade 320ms ease both; }
  .lb-img{ transition: transform 520ms cubic-bezier(.16,.9,.25,1), opacity 420ms ease; }
  .lb-img.is-swapping{ opacity: 0; transform: scale(0.985); }
  .lb-img.is-loaded{ opacity: 1; transform: scale(1); }
}

@keyframes ua-lb-fade{
  from{ opacity: 0; }
  to{ opacity: 1; }
}

.lb-figure{
  width: min(1100px, 92vw);
  height: min(78vh, 760px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.lb-img{
  max-width: 100%;
  max-height: 100%;
  border-radius: 16px;
  box-shadow: 0 22px 70px rgba(0,0,0,0.55);
  border: 1px solid rgba(231,196,106,0.18);
  pointer-events: none;
}

.lb-close{
  position: absolute;
  top: 18px;
  right: 22px;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(231,196,106,0.25);
  background: rgba(0,0,0,0.22);
  color: rgba(247,231,167,0.9);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  transition: 200ms ease;
}

.lb-close:hover{
  border-color: rgba(247,231,167,0.55);
  box-shadow: 0 0 30px rgba(231,196,106,0.22);
  transform: translateY(-1px);
}

.lb-nav{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border-radius: 999px;
  border: 1px solid rgba(231,196,106,0.25);
  background: rgba(0,0,0,0.22);
  color: rgba(247,231,167,0.9);
  font-size: 34px;
  cursor: pointer;
  transition: 200ms ease;
}

.lb-nav:hover{
  border-color: rgba(247,231,167,0.55);
  box-shadow: 0 0 30px rgba(231,196,106,0.22);
}

.lb-prev{ left: 18px; }
.lb-next{ right: 18px; }

/* =========================
   ABOUT / CONTACT (inchangé)
========================= */
.about{
  height: 100vh;
  padding: 100px 80px 60px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about__image img{
  width: 100%;
  height: 70vh;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid rgba(231,196,106,0.14);
  box-shadow: 0 18px 50px rgba(0,0,0,0.40);
}

.about__text h1{ font-size: 48px; margin-bottom: 18px; }
.about__text p{
  max-width: 520px;
  line-height: 1.6;
  opacity: 0.9;
  margin-bottom: 14px;
}
.about__meta{
  margin-top: 20px;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.7;
}

.contact{
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.contact__box h1{ font-size: 48px; margin-bottom: 18px; }
.contact__box p{ opacity: 0.85; margin-bottom: 20px; }

.contact__intro{
  color: rgba(247,231,167,0.70);
  opacity: 1;
}
.contact__mail{
  display: block;
  font-size: 18px;
  margin-bottom: 28px;
  color: #fff;
  text-decoration: none;
  letter-spacing: 0.04em;
}

.contact__socials{
  display: flex;
  gap: 20px;
  justify-content: center;
}

.contact__socials{
  margin-top: 26px;
}

.contact__socials a{
  text-decoration: none;
  color: rgba(247,231,167,0.70);
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.1em;
  transition: 200ms ease;
}

.contact__socials a:hover{
  color: var(--gold-4);
  text-shadow: 0 0 18px rgba(231,196,106,0.22);
}

/* =========================
   CONTACT FORM
========================= */
.contact__form{
  width: min(560px, 92vw);
  margin: 18px auto 0;
  padding: 16px 16px 14px;
  border-radius: 18px;

  background: rgba(0,0,0,0.18);
  border: 1px solid rgba(231,196,106,0.20);

  box-shadow:
    0 0 0 1px rgba(231,196,106,0.10),
    0 14px 34px rgba(0,0,0,0.36);
}

.contact__row{
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
  text-align: left;
}

.contact__label{
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(247,231,167,0.72);
}

.contact__input,
.contact__textarea{
  width: 100%;
  border-radius: 14px;
  padding: 12px 12px;

  color: rgba(255,255,255,0.92);
  background: rgba(0,0,0,0.22);

  border: 1px solid rgba(231,196,106,0.18);
  outline: none;

  transition: 180ms ease;
}

.contact__textarea{ resize: vertical; min-height: 120px; }

.contact__input::placeholder,
.contact__textarea::placeholder{
  color: rgba(255,255,255,0.45);
}

.contact__input:focus,
.contact__textarea:focus{
  border-color: rgba(247,231,167,0.55);
  box-shadow: 0 0 0 3px rgba(231,196,106,0.16);
}

.contact__actions{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 10px;
}

.contact__note{
  font-size: 12px;
  letter-spacing: 0.04em;
  color: rgba(247,231,167,0.70);
}

@media (max-width: 520px){
  .contact__form{ padding: 14px 12px 12px; }
  .contact__actions{ flex-direction: column; }
}

/* =========================
   GALLERY — THUMB ZOOM RULES (override)
========================= */
.gallery-grid .g-item img{
  /* ✅ zoom par défaut, uniquement dans la grille */
  transform: scale(3);
  transform-origin: center;
  object-fit: cover;
}

.gallery-grid .g-item:hover img{
  /* ✅ au survol: dézoom */
  transform: scale(1);
  object-fit: cover;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 720px){
  .header{ padding: 16px 14px; }
  .nav{ gap: 10px; flex-wrap: wrap; }
  .nav__link{ font-size: 11px; padding: 9px 10px; }

  .gallery-wrap{ padding: 120px 18px 70px; }
  .gallery-grid{
    /* ✅ Mobile: moins d'images, pagination plus douce (pas de scroll) */
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(3, minmax(0, 1fr)); /* 2x3 = 6 par page */
    overflow: hidden;
    gap: 14px;
  }
}

/* Très petits écrans: 2x2 = 4 par page */
@media (max-width: 420px){
  .gallery-wrap{ padding: 118px 14px 70px; }
  .gallery-grid{
    grid-template-rows: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
}

@media (max-width: 520px){
  .about{ grid-template-columns: 1fr; padding: 120px 18px 70px; }

  /* Mobile: l'image ne doit pas manger l'écran */
  .about__image img{
    height: 26vh;
    max-height: 260px;
    object-position: center top;
  }
}

/* =========================
   ABOUT — CLEAN LAYOUT
========================= */
.about--fixed{
  height: 100vh;
  padding: 120px 80px 80px;
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 60px;
  align-items: center;
}

.about__image img{
  width: 100%;
  height: 70vh;
  object-fit: cover;
  border-radius: 18px;
  border: 1px solid rgba(231,196,106,0.20);
  box-shadow: 0 22px 60px rgba(0,0,0,0.45);
}

.about__text{
  max-width: 520px;
}

.about__text{
  max-width: 520px;
  margin-left: 40px;
  color: rgba(231,196,106,0.78);
}

.about__text p{
  color: rgba(231,196,106,0.78);
}

.about__name{
  color: rgba(247,231,167,0.95);
  text-shadow: 0 0 22px rgba(231,196,106,0.30);
}

/* License block on About */
.about__license{
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(231,196,106,0.20);
  font-size: 12px;
  line-height: 1.55;
  letter-spacing: 0.02em;
  color: rgba(231,196,106,0.72);
}

@media (max-width: 900px){
  .about--fixed{
    grid-template-columns: 1fr;
    padding: 120px 24px 80px;
    text-align: center;
  }

  .about__image img{
    height: 42vh;
  }

  .about__text{
    margin: 0 auto;
  }
}

@media (max-width: 520px){
  .about--fixed{
    padding: 110px 16px 78px;
    gap: 22px;
  }

  .about__text{
    margin-left: 0;
    max-width: 100%;
    text-align: left;
  }

  .about__image{
    width: min(420px, 92vw);
    margin: 0 auto;
  }

  .about__image img{
    height: 26vh;
    max-height: 260px;
    border-radius: 16px;
    object-position: center top;
  }

  .about__license{
    font-size: 11px;
  }
}

/* =========================
   LANGUAGE SWITCHER (ABOUT)
========================= */
.lang-switch{
  position: absolute;
  top: 18px;
  right: 22px;
  z-index: 20;

  display: flex;
  gap: 10px;
  align-items: center;

  padding: 8px 10px;
  border-radius: 999px;

  border: 1px solid rgba(231,196,106,0.22);
  background: rgba(0,0,0,0.14);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  box-shadow:
    0 0 0 1px rgba(231,196,106,0.10),
    0 10px 26px rgba(0,0,0,0.28);
}

.lang-switch a{
  text-decoration: none;
  font-size: 18px;
  line-height: 1;
  filter: drop-shadow(0 8px 14px rgba(0,0,0,0.35));
  opacity: 0.88;
  transform: translateY(0);
  transition: 200ms ease;
}

.lang-switch a:hover{
  opacity: 1;
  transform: translateY(-1px);
}

.lang-switch a[aria-current="page"]{
  opacity: 1;
  transform: translateY(-1px);
}

@media (max-width: 720px){
  .lang-switch{
    top: 12px;
    right: 12px;
    padding: 7px 9px;
    gap: 8px;
  }
  .lang-switch a{ font-size: 17px; }
}



/* =========================
   ABOUT — ALLOW SCROLL (DESKTOP + MOBILE)
========================= */

body.allow-scroll.about-page{
  overflow-y: auto;
  overflow-x: hidden;
}

body.allow-scroll.about-page .screen{
  height: auto;
  min-height: 100vh;
  overflow: visible;
}

body.allow-scroll.about-page .about--fixed{
  height: auto;
  min-height: calc(100vh - 160px);
}
