html {
  background: #fff;
  /* Anti-débordement horizontal GLOBAL. Sur mobile, le moindre élément plus
     large que l'écran rend la page scrollable horizontalement → le viewport de
     mise en page s'élargit → le header fixe (width:calc(100% - 1rem), left:50%)
     se calcule alors sur cette largeur trop grande et « grandit / se décale
     vers la droite » au scroll. En coupant tout débordement ici, 100% = vraie
     largeur d'écran partout → header stable. 'clip' (et non 'hidden') ne crée
     PAS de conteneur de défilement → Lenis (smooth scroll) reste intact.
     'hidden' sert de repli pour Safari iOS < 16 qui ignore 'clip'. */
  overflow-x: hidden;
  overflow-x: clip;
  /* Réserve TOUJOURS la gouttière de scrollbar → largeur de viewport constante,
     que le scroll soit verrouillé (preloader) ou non. Supprime le décalage
     horizontal au moment où le scroll se réactive à la fin de l'intro. */
  scrollbar-gutter: stable;
}

/* ── Garde-fous responsive globaux ──────────────────────────────────
   Images jamais plus larges que l'écran ; mots/URLs longs cassés sur
   petit écran → aucun débordement horizontal, texte lisible. */
img { max-width: 100%; height: auto; }
@media (max-width: 600px) {
  p, h1, h2, h3, h4, li, a, span, figcaption { overflow-wrap: break-word; }
}

body {
  opacity: 0;
  transition: opacity 0.35s ease;
  /* Même garde-fou que html (certains moteurs mobiles ne coupent qu'ici). */
  overflow-x: hidden;
  overflow-x: clip;
}

body.page-is-ready {
  opacity: 1;
}

/* La page de garde (coming-soon) est autonome : elle ne doit JAMAIS rester
   masquée par le voile d'opacité du thème. En maintenance elle est servie via
   template_include sans passer par le JS qui pose .page-is-ready (animations.js,
   qui plante sur cette page minimale) → sans ce garde-fou, body{opacity:0} la
   laissait invisible = page blanche. */
body.coft-cs-page { opacity: 1 !important; }

body.page-is-leaving {
  opacity: 0;
}

/* ── Transition de page : voile sage qui RECOUVRE au départ d'un lien (fondu doux),
   puis la nouvelle page apparaît (fondu du body déjà en place via .page-is-ready).
   Visible même depuis le menu blanc plein écran (où le simple fondu d'opacité était
   invisible : blanc sur blanc). FAIL-SAFE : caché par défaut → si le JS ne tourne
   pas, le voile ne s'affiche jamais (aucun risque de masquer le site). Le JS
   (animations.js) pose déjà .page-is-leaving avant de naviguer. */
.coft-pt {
  position: fixed;
  inset: 0;
  z-index: 100001;                 /* au-dessus du header (99999) → couvre aussi le menu */
  background: #7b8e77;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.42s cubic-bezier(0.7, 0, 0.2, 1), visibility 0s linear 0.42s;
}
body.page-is-leaving .coft-pt {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.42s cubic-bezier(0.7, 0, 0.2, 1);
}
@media (prefers-reduced-motion: reduce) {
  .coft-pt,
  body.page-is-leaving .coft-pt { transition-duration: 0.01s; }
}
 

.workflow-card {
  opacity: 0;
  filter: blur(20px);
  will-change: opacity, filter;
}

.custom-loop-swiper .e-loop-item {
  opacity: 0;
  transform: translateY(30px);
  will-change: opacity, transform;
  overflow: hidden;
}

.custom-loop-swiper .e-loop-item > .e-parent {
  position: relative;
  isolation: isolate;
}
 
.custom-loop-swiper .e-loop-item > .e-parent::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: inherit;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: transform 0.7s ease;
  z-index: 0;
  pointer-events: none;
}

.custom-loop-swiper .e-loop-item:hover > .e-parent::after {
  transform: scale(1.05);
}

