/* style.css */
/* Import de la police PancettaPro */
@font-face {
    font-family: 'PancettaPro';
    src: url('../fonts/PancettaPro-Black.ttf') format('truetype');
    font-weight: 100;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Posterama';
    src: url('../fonts/Posterama-2001-W04-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

:root{
    --primary: #e50914;
    --primary-dark: #b8070f;
    --bg: #020202;
    --card-bg: #0d0d0d;
    --text: #ffffff;
    --muted: #b7b7b7;
    --accent: rgba(229,9,20,0.06);
    --glass: rgba(255,255,255,0.02);
}

/* Variables pour le mode clair - RÉVISÉ */
[data-theme="light"] {
    --bg: #f8f9fa;
    --card-bg: #ffffff;
    --text: #1a1a1a;
    --muted: #666666;
    --glass: rgba(0,0,0,0.03);
    --accent: rgba(229,9,20,0.08);
}

*{box-sizing:border-box;margin:0;padding:0;font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif}
html{scroll-behavior:smooth}
body{background:var(--bg);color:var(--text);line-height:1.6;overflow-x:hidden}

/* Loader avec spinner */
.loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.5s ease;
}

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

.loader-gif {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  display: block;
}

.loader-spinner {
  width: 50px;
  height: 50px;
  border: 3px solid rgba(229,9,20,0.2);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 15px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Scroll Progress */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), #ff6b6b);
    z-index: 1001;
    transition: width 0.3s ease;
    width: 0%;
}

/* Curseur personnalisé */
.custom-cursor {
    width: 20px;
    height: 20px;
    border: 2px solid var(--primary);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: difference;
    transition: transform 0.2s ease;
    opacity: 0;
}

.cursor-follower {
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: difference;
    transition: all 0.1s ease;
    opacity: 0;
}

body.cursor-active .custom-cursor,
body.cursor-active .cursor-follower {
    opacity: 1;
}

/* Application de PancettaPro aux titres */
.hero h1 {
    font-family: 'Posterama', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    /*font-weight: 100; */
    letter-spacing: 1px;
}

[data-theme="light"] .hero h1 {
    color: var(--text);
}

[data-theme="light"] .hero-index h1 {
    color: var(--card-bg);
}
[data-theme="light"] .hero-subtitle {
    color: var(--text);
}

[data-theme="light"] .hero-index .hero-subtitle {
    color: var(--card-bg);
}

.section-title h2 {
    font-family: 'PancettaPro', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-weight: 100;
    letter-spacing: 0.5px;
}

.logo-text {
    font-family: 'PancettaPro', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-weight: 100;
}

.GPA {
    font-family: 'Posterama', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-weight: 100;
}

/* Header - AMÉLIORATION DU MENU - RÉVISÉ POUR THÈME CLAIR */
header{
    font-family: 'PancettaPro', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-weight: 100;
    position:fixed;left:0;right:0;top:0;padding:15px 15px 15px 0px;display:flex;align-items:center;justify-content:space-between;z-index:1000;
    background:linear-gradient(180deg, rgba(0,0,0,0.6), rgba(0,0,0,0.35));backdrop-filter: blur(6px);border-bottom:1px solid rgba(255,255,255,0.03);
    transition: all 0.3s ease;
    height: 70px;
}

[data-theme="light"] header {
    background: linear-gradient(180deg, rgba(255,255,255,0.95), rgba(255,255,255,0.85));
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0,0,0,0.08);
    box-shadow: 0 2px 20px rgba(0,0,0,0.05);
}

header.scrolled {
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(20px);
    /*padding: 12px 5%;*/
    border-bottom: 1px solid rgba(229, 9, 20, 0.2);
}

[data-theme="light"] header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(229, 9, 20, 0.15);
    box-shadow: 0 4px 25px rgba(0,0,0,0.08);
}

