/* ============================================================
   Carrousel scroll-driven (pages services)
   Chaque page définit --carousel-accent sur <body class="page-XX">
   ============================================================ */

.custom-carousel-wrapper-scroll {
  position: relative;
  width: 100%;
  overflow-x: clip;
}
.custom-carousel-wrapper-scroll .carousel {
  height: 100vh;
  width: 100%;
  position: sticky;
  top: 0;
  overflow: hidden;
  background-color: #000;
  color: #eee;
}
.carousel .list .item {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}
.carousel .list .item.active {
  opacity: 1;
  pointer-events: auto;
}
.carousel .list .item .image-container {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}
.carousel .list .item .image-container video,
.carousel .list .item .image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.carousel .list .item .content {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  background: linear-gradient(rgba(0,0,0,0.2), rgba(0,0,0,0.7));
  padding: 5%;
  box-sizing: border-box;
  color: #fff;
}
.carousel .list .item .content > div {
  transform: translateY(50px);
  filter: blur(20px);
  opacity: 0;
  transition: transform 0.5s ease, opacity 0.5s ease, filter 0.5s ease;
}
.carousel .list .item.active .content > div {
  transform: translateY(0);
  filter: blur(0);
  opacity: 1;
}
.carousel .list .item.active .content .author        { transition-delay: 0.1s; }
.carousel .list .item.active .content .title         { transition-delay: 0.2s; }
.carousel .list .item.active .content .topic         { transition-delay: 0.3s; }
.carousel .list .item.active .content .des           { transition-delay: 0.4s; }
.carousel .list .item.active .content .upcoming-topics { transition-delay: 0.5s; }
.carousel .list .item.active .content .buttons       { transition-delay: 0.6s; }

.carousel .list .item .author {
  font-weight: bold;
  letter-spacing: 10px;
  font-size: 12px;
  color: #FFD600;
}
.carousel .list .item .topic {
  color: var(--carousel-accent, #FF8800);
  font-size: 2vw;
  font-weight: bold;
  line-height: 1.3em;
}
.carousel .list .item .title {
  font-size: 4vw;
  font-weight: bold;
  line-height: 1.3em;
  margin: 10px 0;
}
.carousel .list .item .des {
  font-size: 16px;
  margin-top: 15px;
  max-width: 600px;
}
.carousel .list .item .content .upcoming-topics {
  margin-top: 15px;
  margin-bottom: 15px;
  border-left: none;
  min-height: 1.5em;
}
.carousel .list .item .content .upcoming-topics span {
  display: inline-block;
  margin: 0 10px;
  font-size: 1em;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.7);
}
.carousel .list .item .content .upcoming-topics:empty { display: none; }

