/* ===================================
   RESET & BASE STYLES
   =================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #f5f5f5;
    background-color: #1a1a1a;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

/* ===================================
   TYPOGRAPHY
   =================================== */

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Bebas Neue', 'Arial Narrow', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 2px;
}

h1 {
    font-size: 5rem;
}

h2 {
    font-size: 3.5rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
}

.lead-text {
    font-size: 1.5rem;
    line-height: 1.8;
    font-weight: 300;
}

/* ===================================
   LAYOUT
   =================================== */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
}

.section {
    padding: 120px 0;
    position: relative;
}

.section-content {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.section-content.visible {
    opacity: 1;
    transform: translateY(0);
}

.section-header {
    margin-bottom: 60px;
    text-align: center;
}

.section-title {
    color: #f5f5f5;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: #8b0000;
}

/* ===================================
   HEADER & NAVIGATION
   =================================== */

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease;
    padding: 20px 0;
}

.header.scrolled {
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
    padding: 15px 0;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.8rem;
    letter-spacing: 3px;
    color: #f5f5f5;
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-logo-img {
    height: 40px;
    width: auto;
}

.nav-list {
    display: flex;
    gap: 40px;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #f5f5f5;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #8b0000;
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* ===================================
   LANGUAGE SELECTOR
   =================================== */

.language-selector {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 30px;
}

.lang-link {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 0.9rem;
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s ease;
    letter-spacing: 1px;
    position: relative;
}

.lang-link.active {
    color: #8b0000;
    font-weight: bold;
}

.lang-link:hover {
    color: #8b0000;
}

.lang-separator {
    color: rgba(255, 255, 255, 0.2);
    font-size: 0.9rem;
    user-select: none;
}


.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.nav-toggle span {
    width: 25px;
    height: 2px;
    background: #f5f5f5;
    transition: all 0.3s ease;
}

/* ===================================
   HERO SECTION
   =================================== */

.hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url('../images/santos_analyst.jpg');
    background-size: cover;
    background-position: center right;
    background-repeat: no-repeat;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(26, 26, 26, 0.85) 0%, rgba(26, 26, 26, 0.4) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    padding: 0 30px;
}

.hero-title {
    font-size: 6rem;
    margin-bottom: 30px;
    color: #f5f5f5;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.8);
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-line {
    width: 200px;
    height: 3px;
    background: #8b0000;
    margin: 0 auto;
}

.typed-text {
    border-right: none;
    padding-right: 0;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.scroll-arrow {
    color: rgba(245, 245, 245, 0.7);
    animation: arrow-bounce 2s infinite;
    cursor: pointer;
    transition: color 0.3s ease;
}

.scroll-arrow:hover {
    color: #8b0000;
}

@keyframes arrow-bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(10px);
    }
}

/* ===================================
   SECTION: ROLE
   =================================== */

.section-role {
    background: #1a1a1a;
}

.section-role .section-text {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.section-role .lead-text {
    font-size: 1.2rem;
}

/* ===================================
   SECTION: EXIGENCE
   =================================== */

.section-exigence {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../images/santosvideoanalyst.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.section-exigence .section-text {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.section-exigence .lead-text {
    font-size: 1.2rem;
}

.exigence-quote {
    margin-top: 50px;
    padding-top: 40px;
    border-top: 1px solid rgba(139, 0, 0, 0.3);
}

.quote-text {
    font-size: 1.8rem;
    font-style: italic;
    line-height: 1.6;
    color: #f5f5f5;
    margin: 0;
}

.quote-highlight {
    color: #8b0000;
    font-weight: 500;
}


/* ===================================
   SECTION: PARCOURS (TIMELINE)
   =================================== */

.section-parcours {
    background: #1a1a1a;
}

.timeline {
    position: relative;
    max-width: 900px;
    margin: 60px auto 0;
    padding: 40px 0;
}

/* Vertical center line */
.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: rgba(139, 0, 0, 0.3);
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    margin-bottom: 60px;
    width: 100%;
}

.timeline-item:last-child {
    margin-bottom: 0;
}



/* Timeline content container */
.timeline-content {
    position: relative;
    width: 45%;
    padding-left: 40px;
    margin-left: 55%;
}

/* Timeline date badge */
.timeline-date {
    display: inline-block;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 0.9rem;
    letter-spacing: 1px;
    color: #8b0000;
    background: rgba(139, 0, 0, 0.1);
    padding: 6px 16px;
    border-radius: 20px;
    margin-bottom: 15px;
    transition: color 0.6s ease;
}

/* Timeline card */
.timeline-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 20px 25px;
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    align-items: flex-start;
    gap: 20px;
    position: relative;
}

.timeline-item:hover .timeline-card {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(139, 0, 0, 0.3);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* Call-to-action indicator */
.timeline-card::after {
    content: '→';
    position: absolute;
    right: 25px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
    color: rgba(139, 0, 0, 0.4);
    transition: all 0.3s ease;
    pointer-events: none;
}

.timeline-card.expanded::after {
    content: '↓';
    color: rgba(139, 0, 0, 0.6);
}

.timeline-item:hover .timeline-card::after {
    color: #8b0000;
    transform: translateY(-50%) translateX(3px);
}

.timeline-card.expanded:hover::after {
    transform: translateY(-50%) translateY(3px);
}

/* Club logo */
.timeline-logo {
    width: 50px;
    height: 50px;
    object-fit: contain;
    flex-shrink: 0;
    filter: grayscale(100%) brightness(0.8);
    opacity: 0.7;
    transition: all 0.6s ease;
    pointer-events: none;
}

/* Logo - Active state when in viewport */
.timeline-item.active .timeline-logo {
    filter: grayscale(0%) brightness(1);
    opacity: 1;
}

/* Logo - Hover state (overrides active state) */
.timeline-item:hover .timeline-logo {
    filter: grayscale(0%) brightness(1);
    opacity: 1;
}

/* Content wrapper */
.timeline-content-wrapper {
    flex: 1;
    min-width: 0;
    padding-right: 30px;
}

/* Timeline title */
.timeline-title {
    font-size: 1.1rem;
    color: #f5f5f5;
    margin-bottom: 5px;
    letter-spacing: 1px;
    pointer-events: none;
    transition: color 0.6s ease;
}

/* Club name */
.timeline-club {
    font-size: 0.85rem;
    color: #b0b0b0;
    font-weight: 500;
    margin-bottom: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    pointer-events: none;
    transition: color 0.6s ease;
}

/* Timeline marker - inactive by default */
.timeline-marker {
    position: absolute;
    left: 50%;
    top: 30px;
    width: 16px;
    height: 16px;
    background: rgba(139, 0, 0, 0.3);
    border: 3px solid #1a1a1a;
    border-radius: 50%;
    transform: translateX(-50%);
    z-index: 2;
    transition: all 0.6s ease;
}

/* Timeline marker - active state when in viewport */
.timeline-item.active .timeline-marker {
    background: #8b0000;
}

/* Timeline date - active state when in viewport */
.timeline-item.active .timeline-date {
    color: #ffffff;
}

/* Timeline marker - hover state */
.timeline-item:hover .timeline-marker {
    background: #b30000;
    transform: translateX(-50%) scale(1.2);
}

/* Description - Hidden by default */
.timeline-description {
    font-size: 0.9rem;
    line-height: 1.7;
    color: #d0d0d0;
    margin: 0;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.4s ease, margin-top 0.4s ease;
    pointer-events: none;
}

/* Description - Visible when expanded */
.timeline-card.expanded .timeline-description {
    max-height: 500px;
    opacity: 1;
    margin-top: 15px;
}

/* ===================================
   SECTION: ANALYSE VIDEO
   =================================== */

.section-analyse {
    background: #151515;
}

.analyse-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
    margin-top: 40px;
    align-items: start;
    /* Garde les cartes alignées en haut */
}

.analyse-card {
    background: rgba(255, 255, 255, 0.03);
    padding: 40px 30px;
    border-radius: 8px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    /* Important pour contenir les pseudo-éléments */
}

/* Background image layer */
.analyse-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.45;
    /* Augmenté à 0.45 pour meilleure visibilité */
    filter: grayscale(15%) brightness(0.85);
    /* Encore moins de grayscale, plus de luminosité */
    transition: opacity 0.4s ease-in-out;
    z-index: 0;
}

/* Dark overlay on top of image */
.analyse-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(21, 21, 21, 0.4);
    /* Réduit à 0.4 pour plus de luminosité */
    transition: background 0.4s ease-in-out;
    z-index: 1;
}

