/* =========================================
   CTIS — Styles page telegonflage
   Couleur charte : #0e4d82
   ========================================= */

/* --- Helpers communs --- */
.telegonflage-page .container { width: min(1200px, 92vw); margin: 0 auto; }
.section { padding-block: 28px; }

/* =========================================
   1) BANNIÈRE VIDÉO (autoplay, sans contrôles)
   ========================================= */
.banner-video { padding: 0; }

.banner-video-wrap{
  position: relative;
  width: 100%;
  aspect-ratio: 1920 / 560;
  max-height: 560px;
  overflow: hidden;
  background: #e7ecf6;
}

.banner-video-media{
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  display: block;
  object-fit: cover; object-position: center;
  filter: brightness(0.8) contrast(1.05) saturate(0.95);
  background: #d7deee;
  pointer-events: none;
}

.banner-overlay{
  position: absolute; inset: 0;
  background: linear-gradient(rgba(14,77,130,.48), rgba(14,77,130,.48));
  box-shadow: inset 0 0 0 9999px rgba(255,255,255,.44);
  pointer-events: none;
}

.banner-title{
  position: absolute; left: 50%; top: clamp(18%, 22vh, 32%);
  transform: translateX(-50%);
  margin: 0; padding: 0 1rem;
  color: #fff; text-align: center;
  text-transform: uppercase; letter-spacing: .04em; font-weight: 900;
  font-size: clamp(42px, 6.2vw, 92px);
  text-shadow: 0 4px 18px rgba(0,0,0,.55), 0 1px 0 rgba(0,0,0,.25);
}

@media (max-width: 620px){
  .banner-title{ top: 28%; font-size: clamp(36px, 9vw, 64px); }
  .banner-video-wrap{ aspect-ratio: 16 / 9; }
}

/* =========================================
   2) QU’EST-CE QU’UN CTIS ?
   ========================================= */
.ctis-what .container{ width: min(1200px, 92vw); margin: 0 auto; }
.ctis-what__h2{
  grid-column: 1 / -1;
  text-align: center;
  font-weight: 800;
  font-size: clamp(22px, 3.4vw, 34px);
  margin: 0 0 18px;
  color :#0e4d82
}

.ctis-what__grid{
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(18px, 3vw, 40px);
  align-items: center;
}

.ctis-what__media img {
  width: 100%;
  height: auto;
  display: block;

  filter: none !important;
  box-shadow: none !important;
  outline: none !important;

  /* Remet l’image droite, sans rotation ni déformation */
  transform: none !important;

}

