/* Variables CSS - Style Magazine de Mode Sombre */
:root {
  --primary-color: #ffffff;
  --secondary-color: #ff0066;
  --accent-color: #00ffff;
  --text-primary: #ffffff;
  --text-secondary: #cccccc;
  --text-light: #999999;
  --bg-primary: #000000;
  --bg-secondary: #000000;
  --bg-dark: #000000;
  --gradient-primary: linear-gradient(135deg, #ff0066 0%, #000000 100%);
  --gradient-accent: linear-gradient(45deg, #00ffff 0%, #ff0066 100%);
  --shadow-dark: 0 20px 40px rgba(0, 0, 0, 0.8);
  --shadow-neon: 0 0 20px rgba(255, 0, 102, 0.3);
  --border-radius: 0;
  --transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  --font-primary: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: "Playfair Display", serif;
}

/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: var(--font-primary);
  background: var(--bg-primary);
  color: var(--text-primary);
  overflow-x: hidden;
  line-height: 1.2;
}

/* Typographie Minimaliste */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display);
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 0.9;
}

h1 {
  font-size: clamp(4rem, 8vw, 12rem);
}
h2 {
  font-size: clamp(2rem, 5vw, 8rem);
}
h3 {
  font-size: clamp(1.5rem, 3vw, 4rem);
}

p {
  font-weight: 300;
  letter-spacing: 0.5px;
  line-height: 1.4;
  opacity: 0.8;
}

/* Navigation Minimaliste */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(20px);
  z-index: 1000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: var(--transition);
}

.nav-container {
  max-width: 1600px;
  margin: 0 auto;
  padding: 1rem 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo h1 {
  font-size: 1.5rem;
  font-weight: 300;
  letter-spacing: 2px;
  color: var(--text-primary);
  margin: 0;
}

.nav-logo span {
  display: none;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 3rem;
}

.nav-link {
  text-decoration: none;
  color: var(--text-secondary);
  font-weight: 300;
  font-size: 0.9rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: var(--transition);
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: var(--secondary-color);
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--secondary-color);
  transition: var(--transition);
}

.nav-link:hover::after {
  width: 100%;
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.bar {
  width: 20px;
  height: 1px;
  background: var(--text-primary);
  margin: 4px 0;
  transition: var(--transition);
}

/* Hero Section - Style Magazine */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-primary);
  position: relative;
  overflow: hidden;
}

.hero-content {
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-width: 1600px;
  margin: 0 auto;
}

.hero-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 3rem;
  z-index: 2;
}

.hero-title {
  margin-bottom: 2rem;
  line-height: 0.8;
}

.text-primary {
  color: var(--text-primary);
  display: block;
  margin-bottom: 0.5rem;
}

.text-gradient {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-style: italic;
}

.hero-subtitle {
  font-size: 1rem;
  margin-bottom: 3rem;
  max-width: 300px;
  opacity: 0.7;
  line-height: 1.4;
}

.hero-skills {
  display: none;
}

.hero-actions {
  display: none;
}

.hero-media {
  position: relative;
  overflow: hidden;
  height: 100%;
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(30%) contrast(1.2);
}

.hero-video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.2);
}

.scroll-indicator {
  position: absolute;
  bottom: 3rem;
  right: 3rem;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  color: var(--text-light);
  font-size: 0.8rem;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.scroll-arrow {
  display: none;
}

/* Portfolio Sections - Style Grille Magazine */
.portfolio-section {
  padding: 8rem 0;
  background: var(--bg-primary);
}

.portfolio-section:nth-child(even) {
  background: var(--bg-secondary);
}

.section-header {
  text-align: left;
  margin-bottom: 4rem;
  padding: 0 3rem;
  max-width: 1600px;
  margin-left: auto;
  margin-right: auto;
}

.section-header h2 {
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  font-weight: 300;
}

.section-header p {
  display: none;
}

/* Grille Asymétrique Style Magazine */
.portfolio-grid {
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 3rem;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: minmax(300px, auto);
  gap: 2rem;
}

/* Layouts asymétriques pour les items */
.portfolio-item:nth-child(1) {
  grid-column: span 8;
  grid-row: span 2;
}

.portfolio-item:nth-child(2) {
  grid-column: span 4;
  grid-row: span 1;
}

.portfolio-item:nth-child(3) {
  grid-column: span 4;
  grid-row: span 1;
}

.portfolio-item:nth-child(4) {
  grid-column: span 6;
  grid-row: span 2;
}

.portfolio-item:nth-child(5) {
  grid-column: span 6;
  grid-row: span 1;
}

.portfolio-item:nth-child(6) {
  grid-column: span 12;
  grid-row: span 1;
}

.portfolio-item:nth-child(7) {
  grid-column: span 4;
  grid-row: span 2;
}

.portfolio-item:nth-child(8) {
  grid-column: span 8;
  grid-row: span 1;
}

.portfolio-item {
  background: transparent;
  overflow: hidden;
  cursor: pointer;
  position: relative;
  transition: var(--transition);
}

.portfolio-item:hover {
  transform: scale(1.02);
}

.portfolio-media {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.portfolio-media img,
.portfolio-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(20%) contrast(1.1);
  transition: var(--transition);
}

.portfolio-item:hover .portfolio-media img,
.portfolio-item:hover .portfolio-media video {
  filter: grayscale(0%) contrast(1.3);
  transform: scale(1.05);
}

.portfolio-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  padding: 3rem 2rem 2rem;
  color: var(--text-primary);
  transform: translateY(100%);
  transition: var(--transition);
}

