/* Global Styles */
body {
  margin: 0;
  font-family: Helvetica, Arial, sans-serif;
  padding: 20px;
  background-color: #fff;
  color: #000;
  cursor: crosshair;
}

/* Links get pointer cursor */
a,
.navbar-left a,
.navbar-right a,
.hero-link,
.cta-button,
.highlight-item,
.info-icon,
.project-item.has-video a,
.video-modal a {
  cursor: pointer;
}

h1 {
  color: #000;
  text-align: left;
  padding-left: 15px;
  margin-bottom: 25px;
  font-size: 1.2em;
}

/* Réalisations page specific h1 styling */
body.realisations-page h1 {
  color: #333;
  text-transform: uppercase;
  text-align: center;
  padding-left: 0;
  margin-bottom: 20px;
}

/* Projects List Styles */
.projects-list {
  list-style: none;
  padding: 0;
  margin: 0 -20px;
}

.project-item {
  margin-bottom: 0;
  position: relative;
  overflow: visible;
  height: 200px;
  background-color: #fff;
  border-bottom: 1px solid #e0e0e0;
}

.project-item.has-video {
  cursor: pointer;
  background-color: #000;
}

.project-item.has-video::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0);
  transition: background-color 0.3s ease;
  z-index: 5;
  pointer-events: none;
}

.project-item.has-video:hover::before {
  background-color: rgba(0, 0, 0, 0.5);
}

