/* =========================================================
   "NOTRE GROUPE" — VIDEO BACKGROUND + FLOATING GLASS CARDS
   Reimagined like the hero: a cinematic video plays behind,
   and each advisor cutout sits on a frosted-glass card you
   can see through to the video. Scoped to .tg-section--video
   so the rest of the site is untouched.
   ========================================================= */

.tg-section--video {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background: #060d1f;            /* dark fallback under the video */
    padding-top: 96px;
    padding-bottom: 96px;
}

/* Drop the old light decorative orbs */
.tg-section--video .tg-orb { display: none !important; }

/* ── Video background ── */
.tg-video-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}
.tg-video-bg .tg-video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    min-width: 100%;
    min-height: 100%;
    transform: translate(-50%, -50%);
    object-fit: cover;
}
/* Cinematic wash — darker at the top (header legibility) and bottom, lighter
   through the middle so the mountain video stays visible behind the glass cards. */
.tg-video-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg,
            rgba(4,10,26,0.74) 0%,
            rgba(5,12,30,0.40) 26%,
            rgba(5,12,30,0.36) 62%,
            rgba(4,10,26,0.66) 100%),
        radial-gradient(ellipse 120% 80% at 50% 45%,
            rgba(6,16,40,0) 0%, rgba(4,11,30,0.10) 60%, rgba(3,8,22,0.34) 100%);
}
/* Le fond #f3f3f4 du site « entre » dans la vidéo par le haut : la vidéo paraît
   posée par-dessus le même fond continu. */
