/* ===== Hero avec lecteur style Smartphone (9:16) ===== */
.page-hero.hero-with-video {
  max-width: 1100px;
  display: grid;
  grid-template-columns: 1fr 320px; /* Taille fixe ajustée pour le téléphone */
  gap: 50px;
  align-items: center;
}

.page-hero-text .hero-lead { 
  max-width: 460px; 
}

/* Coque du Téléphone (Ratio 9:16) */
.hero-video-frame.mockup-phone {
  position: relative;
  width: 100%;
  max-width: 300px; /* Largeur d'un smartphone */
  aspect-ratio: 9 / 16; /* Format vertical TikTok/Reels */
  margin: 0 auto;
  border-radius: 36px;
  border: 10px solid #1a1a1a; /* Bordure style smartphone */
  background: #000;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25), 
              0 0 0 1px rgba(255, 255, 255, 0.1) inset;
  overflow: hidden;
}

/* Encoche haut du téléphone (Notch) */
.phone-notch {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 110px;
  height: 18px;
  background-color: #1a1a1a;
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;
  z-index: 10;
  pointer-events: none;
}

/* Intégration de la vidéo */
.hero-video-frame.mockup-phone video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover; /* Garantit le remplissage sans déformation */
  border-radius: 26px;
  background: var(--forest-deep);
}

/* ===== Responsive Mobile Hero ===== */
@media (max-width: 900px) {
  .page-hero.hero-with-video {
    grid-template-columns: 1fr;
    gap: 35px;
    text-align: center;
  }

  .page-hero-text .hero-lead {
    margin: 0 auto;
  }

  .hero-video-frame.mockup-phone {
    max-width: 280px; /* Taille optimisée sur écran mobile */
  }
}

/* ===== Project Grid (Photos de Réalisations) ===== */
.project-grid { 
  padding: 20px 6% 90px; 
}

.projects {
  margin-top: 36px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

/* Conteneur du visuel du projet */
.project-visual {
  height: 250px;
  border-radius: 8px;
  position: relative;
  margin-bottom: 18px;
  overflow: hidden;
  background-color: #1a1a1a; /* Couleur de secours si l'image charge lentement */
}

/* Style de l'image de réalisation */
.project-img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Remplit le cadre sans déformer la photo */
  display: block;
  transition: transform 0.4s ease;
}

/* Zoom élégant sur l'image au survol */
.project:hover .project-img {
  transform: scale(1.05);
}

/* Badge de catégorie superposé sur la photo */
.project-category {
  position: absolute;
  bottom: 16px;
  left: 16px;
  background: rgba(20, 20, 15, 0.75);
  color: var(--ivory);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 6px 12px;
  border-radius: 999px;
  z-index: 2;
  backdrop-filter: blur(4px); /* Effet de flou moderne sous le badge */
}

.project h2 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--forest-deep);
  margin-bottom: 8px;
}

.project p { 
  font-size: 0.92rem; 
  color: #4a4a43; 
  max-width: 420px; 
}

/* ===== Testimonials (Carrousel) ===== */
.testimonial-band {
  background: var(--forest);
  color: var(--ivory);
  padding: 90px 6%;
  text-align: center;
  position: relative;
}

.testimonial-title {
  font-family: var(--font-display);
  font-size: 1.8rem; 
  font-weight: 600;
  color: var(--brass); /* Doré */
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.testimonial-carousel {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 850px;
  margin: 0 auto;
  position: relative;
}

.testimonial-container {
  width: 100%;
  overflow: hidden;
  position: relative;
  min-height: 180px;
}

/* Animation et affichage des slides */
.testimonial-slide {
  display: none !important;
  opacity: 0;
  width: 100%;
  transition: opacity 0.5s ease;
}

.testimonial-slide.active {
  display: block !important;
  opacity: 1 !important;
}

.testimonial-band blockquote {
  margin: 20px auto 0;
  max-width: 640px;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-style: italic;
  font-weight: 400;
  line-height: 1.45;
}

.testimonial-author {
  margin-top: 20px;
  font-size: 0.88rem;
  color: var(--brass);
  font-weight: 600;
}

.carousel-btn {
  background: none;
  border: none;
  color: var(--ivory);
  font-size: 2rem;
  cursor: pointer;
  padding: 10px 20px;
  transition: color 0.3s ease, transform 0.2s ease;
  z-index: 10;
}

.carousel-btn:hover {
  color: var(--brass);
  transform: scale(1.1);
}

/* ===== Responsive Global (Tablettes & Mobiles) ===== */
@media (max-width: 700px) {
  .projects { 
    grid-template-columns: 1fr; /* Une seule colonne sur mobile pour les cartes */
  }
}

@media (max-width: 600px) {
  .testimonial-band blockquote { 
    font-size: 1.15rem; 
  }
  .carousel-btn { 
    padding: 5px 10px; 
    font-size: 1.5rem; 
  }
}
