/* ===========================================================================
   Indepro - Extras V1.x
   Bouton video hero + lightbox YouTube, section Avant/Apres animee,
   compteur live (lundi 18h), section videos temoignages (facades).
   Charge apres sections.css.
   =========================================================================== */

/* === BOUTON VIDEO HERO (ouvre lightbox) === */
.indepro-hero-vidbtn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-top: 22px;
    padding: 10px 18px 10px 12px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 999px;
    color: #f2f1ed;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}
.indepro-hero-vidbtn:hover {
    background: rgba(235,187,129,0.08);
    border-color: rgba(235,187,129,0.4);
    transform: translateY(-1px);
}
.indepro-hero-vidbtn__play {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ebbb81, #c99a5b);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #07070b;
    box-shadow: 0 6px 18px rgba(235,187,129,0.3);
}
.indepro-hero-vidbtn__t { font-weight: 600; }
.indepro-hero-vidbtn__d {
    color: rgba(242,241,237,0.55);
    font-size: 12px;
    margin-left: 4px;
}

/* === LIGHTBOX VIDEO === */
.indepro-vlightbox {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}
.indepro-vlightbox.is-open { display: flex; }
.indepro-vlightbox__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(7,7,11,0.92);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}
.indepro-vlightbox__close {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(255,255,255,0.04);
    color: #f2f1ed;
    border-radius: 50%;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    z-index: 2;
    transition: background 0.2s, border-color 0.2s;
}
.indepro-vlightbox__close:hover {
    background: rgba(235,187,129,0.12);
    border-color: rgba(235,187,129,0.4);
}
.indepro-vlightbox__inner {
    position: relative;
    width: min(1100px, 100%);
    aspect-ratio: 16 / 9;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0,0,0,0.6), 0 0 0 1px rgba(235,187,129,0.2);
}
.indepro-vlightbox__frame { position: absolute; inset: 0; }
.indepro-vlightbox__frame iframe {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    border: 0; display: block;
}

/* === SECTION AVANT / APRES === */
.indepro-aa {
    padding: var(--py) 0;
    position: relative;
}
.indepro-aa__head {
    text-align: center;
    max-width: 768px;
    margin: 0 auto 56px;
}
.indepro-aa__head .indepro-tag {
    display: inline-block;
    margin-bottom: 16px;
    color: #ebbb81;
}
.indepro-aa__head .indepro-h2 {
    font-size: clamp(28px, 3.6vw, 44px);
    line-height: 1.15;
    margin-bottom: 14px;
}
.indepro-aa__head .indepro-lead {
    color: rgba(242,241,237,0.7);
    font-size: 17px;
}
.indepro-aa__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    position: relative;
}
.indepro-aa__divider {
    position: absolute;
    top: 40px;
    bottom: 40px;
    left: 50%;
    width: 1px;
    background: linear-gradient(to bottom, transparent, rgba(235,187,129,0.45), transparent);
    transform: translateX(-50%) scaleY(0);
    transform-origin: top;
    pointer-events: none;
}
.indepro-aa__col {
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 20px;
    padding: 36px 32px;
    transition: border-color 0.4s ease;
}
.indepro-aa__col--no {
    background: rgba(255,255,255,0.015);
    filter: saturate(0.6);
}
.indepro-aa__col--yes {
    background: linear-gradient(180deg, rgba(235,187,129,0.04), rgba(235,187,129,0.01));
    border-color: rgba(235,187,129,0.18);
    box-shadow: 0 30px 70px -40px rgba(235,187,129,0.45);
}
.indepro-aa__col-h { margin-bottom: 28px; }
.indepro-aa__pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 999px;
    font-family: 'Poppins', sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 14px;
}
.indepro-aa__pill--no {
    background: rgba(255,255,255,0.04);
    color: rgba(242,241,237,0.55);
    border: 1px solid rgba(255,255,255,0.1);
}
.indepro-aa__pill--yes {
    background: rgba(235,187,129,0.1);
    color: #ebbb81;
    border: 1px solid rgba(235,187,129,0.3);
}
.indepro-aa__col-x {
    font-size: 18px;
    font-weight: 600;
    color: #f2f1ed;
    line-height: 1.4;
}
.indepro-aa__col--no .indepro-aa__col-x { color: rgba(242,241,237,0.7); }
.indepro-aa__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.indepro-aa__item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 16px;
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 12px;
    opacity: 1;
    transform: translateX(0);
    transition: opacity 0.5s ease, transform 0.5s ease, border-color 0.3s ease;
}
/* Animation activée uniquement quand le JS a tagué la section et motion non réduit */
@media (prefers-reduced-motion: no-preference) {
    .indepro-aa.is-armed .indepro-aa__item { opacity: 0; transform: translateX(-20px); }
    .indepro-aa.is-armed .indepro-aa__item--yes { transform: translateX(20px); }
    .indepro-aa.is-armed .indepro-aa__item.is-revealed { opacity: 1; transform: translateX(0); }
}
.indepro-aa__item--yes:hover {
    border-color: rgba(235,187,129,0.3);
    background: rgba(235,187,129,0.04);
}
.indepro-aa__icon {
    flex: 0 0 28px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
}
.indepro-aa__item--no .indepro-aa__icon {
    background: rgba(255,255,255,0.04);
    color: rgba(242,241,237,0.5);
    border: 1px solid rgba(255,255,255,0.1);
}
.indepro-aa__item--yes .indepro-aa__icon {
    background: linear-gradient(135deg, rgba(235,187,129,0.18), rgba(235,187,129,0.06));
    color: #ebbb81;
    border: 1px solid rgba(235,187,129,0.35);
}
.indepro-aa__text {
    font-size: 15px;
    line-height: 1.55;
    color: #f2f1ed;
}
.indepro-aa__col--no .indepro-aa__text { color: rgba(242,241,237,0.7); }
@media (max-width: 900px) {
    .indepro-aa__grid { grid-template-columns: 1fr; gap: 16px; }
    .indepro-aa__divider { display: none; }
    .indepro-aa__col { padding: 28px 22px; }
    .indepro-aa__item--yes { transform: translateY(20px); }
    .indepro-aa__item--no { transform: translateY(20px); }
}

