:root{
  --teal: #17a2b8;   /* bleu-vert des boutons / panel locaux */
  --red:  #d9323c;   /* rouge des chiffres + panels */
  --dark: #1f2933;   /* footer + section objectifs */
  --navy: #0b2c4a;   /* titres bleus foncés */
  --text: #1b1f23;
  --muted:#5b6770;
  --white: #fff;
}

*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  font-family: "Montserrat", Arial, sans-serif;
}

.hero-slide{
  height: 100vh;
  background-size: contain;   /* pas de crop */
  background-position: center;
  background-repeat: no-repeat;
  background-color: #000;     /* bandes noires propres */
}

/* NAVBAR */
.navbar-ids{
  background: rgba(0,0,0,0.22);
  border-bottom: 1px solid rgba(255,255,255,0.12);
  padding-top: 14px;
  padding-bottom: 14px;
}
.navbar-ids .nav-link{
  color: rgba(255,255,255,0.92);
  font-weight: 700;
  letter-spacing: .02em;
  text-transform: uppercase;
  font-size: .88rem;
}
.navbar-ids .nav-link:hover{ color: #fff; text-decoration: underline; text-underline-offset: 6px; }
.navbar-ids .nav-link.active{ color:#fff; text-decoration: underline; text-underline-offset: 6px; }

.nav-logo{ height: 44px; width:auto; }
.nav-logo-ctpes{ height: 44px; width:auto; }

/* HERO */
.hero{ position: relative; }
.hero-slide{
  height: 86vh;
  background-size: cover;
  background-position: center;
}
.hero-overlay{
  position:absolute; inset:0;
  height: 86vh;
  background: rgba(0,0,0,0.48);
  pointer-events:none;
}
.hero-content{
  position:absolute; inset:0;
  height: 86vh;
  display:flex;
  flex-direction:column;
  justify-content:center;

  /* ✅ DESCENDRE (augmente/diminue ce nombre) */
  padding-top: 165px;

  z-index: 2;
}

.hero-title{
  color:#fff;
  font-weight: 900;
  text-transform: uppercase;

  /* ✅ comme la photo : plus petit */
  font-size: clamp(26px, 3.2vw, 46px);

  /* ✅ plus compact */
  letter-spacing: .01em;
  line-height: 1.05;

  text-align:center;
  text-shadow: 0 12px 30px rgba(0,0,0,.35);
  margin-bottom: 10px;

  
   transform: translateY(10px); /* ✅ descend le titre */

}

@media (min-width: 1200px){
  .hero-title{ font-size: 42px; }
}

.hero-cards{ margin-top: 18px; }

.hero-card{
  background: rgba(255,255,255,0.82);
  border-radius: 10px;
  overflow:hidden;
  padding: 18px 18px 16px;
  position:relative;
  height: 155px;
}
.hero-card-top{
  display:flex;
  gap: 14px;
  align-items:flex-start;
  margin-bottom: 16px;
}
.hero-icon{
  width: 48px; height:48px;
  border: 3px solid var(--teal);
  border-radius: 999px;
  display:grid;
  place-items:center;
  color: var(--teal);
  background: rgba(23,162,184,0.10);
  flex: 0 0 auto;
}
.hero-icon i{ font-size: 1.35rem; }

.hero-card-title{
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .02em;
  color:#0c2f4e;
  font-size: .98rem;
  line-height: 1.15;
}
.btn-ids{
  background: var(--teal);
  color:#fff;
  font-weight: 800;
  border: 0;
  border-radius: 999px;
  padding: 10px 18px;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.btn-ids:hover{ filter: brightness(.95); color:#fff; }

.hero-card-bottom{
  position:absolute; left:0; right:0; bottom:0;
  height: 10px;
  background: var(--red);
}

.hero-note{
  color: rgba(255,255,255,0.88);
  text-align:left;
  font-size: .95rem;
  margin-left: 4px;
  text-shadow: 0 8px 18px rgba(0,0,0,.35);
}

/* Scroll down */
.scroll-down{
  position:absolute;
  right: 18px;
  bottom: 18px;
  width: 52px; height: 52px;
  border-radius: 999px;
  background: rgba(255,255,255,0.20);
  border: 1px solid rgba(255,255,255,0.25);
  display:grid;
  place-items:center;
  color:#fff;
  text-decoration:none;
}
.scroll-down i{ font-size: 1.4rem; }
.scroll-down:hover{ background: rgba(255,255,255,0.28); color:#fff; }

/* Sections */
.section{ padding: 70px 0; }
.section-title{
  color: var(--navy);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .03em;
  font-size: clamp(28px, 3vw, 44px);
}
.intro-text{
  max-width: 980px;
  margin: 18px auto 0;
  color: var(--navy);
  font-size: clamp(16px, 1.5vw, 24px);
  font-weight: 600;
  line-height: 1.35;
}
.title-underline{
  width: 140px;
  height: 3px;
  background: var(--teal);
  margin: 22px auto 0;
}
.title-underline.white{ background: rgba(255,255,255,.65); }

/* POP SECTION */
.section-pop{ padding-top: 40px; }
.pop-left{ padding-right: 0; }
.pop-right{ position: relative; padding: 40px 30px; }

.dots-bg{
  position:absolute;
  inset: 0;
  background:
    radial-gradient(circle, rgba(124,58,237,.18) 2px, transparent 2px) 0 0/14px 14px;
  opacity: .35;
  pointer-events:none;
}
.vm{ position: relative; z-index: 1; }
.vm-kicker{ font-weight: 800; font-size: 1.05rem; }
.vm-title{ font-weight: 900; letter-spacing: .02em; }
.vm-title.red, .vm-kicker.red{ color: var(--red); }
.vm-title.teal, .vm-kicker.teal{ color: var(--teal); }
.vm-text{
  color: #0d2a45;
  line-height: 1.8;
  font-weight: 500;
}

.pop-grid{
  position: relative;
  display:grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 240px 240px;
}
.pop-tile{
  position: relative;
  overflow:hidden;
  background-size: cover;
  background-position: center;
}
.pop-age{ background-image:url("../img/pop-age.jpg"); }
.pop-social{ background-image:url("../img/pop-social.jpg"); }
.pop-profil{ background-image:url("../img/pop-profil.jpg"); }
.pop-projet{ background-image:url("../img/pop-projet.jpg"); }

.pop-tile-overlay{
  position:absolute; inset:0;
  opacity: .75;
}
.pop-tile-overlay.teal{ background: #0e9fb0; }
.pop-tile-overlay.red{ background: #c7262f; }
.pop-tile-overlay.dark{ background: rgba(0,0,0,.45); }

.pop-tile-text{
  position:absolute; left: 22px; bottom: 22px;
  color: #fff;
  z-index: 2;
}
.pop-tile-title{
  font-weight: 900;
  font-size: 2.2rem;
  line-height: 1;
}
.pop-tile-title.big{ font-size: 2.5rem; }
.pop-tile-sub{
  font-weight: 700;
  opacity: .95;
}

.pop-badge{
  position:absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%,-50%);
  background: #fff;
  color: var(--navy);
  font-weight: 900;
  padding: 14px 28px;
  border-radius: 999px;
  box-shadow: 0 18px 40px rgba(0,0,0,.18);
  letter-spacing: .02em;
  text-transform: uppercase;
}

/* OBJECTIFS */
.section-objectifs{
  background:
    radial-gradient(circle, rgba(255,255,255,.06) 2px, transparent 2px) 0 0/16px 16px,
    linear-gradient(0deg, #1b2430, #1b2430);
}
.obj-card{
  border: 1px dashed rgba(255,255,255,.35);
  padding: 22px;
  display:flex;
  gap: 18px;
  align-items:flex-start;
  color:#fff;
  background: rgba(255,255,255,.04);
}
.obj-icon{
  width: 54px; height:54px;
  border-radius: 10px;
  background: rgba(255,255,255,.08);
  display:grid;
  place-items:center;
  flex: 0 0 auto;
}
.obj-icon i{ font-size: 1.6rem; color: #ff4d57; }
.obj-text{ margin:0; font-weight: 500; line-height: 1.8; }

/* CHIFFRES */
.section-chiffres{
  background: #f2f2f2;
  padding: 80px 0;
}

/* Titre */
.section-chiffres .section-title{
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .03em;
  color: #0b2c4a;
}

/* Bloc chiffre */
.chiffre{
  display: flex;
  align-items: center;
  gap: 25px;   /* espace entre nombre et texte */
}

/* Nombre rouge */
.chiffre-num{
  font-family: "Montserrat", sans-serif;
  font-weight: 900;
  font-size: 72px;
  color: #d9323c;
  line-height: 1;
  min-width: 120px; /* IMPORTANT pour alignement parfait */
  text-align: right;
}

/* Texte description */
.chiffre-text{
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  font-size: 15px;
  color: #0b2c4a;
  line-height: 1.4;
  max-width: 200px;
}

/* SPLIT SECTIONS */
.section-split{ padding: 0; }
.split{
  display:grid;
  grid-template-columns: 1fr 1fr;
  min-height: 520px;
}
.split.reverse{ grid-template-columns: 1fr 1fr; }
.split-img{
  background-size: cover;
  background-position: center;
  min-height: 520px;
}
.split-panel{
  padding: 70px 60px;
  display:flex;
  flex-direction:column;
  justify-content:center;
}
.split-panel-red{ background: var(--red); color:#fff; }
.split-panel-teal{ background: var(--teal); color:#fff; }
.split-title{
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .04em;
  font-size: 44px;
  margin-bottom: 18px;
}
.split-list{
  margin: 0 0 26px 0;
  padding-left: 18px;
  line-height: 1.9;
  font-weight: 500;
}
.split-stats{
  display:grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0;
  margin-top: 10px;
}
.split-stat{
  background: rgba(0,0,0,.10);
  padding: 18px 16px;
  text-align:center;
  border-right: 2px solid rgba(255,255,255,.35);
}
.split-stat:last-child{ border-right: 0; }
.split-stat-num{ font-weight: 900; font-size: 1.15rem; }
.split-stat-sub{ font-weight: 800; font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; opacity:.95; margin-top: 8px; }

/* LOCAUX stats */
.locaux-stats{
  margin-top: 26px;
  background: rgba(0,0,0,.10);
  display:grid;
  grid-template-columns: 1fr 1fr 1fr;
}
.locaux-stat{
  padding: 24px 16px;
  text-align:center;
  border-right: 2px solid rgba(255,255,255,.35);
}
.locaux-stat:last-child{ border-right: 0; }
.loc-num{ font-weight: 900; font-size: 1.15rem; }
.loc-sub{ font-weight: 800; font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; opacity:.95; margin-top: 10px; }

/* FILIERES */
.section-filieres{ background: #fff; }
.fil{
  text-align:left;
  padding-top: 6px;
}
.fil-ico{
  color: var(--red);
  font-size: 52px;
  line-height: 1;
  margin-bottom: 14px;
}
.fil-title{
  font-weight: 900;
  text-transform: uppercase;
  color: #101828;
  margin-bottom: 10px;
}
.fil-list{
  list-style: none;
  padding: 0;
  margin: 0;
  color: #0b2c4a;
  font-weight: 500;
}
.fil-list li{
  position: relative;
  padding-left: 18px;
  margin: 10px 0;
}
.fil-list li::before{
  content: "›";
  position: absolute;
  left: 0;
  top: -1px;
  color: var(--teal);
  font-weight: 900;
}

/* PARTENAIRES */
.section-partenaires{ padding-bottom: 85px; }
.partner-row{
  display:flex;
  justify-content:center;
  align-items:center;
  gap: 46px;
  padding: 50px 10px 30px;
  flex-wrap: wrap;
}
.partner-row img{
  max-height: 70px;
  width:auto;
}

/* FOOTER */
.footer{
  background: var(--dark);
  color: rgba(255,255,255,.85);
}
.footer-title{
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 14px;
}
.footer-list{
  list-style:none;
  padding:0;
  margin:0;
  line-height: 2.1;
}
.footer-list i{ margin-right: 10px; opacity: .85; }
.footer-text{ color: rgba(255,255,255,.72); }

.footer-logo{ height: 58px; width:auto; }

.socials{ display:flex; gap: 14px; margin-top: 10px; }
.social{
  width: 52px; height:52px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.4);
  display:grid;
  place-items:center;
  color:#fff;
  text-decoration:none;
}
.social:hover{ background: rgba(255,255,255,.1); color:#fff; }

.footer-bottom{
  border-top: 1px solid rgba(255,255,255,.12);
  padding: 18px 0;
  color: rgba(255,255,255,.85);
  font-weight: 600;
}

/* Back to top */
.to-top{
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 44px; height: 44px;
  background: var(--teal);
  color:#fff;
  border:0;
  display:none;
  place-items:center;
  z-index: 1000;
}
.to-top.show{ display:grid; }

/* Simple animations (comme l’effet entrée du hero) */
@keyframes rise {
  from{ opacity:0; transform: translateY(18px); }
  to{ opacity:1; transform: translateY(0); }
}
.animate-in{ animation: rise .9s ease-out .15s both; }
.animate-in-delayed{ animation: rise 1.1s ease-out .35s both; }

/* Responsive */
@media (max-width: 992px){
  .hero-slide, .hero-overlay, .hero-content{ height: 92vh; }
  .hero-note{ text-align:center; margin-left: 0; }
  .split{ grid-template-columns: 1fr; }
  .split-panel{ padding: 54px 22px; }
  .split-stats{ grid-template-columns: 1fr; }
  .split-stat{ border-right:0; border-bottom: 2px solid rgba(255,255,255,.35); }
  .split-stat:last-child{ border-bottom:0; }
  .locaux-stats{ grid-template-columns: 1fr; }
  .locaux-stat{ border-right:0; border-bottom: 2px solid rgba(255,255,255,.35); }
  .locaux-stat:last-child{ border-bottom:0; }
  .pop-grid{ grid-template-rows: 200px 200px; }
}




/* ===== POPULATION CIBLE (comme photo 2) ===== */

.pop-grid2{
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 260px 260px;
  gap: 0;
  overflow: hidden;

  /* grand arrondi comme sur la 2ème image */
  border-radius: 38px 38px 38px 38px;
}

/* chaque case */
.pop-item{
  position: relative;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

/* arrondis uniquement sur les coins externes (comme la capture) */
.pop-age2{ border-top-left-radius: 38px; }
.pop-social2{ border-top-right-radius: 18px; }
.pop-profil2{ border-bottom-left-radius: 38px; }
.pop-projet2{ border-bottom-right-radius: 18px; }

/* overlay couleur */
.pop-overlay{
  position:absolute;
  inset:0;
  opacity: .72;
  transition: opacity .25s ease;
}
.pop-overlay.teal{ background:#0ea5b0; }
.pop-overlay.red{ background:#d0323b; }
.pop-overlay.dark{ background: rgba(0,0,0,.35); }
.pop-overlay.dark2{ background: rgba(0,0,0,.45); }

/* texte */
.pop-content{
  position:absolute;
  left: 26px;
  top: 26px;
  z-index: 2;
  color:#fff;
  text-shadow: 0 10px 18px rgba(0,0,0,.35);
}
.pop-content.bottom{
  top: auto;
  bottom: 26px;
}

.pop-title{
  font-family: "Montserrat", Arial, sans-serif;
  font-weight: 900;
  font-size: 44px;
  line-height: 1;
}
.pop-title.big{ font-size: 52px; }

.pop-sub{
  margin-top: 10px;
  font-weight: 700;
  opacity: .95;
  max-width: 200px;
  line-height: 1.25;
}

/* badge centre */
.pop-badge2{
  position:absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%,-50%);
  background: #fff;
  color: #0b2c4a;
  font-weight: 900;
  padding: 14px 30px;
  border-radius: 999px;
  box-shadow: 0 18px 40px rgba(0,0,0,.18);
  text-transform: uppercase;
  letter-spacing: .02em;
  z-index: 5;
}

/* ===== 2 images en noir/blanc puis couleur au hover ===== */
.pop-bw{
  filter: grayscale(100%);
  transition: filter .25s ease, transform .25s ease;
}

/* hover : retour couleur */
.pop-bw:hover{
  filter: grayscale(0%);
  transform: scale(1.01);
}

/* petit effet : au hover on réduit un peu l’overlay sombre */
.pop-bw:hover .pop-overlay{
  opacity: .20;
}

/* responsive */
@media (max-width: 992px){
  .pop-grid2{
    grid-template-columns: 1fr;
    grid-template-rows: 220px 220px 220px 220px;
    border-radius: 26px;
  }
  .pop-age2, .pop-social2, .pop-profil2, .pop-projet2{
    border-radius: 0;
  }
  .pop-age2{ border-top-left-radius: 26px; border-top-right-radius: 26px; }
  .pop-projet2{ border-bottom-left-radius: 26px; border-bottom-right-radius: 26px; }

  .pop-title{ font-size: 40px; }
  .pop-title.big{ font-size: 46px; }
}

.pop-bw.active-color{
  filter: grayscale(0%);
}
.pop-bw.active-color .pop-overlay{
  opacity: .20;
}


/* Anti casse responsive */
*{ box-sizing: border-box; }
img{ max-width:100%; height:auto; }
body{ overflow-x:hidden; }
.hero-card{ height:auto; min-height:155px; }
.hero-title{ padding:0 12px; }
.split{ grid-template-columns: 1fr 1fr; }
@media (max-width: 992px){
  .split{ grid-template-columns: 1fr; }
}


/* ===== VISITE VIRTUELLE 360 (Matterport) ===== */
.section-visite{
  background: #fff;
}

/* boîte responsive (16:9 par défaut) */
.visite-wrap{
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(0,0,0,.12);
  aspect-ratio: 16 / 9;
  background: #000;
}

.visite-iframe{
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* Sur borne verticale : un ratio plus “haut” pour mieux remplir */
@media (min-aspect-ratio: 9/16){
  /* rien */
}
@media (max-aspect-ratio: 9/16){
  .visite-wrap{
    aspect-ratio: 9 / 16;   /* ✅ meilleur rendu en portrait */
    max-width: 720px;
  }
}

.visite-wrap{
  max-width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 60vh;
}
@media (max-aspect-ratio: 9/16){
  .visite-wrap{
    aspect-ratio: 9 / 16;
    min-height: 70vh;
  }
}