/* ==========================================================================
   Intégrations — « Nuage de points » (essai 02 du labo) dans le hero
   Chargé uniquement par les 3 pages intégrations (FR / EN / ES).

   Version 2 (20/11/2026) : hero plus haut et aéré, le symbole a sa
   propre place au lieu d'être noyé sous le texte.
   - Ordinateur (> 1024 px) : texte et filtres à gauche, grand symbole Gillia
     en points à droite, sur toute la hauteur du hero.
   - Tablette et mobile : texte centré, symbole sous le paragraphe, filtres
     dessous (rangée défilante comme avant).
   Le canevas couvre tout le hero mais ne capte aucun clic : les filtres et
   liens restent utilisables ; le script écoute la souris sur le hero. Il
   place le symbole dans .int-hero__spot (case vide de la grille) et pâlit
   les points qui passent sous le texte.
   ========================================================================== */

/* ---------- Hero : plus haut, contenu centré verticalement ---------- */
.page-integrations .page-hero{
  display:flex;
  align-items:center;
  min-height:max(620px, 82vh);
  min-height:max(620px, 82svh);
  padding-top:clamp(112px, 14vh, 160px);
  padding-bottom:clamp(48px, 8vh, 96px) !important;   /* remplace le padding-bottom:30px en ligne */
}
.page-integrations .page-hero > .container{
  position:relative;
  z-index:1;
  min-width:0;          /* le hero est en flex : sans ça, la rangée de filtres élargirait le bloc sur mobile */
}

/* ---------- Canevas de points ---------- */
.page-integrations .page-hero .int-nuage{
  position:absolute;
  inset:0;
  z-index:0;
  pointer-events:none;
  opacity:.92;
  /* halo lime très doux derrière le symbole (position posée par le script) */
  background:radial-gradient(circle at var(--int-gx, 75%) var(--int-gy, 55%),
    rgba(205,244,92,.30) 0,
    rgba(205,244,92,.10) calc(var(--int-gr, 260px) * .55),
    rgba(205,244,92,0) var(--int-gr, 260px));
}
.int-nuage canvas{
  position:absolute; inset:0;
  width:100%; height:100%;
  pointer-events:none;
}

/* ---------- Grille du hero ---------- */
.page-integrations .int-hero{
  display:grid;
  grid-template-columns:minmax(0, 1fr);
  grid-template-areas:"copy" "spot" "filters";
  justify-items:stretch;
}
.page-integrations .int-hero__copy{ grid-area:copy; }
.page-integrations .int-hero__spot{
  grid-area:spot;
  height:clamp(300px, 82vw, 460px);
  margin-top:30px;
  pointer-events:none;
}
.page-integrations .int-hero .integ-filters{
  grid-area:filters;
  margin:26px 0 0;      /* pas de marges auto en grille : la rangée garde la largeur du bloc et défile */
  min-width:0;
}

/* Ordinateur : texte à gauche, symbole à droite sur toute la hauteur */
@media (min-width: 1025px){
  .page-integrations .int-hero{
    grid-template-columns:minmax(0, 1.08fr) minmax(0, .92fr);
    grid-template-areas:"copy spot" "filters spot";
    grid-template-rows:auto auto;
    align-content:center;
    column-gap:clamp(40px, 5vw, 96px);
    text-align:left !important;            /* remplace text-align:center en ligne */
  }
  .page-integrations .int-hero__copy{ align-self:end; }
  .page-integrations .int-hero__copy h1{
    margin:0 0 26px !important;
    max-width:13ch !important;
    text-wrap:balance;
  }
  .page-integrations .int-hero__copy .lead{
    margin:0 !important;
    max-width:48ch;
  }
  .page-integrations .int-hero__spot{
    align-self:stretch;
    height:auto;
    min-height:clamp(440px, 62vh, 760px);
    min-height:clamp(440px, 62svh, 760px);
    margin:0;
  }
  .page-integrations .int-hero .integ-filters{
    align-self:start;
    flex-wrap:wrap;
    justify-content:flex-start;
    overflow:visible;
    max-width:none;
    margin:34px 0 0;
    gap:8px 6px;
  }
  .page-integrations .int-hero .integ-filter:first-child,
  .page-integrations .int-hero .integ-filter:last-child{ margin-inline:0; }
}

/* Mobile : un peu moins d'air en haut, symbole bien lisible */
@media (max-width: 760px){
  .page-integrations .page-hero{
    min-height:0;
    padding-top:116px;
  }
  .page-integrations .int-hero__spot{ height:clamp(280px, 80vw, 400px); margin-top:26px; }
}

/* Téléphone (sans survol) : le symbole dévoile le hero (23/11/2026).
   Pas de case réservée au symbole : il est dessiné centré dans le hero,
   par-dessus le texte masqué. Au premier défilement il éclate et le titre,
   le texte et les filtres apparaissent (classe .is-revealed posée par le
   script). Sans script (pas de .is-intro), le texte apparaît au bout de
   2,5 s. Moins d'animations demandé : version habituelle. */
@media (hover: none) and (max-width: 760px) and (prefers-reduced-motion: no-preference){
  .page-integrations .int-hero__spot{ display:none; }
  .page-integrations .page-hero .int-nuage{ background:none; }   /* pas de halo derrière le symbole */
  .page-integrations .page-hero.is-intro:not(.is-revealed) .integ-filters{ pointer-events:none; }   /* filtres invisibles : pas cliquables */
  .page-integrations .int-hero__copy,
  .page-integrations .int-hero .integ-filters{
    opacity:0;
    animation:int-reveal-fallback .5s ease 2.5s forwards;
    transition:opacity .8s ease;
  }
  .page-integrations .page-hero.is-intro .int-hero__copy,
  .page-integrations .page-hero.is-intro .integ-filters{ animation:none; }
  .page-integrations .page-hero.is-revealed .int-hero__copy,
  .page-integrations .page-hero.is-revealed .integ-filters{ opacity:1; }
  .page-integrations .page-hero.is-revealed .integ-filters{ transition-delay:.15s; }
}
@keyframes int-reveal-fallback{ to{ opacity:1; } }

@media (prefers-reduced-motion: reduce){
  .page-integrations .page-hero .int-nuage{ opacity:.8; }
}
