/* ============================================
   STYLES SPÉCIFIQUES À INDEX.HTML
   ============================================ */

/* ============================================
   CARROUSEL CLIENTS (Marques)
   ============================================ */
.marques-images {
  cursor: pointer;
  position: relative;
  width: fit-content;
  min-width: 100%;
  height: 88vh;
  margin: 6vh 0;
  border-radius: 24px;
  /* Container pour le scroll horizontal */
  display: flex;
  flex-direction: row;
  will-change: transform;
  /* Centrer la première image initialement */
  justify-content: flex-start;
}

.marques-images .img-cover {
  position: static !important; /* Forcer static au lieu de absolute */
  flex-shrink: 0;
  width: 88vw;
  height: 88vh;
  margin-right: 2vw;
  object-fit: cover;
  border-radius: 24px;
}

.marques-images .img-cover:last-child {
  margin-right: 0;
}

.section-marques {
  background-color: #ffffff !important;
  overflow: hidden; /* Masquer les images qui dépassent */
}

.section-sticky {
  overflow: hidden; /* Masquer les images qui dépassent */
}

/* ============================================
   SECTION NOS AGENCES
   ============================================ */
.section-nos-agences {
  padding: 100px 0 120px;
  position: relative;
  overflow: visible;
  z-index: 1;
}

.section-nos-agences .container-large {
  position: relative;
  z-index: 1;
}

.agences-title {
  font-family: 'Nohemi semi bold', 'Nohemi', Arial, sans-serif !important;
  font-size: clamp(60px, 12vw, 220px);
  font-weight: 500;
  color: #ffffff;
  text-align: center;
  margin-bottom: 100px;
  line-height: 1;
  letter-spacing: -0.02em;
}

.agences-title .s-letter {
  display: inline-block;
  overflow: hidden;
  vertical-align: middle;
}

.agences-title .s-icon {
  display: inline-block;
  width: 0.65em;
  height: 0.65em;
  vertical-align: baseline;
  margin: 0 0.01em;
}

.agences-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 64px;
  max-width: 1200px;
  margin: 0 auto;
  perspective: 1000px;
}

