/* =========================================================
   HOME + SPLIT (FUSION CLEAN) — sans conflits
   Remplace style-home.css + style-split.css
   ========================================================= */

/* =========================
   VARIABLES
   ========================= */
:root{
  --bg-dark: #182542;
  --overlay: rgba(10,15,25,0.65);
  --text-light: #ffffff;

  /* espace stable ~1cm visuel */
  --gap-1cm-px: 38px;
}

/* =========================
   RESET / BASE
   ========================= */
*{ box-sizing:border-box; margin:0; padding:0; }
html, body{ height:100%; }

body{
  font-family: Arial, Helvetica, sans-serif;
  background: var(--bg-dark);
  color: var(--text-light);
  display:flex;
  flex-direction:column;
}

/* =========================
   BACKGROUND (HOME)
   ========================= */
.bg-video{
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  z-index: -3;
  pointer-events:none;
}

/* Home: pas de video */
.page-home .bg-video{ display:none; }

.page-overlay{
  position: fixed;
  inset: 0;
  background: rgba(187, 194, 207, 0.15);
  z-index: -2;
}

.bg-logo{
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  object-position: center;
  opacity: 0.35;
  z-index: -1;
  pointer-events: none;
}

/* =========================
   IMAGE FIXE (Nous.png)
   ========================= */
.imagexxx{
  position: fixed;
  width: 70vw;
  height: 70vh;
  top: 70%;
  left: 50%;
  right: 0%;
  transform: translate(-50%, -50%);
  pointer-events:none;
  z-index: 0;
}

.imagexxx img{
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display:block;
}

/* mobile : on réduit et on recentre */
@media (max-width: 900px){
  .imagexxx{
    width: 92vw;
    height: 40vh;
    top: 60%;
    left: 50%;
  }
}

/* =========================
   CONTENT WRAPPER
   ========================= */
.page-content{
  max-width: 1200px;
  margin: 0 auto;
  padding: 110px 6% 60px;
  flex: 1 0 auto;
}

/* Sur HOME : libère la largeur pour le split full viewport */
.page-home .page-content{
  max-width: none;
  width: 100%;
  margin: 0;
}

/* =========================
   I18N VISIBILITY
   ========================= */
[data-lang]{ display:inline; }
/* défaut FR */
[data-lang]:not([data-lang="fr"]){ display:none; }

/* on s'assure que le texte dans who-mini reste inline */
.who-mini [data-lang]{ display:inline; }

/* =========================================================
   SPLIT FULL VIEWPORT (HOME)
   ========================================================= */
.page-home .contact-split{
  display: grid;
  grid-template-columns: calc(50vw - 0.5cm) calc(50vw - 0.5cm);
  column-gap: 1cm;

  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);

  align-items: stretch;
}

/* anti-débordement */
.page-home .contact-left,
.page-home .contact-right{
  min-width: 0;
}

/* =========================================================
   ROTATEUR (gauche)
   ========================================================= */
.page-home .contact-left{
  display: flex;
  align-items: flex-start;
}

/* conteneur image rotator */
.page-home .home-image-rotator{
  position: relative;
  aspect-ratio: 1 / 0.8; /* garde ton rendu actuel */
  width: 90%;
  height: auto;

  border-radius: 16px;
  overflow: hidden;
}