.custom-loop-swiper .e-loop-item > .e-parent::before {
  transition: opacity 0.5s ease;
  z-index: 1;
}

.custom-loop-swiper .e-loop-item:hover > .e-parent::before {
  opacity: 1;
}

.custom-loop-swiper .e-loop-item > .e-parent > * {
  position: relative;
  z-index: 2;
}
 
.custom-loop-swiper .elementor-loop-container,
.custom-loop-swiper .e-loop {
  display: flex !important;
  flex-wrap: nowrap !important;
  gap: 0 !important;
}

.custom-loop-swiper {
  --swiper-offset: 16px;
}

@media (min-width: 1024px) {
  .custom-loop-swiper {
    --swiper-offset: max(16px, calc((100vw - 1400px) / 2));
  }
}

@media (min-width: 1900px) {
  .custom-loop-swiper {
    --swiper-offset: max(16px, calc((100vw - 1800px) / 2));
  }
}

.custom-loop-swiper .elementor-widget-container {
  position: relative;
  padding-bottom: 80px;
  overflow: hidden;
}

.custom-loop-swiper .swiper-slide {
  height: auto !important;
}

.custom-loop-swiper .swiper-button-prev,
.custom-loop-swiper .swiper-button-next {
  top: auto;
  bottom: 15px;
  margin-top: 0;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  background: var(--e-global-color-primary);
  color: white;
}

.custom-loop-swiper .swiper-button-prev {
  left: var(--swiper-offset);
  right: auto;
}

.custom-loop-swiper .swiper-button-next {
  left: calc(var(--swiper-offset) + 58px);
  right: auto;
}

.custom-loop-swiper .swiper-button-prev::after,
.custom-loop-swiper .swiper-button-next::after {
  font-size: 16px;
  font-weight: 700;
}

.custom-loop-swiper .swiper-pagination {
  position: absolute;
  bottom: 24px;
  left: calc(var(--swiper-offset) + 128px);
  right: auto;
  width: auto;
  text-align: left;
}

.custom-loop-swiper .swiper-pagination-bullet {
  width: 10px;
  height: 10px;
  opacity: 1;
  background: #cfcfcf;
}

.custom-loop-swiper .swiper-pagination-bullet-active {
  background: #000;
}

@media (max-width: 767px) {
  .custom-loop-swiper .swiper-button-prev,
  .custom-loop-swiper .swiper-button-next {
    display: none;
  }

  .custom-loop-swiper .swiper-pagination {
    left: var(--swiper-offset);
  }
}

.anim-img {
  opacity: 0;
  filter: blur(20px);
  will-change: opacity, filter;
}

html.lenis,
  html.lenis body {
    height: auto;
  }
  
  .lenis.lenis-smooth {
    scroll-behavior: auto !important;
  }
  
  .lenis.lenis-smooth [data-lenis-prevent] {
    overscroll-behavior: contain;
  }
  
  .lenis.lenis-stopped {
    overflow: clip;
  }
  
  .lenis.lenis-smooth iframe {
    pointer-events: none;
  }

  h2, h3 {
    overflow: hidden;
  }
  
  .site-header-custom {
    position: fixed;
    top: 0.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 1rem);
    height: 75px;
    border-radius: 1rem;
    /* Navbar flottante avec fond frosté blanc → contraste sur le fond blanc du site. */
    background-color: rgba(255, 255, 255, 0.85);
    -webkit-backdrop-filter: blur(18px) saturate(1.4);
    backdrop-filter: blur(18px) saturate(1.4);
    border: 1px solid rgba(16, 15, 18, 0.1);   /* border gris clair discret */
    z-index: 99999;
    overflow: hidden;
    box-sizing: border-box;
    /* PAS de transition sur `height` : le JS pose/retire la hauteur d'un coup
       et anime la révélation via clip-path. Une transition CSS ici ré-animerait la
       hauteur (reflow à l'ouverture + « re-flash » à la fermeture). */
    transition: opacity 0.55s ease;
}

