/* global.css */

/* ---------- VARIABLES ---------- */
:root {
    --primary-color: #2979ff;
    --secondary-color: #2B2D42;
    --accent-color: #4A90E2;
    --background-color: #0A0A0B; /* noir profond */
    --text-color: #FFFFFF; /* texte blanc */
    --text-light: #CCCCCC; /* texte gris clair */
    --white: #FFFFFF;
    --black: #000000;
    --gradient: linear-gradient(135deg, #232526 0%, #0f2027 100%);
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.5);
    --transition: all 0.3s ease;
    --light-bg: #18181b; /* gris très foncé */

    /* 2025 Modern Design System */
    --font-primary: 'Montserrat', sans-serif;
    --font-display: 'Bebas Neue', sans-serif;
    --font-mono: 'Space Mono', monospace;
    
    --black: #0A0A0B;
    --white: #FFFFFF;
    --off-white: #F4F4F5;
    --gray-100: #E4E4E7;
    --gray-200: #A1A1AA;
    --gray-300: #71717A;
    --gray-400: #5C5C64;
    --gray-900: #1A1A1D;
    
    --gradient-modern: linear-gradient(135deg, var(--black) 0%, #1A1A1D 100%);
    --shadow-subtle: 0 2px 40px rgba(0, 0, 0, 0.1);
    --shadow-strong: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 8rem;
    
    --border-radius: 2px;
    --transition-smooth: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

a {
    color: inherit;
    text-decoration: none;
}

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

html, body {
    overflow-x: hidden !important;
}

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
    padding-top: 60px; /* prevent content hidden under navbar */
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 400;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.heading-xl {
    font-size: clamp(3rem, 8vw, 6rem);
    margin-bottom: var(--spacing-lg);
}

.heading-lg {
    font-size: clamp(2rem, 6vw, 4rem);
    margin-bottom: var(--spacing-md);
}

.heading-md {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    margin-bottom: var(--spacing-sm);
}

.text-body {
    font-family: var(--font-primary);
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--gray-300);
}

.text-mono {
    font-family: var(--font-mono);
    font-size: 0.875rem;
    letter-spacing: -0.02em;
}

/* Layout Components */
.container-fluid {
    width: 100%;
    padding: 0 var(--spacing-md);
}

.container-narrow {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.grid-modern {
    display: grid;
    gap: var(--spacing-lg);
}

.flex-modern {
    display: flex;
    gap: var(--spacing-md);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    text-align: center;
}

.btn-primary {
    background: var(--gradient);
    color: var(--white);
    border: none;
}

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

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

/* Modern Interactive Elements */
.btn-modern {
    font-family: var(--font-mono);
    font-size: 0.875rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 1rem 2rem;
    background: var(--black);
    color: var(--white);
    border: none;
    border-radius: var(--border-radius);
    transition: var(--transition-smooth);
    cursor: pointer;
}

.btn-modern:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-strong);
}

.input-modern {
    font-family: var(--font-mono);
    font-size: 1rem;
    padding: 1rem;
    background: var(--gray-900);
    border: none;
    border-radius: var(--border-radius);
    transition: var(--transition-smooth);
    color: var(--text-color);
}

.input-modern:focus {
    outline: none;
    background: var(--background-color);
    color: var(--text-color);
    box-shadow: var(--shadow-subtle);
}

/* Hero Section - Homepage */
.hero {
    height: 100vh;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    overflow-x: hidden;
}

.hero-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.5);
    z-index: -1;
}

.hero-content {
    max-width: 800px;
    padding: 2rem;
}

.hero-title {
    font-size: 4rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    font-style: italic;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* Page Hero Sections */
.page-hero {
    min-height: 60vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    background: linear-gradient(135deg, #1a1a1a 0%, #363636 100%);
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(41, 41, 41, 0.8) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(66, 66, 66, 0.8) 0%, transparent 50%);
    z-index: 1;
}

.page-hero .container {
    position: relative;
    z-index: 2;
}

.page-hero .hero-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
}

.page-hero h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    background: linear-gradient(135deg, #ffffff 0%, #e0e0e0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: titleFloat 3s ease-in-out infinite;
}

