/* ============================================================================
   PAGE NOS SERVICES — styles propres à cette page.
   Consomme les tokens définis dans style.css (couleurs, dégradé, glass,
   typographie, rythme). Rien n'est redéfini ici, tout est réutilisé.
   ========================================================================== */

/* ---------------- Reveal on scroll (générique, cf. a-propos.css) ---------------- */
html.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
html.js .reveal.in-view { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal.in-view, html.js .reveal, html.js .reveal.in-view {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ---------------- Rythme commun des sections ---------------- */
.services-section {
  position: relative;
  padding: var(--space-3xl) var(--desktop-padding);
  max-width: 1400px;
  margin: 0 auto;
}

.services-section h2 {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
  max-width: 20ch;
}

@media (max-width: 767px) {
  .services-section { padding: var(--space-2xl) var(--mobile-padding); }
}

/* ============================================================================
   HERO
   ========================================================================== */
#services-hero {
  position: relative;
  min-height: 82vh;
  display: flex;
  align-items: center;
  padding: 9.5rem 4rem 5rem;
  overflow: hidden;
}

.services-hero__orb {
  position: absolute;
  top: 6%;
  right: -8%;
  width: clamp(280px, 38vw, 560px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--gradient-nebulight);
  filter: blur(110px);
  opacity: 0.38;
  pointer-events: none;
  z-index: 0;
  animation: services-orb-float 14s ease-in-out infinite;
}

@keyframes services-orb-float {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50%      { transform: translate3d(-3%, 5%, 0) scale(1.06); }
}

.services-hero__content {
  position: relative;
  z-index: 2;
  max-width: 760px;
}

#services-hero-title {
  font-size: clamp(2.6rem, 5.5vw, 4.6rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 2.25rem;
}

.services-hero__chapo p {
  font-weight: var(--fw-body);
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  line-height: 1.65;
  color: var(--text-dim);
  max-width: 54ch;
  margin-bottom: 1.1rem;
}
.services-hero__chapo p:nth-of-type(2) { transition-delay: 0.06s; }

.services-hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem;
  margin-top: 2.75rem;
}
.services-hero__actions .btn-light {
  transform: none;
}

@media (max-width: 767px) {
  #services-hero { padding: 7.5rem var(--mobile-padding) 4rem; min-height: 74vh; }
  .services-hero__orb { top: 2%; right: -22%; }
}

@media (prefers-reduced-motion: reduce) {
  .services-hero__orb { animation: none; }
}

/* ============================================================================
   ORIENTATION — accordéon de diagnostic
   ========================================================================== */
.services-orientation__intro {
  font-weight: var(--fw-body);
  font-size: 1.05rem;
  color: var(--text-dim);
  max-width: 56ch;
  margin-bottom: 2.5rem;
}

.orientation {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--border);
}

.orientation__item {
  border-bottom: 1px solid var(--border);
}

.orientation__heading { margin: 0; }

.orientation__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  width: 100%;
  padding: 1.75rem 0.25rem;
  background: none;
  border: none;
  text-align: left;
  color: var(--white);
  font-family: var(--font-base);
}

.orientation__quote {
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.35;
  transition: color 0.3s ease;
}

.orientation__icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--glass-border);
  color: var(--text-dim);
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.3s ease, color 0.3s ease;
}
.orientation__icon svg { width: 16px; height: 16px; }

.orientation__item[data-open="true"] .orientation__icon {
  transform: rotate(180deg);
  border-color: var(--white);
  color: var(--white);
}
.orientation__item[data-open="true"] .orientation__quote { color: var(--white); }

/* Panneau : technique grid-template-rows 0fr → 1fr pour une hauteur animée sans JS de mesure */
.orientation__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.orientation__item[data-open="true"] .orientation__panel {
  grid-template-rows: 1fr;
}

.orientation__panel-inner {
  overflow: hidden;
  min-height: 0;
}

.orientation__panel p {
  font-weight: var(--fw-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-dim);
  max-width: 64ch;
  padding-bottom: 1.25rem;
}

