/* ==========================================================================
   BLOC 1 : STRUCTURE & FOND (LE DÉCOR)
   ========================================================================== */

.tf-speed-wrapper {
    position: relative;
    max-width: 100%;
    margin: 20px auto 45px;
    padding: 70px 40px;
    overflow: hidden;
    box-sizing: border-box;
}

.tf-speed-shape {
    position: absolute;
    top: 0; right: 0; bottom: 0;
    width: 60%;
    background: #111;
    z-index: 0;
    transform: skewX(-12deg);
    transform-origin: top;
    margin-right: -80px;
    border-left: 5px solid #bd3535;
    box-shadow: -20px 0 50px rgba(0,0,0,0.25);
}


/* ==========================================================================
   BLOC 2 : TYPOGRAPHIE & LAYOUT DESKTOP
   ========================================================================== */

.tf-speed-content {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0;
    font-family: Arial, sans-serif;
}

/* GAUCHE */
.tf-speed-left {
    flex: 0 0 520px;
    max-width: 520px;
    text-align: left;
    margin-right: 60px;
    min-width: 0;
}

.tf-speed-left h2 {
    font-family: 'TF-Anton', 'Arial Black', sans-serif;
    font-size: 33px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: -1.1px;
    line-height: 1;
    margin: 0;
    color: #111;
    white-space: normal;
    max-width: 100%;
}

.tf-outlined {
    color: transparent;
    -webkit-text-stroke: 2px #111;
}

.tf-text-red {
    color: #bd3535;
    display: block;
}

/* DROITE */
.tf-speed-right {
    flex: 0 0 49%;
    padding-left: 50px;
    margin-left: 0;
    text-align: left;
    color: #ffffff;
    min-width: 0;
}

.tf-speed-right p,
.tf-intro-lead,
.tf-intro-text {
    color: #ffffff;
}

.tf-intro-lead {
    font-size: 19px;
    line-height: 1.5;
    margin-bottom: 25px;
}

.tf-intro-text {
    font-size: 16px;
    line-height: 1.7;
    margin: 0;
}


/* ==========================================================================
   BREAKPOINTS DESKTOP INTERMÉDIAIRES (INCHANGÉS)
   ========================================================================== */

/* =========================================================
   TF SPEED — BREAKPOINTS DESKTOP INTERMÉDIAIRES (NETTOYÉS)
   AUCUN CHANGEMENT DE COMPORTEMENT
========================================================= */

/* 1359 → 1230 */
@media (max-width: 1359px) and (min-width: 1230px) {
  .tf-speed-right { padding-left: 0; }
  .tf-speed-right { margin-left: -25px; padding: 0; }
  .tf-speed-left h2 { font-size: 31px; }
}

/* 1229 → 1200 */
@media (max-width: 1229px) and (min-width: 1200px) {
  .tf-speed-right { margin-left: -20px; padding: 0; }
  .tf-speed-left h2 { font-size: 31px !important; }
}

/* 1199 → 981 (règles IDENTIQUES fusionnées) */
@media (max-width: 1199px) and (min-width: 981px) {
  .tf-speed-right { margin-left: -140px; padding-left: 0; }
  .tf-speed-left h2 { width: 400px; font-size: 36px !important; }
}

/* 980 → 951 */
@media (max-width: 980px) and (min-width: 951px) {
  .tf-speed-right { margin-left: -150px; padding-left: 0; }
  .tf-speed-left h2 { width: 400px; font-size: 35px !important; }
}

/* 950 → 890 */
@media (max-width: 950px) and (min-width: 890px) {
  .tf-speed-right { margin-left: -170px; padding-left: 0; }
  .tf-speed-left h2 { width: 400px; font-size: 35px !important; }
}

/* 889 → 860 */
@media (max-width: 889px) and (min-width: 860px) {
  .tf-speed-right { margin-left: -185px; padding-left: 0; }
  .tf-speed-left h2 { width: 370px; font-size: 33px; }
}