.page-hero p {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Specific Hero Backgrounds */
.shows-hero {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
}

.projets-hero {
    background: linear-gradient(135deg, #243949 0%, #517fa4 100%);
}

.academie-hero {
    background: linear-gradient(135deg, #0f2027 0%, #203a43 50%, #2c5364 100%);
}

.divers-hero {
    background: linear-gradient(135deg, #2C3E50 0%, #3498DB 100%);
}

@keyframes titleFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Hero Decorative Elements */
.hero-shapes {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    z-index: 1;
    opacity: 0.1;
}

.hero-shapes span {
    position: absolute;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.hero-shapes span:nth-child(1) {
    width: 100px;
    height: 100px;
    top: 20%;
    left: 10%;
    animation: floatShape 8s infinite;
}

.hero-shapes span:nth-child(2) {
    width: 150px;
    height: 150px;
    top: 60%;
    right: 15%;
    animation: floatShape 12s infinite;
}

.hero-shapes span:nth-child(3) {
    width: 70px;
    height: 70px;
    bottom: 20%;
    left: 20%;
    animation: floatShape 10s infinite;
}

@keyframes floatShape {
    0%, 100% {
        transform: translate(0, 0);
    }
    25% {
        transform: translate(10px, -10px);
    }
    50% {
        transform: translate(0, -20px);
    }
    75% {
        transform: translate(-10px, -10px);
    }
}

/* About Section */
.about {
    padding: 6rem 0;
    background: var(--background-color);
}

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

.about-content {
    padding-right: 2rem;
    color: var(--text-color);
}

.about-text {
    margin-bottom: 2rem;
    font-size: 1.1rem;
    color: var(--white);
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.feature {
    text-align: center;
    padding: 1.5rem;
    border-radius: 10px;
    background: var(--gray-900);
    color: var(--text-color);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.feature:hover {
    transform: translateY(-5px);
}

.feature i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.about-image img {
    width: 100%;
    border-radius: 20px;
    box-shadow: var(--shadow);
}

/* Stats Section */
.stats {
    padding: 6rem 0;
    background: var(--gray-900);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.stat-item {
    text-align: center;
    padding: 2rem;
    background: transparent;
    color: var(--text-color);
    position: relative;
    width: 220px;
    height: 220px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    transition: var(--transition);
}

.stat-item::before {
    content: none !important;
}

.stat-item::after {
    content: none !important;
}

.stat-item:hover {
    transform: translateY(-5px) scale(1.05);
}

.stat-item:hover::before,
.stat-item:hover::after {
    opacity: 1;
}

.stat-number {
    display: block;
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-color);
    z-index: 1;
}

.stat-text {
    color: var(--text-color);
    font-size: 1.1rem;
    z-index: 1;
}

/* Services Section */
.services {
    padding: 6rem 0;
    background: var(--background-color);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--gray-900);
    color: var(--text-color);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.service-card h3 {
    margin: 1.5rem;
    font-size: 1.5rem;
}

.service-card p {
    margin: 0 1.5rem 1.5rem;
    color: var(--white);
}

.service-icon {
    width: 100%;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient);
    color: var(--white);
    font-size: 4rem;
}

/* Project Cards */
.project-card {
    background: var(--gray-900);
    color: var(--text-color);
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 4rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.project-card:hover {
    transform: translateY(-10px);
}

.project-image {
    width: 100%;
    height: 300px;
    overflow: hidden;
}

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

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

.project-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.project-content h3 {
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.project-content p {
    margin-bottom: 1.5rem;
    color: var(--text-color);
    flex-grow: 1;
}

.project-content .btn {
    align-self: flex-start;
}

/* Team & Partners Section */
.team-partners {
    padding: 6rem 0;
    background: var(--background-color);
}

.partners-slider {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
    align-items: center;
}

.partner img {
    width: 100%;
    max-width: 150px;
    height: auto;
    filter: grayscale(100%);
    transition: var(--transition);
}

.partner:hover img {
    filter: grayscale(0%);
}

/* Partners Grid */
.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: var(--spacing-xs);
    margin: var(--spacing-md) auto;
    max-width: 1400px;
}

.partner-card {
    background: none;
    padding: 0.75rem;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1;
}

.partner-card img {
    max-width: 85%;
    height: auto;
    object-fit: contain;
    filter: none;
    opacity: 1;
    transition: var(--transition-smooth);
}
.logo-noir{
  filter: brightness(0) invert(1);
}

.partner-card:hover img {
    transform: scale(1.06);
    opacity: .9;
}

@media (min-width: 1025px){
  .services-tiles .service-tile{ min-height: 420px; }
}

@media (max-width: 1024px) {
    .partners-grid {
        grid-template-columns: repeat(6, 1fr);
    }
}

@media (max-width: 768px) {
    .partners-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 480px) {
    .section.team-partners .partners-grid {
        display: grid !important;
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 0.1rem !important;
        justify-items: center !important;
        align-items: center !important;
        width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        box-sizing: border-box !important;
    }
    .section.team-partners .partner-card {
        padding: 0 !important;
        aspect-ratio: 1/1 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    .section.team-partners .partner-card img {
        max-width: 32px !important;
        width: 100% !important;
        height: auto !important;
        object-fit: contain !important;
        margin: 0 auto !important;
        display: block !important;
    }
}

/* Footer Styles */
.footer {
    background-color: var(--background-color);
    color: var(--text-color);
    padding: 3rem 0 2rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
    margin-bottom: 2rem;
}
.footer-ilan{
  font-weight: bold;
}
.footer-ilan:hover{
  color: white;
}
.footer-brand {
    flex: 1;
}

.footer-brand .logo {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    display: block;
    color: var(--text-color);
    text-decoration: none;
}

.footer-brand p {
    color: var(--gray-400);
    font-size: 0.9rem;
}

.footer-social {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.footer-social a {
    color: var(--text-color);
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.footer-social a:hover {
    color: var(--primary-color);
    background: none;
}

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

.footer-links h4 {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
    color: var(--gray-400);
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-color);
    background: none;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--gray-800);
}

.footer-bottom p {
    color: var(--gray-400);
    font-size: 0.8rem;
}

@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-social {
        justify-content: center;
    }

    .footer-links {
        flex-direction: column;
        gap: 2rem;
        align-items: center;
    }
}

/* Modern Cards */
.card-modern {
    background: var(--gray-900);
    color: var(--text-color);
    padding: var(--spacing-md);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-subtle);
    transition: var(--transition-smooth);
}

.card-modern:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-strong);
}

/* Section Styles */
.section {
    padding: 6rem 0;
    background: var(--background-color);
}

.section:first-of-type {
    padding-top: 120px; /* Pour éviter le chevauchement avec la navbar */
}

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

/* Page Specific First Sections */
.projets-section,
.shows-section,
.academie-section,
.divers-section,
.contact-section,
.presentation {
    padding-top: 120px; /* Pour éviter le chevauchement avec la navbar */
}

/* Section Headers */
.projets-header,
.shows-header,
.academie-header,
.divers-header,
.contact-header {
    text-align: center;
    margin-bottom: 4rem;
}

.projets-header h1,
.shows-header h1,
.academie-header h1,
.divers-header h1,
.contact-header h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--white);
}

.projets-header p,
.academie-header p,
.divers-header p,
.contact-header p {
    font-size: 1.2rem;
    color: var(--white);
    max-width: 600px;
    margin: 0 auto;
}

.gallery-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    line-height: 0.9;
    margin-top: 3rem;
}

/* Responsive Design */
@media (max-width: 900px) {
  .container {
    width: 98%;
    padding: 0 8px;
  }
  .about-grid {
    flex-direction: column;
    gap: 2rem;
  }
  .about-image img {
    max-width: 100%;
    height: auto;
  }
  .hero-content {
    padding: 2rem 0.5rem;
    text-align: center;
  }
  .hero-title {
    font-size: 2.2rem;
  }
  .hero-subtitle {
    font-size: 1.1rem;
  }
  .hero-video {
    height: 320px;
    object-fit: cover;
  }
  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }
}

