/* ─── PAGE SERVICE ─────────────────────────────── */

.sv-hero {
  height: 50vh;
  overflow: hidden;
}

.sv-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Deuxième moitié du premier écran — titre + résumé */
.sv-intro {
  height: 50vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 24px 28px;
  gap: 40px;
  overflow: visible;
}

.sv-intro-head {
  display: flex;
  flex-direction: column;
  gap: 6px;
  overflow: hidden;
}

.sv-titre {
  display: block;
  line-height: 0.9;
  white-space: nowrap;
}

/* Numéro de sections — même traitement que les pages projet */
.sv-titre-count {
  display: inline-block;
  transform: scaleX(1.25);
  transform-origin: left center;
  vertical-align: 1.6em;
  margin-left: 0.3em;
  position: relative;
  top: -3px;
  left: 5px;
}

.sv-resume {
  line-height: 1.4;
}

/* ─── APPROCHE ──────────────────────────────────── */

.sv-approche {
  padding: 70px 24px;
}

.sv-approche-titre {
  display: block;
  margin-bottom: 20px;
}

.sv-approche-body {
  line-height: 1.4;
}

/* ─── IMAGE PLEINE LARGEUR 3:2 ──────────────────── */

.sv-img-full {
  width: 100%;
  aspect-ratio: 3 / 2;
  overflow: hidden;
}

.sv-img-full img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.sv-img-caption {
  display: flex;
  justify-content: space-between;
  padding: 12px 24px 0;
}

/* ─── DOUBLE IMAGE ───────────────────────────────── */

.sv-img-duo-left,
.sv-img-duo-right {
  width: 100%;
  aspect-ratio: 3 / 2;
  overflow: hidden;
}

.sv-img-duo-left img,
.sv-img-duo-right img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ─── ACCORDION ─────────────────────────────────── */


.sv-accordion {
  margin-top: 200px;
}

.sv-acc-item {}

.sv-acc-line-outer {}

.sv-acc-line {
  font-family: var(--font-titre);
  font-weight: 500;
  font-size: 37pt;
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: #000;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.2em;
  padding: 1px 0;
  width: 100%;
  white-space: nowrap;
  transform: scaleX(0.8);
  transform-origin: center center;
  transition: transform 0.35s cubic-bezier(0.76, 0, 0.24, 1);
}

.sv-acc-item:not(.is-open):hover .sv-acc-line {
  transform: scaleX(0.8) scale(1.05);
}

/* Label gauche/droite sur chaque ligne */
.sv-acc-label {
  display: none;
}

/* Flèche aléatoire gauche/droite sur chaque ligne */
.sv-acc-arrow {
  font-family: var(--font-mono);
  font-size: 9pt;
  font-weight: 700;
  line-height: 1;
  flex-shrink: 0;
  align-self: center;
  transform: scaleX(1.5) rotate(90deg);
  transition: transform 0.45s cubic-bezier(0.76, 0, 0.24, 1);
}

.sv-acc-item.is-open .sv-acc-arrow {
  transform: scaleX(1.5) rotate(-90deg);
}

.sv-acc-arrow--ghost {
  visibility: hidden;
}

/* Image inline dans la ligne titre */
.sv-acc-thumb {
  height: 0.75em;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  flex-shrink: 0;
  align-self: center;
  margin-top: 0.15em;
}

/* Animation avec CSS grid — descente fluide de la ligne suivante */
.sv-acc-content {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.45s cubic-bezier(0.76, 0, 0.24, 1);
}

.sv-acc-item.is-open .sv-acc-content {
  grid-template-rows: 1fr;
}

.sv-acc-content-inner {
  overflow: hidden;
  padding: 0 10%;
  text-align: center;
  transition: padding-top 0.45s cubic-bezier(0.76, 0, 0.24, 1),
              padding-bottom 0.45s cubic-bezier(0.76, 0, 0.24, 1);
}

.sv-acc-item.is-open .sv-acc-content-inner {
  padding-top: 16px;
  padding-bottom: 28px;
}

.sv-acc-content-inner .t-courant {
  line-height: 1.4;
}

/* ─── LIVRABLES ─────────────────────────────────── */

.sv-livrables {
  padding: 70px 10%;
  text-align: center;
}

.sv-livrables-titre {
  display: block;
  transform-origin: center center;
  margin-bottom: 20px;
}

.sv-livrables-text {
  line-height: 1.4;
  margin-bottom: 60px;
}

/* ─── DÉTAILS ────────────────────────────────────── */

.sv-details {
  padding: 120px 10% 100px;
  text-align: center;
}

.sv-details-titre {
  display: block;
  transform-origin: center center;
  margin-bottom: 20px;
}

.sv-details-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sv-details-list li {
  line-height: 1.4;
}

/* ─── IMAGE VERTICALE PLEINE HAUTEUR ────────────── */

.sv-full-img {
  margin-top: 200px;
  height: 100vh;
  overflow: hidden;
}

.sv-full-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ─── SECTION FINALE ────────────────────────────── */

.sv-finale-img {
  width: 100%;
  aspect-ratio: 3 / 2;
  overflow: hidden;
}

.sv-finale-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ─── COMMENT ÇA MARCHE ─────────────────────────── */

.sv-process {
  padding: 120px 24px 100px;
}

.sv-process-titre {
  display: block;
  text-align: center;
  transform-origin: center center;
  line-height: 1;
  margin-bottom: 50px;
}