.orientation__link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.75rem;
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.98rem;
  transition: gap 0.3s ease;
}
.orientation__link:hover { gap: 0.85rem; }

@media (max-width: 767px) {
  .orientation__trigger { padding: 1.35rem 0.1rem; gap: 1rem; }
  .orientation__icon { width: 28px; height: 28px; }
}

/* ============================================================================
   LES CINQ SERVICES EN DÉTAIL
   ========================================================================== */
.service-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.service-card {
  display: flex;
  flex-direction: column;
  padding: 2rem;
  border-radius: var(--glass-radius);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  transition: transform 0.4s ease, border-color 0.4s ease;
}
.service-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 255, 250, 0.35);
}

.service-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin-bottom: 1.5rem;
  border-radius: 50%;
  background: rgba(255, 255, 250, 0.06);
  color: var(--white);
}
.service-card__icon svg { width: 24px; height: 24px; }

.service-card h3 {
  font-weight: 700;
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin-bottom: 0.9rem;
}

.service-card p {
  font-weight: var(--fw-body);
  font-size: 0.98rem;
  line-height: 1.65;
  color: var(--text-dim);
  max-width: none;
}
.service-card p + p { margin-top: 0.9rem; }

.service-card__meta {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  font-size: 0.82rem;
  color: var(--text-faint);
}
.service-card__meta-sep {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--text-faint);
  flex-shrink: 0;
}

.service-card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
  color: var(--white);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: gap 0.3s ease;
}
.service-card__link:hover { gap: 0.85rem; }

/* Le projet global occupe toute la largeur : c'est le format le plus engageant */
.service-card--global {
  grid-column: 1 / -1;
  flex-direction: row;
  align-items: flex-start;
  gap: 2.5rem;
  background: linear-gradient(140deg, rgba(62, 0, 255, 0.12), rgba(12, 12, 12, 0.555) 55%);
  border-color: rgba(255, 255, 250, 0.22);
}
.service-card--global .service-card__icon {
  background: var(--gradient-nebulight);
  color: var(--white);
  flex-shrink: 0;
}
.service-card--global > div,
.service-card--global > h3,
.service-card--global > p,
.service-card--global > .service-card__meta,
.service-card--global > .service-card__link {
  flex: none;
}

@media (min-width: 1024px) {
  .service-card--global {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto auto auto;
    column-gap: 2.5rem;
  }
  .service-card--global .service-card__icon { grid-row: 1 / span 4; margin-bottom: 0; }
  .service-card--global h3 { grid-column: 2; }
  .service-card--global .service-card__meta { grid-column: 2; }
  .service-card--global .service-card__link { grid-column: 2; }
}

@media (max-width: 1023px) {
  .service-grid { grid-template-columns: 1fr; }
  .service-card--global { flex-direction: column; }
}

/* ============================================================================
   DANS QUEL ORDRE FAIRE LES CHOSES (timeline, cf. composant à-propos)
   ========================================================================== */
.services-order__intro {
  font-weight: var(--fw-body);
  font-size: 1.05rem;
  color: var(--text-dim);
  max-width: 56ch;
  margin-bottom: 3rem;
}

.order-timeline {
  position: relative;
  max-width: 760px;
}

.timeline__rail {
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: 7px;
  width: 2px;
  background: rgba(255, 255, 250, 0.1);
}
.timeline__rail-fill {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0%;
  background: linear-gradient(to bottom,
      var(--gradient-1), var(--gradient-2), var(--gradient-3), var(--gradient-4));
  transition: height 0.1s linear;
}

.timeline__list {
  display: flex;
  flex-direction: column;
  gap: clamp(2rem, 4vw, 3rem);
  padding-left: 2.5rem;
}

.timeline__item { position: relative; }

.timeline__dot {
  position: absolute;
  top: 6px;
  left: -2.5rem;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid rgba(255, 255, 250, 0.3);
  transition: border-color 0.5s ease, box-shadow 0.5s ease, background 0.5s ease;
}
.timeline__item.in-view .timeline__dot {
  border-color: var(--white);
  background: var(--gradient-nebulight);
  box-shadow: 0 0 18px rgba(103, 67, 255, 0.7);
}