/* image plein cadre */
.page-home .home-image-rotator > img{
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

/* =========================================================
   COLONNE DROITE TEXTE (2ème bloc)
   ========================================================= */
.page-home .contact-right{ width: 100%; }

.page-home .accueil-right-text{
  white-space: pre-wrap;
  line-height: 1.75;
  font-size: 20px;
}

/* =========================================================
   MOBILE – 1 COLONNE
   ========================================================= */
@media (max-width: 900px){
  .page-home .page-content{
    padding-left: 5%;
    padding-right: 5%;
  }

  .page-home .contact-split{
    grid-template-columns: 1fr;
    column-gap: 0;
    width: auto;
    margin-left: 0;
    margin-right: 0;
  }
}

/* =========================================================
   WHO CARD (Qui sommes-nous)
   ========================================================= */
.who-card{
  position: relative;
  border-radius: 18px;
  padding: 26px 22px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  backdrop-filter: blur(10px);
  box-shadow: 0 14px 28px rgba(0,0,0,0.20);
  overflow: hidden;
  min-height: 180px;
}

.who-title{
  font-size: clamp(30px, 3.2vw, 35px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: .3px;
}

/* couche hover (le “Plus de détails...”) */
.who-hover{
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 18px;

  background: linear-gradient(to top, rgba(0,0,0,0.55), rgba(0,0,0,0.05));
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .25s ease, transform .25s ease;

  /* IMPORTANT: évite de bloquer les clics quand invisible */
  pointer-events: none;
}

.who-card:hover .who-hover{
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.who-mini{
  margin: 0;
  font-size: 30px;
  line-height: 1.55;
  opacity: .95;
  max-width: 52ch;
}

.who-arrow{
  width: 46px;
  height: 46px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.14);
  color: #fff;
  font-size: 30px;
  cursor: pointer;
  transition: transform .15s ease, background .15s ease;
  flex: 0 0 auto;
}
.who-arrow--fixed{
  position: absolute;
  right: 16px;
  bottom: 16px;
  z-index: 2;
}

.who-arrow:hover{
  transform: translateY(-2px);
  background: rgba(255,255,255,0.22);
}



/* =========================================================
   BASE MODAL (commun aux 3)
   ========================================================= */
.modal-overlay{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.65);
  display: none;
  z-index: 999999;

  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 24px 16px;
}

.modal-overlay.is-open{
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.modal-box{
  width: min(980px, 92vw);
  margin: 0;

  border-radius: 18px;
  background: rgba(20,22,28,0.96);
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow: 0 20px 60px rgba(0,0,0,0.45);
  backdrop-filter: blur(10px);

  max-height: calc(100vh - 48px);
  overflow: hidden;
  position: relative;
  padding: 18px 18px 14px;
}

.modal-title{
  margin: 8px 46px 12px 8px;
  font-size: clamp(22px, 2.2vw, 40px);
  line-height: 1.2;
}

.modal-close{
  position: absolute;
  top: 12px;
  right: 12px;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.10);
  color: #fff;
  font-size: 18px;
  cursor: pointer;
}

.modal-body{
  padding: 8px 10px 16px;
  overflow-y: auto;
  max-height: calc(100vh - 140px);
  white-space: pre-wrap;
  line-height: 1.7;
  font-size: clamp(15px, 1.05vw, 30px);
  opacity: .96;
}

/* RTL */
html[dir="rtl"] .modal-body{
  line-height: 1.9;
}



/* les 3 modales doivent être position:relative pour le ::before */
.about-overlay .about-modal{
  position: relative;
  overflow: hidden;
}

/* Contenu au-dessus */
.about-overlay .about-modal > *{
  position: relative;
  z-index: 1;
}

/* MODALE 1 */
#aboutOverlay1 .about-modal::before{
  content:"";
  position:absolute;
  inset:0;
  background: url("images/accueil/image3.png") center/cover no-repeat;
  opacity: 0.25;
  z-index: 0;
}

/* MODALE 2 */
#aboutOverlay2 .about-modal::before{
  content:"";
  position:absolute;
  inset:0;
  background: url("images/accueil/informatique1.png") center/cover no-repeat;
  opacity: 0.35;
  z-index: 0;
}

/* MODALE 3 */
#aboutOverlay3 .about-modal::before{
  content:"";
  position:absolute;
  inset:0;
  background: url("images/accueil/image6.png") center/cover no-repeat;
  opacity: 0.35;
  z-index: 0;
}


/* contenu au-dessus du fond */
.modal-box > *{
  position: relative;
  z-index: 1;
}

/* =========================
   ABOUT (3 modales) — isolé du footer
   ========================= */
.aboutx-scope.about-overlay{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.65);
  display: none;
  z-index: 999999;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 24px 16px;
}

.aboutx-scope.about-overlay.is-open{
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.aboutx-scope .about-modal{
  width: min(980px, 92vw);
  margin: 0;
  border-radius: 18px;
  background: rgba(20,22,28,0.96);
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow: 0 20px 60px rgba(0,0,0,0.45);
  backdrop-filter: blur(10px);
  max-height: calc(100vh - 48px);
  overflow: hidden;
  position: relative;
  padding: 18px 18px 14px;
}

.aboutx-scope .about-title{
  margin: 8px 46px 12px 8px;
  font-size: clamp(22px, 2.2vw, 40px);
  line-height: 1.2;
}

.aboutx-scope .about-close{
  position: absolute;
  top: 12px;
  right: 12px;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.10);
  color: #fff;
  font-size: 18px;
  cursor: pointer;
}

.aboutx-scope .about-body{
  padding: 8px 10px 16px;
  overflow-y: auto;
  max-height: calc(100vh - 140px);
  -webkit-overflow-scrolling: touch;
  white-space: pre-wrap;
  line-height: 1.7;
  font-size: clamp(15px, 1.05vw, 30px);
  opacity: .96;
  font-family: Arial, Helvetica, sans-serif;
}