.portfolio-item:hover .portfolio-content {
  transform: translateY(0);
}

.portfolio-content h3 {
  font-size: 1.5rem;
  font-weight: 300;
  margin-bottom: 0.5rem;
  letter-spacing: -0.5px;
}

.portfolio-content p {
  font-size: 0.9rem;
  opacity: 0.8;
  display: none; /* Cacher la description dans ce style */
}

.portfolio-overlay {
  display: none;
}

/* Modal Style Sombre */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(10px);
}

.modal-content {
  position: relative;
  margin: 0;
  width: 100vw;
  height: 100vh;
  background: var(--bg-primary);
  display: flex;
  animation: modalSlideIn 0.4s ease-out;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.modal-close {
  position: absolute;
  top: 2rem;
  right: 2rem;
  color: var(--text-primary);
  font-size: 2rem;
  cursor: pointer;
  z-index: 2001;
  transition: var(--transition);
  background: none;
  border: none;
  width: auto;
  height: auto;
}

.modal-close:hover {
  color: var(--secondary-color);
}

.modal-body {
  display: grid;
  grid-template-columns: 1fr 400px;
  width: 100%;
  height: 100%;
  max-height: 100vh;
  overflow: hidden;
}

.modal-media {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-primary);
  padding: 4rem;
  height: 100vh;
  max-height: 100vh;
  overflow: hidden;
}

.modal-media img,
.modal-media video {
  max-width: 100%;
  max-height: calc(100vh - 8rem);
  object-fit: contain;
  width: auto;
  height: auto;
}

.modal-info {
  background: var(--bg-secondary);
  padding: 4rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  height: 100vh;
  max-height: 100vh;
  overflow-y: auto;
}

.modal-title {
  font-size: 2rem;
  font-weight: 300;
  margin-bottom: 2rem;
  color: var(--text-primary);
  line-height: 1.2;
}

.modal-description {
  color: var(--text-secondary);
  line-height: 1.6;
  font-size: 1rem;
}

/* Styles du Carrousel */
.carousel-container {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-slides {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transform: translateX(20px);
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-slide.active {
  opacity: 1;
  transform: translateX(0);
}

.carousel-slide img,
.carousel-slide video {
  max-width: 100%;
  max-height: calc(100vh - 8rem);
  object-fit: contain;
  width: auto;
  height: auto;
}

/* Boutons de navigation */
.carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.7);
  color: var(--text-primary);
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 10;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
}

.carousel-nav:hover {
  background: rgba(255, 0, 102, 0.8);
  transform: translateY(-50%) scale(1.1);
}

.carousel-prev {
  left: 2rem;
}

.carousel-next {
  right: 2rem;
}

/* Indicateurs */
.carousel-indicators {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  z-index: 10;
}

.carousel-indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: var(--transition);
}

.carousel-indicator.active {
  background: var(--secondary-color);
  transform: scale(1.2);
}

.carousel-indicator:hover {
  background: rgba(255, 255, 255, 0.7);
}

/* Contact Section - Style Minimal */
.contact-section {
  background: var(--bg-primary);
  padding: 8rem 3rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-content {
  max-width: 1600px;
  margin: 0 auto;
  text-align: left;
}

.contact-content h2 {
  font-size: 4rem;
  font-weight: 300;
  margin-bottom: 2rem;
  color: var(--text-primary);
}

.contact-content p {
  display: none;
}

.contact-info {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4rem;
  margin-bottom: 4rem;
}

.contact-item h3 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-light);
  margin-bottom: 1rem;
  font-weight: 300;
}

.contact-item a,
.contact-item span {
  color: var(--text-primary);
  text-decoration: none;
  font-size: 1.2rem;
  font-weight: 300;
  transition: var(--transition);
}

.contact-item a:hover {
  color: var(--secondary-color);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  text-align: center;
}

.footer-bottom p {
  color: var(--text-light);
  font-size: 0.8rem;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* Animation pulse pour l'icône play */
@keyframes pulse-play {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.8;
  }
}

/* Responsive Design */
@media (min-width: 1201px) {
  .modal-media {
    padding: 6rem;
  }

  .modal-media img,
  .modal-media video {
    max-height: calc(100vh - 12rem);
  }

  .modal-info {
    padding: 6rem;
  }
}