/* Styles pour la gestion des logos multiple - CORRIGÉ */
.logo {
    /*position: relative;*/
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo img {
    height: 32px;
    display: block;
    transition: opacity 0.3s ease;
    object-fit: contain;
}

/* Conteneur pour les logos avec dimensions fixes */
.logo a,
nav ul li:first-child {
    position: relative;
    display: block;
    width: auto;
}

/* Logo sombre visible par défaut */
.logo-dark {
    opacity: 1;
}

.logo-light {
    opacity: 0;
    position: absolute;
    /* left: 0; */
    top: 50%;
    transform: translateY(-50%);
}

/* Inverser l'opacité pour le thème clair */
[data-theme="light"] .logo-dark {
    opacity: 0;
}

[data-theme="light"] .logo-light {
    opacity: 1;
}

/* Styles pour le logo Atlas Machines dans le menu - CORRIGÉ */
nav ul li:first-child {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 60px;
    margin: -6px 0;
}

nav ul li:first-child .logo-container {
    position: relative;
    display: block;
    height: 48px;
}

nav ul li:first-child img {
    height: 48px;
    width: auto;
    object-fit: contain;
    transition: opacity 0.3s ease;
    padding: 0 !important;
    margin: 0 !important;
    display: block;
}

nav ul li:first-child .logo-light {
    position: absolute;
    /*left: 0; */
    top: 50%;
    transform: translateY(-50%);
    opacity: 0;
}

[data-theme="light"] nav ul li:first-child .logo-dark {
    opacity: 0;
}

[data-theme="light"] nav ul li:first-child .logo-light {
    opacity: 1;
}

nav ul {
    display: flex;
    gap: 28px;
    list-style: none;
    align-items: center;
    height: 100%;
}

nav a {
    color: var(--text);
    text-decoration: none;
    font-weight: 600;
    position: relative;
    padding: 8px 0;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    height: 100%;
}

nav a:hover{
    color:var(--primary);
}

.no-underline {

    padding-right: 100px;
}

/* Animation de sous-lignement rouge */
nav a:not(.no-underline)::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background: var(--primary);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

nav a:not(.no-underline):hover::after {
    width: 100%;
}

/* Effet supplémentaire pour le lien actif */
nav a:not(.no-underline).active::after {
    width: 100%;
}

/* Theme Toggle */
.theme-toggle {
    background: none;
    border: none;
    color: var(--text);
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: background 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle:hover {
    background: var(--glass);
}

/* Menu sandwich - RESPONSIVE */
.mobile-menu {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    z-index: 1001;
    position: relative;
}

.mobile-menu span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: var(--text);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-menu.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.mobile-menu.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

.mobile-menu:hover span {
    background-color: var(--primary);
}

/* HERO CONTACT - DESIGN SPECTACULAIRE */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #0a0a0a 0%, #000000 50%, #1a0000 100%);
    margin-top: 0;
}

[data-theme="light"] .hero {
     background: linear-gradient(135deg, #f0f0f0 0%, #ffffff 50%, #ffe6e6 100%); 
   
}



.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

#heroCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

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

.hero-title {
    font-size: 4rem;
    margin-bottom: 1rem;
    position: relative;
    opacity: 0;
    transform: translateY(50px);
    animation: titleReveal 1.2s cubic-bezier(0.23, 1, 0.32, 1) forwards 0.5s;
    font-family: 'Posterama';
}

.hero-title span {
    background: linear-gradient(45deg, #ffffff, var(--primary), #ffffff);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 3s ease-in-out infinite;
    
}

[data-theme="light"] .hero-title span {
    background: linear-gradient(45deg, #000000, var(--primary), #ffecec);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    
}

[data-theme="light"] .hero-index .hero-title span {
    background: linear-gradient(45deg, #ffffff, var(--primary), #ffecec);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    
}
.hero-subtitle {
    font-size: 1.5rem;
    color: var(--muted);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0;
    transform: translateY(30px);
    animation: subtitleReveal 1s ease-out forwards 1s;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    opacity: 0;
    transform: translateY(30px);
    animation: buttonsReveal 1s ease-out forwards 1.2s;
}

.hero-btn {
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.hero-btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 10px 30px rgba(229, 9, 20, 0.3);
}

.hero-btn-primary:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(229, 9, 20, 0.5);
}

.hero-btn-secondary {
    background: transparent;
    color: var(--text);
    border: 2px solid rgba(0,0,0,0.2);
}

[data-theme="light"] .hero-btn-secondary {
    border: 2px solid rgb(255 255 255 / 84%);
    color: var(--text);
}

[data-theme="light"] .hero-index .hero-btn-secondary {
    border: 2px solid rgb(255 255 255 / 84%);
    color: var(--card-bg);
}

.hero-btn-secondary:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-5px);
}

/* Effet de grille industrielle */
.industrial-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(to right, rgba(50, 50, 50, 0.1) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(50, 50, 50, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridMove 20s linear infinite;
    z-index: 1;
    opacity: 0.3;
}

[data-theme="light"] .industrial-grid {
    background-image: 
        linear-gradient(to right, rgba(100, 100, 100, 0.1) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(100, 100, 100, 0.1) 1px, transparent 1px);
    opacity: 0.2;
}

/* Animations pour le hero */
@keyframes titleReveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes subtitleReveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes buttonsReveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

@keyframes gridMove {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(50px, 50px);
    }
}

/* Effet de lueur pulsante */
.pulse-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(229, 9, 20, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 1;
    animation: pulse 4s ease-in-out infinite;
}

[data-theme="light"] .pulse-glow {
    background: radial-gradient(circle, rgba(229, 9, 20, 0.08) 0%, transparent 70%);
}

@keyframes pulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.5;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0.2;
    }
}

/* SECTION CONTACT */
.contact-section {
    padding: 100px 5%;
    background: var(--bg);
}

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

.section-title h2 {
    font-size: 3rem;
    margin-bottom: 20px;
    opacity: 0;
    transform: translateY(30px);
    animation: titleReveal 1s ease-out forwards;
}

.section-title p {
    font-size: 1.2rem;
    color: var(--muted);
    max-width: 700px;
    margin: 0 auto;
    opacity: 0;
    transform: translateY(20px);
    animation: subtitleReveal 1s ease-out forwards 0.3s;
}

/* Conteneur principal de contact */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Formulaire de contact */
.contact-form-container {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 40px;
    border: 1px solid rgba(255,255,255,0.03);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

[data-theme="light"] .contact-form-container {
    border: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

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

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text);
}

.form-control {
    width: 100%;
    padding: 15px;
    background: var(--bg);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    color: var(--text);
    font-size: 1rem;
    transition: all 0.3s ease;
}

[data-theme="light"] .form-control {
    background: #f8f9fa;
    border: 1px solid rgba(0,0,0,0.1);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(229, 9, 20, 0.2);
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

.submit-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    justify-content: center;
}

.submit-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(229, 9, 20, 0.3);
}

/* Informations de contact */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-card {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 30px;
    border: 1px solid rgba(255,255,255,0.03);
    transition: all 0.3s ease;
}

[data-theme="light"] .contact-card {
    border: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.contact-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 15px 30px rgba(229, 9, 20, 0.1);
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--primary);
    font-size: 1.5rem;
}

.contact-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    font-family: 'PancettaPro', sans-serif;
    font-weight: 100;
}

.contact-details {
    color: var(--muted);
}

.contact-details p {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-details i {
    color: var(--primary);
    width: 20px;
}

/* Carte */
.map-container {
    border-radius: 15px;
    overflow: hidden;
    height: 300px;
    margin-top: 20px;
    border: 1px solid rgba(255,255,255,0.03);
}

[data-theme="light"] .map-container {
    border: 1px solid rgba(0,0,0,0.05);
}

.map-placeholder {
    width: 100%;
    height: 100%;
    background: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    flex-direction: column;
    gap: 15px;
}

.map-placeholder i {
    font-size: 3rem;
    color: var(--primary);
}

/* Réseaux sociaux */
.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-link {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--card-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text);
    transition: all 0.3s ease;
    border: 1px solid rgba(255,255,255,0.05);
}

