/* ========================================
   BASE STYLES & DEFAULTS
   ======================================== */

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-weight: 400;
  line-height: 1.6;
  color: #7f7f7f;
  background-color: #f6f6f6;
  cursor: auto;
}

/* ========================================
   TYPOGRAPHY - HEADINGS
   ======================================== */

h1 {
  font-weight: 600;
  font-size: 2rem;
  line-height: 1;
  text-align: right;
  margin-bottom: 0;
}

h2 {
  font-weight: 400;
  font-size: 1rem;
  line-height: 1;
  text-align: right;
}

/* ========================================
   LAYOUT - BIO SECTION
   ======================================== */

.bio {
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  text-align: left;
  padding-bottom: 2rem;
}

/* ========================================
   LAYOUT - PROJECT COMPONENTS
   ======================================== */

.project-placeholder {
  /* Ensure placeholders don't take up space */
  height: 0;
  margin: 0;
  padding: 0;
  opacity: 0;
  pointer-events: none;
}

/* Loading spinner */
.loading-spinner {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 3rem 0;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.loading-spinner.visible {
  opacity: 1;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid #f0f0f0;
  border-top: 3px solid #7f7f7f;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.project-visual {
  /* Visual container - no opacity handling */
}

.project-title {
  font-size: 1.2rem;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: -0.02em;
  margin: 0 !important;
  padding-top: 1rem; /* Space above project title */
}

.project-meta {
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.5;
  margin: 0 !important;
}

.project-credits {
  font-size: 0.8rem;
  font-weight: 500;
  line-height: 1.5;
  text-transform: uppercase;
  margin: 0 !important;
}

.project-credits-left {
  /* Prix et présentations */
}

.project-credits-right {
  /* Crédits de production */
}

.no-images-placeholder {
  padding: 2rem 0;
  background: #f0f0f0;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
}

.project-wrapper {
  padding-bottom: 4rem; /* Space under credits */
}

/* ========================================
   LAYOUT - GRID SYSTEM OVERRIDES
   ======================================== */

/* Override Simple Grid container width for larger screens */
.container {
  max-width: 1600px !important; /* Increase from default 960px */
}

/* Mobile breakpoint for project spacing */
@media only screen and (max-width: 540px) {
  .project-wrapper {
    padding-bottom: 3rem !important;
  }
}

/* Restore normal grid margins for columns */
.row .col-12 {
  margin: 0.5rem 2% !important;
}

/* Reduce spacing for header section */
.row:first-child .col-12 {
  margin-top: 0.1rem !important; /* Minimal top margin for header */
  margin-bottom: 0.1rem !important; /* Minimal bottom margin for header */
}

/* Remove margins for columns containing project elements */
.row .col-12 .project-title,
.row .col-12 .project-meta,
.row .col-6 .project-credits {
  margin: 0 !important; /* Remove margins only for project text elements */
}

/* ========================================
   MEDIA COMPONENTS
   ======================================== */

/* Video Styles */
.video-wrapper {
  /* Video container styles */
}

/* ========================================
   CAROUSEL COMPONENT
   ======================================== */

.carousel-container {
  position: relative;
  width: 100%;
  overflow: hidden;
  cursor: auto !important;
  background-color: #000; /* Black background for true crossfade */
}

.carousel-container::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.carousel-wrapper {
  position: relative;
  cursor: default;
}

.carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  transition: opacity 0.7s ease-in-out;
  will-change: opacity;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.carousel-slide.instant {
  transition: none !important;
}

.carousel-slide.active {
  opacity: 1;
}

.carousel-slide.leaving {
  opacity: 0;
  transition: opacity 0.7s ease-in-out;
}

.carousel-slide:not(.instant).active {
  transition: opacity 0.7s ease-in-out;
}

.carousel-slide img {
  width: 100%;
  height: auto;
  display: block;
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  -webkit-user-drag: none;
  user-drag: none;
  -webkit-touch-callout: none;
}

/* Carousel Navigation */
.carousel-click-zone {
  position: absolute;
  top: 0;
  height: 100%;
  width: 50%;
  z-index: 5;
  cursor: auto !important;
}

.carousel-container .carousel-click-zone.left {
  left: 0;
  cursor: w-resize !important;
}

.carousel-container .carousel-click-zone.right {
  right: 0;
  cursor: e-resize !important;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  padding-top: 12px !important;
  gap: 12px;
  margin-top: 5px;
  position: relative;
  z-index: 1;
  cursor: auto;
}

.carousel-dot {
  display: block;
  width: 24px;
  height: 4px;
  background-color: #ccc;
  opacity: 0.7;
  border-radius: 1px;
  cursor: pointer !important;
  transition: background-color 0.3s ease, opacity 0.3s ease;
  border: none;
  padding: 0;
  box-shadow: none;
}

.carousel-dot:hover {
  background-color: #aaa;
  opacity: 0.8;
}

.carousel-dot.active {
  background-color: #888;
  opacity: 1;
}

.carousel-arrow {
  opacity: 0 !important;
  pointer-events: none;
}

.carousel-wrapper:hover .carousel-arrow {
  opacity: 0 !important;
  cursor: default;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

/* Mobile and tablet responsive alignment */
@media only screen and (max-width: 44.99em) { /* Below 720px - Simple Grid mobile breakpoint */
  h1 {
    text-align: left;
  }
  
  h2 {
    text-align: left;
  }
  
  .bio {
    /* Removed margins for mobile */
  }
}