/**
Theme Name: Astra Child
Author: Brainstorm Force
Author URI: http://wpastra.com/about/
Description: Astra Child Theme - Titres Soulignes.
Version: 1.2.3
Template: astra
*/


/* ==========================================================================
   CURSEUR CUSTOM (DENT) UNIQUEMENT AU SURVOL DES ÉLÉMENTS CLIQUABLES
========================================================================== */

/* 1. On applique le curseur custom sur tous les éléments cliquables */
a, 
button, 
.btn-icon, 
.card, 
input[type="submit"], 
.elementor-button,
.elementor-clickable,
[role="button"],
.elementor-nav-menu a, /* Menu de navigation Elementor */
.swiper-button-next, .swiper-button-prev /* Flèches de carrousels */ {
    cursor: url('https://labo-jpc.fr/wp-content/uploads/2026/05/1_cursor.svg') 12 12, pointer !important;
}

/* 2. On force TOUS les sous-éléments (textes, icônes) à hériter du curseur de leur parent cliquable */
a *, 
button *, 
.elementor-button *,
.elementor-clickable * {
    cursor: inherit !important;
}

/* ==========================================================================
   Soulignement animé pour les titres 
========================================================================== */

:root {
    --line-scale: 0;
    --line-origin: left;
}

.titre_souligne {
    position: relative !important;
    display: table !important;
    margin-left: auto !important;
    margin-right: auto !important;
    width: max-content !important; 
    max-width: 100% !important;
    text-align: center !important;
}

.titre_souligne::after {
    content: "" !important;
    position: absolute !important;
    bottom: -5px !important;
    left: 0 !important;
    width: 100% !important; 
    height: 2px !important;
    background-color: #FFFFFF !important;
    transform: scaleX(var(--line-scale)) !important;
    transform-origin: var(--line-origin) !important;
    display: block !important;
}

.mentions{
    color: #db8432 !important;
}

.mentions:hover{
    color: #be732c !important;
}

/* ==========================================================================
   CSS POUR L'EFFET DE CROPPING GSAP
   ========================================================================== */

/* Ces styles seront appliqués dynamiquement par le JS, 
   mais il est bon de les avoir en JS pour éviter les sauts visuels */
.gsap-crop-container {
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    /* Ne pas mettre de width fixe ici, GSAP s'en occupe */
}

/* On force l'image à bien se comporter à l'intérieur */
.wp-image-2836.gsap-cropped-image {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover; /* Important pour que l'image ne soit pas écrasée */
    transform-origin: center center; /* Point d'origine du zoom */
}


/* ==========================================================================
   FRISE CHRONOLOGIQUE MODERNE & PREMIUM
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;700&display=swap');

/* Reset pour WordPress : on force la largeur pleine */
.wp-block-html, 
.entry-content .wp-block-html,
.site-content,
.content-area {
    background-color: transparent !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

.frise-modern-wrapper {
    position: relative;
    width: 100vw;
    height: 100vh;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    overflow: hidden;
    background: #000 !important; /* Fond noir par sécurité derrière la vidéo */
    font-family: 'Montserrat', sans-serif;
}

.frise-bg-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.frise-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.1); /* Opacité à 0.3 demandée */
    z-index: 1;
}

.frise-scroll-content {
    display: flex;
    flex-wrap: nowrap;
    width: max-content;
    height: 100%;
    will-change: transform;
    position: relative;
    z-index: 3;
}

.frise-slide {
    width: 100vw;
    height: 100vh;
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background: transparent !important;
}

.slide-content-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    padding: 50px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    text-align: center;
    max-width: 450px;
}

.anim-el {
    opacity: 0;
    display: block;
}

.frise-svg-line {
    position: absolute;
    top: 50%;
    width: 100%;
    height: 60px; /* Un peu plus haut pour accommoder l'épaisseur */
    transform: translateY(-50%);
    z-index: 2;
    pointer-events: none;
}

.draw-line {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
}

.frise-point {
    width: 18px; /* Point légèrement plus grand pour aller avec la ligne épaisse */
    height: 18px;
    background: #FFFFFF;
    border: 4px solid #001f3f;
    border-radius: 50%;
    margin: 0 auto 30px auto;
    transform: scale(0);
}


/* ==========================================================================
   BANDEAU DÉFILANT POUR JPC
   ========================================================================== */