[data-theme="light"] .social-link {
    border: 1px solid rgba(0,0,0,0.05);
}

.social-link:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-3px);
}

/* Footer - RÉVISÉ POUR THÈME CLAIR */
footer{
    padding:40px 5%;
    background:linear-gradient(180deg, rgba(0,0,0,0.6), rgba(0,0,0,0.6));
    color:var(--muted);
    border-top: 1px solid rgba(255,255,255,0.03);
}

[data-theme="light"] footer {
    background: linear-gradient(180deg, #f0f0f0, #e8e8e8);
    color: var(--muted);
    border-top: 1px solid rgba(0,0,0,0.05);
}

.footer-content{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:30px}

[data-theme="light"] .footer-content a {
    color: var(--muted);
    transition: color 0.3s ease;
}

[data-theme="light"] .footer-content a:hover {
    color: var(--primary);
}


/* Responsive */
@media (max-width: 992px){
    .hero-title {
        font-size: 3.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .no-underline {
        padding-right: 0;
    }
    .contact-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

}

@media (max-width: 768px) {
    .mobile-menu {
        display: flex;
    }
    
    nav ul {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: #000000; /* ← PROBLEME ICI - COULEUR FIXE */
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 40px;
        transition: right 0.4s ease;
        z-index: 1000;
        border-left: 1px solid rgba(255,255,255,0.1);
        box-shadow: -5px 0 25px rgba(0,0,0,0.5);
    }
    
    /* CORRECTION : Remplacer la couleur fixe par une variable */
    [data-theme="light"] nav ul {
        background: #ffffff; /* ← AJOUTER CE STYLE */
        border-left: 1px solid rgba(0,0,0,0.1);
        box-shadow: -5px 0 25px rgba(0,0,0,0.1);
    }
    
    /* VERSION AMÉLIORÉE AVEC VARIABLES CSS */
    nav ul {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: var(--card-bg); /* ← UTILISER LA VARIABLE */
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 40px;
        transition: right 0.4s ease;
        z-index: 1000;
        border-left: 1px solid rgba(255,255,255,0.1);
        box-shadow: -5px 0 25px rgba(0,0,0,0.5);
    }
    
    [data-theme="light"] nav ul {
        border-left: 1px solid rgba(0,0,0,0.1);
        box-shadow: -5px 0 25px rgba(0,0,0,0.1);
    }
    
    nav ul.active {
        right: 0;
        animation: slideInRight 0.4s ease-out;
    }
    
    
    nav ul li {
        opacity: 0;
        transform: translateX(50px);
        transition: all 0.4s ease;
    }
    
    nav ul.active li {
        opacity: 1;
        transform: translateX(0);
    }
    
    nav ul.active li:nth-child(1) { transition-delay: 0.1s; }
    nav ul.active li:nth-child(2) { transition-delay: 0.2s; }
    nav ul.active li:nth-child(3) { transition-delay: 0.3s; }
    nav ul.active li:nth-child(4) { transition-delay: 0.4s; }
    nav ul.active li:nth-child(5) { transition-delay: 0.5s; }
    nav ul.active li:nth-child(6) { transition-delay: 0.6s; }
    
    nav a {
        font-size: 1.2rem;
        padding: 10px 0;
    }
    
    /* Overlay pour fermer le menu en cliquant à côté */
    .menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.7);
        backdrop-filter: blur(5px);
        z-index: 999;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }
    
    .menu-overlay.active {
        opacity: 1;
        visibility: visible;
    }
    
    .contact-form-container {
        padding: 30px 20px;
    }
    
    .contact-card {
        padding: 25px 20px;
    }
}

@media (max-width: 520px){
    header{padding:12px 4%}
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    nav ul {
        width: 100%;
    }
    
    .section-title h2 {
        font-size: 2.2rem;
    }
}

