/* CSS Variables & Reset */
:root {
    --bg-color: #0c0c0c;
    --text-color: #e6e6e6;
    --text-muted: #999999;
    --accent-color: #E50914;
    /* Netflix Red */
    --accent-hover: #b20710;
    --card-bg: #1a1a1a;
    --border-color: #333333;
    --nav-height: 80px;

    /* New Fonts */
    --font-heading: 'Bebas Neue', sans-serif;
    --font-signature: 'Great Vibes', cursive;
    --font-body: 'Manrope', sans-serif;

    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --spacing-container: 5%;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

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

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: #fff;
    font-weight: 400;
    /* Bebas Neue is bold by default */
    letter-spacing: 1px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

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

/* Utilities */
.container {
    padding: 0 var(--spacing-container);
    max-width: 1400px;
    margin: 0 auto;
}

.btn {
    display: inline-block;
    padding: 12px 32px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 1px solid transparent;
    font-family: var(--font-body);
}

.btn-primary {
    background-color: var(--accent-color);
    color: var(--bg-color);
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    border-color: var(--text-color);
    color: var(--text-color);
}

.btn-secondary:hover {
    background-color: var(--text-color);
    color: var(--bg-color);
    transform: translateY(-2px);
}

/* Header */
#header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    background-color: rgba(12, 12, 12, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    display: flex;
    gap: 10px;
    align-items: baseline;
    font-size: 1.5rem;
}

.logo-first {
    font-family: var(--font-signature);
    color: var(--accent-color);
    font-size: 1.8rem;
}

.logo-last {
    font-family: var(--font-heading);
    color: #fff;
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    position: relative;
    opacity: 0.8;
}

.nav-link:hover {
    opacity: 1;
    color: var(--accent-color);
}

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
    margin-left: auto;
}

.bar {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--text-color);
    margin: 5px 0;
    transition: var(--transition);
}

/* Hero Section */
#hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, #1a1a1a 0%, #0c0c0c 70%);
    z-index: -2;
}

.hero-content h1 {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    line-height: 1;
    margin-bottom: 1rem;
}

.signature-text {
    font-family: var(--font-signature);
    font-size: clamp(3rem, 8vw, 6rem);
    color: var(--accent-color);
    transform: rotate(-5deg) translateX(-10px);
    z-index: 2;
    text-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
}

.netflix-text {
    font-family: var(--font-heading);
    font-size: clamp(4rem, 12vw, 9rem);
    color: #b81d24;
    /* Netflix Red-ish, or stick to white if preferred. User asked for typography, implying style. Let's stick to white/gold for portfolio elegance unless specifically asked for red color. Converting to White for coherence, but style is key. */
    color: #fff;
    letter-spacing: 2px;
    margin-top: -20px;
    /* Overlap slightly */
}

/* If user wants EXACT Netflix red, uncomment below */
/* .netflix-text { color: #E50914; } */

.tagline {
    font-size: clamp(1rem, 2vw, 1.5rem);
    color: var(--text-muted);
    font-weight: 300;
    margin-bottom: 3rem;
    font-family: var(--font-body);
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    opacity: 0.6;
    animation: bounce 2s infinite;
}

.mouse {
    width: 26px;
    height: 40px;
    border: 2px solid var(--text-color);
    border-radius: 20px;
    position: relative;
}

.mouse::before {
    content: '';
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 6px;
    background-color: var(--accent-color);
    border-radius: 2px;
    animation: scrollMouse 2s infinite;
}

/* Projects Section */
#projects {
    padding: 100px 0;
    background-color: var(--bg-color);
}

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

.section-header h2 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.separator {
    width: 60px;
    height: 3px;
    background-color: var(--accent-color);
    margin: 0 auto;
}

.filters {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.filter-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1rem;
    cursor: pointer;
    padding: 5px 0;
    position: relative;
    transition: var(--transition);
    font-family: var(--font-body);
}

.filter-btn.active,
.filter-btn:hover {
    color: var(--text-color);
}

.filter-btn.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: var(--accent-color);
}

/* Project Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.project-card {
    background-color: var(--card-bg);
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.card-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
    position: relative;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.project-card:hover .card-overlay {
    opacity: 1;
}

.project-card:hover .card-image img {
    transform: scale(1.05);
}

.play-icon {
    width: 60px;
    height: 60px;
    background-color: var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.4);
}

.play-icon svg {
    fill: var(--bg-color);
    margin-left: 4px;
}

.card-info {
    padding: 20px;
}

.card-meta {
    font-size: 0.8rem;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.card-title {
    font-size: 1.6rem;
    margin-bottom: 5px;
}

/* Contact & Footer */
#services,
#contact {
    padding: 100px 0;
}