@media (max-width: 600px) {
  .container {
    width: 100%;
    padding: 0 4px;
  }
  .hero-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 80vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 2;
    padding: 0 1rem;
    background: none;
    text-align: center;
  }
  .hero-title {
    font-size: 1.35rem !important;
  }
  .hero-subtitle {
    font-size: 0.95rem !important;
  }
  
  .about-grid {
    flex-direction: column;
    gap: 1.2rem;
    margin-left: 1rem;
    margin-right: 1rem;
  }
  .about-image img {
    width: 100%;
    height: auto;
    border-radius: 12px;
  }
  .about-content h2 {
    font-size: 1.5rem;
  }
  .about-content p {
    font-size: 1rem;
  }
  .btn {
    font-size: 1rem;
    padding: 0.7rem 1.2rem;
  }
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .stat-number {
    font-size: 2rem;
  }
  .footer-content {
    flex-direction: column;
    gap: 1.5rem;
    align-items: flex-start;
  }
  .footer-brand {
    align-items: flex-start;
    text-align: left;
  }
  .footer-social {
    margin-top: 0.5rem;
  }
}

@media (max-width: 480px) {
  .hero-content {
    padding: 1rem 0;
  }
  .about-content h2 {
    font-size: 1.2rem;
  }
  .about-content p {
    font-size: 0.95rem;
  }
  .btn {
    font-size: 0.95rem;
    padding: 0.6rem 1rem;
  }
}

