/* =========================================
   1. CONFIGURATION GLOBALE & POLICES (ORIGINALE)
   ========================================= */
@import url('https://fonts.googleapis.com/css2?family=Audiowide&family=Russo+One&family=Outfit:wght@300;400;600;700&family=Poppins:wght@300;400;500;600;700&display=swap');

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Poppins', sans-serif;
    overflow-x: hidden;
    
    /* --- CORRECTION CRITIQUE POUR MOBILE --- */
    background-color: #c6093f; /* Couleur de secours indispensable */
    background-image: linear-gradient(to bottom, #c6093f 0%, #500b28 100%);
    min-height: 100vh; 
    background-attachment: scroll; /* Vital pour que le dégradé marche sur iPhone/Android */
    
    color: white;
}

/* L'effet "fond fixe" est réactivé uniquement sur PC */
@media (min-width: 1025px) {
    body {
        background-attachment: fixed;
    }
}

/* =========================================
   2. ANIMATIONS & EFFETS GLACE
   ========================================= */
.bg-floating-container {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    pointer-events: none; z-index: 0; overflow: hidden;
}
.glass-icon {
    position: absolute; color: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(2px); font-size: 3rem;
    filter: drop-shadow(0 0 10px rgba(255,255,255,0.1)); z-index: 0;
}
.glass-txt {
    font-family: 'Segoe UI', sans-serif; font-weight: 900; font-size: 2.5rem;
    border: 2px solid rgba(255, 255, 255, 0.1); border-radius: 12px;
    padding: 10px; display: inline-block;
}

@keyframes floatOmni { 0% { transform: translate(0, 0) rotate(0deg); } 33% { transform: translate(40px, -50px) rotate(10deg); } 66% { transform: translate(-20px, 40px) rotate(-5deg); } 100% { transform: translate(0, 0) rotate(0deg); } }
@keyframes floatOmniReverse { 0% { transform: translate(0, 0) rotate(0deg); } 33% { transform: translate(-30px, 40px) rotate(-10deg); } 66% { transform: translate(30px, -30px) rotate(5deg); } 100% { transform: translate(0, 0) rotate(0deg); } }
.move-1 { animation: floatOmni 12s infinite ease-in-out; }
.move-2 { animation: floatOmniReverse 18s infinite ease-in-out; }
.move-3 { animation: floatOmni 25s infinite ease-in-out; }
@keyframes pulseGlow { 0%{transform:scale(1); opacity:0.8;} 100%{transform:scale(1.1); opacity:1;} }

/* =========================================
   3. NAVBAR / MENU
   ========================================= */
.navbar-container {
    position: fixed; top: 0; width: 100%; z-index: 1000;
    display: flex; justify-content: center; padding-top: 20px;
    pointer-events: none; 
}
.navbar {
    pointer-events: auto;
    background: rgba(40, 0, 10, 0.4); backdrop-filter: blur(12px);
    padding: 8px 20px; border-radius: 40px;
    display: flex; align-items: center; gap: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    max-width: 90%; 
}
.nav-logo-img { width: 38px; height: auto; filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3)); transition: 0.3s; }
.nav-logo-img:hover { transform: scale(1.1); }