/* Ensure content is above overlays */
.analyse-card>* {
    position: relative;
    z-index: 2;
}

/* Hide background when expanded */
.analyse-card.expanded::before {
    opacity: 0;
}

.analyse-card.expanded::after {
    background: rgba(21, 21, 21, 0);
    /* Overlay disparaît aussi */
}

/* Specific background images for each card */
.analyse-card[data-bg="santosterrain.jpg"]::before {
    background-image: url('../images/santosterrain.jpg');
}

.analyse-card[data-bg="Santos_IA_Consultant.jpg"]::before {
    background-image: url('../images/Santos_IA_Consultant.jpg');
}

.analyse-card[data-bg="Santos_video_analyst.jpg"]::before {
    background-image: url('../images/Santos_video_analyst.jpg');
}

.analyse-card[data-bg="Santos_data.jpg"]::before {
    background-image: url('../images/Santos_data.jpg');
}

.analyse-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: #8b0000;
    transform: translateY(-5px);
}

.analyse-icon {
    display: none;
    /* Icons removed from design */
}

.analyse-title {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: #f5f5f5;
}

.analyse-description {
    font-size: 0.95rem;
    color: #b0b0b0;
    line-height: 1.6;
}

/* Expanded content - hidden by default */
.analyse-expanded-content {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-in-out, opacity 0.5s ease-in-out, margin-top 0.5s ease-in-out;
    text-align: left;
    color: #d0d0d0;
    line-height: 1.7;
    font-size: 0.95rem;
}