/* Optimisations pour les préférences de mouvement réduit */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

    /* NOUVEAU DESIGN POUR LES SERVICES - DIFFÉRENT DES MACHINES */
    .services-section {
        padding: 100px 5%;
    }

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

    .section-title h2 {
        font-size: 3rem;
        margin-bottom: 20px;
        opacity: 0;
        transform: translateY(30px);
        animation: titleReveal 1s ease-out forwards;
    }

    .section-title p {
        font-size: 1.2rem;
        color: var(--muted);
        max-width: 700px;
        margin: 0 auto;
        opacity: 0;
        transform: translateY(20px);
        animation: subtitleReveal 1s ease-out forwards 0.3s;
    }

    /* Conteneur des onglets de services */
    .services-tabs {
        display: flex;
        flex-direction: column;
        max-width: 1200px;
        margin: 0 auto;
    }

    /* Onglets de navigation */
    .services-nav {
        display: flex;
        justify-content: center;
        margin-bottom: 60px;
        flex-wrap: wrap;
        gap: 15px;
    }

    .service-tab {
        padding: 15px 30px;
        background: var(--card-bg);
        border: 1px solid rgba(255,255,255,0.05);
        border-radius: 8px;
        color: var(--text);
        cursor: pointer;
        transition: all 0.3s ease;
        font-weight: 600;
        display: flex;
        align-items: center;
        gap: 10px;
        position: relative;
        overflow: hidden;
    }

    [data-theme="light"] .service-tab {
        border: 1px solid rgba(0,0,0,0.08);
    }

    .service-tab:hover {
        background: var(--primary);
        color: white;
        transform: translateY(-5px);
        box-shadow: 0 10px 25px rgba(229, 9, 20, 0.3);
    }

    .service-tab.active {
        background: var(--primary);
        color: white;
        box-shadow: 0 10px 25px rgba(229, 9, 20, 0.4);
    }

    .service-tab i {
        font-size: 1.2rem;
    }

    /* Contenu des services */
    .services-content {
        position: relative;
    }

    .service-panel {
        display: none;
        animation: fadeIn 0.5s ease forwards;
    }

    @keyframes fadeIn {
        from { opacity: 0; transform: translateY(20px); }
        to { opacity: 1; transform: translateY(0); }
    }

    .service-panel.active {
        display: block;
    }

    .service-panel-content {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 50px;
        align-items: center;
    }

    .service-image {
        border-radius: 12px;
        overflow: hidden;
        box-shadow: 0 20px 40px rgba(0,0,0,0.3);
        position: relative;
    }

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

    .service-panel.active .service-image img {
        transform: scale(1.05);
    }

    .service-info {
        padding: 20px 0;
    }

    .service-info h3 {
        font-size: 2.2rem;
        margin-bottom: 20px;
        font-family: 'PancettaPro', sans-serif;
        font-weight: 100;
    }

    .service-info p {
        color: var(--muted);
        margin-bottom: 25px;
        font-size: 1.1rem;
        line-height: 1.7;
    }

    .service-features {
        margin-bottom: 30px;
    }

    .service-feature {
        display: flex;
        align-items: center;
        margin-bottom: 15px;
        padding: 12px 0;
        border-bottom: 1px solid rgba(255,255,255,0.05);
    }

    [data-theme="light"] .service-feature {
        border-bottom: 1px solid rgba(0,0,0,0.05);
    }

    .service-feature i {
        color: var(--primary);
        margin-right: 15px;
        font-size: 1.2rem;
        width: 24px;
        text-align: center;
    }

    .service-feature span {
        font-weight: 600;
    }

    .service-cta {
        display: flex;
        gap: 15px;
        margin-top: 30px;
    }

    .cta-btn {
        padding: 12px 25px;
        border-radius: 8px;
        text-decoration: none;
        font-weight: 600;
        transition: all 0.3s ease;
        display: inline-flex;
        align-items: center;
        gap: 8px;
    }

    .cta-btn-primary {
        background: var(--primary);
        color: white;
    }

    .cta-btn-primary:hover {
        background: var(--primary-dark);
        transform: translateY(-3px);
        box-shadow: 0 10px 20px rgba(229, 9, 20, 0.3);
    }

    .cta-btn-secondary {
        background: transparent;
        color: var(--text);
        border: 1px solid rgba(255,255,255,0.2);
    }

    [data-theme="light"] .cta-btn-secondary {
        border: 1px solid rgba(0,0,0,0.2);
    }

    .cta-btn-secondary:hover {
        border-color: var(--primary);
        color: var(--primary);
    }
    
        /* SECTION À PROPOS - DESIGN UNIQUE */
    .about-section {
        padding: 100px 5%;
        background: var(--bg);
    }

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

    .section-title h2 {
        font-size: 3rem;
        margin-bottom: 20px;
        opacity: 0;
        transform: translateY(30px);
        animation: titleReveal 1s ease-out forwards;
    }

    .section-title p {
        font-size: 1.2rem;
        color: var(--muted);
        max-width: 700px;
        margin: 0 auto;
        opacity: 0;
        transform: translateY(20px);
        animation: subtitleReveal 1s ease-out forwards 0.3s;
    }



    [data-theme="light"] .timeline-content {
        border: 1px solid rgba(0,0,0,0.05);
        box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    }

    .timeline-item:nth-child(odd) .timeline-content {
        margin-left: 5%;
    }

    .timeline-item:nth-child(even) .timeline-content {
        margin-right: 5%;
    }

    .timeline-content::after {
        content: '';
        position: absolute;
        top: 30px;
        width: 20px;
        height: 20px;
        background: var(--primary);
        transform: rotate(45deg);
    }

    .timeline-item:nth-child(odd) .timeline-content::after {
        left: -10px;
    }

    .timeline-item:nth-child(even) .timeline-content::after {
        right: -10px;
    }

    .timeline-year {

        top: 20px;

        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: 700;
        font-size: 1.2rem;
        z-index: 2;
    }

    .timeline-item:nth-child(odd) .timeline-year {
        right: -40px;
    }

    .timeline-item:nth-child(even) .timeline-year {
        left: -40px;
    }

    .timeline-content h3 {
        font-size: 1.5rem;
        margin-bottom: 15px;
        color: var(--primary);
        font-family: 'PancettaPro', sans-serif;
        font-weight: 100;
    }

    /* Section valeurs */
    .values-section {
        background: var(--card-bg);
        border-radius: 20px;
        padding: 80px 5%;
        margin: 80px 0;
        border: 1px solid rgba(255,255,255,0.03);
    }

    [data-theme="light"] .values-section {
        border: 1px solid rgba(0,0,0,0.05);
        box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    }

    .values-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 40px;
        max-width: 1200px;
        margin: 0 auto;
    }

    .value-card {
        text-align: center;
        padding: 40px 30px;
        background: var(--bg);
        border-radius: 15px;
        transition: all 0.3s ease;
        border: 1px solid rgba(255,255,255,0.03);
    }

    [data-theme="light"] .value-card {
        border: 1px solid rgba(0,0,0,0.05);
    }

    .value-card:hover {
        transform: translateY(-10px);
        border-color: var(--primary);
        box-shadow: 0 15px 40px rgba(229, 9, 20, 0.1);
    }

    .value-icon {
        width: 80px;
        height: 80px;
        background: var(--accent);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 0 auto 25px;
        color: var(--primary);
        font-size: 2rem;
    }

    .value-card h3 {
        font-size: 1.5rem;
        margin-bottom: 15px;
        font-family: 'PancettaPro', sans-serif;
        font-weight: 100;
    }

    .value-card p {
        color: var(--muted);
        line-height: 1.7;
    }

    /* Section équipe */
    .team-section {
        margin: 80px 0;
    }

    .team-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 30px;
        max-width: 1200px;
        margin: 0 auto;
    }

    .team-member {
        background: var(--card-bg);
        border-radius: 15px;
        overflow: hidden;
        border: 1px solid rgba(255,255,255,0.03);
        transition: all 0.3s ease;
    }

    [data-theme="light"] .team-member {
        border: 1px solid rgba(0,0,0,0.05);
        box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    }

    .team-member:hover {
        transform: translateY(-10px);
        border-color: var(--primary);
        box-shadow: 0 15px 40px rgba(229, 9, 20, 0.1);
    }

    .member-image {
        height: 250px;
        overflow: hidden;
    }

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

    .team-member:hover .member-image img {
        transform: scale(1.1);
    }

    .member-info {
        padding: 25px;
        text-align: center;
    }

    .member-name {
        font-size: 1.4rem;
        margin-bottom: 5px;
        font-family: 'PancettaPro', sans-serif;
        font-weight: 100;
    }

    .member-role {
        color: var(--primary);
        font-weight: 600;
        margin-bottom: 15px;
        display: block;
    }

    .member-description {
        color: var(--muted);
        line-height: 1.6;
    }

    /* Section chiffres */
    .stats-section {
        background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
        padding: 80px 5%;
        border-radius: 20px;
        margin: 80px 0;
    }

    .stats-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 40px;
        max-width: 1200px;
        margin: 0 auto;
        text-align: center;
    }

    .stat-item {
        color: white;
    }

    .stat-number {
        font-size: 3.5rem;
        font-weight: 700;
        margin-bottom: 10px;
        font-family: 'PancettaPro', sans-serif;
        font-weight: 100;
    }

    .stat-label {
        font-size: 1.1rem;
        opacity: 0.9;
    }


    /* Filtres des machines */
    .filters {
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        gap: 15px;
        margin: 40px 0;
        padding: 0 5%;
    }

    .filter-btn {
        padding: 12px 24px;
        background: var(--card-bg);
        border: 1px solid rgba(255,255,255,0.1);
        border-radius: 25px;
        color: var(--text);
        cursor: pointer;
        transition: all 0.3s ease;
        font-weight: 600;
    }

    [data-theme="light"] .filter-btn {
        border: 1px solid rgba(0,0,0,0.1);
    }

    .filter-btn:hover,
    .filter-btn.active {
        background: var(--primary);
        color: white;
        border-color: var(--primary);
        transform: translateY(-2px);
    }

    /* Grille améliorée pour Atlas Machines */
    .atlas-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
        gap: 30px;
        padding: 0 5% 90px;
    }

    .machine-card {
        background: var(--card-bg);
        border-radius: 15px;
        overflow: hidden;
        border: 1px solid rgba(255,255,255,0.03);
        transition: all 0.3s ease;
        opacity: 0;
        transform: translateY(30px);
    }

    [data-theme="light"] .machine-card {
        border: 1px solid rgba(0,0,0,0.05);
        box-shadow: 0 5px 20px rgba(0,0,0,0.06);
    }

    .machine-card.visible {
        opacity: 1;
        transform: translateY(0);
    }

    .machine-card:hover {
        transform: translateY(-10px);
        border-color: var(--primary);
        box-shadow: 0 15px 40px rgba(229, 9, 20, 0.2);
    }

    .machine-image {
        height: 250px;
        overflow: hidden;
        position: relative;
    }

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

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

    .machine-overlay {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(to bottom, transparent, rgba(0,0,0,0.7));
        display: flex;
        align-items: flex-end;
        padding: 20px;
        opacity: 0;
        transition: opacity 0.3s ease;
    }

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

    .view-details {
        background: var(--primary);
        color: white;
        border: none;
        padding: 10px 20px;
        border-radius: 25px;
        cursor: pointer;
        font-weight: 600;
        transition: all 0.3s ease;
    }

    .view-details:hover {
        background: var(--primary-dark);
        transform: translateY(-2px);
    }

    .machine-info {
        padding: 25px;
    }

    .machine-category {
        color: var(--primary);
        font-size: 0.9rem;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 1px;
        margin-bottom: 10px;
        display: block;
    }

    .machine-name {
        font-size: 1.4rem;
        margin-bottom: 15px;
        font-family: 'PancettaPro', sans-serif;
        font-weight: 100;
    }

    .machine-specs {
        display: flex;
        flex-wrap: wrap;
        gap: 15px;
        margin-bottom: 20px;
    }

    .spec-item {
        display: flex;
        align-items: center;
        gap: 8px;
        color: var(--muted);
        font-size: 0.9rem;
    }

    .spec-item i {
        color: var(--primary);
    }

    .machine-description {
        color: var(--muted);
        line-height: 1.6;
        margin-bottom: 20px;
    }

    .machine-features {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        margin-bottom: 20px;
    }

    .feature-tag {
        background: var(--accent);
        color: var(--primary);
        padding: 5px 12px;
        border-radius: 15px;
        font-size: 0.8rem;
        font-weight: 600;
    }

    /* Modal détaillé */
    .machine-modal {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.9);
        display: none;
        align-items: center;
        justify-content: center;
        z-index: 3000;
        padding: 20px;
    }

    .modal-content {
        background: var(--card-bg);
        border-radius: 15px;
        max-width: 1000px;
        width: 100%;
        max-height: 90vh;
        overflow-y: auto;
        position: relative;
    }

    .modal-close {
        position: absolute;
        top: 20px;
        right: 20px;
        background: var(--primary);
        color: white;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        z-index: 10;
        transition: background 0.3s ease;
    }

    .modal-close:hover {
        background: var(--primary-dark);
    }

    .modal-body {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0;
    }

    .modal-image {
        height: 100%;
        min-height: 500px;
    }

    .modal-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 15px 0 0 15px;
    }

    .modal-info {
        padding: 40px;
    }

    @media (max-width: 768px) {
        .modal-body {
            grid-template-columns: 1fr;
        }
        
        .modal-image {
            min-height: 300px;
        }
        
        .modal-image img {
            border-radius: 15px 15px 0 0;
        }
        
        .modal-info {
            padding: 25px;
        }
    }

   /* Sections */
    section{padding:90px 5%}
    .section-title{text-align:center;margin-bottom:50px}
    .section-title h2{font-size:2.4rem;display:inline-block;position:relative}
    .section-title h2::after{content:"";position:absolute;left:50%;transform:translateX(-50%);bottom:-10px;width:80px;height:4px;background:var(--primary)}

    /* Services */
    .services-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:26px}
    .service-card{
        background:var(--card-bg);
        padding:18px;
        border-radius:12px;
        border:1px solid rgba(255,255,255,0.03);
        display:flex;
        flex-direction:column;
        gap:12px;
        min-height:220px;
        position: relative;
        overflow: hidden;
        opacity: 0;
        transform: translateY(30px);
        transition: all 0.6s ease;
        will-change: transform;
    }
    
    [data-theme="light"] .service-card {
        border: 1px solid rgba(0,0,0,0.05);
        box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    }

    .service-card.visible {
        opacity: 1;
        transform: translateY(0);
    }

    /* Effet de surbrillance au survol */
    .service-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(229, 9, 20, 0.1), transparent);
        transition: left 0.6s ease;
    }

    .service-card:hover::before {
        left: 100%;
    }
    
    .service-card:hover {
        transform: translateY(-5px);
        border-color: var(--primary);
        box-shadow: 0 10px 30px rgba(229, 9, 20, 0.2);
    }

    [data-theme="light"] .service-card:hover {
        box-shadow: 0 10px 30px rgba(229, 9, 20, 0.15);
    }

    .service-card .thumb{height:140px;border-radius:8px;overflow:hidden}
    .service-card img{width:100%;height:100%;object-fit:cover;display:block;transition: transform 0.3s ease;}
    .service-card:hover img {
        transform: scale(1.05);
    }
    .service-card h3{font-size:1.15rem}
    .service-card p{color:var(--muted);flex:1}

    /* Machines */
    .machines-container{display:flex;flex-wrap:wrap;gap:18px;justify-content:center}
    .machine-item{
        background:var(--card-bg);
        width:220px;
        border-radius:10px;
        overflow:hidden;
        border:1px solid rgba(255,255,255,0.03);
        text-align:center;
        transition:transform .2s;
        cursor:pointer;
        opacity: 0;
        transform: translateY(30px);
        transition: all 0.6s ease;
        will-change: transform;
    }
    
    [data-theme="light"] .machine-item {
        border: 1px solid rgba(0,0,0,0.05);
        box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    }
    
    .machine-item.visible {
        opacity: 1;
        transform: translateY(0);
    }
    
    .machine-item:hover{
        transform:translateY(-6px);
        border-color:var(--primary);
        animation: float 2s ease-in-out infinite;
    }
    .machine-item img{width:100%;height:140px;object-fit:cover;display:block; filter: drop-shadow(2px 4px 6px black);}
    .machine-item h4{padding:12px;font-size:1rem}
    .machine-item a{        color:var(--text);
        text-decoration:none;
        font-weight:600;
        position:relative;
        padding: 8px 0;
        transition: color 0.3s ease;}

    /* Clients grid - EFFET DE TRANSITION COULEUR */
    .clients-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 20px;
        align-items: center;
        row-gap: initial;
    }
        
    .client-logo{
      background:var(--card-bg);
      padding:18px;
      border-radius:18px;
      border:1px solid rgba(255,255,255,0.03);
      height:80px;
      display:flex;
      align-items:center;
      justify-content:center;
      position: relative;
      overflow: hidden;
      cursor: pointer;
      transition: all 0.3s ease;
      opacity: 0;
      transform: translateY(30px);
      transition: all 0.6s ease;
    }
    
    [data-theme="light"] .client-logo {
        border: 1px solid rgba(0,0,0,0.05);
        box-shadow: 0 3px 10px rgba(0,0,0,0.03);
    }
    
    .client-logo.visible {
        opacity: 1;
        transform: translateY(0);
    }
    
    .client-logo:hover {
      border-color: var(--primary);
      transform: translateY(-3px);
      box-shadow: 0 5px 15px rgba(229, 9, 20, 0.2);
    }
    
    .client-logo img {
      max-height: 60px;
      object-fit: contain;
      transition: all 0.5s ease;
    }
    
    /* Version en couleur (cachée par défaut) */
    .client-logo .color-version {
      position: absolute;
      opacity: 0;
      filter: grayscale(0%);
    }
    
    /* Version en gris (visible par défaut) */
    .client-logo .gray-version {
      opacity: 1;
      filter: grayscale(100%);
    }
    
    /* Au survol, transition progressive vers la couleur */
    .client-logo:hover .color-version {
      opacity: 1;
    }
    
    .client-logo:hover .gray-version {
      opacity: 0;
    }

    /* Contact area - CORRECTIONS - RÉVISÉ POUR THÈME CLAIR */
    .contact-container{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:30px}
    .contact-card{
        background:var(--card-bg);
        padding:22px;
        border-radius:10px;
        border:1px solid rgba(255,255,255,0.03);
    }
    
    [data-theme="light"] .contact-card {
        border: 1px solid rgba(0,0,0,0.05);
        box-shadow: 0 5px 20px rgba(0,0,0,0.06);
    }
    
    /* Styles pour le formulaire - CORRECTIONS RÉVISÉES */
    .contact-form input,
    .contact-form textarea {
      width: 100%;
      padding: 12px;
      margin-bottom: 16px;
      border-radius: 6px;
      background: rgba(255,255,255,0.05);
      border: 1px solid rgba(255,255,255,0.1);
      color: var(--text);
      font-size: 1rem;
      transition: all 0.3s ease;
    }
    
    [data-theme="light"] .contact-form input,
    [data-theme="light"] .contact-form textarea {
        background: rgba(0,0,0,0.02);
        border: 1px solid rgba(0,0,0,0.1);
        color: var(--text);
    }
    
    .contact-form input:focus,
    .contact-form textarea:focus {
      outline: none;
      border-color: var(--primary);
      background: rgba(255,255,255,0.08);
    }
    
    [data-theme="light"] .contact-form input:focus,
    [data-theme="light"] .contact-form textarea:focus {
        background: rgba(0,0,0,0.03);
        border-color: var(--primary);
    }
    
    .contact-form input::placeholder,
    .contact-form textarea::placeholder {
      color: rgba(255,255,255,0.5);
    }
    
    [data-theme="light"] .contact-form input::placeholder,
    [data-theme="light"] .contact-form textarea::placeholder {
        color: rgba(0,0,0,0.4);
    }
    