/* Positionnement du widget Elementor avec ta classe */
.bandeau-defilant-jpc {
    width: 100% !important;
    left: 0 !important;
    bottom: 0 !important;
    margin: 0 !important;
    z-index: 999;
}

.bandeau-defilant-jpc .marquee-overlay {
    width: 100%;
    background: #1a2022;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 15px 0;
    overflow: hidden;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.bandeau-defilant-jpc .marquee-wrapper {
    display: flex;
    width: max-content;
    will-change: transform; /* Optimisation GPU pour GSAP */
}

.bandeau-defilant-jpc .marquee-group {
    display: flex;
    align-items: center;
}

.bandeau-defilant-jpc span {
    color: #ffffff;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 0 40px;
    white-space: nowrap;
}

.bandeau-defilant-jpc .dot {
    width: 6px;
    height: 6px;
    background: #e67e22; 
    transform: rotate(45deg);
    display: inline-block;
}

/* Fondu élégant sur les côtés */
.bandeau-defilant-jpc .marquee-overlay::before,
.bandeau-defilant-jpc .marquee-overlay::after {
    content: "";
    position: absolute;
    top: 0;
    width: 150px;
    height: 100%;
    z-index: 5;
    pointer-events: none;
}
.bandeau-defilant-jpc .marquee-overlay::before {
    left: 0;
    background: linear-gradient(to right, rgba(15, 20, 25, 0.8), transparent);
}
.bandeau-defilant-jpc .marquee-overlay::after {
    right: 0;
    background: linear-gradient(to left, rgba(15, 20, 25, 0.8), transparent);
}

/* Ajout pour supporter les images dans le bandeau */
.bandeau-defilant-jpc .marquee-group img {
    height: 18px; /* Ajuste la hauteur de tes logos/images ici */
    width: auto;
    padding: 0 40px; /* Même espacement que ton texte */
    display: block;
}


/* ==========================================================================
   MINI AMIME barre de chargement indiquateur de scroll pour le bandeau horizontal au survol de la section
   ========================================================================== */
.scroll-indicator-jpc {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    pointer-events: none;
}

.line-container {
    position: relative;
    width: 2px; /* Epaisseur d'origine */
    height: 90px; /* Plus long */
    overflow: hidden;
    border-radius: 5px;
}

.line-rail {
    position: absolute;
    top: 0;
    left: 0;
    border-radius: 5px;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.12);
}

.line-spark {
    position: absolute;
    top: -100%;
    left: 0;
    border-radius: 5px;
    width: 100%;
    height: 100%;
    /* Orange dégradé puissant */
    background: linear-gradient(to bottom, 
        rgba(230, 126, 34, 0), 
        rgba(255, 159, 67, 1) 18%, 
        rgba(230, 126, 34, 1) 50%, 
        rgba(255, 159, 67, 1) 82%, 
        rgba(230, 126, 34, 0)
    );
    /* Lueur orange plus forte */
    box-shadow: 0 0 18px 4px rgba(230, 126, 34, 0.95);
    filter: drop-shadow(0 0 10px rgba(230, 126, 34, 0.95)) saturate(1.35);
}

.scroll-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 11px; /* Retour à une taille plus petite et discrète */
    font-weight: 500; /* Poids moyen pour la lisibilité */
    text-transform: uppercase;
    letter-spacing: 4px;
    
    /* STYLE SOLIDE MAIS DISCRET */
    color: #ffffff; 
    opacity: 0.5; /* Opacité à 50% comme demandé */
    
    /* On enlève les contours et les ombres complexes */
    -webkit-text-stroke: 0px transparent;
    paint-order: normal;
    text-shadow: none;
    
    line-height: 1;
}

/* On cible l'icône à l'intérieur de ton bouton */
.fleche-lien svg {
    width: 1.2em; /* Aligne la taille sur celle du texte */
    height: 1.2em;
    vertical-align: middle;
}

/* Force la couleur du tracé du SVG */
.fleche-lien svg path, 
.fleche-lien svg circle, 
.fleche-lien svg rect {
    fill: currentColor !important; /* Utilise la couleur du texte du bouton */
    stroke: currentColor !important; /* Si c'est un contour, on le force aussi */
}

