/* ==========================================================================
   INDEX PAGE REDESIGN STYLES — thème officiel doré
   ========================================================================== */

/* Patronage Top Adjustments — compensé pour la navbar fixe (110px) */
section.king {
    padding: 150px 0 40px 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: #000000;
}

@keyframes cyber-glow-subtle {
    0% {
        box-shadow: 0 0 15px #a67f28;
        border-color: rgba(166, 127, 40, 0.5);
    }

    50% {
        box-shadow: 0 0 20px #f5e2a8;
        border-color: rgba(245, 226, 168, 0.6);
    }

    100% {
        box-shadow: 0 0 15px #c9a84c;
        border-color: rgba(201, 168, 76, 0.5);
    }
}

@keyframes text-glow-neon {
    0% {
        text-shadow: 0 0 10px rgba(201, 168, 76, 0.3);
    }

    50% {
        text-shadow: 0 0 20px rgba(245, 226, 168, 0.6), 0 0 30px rgba(201, 168, 76, 0.4);
    }

    100% {
        text-shadow: 0 0 10px rgba(201, 168, 76, 0.3);
    }
}

/* Fades between sections */
.fade-black-to-transparent {
    width: 100%;
    height: 80px;
    background: linear-gradient(to bottom, #000000 0%, transparent 100%);
    position: absolute;
    z-index: 10;
    pointer-events: none;
}

.fade-transparent-to-black {
    width: 100%;
    height: 150px;
    background: linear-gradient(to bottom, transparent 0%, #000000 100%);
    position: absolute;
    z-index: 10;
    pointer-events: none;
    transform: translateY(-100%);
}

/* Video Info Overlay (Top Left) */
.video-info-overlay {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: 8%;
    width: 45%;
    min-width: 300px;
    z-index: 5;
    font-family: 'Lora', serif;
}

.video-info-overlay h2 {
    font-size: 50px;
    margin-top: 0;
    margin-bottom: 20px;
    font-family: 'Playfair Display', serif;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #ffffff;
    -webkit-text-fill-color: #ffffff;
    background: none;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
    transition: color 0.5s ease, -webkit-text-fill-color 0.5s ease, text-shadow 0.5s ease;
    cursor: default;
}

.video-info-overlay h2:hover {
    background: linear-gradient(90deg, #a67f28, #f5e2a8, #c9a84c);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 4px 18px rgba(201, 168, 76, 0.4);
}
.video-info-overlay p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 22px;
    line-height: 1.6;
    margin: 0;
    text-shadow: 1px 1px 6px rgba(0, 0, 0, 0.8);
    font-weight: 400;
}

@media (max-width: 768px) {
    .video-info-overlay {
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 85%;
        text-align: center;
    }

    .video-info-overlay h2 {
        font-size: 36px;
    }

    .video-info-overlay p {
        font-size: 18px;
    }
}

/* Confiance Section Title */
#confiance-section {
    background-color: #000000;
    padding-top: 50px;
}

.confiance-title {
    font-size: 45px;
    text-align: center;
    font-family: 'Playfair Display', serif;
    font-weight: 800;
    margin: 0 0 30px 0;
    text-transform: uppercase;
    background: linear-gradient(90deg, #a67f28, #f5e2a8, #c9a84c);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: text-glow-neon 5s infinite alternate;
}

@media (max-width: 768px) {
    .confiance-title {
        font-size: 24px;
        padding: 0 20px;
        line-height: 1.3;
    }

    .timeline-main-title {
        font-size: 32px !important;
        padding: 0 15px;
    }

    .timeline-main-title strong {
        font-size: 24px !important;
    }
}

/* ── SECTION CONFIANCE (IMAGE FINALE) ── */
.final-image-inner {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 80px 20px 120px;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
    background-color: #000;
}

.bump-zoom-img {
    max-width: 1200px;
    width: 100%;
    height: auto;
    border-radius: 24px;
    box-shadow: 0 10px 60px rgba(0, 0, 0, 0.9);
    border: 1px solid rgba(201, 168, 76, 0.2);
    transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
}

@media (max-width: 768px) {
    .final-image-inner {
        padding: 40px 15px 80px;
    }

    .bump-zoom-img {
        border-radius: 12px;
        box-shadow: 0 5px 30px rgba(201, 168, 76, 0.15);
    }
}

.bump-zoom-img:hover {
    transform: scale(1.03) translateY(-10px);
    box-shadow: 0 25px 60px rgba(201, 168, 76, 0.25);
    border-color: rgba(201, 168, 76, 0.45);
}

/* ==========================================================================
   TIMELINE REDESIGN
   ========================================================================== */
#timeline-redesign-section {
    background-color: #000000;
    position: relative;
    z-index: 1;
    height: 300vh;
}

.timeline-sticky-container {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0;
    overflow: hidden;
}

.timeline-main-title {
    font-family: 'Playfair Display', serif;
    color: #ffffff;
    text-align: center;
    margin-bottom: 60px;
}

.timeline-main-title strong {
    background: linear-gradient(90deg, #a67f28, #f5e2a8, #c9a84c);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: text-glow-neon 5s infinite alternate;
}

.timeline-container-redesign {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    position: relative;
    padding: 0 20px;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 40px;
}

/* Vertical Nav Line on the Left */
.timeline-nav {
    position: relative;
    margin-bottom: 0;
    padding-top: 0;
    width: 120px;
    height: 450px;
    display: flex;
    flex-direction: row;
}

.timeline-lines-container {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 20px;
    width: 4px;
    height: 100%;
    z-index: 1;
}

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

.timeline-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0%;
    background: linear-gradient(180deg, #a67f28, #f5e2a8);
    border-radius: 2px;
    box-shadow: 0 0 15px rgba(201, 168, 76, 0.7);
}

.timeline-nodes {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    z-index: 2;
    height: 100%;
    width: 100%;
    padding-left: 9px;
}

.timeline-node {
    display: flex;
    flex-direction: row;
    align-items: center;
    cursor: pointer;
    position: relative;
}

.node-circle {
    width: 20px;
    height: 20px;
    background-color: #000000;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transition: all 0.4s ease;
    margin-bottom: 0;
    margin-right: 15px;
    position: relative;
    z-index: 5;
    flex-shrink: 0;
}

.timeline-node.completed .node-circle {
    border-color: #c9a84c;
    box-shadow: 0 0 10px rgba(201, 168, 76, 0.3);
}

.timeline-node:hover .node-circle {
    background-color: #2a2210;
    border-color: #f5e2a8;
    box-shadow: 0 0 15px rgba(201, 168, 76, 0.5);
}

.timeline-node.active .node-circle {
    background-color: #c9a84c;
    border-color: #fff;
    transform: scale(1.3);
    animation: cyber-glow-subtle 3s infinite alternate;
}

.node-year {
    color: #888;
    font-size: 20px;
    font-family: 'Lora', serif;
    font-weight: 300;
    transition: all 0.4s ease;
}

.timeline-node:hover .node-year {
    color: #ddd;
}

.timeline-node.active .node-year {
    color: #f5e2a8;
    font-weight: bold;
    transform: translateX(5px);
    font-size: 24px;
    text-shadow: 0 0 10px rgba(201, 168, 76, 0.7);
}

/* Content Panels */
.timeline-content-display {
    position: relative;
    height: 450px;
    flex: 1;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.timeline-panel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease, visibility 0.8s ease, transform 0.8s ease;
    transform: scale(1.05);
}

.timeline-panel.active {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
    z-index: 2;
}

.panel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.6) 50%, rgba(0, 0, 0, 0.2) 100%);
}