/* Carte agence - effet glassmorphism */
.agence-card {
  position: relative;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  padding: 100px 50px;
  min-height: 480px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.agence-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.agence-card.surf {
  cursor: default;
}

.agence-card.surf:hover {
  transform: none;
  box-shadow: none;
}

.agence-card.surf .agence-card-arrow {
  display: none;
}

/* Bouton flèche en haut à droite */
.agence-card-arrow {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease, transform 0.3s ease;
  text-decoration: none;
  z-index: 2;
}

.agence-card:hover .agence-card-arrow {
  background: rgba(255, 255, 255, 0.2);
  transform: translate(4px, -4px);
}

.agence-card-arrow svg {
  width: 16px;
  height: 16px;
  stroke: #ffffff;
  stroke-width: 2;
  fill: none;
}

.agence-card-arrow .arrow-icon {
  width: 16px;
  height: 12px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

/* Logo de l'agence */
.agence-logo {
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
}

.agence-logo img {
  height: auto;
  width: 210px;
  object-fit: contain;
}

.agence-card.surf .agence-logo img {
  height: 60px;
  filter: brightness(0) invert(1);
}

/* Titre de l'agence */
.agence-titre {
  font-family: 'Nohemi', 'Montserrat', sans-serif;
  font-size: 24px;
  font-weight: 500;
  color: #ffffff;
  margin-bottom: 12px;
  line-height: 1.3;
  position: relative;
  z-index: 1;
}

/* Baseline colorée */
.agence-baseline {
  font-size: 16px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}

.agence-baseline.surf-color {
  color: #ff6077;
}

.agence-baseline.blue {
  color: #0d80f6;
}

.agence-baseline.red {
  color: #ff4239;
}

/* Description */
.agence-description {
  font-size: 18px;
  line-height: 1.7;
  color: #ffffff;
  margin-top: auto;
  position: relative;
  z-index: 1;
}

/* Dégradé en ::before */
.agence-card::before {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 100%;
  height: 100%;
  border-radius: 24px;
  pointer-events: none;
  z-index: 0;
  transition: opacity 0.3s ease;
}

.agence-card.surf::before {
  background: radial-gradient(circle at bottom right, rgba(255, 96, 119, 0.6) 0%, rgba(255, 96, 119, 0.3) 25%, transparent 50%);
}

.agence-card.um::before {
  background: radial-gradient(circle at bottom right, rgba(13, 128, 246, 0.6) 0%, rgba(13, 128, 246, 0.3) 25%, transparent 50%);
}

.agence-card.pulp::before {
  background: radial-gradient(circle at bottom right, rgba(255, 66, 57, 0.6) 0%, rgba(255, 66, 57, 0.3) 25%, transparent 50%);
}

.agence-card.surf:hover::before {
  background: radial-gradient(circle at bottom right, rgba(255, 96, 119, 0.8) 0%, rgba(255, 96, 119, 0.5) 25%, transparent 50%);
}

.agence-card.um:hover::before {
  background: radial-gradient(circle at bottom right, rgba(13, 128, 246, 0.8) 0%, rgba(13, 128, 246, 0.5) 25%, transparent 50%);
}

.agence-card.pulp:hover::before {
  background: radial-gradient(circle at bottom right, rgba(255, 66, 57, 0.8) 0%, rgba(255, 66, 57, 0.5) 25%, transparent 50%);
}

/* ============================================
   FIX Z-INDEX FOOTER CONTACT
   ============================================ */
.footer-contact .div-block-17 {
  position: relative;
  z-index: 2;
}

.footer-contact .div-block-45 {
  z-index: 1;
  pointer-events: none;
}

/* Styles réseaux sociaux dans common-styles.css (global) */

/* ============================================
   RESPONSIVE
   ============================================ */
@media screen and (max-width: 991px) {
  .section-nos-agences {
    padding: 80px 20px;
  }

  .agences-title {
    font-size: clamp(40px, 10vw, 80px);
    margin-bottom: 40px;
  }

  .agences-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    max-width: 500px;
  }

  .agence-card {
    min-height: 320px;
    padding: 32px 24px;
  }

  .text-80.text-semi-bold {
    font-size: clamp(40px, 10vw, 80px);
  }

  /* Mobile - Carrousel marques */
  .sky-scroller {
    height: 100vh !important;
    min-height: 100vh !important;
  }

  .layer {
    height: 100vh !important;
    min-height: 100vh !important;
  }

  .section-sticky {
    height: 100vh !important;
    min-height: 100vh !important;
  }

  .section-marques {
    display: flex !important;
    flex-direction: column !important;
    min-height: 100vh !important;
    height: 100vh !important;
    overflow: visible !important;
  }

  .marques-images {
    position: relative !important;
    width: fit-content !important;
    min-width: 100% !important;
    height: 88vh !important;
    min-height: 88vh !important;
    max-height: 88vh !important;
    margin: 6vh 0 !important;
    order: 1;
    overflow: visible !important;
    flex-shrink: 0 !important;
    border-radius: 20px !important;
    display: flex !important; /* Garder flex pour le scroll horizontal */
    flex-direction: row !important;
  }

  .marques-images .img-cover {
    position: static !important; /* Garder static pour le flex horizontal */
    top: auto;
    left: auto;
    width: 88vw;
    height: 88vh;
    margin-right: 2vw;
    object-fit: cover;
    border-radius: 20px !important;
    transition: none;
  }

  .section-sticky {
    display: flex;
    flex-direction: column;
    min-height: auto !important;
  }

  .scrolltrigger-sec[data-pinned] {
    position: relative !important;
  }

  /* Section savoir-faire mobile */
  .bloc-texte-savoir-faire {
    width: 90% !important;
    padding: 2rem 1.5rem !important;
  }

  .titre-content {
    font-size: 1.75rem !important;
    line-height: 1.3 !important;
  }

  .texte-content {
    font-size: 1rem !important;
    line-height: 1.6 !important;
    padding-top: 1.5rem !important;
    padding-bottom: 1.5rem !important;
  }

  .titre-savoir-faire.anim-text-1 {
    font-size: 8vw !important;
    margin-bottom: 2rem !important;
    padding-top: 2rem !important;
  }

  .card-1 {
    width: 85vw !important;
    max-width: 400px !important;
    padding: 2rem 1.5rem !important;
    min-height: auto !important;
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
  }

  .titre-card {
    font-size: 2rem !important;
    line-height: 1.2 !important;
    margin-bottom: 1rem !important;
  }

  .text-card {
    font-size: 1.1rem !important;
    line-height: 1.5 !important;
    margin-bottom: 1rem !important;
  }

  .text-card-plus {
    font-size: 0.95rem !important;
    line-height: 1.6 !important;
    margin-top: 1rem !important;
  }

  .etiquette {
    font-size: 0.875rem !important;
    padding: 0.5rem 1rem !important;
    margin-bottom: 0.25rem !important;
  }

  .h-c-sticky:hover {
    margin: 0 !important;
  }

  .h-c-sticky:hover .text-card,
  .h-c-sticky:hover .card-etiquette {
    display: block !important;
  }

  .h-c-sticky .text-card {
    display: block !important;
  }

  .h-c-sticky .text-card-plus {
    display: none !important;
  }

  .h-c-sticky .card-etiquette {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 0.5rem !important;
    margin-top: 1rem !important;
  }

  .h-c-sticky.flipped {
    margin: -2rem 0 0 0 !important;
    transition: all 400ms;
  }

  .h-c-sticky.flipped .text-card {
    display: none !important;
  }

  .h-c-sticky.flipped .card-etiquette {
    display: none !important;
  }

  .h-c-sticky.flipped .text-card-plus {
    display: block !important;
  }

  .btn-flip-card {
    display: block !important;
  }

  .card-1 {
    height: auto !important;
    min-height: 400px !important;
  }

  .h-scroll-wrapper {
    gap: 1.5rem !important;
  }

  .section-card-scroll-x {
    padding: 2rem 0 !important;
    min-height: auto !important;
    background-size: auto !important;
  }
}

@media screen and (max-width: 479px) {
  .section-nos-agences {
    padding: 60px 16px;
  }

  .agences-title {
    font-size: 14vw;
    margin-bottom: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .agence-card {
    min-height: 300px;
    padding: 28px 20px;
    border-radius: 20px;
  }

  .agence-titre {
    font-size: 20px;
  }

  .agence-description {
    font-size: 15px;
  }

  .text-80.text-semi-bold {
    font-size: 9vw;
  }

  /* Mobile petit écran - Carrousel */
  .marques-images {
    width: 94% !important;
    height: 90vh !important;
    min-height: 90vh !important;
    max-height: 90vh !important;
    margin: 8vh auto !important;
    border-radius: 16px !important;
  }

  .marques-images .img-cover {
    border-radius: 16px !important;
  }

  .marques-txt.active {
    font-size: 0.875rem !important;
    padding: 0.4rem 1rem;
  }

  /* Section savoir-faire très petit écran */
  .bloc-texte-savoir-faire {
    width: 95% !important;
    padding: 1.5rem 1rem !important;
  }

  .titre-content {
    font-size: 1.5rem !important;
  }

  .texte-content {
    font-size: 0.9375rem !important;
    padding-top: 1rem !important;
    padding-bottom: 1rem !important;
  }

  .titre-savoir-faire.anim-text-1 {
    font-size: 17vw !important;
    margin-bottom: 1.5rem !important;
    padding-top: 1.5rem !important;
  }

  .card-1 {
    width: 90vw !important;
    max-width: 350px !important;
    padding: 1.5rem 1.25rem !important;
    height: auto !important;
    min-height: 400px !important;
  }

  .titre-card {
    font-size: 1.5rem !important;
    margin-bottom: 0.75rem !important;
  }

  .text-card {
    font-size: 0.9375rem !important;
    margin-bottom: 0.75rem !important;
    display: block !important;
  }

  .text-card-plus {
    font-size: 1.1rem !important;
    margin-top: 0.75rem !important;
    margin-bottom: 0.75rem !important;
    display: block !important;
    line-height: 1.5 !important;
  }

  .etiquette {
    font-size: 0.75rem !important;
    padding: 0.35rem 0.75rem !important;
  }

  .card-etiquette {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 0.4rem !important;
    margin-top: 0.75rem !important;
  }

  .h-scroll-wrapper {
    gap: 1rem !important;
  }

  .h-c-sticky .text-card {
    display: block !important;
  }

  .h-c-sticky .text-card-plus {
    display: none !important;
  }

  .h-c-sticky .card-etiquette {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 0.4rem !important;
    margin-top: 0.75rem !important;
  }

  .h-c-sticky.flipped {
    margin: -2rem 0 0 0 !important;
    transition: all 400ms;
  }

  .h-c-sticky.flipped .text-card {
    display: none !important;
  }

  .h-c-sticky.flipped .card-etiquette {
    display: none !important;
  }

  .h-c-sticky.flipped .text-card-plus {
    display: block !important;
  }

  .btn-flip-card {
    display: block !important;
  }

  .section-hero,
  .sectopn-hero-wrapper {
    min-height: 100dvh;
  }
}