.site-menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    z-index: 99990;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    height: 75px;
    padding: 0 2rem;
    box-sizing: border-box;
    position: relative;
    z-index: 2;
    transition: height 0.35s ease;
}

.header-nav-left,
.header-logo-container,
.header-nav-right {
    display: flex;
    align-items: center;
    flex: 1;
    height: 100%;
}

.header-nav-left {
    justify-content: flex-start;
    gap: 2rem;
}

.header-logo-container {
    justify-content: center;
}

.header-nav-right {
    justify-content: flex-end;
    gap: 2rem;
}

.header-link {
    color: #100f12;
    text-decoration: none;
    font-family: "Josefin Sans", "Helvetica Neue", Arial, sans-serif;
    font-size: clamp(1rem, 1.1vw, 1.18rem);
    font-weight: 500;
    line-height: 1;
    transition: opacity 0.3s ease, color 0.3s ease;
}

.header-link:hover {
    opacity: 0.6;
}
/* Lien de la page active : vert charte. La 3e règle bat le sélecteur plus
   spécifique `body:not(.home):not(.front-page) .header-link { color:#000!important }`. */
.header-link.is-active,
.fullscreen-link.is-active,
body:not(.home):not(.front-page) .header-link.is-active { color: #7b8e77 !important; }

/* ── Sélecteur de langue (WPML) ─────────────────────────────────────────
   Deux variantes : barre du haut (discrète, masquée < 860px comme les liens
   de nav) et menu plein écran (seule version disponible sur mobile). */
.coft-lang {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-family: "Josefin Sans", "Helvetica Neue", Arial, sans-serif;
}

.coft-lang-link {
    color: #565450;
    text-decoration: none;
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    line-height: 1;
    transition: opacity 0.3s ease, color 0.3s ease;
}

.coft-lang-link + .coft-lang-link { border-left: 1px solid rgba(16, 15, 18, 0.2); padding-left: 0.45rem; }
.coft-lang-link:hover { opacity: 0.6; }
.coft-lang-link.is-active { color: #7b8e77 !important; }

/* Menu plein écran : posé dans .fullscreen-bottom, à droite des réseaux. */
.coft-lang--menu { gap: 0.6rem; }
.coft-lang--menu .coft-lang-link { font-size: 0.95rem; letter-spacing: 0.08em; }
.coft-lang--menu .coft-lang-link + .coft-lang-link { padding-left: 0.6rem; }

@media (max-width: 860px) {
    .coft-lang--menu .coft-lang-link { font-size: 1.05rem; }
}

.header-logo-link {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}
 
.header-logo {
    max-height: calc(100% - 1rem);
    height: 42px;
    width: auto;
    object-fit: contain;
    display: block;
    transition: height 0.35s ease;
}
@media (max-width: 768px) {
    .header-logo { height: 46px; }   /* mobile : logo plus grand (sans dépasser le header) */
}

/* ── Header responsive : sous 860px, on garde logo + burger uniquement ── */
@media (max-width: 860px) {
    .header-nav-left .header-link,
    .header-nav-right .header-link { display: none; }
    .header-hamburger { margin-left: 0; }
    .header-container { padding: 0 1.1rem; }
    /* Largeur VERROUILLÉE sur mobile : aucune animation/JS ne peut la changer.
       !important bat même un éventuel width:900px inline (ancien JS en cache).
       Le menu hamburger s'ouvre en HAUTEUR à cette largeur (pas de changement L). */
    .site-header-custom {
        width: calc(100% - 1rem) !important;
        max-width: calc(100% - 1rem) !important;
    }
}
/* Menu plein écran sur mobile : liens en HAUT (pleine largeur, alignés à
   gauche) + les 2 cards projets EN BAS en colonne. Le tout défilable.
   IMPORTANT : 860px = MÊME seuil que l'apparition du hamburger → pas de zone
   (769–860px) où le menu resterait en disposition desktop 2 colonnes. */
@media (max-width: 860px) {
    /* Le menu remplit tout le panneau ouvert (bord à bord).
       Sélecteurs préfixés .site-header-custom → spécificité (0,2,0) qui bat les
       règles de base .header-fullscreen-* définies plus bas dans le fichier. */
    .site-header-custom .header-fullscreen-menu {
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
    }
    .site-header-custom .header-fullscreen-inner {
        flex-direction: column;
        justify-content: flex-start;     /* contenu plus haut + défilable (liens + 2 projets) */
        align-items: stretch;
        /* padding-top dégage la barre du haut (logo + croix) ; scroll si besoin. */
        padding: 4.75rem 1.75rem 2rem;
        gap: 1.25rem;
        overflow-y: auto;
    }
    /* Liens en HAUT, occupant toute la largeur du menu. */
    .site-header-custom .fullscreen-menu-col { flex: 0 0 auto; justify-content: flex-start; gap: 0; align-items: stretch; width: 100%; }
    /* Liens alignés à GAUCHE, pleine largeur, plus gros (titres de nav éditoriaux). */
    .site-header-custom .fullscreen-link {
        display: block;
        width: 100%;
        font-size: clamp(1.55rem, 6.5vw, 2.15rem);   /* liste du menu : moins gros */
        font-weight: 400;                            /* + léger */
        text-align: left;
        padding: 0.95rem 0;                          /* + d'air / zone de tap */
    }
    .site-header-custom .header-fullscreen-menu .fullscreen-separator { background-color: rgba(0, 0, 0, 0.10); }

    /* Projets : les 2 cards empilées EN COLONNE, poussées tout EN BAS du menu
       (margin-top:auto), pleine largeur. */
    .site-header-custom .fullscreen-images-col {
        display: flex;
        flex-direction: column;
        gap: 0.6rem;
        flex: 0 0 auto;
        width: 100%;
        margin-top: auto;
    }
    .site-header-custom .fullscreen-img-wrap {
        flex: 0 0 auto;
        height: clamp(84px, 13vh, 116px);
    }
    /* Overlay uniforme (teinte plate) sur les 2 cards du menu — plus lisible
       sur les petites cards mobiles qu'un dégradé directionnel. */
    .site-header-custom .fullscreen-img-overlay { padding: 0.75rem; background: none; }
    .site-header-custom .fullscreen-img-title {
        font-size: 0.95rem;
        line-height: 1.2;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    .site-header-custom .fullscreen-img-subtitle {
        font-size: 0.72rem;
        display: -webkit-box;
        -webkit-line-clamp: 1;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
}
/* Très petit écran : navbar + hamburger + menu compactés. */
@media (max-width: 480px) {
    .site-header-custom { top: 0.4rem; width: calc(100% - 0.8rem) !important; max-width: calc(100% - 0.8rem) !important; height: 68px; }
    .header-container { height: 68px; padding: 0 0.85rem; }
    .header-logo { height: 44px; }   /* mobile : logo plus grand */
    .header-hamburger { width: 36px; height: 36px; margin-left: 0; }
    .hamburger-line { width: 26px; }
    .site-header-custom .header-fullscreen-inner { padding: 4rem 1.25rem 1.5rem; }
    .site-header-custom .fullscreen-link { font-size: clamp(1.4rem, 6.5vw, 1.85rem); }   /* liste menu : moins gros */
}

/* ── Header réduit au scroll — MOBILE (hauteur + logo) ──────────────────
   Classe .is-condensed posée par header.js dès qu'on scrolle (>80px).
   Sur desktop la classe existe aussi mais n'a aucun effet CSS ici (c'est la
   largeur qui s'anime via GSAP) → pas de conflit. */
@media (max-width: 860px) {
    .site-header-custom.is-condensed { height: 60px; }
    .site-header-custom.is-condensed .header-container { height: 60px; }
    .site-header-custom.is-condensed .header-logo { height: 34px; }
}
@media (max-width: 480px) {
    .site-header-custom.is-condensed { height: 54px; }
    .site-header-custom.is-condensed .header-container { height: 54px; }
    .site-header-custom.is-condensed .header-logo { height: 32px; }
}

.header-hamburger {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    padding: 0;
    margin-left: 2rem;
    position: relative;
    z-index: 3;
    height: 40px;
    width: 40px;
}
 
.hamburger-line {
    display: block;
    width: 30px;
    height: 2px;
    background-color: #100f12;   /* noir par défaut → hamburger visible même si le JS échoue */
    transform-origin: center;
}

.header-fullscreen-menu {
    position: absolute;
    top: 1.5rem;
    left: 0;
    width: calc(100% - 2rem);
    height: calc(100% - 2rem);
    opacity: 0;
    pointer-events: none;
    z-index: 1;
}

.header-fullscreen-inner {
    height: 100%;
    display: flex;
    flex-direction: row;
    padding: 5rem 2.5rem 2.5rem;
    box-sizing: border-box;
    gap: 3rem;
    position: relative;   /* ancre les icônes sociales en bas-gauche */
}

.fullscreen-menu-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.header-fullscreen-menu .fullscreen-separator {
    border: none;
    height: 1px;
    background-color: rgba(0, 0, 0, 0.15);
    margin: 0;
    display: block;
    width: 100%;
    opacity: 1;
} 
 
.fullscreen-link {
    text-decoration: none;
    font-family: "Josefin Sans", "Helvetica Neue", Arial, sans-serif;
    font-size: clamp(1.7rem, 6vw, 2.8rem);
    font-weight: 500;
    line-height: 1.1;
    color: #100f12;
    display: block;
    padding: clamp(0.7rem, 2vw, 1.05rem) 0;
    transition: opacity 0.2s ease, color 0.2s ease;
}

.fullscreen-link:hover {
    opacity: 0.45 !important;
}

/* Bouton discret « COFT Content » (menu) — visible seulement pour les éditeurs. */
.fullscreen-edit-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    align-self: flex-start;
    margin-top: 1.6rem;
    padding: 0.5rem 0.95rem;
    border: 1px solid rgba(16, 15, 18, 0.16);
    border-radius: 999px;
    font-family: "Josefin Sans", "Helvetica Neue", Arial, sans-serif;
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    color: #565450;
    text-decoration: none;
    transition: border-color 0.3s ease, color 0.3s ease;
}
.fullscreen-edit-link:hover { border-color: #93ac8c; color: #100f12; }
.fullscreen-edit-link svg { width: 16px; height: 16px; }

.fullscreen-images-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-width: 0;
}

.fullscreen-img-wrap {
    flex: 1;
    overflow: hidden;
    border-radius: 1rem;
    min-height: 0;
    position: relative;
}
/* Carte WebGIS (lien externe) : cadre vert de la charte, léger et discret. */
.fullscreen-img-wrap--webgis { border: 1px solid rgba(147, 172, 140, 0.5); }

.fullscreen-img-wrap a {
    display: block;
    height: 100%;
    position: relative;
}

.fullscreen-menu-img {
    width: 100%;
    height: 100% !important;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.fullscreen-img-wrap:hover .fullscreen-menu-img {
    transform: scale(1.04);
}

.fullscreen-img-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;      /* texte groupé en bas, image nette au-dessus */
    align-items: flex-start;
    gap: 0.5rem;
    padding: clamp(1rem, 1.6vw, 1.4rem);
    background: none;               /* plus de voile sombre sur toute l'image */
    pointer-events: none;
}

/* Petits panneaux frostés derrière le texte uniquement (l'image reste nette). */
.fullscreen-img-header,
.fullscreen-img-footer {
    background: #7b8e77;                 /* vert de la charte */
    border-radius: 100px;                /* pilule */
    padding: 0.55rem 1.15rem;
}
/* Flèche WebGIS retirée. */
.fullscreen-arrow-icon { display: none; }

.fullscreen-img-header {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
}

.fullscreen-img-title {
    font-family: "Josefin Sans", "Helvetica Neue", Arial, sans-serif;
    font-size: clamp(1.5rem, 2vw, 2.3rem);   /* beaucoup plus grand */
    font-weight: 600;
    line-height: 1.15;
    color: #ffffff;
}

.fullscreen-arrow-icon {
    width: 32px;                              /* flèche beaucoup plus grande */
    height: 32px;
    fill: #ffffff;
    flex-shrink: 0;
    margin-top: 2px;
}

.fullscreen-img-subtitle {
    display: block;
    font-family: "Josefin Sans", "Helvetica Neue", Arial, sans-serif;
    font-size: clamp(1rem, 1.2vw, 1.25rem);  /* plus grand */
    font-weight: 500;
    line-height: 1.3;
    color: #ffffff;
}

/* ── Icônes sociales — bas-gauche du menu plein écran ────────────────── */
/* Bas du menu : réseaux + sélecteur de langue alignés sur une seule ligne.
   C'est CE bloc qui est ancré en bas à gauche (les sociales étaient en absolu
   avant l'ajout des langues → un 2e élément en flux entrait en collision). */
.fullscreen-bottom {
    position: absolute;
    left: 2.5rem;
    bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    z-index: 3;
}

.fullscreen-socials {
    display: flex;
    gap: 0.9rem;
    list-style: none;
    margin: 0;
    padding: 0;
    opacity: 0;              /* révélé à l'ouverture du menu (GSAP) */
}
.fullscreen-socials a {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border: 1px solid rgba(16, 15, 18, 0.16);
    border-radius: 50%;
    color: #100f12;
    transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}
.fullscreen-socials a:hover {
    background: #93ac8c;
    border-color: #93ac8c;
    color: #ffffff;
}
.fullscreen-socials svg { width: 21px; height: 21px; }
@media (max-width: 860px) {
    /* En flux sous les cartes (le menu mobile défile), plus en absolu. */
    .fullscreen-bottom {
        position: static;
        left: auto;
        bottom: auto;
        flex-wrap: wrap;
        gap: 1.25rem;
        margin-top: 1.5rem;
    }
}

body:not(.home):not(.front-page) .header-link {
    color: #000000 !important;
  }
  
  body:not(.home):not(.front-page) .hamburger-line {
    background-color: #000000 !important;
  }
  
  body:not(.home):not(.front-page) .header-logo {
    max-height: 45px;
  }

  body:not(.home):not(.front-page) .site-header-custom {
    background-color: rgba(255,255,255,0.85);
    backdrop-filter: blur(18px);
  }

.bg-blur{
  backdrop-filter: blur(5px);
}

.bg-blur-10{
  backdrop-filter: blur(10px);
}

.bg-blur-25{
    backdrop-filter: blur(25px);
}

.hero-section{
    --hero-pad-top: 0.5rem;
    --hero-pad-x: 0.5rem;
    padding-top: var(--hero-pad-top) !important;
    padding-left: var(--hero-pad-x) !important;
    padding-right: var(--hero-pad-x) !important;
    padding-bottom: var(--hero-pad-top) !important;
    height: 100vh !important;
}

.hero-bg-pic{
    --hero-radius: 1rem;
    border-radius: var(--hero-radius) !important;
    overflow: hidden !important;
    height: 100%;
    clip-path: inset(50% 50% 50% 50% round 1rem);
}

.about-container{
    --about-pad: 0rem;

    padding: var(--about-pad) !important;
}

.about-inner-container{
    --about-radius: 0rem;

    border-radius: var(--about-radius) !important;
}

.project-title .elementor-heading-title {
    width: 100%;
  }
  
  .project-title-split {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    width: 100%;
  }
  
  .project-title-left,
  .project-title-right {
    display: block;
    width: 50%;
  }
  
  .project-title-left {
    text-align: left;
  }
  
  .project-title-right {
    text-align: right;
  }

 
  .container-responsive {
    width: 100%;
    margin: 0 auto;
  }
  
  /* > 1024px */
  @media (min-width: 1024px) {
    .container-responsive {
      max-width: 1400px;
    }
  }
  
  /* > 1900px */
  @media (min-width: 1900px) {
    .container-responsive {
      max-width: 1800px;
    }
  }




  /********PROJECT***********/
  .custom-tl-section {
    position: relative;
    width: 100%;
    min-height: 1200px;
    overflow: hidden;
    isolation: isolate;
  }

  .custom-tl-line {
    position: absolute;
    z-index: 1;
    pointer-events: none;
  }

  .custom-tl-line svg {
    width: 100%;
    height: 100%;
    display: block;
    overflow: visible;
  }

  .custom-tl-line path {
    fill: none;
    vector-effect: non-scaling-stroke;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke: #8BA482;
  }

  .line-1 { top: 15%; left: 45%; width: 10%; height: 20%; }
  .line-2 { top: 35%; left: 45%; width: 10%; height: 25%; transform: rotateY(180deg); transform-origin: center center; }
  .line-3 { top: 60%; left: 45%; width: 10%; height: 25%; }

  .custom-tl-card {
    position: absolute;
    width: 500px;
    background: rgba(0, 0, 0, 0.23);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: none;
    border-radius: 1rem;
    padding: 2rem;
    z-index: 3;
    box-shadow: none;
    cursor: pointer;
    transition:
      transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
      background 0.35s ease,
      backdrop-filter 0.35s ease,
      -webkit-backdrop-filter 0.35s ease;
    will-change: transform;
  }

  .custom-tl-card:hover {
    transform: translateY(-50%) scale(1.018);
  }

  .custom-tl-card h3,
  .custom-tl-modal-card h3 {
    font-family: var(--e-global-typography-01ec422-font-family), Sans-serif;
    font-size: var(--e-global-typography-01ec422-font-size);
    font-weight: var(--e-global-typography-01ec422-font-weight);
    line-height: var(--e-global-typography-01ec422-line-height);
    color: #ffffff;
    margin: 0 0 1.5rem 0;
    padding-bottom: 1.5rem;
    border-bottom: 0.5px solid rgba(255, 255, 255, 0.25);
  }

  .custom-tl-card p,
  .custom-tl-modal-content p {
    font-family: var(--e-global-typography-text-font-family), Sans-serif;
    font-size: var(--e-global-typography-text-font-size);
    font-weight: var(--e-global-typography-text-font-weight);
    line-height: var(--e-global-typography-text-line-height);
    color: #ffffff;
    margin: 0 0 1rem 0;
  }

  .custom-tl-icon {
    position: absolute;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #8BA482;
    z-index: 4;
    transform: translate(-50%, -50%);
  }

  .custom-tl-icon img {
    max-width: 65%;
    max-height: 65%;
    display: block;
  }

  .step-1-icon { top: 15%; left: 45%; }
  .step-1-card { top: 15%; right: 58%; transform: translateY(-50%); }

  .step-2-icon { top: 35%; left: 55%; }
  .step-2-card { top: 35%; left: 58%; transform: translateY(-50%); }

  .step-3-icon { top: 60%; left: 45%; }
  .step-3-card { top: 60%; right: 58%; transform: translateY(-50%); }

  .step-4-icon { top: 85%; left: 55%; }
  .step-4-card { top: 85%; left: 58%; transform: translateY(-50%); }

  .custom-tl-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0);
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
    z-index: 9998;
    pointer-events: none;
    opacity: 0;
    will-change: backdrop-filter, opacity;
  }

  .custom-tl-modal-overlay.is-active {
    pointer-events: auto;
  }

  .custom-tl-modal-card {
    position: fixed;
    z-index: 9999;
    width: 500px;
    background: rgba(0, 0, 0, 0.23);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 1rem;
    padding: 2rem;
    color: #fff;
    overflow: hidden;
    box-sizing: border-box;
    box-shadow: none;
    will-change: transform, width, height, left, top, opacity;
    transform-origin: center center;
  }

  .custom-tl-modal-card h3 {
    padding-right: 50px;
  }

  .custom-tl-modal-content {
    height: calc(100% - 80px);
    overflow: auto;
    padding-right: 10px;
  }

  .custom-tl-modal-content::-webkit-scrollbar {
    width: 6px;
  }

  .custom-tl-modal-content::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.22);
    border-radius: 999px;
  }

  .custom-tl-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 38px;
    height: 38px;
    border: none;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.10);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.25s ease, transform 0.25s ease;
    padding: 0;
    z-index:10;
  }

  .custom-tl-modal-close:hover {
    background: rgba(255, 255, 255, 0.18);
    transform: scale(1.05);
  }

  .custom-tl-modal-close::before,
  .custom-tl-modal-close::after {
    content: "";
    position: absolute;
    width: 16px;
    height: 1.5px;
    background: #fff;
    border-radius: 999px;
  }

  .custom-tl-modal-close::before { transform: rotate(45deg); }
  .custom-tl-modal-close::after { transform: rotate(-45deg); }

  .custom-tl-section.modal-open .custom-tl-card,
  .custom-tl-section.modal-open .custom-tl-icon {
    pointer-events: none;
  }

  @media (max-width: 950px) {
    .custom-tl-section {
      min-height: auto;
      padding: 50px 0;
    }

    .custom-tl-line {
      display: none;
    }

    .custom-tl-card {
      position: relative;
      width: 85%;
      margin: 0 auto 70px auto;
      top: auto !important;
      left: auto !important;
      right: auto !important;
      transform: none !important;
    }

    .custom-tl-card:hover {
      transform: none !important;
    }

    .custom-tl-icon {
      position: absolute;
      top: -30px !important;
      left: 30px !important;
      transform: none !important;
    }

    .custom-tl-modal-card {
      width: calc(100vw - 32px) !important;
      height: calc(100vh - 32px) !important;
      left: 16px !important;
      top: 16px !important;
      padding: 1.5rem;
    }

    .custom-tl-modal-content {
      height: calc(100% - 70px);
    } 
  }
 
  .text-team-anim .line {  
    display: block;
    filter: blur(6px);
    opacity: 0.3;
    will-change: filter, opacity, transform;
  } 

  .coft-building-svg { 
    width: 100%; 
    min-height: 100vh;
    display: flex; 
    justify-content: center; 
    align-items: center;
    overflow: hidden;
  }  

  .coft-building-svg svg {
    height: 75vh;
    width: auto;
    aspect-ratio: 361 / 201;
    max-width: 100%;
    display: block;
    overflow: visible;
  }

  .coft-building-svg svg #Background {
    opacity: 0;
  }

  .coft-building-svg svg path {
    fill: transparent;
    stroke: #000;
    stroke-width: 0.4;
    transition: fill 0.6s ease;
    vector-effect: non-scaling-stroke;
  }
 
  .coft-building-svg.is-filled svg path {
    fill: #000;
  }

/* ----------------------------------------------------------------
   Page loader (Barba.js) — overlay plein écran avec le logo COFT
   en 51 segments. Animé via GSAP pendant les transitions de page.
   ---------------------------------------------------------------- */
.page-loader {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000000;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
}

.page-loader-logo {
    display: block;
    width: clamp(180px, 22vw, 320px);
    height: auto;
    color: #ffffff;
    overflow: visible;
}

.page-loader-logo path {
    stroke: currentColor;
    fill: none;
    opacity: 0;
}

/* Pendant la transition Barba on bloque les interactions sous l'overlay. */
html.is-transitioning {
    cursor: wait;
}

/* Préloader (home) : le header reste caché tant que l'intro joue ; il apparaît
   en fondu une fois le loader terminé (classe hv3-loading retirée par le JS). */
html.hv3-loading .site-header-custom { opacity: 0; pointer-events: none; }

/* Menu : révélation « masque » des libellés — le texte coulisse depuis derrière
   sa ligne (chaque libellé dans .fs-mask[overflow:hidden] > .fs-reveal[translate]). */
.fullscreen-link .fs-mask { display: block; overflow: hidden; }
.fullscreen-link .fs-reveal { display: block; will-change: transform; }