.timeline__date {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 0.5rem;
}

.timeline__body h3 {
  font-weight: 700;
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  letter-spacing: -0.01em;
  margin-bottom: 0.6rem;
}

.timeline__body p {
  font-weight: var(--fw-body);
  font-size: 0.98rem;
  line-height: 1.65;
  color: var(--text-dim);
  max-width: 58ch;
}

.services-order__note {
  font-weight: var(--fw-body);
  font-size: 0.98rem;
  line-height: 1.7;
  color: var(--text-dim);
  max-width: 62ch;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

@media (max-width: 767px) {
  .timeline__list { padding-left: 1.75rem; }
  .timeline__rail { left: 5px; }
  .timeline__dot { left: -1.75rem; width: 13px; height: 13px; }
}

/* ============================================================================
   CE QUI EST COMMUN À TOUS LES SERVICES
   ========================================================================== */
.guarantee-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.guarantee {
  padding: 1.75rem;
  border-radius: var(--glass-radius);
  border-left: 2px solid rgba(255, 255, 250, 0.35);
  background: rgba(255, 255, 250, 0.03);
  transition: border-color 0.4s ease, background 0.4s ease;
}
.guarantee:hover {
  border-color: var(--white);
  background: rgba(255, 255, 250, 0.06);
}

.guarantee h3 {
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
  margin-bottom: 0.65rem;
}

.guarantee p {
  font-weight: var(--fw-body);
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--text-dim);
  max-width: none;
}

.guarantee a {
  color: var(--white);
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 250, 0.35);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.3s ease;
}
.guarantee a:hover { text-decoration-color: var(--white); }

/* Cinquième garantie : centrée seule sur sa ligne pour équilibrer la grille impaire */
.guarantee-grid .guarantee:last-child {
  grid-column: 1 / -1;
  max-width: 50%;
  margin: 0 auto;
}

@media (max-width: 1023px) {
  .guarantee-grid { grid-template-columns: 1fr; }
  .guarantee-grid .guarantee:last-child { max-width: none; }
}

/* ============================================================================
   Nav active state (cf. a-propos.css)
   ========================================================================== */
.menu-overlay__link[aria-current="page"] {
  color: var(--white);
}
.menu-overlay__link[aria-current="page"] .menu-overlay__label {
  background: var(--gradient-nebulight);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* ---------------- Créneau vidéo dans une carte service ---------------- */
/* Le composant .nl-video vit dans video-overlay.css ; on ne règle ici que
   sa place dans la carte. */
.service-card__video {
  margin-top: 1.75rem;
}

/* ---------------- Appel à l'action de chaque service ---------------- */
/* Remplace l'ancien .service-card__link qui pointait vers une page service
   dédiée. Il mène désormais au formulaire, pré-réglé sur la bonne branche. */
.service-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  align-self: flex-start;
  margin-top: auto;
  padding: 0.7rem 1.4rem;
  border: 1px solid var(--white);
  border-radius: var(--radius);
  color: var(--white);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  line-height: 1.3;
  transition: background 0.4s ease, color 0.4s ease, gap 0.3s ease;
}
/* margin-top: auto seul ne suffit pas à décoller le bouton du texte
   quand la carte est courte. */
.service-card__video + .service-card__cta,
.service-card p + .service-card__cta,
.service-card__meta + .service-card__cta {
  margin-top: 1.75rem;
}
.service-card__cta:hover,
.service-card__cta:focus-visible {
  background: var(--white);
  color: var(--black);
  gap: 0.85rem;
}
.service-card__cta:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 3px;
}

/* Sur la carte « projet global », qui occupe toute la largeur */
.service-card--global .service-card__cta {
  border-color: var(--white);
}

/* Ancre de section : le titre ne doit pas se cacher sous la barre de nav */
.service-card[id] {
  scroll-margin-top: 6rem;
}

@media (prefers-reduced-motion: reduce) {
  .service-card__cta { transition: none; }
}
