/* ─── PAGE TARIFS ────────────────────────────── */

.tf-body {
  padding: 0 24px;
  margin-top: 80px;
  display: flex;
  flex-direction: column;
  gap: 80px;
}

/* ─── SECTIONS ─── */

.tf-sec-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 28px;
}

.tf-sec-num { opacity: 0.65; }

.tf-sec-titre {
  display: block;
  line-height: 0.95;
  margin: 0;
}

/* ─── RANGÉES (forfaits, compléments, conditions) ─── */

.tf-rows {
  border-top: 2px solid #000;
}

.tf-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  padding: 20px 0;
  border-bottom: 1px solid #d8d8d8;
}

.tf-row-main {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.tf-meta {
  color: #6b6b6b;
  line-height: 1.5;
  max-width: 52ch;
}

.tf-price {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  white-space: nowrap;
  flex-shrink: 0;
}

.tf-from {
  color: #6b6b6b;
}

.tf-price-num {
  letter-spacing: -0.02em;
}

.tf-note {
  color: #6b6b6b;
  margin-top: 18px;
}

/* ─── PALIERS (section Forfaits) ─── */

.tf-tiers {
  display: flex;
  flex-direction: column;
  border-top: 2px solid #000;
}

.tf-tier {
  padding: 26px 0 30px;
  border-bottom: 1px solid #d8d8d8;
}

.tf-tier-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
}