/* === COMPTEUR LIVE (lundi 18h) - version fine === */
.indepro-live-counter {
    margin: 28px 0 0;
    padding: 14px 18px;
    background: rgba(255,255,255,0.015);
    border: 1px solid rgba(235,187,129,0.18);
    border-radius: 12px;
}
.indepro-live-counter__row {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}
.indepro-live-counter__badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 11px;
    border-radius: 999px;
    background: rgba(235,187,129,0.08);
    border: 1px solid rgba(235,187,129,0.28);
    color: #ebbb81;
    font-family: 'Poppins', sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    white-space: nowrap;
}
.indepro-live-counter__dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #ebbb81;
    box-shadow: 0 0 0 0 rgba(235,187,129,0.6);
    animation: indepro-live-pulse 1.8s ease-out infinite;
}
@keyframes indepro-live-pulse {
    0% { box-shadow: 0 0 0 0 rgba(235,187,129,0.55); }
    100% { box-shadow: 0 0 0 10px rgba(235,187,129,0); }
}
.indepro-live-counter__sep {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, rgba(235,187,129,0.18), transparent);
    min-width: 20px;
}
.indepro-live-counter__time {
    display: inline-flex;
    align-items: baseline;
    gap: 12px;
    font-variant-numeric: tabular-nums;
}
.indepro-live-counter__time > span {
    display: inline-flex;
    align-items: baseline;
}
.indepro-live-counter__time b {
    font-family: 'Poppins', sans-serif;
    font-size: 19px;
    font-weight: 700;
    line-height: 1;
    color: #f2f1ed;
    letter-spacing: -0.02em;
}
.indepro-live-counter__time i {
    font-style: normal;
    font-size: 11px;
    color: rgba(242,241,237,0.45);
    margin-left: 3px;
    font-weight: 500;
}
.indepro-live-counter__when {
    font-size: 12.5px;
    color: rgba(242,241,237,0.55);
    margin: 8px 0 0;
    line-height: 1.5;
}
@media (max-width: 768px) {
    .indepro-live-counter__row { gap: 10px; }
    .indepro-live-counter__sep { display: none; }
    .indepro-live-counter__time { gap: 10px; }
    .indepro-live-counter__time b { font-size: 17px; }
}