.nav-links-group { display: flex; align-items: center; gap: 5px; flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.nav-links-group::-webkit-scrollbar { display: none; } 

.nav-link {
    text-decoration: none; color: rgba(255,255,255,0.9); font-weight: 500; font-size: 14px;
    padding: 8px 16px; border-radius: 25px; transition: 0.3s ease; white-space: nowrap;
}
.nav-link.active, .nav-link:hover { background-color: #ee0039; color: white; box-shadow: 0 2px 10px rgba(238, 0, 57, 0.4); }

/* =========================================
   4. SECTIONS
   ========================================= */
/* --- ACCUEIL --- */
#accueil {
    position: relative; width: 100%; height: 100vh;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    overflow: hidden; text-align: center; padding: 0 20px;
}
.main-content { z-index: 10; width: 100%; }
h1.home-title {
    /* ICI LE SECRET : Gobold d'abord, Audiowide One en secours pour le mobile */
    font-family: 'Audiowide', 'Audiowide', sans-serif; 
    font-size: 3rem; text-transform: uppercase; font-weight: 700;
    text-shadow: 0 0 20px rgba(238, 0, 57, 0.6); margin-bottom: 30px; letter-spacing: 2px;
    line-height: 1.1;
}
.hero-circle-container { position: relative; width: 350px; height: 350px; margin: 0 auto; display: flex; justify-content: center; align-items: center; }
.background-circle {
    position: absolute; width: 100%; height: 100%; border-radius: 50%;
    background: linear-gradient(to bottom, rgba(255,255,255,0.05), rgba(0,0,0,0.2));
    box-shadow: 0 0 30px rgba(238, 0, 57, 0.4); border: 1px solid rgba(238, 0, 57, 0.3); z-index: 1;
    animation: pulseGlow 3s infinite alternate;
}
.main-logo { position: relative; z-index: 2; max-width: 75%; height: auto; filter: drop-shadow(0 10px 20px rgba(0,0,0,0.5)); }

/* --- A PROPOS --- */
#apropos {
    position: relative; width: 100%; min-height: 100vh;
    display: flex; align-items: center; justify-content: center; padding: 50px 20px; overflow: hidden;
}
.text-content { position: relative; z-index: 10; max-width: 800px; text-align: center; width: 100%; }