@media (max-width: 768px) {

    .hero-title {
        font-size: 3rem;
    }

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

    .about-content {
        padding-right: 0;
    }

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

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }

    .service-card img {
        height: 200px;
    }

    .project-image {
        height: 250px;
    }
}

/* Animations */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-up {
    animation: fadeUp 0.6s ease forwards;
}

/* Responsive Design */
@media (max-width: 700px) {
  .footer-content {
    flex-direction: column;
    gap: 1.5rem;
    align-items: flex-start;
    text-align: left;
  }
  .footer-brand {
    align-items: flex-start;
    text-align: left;
  }
  .footer-social {
    margin-top: 0.5rem;
  }
  .footer {
    padding: 2rem 0 1rem 0;
  }
  .stats-grid, .about-grid, .services-grid, .project-list, .project-item, .timeline, .gallery-grid {
    grid-template-columns: 1fr !important;
    flex-direction: column !important;
    gap: 1.2rem !important;
  }
  .partners-grid {
    grid-template-columns: unset !important;
    gap: unset !important;
    display: grid !important;
  }
}

/* GENERAL MOBILE TWEAKS */
@media (max-width: 700px) {
  .container, .container-fluid {
    padding: 0 4px;
  }
  .section-title, h2 {
    font-size: 1.3rem;
  }
  .btn, .btn-primary, .btn-outline {
    font-size: 1rem;
    padding: 0.6rem 1.2rem;
  }
  .stats-grid, .about-grid, .services-grid, .project-list, .project-item, .timeline, .gallery-grid {
    grid-template-columns: 1fr !important;
    flex-direction: column !important;
    gap: 1.2rem !important;
  }
  .about-image img, .service-card img, .partner-card img, .project-media img, .timeline-image {
    width: 100%;
    height: auto;
    border-radius: 10px;
  }
  .stat-number {
    font-size: 1.4rem;
  }
  .footer-content {
    flex-direction: column;
    gap: 1.5rem;
    align-items: flex-start;
  }
  .footer-brand {
    align-items: flex-start;
    text-align: left;
  }
  .footer-social {
    margin-top: 0.5rem;
  }
}

/* FOOTER RESPONSIVE */
@media (max-width: 900px) {
  .footer-content {
    flex-direction: column;
    align-items: center;
  }
  .footer-brand, .footer-links {
    align-items: center;
    text-align: center;
  }
}
@media (max-width: 600px) {
  .footer-content {
    padding: 1.5rem 0 0.5rem 0;
    gap: 1rem;
  }
  .footer-bottom {
    font-size: 0.9rem;
    padding-top: 1rem;
  }
}

/* === NAVBAR NOIRE === */
.navbar {
  width: 100vw;
  height: 60px;
  background: var(--background-color);
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  padding: 0 1.5rem;
}

.navbar .logo {
  font-family: 'Bebas Neue', Arial, sans-serif;
  font-size: 2rem;
  color: var(--text-color);
  text-decoration: none;
  letter-spacing: 2px;
}

.navbar .nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.navbar .nav-links a {
  text-decoration: none;
  color: var(--text-color);
  font-weight: 500;
  transition: color 0.2s;
}

.navbar .nav-links a:hover, .navbar .nav-links a.active {
  color: var(--primary-color);
}

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  cursor: pointer;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
}
.hamburger span {
  height: 4px;
  width: 100%;
  background: var(--text-color);
  margin: 4px 0;
  border-radius: 2px;
  transition: 0.3s;
}