.panel-text {
    position: absolute;
    top: 50%;
    left: 10%;
    transform: translateY(-50%);
    width: 40%;
    min-width: 300px;
    z-index: 3;
    opacity: 0;
    transform: translateY(-40%);
    transition: all 0.6s ease 0.4s;
}

.timeline-panel.active .panel-text {
    opacity: 1;
    transform: translateY(-50%);
}

.panel-year {
    display: block;
    font-family: 'Playfair Display', serif;
    color: #f5e2a8;
    font-size: 60px;
    font-weight: 400;
    margin-bottom: 10px;
    line-height: 1;
    text-shadow: 0 0 15px rgba(201, 168, 76, 0.5);
}

.panel-title {
    color: #ffffff;
    font-size: 36px;
    font-family: 'Lora', serif;
    font-weight: 500;
    margin: 0 0 20px 0;
    line-height: 1.2;
}

.panel-desc {
    color: #dddddd;
    font-size: 18px;
    font-family: 'Lora', serif;
    line-height: 1.5;
}

/* ── MOBILE TIMELINE: fully vertical, card-based ── */
@media (max-width: 768px) {

    #timeline-redesign-section {
        height: auto !important;
    }

    .timeline-sticky-container {
        position: static;
        height: auto;
        padding: 40px 0 60px;
        overflow: visible;
    }

    .timeline-main-title {
        font-size: 26px !important;
        margin-bottom: 32px;
        padding: 0 20px;
        line-height: 1.3;
    }

    .timeline-main-title strong {
        font-size: 22px !important;
    }

    .timeline-container-redesign {
        flex-direction: column;
        gap: 0;
        padding: 0;
        align-items: stretch;
        width: 100%;
    }

    .timeline-nav {
        display: none;
    }

    .timeline-content-display {
        position: static;
        height: auto;
        width: 100%;
        border-radius: 0;
        box-shadow: none;
        overflow: visible;
        display: flex;
        flex-direction: column;
        gap: 16px;
        padding: 0 16px;
        box-sizing: border-box;
    }

    .timeline-panel {
        position: relative !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        width: 100%;
        height: 260px;
        border-radius: 16px;
        overflow: hidden;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.7);
        border: 1px solid rgba(201, 168, 76, 0.2);
        background-color: #111;
        background-size: cover;
        background-position: center;
        transition: none;
    }

    .panel-overlay {
        background: linear-gradient(0deg,
                rgba(0, 0, 0, 0.95) 0%,
                rgba(0, 0, 0, 0.60) 50%,
                rgba(0, 0, 0, 0.10) 100%);
    }

    .panel-text {
        position: absolute;
        top: auto;
        bottom: 0;
        left: 0;
        width: 100%;
        padding: 16px 20px 20px;
        box-sizing: border-box;
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
        min-width: unset;
    }

    .timeline-panel.active .panel-text {
        opacity: 1 !important;
        transform: none !important;
    }

    .panel-year {
        font-size: 32px;
        margin-bottom: 4px;
    }

    .panel-title {
        font-size: 18px;
        margin: 0 0 6px 0;
        line-height: 1.2;
    }

    .panel-desc {
        font-size: 12px;
        line-height: 1.4;
        margin: 0;
    }
}

/* ==========================================================================
   STATS TRANSITION — filet doré unique au lieu du glow rose/bleu/indigo
   ========================================================================== */
.stats-transition {
    position: relative;
    width: 100%;
    height: 150px;
    background-color: #000000;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.glow-line {
    position: absolute;
    height: 2px;
    width: 30%;
    border-radius: 50%;
    filter: blur(8px);
    opacity: 0.5;
    background: #c9a84c;
    box-shadow: 0 0 30px 10px rgba(201, 168, 76, 0.6);
    animation: drift 4s infinite alternate;
}

.glow-pink {
    top: 30%;
    left: 20%;
    animation-delay: 0s;
}

.glow-blue {
    top: 60%;
    right: 25%;
    animation-delay: 1s;
}

.glow-indigo {
    top: 45%;
    left: 50%;
    transform: translateX(-50%);
    animation-delay: 2s;
}

@keyframes drift {
    0% {
        transform: translateY(0) scale(1);
        opacity: 0.35;
    }

    100% {
        transform: translateY(-10px) scale(1.2);
        opacity: 0.65;
    }
}