/* Ajoutez ceci à votre style.css pour corriger */
input[type="email"]:valid,
input[type="email"]:focus:valid {
    border-color: var(--border) !important;
    outline: none !important;
}

input[type="email"]:invalid,
input[type="email"]:focus:invalid {
    border-color: var(--border) !important;
    outline: none !important;
}

/* Réinitialisation des styles par défaut du navigateur */
input[type="email"] {
    border: 1px solid var(--border) !important;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}
    .contact-form input:invalid:not(:placeholder-shown),
    .contact-form textarea:invalid:not(:placeholder-shown) {
      border-color: var(--primary);
    }
    
    .contact-form .form-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 12px;
    }
    
    .contact-form button {
      padding: 12px;
      background: var(--primary);
      color: white;
      border: none;
      border-radius: 6px;
      font-weight: 600;
      cursor: pointer;
      transition: background 0.3s ease;
    }
    
    .contact-form button:hover {
      background: var(--primary-dark);
    }
    
    /* Animation de succès */
    .form-success {
      background: rgba(40, 167, 69, 0.1);
      border: 1px solid #28a745;
      padding: 15px;
      border-radius: 8px;
      margin-top: 15px;
      text-align: center;
      display: none;
    }

    [data-theme="light"] .form-success {
        background: rgba(40, 167, 69, 0.08);
    }
    /* Lightbox */
    .lightbox {
      position:fixed;inset:0;display:none;align-items:center;justify-content:center;background:rgba(0,0,0,0.85);z-index:2000;padding:20px;
    }
    .lightbox img{max-width:95%;max-height:90%;border-radius:8px;box-shadow:0 20px 60px rgba(0,0,0,0.7)}
    .lightbox .close {position:absolute;right:28px;top:18px;font-size:22px;color:#fff;cursor:pointer}

/* SECTION CONTACT CTA */
.contact-cta {
    padding: 80px 5%;
    background: linear-gradient(135deg, rgba(10, 10, 10, 0.95) 0%, rgba(26, 0, 0, 0.9) 100%);
    position: relative;
    overflow: hidden;
    text-align: center;
}

[data-theme="light"] .contact-cta {
    background: linear-gradient(135deg, rgba(240, 240, 240, 0.95) 0%, rgba(255, 230, 230, 0.9) 100%);
}

.contact-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(45deg, rgba(229, 9, 20, 0.05) 0%, transparent 50%),
        linear-gradient(-45deg, rgba(229, 9, 20, 0.03) 0%, transparent 50%);
    z-index: 1;
}