#services {
    background-color: #121212;
}

.services-layout,
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.visual-box {
    width: 100%;
    height: 400px;
    background-color: #222;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

.netflix-text-small {
    font-family: var(--font-heading);
    font-size: 8rem;
    color: rgba(255, 255, 255, 0.05);
}

.contact-form {
    background-color: var(--card-bg);
    padding: 40px;
    border-radius: 12px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    color: #fff;
}

.social-links {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

.social-icon {
    width: 50px;
    height: 50px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

footer {
    padding: 40px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
}

/* Animations */
@keyframes bounce {

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

    40% {
        transform: translateY(-10px);
    }

    60% {
        transform: translateY(-5px);
    }
}

@keyframes scrollMouse {
    0% {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }

    100% {
        transform: translateX(-50%) translateY(10px);
        opacity: 0;
    }
}

@media (max-width: 900px) {

    .services-layout,
    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .hero-content h1 {
        margin-bottom: 2rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: var(--nav-height);
        left: 0;
        width: 100%;
        height: calc(100vh - var(--nav-height));
        background: var(--bg-color);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transform: translateX(100%);
        transition: transform 0.4s ease;
    }

    .nav-links.active {
        transform: translateX(0);
    }

    .mobile-menu-btn {
        display: block;
    }
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.modal[aria-hidden="false"] {
    opacity: 1;
    visibility: visible;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
}

.modal-content {
    position: relative;
    width: 90%;
    max-width: 900px;
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    max-height: 90vh;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    background: #000;
}

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

.modal-info {
    padding: 25px;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.copy-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    padding: 5px 10px;
    color: #fff;
    cursor: pointer;
    border-radius: 4px;
}
/* Hero Video Background */
.hero-bg-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6); /* Darkens video for text readability */
    z-index: -1;
}

/* Carousel Styles */
.carousel-container {
    position: relative;
    padding: 0 4%;
    margin-top: 30px;
}

.projects-carousel {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    gap: 20px;
    padding: 20px 0;
    scrollbar-width: none; /* Firefox */
}

.projects-carousel::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

.projects-carousel .project-card {
    min-width: 300px;
    max-width: 300px; /* Fixed width for carousel items */
    flex-shrink: 0;
    transition: transform 0.3s ease, margin 0.3s ease;
}

.projects-carousel .project-card:hover {
    transform: scale(1.1);
    z-index: 10;
    margin: 0 15px; /* Push neighbors slightly */
    box-shadow: 0 10px 30px rgba(0,0,0,0.8);
}

.projects-carousel .card-image {
    height: 169px; /* 16:9 approx for 300px width */
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: #fff;
    border: none;
    font-size: 2rem;
    padding: 1rem;
    cursor: pointer;
    z-index: 20;
    transition: background 0.3s;
    height: 100%;
    display: flex;
    align-items: center;
}

.carousel-btn:hover {
    background: rgba(0,0,0,0.8);
    color: var(--accent-color);
}

.carousel-btn.prev { left: 0; }
.carousel-btn.next { right: 0; }

/* Process Section */
#process {
    padding: 100px 0;
    border-bottom: 1px solid var(--border-color);
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    padding: 0 var(--spacing-container);
}

.step {
    border-left: 1px solid var(--border-color);
    padding-left: 20px;
}

.step-number {
    font-family: var(--font-heading);
    font-size: 3rem;
    color: var(--accent-color);
    opacity: 0.5;
    margin-bottom: 10px;
}

.step h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #fff;
    font-family: var(--font-body);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.step p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Testimonials Section */
#testimonials {
    padding: 100px 0;
    border-bottom: 1px solid var(--border-color);
    background: #080808;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    padding: 0 var(--spacing-container);
}

.testimonial-card {
    background: var(--card-bg);
    padding: 40px;
    border: 1px solid var(--border-color);
}

.quote {
    font-family: var(--font-display); 
    /* Or keep body font styling if preferred, checking styles.css for Playfair availability which implies Serif */
    /* Wait, checking previous styles, --font-display is actually Playfair Display (Serif) in original, but changed to Bebas in override steps? 
       Wait, step 66 reverted to Bebas Neue for headers? 
       Actually let's check current 'styles.css' state. 
       Step 69 wrote styles.css which has: --font-heading: 'Bebas Neue'; --font-signature: 'Great Vibes'; --font-body: 'Manrope'. 
       So use --font-signature for a stylized quote or stick to body. Let's use body but italic.
    */
    font-style: italic;
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: #ddd;
}