.analyse-expanded-content p {
    margin-bottom: 15px;
}

.analyse-expanded-content p:last-child {
    margin-bottom: 0;
}

/* Expanded state */
.analyse-card.expanded .analyse-expanded-content {
    max-height: 1000px;
    opacity: 1;
    margin-top: 25px;
}

/* Chevron indicator */
.analyse-chevron {
    margin-top: 20px;
    color: rgba(139, 0, 0, 0.6);
    transition: transform 0.3s ease-in-out, color 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}

.analyse-card.expanded .analyse-chevron {
    transform: rotate(180deg);
}

.analyse-card:hover .analyse-chevron {
    color: #8b0000;
}


/* ===================================
   SECTION: CONTACT
   =================================== */

.section-contact {
    background: #1a1a1a;
}

.contact-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.contact-intro {
    font-size: 1.2rem;
    margin-bottom: 50px;
    line-height: 1.8;
    font-weight: 300;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 25px;
    align-items: center;
    justify-content: center;
}

.contact-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    font-size: 1.2rem;
}

.contact-item svg {
    color: #8b0000;
    flex-shrink: 0;
}

.contact-link {
    color: #f5f5f5;
    transition: color 0.3s ease;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 15px;
}

.contact-link svg {
    color: #8b0000;
    flex-shrink: 0;
}

.contact-link:hover {
    color: #8b0000;
}

/* ===================================
   FOOTER
   =================================== */

.footer {
    background: #0d0d0d;
    padding: 30px 0;
    text-align: center;
}

.footer-text {
    font-size: 0.9rem;
    color: #808080;
}

/* ===================================
   UTILITIES
   =================================== */

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */

/* Tablet */
@media screen and (max-width: 768px) {
    .hero-title {
        font-size: 4rem;
        min-height: 100px;
    }

    .hero-line {
        width: 150px;
    }



    h2 {
        font-size: 2.5rem;
    }

    .lead-text {
        font-size: 1.2rem;
    }

    .section {
        padding: 80px 0;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background: rgba(26, 26, 26, 0.98);
        backdrop-filter: blur(10px);
        padding: 100px 30px;
        transition: right 0.3s ease;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-list {
        flex-direction: column;
        gap: 30px;
    }

    .nav-toggle {
        display: flex;
        z-index: 1001;
    }

    .language-selector {
        margin-left: 0;
        margin-top: 20px;
        justify-content: center;
        padding-top: 20px;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }


    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(7px, 7px);
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }

    .parcours-list {
        grid-template-columns: 1fr;
    }

    /* Timeline responsive adjustments */
    .timeline::before {
        left: 30px;
    }

    .timeline-marker {
        left: 30px;
    }

    .timeline-content {
        width: calc(100% - 80px);
        margin-left: 80px;
        padding-left: 0;
    }

    .timeline-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 20px;
    }

    .timeline-card::after {
        right: 20px;
        top: 20px;
        transform: none;
    }

    .timeline-card.expanded::after {
        transform: none;
    }

    .timeline-item:hover .timeline-card::after {
        transform: translateX(3px);
    }

    .timeline-card.expanded:hover::after {
        transform: translateY(3px);
    }

    .timeline-content-wrapper {
        padding-right: 0;
    }

    .timeline-logo {
        width: 45px;
        height: 45px;
        margin-bottom: 15px;
    }

    .timeline-title {
        font-size: 1rem;
    }

    .timeline-club {
        font-size: 0.8rem;
    }

    .timeline-description {
        font-size: 0.85rem;
    }

    .analyse-grid {
        grid-template-columns: 1fr;
    }
}

/* Mobile */
@media screen and (max-width: 480px) {
    .hero {
        background-position: 65% center;
    }

    .hero-title {
        font-size: 2.5rem;
        min-height: 80px;
    }

    .hero-line {
        width: 120px;
        height: 2px;
    }



    h2 {
        font-size: 2rem;
    }

    .lead-text {
        font-size: 1.1rem;
    }

    .section {
        padding: 60px 0;
    }

    .container {
        padding: 0 20px;
    }

    .nav-logo {
        font-size: 1.4rem;
    }
}

/* Ultrawide */
@media screen and (min-width: 1920px) {
    .container {
        max-width: 1400px;
    }

    .hero-title {
        font-size: 7rem;
        min-height: 140px;
    }

    .hero-line {
        width: 250px;
        height: 4px;
    }
}