:root {
    --bg-color: #050505;
    --text-color: #e6e6e6;
    --accent-color: #ccff00;
    /* Retour au Acid Green pur pour le contraste */
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
}

h1,
h2,
h3,
.font-syne {
    font-family: 'Syne', sans-serif;
}

/* TYPOGRAPHIE HERO - FIX "NOIR" */
/* François en "Outline" (Contour) pour l'effet sombre demandé */
.text-outline {
    font-family: 'Bebas Neue', sans-serif;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.9);
    color: transparent;
    text-shadow: 0 0 40px rgba(255, 255, 255, 0.1);
    letter-spacing: 0.05em;
}

@media (min-width: 768px) {
    .text-outline {
        -webkit-text-stroke: 2px rgba(255, 255, 255, 0.9);
        text-shadow: 0 0 60px rgba(255, 255, 255, 0.15);
    }
}

.hero-title {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(3.5rem, 13vw, 9.5rem);
    line-height: 0.95;
    letter-spacing: -0.04em;
    padding-bottom: 0.5em;
}

.hero-title div {
    margin-bottom: 0.1em;
}

/* Subtle glow on solid text */
.hero-title div:not(.text-outline) {
    text-shadow: 0 0 80px rgba(204, 255, 0, 0.2);
}

/* FOOTER */
footer {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 4rem;
    padding-top: 4rem;
    padding-bottom: 2rem;
}

.footer-email {
    font-family: 'Syne', sans-serif;
    font-size: clamp(2rem, 5vw, 4rem);
    /* Reduced max size to prevent overlap */
    font-weight: 700;
    color: white;
    text-align: right;
    line-height: 1;
    margin-bottom: 2rem;
    display: block;
}

/* BANDEAU MARQUEE - FIX COUPURE */
.marquee-container {
    position: relative;
    width: 100vw;
    max-width: 100%;
    height: 80px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.03);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
}

.marquee-track {
    display: flex;
    white-space: nowrap;
    /* Animation continue sans saut */
    animation: marquee-scroll 20s linear infinite;
    width: max-content;
}

.marquee-item {
    padding: 0 3vw;
    font-family: 'Syne', sans-serif;
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 700;
    text-transform: uppercase;
    color: transparent;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.3);
    opacity: 0.6;
}

@keyframes marquee-scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }

    /* On déplace de la moitié car le contenu est dupliqué 1 fois */
}

/* TEXTURES & UI */
.noise-overlay {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 90;
    opacity: 0.05;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* Experience Cards */
.experience-card {
    transition: all 0.3s ease;
    position: relative;
}

.experience-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

::selection {
    background: var(--accent-color);
    color: #000;
}

/* Scrollbar personnalisée */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #0a0a0a;
}

::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* HEADER PROFILE PHOTO STYLES */
.header-photo-wrapper {
    position: relative;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    padding: 2px;
    background: linear-gradient(135deg, var(--accent-color) 0%, rgba(204, 255, 0, 0.5) 100%);
    transition: transform 0.3s ease;
    overflow: hidden;
}

.header-photo-wrapper:hover {
    transform: scale(1.15);
}

.header-photo {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #000;
    transition: transform 0.3s ease;
}

.header-photo-wrapper:hover .header-photo {
    transform: scale(1.1);
}

/* CONTACT FORM STYLES */
.form-input {
    font-family: 'Inter', sans-serif;
}

.form-input:focus {
    box-shadow: 0 0 0 3px rgba(204, 255, 0, 0.1);
}

.form-input::placeholder {
    color: #666;
}

.submit-btn {
    position: relative;
    overflow: hidden;
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.1);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.submit-btn:hover::before {
    width: 300px;
    height: 300px;
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

#formMessage.success {
    background: rgba(204, 255, 0, 0.1);
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
}

#formMessage.error {
    background: rgba(255, 0, 0, 0.1);
    border: 1px solid #ff4444;
    color: #ff4444;
}

/* FORMATION CARD GRID */
.formation-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.formation-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.formation-card:hover {
    transform: translateY(-5px);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
    border-color: rgba(204, 255, 0, 0.2);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.formation-card:hover::before {
    opacity: 1;
}

.formation-year {
    font-family: 'Inter', monospace;
    font-size: 0.75rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
    font-weight: 600;
    padding: 4px 12px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 5px;
    display: inline-block;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.formation-degree {
    font-family: 'Syne', sans-serif;
    font-size: 1.0625rem;
    font-weight: 700;
    color: #e6e6e6;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.formation-school {
    font-size: 0.875rem;
    color: #888;
    font-weight: 500;
    line-height: 1.4;
}

/* Responsive */
@media (min-width: 1024px) {

    /* Force single row on desktop */
    .formation-card {
        min-width: 0;
    }
}

@media (max-width: 768px) {
    .formation-degree {
        font-size: 1rem;
    }

    .formation-year {
        font-size: 0.6875rem;
    }

    .formation-school {
        font-size: 0.8125rem;
    }
}