.author {
    color: var(--accent-color);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

/* Contact links */
.contact-links{
    display:flex;
    flex-direction:column;
    gap:22px;              
    margin-top:32px;
    margin-bottom: 22px;       
  }
  
  /* Carte */
  .contact-item{
    display:flex;
    align-items:center;
    gap:14px;
    padding:16px 18px;
    border:1px solid rgba(255,255,255,.10);
    border-radius:14px;
    background:rgba(255,255,255,.03);
    transition:
      transform .25s ease,
      background .25s ease,
      border-color .25s ease,
      box-shadow .25s ease;
  }
  
  /* Hover */
  .contact-item:hover{
    background:rgba(255,255,255,.07);
    border-color:rgba(229,9,20,.6);
    transform:translateY(-2px);
    box-shadow:0 8px 24px rgba(0,0,0,.35);
  }
  
  /* Icône cercle */
  .contact-icon{
    width:44px;
    height:44px;
    border-radius:999px;
    background:rgba(229,9,20,.18);
    display:flex;
    align-items:center;
    justify-content:center;
    flex-shrink:0;
  }
  
  /* SVG rouge */
  .contact-icon svg{
    width:22px;
    height:22px;
    stroke:#e50914;        /* ROUGE Netflix */
    fill:none;
  }
  
  /* Texte */
  .contact-item span{
    font-size:1.05rem;
    font-weight:600;
    color:#fff;
    letter-spacing:.2px;
  }
  
  
  /* Texte */
  .about-text{
    max-width:560px;
  }
  
  .section-eyebrow{
    display:inline-block;
    margin-bottom:12px;
    color:var(--accent-color);
    text-transform:uppercase;
    letter-spacing:2px;
    font-size:.7rem;
  }
  
  .about-text h2{
    font-size:clamp(2rem, 3vw, 2.6rem);
    line-height:1.15;
    margin-bottom:18px;
  }
  
  .about-lead{
    font-size:1.05rem;
    line-height:1.7;
    color:var(--text-muted);
    margin-bottom:28px;
  }

  
  /* Skills */
  .skills-list{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:12px 24px;
  }
  
  .skills-list li{
    position:relative;
    padding-left:18px;
    font-weight:600;
  }
  
  .skills-list li::before{
    content:"•";
    position:absolute;
    left:0;
    color:var(--accent-color);
  }
  
  
  /* Layout */
/* Layout (À propos) */
.services-layout{
    display:grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap:60px;
  
    /* IMPORTANT : fait que les 2 colonnes aient la même hauteur */
    align-items: stretch;
  }
  
  /* Colonne vidéo */
  .about-visual{
    justify-self:end;
    width:100%;
    max-width:520px;
  
    /* IMPORTANT : prend toute la hauteur de la ligne (donc = hauteur du texte) */
    height:100%;
  }
  
  /* Vidéo = hauteur du texte */
  .about-visual video{
    display:block;
    width:100%;
    height:100%;           /* IMPORTANT */
    object-fit:cover;
    border-radius:14px;
    box-shadow:0 30px 80px rgba(0,0,0,.45);
  }
  
  /* Mobile */
  @media (max-width: 768px){
    .services-layout{
      grid-template-columns:1fr;
      gap:28px;
    }
  
    .about-visual{
      justify-self:stretch;
      max-width:none;
      height:auto;
    }
  
    .about-visual video{
      height:320px; /* ok en mobile */
    }
  }
  
  
  /* Tools inline */
  .tools-inline {
    margin-top: 22px;
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
  }
  
  .tools-inline strong {
    color: #fff;
    font-weight: 700;
  }
  
  .tool-main {
    color: var(--accent-color);
    font-weight: 700;
  }
  
  .tool-note {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-left: 4px;
  }
  
  .tool-separator {
    margin: 0 6px;
    color: #fff;          /* point blanc */
    font-weight: 700;
  }
  
  .tool-secondary {
    color: var(--accent-color); /* rouge */
    font-weight: 700;           /* gras */
  }
  
  .tools-music {
    margin-top: 8px;
  }

  .tools-block {
    margin-top: 22px;
  }
  
  .tools-sub {
    margin-top: 6px;
    font-size: 0.9rem;
    color: var(--text-muted);
  }
  
  .tools-sub strong {
    color: #fff;
    font-weight: 600;
  }
  
  
  
  
  