/* ===== NAVBAR — MOBILE & TABLET (2025) ===== */
@media (max-width: 1024px) {
  /* Conteneur */
  .navbar {
    height: 64px;
    padding: 0 1rem;
    background: rgba(10,10,11,0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,0.06);
  }

  /* Logo un peu plus lisible */
  .navbar .logo {
    font-size: 2.1rem;
    letter-spacing: 2px;
  }

  /* Hamburger : zone cliquable + anim en X via aria-expanded */
  .hamburger {
    display: flex;
    width: 44px;
    height: 44px;
    padding: 8px;          /* zone de touch confortable */
    border-radius: 10px;
    background: transparent;
    transition: background .2s ease;
  }
  .hamburger:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
  }
  .hamburger:hover {
    background: rgba(255,255,255,0.06);
  }
  .hamburger span {
    height: 2px;
    width: 26px;
    background: var(--text-color);
    margin: 4px 0;
    border-radius: 2px;
    transition: transform .35s ease, opacity .2s ease, width .2s ease;
    transform-origin: center;
  }
  /* État "ouvert" = croix */
  .hamburger[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
    width: 26px;
  }
  .hamburger[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0.4);
  }
  .hamburger[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
    width: 26px;
  }

  /* Panneau latéral (slide-in) */
  .navbar .nav-links {
    position: fixed;
    top: 64px;              /* sous la barre */
    right: 0;
    bottom: 0;
    width: min(86vw, 380px);
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 1rem 0.75rem;
    background:
      linear-gradient(180deg, rgba(18,18,20,0.98) 0%, rgba(10,10,11,0.98) 100%);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-left: 1px solid rgba(255,255,255,0.08);
    box-shadow: -24px 0 60px rgba(0,0,0,0.45);
    transform: translateX(100%);
    transition: transform .45s cubic-bezier(.16,1,.3,1);
    z-index: 1001;
  }
  .navbar .nav-links.open {
    transform: translateX(0);
  }

  /* Liens : gros tap-targets */
  .navbar .nav-links li {
    list-style: none;
    margin: 0;
  }
  .navbar .nav-links a {
    display: block;
    width: 100%;
    padding: 14px 14px;
    border-radius: 12px;
    font-size: clamp(1rem, 2.2vw, 1.15rem);
    font-weight: 600;
    letter-spacing: .2px;
    color: var(--white);
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.08);
    transition: background .2s ease, transform .2s ease, border-color .2s ease;
  }
  .navbar .nav-links a + a,
  .navbar .nav-links li + li a {
    margin-top: .6rem;
  }
  .navbar .nav-links a:hover {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.12);
    transform: translateX(2px);
  }
  .navbar .nav-links a[aria-current="page"],
  .navbar .nav-links a.active {
    background: rgba(41,121,255,0.16);
    border-color: rgba(41,121,255,0.35);
  }

  /* Petite zone "hint" en bas (facultatif visuel) */
  .navbar .nav-links::after {
    content: "Appuie sur le X pour fermer";
    display: block;
    margin-top: auto;
    padding: .9rem .75rem .75rem;
    font-size: .8rem;
    color: rgba(255,255,255,0.55);
  }

  /* Backdrop quand menu ouvert (support :has) */
  .navbar:has(.nav-links.open)::after {
    content: "";
    position: fixed;
    inset: 64px 0 0 0;   /* sous la barre */
    background: rgba(0,0,0,0.45);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    z-index: 1000;
  }
}

/* Swipe-friendly */
.navbar .nav-links{
  touch-action: pan-y;         /* on laisse défiler en vertical, on capte le drag horizontal */
  will-change: transform;
}

/* Backdrop si non présent */
.nav-backdrop{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);  /* ajuste l’opacité si tu veux */
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
  z-index: 998;                 /* sous le drawer (999) mais au-dessus du reste */
}
.nav-backdrop.show{
  opacity: 1;
  pointer-events: auto;
}


/* Tablette “mid” : un peu plus large et typo plus grande */
@media (min-width: 768px) and (max-width: 1024px) {
  .navbar .nav-links {
    width: min(60vw, 420px);
    padding: 1.25rem;
  }
  .navbar .nav-links a {
    padding: 16px 16px;
    font-size: 1.1rem;
  }
}