.contact-cta h3 {
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 2;
    font-family: 'PancettaPro', sans-serif;
    font-weight: 100;
    color: var(--text);
}

.contact-cta h3 span {
    background: linear-gradient(45deg, var(--text), var(--primary), var(--text));
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 3s ease-in-out infinite;
}

.contact-cta p {
    font-size: 1.3rem;
    color: var(--muted);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 2;
    line-height: 1.6;
}

/* Effet de lueur pulsante pour le CTA */
.contact-cta::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(229, 9, 20, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 1;
    animation: pulse 4s ease-in-out infinite;
}

[data-theme="light"] .contact-cta::after {
    background: radial-gradient(circle, rgba(229, 9, 20, 0.08) 0%, transparent 70%);
}

/* Conteneur pour le contenu CTA */
.cta-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

/* Styles spécifiques pour le bouton dans le CTA */
.contact-cta .hero-btn {
    position: relative;
    z-index: 2;
    padding: 18px 40px;
    font-size: 1.2rem;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.contact-cta .hero-btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 10px 30px rgba(229, 9, 20, 0.4);
}

.contact-cta .hero-btn-primary:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 40px rgba(229, 9, 20, 0.6);
}

/* Animation d'entrée pour le CTA */
.contact-cta {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease-out forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Version alternative avec carte */
.contact-cta.card-style {
    background: transparent;
    padding: 60px 5%;
}

.contact-cta.card-style .cta-card {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 60px 40px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
    max-width: 900px;
    margin: 0 auto;
}

[data-theme="light"] .contact-cta.card-style .cta-card {
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

.contact-cta.card-style .cta-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(229, 9, 20, 0.1) 0%, transparent 70%);
    animation: pulse 6s ease-in-out infinite;
    z-index: 1;
}