.tf-tier-id {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.tf-tier-name {
  font-size: 12.5pt;
  letter-spacing: -0.02em;
}

.tf-tier-tag { color: #6b6b6b; }

.tf-tier-desc {
  margin-top: 14px;
  color: #6b6b6b;
  line-height: 1.6;
  max-width: 46ch;
}

.tf-tier-prix {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  text-align: right;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Essentiel : sous-prix par superficie */
.tf-sizes {
  margin-top: 20px;
  border-top: 1px solid #d8d8d8;
}

.tf-size {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 11px 0;
  border-bottom: 1px solid #ececec;
}

.tf-size:last-child { border-bottom: none; }
.tf-size-nom  { flex: 0 0 auto; }
.tf-size-meta { flex: 1; color: #6b6b6b; }
.tf-size-prix { flex: 0 0 auto; white-space: nowrap; }
.tf-size-prix .tf-from { color: #6b6b6b; }

/* Signature : offre d'ancrage, bloc noir (même motif que les autres blocs noirs du site) */
.tf-tier--signature {
  background: #000;
  color: #fff;
  padding: 28px 24px 30px;
  margin: 10px 0;
  border-bottom: none;
}

.tf-tier--signature .t-courant { color: #fff; }

.tf-tier--signature .tf-tier-tag,
.tf-tier--signature .tf-from {
  color: rgba(255, 255, 255, 0.62);
}

.tf-tier-badge {
  display: inline-block;
  margin-bottom: 18px;
  padding: 5px 10px;
  border: 1px solid rgba(255, 255, 255, 0.55);
}

/* ══════════════════════════════════════════════
   TARIFS - DESKTOP
   ══════════════════════════════════════════════ */

@media (min-width: 1024px) {

  .tf-body {
    padding: 0 var(--grid-margin, 40px);
    margin-top: 130px;
    gap: 130px;
  }

  .tf-sec {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--grid-gutter, 24px);
    align-items: start;
  }

  .tf-sec-head { grid-column: 1 / 4; margin-bottom: 0; }
  .tf-rows     { grid-column: 4 / 13; }
  .tf-tiers    { grid-column: 4 / 13; }
  .tf-note     { grid-column: 4 / 13; }

  .tf-tier-name { font-size: 14pt; }

  /* Rangées calées sur les 9 colonnes de la zone de contenu (col. 4 à 12).
     Description sur 4 colonnes, prix au début de la 4e colonne depuis la
     droite (col. 9 de la grille), pour ne jamais se chevaucher. */
  .tf-row,
  .tf-size {
    display: grid;
    grid-template-columns: repeat(9, minmax(0, 1fr));
    column-gap: var(--grid-gutter, 24px);
    align-items: baseline;
  }

  /* Compléments */
  .tf-row-main { grid-column: 1 / 5; }
  .tf-price {
    grid-column: 6 / 10;
    align-items: flex-start;
  }

  /* Forfaits (Essentiel) : mêmes colonnes, prix bien évidents */
  .tf-size-nom  { grid-column: 1 / 3; }
  .tf-size-meta { grid-column: 3 / 5; }
  .tf-size-prix { grid-column: 6 / 10; text-align: left; }
}


/* ══════════════════════════════════════════════
   COMPLÉMENTS — cartes avec visuel
   ══════════════════════════════════════════════ */
.cp-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px 24px;
  margin-top: 28px;
}
.cp-card {
  display: flex;
  flex-direction: column;
}
.cp-media {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: #ececec;
}
.cp-media > img,
.cp-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.cp-body {
  padding-top: 16px;
  border-top: 1.5px solid #000;
  margin-top: 14px;
}
.cp-line {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
}
.cp-name { letter-spacing: -0.02em; }
.cp-price {
  white-space: nowrap;
  flex-shrink: 0;
  letter-spacing: -0.02em;
}
.cp-unit {
  display: block;
  text-align: right;
  color: #6b6b6b;
}
.cp-meta {
  margin: 9px 0 0;
  color: #6b6b6b;
  line-height: 1.5;
  max-width: 46ch;
}

/* Carte « à venir » */
.cp-media--soon {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, #2b3a67 0%, #7d5a8c 55%, #e0975f 100%);
}
.cp-soon {
  color: #fff;
  letter-spacing: 0.02em;
  opacity: 0.92;
}

/* Glissière horizontale avant / après */
.cp-ba {
  cursor: ew-resize;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
}
.cp-ba img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}
.cp-ba-before {
  clip-path: inset(0 calc(100% - var(--x, 50%)) 0 0);
  z-index: 2;
}
.cp-ba-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--x, 50%);
  width: 2px;
  margin-left: -1px;
  background: #fff;
  z-index: 3;
  pointer-events: none;
}
.cp-ba-handle {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #fff;
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 12pt;
  line-height: 1;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}
.cp-ba-tag {
  position: absolute;
  top: 12px;
  z-index: 4;
  font-family: var(--font-mono);
  font-size: 8.5pt;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  color: #fff;
  background: rgba(0, 0, 0, 0.55);
  padding: 4px 8px;
  pointer-events: none;
}
.cp-ba-tag-before { left: 12px; }
.cp-ba-tag-after  { right: 12px; }

.cp-rows { margin-top: 44px; }

@media (min-width: 1024px) {
  .cp-grid {
    grid-column: 4 / 13;
    grid-template-columns: 1fr 1fr;
    gap: 52px 24px;
    margin-top: 0;
  }
  .tf-sec--comp .cp-rows { grid-column: 4 / 13; margin-top: 56px; }
}

/* ─── HERO + TITRE (calqués sur les pages projets) ─── */
/* Styles autonomes : cette page ne charge pas projet.css */

.tf-hero {
  height: 75vh;
  height: 75svh;
  overflow: hidden;
}

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

.tf-intro {
  height: 25vh;
  height: 25svh;
  display: flex;
  align-items: flex-end;
  padding: 0 24px 24px;
}

.tf-titre {
  display: block;
  line-height: 0.9;
  margin-bottom: 18px;
}

.tf-lede {
  max-width: 44ch;
  line-height: 1.6;
}

@media (min-width: 1024px) {
  .tf-intro {
    height: auto;
    min-height: 18vh;
    min-height: 18svh;
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    column-gap: var(--grid-gutter, 24px);
    padding: 28px var(--grid-margin, 40px) 32px;
    align-items: end;
  }
  .tf-titre {
    grid-column: 1 / 4;
    grid-row: 1;
    margin-bottom: 0;
  }

  /* Le lede s'aligne sur la colonne du tableau des forfaits (col. 4),
     sur la MÊME rangée que le titre, calé sur sa ligne de base du bas */
  .tf-lede {
    grid-column: 4 / 9;
    grid-row: 1;
    align-self: end;
    max-width: none;
  }
}