/* Optionnel : si ton SVG utilise des styles en ligne (inline styles) */
.fleche-lien svg * {
    fill: currentColor !important;
}



/* ==========================================================================
  iamge reveal hover effect
   ========================================================================== */


/* Effet Hover Image Reveal */
.hover-reveal {
    position: fixed;
    width: 300px;
    height: 200px;
    top: 0;
    left: 0;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    z-index: 9999;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    transition: visibility 0.4s; /* Sécurité pour le navigateur */
}

.hover-reveal img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}





/* ==========================================================================
  Scroll horizontal GSAP
   ========================================================================== */



html, body, .elementor-section, .e-con {
    scroll-snap-type: none !important;
    scroll-behavior: auto !important; /* Désactive le lissage natif qui lutte contre GSAP */
}



/* Le tunnel : fixe la hauteur et cache ce qui dépasse */
.horizontal-scroll-section {
    width: 100% !important;
    height: 70vh !important; /* Ta hauteur souhaitée */
    overflow: hidden !important;
    position: relative;
}

/* Le train : il doit faire toute la largeur nécessaire pour contenir les 3 wagons */
.horizontal-container {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important; /* Interdit le retour à la ligne */
    width: max-content !important; /* Très important pour éviter l'écrasement */
    height: 100%;
    will-change: transform;
}

/* Les wagons : chacun doit faire exactement la largeur de l'écran */
.panel {
    width: 100vw !important;
    min-width: 100vw !important; /* Force la largeur même si Elementor veut réduire */
    height: 100% !important;
    flex-shrink: 0 !important; /* Interdiction formelle de rétrécir */
    padding: 0 10% !important; /* Pour que ton texte ne colle pas aux bords */
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
}














/* ====================================================================================================================
    Bandeau défilant pour JPC - et présenter les produits / marque parenaires de manière élégante et dynamique
    ==================================================================================================================== */


/* Conteneur principal */
.jpc-marquee-container {
    width: 100%;
    overflow: hidden;
    background: #f9f9f9; /* Couleur de fond optionnelle */
    padding: 15px 0;
    display: flex;
    align-items: center;
}

/* Flexbox pour aligner les items */
.jpc-marquee-content {
    display: flex;
    white-space: nowrap;
    will-change: transform;
    animation: jpc-scroll 30s linear infinite;
}

/* Chaque bloc Image + Dot */
.jpc-marquee-item {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

/* L'icône SVG */
.jpc-marquee-item img {
    height: 30px; /* Taille de ton icône */
    width: auto;
    margin: 0 20px;
}

/* Le point séparateur (Dot) */
.jpc-dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    background-color: #333; /* Couleur du point */
    border-radius: 50%;
}

/* Animation de défilement */
@keyframes jpc-scroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); } /* On défile jusqu'à la moitié (la copie) */
}

/* Pause au survol pour le confort utilisateur */
.jpc-marquee-container:hover .jpc-marquee-content {
    animation-play-state: paused;
}



/* ==========================================================================
   QUADRILLAGE INTERACTIF ( ou presque tkt ) - VERSION FINALE AVEC TRANSITION
   ========================================================================== */

.mon-cadrillage-interactif {
    position: relative !important;
    overflow: hidden;
    background-color: #F4F4F4;
}

/* Le dégradé linéaire pour la transition en bas */
.mon-cadrillage-interactif::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 150px; /* Hauteur de la transition, ajustable */
    background: linear-gradient(to bottom, rgba(244,244,244,0) 0%, rgba(244,244,244,1) 100%);
    z-index: 19; /* Au-dessus de la grille (10) et sous le contenu (20) */
    pointer-events: none;
}

/* La grille */
.grid-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(40px, 1fr));
    grid-auto-rows: 40px;
    gap: 1px;
    /* Les gaps (lignes) héritent du background : gradient noir -> F4F4F4 */
    background: linear-gradient(180deg, rgba(0,0,0,0.1) 0%, rgba(244,244,244,1) 100%);
    pointer-events: none;
    z-index: 10 !important;
}

/* Les carrés : fond très subtil, pas d'effet au survol */
.grid-square {
    /* Cases pleines en #F4F4F4 */
    background: #F4F4F4;
    pointer-events: none; /* grille passive */
}