html[dir="rtl"] .aboutx-scope .about-body{
  line-height: 1.9;
}

/* =========================================================
   ABOUT MODALS (indépendantes du footer)
   ========================================================= */

.about-overlay{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.65);
  display: none;
  z-index: 999999;
  padding: 24px 16px;
}

.about-overlay.is-open{
  display: flex !important;
  align-items: flex-start;
  justify-content: center;
}

.about-overlay .about-modal{
  width: min(980px, 92vw);
  border-radius: 18px;
  background: rgba(20,22,28,0.96);
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow: 0 20px 60px rgba(0,0,0,0.45);
  padding: 18px;
  max-height: calc(100vh - 48px);
  overflow: hidden;
}

.about-overlay .about-body{
  overflow-y: auto;
  max-height: calc(100vh - 140px);
}

/* =========================
   ROTATEUR HOME
   ========================= */
.home-image-rotator{
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.home-image-rotator .js-rotator-img{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;

  opacity: 0;
  transition: opacity 1400ms cubic-bezier(.22,.61,.36,1);
  will-change: opacity;
}

.home-image-rotator .js-rotator-img.is-active{
  opacity: 1;
}

/* sécurité si JS KO */
.home-image-rotator .js-rotator-img:first-child{
  opacity: 1;
}


/* =========================
   CADRE TEXTE WHO-MINI
   ========================= */
.who-mini{
  display: inline-block;          /* cadre ajusté au texte */
  background: rgba(0,0,0,0.75);   /* fond noir semi-transparent */
  color: #fff;                    /* texte blanc lisible */
  padding: 14px 18px;             /* espace interne */
  border-radius: 12px;            /* coins arrondis */
  line-height: 1.6;
  max-width: 90%;                 /* évite débordement */
  backdrop-filter: blur(4px);     /* effet léger premium */
}




/* =========================================================
   HOME PREMIUM (NEW) - Add at the end of style-home.css
   Namespace: .home-premium / .hp-*
   ========================================================= */

.home-premium{
  position: relative;
  padding: 34px 0 18px;
  z-index: 2; /* au-dessus du background overlay/video */
}

.home-premium .hp-container{
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
}

/* HERO LAYOUT */
.home-premium .hp-hero{
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 22px;
  align-items: center;
  padding: 22px;
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(8, 12, 22, .55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.home-premium .hp-eyebrow{
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.72);
}

.home-premium .hp-title{
  margin: 0 0 12px;
  font-size: clamp(28px, 3vw, 44px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: rgba(255,255,255,.92);
}

.home-premium .hp-subtitle{
  margin: 0 0 16px;
  font-size: 17.5px;
  line-height: 1.7;
  color: rgba(255,255,255,.72);
  max-width: 70ch;
}

/* TAGS */
.home-premium .hp-tags{
  list-style: none;
  padding: 0;
  margin: 0 0 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.home-premium .hp-pill{
  padding: 9px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.05);
  color: rgba(255,255,255,.88);
  font-size: 13px;
  font-weight: 650;
}

/* CTA BUTTONS */
.home-premium .hp-cta{
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 6px;
}

.home-premium .hp-btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  padding: 12px 16px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.04);
  color: rgba(255,255,255,.92);
  font-weight: 750;
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
}

.home-premium .hp-btn:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.22);
}

.home-premium .hp-btn--primary{
  background: rgba(90, 150, 255, .18);
  border-color: rgba(90, 150, 255, .35);
}

.home-premium .hp-btn--primary:hover{
  background: rgba(90, 150, 255, .24);
  border-color: rgba(90, 150, 255, .48);
}

.home-premium .hp-btn--ghost{
  background: transparent;
}

.home-premium .hp-note{
  margin: 14px 0 0;
  font-size: 15px;
  line-height: 1.6;
  color: rgba(255,255,255,.62);
}

/* ===============================
   HP VISUAL (Right) - LOGO BACKGROUND
   =============================== */

.home-premium .hp-visual{
  position: relative;
  height: 290px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.12);
  overflow: hidden;
  background: rgba(255,255,255,.02);
}

/* Logo en fond (non coupé) */
.home-premium .hp-visual__bg{
  position: absolute;
  inset: 0;

  /* ✅ garde le logo entier, centré */
  background: url("images/accueil/logo.png") center / contain no-repeat;

  /* rend le logo plus discret (premium) */
  opacity: .95;
  filter: brightness(.95) contrast(1.1);
  z-index: 1;
}

/* Overlay sombre pour homogénéité + lisibilité */
.home-premium .hp-visual__overlay{
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(10,15,25,.35),
    rgba(10,15,25,.50)
  );
  z-index: 2;
}

