/* Variables globales
-------------------------------------------------- */
:root {
  --sidebar-width: 230px;
  --bg-color: #ffffff;
  --text-color: #202020;
  --text-midcolor: #7f7f7f;
  --accent-color: #ea392c;
  --border-color: #e0e0e0;
  --font-family: "Montserrat", sans-serif;
  --font-secondary: "Lato", sans-serif;
  --transition-fast: 0.18s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
  --transition-cubic: 0.4s cubic-bezier(0.32, 0.72, 0, 1);
  --border-radius: 2px;
  --shadow-light: rgba(0, 0, 0, 0.1);
}

/* Reset et styles de base
-------------------------------------------------- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-color);
  color: var(--text-color);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  letter-spacing: -0.05em;
  /* line-height: 1.5; */
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  padding: 0;
  cursor: none;
  position: relative;
  /* Optimisations iOS pour le scroll fluide */
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
}

/* Masquer la barre de scroll */
body::-webkit-scrollbar {
  display: none;
}

body {
  -ms-overflow-style: none;  /* Internet Explorer 10+ */
  scrollbar-width: none;  /* Firefox */
}

/* Couche inversée pour l'effet masque */
.inverted-layer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
  filter: invert(1);
  opacity: 0;
}

/* Curseur personnalisé */
.custom-cursor {
  position: fixed;
  width: 18px;
  height: 18px;
  background-color: white;
  border-radius: 50%;
  pointer-events: none;
  z-index: 10000;
  transform: translate(-50%, -50%);
  transition: opacity 0.2s ease;
  mix-blend-mode: difference;
}

/* Effet de clic - cercle qui s'agrandit */
.click-ripple {
  position: fixed;
  border: 2px solid rgba(0, 0, 0, 0.6);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  animation: ripple-expand 0.6s ease-out forwards;
}

@keyframes ripple-expand {
  0% {
    width: 12px;
    height: 12px;
    opacity: 1;
    border-width: 2px;
  }
  100% {
    width: 40px;
    height: 40px;
    opacity: 0;
    border-width: 1px;
  }
}

/* Supprimer le curseur par défaut sur tous les éléments interactifs */
*, *:hover, *:active, *:focus,
a, button, input, textarea, select, [onclick], [role="button"], 
.burger-menu, .links-list a, .NavBar a, .site-logo a,
.models img, .ws_location img, .summary-image img, .host img {
  cursor: none !important;
}

/* Layout principal
-------------------------------------------------- */
.container {
  display: grid;
  grid-template-areas:
    "logo mainstage"
    "NavBar mainstage"
    "NavBar footer";
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
  grid-template-rows: auto 1fr auto;
  min-height: 100vh;
  width: 100%;
  position: relative;
}

.mainstage {
  grid-area: mainstage;
  width: 100%;
  padding: 0 20px;
  min-width: 0;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  gap: 20px;
  contain: layout style;
}

.photographer {
  color: var(--text-midcolor);
  font-size: 11px;
  letter-spacing: 0.05em;
}

.site-logo a {
  color: var(--text-color);
  font-family: var(--font-family);
  font-size: 1.7rem;
  letter-spacing: -0.05em;
  text-decoration: none;
  transition: color var(--transition-normal);
}

.site-logo a:hover {
  color: var(--accent-color);
}

/* Navigation
-------------------------------------------------- */
.burger-menu {
  display: none;
  transition: transform var(--transition-normal);
}

.burger-menu:hover {
  transform: scale(1.1);
}

.burger-menu span {
  background-color: var(--text-color);
  border-radius: var(--border-radius);
  display: block;
  height: 3px;
  width: 100%;
}


.italic-text {
  color: var(--text-color);
  font-family: var(--font-secondary);
  font-size: 13px;
  font-style: italic;
  font-weight: normal;
  letter-spacing: 0em;
  line-height: 1.7;
}

.logo {
  grid-area: logo;
  padding: 10px 0 0 20px;
  width: 100%;
}

.NavBar {
  font-family: var(--font-family);
  grid-area: NavBar;
  line-height: 1;
  margin: 10px 0px 10px 20px;
  overflow-y: auto;
}

.NavBar ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.NavBar ul li {
  margin: 10px 0 15px 0;
}

.NavBar ul li a {
  color: var(--text-color);
  display: block;
  font-size: 13px;
  font-weight: normal;
  letter-spacing: -0.05em;
  position: relative;
  text-decoration: none;
  text-transform: uppercase;
  transition: all var(--transition-normal);
  transform: translateX(0);
}

.NavBar ul li a::before {
  background-color: transparent;
  content: "";
  height: 20px;
  left: 0;
  position: absolute;
  top: -10px;
  transition: background-color var(--transition-fast);
  width: 100%;
  z-index: -1;
}

.NavBar ul li a:hover {
  background-color: var(--text-color);
  color: var(--bg-color);
}

.NavBar ul li a:hover::before {
  background-color: var(--text-color);
}