.ctis-what__copy{ color: #1c2442; }
.ctis-what__title{ margin: 0 0 8px; line-height: 1.25; font-size: clamp(18px, 2.4vw, 24px); }
.ctis-what__acronym{ font-weight: 800; color: #0e4d82; letter-spacing: .02em; }
.ctis-what__full{ font-weight: 700; color:#0e4d82}
.ctis-what__full.fr{ color: #0e4d82; }

.ctis-what__p{ margin: 0 0 12px; font-size: clamp(14px, 1.7vw, 16px); line-height: 1.6; }
.ctis-what__p strong{ font-weight: 800; }

@media (max-width: 980px){
  .ctis-what__grid{ grid-template-columns: 1fr; }
  .ctis-what__media{ order: 1; }
  .ctis-what__copy{ order: 2; }
}

/* --- Note terminologie --- */



.ctis-note__text .vpg{ font-weight: 800; color: #0e4d82; font-style: normal; }
.ctis-note__text .tpcs{ font-weight: 800; color: #ad2330; font-style: normal; }
.ctis-note .sep{ opacity: .7; }
.ctis-note abbr, .ctis-note a{ text-decoration: none; border-bottom: none; color: inherit; }
.ctis-note, .ctis-note *{ box-shadow: none !important; filter: none !important; }

/* =========================================
   3) LES AVANTAGES DU CTIS (3+2)
   ========================================= */
.ctis-benefits .container{ width: min(1200px, 92vw); margin: 0 auto; }
.ctis-benefits__h2{
  margin: 0 0 12px;
  color: #0e4d82; font-weight: 800;
  font-size: clamp(22px, 2.6vw, 28px);
}
.ctis-benefits__h2::after{
  content:""; display:block; width: 120px; height: 3px; margin-top: 8px;
  background: #0e4d82; border-radius: 2px;
}

.ctis-benefits__card{
  position: relative; border-radius: 6px; overflow: hidden; background: #eef2f7;
}
.ctis-benefits__card::before{
  content:""; position:absolute; inset:0;
  background:
    linear-gradient(rgba(255,255,255,.70), rgba(255,255,255,.70)),
    var(--bg, none) center/cover no-repeat;
}

/* Grille 3+3 avec placements manuels */
.ctis-benefits__grid{
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: start;             /* important pour aligner la ligne haute */
  justify-items: center;
  gap: clamp(12px, 2vw, 24px) clamp(24px, 4vw, 48px);
  padding: clamp(16px, 2.5vw, 26px);
  list-style: none;
  margin: 0;
}

/* Ligne 1 : colonnes 1, 3, 5 */
.ctis-benefits__grid > li:nth-child(1){ grid-column: 1; grid-row: 1; }
.ctis-benefits__grid > li:nth-child(2){ grid-column: 3; grid-row: 1; }
.ctis-benefits__grid > li:nth-child(3){ grid-column: 5; grid-row: 1; }

/* Ligne 2 : colonnes 1, 3, 5 */
.ctis-benefits__grid > li:nth-child(4){ grid-column: 1; grid-row: 2; }
.ctis-benefits__grid > li:nth-child(5){ grid-column: 3; grid-row: 2; }
.ctis-benefits__grid > li:nth-child(6){ grid-column: 5; grid-row: 2; }


/* Item vertical (icône au-dessus) */
.benefit{
  display: flex; 
  flex-direction: column; 
  align-items: center; 
  text-align: center; 
  gap: 10px;
  height: 100%;;
}
.benefit__icon{
  width: clamp(88px, 7.5vw, 104px);
  height: clamp(88px, 7.5vw, 104px);
  object-fit: contain;
  border-radius: 50%;
  border: 4px solid #0e4d82;
  padding: clamp(10px, 1vw, 12px);
  background: #fff;
  display: block;
}

.benefit__text{
  margin: 0;
  color: #1c2442;
  font-size: clamp(15px, 1.8vw, 18px);  /* ↑ un peu plus gros */
  line-height: 1.55;
  max-width: 20ch;                      /* pour forcer un retour à la ligne et “remplir” la carte */
}
.benefit__text strong{
  font-weight: 800;
}


/* Responsive : 2 colonnes → 1 colonne et reset placement */
@media (max-width: 980px){
  .ctis-benefits__grid{
    grid-template-columns: repeat(2, 1fr);
    gap: 18px 22px; padding: 18px;
  }
  .ctis-benefits__grid > li{
    grid-column: auto !important; grid-row: auto !important; justify-self: stretch;
  }
  .benefit{ flex-direction: row; text-align: left; gap: 12px; }
  .benefit__icon{ width: 64px; height: 64px; padding: 8px; }
  .benefit__text{ font-size: 15px; line-height: 1.4; }
}
@media (max-width: 560px){
  .ctis-benefits__grid{ grid-template-columns: 1fr 1fr; gap: 14px; padding: 14px; }
  .benefit{ flex-direction: row; gap: 10px; }
  .benefit__icon{ width: 56px; height: 56px; padding: 8px; border-width: 3px; }
  .benefit__text{ font-size: 14px; }
}
@media (max-width: 380px){
  .benefit__icon{ width: 48px; height: 48px; padding: 6px; }
  .benefit__text{ font-size: 13px; }
}

/* =========================================
   4) PENSÉ POUR DURER, CONÇU POUR AGIR
   ========================================= */
.ctis-built{ padding-block: 36px 44px; }
.ctis-built__h2{
  margin: 0 0 10px; text-align: right; color: #0e4d82;
  font-weight: 800; font-size: clamp(22px, 2.6vw, 28px); position: relative;
}
.ctis-built__h2::after{
  content:""; display: block; width: 170px; height: 4px; margin: 8px 0 0 auto;
  background: #0e4d82; border-radius: 2px; box-shadow: 0 8px 16px rgba(14,77,130,.25);
}

.ctis-built__intro{
  margin: 10px auto 24px; text-align: center; color: #1c2442;
  font-size: clamp(14px, 1.6vw, 16px); line-height: 1.5;
}
.ctis-built__intro strong{ font-weight: 800; }

.ctis-built__grid{
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: clamp(18px, 3vw, 36px); list-style: none; padding: 0; margin: 0; align-items: start;
}

.bitem{ text-align: center; }
.bitem__icon{
  width: clamp(80px, 7vw, 96px); height: auto; margin: 0 auto 10px;
  display: block; object-fit: contain;
  /* pas de contour pour cette section */
  border: none; border-radius: 0; padding: 0; background: transparent; box-shadow: none; filter: none;
}
.bitem__title{ margin: 0 0 6px; color: #1c2442; font-weight: 800; font-size: clamp(14px, 1.6vw, 16px); line-height: 1.25; }
.bitem__text{ margin: 0; color: #1c2442; font-size: clamp(13px, 1.5vw, 15px); line-height: 1.45; }

@media (max-width: 1024px){
  .ctis-built__grid{ grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px){
  .ctis-built__grid{ grid-template-columns: 1fr; }
  .bitem__icon{ width: 64px; }
}
/* ===== Vidéo de présentation ===== */
.ctis-video .container { width: min(1200px, 92vw); margin: 0 auto; }
.ctis-video__h2{
  margin: 0 0 12px;
  color: #0e4d82;
  font-weight: 800;
  font-size: clamp(20px, 2.6vw, 28px);
}
.ctis-video__h2::after{
  content:"";
  display:block;
  width: 120px; height: 3px; margin-top: 8px;
  background:#0e4d82; border-radius:2px;
}

/* Wrapper responsive 16:9 */
.ctis-video__player{
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  background: #eef2f7;
  box-shadow: 0 8px 20px rgba(0,0,0,.08);
}

/* réserve la hauteur via ratio (évite le layout shift) */
.ctis-video__player::before{
  content:"";
  display:block;
  padding-top: 56.25%; /* 16:9 */
}

.ctis-video__media{
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  display: block;
  object-fit: cover;  /* remplissage propre */
}

/* petits écrans : mêmes styles, rien à changer */
/* === BANNIÈRE IMAGE (hero) === */
.banner-hero { padding: 0; }

.banner-hero-wrap{
  position: relative;
  width: 100%;
  aspect-ratio: 1920 / 560;
  max-height: 560px;
  overflow: hidden;
  background: #e7ecf6;
}

.banner-hero-media{
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  display: block;
  object-fit: cover; object-position: center;
  filter: brightness(0.85) contrast(1.02) saturate(0.96);
}

/* on garde ton overlay et le titre inchangés */
.banner-overlay{
  position: absolute; inset: 0;
  background: linear-gradient(rgba(14,77,130,.48), rgba(14,77,130,.48));
  box-shadow: inset 0 0 0 9999px rgba(255,255,255,.44);
  pointer-events: none;
}
.banner-title{
  position: absolute; left: 50%; top: clamp(18%, 22vh, 32%);
  transform: translateX(-50%);
  margin: 0; padding: 0 1rem; color: #fff; text-align: center;
  text-transform: uppercase; letter-spacing: .04em; font-weight: 900;
  font-size: clamp(42px, 6.2vw, 92px);
  text-shadow: 0 4px 18px rgba(0,0,0,.55), 0 1px 0 rgba(0,0,0,.25);
}
@media (max-width: 620px){
  .banner-title{ top: 28%; font-size: clamp(36px, 9vw, 64px); }
  .banner-hero-wrap{ aspect-ratio: 16/9; }
}


/* Texte */
/* ===============================
   PRÉFOOTER VISUEL
   =============================== */
.prefooter-band{
  width: 100%;
  margin-top: clamp(40px, 6vw, 80px);
}

/* Le container qui contient l'image full width */
.prefooter-fullbleed{
  width: 100%;
}

/* L'image elle-même : full width, ratio maîtrisé */
.prefooter-fullbleed img{
  width: 100%;
  max-height: clamp(180px, 28vh, 340px);
  object-fit: cover;
  display: block;
  filter: none;
}

/* Mobile : on laisse un peu plus de hauteur, cadré vers le haut */
@media (max-width: 600px){
  .prefooter-fullbleed img{
    max-height: 220px;
    object-position: center top;
  }
}

.prefooter-media-bg{
  width:100%;
  /* ratio approx. de l'image d'origine pour éviter le zoom : 1906x615 ≈ 3.1 */
  aspect-ratio: 1906 / 615;
  background: var(--pf) top center / contain no-repeat; /* contain = pas de crop */
  margin-top: clamp(40px,6vw,80px);
}
.prefooter-media-bg{
  width: 100%;
  aspect-ratio: 1906 / 615;                 /* pas de crop */
  background: #fff var(--pf) center bottom / contain no-repeat !important;
  margin-top: clamp(40px,6vw,80px);

  /* neutralise toute altération visuelle */
  filter: none !important;
  opacity: 1 !important;
  mix-blend-mode: normal !important;
}

/* au cas où l’ancienne variante serait encore là, on la coupe */
.prefooter-media::after,
.prefooter-media-bg::after{ display:none !important; }
/* --- Note terminologie (VPG) — version unique & mobile friendly --- */
.ctis-note{
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 5px;
  align-items: center;
  padding: 10px 5px;
  border-radius: 10px;
  background: #c7d3e3;
  border-left: 4px solid #0e4d82;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.7);
  width: fit-content;
}

.ctis-note__icon{
  width: 32px;
  height: 32px;
  display: block;
  object-fit: contain;
  margin-top: 0;
}

.ctis-note__text{
  margin: 0;
  padding-top: 0;
  line-height: 1.4;
  font-style: italic;
  color: #243152;
  font-size: clamp(12px, 1.6vw, 14px);
  white-space: normal;  /* <<< très important : plus de overflow horizontal */
}

.ctis-note__text .vpg{ 
  font-weight: 800; 
  color: #0e4d82; 
  font-style: normal; 
}

.ctis-note__text .tpcs{ 
  font-weight: 800; 
  color: #ad2330; 
  font-style: normal; 
}

.ctis-note .sep{ opacity: .7; }

.ctis-note abbr,
.ctis-note a{
  text-decoration: none;
  border-bottom: none;
  color: inherit;
}
@media (max-width: 600px){
  .section{
    padding-block: 20px;
  }

  .ctis-what__grid{
    gap: 14px;
  }

  .ctis-built__intro{
    margin-bottom: 18px;
  }
}