/* === BLOC VIDEOS TEMOIGNAGES (intégré dans #temoignages) === */
.indepro-test-divider {
    display: flex;
    align-items: center;
    gap: 18px;
    margin: 56px 0 28px;
    color: rgba(242,241,237,0.45);
    font-family: 'Poppins', sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
}
.indepro-test-divider::before,
.indepro-test-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(235,187,129,0.18), transparent);
}
.indepro-test-divider span {
    flex: 0 0 auto;
    color: #ebbb81;
}
.indepro-test-vids {
    margin: 8px 0 40px;
}
.indepro-test-vids__horiz {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}
.indepro-test-vids__vert {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    max-width: 900px;
    margin: 28px auto 0;
}
@media (max-width: 900px) {
    .indepro-test-vids__horiz { grid-template-columns: 1fr; }
    .indepro-test-vids__vert { grid-template-columns: repeat(3, 1fr); gap: 12px; }
}
@media (max-width: 768px) {
    .indepro-test-vids__vert { grid-template-columns: 1fr; max-width: 480px; }
}
.indepro-test-wall {
    margin-top: 48px;
    padding: 8px 0 0;
    overflow: clip;
    position: relative;
}
.indepro-test-wall .indepro-test-divider { margin: 16px 0 22px; }
.indepro-vfacade {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 14px;
    overflow: hidden;
    background-color: #0a0a0a;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0,0,0,0.45);
    border: 1px solid rgba(255,255,255,0.06);
    transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}
.indepro-vfacade:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 40px rgba(0,0,0,0.55);
    border-color: rgba(235,187,129,0.4);
}
.indepro-vfacade--vert { aspect-ratio: 9 / 16; }
.indepro-vfacade__play {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 64px; height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ebbb81, #c99a5b);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #07070b;
    box-shadow: 0 12px 36px rgba(235,187,129,0.55);
    z-index: 2;
    transition: transform 0.3s ease;
}
.indepro-vfacade:hover .indepro-vfacade__play { transform: translate(-50%, -50%) scale(1.06); }
.indepro-vfacade__label {
    position: absolute;
    left: 14px;
    bottom: 12px;
    z-index: 2;
    color: #f2f1ed;
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    font-weight: 600;
    text-shadow: 0 2px 8px rgba(0,0,0,0.6);
}
.indepro-vfacade.is-playing { cursor: default; }
.indepro-vfacade.is-playing .indepro-vfacade__play,
.indepro-vfacade.is-playing .indepro-vfacade__label { display: none; }
.indepro-vfacade iframe {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    border: 0; display: block;
}

