@font-face {
    font-family: 'Funnel Display';
    src: url('fonts/FunnelDisplay-VariableFont_wght.ttf') format('truetype');
    font-weight: 100 900;
    font-style: normal;
}
/* ==========================================
   VARIABLES & RESET
   ========================================== */

:root {
    --color-bg: #fff1bf;
    --color-text: #42210b;
    --color-text-secondary: #666;
    --color-accent: #d41d00;
    --color-border: #e0d4a8;
    --font-primary: 'Funnel Display', 'Inter', sans-serif;
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.16);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
}

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

.container-full {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ==========================================
   ANIMATIONS
   ========================================== */

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

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

/* ==========================================
   NAVIGATION - AVEC LOGO
   ========================================== */

.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 241, 191, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 1.3rem;
    font-weight: 900;
    color: var(--color-accent);
    text-decoration: none;
    transition: var(--transition);
    letter-spacing: -0.5px;
}

.logo-img {
    height: 40px;
    width: auto;
    transition: var(--transition);
}

.logo:hover {
    transform: translateY(-2px);
}

.logo:hover .logo-img {
    transform: scale(1.05);
}

.nav-menu {
    display: flex;
    gap: 3rem;
    list-style: none;
}

.nav-menu a {
    color: var(--color-text);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    transition: var(--transition);
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-accent);
    transition: var(--transition);
}

.nav-menu a:hover {
    color: var(--color-accent);
}

.nav-menu a:hover::after {
    width: 100%;
}

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

.hamburger span {
    width: 25px;
    height: 2px;
    background: var(--color-accent);
    transition: var(--transition);
}

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

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 10rem 2rem 6rem;
}

.hero-container {
    max-width: 1200px;
    width: 100%;
    display: grid;
    grid-template-columns: 0.85fr 1.35fr;
    gap: 5rem;
    align-items: center;
}

.hero-content {
    text-align: left;
}

/* Encadré avec CONTOUR NOIR uniquement */
.hero-title-box {
    display: inline-block;
    border: 3px solid #000;
    padding: 1.2rem 2.5rem;
    border-radius: 30px;
    margin-bottom: 1.5rem;
    background: transparent;
}

.title-line-small {
    display: block;
    font-size: clamp(1.3rem, 2.5vw, 1.8rem);
    color: #000;
    font-weight: 400;
    letter-spacing: -0.5px;
}

.salut-bold {
    font-weight: 700;
}

.moi-cest-light {
    font-weight: 400;
}

.title-line-large {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 900;
    color: var(--color-accent);
    margin: 0 0 1.5rem 0;
    line-height: 1.1;
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: clamp(1.2rem, 2.5vw, 1.6rem);
    color: var(--color-text);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--color-text-secondary);
    max-width: 600px;
    margin-bottom: 2.5rem;
    line-height: 1.8;
}

.hero-cta {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.btn-primary,
.btn-secondary {
    padding: 1.1rem 2.8rem;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    border-radius: 8px;
    transition: var(--transition);
    display: inline-block;
    letter-spacing: -0.3px;
}

.btn-primary {
    background: var(--color-accent);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: transparent;
    color: var(--color-accent);
    border: 2px solid var(--color-accent);
}

.btn-secondary:hover {
    background: var(--color-accent);
    color: white;
    transform: translateY(-3px);
}

/* Vidéo Hero */
.hero-video {
    width: 100%;
}

.hero-video .video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
}

.hero-video .video-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.2);
}

.hero-video .video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.video-caption {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-text);
}

.scroll-indicator {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    color: var(--color-text-secondary);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
}

.scroll-line {
    width: 2px;
    height: 60px;
    background: linear-gradient(to bottom, var(--color-accent), transparent);
    animation: scrollAnimation 2s infinite;
}

@keyframes scrollAnimation {
    0%, 100% { opacity: 0; transform: translateY(0); }
    50% { opacity: 1; transform: translateY(20px); }
}

/* ==========================================
   SECTIONS COMMUNES
   ========================================== */

section {
    padding: 10rem 0;
}

.section-title {
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 900;
    margin-bottom: 1rem;
    text-align: center;
    color: var(--color-accent);
    letter-spacing: -2px;
}

.section-subtitle {
    text-align: center;
    color: var(--color-text-secondary);
    font-size: 1.3rem;
    margin-bottom: 5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ==========================================
   PORTFOLIO - CARROUSEL AVEC OVERLAY
   ========================================== */

.portfolio {
    background: rgba(255, 255, 255, 0.4);
    padding: 10rem 0;
}

.carousel-fullscreen {
    position: relative;
    max-width: 1100px;
    margin: 4rem auto;
}

.carousel-slide-container {
    position: relative;
    width: 100%;
    min-height: 680px;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.carousel-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 1;
}

.video-fullscreen {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
}

.video-fullscreen:hover {
    transform: scale(1.02);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
}

.video-fullscreen iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* OVERLAY avec dégradé noir du bas */
.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        transparent 40%,
        rgba(0, 0, 0, 0.4) 60%,
        rgba(0, 0, 0, 0.9) 100%
    );
    opacity: 0;
    transition: opacity 0.4s ease;
    display: flex;
    align-items: flex-end;
    padding: 2.5rem;
    border-radius: 20px;
    pointer-events: none;
}

.video-fullscreen:hover .video-overlay {
    opacity: 1;
}

.overlay-content {
    color: white;
    max-width: 700px;
}