/* Halo IA */
.home-premium .hp-visual__glow{
  position: absolute;
  inset: -40%;
  background: radial-gradient(circle at 35% 30%, rgba(90,150,255,.35), transparent 55%);
  z-index: 3;
}

/* Grille data */
.home-premium .hp-visual__grid{
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,.10) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,.10) 1px, transparent 1px);
  background-size: 34px 34px;
  opacity: .12;
  z-index: 4;
}

/* TRUST STRIP */
.home-premium .hp-trust{
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.home-premium .hp-trust__item{
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(8, 12, 22, .42);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.home-premium .hp-trust__kpi{
  margin: 0 0 4px;
  font-weight: 800;
  color: rgba(255,255,255,.92);
}

.home-premium .hp-trust__label{
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: rgba(255,255,255,.68);
}

/* RESPONSIVE */
@media (max-width: 980px){
  .home-premium .hp-hero{
    grid-template-columns: 1fr;
  }
  .home-premium .hp-visual{
    height: 220px;
  }
  .home-premium .hp-trust{
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px){
  .home-premium .hp-container{
    width: min(1120px, calc(100% - 28px));
  }
  .home-premium .hp-hero{
    padding: 18px;
  }
  .home-premium .hp-btn{
    width: 100%;
  }
}

/* =========================================================
   BRIDGE 2 PILLARS (NEW) - Add at end of style-home.css
   Namespace: .hp-bridge / .hp-bridgeCard / .hp-*
   ========================================================= */

.hp-bridge{
  position: relative;
  padding: 18px 0 34px;
  z-index: 2;
}

.hp-bridge__head{
  max-width: 860px;
  margin: 0 auto 14px;
  text-align: left;
}

.hp-bridge__title{
  margin: 0 0 10px;
  font-size: clamp(20px, 2.1vw, 28px);
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: rgba(255,255,255,.92);
}

.hp-bridge__lead{
  margin: 0;
  font-size: 15px;
  line-height: 1.7;
  color: rgba(255,255,255,.70);
}

/* GRID */
.hp-bridge__grid{
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

/* CARDS */
.hp-bridgeCard{
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(8, 12, 22, .45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  padding: 18px;
  overflow: hidden;
  position: relative;
}

.hp-bridgeCard::before{
  content:"";
  position: absolute;
  inset: 0;
  opacity: .55;
  pointer-events: none;
  background: radial-gradient(circle at 20% 10%, rgba(90,150,255,.18), transparent 55%);
}

.hp-bridgeCard--industrial::before{
  background: radial-gradient(circle at 20% 10%, rgba(255,170,90,.14), transparent 55%);
}

/* top */
.hp-bridgeCard__top{
  position: relative;
  z-index: 1;
  display: grid;
  gap: 6px;
  margin-bottom: 10px;
}

.hp-bridgeCard__kicker{
  margin: 0;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.65);
}

.hp-bridgeCard__title{
  margin: 0;
  font-size: 18px;
  line-height: 1.25;
  color: rgba(255,255,255,.92);
}

/* text */
.hp-bridgeCard__text{
  position: relative;
  z-index: 1;
  margin: 0 0 12px;
  color: rgba(255,255,255,.72);
  line-height: 1.7;
  font-size: 14.5px;
}

/* bullets */
.hp-bridgeCard__bullets{
  position: relative;
  z-index: 1;
  margin: 0 0 12px;
  padding-left: 18px;
  color: rgba(255,255,255,.70);
  line-height: 1.7;
  font-size: 14px;
}

.hp-bridgeCard__link{
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 2px;
  text-decoration: none;
  font-weight: 800;
  color: rgba(255,255,255,.92);
  border-bottom: 1px solid rgba(255,255,255,.22);
  padding-bottom: 2px;
  transition: transform .18s ease, border-color .18s ease, opacity .18s ease;
}

.hp-bridgeCard__link:hover{
  transform: translateY(-1px);
  border-color: rgba(255,255,255,.40);
}

/* responsive */
@media (max-width: 980px){
  .hp-bridge__grid{
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px){
  .home-premium .hp-visual{ height: 260px; }
  .home-premium .hp-visual__bg{ background-size: 75%; opacity: .95; }
  .home-premium .hp-visual__overlay{
    background: linear-gradient(180deg, rgba(10,15,25,.35), rgba(10,15,25,.65));
  }
  .home-premium .hp-visual__grid{ opacity: .18; }
  .home-premium .hp-visual__glow{
    background: radial-gradient(circle at 50% 35%, rgba(90,150,255,.45), transparent 60%);
  }
}