/* ============================================================
   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); }