.overlay-content h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    letter-spacing: -0.5px;
}

.overlay-content p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.95);
}

.video-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2rem;
    margin-bottom: 3rem;
    padding: 0 1rem;
}

.video-title-full {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--color-text);
}

.video-counter {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--color-text-secondary);
    background: rgba(255, 255, 255, 0.6);
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
}

.carousel-btn-full {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--color-accent);
    color: white;
    border: none;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
}

.carousel-btn-full:hover {
    background: #b01800;
    transform: translateY(-50%) scale(1.1);
    box-shadow: var(--shadow-lg);
}

.carousel-btn-full.prev {
    left: -30px;
}

.carousel-btn-full.next {
    right: -30px;
}

.portfolio-link {
    text-align: center;
    margin-top: 6rem;
}

/* ==========================================
   ABOUT SECTION
   ========================================== */

.about {
    background: var(--color-bg);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: start;
}

.about-text {
    margin-bottom: 1.5rem;
    color: var(--color-text-secondary);
    font-size: 1.15rem;
    line-height: 1.9;
}

.about-experience h3 {
    font-size: 2rem;
    margin-bottom: 2.5rem;
    color: var(--color-accent);
    font-weight: 900;
}

.experience-item {
    margin-bottom: 2.5rem;
    padding-bottom: 2.5rem;
    border-bottom: 2px solid var(--color-border);
    transition: var(--transition);
}

.experience-item:hover {
    transform: translateX(10px);
}

.experience-item:last-child {
    border-bottom: none;
}

.exp-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
}

.exp-header h4 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--color-text);
}

.exp-date {
    color: var(--color-text-secondary);
    font-size: 0.95rem;
    font-weight: 600;
}

.exp-role {
    color: var(--color-accent);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.exp-description {
    color: var(--color-text-secondary);
    line-height: 1.7;
}

/* ==========================================
   SKILLS SECTION
   ========================================== */

.skills {
    background: rgba(255, 255, 255, 0.4);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    margin-top: 4rem;
}

.skill-card {
    background: rgba(255, 255, 255, 0.7);
    padding: 3rem;
    border-radius: 16px;
    border: 2px solid var(--color-border);
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.skill-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-accent);
}

.skill-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
}

.skill-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
    color: var(--color-text);
}

.skill-card p {
    color: var(--color-text-secondary);
    line-height: 1.7;
    font-size: 1.05rem;
}

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

.contact {
    background: var(--color-bg);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    margin-top: 4rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-card {
    background: rgba(255, 255, 255, 0.7);
    padding: 2rem;
    border-radius: 12px;
    border: 2px solid var(--color-border);
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.contact-card:hover {
    border-color: var(--color-accent);
    transform: translateX(8px);
    box-shadow: var(--shadow-md);
}

.contact-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--color-text);
    font-weight: 700;
}

.contact-card a {
    color: var(--color-text-secondary);
    text-decoration: none;
    transition: var(--transition);
    font-weight: 600;
}

.contact-card a:hover {
    color: var(--color-accent);
}

.contact-form {
    background: rgba(255, 255, 255, 0.7);
    padding: 3rem;
    border-radius: 16px;
    border: 2px solid var(--color-border);
    box-shadow: var(--shadow-sm);
}

.contact-form h3 {
    font-size: 2rem;
    margin-bottom: 2.5rem;
    color: var(--color-accent);
    font-weight: 900;
}

.form-group {
    margin-bottom: 1.8rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1.2rem;
    border: 2px solid var(--color-border);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    background: white;
    color: var(--color-text);
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(212, 29, 0, 0.1);
}

.form-group textarea {
    resize: vertical;
}

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

.footer {
    background: rgba(66, 33, 11, 0.95);
    padding: 3rem 0;
    color: white;
}

.footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.footer p {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 600;
}

.footer-links {
    display: flex;
    gap: 2.5rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
    font-weight: 600;
}

.footer-links a:hover {
    color: white;
    transform: translateY(-2px);
}

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

@media (max-width: 968px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: rgba(255, 241, 191, 0.98);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        padding: 2rem 0;
        gap: 0;
        box-shadow: var(--shadow-md);
    }

    .nav-menu li {
        padding: 1rem 0;
    }

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

    .hamburger {
        display: flex;
    }

    .hero-container {
        grid-template-columns: 1fr;
        gap: 4rem;
    }

    .hero-content {
        text-align: center;
    }

    .hero-cta {
        justify-content: center;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 4rem;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 4rem;
    }

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

    .carousel-btn-full {
        width: 50px;
        height: 50px;
    }

    .carousel-btn-full.prev {
        left: 10px;
    }

    .carousel-btn-full.next {
        right: 10px;
    }

    /* Sur mobile, afficher toujours l'overlay */
    .video-overlay {
        opacity: 1;
        background: linear-gradient(
            to bottom,
            transparent 0%,
            transparent 50%,
            rgba(0, 0, 0, 0.7) 80%,
            rgba(0, 0, 0, 0.95) 100%
        );
    }

    .overlay-content {
        padding-bottom: 1rem;
    }

    .overlay-content h3 {
        font-size: 1.3rem;
    }

    .overlay-content p {
        font-size: 0.95rem;
    }

    section {
        padding: 6rem 0;
    }
}

@media (max-width: 640px) {
    .hero-cta {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        max-width: 300px;
        text-align: center;
    }

    .video-info {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
}