/* 859 → 820 */
@media (max-width: 859px) and (min-width: 820px) {
  .tf-speed-right { margin-left: -210px; padding-left: 0; }
  .tf-speed-left h2 { width: 370px; font-size: 32px !important; }
}

/* 819 → 800 */
@media (max-width: 819px) and (min-width: 800px) {
  .tf-speed-right { margin-left: -235px; padding-left: 0; }
  .tf-speed-left h2 { width: 370px; font-size: 31px!important; }
}

/* 799 → 770 */
@media (max-width: 799px) and (min-width: 770px) {
  .tf-speed-right { margin-left: -245px; padding-left: 0; }
  .tf-speed-left h2 { width: 370px; font-size: 30px !important; }
}

/* ==========================================================================
   FEATURE INTRO — GLOBAL CSS (DESKTOP + MOBILE)
   NE CASSE PAS tf-speed-left
   DÉCOR SVG VIA BACKGROUND (PRESTASHOP SAFE)
   ========================================================================== */

/* =========================
   DESKTOP (INCHANGÉ)
   ========================= */

.tf-speed-wrapper {
  position: relative;
  max-width: 100%;
  margin: 20px auto 45px;
  padding: 70px 40px;
  overflow: hidden;
  box-sizing: border-box;
}

.tf-speed-shape {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 60%;
  background: #111;
  z-index: 0;
  transform: skewX(-12deg);
  transform-origin: top;
  margin-right: -80px;
  border-left: 5px solid #bd3535;
  box-shadow: -20px 0 50px rgba(0,0,0,0.25);
}

.tf-speed-content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.tf-speed-left {
  flex: 0 0 520px;
  max-width: 520px;
  text-align: left;
  margin-right: 60px;
}

.tf-speed-left h2 {
  font-family: 'TF-Anton', 'Arial Black', sans-serif;
  font-size: 33px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -1.1px;
  line-height: 1;
  margin: 0;
  color: #111;
}

.tf-outlined {
  color: transparent;
  -webkit-text-stroke: 2px #111;
}

.tf-text-red {
  color: #bd3535;
  display: block;
}

.tf-speed-right {
  flex: 0 0 49%;
  padding-left: 50px;
  color: #fff;
}

.tf-intro-lead {
  font-size: 19px;
  line-height: 1.5;
  margin-bottom: 25px;
}

.tf-intro-text {
  font-size: 16px;
  line-height: 1.7;
  margin: 0;
}

/* =========================
   MOBILE (≤ 769px)
   ========================= */

@media (max-width: 769px) {

  .tf-speed-wrapper {
    padding: 32px 20px 0;
    margin: 0;
    overflow: visible;
  }

  .tf-speed-shape {
    display: none;
  }

  .tf-speed-content {
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }

  /* TITRE — CENTRÉ SANS CASSER DESKTOP */
  .tf-speed-left {
    flex: none;
    max-width: none;
    width: 100%;
    margin: 0;
    text-align: center;
  }

  .tf-speed-left h2 {
    text-align: center;
    font-size: 32px;
    line-height: 1.15;
    margin: 0 0 22px;
  }

  /* DÉCOR SVG — ENTRE TITRE ET TEXTE */
  .tf-speed-divider-bg {
    display: block;
    height: 40px;
    background: url("/img/cms/bloc3.svg") no-repeat center / 100% 100%;
  }

  /* TEXTE */
  .tf-speed-right {
    flex: none;
    width: 100%;
    padding: 28px 20px 36px;
    margin: 0;
    background: #111;
    color: #fff;
    text-align: center;
    margin-top: -1px;
  }

  .tf-intro-lead {
    font-size: 17px;
    line-height: 1.55;
    margin: 0 0 18px;
  }

  .tf-intro-text {
    font-size: 15px;
    line-height: 1.65;
    margin: 0;
  }
}

/* =========================
   SÉCURITÉ DESKTOP
   ========================= */

@media (min-width: 770px) {
  .tf-speed-divider-bg {
    display: none;
  }
}