.sv-process-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-right: 24px;
}

.sv-process-row {
  display: flex;
  flex-direction: column;
}

.sv-process-label {
  line-height: 1.4;
}

.sv-process-slash {
  display: block;
  margin: 8px 0;
  line-height: 1.4;
}

.sv-process-desc {
  line-height: 1.4;
}

/* ══════════════════════════════════════════════
   SERVICE — DESKTOP 12 COLONNES
   ══════════════════════════════════════════════ */

@media (min-width: 1024px) {

  /* ─── HERO : 2/3 de viewport ─── */
  .sv-hero {
    height: 66vh;
  }

  /* ─── INTRO : titre cols 1–4 | résumé cols 5–8 ─── */
  .sv-intro {
    height: auto;
    min-height: 34vh;
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--grid-gutter, 24px);
    row-gap: 0;
    padding: 28px var(--grid-margin, 40px) 32px;
    align-items: start;
  }

  .sv-intro-head {
    grid-column: 1 / 5;
    grid-row: 1;
  }

  .sv-titre {
    white-space: nowrap;
  }

  .sv-titre-count {
    vertical-align: 1.25em;
    top: 0;
  }

  /* wrapper grid item — wrapRise cible le <p> à l'intérieur, pas ce div */
  .sv-resume-col {
    grid-column: 5 / 8;
    grid-row: 1;
    padding-top: 16px;
  }

  .sv-resume {
    line-height: 1.5;
  }

  /* ─── APPROCHE : cols 4–6, wrapper stable dans le grid ─── */
  .sv-approche {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--grid-gutter, 24px);
    padding: 100px var(--grid-margin, 40px) 80px;
  }

  .sv-img-duo {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    grid-template-rows: 50vh auto 1fr;
    height: 80vh;
    column-gap: var(--grid-gutter, 24px);
    padding: 0 var(--grid-margin, 40px);
    margin-top: 50px;
  }

  .sv-img-duo-left {
    grid-column: 1 / 5;
    grid-row: 1;
    aspect-ratio: unset;
  }

  .sv-img-duo-right {
    grid-column: 5 / 13;
    grid-row: 1 / 4;
    aspect-ratio: unset;
  }

  .sv-img-duo .sv-img-caption {
    grid-column: 1 / 5;
    grid-row: 2;
    padding: 12px 0 0;
  }

  .sv-img-duo .sv-approche {
    grid-column: 1 / 5;
    grid-row: 3;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 16px 0 0;
  }

  .sv-img-duo .sv-approche-col {
    grid-column: unset;
    grid-row: unset;
  }

  .sv-approche-col {
    grid-column: 5 / 9;
    grid-row: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
  }

  .sv-approche-titre {
    margin-bottom: 0;
  }

  .sv-approche-body {
    line-height: 1.5;
  }

  /* ─── ACCORDION LABELS ─── */
  .sv-acc-line-outer {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
  }
  .sv-acc-label {
    display: block;
    font-family: var(--font-mono);
    font-size: 7pt;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    white-space: nowrap;
    pointer-events: none;
  }
  .sv-acc-label--left  { grid-column: 1; justify-self: end;   padding-right: 0.4em; }
  .sv-acc-label--right { grid-column: 3; justify-self: start; padding-left:  0.4em; }
  .sv-acc-label--ghost { visibility: hidden; }

  /* ─── ACCORDION ─── */
  .sv-accordion {
    height: 100vh;
    margin-top: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .sv-acc-line {
    font-size: 47pt;
    width: auto;
  }

  /* ─── IMAGE APRÈS ACCORDION ─── */
  .sv-full-img {
    height: 50vh;
    margin-top: 0;
    margin-left: var(--grid-margin, 40px);
    margin-right: var(--grid-margin, 40px);
  }

  /* ─── SECTION FINALE ─── */
  .index-bas {
    display: none;
  }

  .sv-finale-btn {
    align-self: flex-start;
    margin-top: auto;
  }

  .sv-finale {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--grid-gutter, 24px);
    padding: 120px var(--grid-margin, 40px) 0;
  }

  .sv-finale-img {
    grid-column: 1 / 7;
    height: 75vh;
    aspect-ratio: unset;
    overflow: hidden;
  }

  .sv-finale-content {
    grid-column: 7 / 11;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 100px;
    height: 75vh;
  }

  .sv-finale-content .sv-livrables,
  .sv-finale-content .sv-details {
    padding: 0;
    text-align: left;
  }

  .sv-finale-content .sv-livrables-titre,
  .sv-finale-content .sv-details-titre {
    transform-origin: left center;
    margin-bottom: 16px;
  }

  .sv-finale-content .sv-livrables-text {
    margin-bottom: 0;
  }

  /* ─── ACCORDION — contenu déployé centré sur 50% ─── */
  .sv-acc-content-inner {
    padding: 0 35%;
  }

  .sv-acc-item.is-open .sv-acc-content-inner {
    padding-top: 16px;
    padding-bottom: 28px;
  }

  /* ─── COMMENT ÇA MARCHE — 4 colonnes égales de marge à marge ─── */
  .sv-process {
    padding: 100px var(--grid-margin, 40px);
  }

  .sv-process-titre {
    text-align: left;
    transform-origin: left center;
    margin-bottom: 80px;
  }

  .sv-process-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    column-gap: 100px;
    row-gap: 0;
    padding-right: 0;
  }

}