/* === PAGE 404 === */
.indepro-404-page {
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
}
.indepro-404-hero {
    position: relative;
    padding: clamp(140px, 16vw, 200px) 0 clamp(80px, 10vw, 130px);
    text-align: center;
    overflow: clip;
    isolation: isolate;
    background: linear-gradient(180deg, var(--bg) 0%, #0c0a08 100%);
    min-height: 80vh;
    display: flex;
    align-items: center;
}
.indepro-404-hero::before,
.indepro-404-hero::after {
    content: '';
    position: absolute;
    width: 600px;
    height: 800px;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.5;
    z-index: -2;
    pointer-events: none;
}
.indepro-404-hero::before {
    top: -150px;
    left: -120px;
    background: radial-gradient(circle, rgba(235,187,129,0.4), transparent 60%);
    animation: indepro-blog-beam 14s ease-in-out infinite;
}
.indepro-404-hero::after {
    bottom: -150px;
    right: -120px;
    background: radial-gradient(circle, rgba(201,154,91,0.3), transparent 60%);
    animation: indepro-blog-beam 14s ease-in-out -7s infinite;
}
.indepro-404-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(235,187,129,0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(235,187,129,0.05) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
    z-index: -1;
}
.indepro-404-inner {
    position: relative;
    z-index: 1;
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
}
.indepro-404-hero .indepro-tag {
    display: inline-block;
    margin-bottom: 22px;
    padding: 6px 14px;
    background: rgba(7,7,11,0.6);
    border: 1px solid rgba(235,187,129,0.3);
    border-radius: 999px;
    color: #ebbb81;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.6px;
}
.indepro-404-h1 {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(120px, 20vw, 220px) !important;
    line-height: 0.9 !important;
    letter-spacing: -0.04em !important;
    font-weight: 800 !important;
    margin: 0 0 18px !important;
    display: flex;
    justify-content: center;
    gap: 0;
}
.indepro-404-h1 .indepro-gold {
    background: linear-gradient(120deg, #ebbb81 30%, #f2c088 50%, #c99a5b 70%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 800;
}
.indepro-404-sub {
    font-size: clamp(18px, 2.4vw, 24px);
    color: #f2f1ed;
    font-weight: 600;
    margin: 0 0 8px;
}
.indepro-404-help {
    font-size: 15px;
    color: rgba(242,241,237,0.6);
    margin: 0 0 28px;
}
.indepro-404-links {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 32px;
}
.indepro-404-quick {
    list-style: none;
    margin: 0;
    padding: 0;
    display: inline-flex;
    gap: 24px;
    flex-wrap: wrap;
    justify-content: center;
}
.indepro-404-quick a {
    color: rgba(242,241,237,0.6);
    text-decoration: none;
    font-size: 13.5px;
    font-weight: 500;
    transition: color 0.3s ease;
    border-bottom: 1px solid rgba(235,187,129,0.2);
    padding-bottom: 2px;
}
.indepro-404-quick a:hover {
    color: #ebbb81;
    border-bottom-color: #ebbb81;
}

/* === HERO CENTERED — variante hero home pour pages secondaires === */
.indepro-hero--centered {
    padding: clamp(120px, 12vw, 160px) 0 clamp(64px, 8vw, 100px) !important;
    overflow: clip;
    isolation: isolate;
}
/* Overlay attenue sur les pages secondaires : l'overlay home (0.35 -> 0.85)
   etouffait le sub-title qui se trouve pile dans la zone la plus sombre.
   Ici on adoucit a 0.25 -> 0.55 pour preserver la lisibilite du texte
   tout en gardant une legere vignette qui detache le hero du contenu suivant. */
.indepro-root .indepro-hero--centered .indepro-hero-overlay {
    background: linear-gradient(180deg, rgba(7,7,11,.25) 0%, rgba(7,7,11,.35) 50%, rgba(7,7,11,.55) 100%) !important;
}
/* Fade ::after du hero home = 200px de haut, gradient transparent -> bg 90%.
   Sur le hero centered, le sub-title + badge tombent dans la zone du fade.
   Meme avec z-index OK, le noir local entre les lettres tue le contraste.
   FIX : on garde 200px (riche, transition douce vers section suivante)
   mais le gradient reste totalement transparent jusqu'a 50% (100px du bas)
   et ne fonce que sur les 100 derniers pixels = la zone padding-bottom
   du hero centered, qui n'a pas de contenu. Resultat : fade visuellement
   identique a l'ancien, sans bouffer le texte. */
.indepro-root .indepro-hero--centered::after {
    height: 200px !important;
    background: linear-gradient(180deg, transparent 0%, transparent 50%, var(--bg) 100%) !important;
}
/* Le texte passe AU-DESSUS du glow gold + overlay vidéo (qui sont z:1) via
   z-index: 5 sur le wrapper .indepro-c et son contenu .indepro-hero-centered.
   Pas de shadow noir centré ajouté — on garde le glow gold home tel quel. */
.indepro-hero--centered .indepro-c {
    text-align: center;
    position: relative;
    z-index: 5;
}
.indepro-hero-centered {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 5;
}
.indepro-root .indepro-hero-centered .indepro-tag {
    display: inline-block;
    margin: 0 auto 22px !important;
    padding: 6px 14px;
    background: rgba(7, 7, 11, 0.6);
    border: 1px solid rgba(235, 187, 129, 0.3);
    border-radius: 999px;
    color: #ebbb81 !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    letter-spacing: 1.6px !important;
    text-transform: uppercase;
}
.indepro-root .indepro-hero-centered .indepro-h1 {
    font-size: clamp(40px, 5vw, 72px) !important;
    line-height: 1.05 !important;
    letter-spacing: -0.025em !important;
    font-weight: 800 !important;
    text-align: center !important;
    max-width: none !important;
    margin: 0 auto 22px !important;
    color: #f2f1ed !important;
}
.indepro-root .indepro-hero-centered .indepro-sub {
    font-size: 17px !important;
    line-height: 1.65 !important;
    color: rgba(242, 241, 237, 0.92) !important;
    max-width: 768px;
    margin: 0 auto !important;
    text-align: center !important;
}
.indepro-hero-centered__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(235, 187, 129, 0.08);
    border: 1px solid rgba(235, 187, 129, 0.25);
    border-radius: 999px;
    color: #ebbb81;
    font-size: 13px;
    font-weight: 600;
    margin-top: 24px;
}
.indepro-hero-centered__badge svg { color: #ebbb81; flex-shrink: 0; }

/* Vimeo iframe direct (fallback quand thumbnail oEmbed indispo) */
.indepro-vembed {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 14px;
    overflow: hidden;
    background-color: #0a0a0a;
    box-shadow: 0 10px 30px rgba(0,0,0,0.45);
    border: 1px solid rgba(255,255,255,0.06);
}
.indepro-vembed--vert { aspect-ratio: 9 / 16; }
.indepro-vembed iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}