/* Composants
-------------------------------------------------- */
.about,
.contact {
  align-items: center;
  display: flex;
  gap: 20px;
  justify-content: center;
  margin: 20px 0;
}

.about-image,
.contact-image {
  flex: 0 0 40%;
  text-align: center;
}

.about-image img,
.contact-image img {
  height: auto;
  max-width: 100%;
}


.footer {
  align-content: center;
  background: transparent;
  color: var(--text-midcolor);
  font-size: 11px;
  grid-area: footer;
  text-align: center;
  height: 20px;
}

.links-container {
  align-items: flex-start;
  display: flex;
  justify-content: center;
  min-height: 100vh;
  padding-top: 50px;
}

.links-list {
  list-style: none;
  margin: 0;
  max-width: fit-content;
  padding: 0;
  width: 100%;
}

.links-list li {
  margin-bottom: 15px;
}

.links-list li:last-child {
  margin-bottom: 0;
}

.links-list a {
  align-items: center;
  color: var(--text-color);
  display: flex;
  font-size: 16px;
  font-weight: bold;
  text-decoration: none;
  transition: color var(--transition-normal);
}

.links-list a:hover {
  color: var(--accent-color);
  filter: invert(42%) sepia(65%) saturate(2560%) hue-rotate(341deg) brightness(97%) contrast(96%);
}

.links-list img {
  flex-shrink: 0;
  height: 24px;
  margin-right: 10px;
  width: 24px;
  transition: transform var(--transition-normal);
}

.publications img {
  height: auto;
  width: 100%;
}

.sidebar {
  background-color: var(--bg-color);
  display: flex;
  flex-direction: column;
  height: 100vh;
  left: 0;
  position: fixed;
  top: 0;
  width: var(--sidebar-width);
  z-index: 10;
}

.Social_icons {
  align-self: start;
  display: flex;
  gap: 5px;
  grid-area: Social_icons;
  justify-content: center;
  margin-top: auto;
  padding-top: 150px;
  width: 210px;
}

.Social_icons a {
  align-items: center;
  background-color: var(--text-color);
  display: flex;
  height: 30px;
  justify-content: center;
  width: 30px;
  transition: background-color var(--transition-normal);
}

.Social_icons a:hover {
  background-color: var(--accent-color);
}

.Social_icons img {
  filter: brightness(0.8) invert(1);
  height: 22px;
  transition: transform var(--transition-normal), filter var(--transition-normal);
  width: 22px;
}

/* Vidéos
-------------------------------------------------- */
.videos-container {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 100%;
}

section {
  width: 100%;
}

.video-grid {
  display: flex;
  gap: 5px;
  justify-content: space-between;
  width: 100%;
}

.video-grid iframe {
  aspect-ratio: 9 / 16;
  width: calc((100% - 10px) / 3);
  border: none;
}

.video-single {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 100%;
}

.video-single iframe {
  aspect-ratio: 16 / 9;
  width: 100%;
  border: none;
}

/* Transitions
-------------------------------------------------- */
.fade-transition {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity var(--transition-slow), transform var(--transition-slow);
  will-change: opacity, transform;
}

.fade-transition.active {
  opacity: 1;
  transform: translateY(0);
}

.image-reveal {
  opacity: 0;
  transform: scale(0.98);
  transition: opacity var(--transition-slow), transform var(--transition-slow);
  will-change: opacity, transform;
}

.image-reveal.loaded {
  opacity: 1;
  transform: scale(1);
}

.gallery-image {
  position: relative;
  overflow: hidden;
  will-change: transform;
}

.gallery-image img {
  transition: transform var(--transition-slow);
}

.gallery-image:hover img {
  transform: scale(1.03);
}



@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

.action-button {
  animation: pulse 2s infinite;
}

/* Workshop global
-------------------------------------------------- */
.workshop {
  width: 100%;
  max-width: 100%;
  font-family: var(--font-family);
}

.banner {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  will-change: transform;
}

.ws_page {
  width: calc(80% + 20px);
  margin: auto;
  contain: layout style;
}


.ws_location {
  line-height: 1.2em;
  contain: layout style;
}

.ws_location img {
  width: 100%;
}

.ws_location .row {
  display: flex;
  gap: 5px;
  margin-bottom: 5px;
}

.ws_location .row img {
  width: calc(50% - 2.5px);
  object-fit: cover;
}




.mainstage h1,
.workshop h1 {
  display: block;
  font-size: 1.5em;
  font-weight: bold;
  text-align: center;
}

h2 {
  display: block;
  font-size: 1.17em;
  font-weight: bold;
}

h3 {
  display: block;
  font-size: 1em;
  font-weight: bold;
}

.text {
  font-family: var(--font-family);
  margin-bottom: 1rem;
  line-height: 1.7em;
}

.text p {
  margin-bottom: 1rem;
}

.text strong {
  font-weight: 600;
}

.text em {
  font-style: italic;
  color: var(--text-midcolor);
}

.text ul {
  list-style: none;
  padding-left: 0;
}

