/* =========================================================
   SPLIT FULL VIEWPORT – CODE COMPLET
   ========================================================= */

/* 1) Libère le conteneur (sinon max-width bloque le split) */
.page-home .page-content{
  max-width: none;
  width: 100%;
  margin: 0;
}

/* 2) Split */
.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;
}


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

/* =========================================================
   ROTATEUR – FORMAT CARRÉ (1:1)
   ========================================================= */

/* Colonne gauche */
.page-home .contact-left{
  display: flex;
  align-items: flex-start;
}

/* Conteneur du rotateur : CARRÉ */
.page-home .home-image-rotator{
  position: relative;

  /* 🔥 CARRÉ PARFAIT */
  aspect-ratio: 1 / 0.8;

  /* prend toute la largeur de la moitié gauche */
  width: 90%;

  /* la hauteur est calculée automatiquement */
  height: auto;

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

/* Image toujours plein cadre */
.page-home .home-image-rotator > img{
  width: 100%;
  height: 100%;
  display: block;

  object-fit: cover;
  object-position: center;
}

/* =========================================================
   COLONNE DROITE – TEXTE
   ========================================================= */
.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 (hover + arrow)
   ========================= */
.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: 170px;
}

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

/* Layer hover */
.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;
  font-size: 30px;
  line-height: 1.55;
  transform: translateY(10px);
  transition: opacity .25s ease, transform .25s ease;
}

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

.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:hover{
  transform: translateY(-2px);
  background: rgba(255,255,255,0.22);
}

/* =========================
   ABOUT MODAL (scrollable)
   ========================= */
.about-overlay{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.65);
  display: none;
  z-index: 9999;

  /* important pour scroll externe */
  overflow-y: auto;
  padding: 24px 16px;
}

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

.about-modal{
  width: min(980px, 92vw);
  margin: 0;
  border-radius: 18px;
  background: rgba(20,22,28,0.92);
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow: 0 20px 60px rgba(0,0,0,0.45);
  backdrop-filter: blur(10px);

  /* limite hauteur + scroll interne */
  max-height: calc(100vh - 48px);
  overflow: hidden;
  position: relative;
  padding: 18px 18px 14px;
}

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

.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;
}

.about-body{
  padding: 8px 10px 16px;
  overflow-y: auto;
  max-height: calc(100vh - 140px);
  -webkit-overflow-scrolling: touch;

  /* ton JS met déjà whiteSpace + lineHeight, mais on sécurise */
  white-space: pre-wrap;
  line-height: 1.65;
  font-size: 40px;
  opacity: .96;
}