.tg-video-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 140px;
    background: linear-gradient(to bottom, #f3f3f4 0%, rgba(243,243,244,0) 100%);
    z-index: 2;
}
/* …et ressort par le bas vers la section « Outils » (crème) — aucune coupure. */
.tg-video-bg::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 140px;
    background: linear-gradient(to top, var(--bg-cream, #f8f7f4) 0%, rgba(248,247,244,0) 100%);
    z-index: 2;
}

/* Lift all real content above the video — and CANCEL the global white "glass card"
   panel that .section-padding > .container applies site-wide (it would paint an
   opaque white box over our video). Here the video itself is the backdrop. */
.tg-section--video > .container {
    position: relative;
    z-index: 1;
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    -webkit-backdrop-filter: none !important;
            backdrop-filter: none !important;
    padding: 0 24px !important;
}
.tg-section--video > .container:hover {
    transform: none;
    box-shadow: none !important;
}

/* ── Header → light ── */
.tg-section--video .section-badge {
    background: rgba(255,255,255,0.10);
    border: 1px solid rgba(255,255,255,0.22);
    color: #aee9ff;
    -webkit-backdrop-filter: blur(10px);
            backdrop-filter: blur(10px);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.18);
}
.tg-section--video .tg-header h2 {
    color: #ffffff;
    text-shadow: 0 2px 26px rgba(0,0,0,0.5);
}
.tg-section--video .tg-header h2 .shimmer {
    background: linear-gradient(120deg, #8fecff 0%, #00b4d8 48%, #5dd3e8 100%);
    -webkit-background-clip: text;
            background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}
.tg-section--video .tg-subtitle { color: rgba(255,255,255,0.82); }

/* ── Tabs → dark glass ── */
.tg-section--video .tg-nav-pill {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.16);
    box-shadow: 0 8px 32px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.18);
    -webkit-backdrop-filter: blur(12px) saturate(160%);
            backdrop-filter: blur(12px) saturate(160%);
}
.tg-section--video .tg-tab { color: rgba(255,255,255,0.72); }
.tg-section--video .tg-tab:hover:not(.active) { color: #fff; background: rgba(255,255,255,0.08); }
.tg-section--video .tg-tab.active {
    background: linear-gradient(135deg, #0077b6, #00b4d8);
    color: #fff;
    box-shadow: 0 4px 20px rgba(0,180,216,0.45);
}
.tg-section--video .tg-tab-count-pill { background: rgba(255,255,255,0.14); color: #cfefff; }
.tg-section--video .tg-tab.active .tg-tab-count-pill { background: rgba(255,255,255,0.26); color: #fff; }

/* ── Panel label → light ── */
.tg-section--video .tg-panel-label-text { color: rgba(255,255,255,0.6); }
.tg-section--video .tg-panel-label-line {
    background: linear-gradient(90deg, rgba(255,255,255,0.30), transparent);
}

/* ════════════════════════════════════════════════════
   FLOATING GLASS CARDS — see the video through them
   ════════════════════════════════════════════════════ */
.tg-section--video .tg-card,
.tg-section--video .tg-card--cutout {
    background: linear-gradient(160deg,
        rgba(255,255,255,0.15) 0%,
        rgba(255,255,255,0.06) 58%,
        rgba(255,255,255,0.03) 100%) !important;
    -webkit-backdrop-filter: blur(10px) saturate(150%);
            backdrop-filter: blur(10px) saturate(150%);
    border: 1px solid rgba(255,255,255,0.22) !important;
    box-shadow:
        0 16px 46px rgba(0,0,0,0.40),
        inset 0 1px 0 rgba(255,255,255,0.40) !important;
}

/* See-through image area: drop the opaque light gradient + circuit grid so
   the blurred video shows behind the floating cutout */
.tg-section--video .tg-card--cutout .tg-card-img {
    background: transparent !important;
    background-image: none !important;
    animation: none !important;
}
.tg-section--video .tg-card--cutout .tg-card-img::before { display: none !important; }
/* Soften the heavy blue hover wash into a subtle brand sheen */
.tg-section--video .tg-card--cutout .tg-card-img::after {
    background: linear-gradient(160deg,
        rgba(0,180,216,0) 0%, rgba(0,180,216,0.10) 68%, rgba(0,119,182,0.20) 100%) !important;
}

/* Cutout person — float + drop-shadow so it lifts off the glass/video */
.tg-section--video .tg-card--cutout .tg-card-img img {
    filter:
        saturate(1.02) brightness(1.05) contrast(1.04)
        drop-shadow(0 16px 28px rgba(0,0,0,0.55)) !important;
}

/* Name / role overlay → dark glass gradient, white text at rest and on hover */
.tg-section--video .tg-card--cutout .tg-card-overlay {
    background: linear-gradient(to top,
        rgba(5,13,32,0.94) 0%, rgba(5,13,32,0.55) 46%, rgba(5,13,32,0) 100%) !important;
    -webkit-mask-image: none !important;
            mask-image: none !important;
}
.tg-section--video .tg-card--cutout:hover .tg-card-overlay {
    background: linear-gradient(to top,
        rgba(3,26,56,0.96) 0%, rgba(6,46,86,0.6) 46%, transparent 100%) !important;
}
.tg-section--video .tg-card--cutout .tg-card-name {
    color: #ffffff !important;
    text-shadow: 0 2px 12px rgba(0,0,0,0.55) !important;
}
.tg-section--video .tg-card--cutout .tg-card-role-label {
    color: #d8f4ff !important;
    background: rgba(255,255,255,0.14) !important;
    border: 1px solid rgba(255,255,255,0.14);
}
.tg-section--video .tg-card--cutout[data-type="a"] .tg-card-role-label {
    color: #b7f5e8 !important;
    background: rgba(20,184,166,0.18) !important;
}
.tg-section--video .tg-card--cutout[data-type="p"] .tg-card-role-label {
    color: #cdd2ff !important;
    background: rgba(99,102,241,0.20) !important;
}
.tg-section--video .tg-card--cutout .tg-card-tap { color: rgba(255,255,255,0.72) !important; }

/* Initials placeholder (no photo) → light */
.tg-section--video .tg-cutout-initials { color: rgba(255,255,255,0.20) !important; }

/* Hover glow — stronger over the dark video */
.tg-section--video .tg-card--cutout:hover,
.tg-section--video .tg-card--cutout[data-type="c"]:hover {
    border-color: rgba(0,180,216,0.6) !important;
    box-shadow:
        0 0 0 1px rgba(0,180,216,0.4),
        0 30px 72px rgba(0,119,182,0.42),
        0 10px 30px rgba(0,0,0,0.40),
        inset 0 1px 0 rgba(255,255,255,0.45) !important;
}
.tg-section--video .tg-card--cutout[data-type="a"]:hover {
    border-color: rgba(20,184,166,0.6) !important;
    box-shadow:
        0 0 0 1px rgba(20,184,166,0.4),
        0 30px 72px rgba(13,148,136,0.4),
        0 10px 30px rgba(0,0,0,0.40),
        inset 0 1px 0 rgba(255,255,255,0.45) !important;
}
.tg-section--video .tg-card--cutout[data-type="p"]:hover {
    border-color: rgba(129,140,248,0.6) !important;
    box-shadow:
        0 0 0 1px rgba(129,140,248,0.4),
        0 30px 72px rgba(79,70,229,0.4),
        0 10px 30px rgba(0,0,0,0.40),
        inset 0 1px 0 rgba(255,255,255,0.45) !important;
}

/* Buisson partner logo badge → glass on dark */
.tg-section--video .tg-buisson-badge {
    background: rgba(255,255,255,0.14) !important;
    border: 1px solid rgba(255,255,255,0.22) !important;
    box-shadow: 0 4px 14px rgba(0,0,0,0.3) !important;
}

/* Le fond est désormais une image fixe (aucun mouvement à neutraliser) ; le repli sombre
   #060d1f défini plus haut reste sous l'image si elle ne charge pas. */

/* Navigateurs sans backdrop-filter : rendre cartes et onglets lisibles (sinon trop transparents
   sur l'image de fond). Repli en verre « solide » sombre. */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .tg-section--video .tg-card,
    .tg-section--video .tg-card--cutout { background: rgba(9,18,40,0.82) !important; }
    .tg-section--video .tg-nav-pill { background: rgba(9,18,40,0.86); }
}

/* ── Notre Groupe : un peu plus compact (profils + section réduits) ── */
.tg-section--video .tg-header h2 { font-size: 2.1rem; }
.tg-section--video .tg-subtitle { font-size: 0.88rem; }
.tg-section--video .tg-tabs { margin-bottom: 38px; }
.tg-section--video .tg-tab { padding: 9px 18px; font-size: 0.8rem; }
.tg-section--video .tg-tab svg { width: 13px; height: 13px; }
.tg-section--video .tg-grid { max-width: 900px; margin-left: auto; margin-right: auto; }
.tg-section--video .tg-card-name { font-size: 0.8rem; }
.tg-section--video .tg-card-role-label { font-size: 0.6rem; }
.tg-section--video .tg-card-overlay { padding: 52px 13px 13px; }
.tg-section--video .tg-card-logo { width: 32px; height: 32px; top: 9px; left: 9px; }
