/* ==========================================================================
   GOULAINE COUNTRY - PAGE TRANSITIONS
   Styles pour Pulse GC, Barre de progression et Fondu
   ========================================================================== */

/* --- 1. OVERLAY DE TRANSITION (Pulse GC & Fondu) --- */
.gc-transition-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #fbf9f7; /* Fallback direct pour éviter toute transparence */
    background-color: var(--gc-ivoire, #fbf9f7);
    z-index: 99999999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    
    /* Animation douce */
    opacity: 1;
    visibility: visible;
    transition: opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1), 
                visibility 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: opacity, visibility;
}

/* Disparition quand la page est prête */
.gc-transition-overlay.is-loaded {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.gc-transition-overlay.is-loaded .gcpt-pulse-badge {
    transform: scale(0.92);
    opacity: 0;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.25s ease;
}

/* --- 2. MODE 🤠 PULSE GC (Logo officiel Goulaine Country) --- */
.gcpt-pulse-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
    animation: gcpt-pulse 1.8s ease-in-out infinite;
    transform-origin: center center;
}

.gcpt-badge-logo-img {
    width: 170px;
    max-width: 80vw;
    height: auto;
    display: block;
    filter: drop-shadow(0 8px 20px rgba(0, 52, 75, 0.12));
}

@keyframes gcpt-pulse {
    0% {
        transform: scale(1);
        filter: drop-shadow(0 8px 20px rgba(0, 52, 75, 0.12));
    }
    50% {
        transform: scale(1.06);
        filter: drop-shadow(0 14px 32px rgba(192, 122, 42, 0.28));
    }
    100% {
        transform: scale(1);
        filter: drop-shadow(0 8px 20px rgba(0, 52, 75, 0.12));
    }
}


/* --- 3. MODE ⚡ BARRE DE PROGRESSION EN TÊTE (Style YouTube / Moderne) --- */
.gcpt-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3.5px;
    z-index: 99999999;
    pointer-events: none;
    background: transparent;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.gcpt-progress-bar.is-active {
    opacity: 1;
}

.gcpt-progress-bar-inner {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--gc-bleu-nuit, #00344b) 0%, var(--gc-orange, #d97706) 50%, var(--gc-bleu, #2563eb) 100%);
    box-shadow: 0 0 12px rgba(217, 119, 6, 0.8), 0 0 6px rgba(37, 99, 235, 0.6);
    transition: width 0.3s ease-out;
    border-radius: 0 2px 2px 0;
}

.gcpt-progress-bar.is-finishing .gcpt-progress-bar-inner {
    width: 100% !important;
    transition: width 0.2s ease-out;
}

/* --- 4. MODE ☁️ SPINNER CLASSIQUE DU FONDU --- */
.gcpt-spinner {
    width: 44px;
    height: 44px;
    border: 3.5px solid rgba(0, 52, 75, 0.1);
    border-top-color: var(--gc-bleu-nuit, #00344b);
    border-right-color: var(--gc-orange, #c07a2a);
    border-radius: 50%;
    animation: gcpt-spin 0.8s linear infinite;
}

@keyframes gcpt-spin {
    to {
        transform: rotate(360deg);
    }
}