.project-left {
  position: absolute;
  bottom: 30px;
  left: 40px;
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.project-item:not(.has-video) .project-left .title-text {
  color: #000;
  text-shadow: none;
}

.project-item:not(.has-video) .project-left .project-subtitle {
  color: #666;
  text-shadow: none;
}

.project-right {
  position: absolute;
  top: 30px;
  right: 40px;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.project-item:not(.has-video) .project-right .project-date {
  color: #000;
  text-shadow: none;
}

.video-preview {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #000;
  overflow: hidden;
  transition: opacity 0.3s ease;
  z-index: 1;
}

.video-preview iframe,
.video-preview video {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100vw;
  height: 56.25vw;
  min-height: 100%;
  min-width: 177.77vh;
  transform: translate(-50%, -50%);
  pointer-events: none;
  filter: blur(3px);
  object-fit: cover;
}

.video-preview::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(to top, rgba(0,0,0,1), transparent);
  pointer-events: none;
}

.title-text {
  font-size: 1.8em;
  font-weight: bold;
  text-transform: uppercase;
  color: #fff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  line-height: 1.2;
}

.info-icon {
  cursor: pointer;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #000;
  position: relative;
}

.info-icon:hover {
  color: #666;
}

/* Make info icon white for projects with videos */
.project-item.has-video .info-icon {
  color: #fff;
}

.project-item.has-video .info-icon:hover {
  color: #666;
}

.info-icon svg {
  width: 28px;
  height: 28px;
}

.info-tooltip {
  position: absolute;
  bottom: 100%;
  right: 0;
  margin-bottom: 10px;
  padding: 10px 15px;
  background-color: #000;
  color: #fff;
  border-radius: 5px;
  white-space: pre-line;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
  font-size: 0.9em;
  z-index: 2001;
  text-align: left;
  min-width: 300px;
  max-width: 400px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.info-icon:hover .info-tooltip {
  opacity: 1;
}

.project-subtitle {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.95em;
  text-transform: uppercase;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.project-date {
  color: #fff;
  font-size: 1.1em;
  font-weight: 600;
  white-space: nowrap;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

/* Video Popup Modal */
.video-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  z-index: 2000;
  align-items: center;
  justify-content: center;
}

.video-modal.active {
  display: flex;
}

.video-modal-content {
  position: relative;
  width: 90%;
  max-width: 1400px;
  aspect-ratio: 16 / 9;
  max-height: 90vh;
  background-color: #000;
  box-shadow: 0 10px 60px rgba(0, 0, 0, 0.5), 0 4px 20px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.video-modal iframe,
.video-modal video {
  width: 100%;
  height: 100%;
}

.video-modal-close {
  position: absolute;
  top: -40px;
  right: 0;
  color: #000;
  font-size: 30px;
  cursor: pointer;
  background: #fff;
  border: none;
  padding: 0;
  width: 30px;
  height: 30px;
  line-height: 30px;
  border-radius: 50%;
}

.video-modal-close:hover {
  color: #666;
}

/* About Page Styles */
.about-content {
  display: flex;
  gap: 60px;
  margin: 60px auto;
  align-items: center;
  justify-content: center;
  max-width: 1200px;
  flex-wrap: wrap;
}

.about-text-container {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  min-width: 500px;
  max-width: 900px;
}

.about-text-column {
  display: flex;
  flex-direction: column;
}

.about-intro {
  color: #000;
  line-height: 1.5em;
  margin: 0;
  text-align: justify;
  font-size: 1.1em;
  font-weight: 300;
}

.about-image-container {
  flex-shrink: 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.about-image {
  width: 320px;
  height: auto;
}

.about-intro strong,
.about-intro em {
  font-weight: 600;
  color: #333;
}

/* Professional Sections */
.professional-container {
  max-width: 1200px;
  margin: 80px auto 60px;
  padding: 0 20px;
  text-align: center;
}

.professional-section {
  margin-bottom: 50px;
  border-bottom: 1px solid #e0e0e0;
  padding-bottom: 40px;
}

.professional-section:last-child {
  border-bottom: none;
  margin-bottom: 30px;
}

.section-title {
  color: #333;
  font-size: 1.5em;
  font-weight: 600;
  margin-bottom: 25px;
  text-transform: uppercase;
  text-align: center;
}

.section-content {
  color: #333;
  line-height: 1.7;
  text-align: center;
}

.section-content p {
  margin: 0 0 20px 0;
  font-size: 1.05em;
  text-align: center;
}

.section-content strong {
  color: #000;
  font-weight: 600;
}

.section-content em {
  color: #333;
  font-style: italic;
}

/* Lists */
.experience-list,
.education-list,
.awards-list {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: center;
}

.experience-list li,
.education-list li,
.awards-list li {
  margin-bottom: 15px;
  padding-left: 0;
  position: relative;
  line-height: 1.6;
  font-size: 1.05em;
  text-align: center;
}

.experience-list li:before,
.education-list li:before,
.awards-list li:before {
  content: "";
}

/* Festivals Grid */
.festivals-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 0;
}

.festivals-grid span {
  background: #f5f5f5;
  padding: 10px 15px;
  border-radius: 6px;
  font-size: 0.95em;
  color: #333;
  text-align: center;
  transition: background-color 0.3s ease;
  border: 1px solid #e0e0e0;
}

.festivals-grid span:hover {
  background: #f0f0f0;
  color: #000;
  border-color: #333;
}

/* Contact Info */
.contact-info {
  font-size: 1.2em;
  margin: 0;
  text-align: center;
}

.contact-info strong {
  color: #333;
}

/* Homepage Styles */
/* Hero Section */
body.homepage {
  overflow: hidden;
  height: 100vh;
}

.hero-section {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 -20px;
  padding: 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-video-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
  background-color: #000;
}

.hero-video-background video {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100vw;
  height: 56.25vw;
  min-height: 100vh;
  min-width: 177.78vh;
  transform: translate(-50%, -50%);
  pointer-events: none;
  filter: blur(3px);
  object-fit: cover;
}

.hero-video-background::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.3);
  pointer-events: none;
  z-index: 1;
}

.hero-content {
  max-width: 1200px;
  z-index: 2;
  width: 100%;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  position: relative;
  gap: 30px;
  flex-wrap: wrap;
  margin-top: -40px;
}

.hero-text {
  font-size: 1em;
  font-weight: 400;
  color: #fff;
  text-transform: uppercase;
  margin: 0;
  white-space: nowrap;
}

.hero-text-separator {
  font-size: 3em;
  font-weight: 300;
  color: #fff;
  margin: 0;
}

.hero-link {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.hero-link:hover {
  opacity: 0.5;
}

.hero-arrow {
  width: 28px;
  height: 28px;
  color: #fff;
  flex-shrink: 0;
}

/* Highlights Section */
.highlights-section {
  padding: 80px 20px;
  background-color: #f5f5f5;
}

.highlights-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
}

.highlight-item {
  text-align: center;
  padding: 30px 20px;
  background: #fff;
  border-radius: 12px;
  transition: transform 0.3s ease;
  border: 1px solid #e0e0e0;
}

.highlight-item:hover {
  transform: translateY(-5px);
  background: #f0f0f0;
  border-color: #333;
}

.highlight-number {
  font-size: 3.5em;
  font-weight: 700;
  color: #333;
  margin-bottom: 10px;
  display: block;
}

.highlight-text {
  font-size: 1.1em;
  color: #000;
  font-weight: 500;
  text-transform: uppercase;
}

/* CTA Section */
.cta-section {
  padding: 80px 20px;
  background-color: #fff;
  text-align: center;
}

.cta-content {
  max-width: 600px;
  margin: 0 auto;
}

.cta-content h3 {
  font-size: 2.2em;
  font-weight: 600;
  color: #000;
  margin-bottom: 20px;
}

.cta-content p {
  font-size: 1.2em;
  color: #333;
  line-height: 1.7;
  margin-bottom: 40px;
}

.cta-button {
  display: inline-block;
  background-color: #000;
  color: #fff;
  padding: 18px 40px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.2em;
  text-transform: uppercase;
  transition: all 0.3s ease;
}

.cta-button:hover {
  background-color: #333;
}

/* Responsive Design - Mobile */
@media (max-width: 768px) {
  body {
    padding: 10px;
  }

  .title-text {
    font-size: 1.1em;
  }

  .project-item {
    margin-bottom: 0;
    height: 250px;
  }

  .project-left {
    bottom: 20px;
    left: 20px;
  }

  .project-right {
    top: 20px;
    right: 20px;
  }

  .title-text {
    font-size: 1.3em;
  }

  .project-date {
    font-size: 0.95em;
  }

  .title-text {
    flex: 1;
    line-height: 1.2;
  }

  .info-icon {
    flex-shrink: 0;
    align-self: flex-start;
    margin-top: 2px;
  }

  .project-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
  }


  .info-icon {
    width: 24px;
    height: 24px;
  }

  .info-icon svg {
    width: 24px;
    height: 24px;
  }

  .info-tooltip {
    font-size: 0.8em;
    padding: 8px 12px;
    min-width: 120px;
    right: auto;
    left: 0;
  }

  .video-modal-content {
    width: 95%;
    max-width: none;
  }

  .video-modal-close {
    top: -35px;
    font-size: 24px;
    width: 24px;
    height: 24px;
  }

  .about-content {
    flex-direction: column;
    gap: 40px;
    margin: 40px auto;
  }

  .about-text-container {
    grid-template-columns: 1fr;
    gap: 30px;
    min-width: unset;
    padding: 0 15px;
  }

  .about-intro {
    font-size: 1em;
    text-align: left;
    padding: 0 5px;
  }

  .about-image {
    width: 100%;
    max-width: 280px;
  }

  /* Professional sections mobile styles */
  .professional-container {
    margin: 50px auto 40px;
    padding: 0 10px;
  }

  .professional-section {
    margin-bottom: 40px;
    padding-bottom: 30px;
  }

  .section-title {
    font-size: 1.4em;
    margin-bottom: 20px;
  }

  .section-content p {
    font-size: 1em;
  }

  .experience-list li,
  .education-list li,
  .awards-list li {
    font-size: 1em;
    padding-left: 15px;
  }

  .festivals-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .festivals-grid span {
    padding: 8px 12px;
    font-size: 0.9em;
  }

  /* Homepage mobile styles */
  /* Override body padding for hero section */
  body.homepage {
    overflow: hidden;
    height: 100vh;
    padding: 0;
  }

  .hero-section {
    height: 100vh;
    margin: 0 -10px;
    padding: 0;
  }

  .hero-content {
    padding: 0 20px;
    gap: 15px;
    margin-top: -30px;
  }

  .hero-text {
    font-size: 1.5em;
  }

  .hero-text-separator {
    font-size: 1.5em;
  }

  .hero-arrow {
    width: 20px;
    height: 20px;
  }

  .highlights-section {
    padding: 60px 20px;
  }

  .highlights-container {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
  }

  .highlight-item {
    padding: 25px 15px;
  }

  .highlight-number {
    font-size: 2.8em;
  }

  .highlight-text {
    font-size: 1em;
  }

  .cta-section {
    padding: 60px 20px;
  }

  .cta-content h3 {
    font-size: 1.8em;
  }

  .cta-content p {
    font-size: 1.1em;
  }

  .cta-button {
    padding: 15px 30px;
    font-size: 1.1em;
  }
}

@media (max-width: 480px) {
  body {
    padding: 8px;
  }

  h1 {
    font-size: 1.5em;
  }

  .title-text {
    font-size: 0.95em;
    line-height: 1.3;
  }

  .project-subtitle {
    font-size: 0.85em;
  }

  .project-date {
    font-size: 0.85em;
  }

  .video-modal-content {
    width: 98%;
  }
}