.contact-cta.card-style h3,
.contact-cta.card-style p,
.contact-cta.card-style .hero-btn {
    position: relative;
    z-index: 2;
}


.hero-index {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    margin-top: 0;
    background-image: url('/assets/hero/hero-1.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed; 
    transition: background-image 1.5s ease-in-out;
}

.hero-index::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6); /* Overlay sombre */
    z-index: 1;
}

.hero-index-content {
    position: relative;
    z-index: 2; /* Au-dessus de l'overlay */
    text-align: center;
    max-width: 1200px;
    padding: 0 20px;
}

.hero-index .hero-title {
    
}

/* Garder les autres éléments graphiques */
.industrial-grid {
    z-index: 1; /* Sous le contenu mais au-dessus du fond */
    opacity: 0.3;
}

.pulse-glow {
    z-index: 1;
    opacity: 0.3;
}

/* Responsive */
@media (max-width: 768px) {
    .contact-cta {
        padding: 60px 5%;
    }
    
    .contact-cta h3 {
        font-size: 2.2rem;
    }
    
    .contact-cta p {
        font-size: 1.1rem;
    }
    
    .contact-cta .hero-btn {
        padding: 15px 30px;
        font-size: 1.1rem;
    }
    
    .contact-cta.card-style .cta-card {
        padding: 40px 25px;
    }
}

