/* ═══════════════════════════════════════
   PANAMERA — @font-face
═══════════════════════════════════════ */
@font-face {
  font-family: 'Panamera';
  src: url('Fonts/Panamera_wght_.ttf') format('truetype');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Panamera';
  src: url('Fonts/Panamera-Thin.otf') format('opentype');
  font-weight: 100;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Panamera';
  src: url('Fonts/Panamera-Light.otf') format('opentype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Panamera';
  src: url('Fonts/Panamera-Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Panamera';
  src: url('Fonts/Panamera-Medium.otf') format('opentype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Panamera';
  src: url('Fonts/Panamera-Bold.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Panamera';
  src: url('Fonts/Panamera-Black.otf') format('opentype');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

/* ═══════════════════════════════════════
   INTER TIGHT — Google Fonts
═══════════════════════════════════════ */
@import url('https://fonts.googleapis.com/css2?family=Inter+Tight:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400&display=swap');

/* ═══════════════════════════════════════
   VARIABLES & RESET
═══════════════════════════════════════ */
:root {
  --black:        #000000;
  --white:        #FFFFFF;
  --camel:        #a34f0e;

  --sidebar-w:    140px;
  --sidebar-pad:  16px;

  --font-display: 'Panamera', sans-serif;
  --font-body:    'Inter Tight', sans-serif;

  --ease-out:     cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background: var(--white);
  color: var(--black);
  overflow-x: hidden;
}

/* ═══════════════════════════════════════
   SIDEBAR
═══════════════════════════════════════ */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--sidebar-w);
  height: 100vh;
  background: var(--camel);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 22px 0 28px;
  z-index: 200;
  transform: translateX(-100%);
  transition: transform 0.55s var(--ease-out);
}

.sidebar.open {
  transform: translateX(0);
}

.sidebar-logo {
  width: calc(var(--sidebar-w) - var(--sidebar-pad) * 2);
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.sidebar-logo a { display: block; width: 100%; }

.logo-blanc {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  align-self: stretch;
  padding-left: var(--sidebar-pad);
  gap: 14px;
}

.sidebar-nav a {
  color: var(--white);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.04em;
  opacity: 0.9;
  transition: opacity 0.25s ease, font-weight 0.2s ease, transform 0.25s ease;
  white-space: nowrap;
  display: flex;
  align-items: center;
}

.sidebar-nav a::after {
  content: '→';
  display: inline-block;
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  font-size: 12px;
  margin-left: 4px;
}

.sidebar-nav a:hover { opacity: 1; font-weight: 700; transform: translateX(2px); }
.sidebar-nav a:hover::after { opacity: 1; transform: translateX(2px); }

/* ── Onglet hint ─ */
.sidebar-hint {
  position: fixed;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 14px;
  height: 52px;
  background: var(--camel);
  border-radius: 0 6px 6px 0;
  z-index: 300;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: width 0.25s ease, opacity 0.3s ease, left 0.55s var(--ease-out);
}

.sidebar-hint:hover { width: 20px; }

/* Flèche dans l'onglet */
.sidebar-hint::after {
  content: '';
  display: block;
  width: 5px;
  height: 5px;
  border-right: 2px solid var(--white);
  border-top: 2px solid var(--white);
  transform: rotate(45deg) translateX(-1px);
}

/* Quand sidebar ouverte : onglet se déplace avec elle et flèche s'inverse */
.sidebar-hint.open {
  left: var(--sidebar-w);
}

.sidebar-hint.open::after {
  transform: rotate(-135deg) translateX(-1px);
}

/* ═══════════════════════════════════════
   MAIN — pleine largeur par défaut
═══════════════════════════════════════ */
.main {
  margin-left: 0;
  transition: margin-left 0.55s var(--ease-out);
}

.main.sidebar-open {
  margin-left: var(--sidebar-w);
}

/* Homepage uniquement */
body.page-accueil .main {
  transform: translateY(100vh);
  transition: transform 0.75s var(--ease-out), margin-left 0.55s var(--ease-out);
}

body.page-accueil .main.revealed {
  transform: translateY(0);
}

/* ═══════════════════════════════════════
   HERO TRIGGER — espace scrollable invisible
═══════════════════════════════════════ */
.hero-trigger {
  height: 200px;
  pointer-events: none;
}

/* ═══════════════════════════════════════
   ÉCRAN D'OUVERTURE
═══════════════════════════════════════ */
.hero-screen {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: var(--camel);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 52px;
  pointer-events: all;
  /* visibility au lieu de display pour permettre la transition inverse */
  visibility: visible;
  transition: opacity 0.7s var(--ease-out), visibility 0.7s var(--ease-out);
}

.hero-screen.exiting {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.hero-screen-logo {
  width: clamp(220px, 28vw, 360px);
  transition: transform 0.65s var(--ease-out);
}

.hero-screen-logo img {
  width: 100%;
  height: auto;
  display: block;
}

.hero-screen.exiting .hero-screen-logo {
  transform: translateY(-110vh);
}

.hero-screen-cta {
  color: var(--white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: bounce 2s infinite var(--ease-out);
  transition: transform 0.5s var(--ease-out);
}

.hero-screen-cta:hover { opacity: 0.7; }

.hero-screen.exiting .hero-screen-cta {
  transform: translateY(-110vh);
  animation: none;
}


.cta-label {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 400;
  letter-spacing: 0.06em;
}

.cta-arrow {
  animation: bounce 2s infinite var(--ease-out);
  color:#ac5712
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(8px); }
}

/* ═══════════════════════════════════════
   ANIMATIONS D'ENTRÉE
═══════════════════════════════════════ */
[data-anim="fade-up"] {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity   0.75s var(--ease-out),
    transform 0.75s var(--ease-out);
}

[data-anim="fade-up"].animated {
  opacity: 1;
  transform: translateY(0);
}

/* ═══════════════════════════════════════
   GALERIE
═══════════════════════════════════════ */
.galerie {
  padding: 60px 60px 80px;
  /* S'assure que la galerie commence tout en haut du main */
  padding-top: 60px;
}

.galerie-titre {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.5vw, 2.2rem);
  font-weight: 600;
  margin-bottom: 48px;
  letter-spacing: -0.01em;
}

.galerie-grille {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.galerie-item {
  text-decoration: none;
  color: var(--black);
  display: block;
}

.galerie-img-wrapper {
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 1 / 1;
  cursor: zoom-in;
}

.galerie-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s var(--ease-out);
}

.galerie-item:hover .galerie-img {
  transform: scale(1.03);
}

.galerie-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  display: flex;
  align-items: flex-end;
  padding: 20px;
  transition: background 0.4s ease;
}

.galerie-item:hover .galerie-overlay {
  background: rgba(0, 0, 0, 0.45);
}

.galerie-overlay-titre {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  color: var(--white);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.35s ease, transform 0.35s ease;
  letter-spacing: 0.02em;
}

.galerie-item:hover .galerie-overlay-titre {
  opacity: 1;
  transform: translateY(0);
}

/* ═══════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════ */
@media (max-width: 1024px) {
  :root {
    --sidebar-w:   110px;
    --sidebar-pad: 13px;
  }
}

@media (max-width: 900px) {
  .galerie {
    padding: 48px 32px;
  }

  .galerie-grille {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  :root {
    --sidebar-w:   80px;
    --sidebar-pad: 10px;
  }

  .galerie {
    padding: 40px 20px;
  }

  .galerie-grille {
    grid-template-columns: 1fr;
  }

  .sidebar-nav a {
    font-size: 11px;
  }

  .hero { padding: 60px 28px; gap: 28px; }
  .hero-logo { width: 150px; }
  .hero-tagline { font-size: 0.95rem; }
  .hero-statement { font-size: 1.25rem; }
}

/* ═══════════════════════════════════════
   ÉCRAN D'OUVERTURE
═══════════════════════════════════════ */
.hero-screen {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: var(--camel);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 52px;
  transition: opacity 0.9s var(--ease-out), visibility 0.9s var(--ease-out);
}

.hero-screen.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.hero-screen-logo {
  width: clamp(220px, 28vw, 360px);
}

.hero-screen-logo img {
  width: 100%;
  height: auto;
  display: block;
}

.hero-screen-cta {
  color: var(--white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: bounce 2s infinite var(--ease-out);
  opacity: 0.85;
  transition: opacity 0.2s ease;
}

.hero-screen-cta:hover {
  opacity: 1;
}

html.skip-hero .hero-screen {
  display: none !important;
}

html.skip-hero body.page-accueil .main {
  transform: none !important;
}