/* --- HERO SECTION RESPONSIVE FIXES --- */
@media (max-width: 900px) {
  .hero {
    height: auto;
    min-height: 60vh;
    padding: 2rem 0 1rem 0;
    flex-direction: column;
  }
  .hero-content {
    max-width: 100%;
    padding: 1.5rem 0.5rem;
  }
  .hero-title {
    font-size: 2.1rem !important;
    word-break: break-word;
  }
  .hero-subtitle {
    font-size: 1.1rem !important;
    word-break: break-word;
  }
  .hero-video {
    min-width: 100vw;
    min-height: 220px;
    max-height: 300px;
    object-fit: cover;
    mask: linear-gradient(to bottom, rgba(0,0,0,1) 0%, rgba(0,0,0,1) 70%, rgba(0,0,0,0) 100%);
    -webkit-mask: linear-gradient(to bottom, rgba(0,0,0,1) 0%, rgba(0,0,0,1) 70%, rgba(0,0,0,0) 100%);
  }
}
@media (max-width: 600px) {
  .hero {
    position: relative;
  }
  .hero-video-mobile {
    display: block !important;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    width: 100vw;
    height: 80vh;
    max-width: 100vw;
    max-height: 90vh;
    object-fit: cover;
    margin: 0;
    border-radius: 0;
    background: #000;
    z-index: 1;
  }
  .hero-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 80vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 2;
    padding: 0 1rem;
    background: none;
    text-align: center;
  }
  .hero-title {
    font-size: 1.35rem !important;
  }
  .hero-subtitle {
    font-size: 0.95rem !important;
  }
  
}

/* --- Footer Responsive Modernization --- */
@media (max-width: 600px) {
  .footer {
    padding: 1.5rem 0 0.5rem 0;
    border-radius: 1.2rem 1.2rem 0 0;
    box-shadow: 0 -2px 16px rgba(0,0,0,0.07);
    background: linear-gradient(180deg, var(--black) 90%, var(--gray-900) 100%);
  }
  .footer-content {
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
    padding: 1.2rem 0 0.5rem 0;
    text-align: center;
  }
  .footer-brand .logo {
    font-size: 1.4rem;
    margin-bottom: 0.2rem;
  }
  .footer-brand p {
    font-size: 0.85rem;
    margin-bottom: 0.7rem;
  }
  .footer-social {
    justify-content: center;
    gap: 1.5rem;
    margin: 0.5rem 0 0.7rem 0;
  }
  .footer-social a {
    font-size: 1.45rem;
    padding: 0.4rem;
    border-radius: 50%;
    background: rgba(255,255,255,0.06);
    transition: background 0.2s, color 0.2s;
  }
  .footer-social a:hover {
    background: var(--primary);
    color: var(--black);
  }
  .footer-links {
    flex-direction: column;
    gap: 1.2rem;
    align-items: center;
  }
  .footer-links h4 {
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
  }
  .footer-links ul {
    padding: 0;
  }
  .footer-links li {
    margin-bottom: 0.3rem;
  }
  .footer-links a {
    font-size: 0.98rem;
    padding: 0.2rem 0.5rem;
    border-radius: 0.4rem;
    display: inline-block;
    transition: background 0.2s, color 0.2s;
  }
  .footer-links a:hover {
    background: var(--primary);
    color: var(--black);
  }
  .footer-bottom {
    font-size: 0.9rem;
    padding-top: 1rem;
    border-top: 1px solid var(--gray-800);
  }
}

.hero-fade {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 35%;
    pointer-events: none;
    z-index: 0;
    background: linear-gradient(
        to bottom,
        #0a0a0b00 0%,
        #18181b33 30%,
        #18181b77 60%,
        #0A0A0B 100%
    );
}

/* Suppression totale de l'effet cercle pinceau */
.home-stats-grid .stat-item::before,
.home-stats-grid .stat-item::after {
    content: none !important;
    display: none !important;
}

/* Responsive pour la section stats d'accueil */
.home-stats-grid {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    margin-top: 4rem;
    text-align: center;
    flex-wrap: wrap;
}
.home-stats-grid .stat-item {
    width: 220px;
    height: 220px;
    margin: 0 0.5rem 2rem 0.5rem;
}
@media (max-width: 900px) {
    .home-stats-grid {
        justify-content: center;
        gap: 1.5rem;
    }
    .home-stats-grid .stat-item {
        width: 170px;
        height: 170px;
        margin: 0 0.5rem 1.5rem 0.5rem;
    }
}
@media (max-width: 600px) {
    .home-stats-grid {
        flex-direction: column;
        align-items: center;
        gap: 1.2rem;
    }
    .home-stats-grid .stat-item {
        width: 130px;
        height: 130px;
        margin: 0 0 1.2rem 0;
        padding: 1.2rem 0.5rem;
    }
    .home-stats-grid .stat-number {
        font-size: 1.5rem;
    }
    .home-stats-grid .stat-text {
        font-size: 0.95rem;
    }
}