.carousel .list .item .buttons { margin-top: 20px; }
.carousel .list .item .buttons button {
  border: none;
  background-color: var(--carousel-accent, #FF8800);
  color: #fff;
  padding: 12px 35px;
  letter-spacing: 3px;
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  cursor: pointer;
  border-radius: 30px;
  transition: filter 0.3s ease, transform 0.2s ease;
}
.carousel .list .item .buttons button:hover {
  filter: brightness(0.85);
  transform: translateY(-2px);
}

@media screen and (max-width: 768px) {
  .carousel .list .item .title { font-size: 8vw; }
  .carousel .list .item .topic { font-size: 5vw; }
  .carousel .list .item .des { font-size: 14px; }
}

/* Couleurs accent par page */
body.page-com  { --accent: #FF8800; --carousel-accent: #FF8800; }
body.page-site { --accent: #d268cc; --carousel-accent: #d268cc; }
body.page-auto { --accent: #cf0100; --carousel-accent: #cf0100; }

/* ============================================================
   SECTIONS DES PAGES SERVICES (hero, intro, CTA, réalisations)
   ============================================================ */

/* Hero page service : 2 colonnes texte/image */
.service-hero {
  background: linear-gradient(135deg, #f7f7f9 0%, #fff 100%);
  padding: 160px 0 80px;
  position: relative;
  overflow: hidden;
}
.service-hero::before {
  content: '';
  position: absolute;
  top: -20%; right: -10%;
  width: 60%; height: 80%;
  background: var(--accent);
  opacity: .06;
  border-radius: 50%;
  filter: blur(60px);
}
.service-hero .container {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.service-hero-eyebrow {
  display: inline-block;
  padding: 8px 18px;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  border-radius: 999px;
  margin-bottom: 24px;
}
.service-hero-title {
  font-size: clamp(48px, 7vw, 90px);
  color: var(--accent);
  margin: 0 0 16px;
  font-weight: 800;
  line-height: 1;
}
.service-hero-subtitle {
  font-size: clamp(20px, 2.2vw, 32px);
  color: var(--dark);
  font-weight: 600;
  margin: 0 0 32px;
}
.service-hero-question {
  font-size: clamp(20px, 2.2vw, 28px);
  font-weight: 500;
  color: var(--dark);
  border-left: 5px solid var(--accent);
  padding: 8px 0 8px 24px;
  font-style: italic;
  margin: 0;
}
.service-hero-image {
  position: relative;
}
.service-hero-image img {
  width: 100%;
  height: auto;
  border-radius: 20px;
  box-shadow: 0 30px 80px rgba(0,0,0,.15);
}

/* Intro */
.service-intro {
  padding: 90px 0;
  background: #fff;
  text-align: center;
}
.service-intro-inner { max-width: 880px; margin: 0 auto; }
.service-intro p {
  font-size: 18px;
  line-height: 1.85;
  margin: 0 0 18px;
  color: var(--text);
}
.service-intro p b { color: var(--accent); font-weight: 700; }

/* Section prestations title (au-dessus du carrousel) */
.prestations-intro {
  background: #fff;
  text-align: center;
  padding: 50px 0 40px;
}
.prestations-intro h2 {
  font-size: clamp(36px, 4.5vw, 55px);
  font-weight: 700;
  color: var(--dark);
  margin: 0 0 10px;
}
.prestations-intro svg.title-underline {
  margin: 0 auto;
  width: 260px; height: 22px;
}

/* CTA bandeau "Je souhaite qu'on m'accompagne sur X" */
.service-cta {
  padding: 100px 0;
  text-align: center;
  background: var(--accent);
  color: #fff;
}
.service-cta .small {
  font-size: clamp(20px, 2.2vw, 28px);
  font-weight: 400;
  margin: 0 0 4px;
  color: rgba(255,255,255,.95);
}
.service-cta .big {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(40px, 5.5vw, 70px);
  font-weight: 800;
  letter-spacing: 2px;
  margin: 0 0 36px;
  color: #fff;
}
.service-cta .pill-btn {
  background: var(--dark);
  font-size: 15px;
  padding: 18px 38px;
}

/* Réalisations preview sur les pages services */
.service-realisations {
  padding: 110px 0;
  background: var(--bg-light);
}
.service-realisations-head {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 50px;
}
.service-realisations-head h2 {
  font-size: clamp(36px, 4.5vw, 55px);
  font-weight: 700;
  color: var(--dark);
  margin: 0 0 14px;
}
.service-realisations-head p {
  font-size: 17px;
  color: var(--text);
  margin: 0;
}

/* Responsive */
@media (max-width: 1024px) {
  .service-hero .container { grid-template-columns: 1fr; }
  .service-hero-image { max-width: 480px; margin: 0 auto; }
}
@media (max-width: 768px) {
  .service-hero { padding: 120px 0 60px; }
  .service-intro { padding: 60px 0; }
  .service-cta { padding: 70px 0; }
  .service-realisations { padding: 70px 0; }
}

/* Header sur ces pages : toujours en mode "scrolled" pour lisibilité sur le carrousel sombre */
body.page-carousel .header { background: rgba(255,255,255,.95); backdrop-filter: blur(10px); box-shadow: 0 4px 24px rgba(0,0,0,.06); height: 76px; }
body.page-carousel .header .nav a { color: var(--dark); }
body.page-carousel .header .brand img { filter: none; }
body.page-carousel .header .burger span { background: var(--dark); }

/* ============================================================
   RESPONSIVE — Pages services (carrousel + sections)
   ============================================================ */

/* ≤ 1024px : Tablettes */
@media (max-width: 1024px) {
  .service-hero { padding: 130px 0 60px; }
  .service-hero .container { gap: 36px; }
  .service-hero-image { max-width: 460px; }
  .service-intro p { font-size: 17px; }
  .prestations-intro h2 { font-size: clamp(32px, 4.5vw, 50px); }
  .service-cta .big { font-size: clamp(40px, 5.5vw, 60px); letter-spacing: 1.5px; }
  .service-realisations-head h2 { font-size: clamp(32px, 4.5vw, 50px); }
}

/* ≤ 768px : Mobile L */
@media (max-width: 768px) {
  /* Hero page service compact */
  .service-hero { padding: 110px 0 50px; }
  .service-hero .container { grid-template-columns: 1fr; gap: 30px; text-align: center; }
  .service-hero-eyebrow { font-size: 11px; padding: 7px 16px; }
  .service-hero-title { font-size: clamp(40px, 11vw, 60px); }
  .service-hero-subtitle { font-size: clamp(17px, 4vw, 24px); }
  .service-hero-question {
    font-size: clamp(17px, 4vw, 22px);
    text-align: left;
    border-left-width: 4px;
    padding: 6px 0 6px 18px;
  }
  .service-hero-image { max-width: 380px; margin: 0 auto; }

  /* Intro */
  .service-intro { padding: 50px 0; }
  .service-intro p { font-size: 16px; line-height: 1.75; }

  /* Prestations title */
  .prestations-intro { padding: 30px 0 20px; }
  .prestations-intro svg.title-underline { width: 200px; }

  /* CTA bandeau */
  .service-cta { padding: 60px 0; }
  .service-cta .small { font-size: clamp(17px, 4vw, 22px); }
  .service-cta .big { font-size: clamp(32px, 8vw, 50px); letter-spacing: 1px; margin-bottom: 28px; }
  .service-cta .pill-btn { padding: 14px 28px; font-size: 13px; }

  /* Réalisations preview */
  .service-realisations { padding: 60px 0; }
  .service-realisations-head { margin-bottom: 35px; padding: 0 8px; }
  .service-realisations-head h2 { font-size: clamp(28px, 7vw, 40px); }
  .service-realisations-head p { font-size: 15px; }

  /* CAROUSEL : adaptation du contenu */
  .carousel .list .item .author { font-size: 10px; letter-spacing: 6px; }
  .carousel .list .item .topic { font-size: 5vw; }
  .carousel .list .item .title { font-size: 8vw; line-height: 1.2; }
  .carousel .list .item .des { font-size: 14px; padding: 0 6px; max-width: 92%; }
  .carousel .list .item .content { padding: 7%; }
  .carousel .list .item .content .upcoming-topics span {
    display: block;
    margin: 4px 0;
    font-size: 13px;
  }
  .carousel .list .item .buttons button {
    padding: 11px 26px;
    font-size: 13px;
    letter-spacing: 2px;
  }
}

/* ≤ 540px : Mobile portrait */
@media (max-width: 540px) {
  .service-hero { padding: 100px 0 40px; }
  .service-hero-image { max-width: 300px; }
  .service-intro { padding: 40px 0; }
  .service-intro p { font-size: 15.5px; }
  .service-cta { padding: 50px 0; }
  .service-cta .big { font-size: clamp(28px, 9vw, 42px); }
  .service-realisations { padding: 50px 0; }

  /* Carrousel : encore plus compact */
  .carousel .list .item .title { font-size: 9vw; }
  .carousel .list .item .des { font-size: 13.5px; }
}

/* Header carrousel pages : burger menu */
@media (max-width: 768px) {
  body.page-carousel .header { height: 70px; }
  body.page-carousel .nav {
    background: #fff;
    flex-direction: column;
    padding: 24px 28px;
    position: fixed;
    top: 70px; left: 0; right: 0;
    transform: translateY(-150%);
    transition: transform .35s var(--ease, cubic-bezier(.22,1,.36,1));
    box-shadow: 0 12px 30px rgba(0,0,0,.12);
    z-index: 99;
  }
  body.page-carousel .nav.open { transform: translateY(0); }
}