@media (max-width: 480px) {
    .contact-cta h3 {
        font-size: 1.8rem;
    }
    
    .contact-cta p {
        font-size: 1rem;
    }
}

.input-error {
    border: 1px solid var(--primary) !important;
    background-color: #33000020;
}
/* ============================================
   GP CONTRACTOR - STYLES ADDITIONNELS
   Footer, Contact, etc.
   ============================================ */

/* Footer Styles */
.footer {
    background: var(--card-bg);
    border-top: 1px solid rgba(229, 9, 20, 0.1);
    padding: 60px 0 0;

}

.footer-container {
    max-width: 1300px;
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1.5fr 1.7fr;
    gap: 10px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-section h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text);
    position: relative;
    padding-bottom: 10px;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--primary);
}

.footer-about p {
    color: var(--muted);
    line-height: 1.8;
    font-size: 0.95rem;
    margin-top: 15px;
}

.footer-logo {
    margin-bottom: 15px;
    position: relative;
}

.footer-logo img {
    max-width: 150px;
    height: auto;
}

.footer-logo .logo-light {
    left: 0;
}

.footer-social {
    display: flex;
    gap: 12px;
    margin-top: 25px;
}

.footer-social a {
    width: 42px;
    height: 42px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-social a:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(229, 9, 20, 0.2);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
    display: inline-block;
}

.footer-links a {
    color: var(--muted);
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.footer-links a::before {
    content: '→';
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary);
    padding-left: 5px;
}

.footer-links a:hover::before {
    opacity: 1;
    transform: translateX(0);
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-contact .contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.footer-contact .contact-item i {
    color: var(--primary);
    font-size: 1rem;
    margin-top: 3px;
}

.footer-contact .contact-item span,
.footer-contact .contact-item a {
    color: var(--muted);
    font-size: 0.95rem;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-contact .contact-item a:hover {
    color: var(--primary);
}

.footer-bottom {
    padding: 25px 0;
    text-align: center;
}

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

/* Contact Section Styles */
.contact-container {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
    padding: 0 5%;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.contact-info .info-item {
    display: flex;
    gap: 20px;
    padding: 25px;
    background: var(--card-bg);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.contact-info .info-item:hover {
    border-color: var(--primary);
    transform: translateX(5px);
}

.contact-info .info-icon {
    width: 50px;
    height: 50px;
    background: rgba(229, 9, 20, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.2rem;
    flex-shrink: 0;
}

.contact-info .info-content h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 5px;
}

.contact-info .info-content p {
    color: var(--muted);
    font-size: 0.95rem;
}

.contact-form {
    background: var(--card-bg);
    padding: 35px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.contact-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.contact-form .form-group {
    margin-bottom: 0;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 15px 20px;
    background: var(--bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: var(--text);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(229, 9, 20, 0.1);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: var(--muted);
}

.contact-form textarea {
    resize: vertical;
    min-height: 130px;
    margin-bottom: 20px;
}

.captcha-row {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

.captcha-code {
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: 4px;
    color: var(--text);
    user-select: none;
}

.captcha-row input {
    flex: 1;
    padding: 12px 15px;
    background: var(--bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--text);
    font-size: 1rem;
}

.refresh-captcha {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--muted);
    cursor: pointer;
    transition: all 0.3s ease;
}

.refresh-captcha:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.submit-btn {
    width: 100%;
    padding: 16px 30px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border: none;
    border-radius: 10px;
    color: #fff;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(229, 9, 20, 0.3);
}

/* Light Theme Footer */
[data-theme="light"] .footer {
    background: #ffffff;
    border-top-color: rgba(229, 9, 20, 0.1);
}

[data-theme="light"] .footer-grid {
    border-bottom-color: rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .footer-social a {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .contact-info .info-item {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .contact-form {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .contact-form input,
[data-theme="light"] .contact-form textarea {
    background: var(--bg);
    border-color: rgba(0, 0, 0, 0.1);
}

/* Responsive */
@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .footer-about {
        grid-column: span 2;
    }
    
    .contact-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 35px;
    }
    
    .footer-about {
        grid-column: span 1;
    }
    
    .contact-form .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .captcha-row {
        flex-wrap: wrap;
    }
    
    .captcha-code {
        width: 100%;
        text-align: center;
    }
}
/* Theme Toggle dans le menu responsive */
.theme-toggle-item {
    list-style: none;
    margin-top: 20px;
}

.theme-toggle-item .theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--glass);
    border: 1px solid rgba(255,255,255,0.1);
    color: var(--text);
    cursor: pointer;
    padding: 12px 24px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    font-family: inherit;
    transition: all 0.3s ease;
    width: auto;
    height: auto;
}

.theme-toggle-item .theme-toggle:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.theme-toggle-item .theme-toggle i {
    font-size: 1.1rem;
}

/* Cacher le theme-toggle-item en desktop (menu horizontal) */
@media (min-width: 769px) {
    .theme-toggle-item {
        display: none;
    }
}