/* SERVICES responsive */
@media (max-width: 900px) {
  .services-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
  }
  .service-card img {
    height: 120px;
  }
}
@media (max-width: 600px) {
  .services-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .service-card img {
    height: 90px;
  }
}

/* PARTENAIRES responsive */
@media (max-width: 900px) {
  .partners-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
  }
  .partner-card img {
    max-width: 70%;
  }
}
@media (max-width: 600px) {
  .partners-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.2rem;
  }
  .partner-card img {
    max-width: 60%;
  }
}

/* GALLERY responsive */
@media (max-width: 900px) {
  .gallery-grid {
    columns: 2 120px;
    padding: 0 0.5rem;
  }
}
@media (max-width: 600px) {
  .gallery-grid {
    columns: 1 100px;
    padding: 0 0.2rem;
  }
}

/* FOOTER responsive */
@media (max-width: 900px) {
  .footer-content {
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
  }
  .footer-brand, .footer-links {
    align-items: center;
    text-align: center;
  }
}
@media (max-width: 600px) {
  .footer-content {
    gap: 1rem;
  }
  .footer-brand .logo {
    font-size: 1.2rem;
  }
  .footer-bottom p {
    font-size: 0.9rem;
  }
}

/* Par défaut, la vidéo mobile est cachée */
.hero-video-mobile {
    display: none !important;
}

/* Sur mobile, on affiche la vidéo mobile et on masque la vidéo desktop */
@media (max-width: 600px) {
    .hero-video {
        display: none !important;
    }
    .hero-video-mobile {
        display: block !important;
        width: 100% !important;
        max-width: 100vw;
        height: 80vh;
        object-fit: cover;
        margin: 0 auto;
        border-radius: 0;
        background: #000;
    }
    .hero {
        min-height: 80vh;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding: 0;
    }
    .hero-content {
        position: absolute;
        top: 0;
        left: 0;
        width: 100vw;
        height: 80vh;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        z-index: 2;
        padding-bottom: 2.5rem;
        background: none;
    }
    .hero-fade {
        display: none;
    }
}

@media (max-width: 600px) {
  .projets-section,
  .projets-header,
  .projets-header h1,
  .projets-header p,
  .project-card,
  .project-image,
  .project-content,
  .presence-digital,
  .presence-digital *,
  .accueil-projets-section,
  .accueil-projets-section *,
  .presence-digitale-section,
  .presence-digitale-section *,
  .academie-section {
    margin-left: 1rem;
    margin-right: 1rem;
  }
}

/* ====== NAVBAR DESKTOP POLISH (scroll-aware + underline active) ====== */
@media (min-width: 1025px){
  /* Navbar transparente au départ, solide au scroll */
  .navbar{
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-bottom: none;
    transition: background .3s ease, box-shadow .3s ease, backdrop-filter .3s ease, border-color .3s ease;
  }
  .navbar.scrolled{
    background: rgba(10,10,11,.85);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    box-shadow: 0 8px 16px rgba(0,0,0,.18);
    border-bottom: 1px solid rgba(255,255,255,.06);
  }

  /* Underline animée des liens */
  .navbar .nav-links a{
    position: relative;
  }
  .navbar .nav-links a::after{
    content:"";
    position:absolute;
    left:0; bottom:-6px;
    width:100%; height:2px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .35s cubic-bezier(.16,1,.3,1);
    opacity: .9;
  }
  .navbar .nav-links a:hover::after,
  .navbar .nav-links a[aria-current="page"]::after,
  .navbar .nav-links a.active::after{
    transform: scaleX(1);
  }
}

/* ====== FOCUS ACCESSIBLE (clavier) ====== */
:where(a, button, .service-link, .btn){ outline: none; }
:where(a, button, .service-link, .btn):focus-visible{
  outline: 2px solid #2979ff;
  outline-offset: 3px;
  border-radius: 8px;
}

/* ====== Skip link (accessibilité) ====== */
.skip-link{
  position:absolute; left:-9999px; top:auto;
  width:1px; height:1px; overflow:hidden;
}
.skip-link:focus{
  left:1rem; top:1rem; width:auto; height:auto;
  padding:.6rem .9rem; background:#2979ff; color:#000;
  border-radius:.5rem; z-index:1100;
}