.text ul li {
  position: relative;
  text-align: center;
}

.quote {
  font-style: italic;
  font-size: 0.95rem;
  text-align: right;
  margin-top: 1rem;
}

.text a {
  color: var(--text-color);
  font-weight: 500;
  text-decoration: underline;
}

.text a:hover {
  color: var(--accent-color);
  font-weight: 500;
  text-decoration: none;
}

.section {
  padding-top: 2rem;
}

.models {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.models div {
  flex: 1 1 30%;
  box-sizing: border-box;
}

.models img {
  width: 100%;
  height: auto;
}

.summary-content {
  align-items: center;
  display: flex;
  gap: 20px;
  justify-content: center;
  margin: 20px 0;
}

.summary-text {
  min-width: 250px;
  text-align: center;
  width: 40%;
}

.summary-image {
  display: flex;
  justify-content: center;
  width: 40%;
}

.summary-image img {
  width: 100%;
  max-width: 250px;
  min-width: 200px;
  max-height: 50%;
  display: block;
}

.host {
  align-items: center;
  display: flex;
  gap: 20px;
  justify-content: center;
  margin: 20px 0;
}


/* Responsive Design
-------------------------------------------------- */
@media (max-width: 768px) {
  .burger-menu {
    display: flex;
    flex-direction: column;
    height: 20px;
    justify-content: space-between;
    width: 30px;
    z-index: 1002;
  }
  
  .burger-menu span {
    transition: all var(--transition-cubic);
  }

  .burger-menu.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .burger-menu.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-10px);
  }

  .burger-menu.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .container {
    grid-template-areas:
      "logo"
      "mainstage"
      "footer";
    grid-template-columns: 1fr;
    padding-top: 50px;
  }

  .logo {
    align-items: center;
    background-color: var(--bg-color);
    display: flex;
    height: 50px;
    justify-content: space-between;
    margin: 0;
    padding: 0 20px;
    position: static;
    width: 100%;
  }

  .mainstage {
    width: 100%;
    padding: 0px 10px 0px 10px;
  }

  .NavBar {
    backdrop-filter: blur(10px);
    background-color: var(--bg-color);
    display: block;
    height: calc(100vh - 50px);
    left: 0;
    margin: 0;
    opacity: 0;
    padding: 20px;
    position: fixed;
    top: 50px;
    transform: translateX(-100%);
    transition: all 0.5s cubic-bezier(0.32, 0.72, 0, 1);
    width: 250px;
    z-index: 1001;
  }

  .NavBar.active {
    opacity: 1;
    transform: translateX(0);
  }

  .NavBar ul li {
    opacity: 0;
    transform: translateX(-20px);
    transition: all 0.4s cubic-bezier(0.32, 0.72, 0, 1);
  }

  .NavBar.active ul li {
    opacity: 1;
    transform: translateX(0);
  }

  .video-grid {
    flex-direction: column;
    /* gap: 20px; */
  }

  .video-grid iframe,
  .video-single iframe {
    width: 100%;
  }

  /* Gallery responsive columns */
  .gallery-container[folder="galerie"] {
    grid-template-columns: repeat(3, 1fr) !important;
  }
  
  .gallery-container[folder="polaroid"] {
    grid-template-columns: repeat(4, 1fr) !important;
  }

  .overlay {
    background: var(--text-color);
    display: block;
    height: 100%;
    left: 0;
    opacity: 0;
    position: fixed;
    top: 0;
    transition: all 0.4s cubic-bezier(0.32, 0.72, 0, 1);
    visibility: hidden;
    width: 100%;
    z-index: 1000;
  }

  .NavBar.active + .overlay {
    opacity: 0.5;
    visibility: visible;
  }

  .sidebar {
    background-color: var(--bg-color);
    display: block;
    height: auto;
    position: fixed;
    width: 100%;
    z-index: 1002;
  }

  .about {
    flex-direction: column;
  }

  .about-text {
    flex: 1;
    font-size: larger;
  }

  .about-image {
    flex: 1;
  }

  /* Override inline styles pour la page about en responsive */
  .about .text[style*="width: 40%"],
  .about .about-image[style*="width: 40%"] {
    width: 100% !important;
  }
  
  .about .text[style*="text-align: left"] {
    text-align: center !important;
  }

  .contact {
    flex-direction: column;
    margin: 20px 0;
  }

  .contact-text {
    flex: 1;
    text-align: center;
  }

  .contact-image {
    flex: 1;
  }

  /* Override inline styles pour la page contact en responsive */
  .contact .text[style*="width: 40%"],
  .contact .contact-image[style*="width: 40%"] {
    width: 100% !important;
  }
  
  .contact .text[style*="text-align: right"] {
    text-align: center !important;
  }

  /* Override styles pour la page workshop en responsive */
  .ws_page {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 0px;
  }
  
  .host img[style*="width:40%"] {
    width: 100% !important;
  }

  /* Section host en responsive - même comportement que about/contact */
  .host {
    flex-direction: column !important;
  }

}

