/* ====== DTF PAGE ====== */

:root{
    --t-rail: rgba(255,255,255,.14);
    --t-progress: rgba(216,178,76,.85); /* doré */
    --t-card: rgba(255,255,255,.06);
    --t-border: rgba(255,255,255,.12);
  }
  
  .dtf-hero{
    padding: 90px 0 40px;
    position: relative;
  }
  .dtf-hero__inner{
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 28px;
    align-items: center;
  }
  .dtf-hero__title{ font-size: clamp(28px, 3.2vw, 46px); line-height: 1.1; }
  .dtf-hero__subtitle{ opacity: .9; max-width: 60ch; line-height: 1.7; }
  .dtf-hero__actions{ display:flex; gap:12px; flex-wrap:wrap; margin-top: 14px; }
  .dtf-hero__chips{ display:flex; gap:10px; flex-wrap:wrap; margin-top: 16px; }
  .dtf-hero__card{
    border: 1px solid var(--t-border);
    background: var(--t-card);
    border-radius: 22px;
    padding: 18px;
    box-shadow: 0 12px 34px rgba(0,0,0,.28);
  }
  .dtf-hero__cardTitle{ font-weight: 900; margin-bottom: 10px; }
  .dtf-hero__miniGrid{ display:grid; grid-template-columns: 1fr 1fr; gap: 12px; }
  .dtf-hero__cardHint{ margin-top: 10px; opacity:.85; font-size: 14px; }

  .dtf-hero{
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
  
    /* IMAGE DE FOND */
    background-image:
      linear-gradient(
        rgba(0,0,0,.65),
        rgba(0,0,0,.65)
      ),
      url("../img/DTF/imprimante.jpg");
  
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
  }
  /* ====== TIMELINE ====== */
  .timeline{
    position: relative;
    padding: 20px 0 10px;
    display: grid;
    gap: 26px;
  }
  
  .timeline__rail{
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--t-rail);
    transform: translateX(-50%);
    border-radius: 99px;
    overflow: hidden;
  }
  .timeline__progress{
    width: 100%;
    height: 0%;
    background: var(--t-progress);
    border-radius: 99px;
    box-shadow: 0 0 24px rgba(216,178,76,.45);
  }
  
  .t-item{
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
    align-items: stretch; /* 🔥 clé du problème */
    padding: 8px 0;
  }
  
  .t-card{
    border: 1px solid var(--t-border);
    background: var(--t-card);
    border-radius: 22px;
    padding: 20px 22px;
    box-shadow: 0 12px 34px rgba(0,0,0,.22);
  }
  .t-card__badge{
    display:inline-flex;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid rgba(216,178,76,.35);
    background: rgba(216,178,76,.10);
    font-weight: 800;
    font-size: 12px;
    letter-spacing: .5px;
    margin-bottom: 10px;
  }
  .t-card__title{ margin: 0 0 8px; font-size: 18px; }
  .t-card__text{ margin: 0 0 10px; opacity:.9; line-height: 1.7; }
  .t-card__list{ margin: 0; padding-left: 18px; opacity:.9; line-height: 1.75; }
  
  .t-media{
    border-radius: 22px;
    overflow: hidden;
    border: 1px solid var(--t-border);
    box-shadow: 0 12px 34px rgba(0,0,0,.22);
    background: rgba(0,0,0,.25);
  
    height: 100%; /* 🔥 même hauteur que le texte */
  }
  .t-media img{
    width: 100%;
    height: 100%;
    object-fit: contain;   /* image entière visible */
    display: block;
  
    /* Rend l'image plus horizontale visuellement */
    transform: scale(1.05);
  }
  
  /* Point cliquable */
  .t-dot{
    position: absolute;
    left: 50%;
    top: 50%;
    width: 16px;
    height: 16px;
    border-radius: 999px;
    transform: translate(-50%, -50%);
    border: 2px solid rgba(255,255,255,.9);
    background: rgba(15,15,15,.9);
    box-shadow: 0 0 0 8px rgba(216,178,76,.0);
    transition: box-shadow .25s ease, transform .25s ease, background .25s ease, border-color .25s ease;
    cursor: pointer;
  }
  .t-dot:hover{
    transform: translate(-50%, -50%) scale(1.1);
    box-shadow: 0 0 0 10px rgba(216,178,76,.18);
  }
  
  /* Alternance gauche/droite */
  .t-item--left .t-card{ order: 1; }
  .t-item--left .t-media{ order: 2; }
  
  .t-item--right .t-media{ order: 1; }
  .t-item--right .t-card{ order: 2; }
  
  .t-item.is-active .t-dot{
    background: rgba(216,178,76,.95);
    border-color: rgba(216,178,76,1);
    box-shadow: 0 0 0 10px rgba(216,178,76,.22);
  }
  
  /* CTA */
  .timeline__cta{
    display:flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 18px;
  }
  
  /* Compare cards */
  .compare{
    display:grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
  }
  .compare__card{
    border: 1px solid var(--t-border);
    background: var(--t-card);
    border-radius: 22px;
    padding: 18px 18px;
    box-shadow: 0 12px 34px rgba(0,0,0,.22);
  }
  .compare__title{ font-weight: 900; margin-bottom: 10px; }
  .compare__list{ margin: 0; padding-left: 18px; line-height: 1.8; opacity:.92; }
  
  .final-cta{
    border: 1px solid var(--t-border);
    background: var(--t-card);
    border-radius: 22px;
    padding: 22px;
    text-align: center;
    box-shadow: 0 12px 34px rgba(0,0,0,.22);
  }
  .final-cta__title{ margin: 0 0 8px; }
  .final-cta__text{ margin: 0 0 14px; opacity:.9; }
  .final-cta__actions{ display:flex; gap: 12px; justify-content: center; flex-wrap:wrap; }
  
  .to-top{
    position: fixed;
    right: 18px;
    bottom: 18px;
    width: 46px;
    height: 46px;
    border-radius: 16px;
    border: 1px solid var(--t-border);
    background: rgba(15,15,15,.75);
    color: white;
    font-weight: 900;
    cursor: pointer;
    display: none;
    box-shadow: 0 12px 34px rgba(0,0,0,.25);
  }
  
  /* Responsive */
  @media (max-width: 900px){
    .dtf-hero__inner{ grid-template-columns: 1fr; }
    .compare{ grid-template-columns: 1fr; }
  }
  
  @media (max-width: 820px){
    .timeline__rail{ left: 16px; transform: none; }
    .t-item{
      grid-template-columns: 1fr;
      padding-left: 34px;
    }
    .t-dot{ left: 16px; top: 28px; transform: translate(-50%, 0); }
    .t-item--left .t-card,
    .t-item--left .t-media,
    .t-item--right .t-card,
    .t-item--right .t-media{
      order: unset;
    }
    .t-media{ min-height: 200px; }
  }
  