.text-content h1 { 
    /* Gobold + Backup */
    font-family: 'Russo One', 'Russo One', sans-serif; 
    font-size: 4rem; margin-bottom: 30px; text-transform: uppercase; 
}
.text-content p { font-size: 1.2rem; line-height: 1.6; color: #ffffff; margin-bottom: 25px; }
.highlight-blue { color: #ffcb11; font-weight: bold; }

/* --- SERVICES --- */
#services {
    position: relative; width: 100%; min-height: 100vh;
    color: #ffffff; 
    font-family: 'Outfit', sans-serif; /* Votre police Outfit conservée */
    padding: 100px 20px;
}
.section-header { text-align: center; margin-bottom: 60px; position: relative; z-index: 10; }
.section-header h2 {
    /* Gobold + Backup */
    font-family: 'Russo One', 'Russo One', sans-serif; 
    font-size: 4rem; text-transform: uppercase;
    background: linear-gradient(to right, #fff, #ffffff); -webkit-background-clip: text;
    -webkit-text-fill-color: transparent; margin-bottom: 15px; line-height: 1;
}
.section-header p { font-size: 1.2rem; color: #ffe6ea; max-width: 600px; margin: 0 auto; }

.swiper-container { padding: 30px 10px; overflow: visible; z-index: 10; max-width: 1200px; margin: 0 auto; }

.service-card {
    background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 24px; padding: 30px; backdrop-filter: blur(20px);
    transition: all 0.4s ease; cursor: pointer; height: 100%; min-height: 350px; display: flex; flex-direction: column;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}
.service-card:hover { 
    background: rgba(255, 255, 255, 0.15); transform: translateY(-10px) scale(1.02);
    border-color: rgba(255,255,255,0.5); box-shadow: 0 0 40px rgba(238, 0, 57, 0.6);
}
.icon-wrapper {
    width: 60px; height: 60px; background: rgba(255, 255, 255, 0.1); border-radius: 16px;
    display: flex; align-items: center; justify-content: center; margin-bottom: 20px; font-size: 1.5rem; color: white;
    border: 1px solid rgba(255,255,255,0.2); transition: 0.4s;
}
.service-card:hover .icon-wrapper { background: #ee0039; color: white; transform: rotate(10deg) scale(1.1); box-shadow: 0 0 20px rgba(238, 0, 57, 0.8); }
.service-card h3 { font-size: 1.6rem; margin-bottom: 15px; font-weight: 700; color: white; }
.service-card p { color: #ffe6ea; font-size: 0.95rem; line-height: 1.5; margin-bottom: 20px; font-weight: 300; }
.service-list li { color: #ffe6ea; margin-bottom: 8px; display: flex; align-items: flex-start; font-size: 0.9rem; }
.service-list li::before { content: ''; width: 6px; height: 6px; background: #ee0039; border-radius: 50%; margin-right: 10px; margin-top: 7px; flex-shrink: 0; }

/* --- RÉALISATIONS (PORTFOLIO) --- */
#portfolio {
    position: relative; width: 100%; min-height: 100vh;
    display: flex; flex-direction: column; align-items: center; justify-content: center; color: white; overflow: hidden;
    padding: 80px 0;
}
.portfolio-header { text-align: center; margin-bottom: 40px; z-index: 20; padding: 0 20px; }
.portfolio-header h1 { 
    /* Gobold + Backup */
    font-family: 'Russo One', 'Russo One', sans-serif; 
    font-size: 4rem; text-transform: uppercase; margin: 0; 
    text-shadow: none !important;
}

.carousel-container { 
    position: relative; width: 100%; max-width: 1200px; height: 450px; 
    display: flex; justify-content: center; align-items: center; 
    perspective: 1200px; z-index: 20; 
}
.slide { 
    position: absolute; 
    width: 600px; height: 400px; 
    border-radius: 15px; top: 50%; left: 50%; 
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.6s; 
    background: #000; transform-style: preserve-3d; 
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}
.slide img { width: 100%; height: 100%; object-fit: cover; border-radius: 15px; }

.slide.active { opacity: 1; z-index: 10; transform: translate(-50%, -50%) scale(1) rotateY(0deg); }
.slide.prev { opacity: 0.6; z-index: 5; transform: translate(calc(-50% - 350px), -50%) scale(0.8) rotateY(25deg); filter: brightness(0.5); }
.slide.next { opacity: 0.6; z-index: 5; transform: translate(calc(-50% + 350px), -50%) scale(0.8) rotateY(-25deg); filter: brightness(0.5); }
.slide.hidden { opacity: 0; z-index: -1; transform: translate(-50%, -50%) scale(0.5); }

.nav-btn { 
    position: absolute; top: 50%; transform: translateY(-50%); 
    background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.3); 
    color: white; font-size: 1.5rem; width: 50px; height: 50px; border-radius: 50%; 
    cursor: pointer; z-index: 30; backdrop-filter: blur(5px);
    display: flex; align-items: center; justify-content: center;
}
.prev-btn { left: 5%; } 
.next-btn { right: 5%; }

/* =========================================
   5. CONTACT
   ========================================= */
#contact {
    position: relative; width: 100%; min-height: 100vh;
    display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 100px 20px 40px 20px;
    gap: 60px;
}
.contact-cta-block, .contact-form-block, .contact-info-block { width: 100%; max-width: 800px; z-index: 10; text-align: center; }

/* Bloc 1 : CTA */
.contact-cta-block .cta-title { 
    /* Gobold + Backup */
    font-family: 'Russo One', 'Russo One', sans-serif; 
    font-size: 4rem; font-weight: 700; margin-bottom: 15px; line-height: 1.2;
}
.gradient-text-red { background: linear-gradient(135deg, #312f30, #312f30); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.cta-subtitle {  font-size: 1.1rem; color: #ddd; margin-bottom: 30px; }
.cta-main-btn {
    display: inline-block; background: #312f30; color: white; padding: 15px 30px; border-radius: 12px;
    font-weight: bold; text-decoration: none; margin-bottom: 40px; transition: 0.3s;
    box-shadow: 0 5px 15px rgba(52, 48, 49, 0.4);
}
.cta-main-btn:hover { background: #b3002d; transform: translateY(-3px); }
.cta-mini-cards { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; }
.glass-card-sm {
    background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2); backdrop-filter: blur(10px);
    padding: 20px; border-radius: 16px; display: flex; align-items: center; gap: 15px; min-width: 220px; text-align: left;
    flex: 1 1 200px;
}
.glass-card-sm i { color: #ee0039; font-size: 1.5rem; }
.mini-content h5 { font-size: 0.9rem; color: #bbb; margin-bottom: 5px; }
.mini-content p { font-size: 1rem; font-weight: bold; margin: 0; }

/* Bloc 2 : Formulaire */
.contact-form-block .form-title { font-size: 2rem; margin-bottom: 30px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; text-align: left; }
.full-width { grid-column: span 2; }
.form-group label { display: block; margin-bottom: 8px; color: #ddd; font-size: 0.9rem; font-weight: 600; }
.form-group input, .form-group textarea {
    width: 100%; background: rgba(255, 255, 255, 0.1); backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2); color: white; padding: 15px; border-radius: 12px;
    font-size: 1rem; font-family: 'Poppins'; transition: 0.3s;
}
.form-group input:focus, .form-group textarea:focus { border-color: #ee0039; background: rgba(255, 255, 255, 0.15); outline: none; }
.btn-submit-red {
    width: 100%; padding: 15px; background: #312f30; color: white; border: none;
    border-radius: 12px; font-size: 1.1rem; font-weight: 600; cursor: pointer;
    display: flex; justify-content: center; align-items: center; gap: 10px; transition: 0.3s;
    box-shadow: 0 5px 15px rgba(238, 0, 57, 0.3);
}

/* Bloc 3 : Infos & Footer */
.info-logo-footer { width: 80px; margin-bottom: 25px; filter: drop-shadow(0 0 5px rgba(0,0,0,0.5)); }
.info-socials { display: flex; justify-content: center; gap: 20px; margin-bottom: 25px; }
.social-btn {
    width: 50px; height: 50px; border-radius: 50%; 
    background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1);
    display: flex; align-items: center; justify-content: center; color: white; transition: 0.3s;
    font-size: 1.2rem;
}
.social-btn:hover { background: #ee0039; border-color: #ee0039; transform: translateY(-3px); }
.info-details p { color: #ccc; margin-bottom: 10px; font-size: 1rem; display: flex; align-items: center; justify-content: center; gap: 10px; }
.copyright { margin-top: 30px; font-size: 0.8rem; opacity: 0.5; }

/* =========================================
   6. MEDIA QUERIES (TABLETTES & MOBILES)
   ========================================= */
/* Tablettes */
@media (max-width: 1024px) {
    h1.home-title { font-size: 2.8rem; }
    .text-content h1, .section-header h2 { font-size: 4rem; }
    .portfolio-header h1 { font-size: 3rem; }
    
    .slide { width: 500px; height: 350px; }
    .slide.prev { transform: translate(calc(-50% - 280px), -50%) scale(0.75) rotateY(25deg); }
    .slide.next { transform: translate(calc(-50% + 280px), -50%) scale(0.75) rotateY(-25deg); }
}

/* Mobiles */
@media (max-width:800px) {
    .navbar { padding: 2px 5px; gap: 5px; width: 95%; justify-content: space-between; }
    .nav-link { font-size: 10px; padding: 6px 12px; }
    
    h1.home-title { font-size: 2.2rem; margin-bottom: 20px; }
    .text-content h1, .section-header h2 { font-size: 2.8rem; word-break: break-word; }
    .section-header p, .text-content p { font-size: 1rem; padding: 0 10px; }
    
    .hero-circle-container { width: 280px; height: 280px; }
    
    #services, #apropos, #contact { padding: 60px 20px; }
    
    .carousel-container { height: 200px; perspective: 600px; }
    .slide { width: 70vw; height: 200px; } 
    .slide.prev { transform: translate(calc(-50% - 60%), -50%) scale(0.7) rotateY(15deg); opacity: 0.4; }
    .slide.next { transform: translate(calc(-50% + 60%), -50%) scale(0.7) rotateY(-15deg); opacity: 0.4; }
    
    .nav-btn { width: 40px; height: 40px; font-size: 1.2rem; }
    .prev-btn { left: 10px; } .next-btn { right: 10px; }
    
    .form-grid { grid-template-columns: 1fr; gap: 15px; }
    .full-width { grid-column: span 1; }
    
    .contact-cta-block .cta-title { font-size: 1.8rem; }
    .glass-card-sm { min-width: 100%; }
    
    .glass-txt { font-size: 1.5rem; padding: 8px; }
    .glass-icon { font-size: 2rem; opacity: 0.3; }
}

/* Très petits mobiles */
@media (max-width: 380px) {
    h1.home-title { font-size: 1.8rem; }
    .hero-circle-container { width: 240px; height: 240px; }
    .nav-link { padding: 5px 10px; font-size: 11px; }
}