@media (max-width: 1200px) {
  .portfolio-grid {
    grid-template-columns: repeat(8, 1fr);
  }

  .portfolio-item:nth-child(1) {
    grid-column: span 8;
  }
  .portfolio-item:nth-child(2) {
    grid-column: span 4;
  }
  .portfolio-item:nth-child(3) {
    grid-column: span 4;
  }
  .portfolio-item:nth-child(4) {
    grid-column: span 8;
  }
  .portfolio-item:nth-child(5) {
    grid-column: span 4;
  }
  .portfolio-item:nth-child(6) {
    grid-column: span 4;
  }
  .portfolio-item:nth-child(7) {
    grid-column: span 8;
  }
  .portfolio-item:nth-child(8) {
    grid-column: span 4;
  }
}

@media (max-width: 768px) {
  /* Indicateur visuel pour les éléments vidéo-seulement sur mobile */
  .portfolio-media.video-only {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.9) 0%, rgba(26, 26, 26, 0.95) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    min-height: 60vh;
  }

  .portfolio-media.video-only::before {
    content: "";
    position: absolute;
    width: 80px;
    height: 80px;
    background: rgba(255, 0, 102, 0.15);
    border: 2px solid rgba(255, 0, 102, 0.6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    z-index: 1;
    animation: pulse-play 2s ease-in-out infinite;
  }

  .portfolio-media.video-only::after {
    content: "";
    position: absolute;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 15px 0 15px 25px;
    border-color: transparent transparent transparent rgba(255, 0, 102, 0.9);
    margin-left: 5px;
    z-index: 2;
  }

  .portfolio-media.video-only video {
    opacity: 0.15;
  }

  /* Afficher le titre en permanence pour les éléments vidéo-seulement */
  .portfolio-content.video-only-content {
    transform: translateY(0) !important;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.95));
    padding: 4rem 2rem 2rem;
  }

  .portfolio-content.video-only-content h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
  }

  .portfolio-content.video-only-content p {
    display: block !important;
    opacity: 0.9;
    line-height: 1.5;
  }

  .nav-container {
    padding: 1rem 2rem;
  }

  .nav-menu {
    position: fixed;
    left: -100%;
    top: 60px;
    flex-direction: column;
    background: rgba(0, 0, 0, 0.95);
    width: 100%;
    text-align: center;
    transition: 0.3s;
    padding: 2rem 0;
    gap: 2rem;
    backdrop-filter: blur(20px);
  }

  .nav-menu.active {
    left: 0;
  }

  .hamburger {
    display: flex;
  }

  .hero-content {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr 1fr;
  }

  .hero-text {
    padding: 2rem;
    order: 2;
  }

  .hero-media {
    order: 1;
  }

  .portfolio-grid {
    grid-template-columns: 1fr;
    padding: 0 2rem;
    gap: 3rem;
  }

  .portfolio-item {
    grid-column: 1 !important;
    grid-row: span 1 !important;
    min-height: 60vh;
  }

  .modal-body {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr auto;
  }

  .modal-info {
    padding: 2rem;
    max-height: 40vh;
    overflow-y: auto;
  }

  /* Carrousel responsive */
  .carousel-slide img,
  .carousel-slide video {
    max-height: calc(60vh - 4rem);
  }

  .carousel-nav {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }

  .carousel-prev {
    left: 1rem;
  }

  .carousel-next {
    right: 1rem;
  }

  .carousel-indicators {
    bottom: 1rem;
  }

  .carousel-indicator {
    width: 10px;
    height: 10px;
  }

  .contact-info {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .section-header,
  .contact-content {
    padding: 0 2rem;
  }

  .portfolio-section {
    padding: 4rem 0;
  }
}

/* Effets de curseur personnalisés */
.portfolio-item {
  cursor: pointer;
}

.portfolio-item:hover {
  cursor: pointer;
}

/* Animation d'apparition */
.fade-in {
  opacity: 0;
  transform: translateY(60px);
  transition: all 0.8s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Suppression des animations pour l'accessibilité */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Styles pour les vidéos */
video {
  outline: none;
}

/* Masquer les éléments non nécessaires dans ce style */
.btn,
.skill-tag,
.hero-actions,
.hero-skills {
  display: none !important;
}

/* Styles spécifiques pour la section Motion Design */
#motion-design-grid .portfolio-item {
  border: 2px solid var(--text-light);
  background: var(--bg-secondary);
}

/* Styles spécifiques pour l'inauguration mediumRARE dans Events */
.inauguration-medium-rare {
  border: 2px solid var(--text-light) !important;
  background: var(--bg-secondary) !important;
}

/* Styles pour sections fines - aspect plus carré (Desktop uniquement) */
@media (min-width: 769px) {
  #graphisme-grid .portfolio-item {
    min-height: 400px;
  }

  /* Améliorer l'aspect des sections avec peu d'éléments */
  #graphisme-grid .portfolio-item:nth-child(n) {
    grid-column: span 6 !important;
    grid-row: span 2 !important;
  }

  /* Pour les sections avec un seul élément, le rendre plus large */
  #graphisme-grid .portfolio-item:only-child {
    grid-column: span 8 !important;
    grid-row: span 2 !important;
  }
}