/* Contenu Elementor au-dessus de tout */
.mon-cadrillage-interactif .elementor-widget,
.mon-cadrillage-interactif .elementor-container,
.mon-cadrillage-interactif .elementor-column,
.mon-cadrillage-interactif .elementor-widget-wrap {
    position: relative;
    z-index: 20 !important;
    pointer-events: none;
}

/* Réactivation des clics */
.mon-cadrillage-interactif a, 
.mon-cadrillage-interactif button,
.mon-cadrillage-interactif .elementor-button,
.mon-cadrillage-interactif input {
    pointer-events: auto !important;
}


/* ==========================================================================
   TITRAGE : STYLE DU BANDEAU PARTENAIRES
   ========================================================================== */

.bandeau-partenaires-jpc {
    width: 100% !important;
    overflow: hidden;
    background: transparent; /* On laisse le fond transparent pour que la vidéo soit visible */
    padding: 20px 0;
}

.marquee-overlay-logos {
    position: relative;
    width: 100%;
}

.marquee-wrapper.js-marquee-partenaires {
    display: flex;
    width: max-content;
    will-change: transform;
}

.marquee-group-logos {
    display: flex;
    align-items: center;
}

/* Style des logos et des blocs de texte du bandeau */
.marquee-group-logos img, 
.marquee-group-logos .brand-text {
    height: 50px; /* Aligne tout le monde sur la même hauteur */
    padding: 0 50px; /* Espacement uniforme entre chaque élément */
    display: flex;
    align-items: center;
    box-sizing: border-box;
}

/* Règle stricte de la charte Exocad : zone de protection autour du logo */
.marquee-group-logos img.exocad-logo {
    padding-top: 10px;    /* Espace de sécurité haut */
    padding-bottom: 10px; /* Espace de sécurité bas */
    padding-left: 50px;   /* Garde ton espacement global à gauche */
    padding-right: 50px;  /* Garde ton espacement global à droite */
}

.marquee-group-logos img {
    width: auto;
    border-radius: 5px; /* Optionnel : arrondir les coins des logos */
    transition: filter 0.3s ease;
}

.marquee-group-logos img:hover {
    filter: grayscale(0%); /* Les logos reprennent leur couleur au survol */
    opacity: 1;
}

/* Style élégant pour remplacer les logos restreints juridiquement */
.marquee-group-logos .brand-text {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px; /* Look moderne / "Labo premium" */
    color: #495057; /* Un gris anthracite neutre et classe */
    font-size: 1.1rem;
    white-space: nowrap;
    cursor: default;
    user-select: none;
}

/* Fondu sur les bords pour les logos */
.marquee-overlay-logos::before,
.marquee-overlay-logos::after {
    content: "";
    position: absolute;
    top: 0;
    width: 100px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}
.marquee-overlay-logos::before {
    left: 0;
    background: linear-gradient(to right, #f4F4F4, transparent);
}
.marquee-overlay-logos::after {
    right: 0;
    background: linear-gradient(to left, #f4F4F4, transparent);
}

/* Empêche le débordement horizontal global */
html, body {
    overflow-x: hidden;
}

/* ==========================================================================
   animation de texte avec rectangle qui révèle le texte
   ========================================================================== */

.lando-text {
  /* Style de la police */
  font-family: 'Montserrat', sans-serif !important;
  font-size: 34px;
  font-weight: 300; /* Écriture fine */
  line-height: 1.25;
  color: #FFFFFF;

  /* Alignement et dimensions */
  max-width: 60vw;
  text-align: center !important; /* Force chaque ligne à se centrer dans le conteneur mais garde l'naimtion intacte */
}

.lando-text .line {
  position: relative;
  display: block;
  opacity: 0;
  width: fit-content;
    margin: 0 auto;
}

.lando-text .line__text {
  opacity: 0;
    white-space: nowrap;
}

.lando-text .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 0%;
  height: 100%;
  transform-origin: right center;
  transform: scale(1, 1);
  background: #44585d;
}

.lando-text[data-completed="true"] .line {
  opacity: 1;
}

.lando-text[data-completed="true"] .line .line__text {
  opacity: 1;
}

@media (max-width: 767px) {
    .lando-text {
        max-width: 90vw;
        font-size: 18px !important;
    }
}

button {
  position: fixed;
  left: 50%;
  bottom: 1rem;
  transform: translateX(-50%);
}



/* ====================================================================================================================

