/* Importation des polices */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&family=Roboto+Condensed:wght@400;700&family=Open+Sans:wght@400;600&display=swap');

/* Reset et styles de base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 50%, #f0f0f0 100%);
    min-height: 100vh;
}

/* SECTION ACCUEIL AVEC IMAGE DE FOND */
#accueil {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: rgba(255, 255, 255, 1);
    color: #333;
    position: relative;
    overflow: hidden;
}

#accueil::before {
    content: '';
    position: absolute;
    top: -10%;
    left: -10%;
    width: 120%;
    height: 120%;
    background: url('assets/IMAG-ACCUEIL.jpg') no-repeat center center/cover;
    z-index: 0;
    clip-path: ellipse(98% 92% at 50% 50%);
    transition: all 0.3s ease;
}

#accueil::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse 90% 80% at center center, 
            transparent 0%,
            rgba(255, 255, 255, 0.1) 50%,
            rgba(255, 255, 255, 0.4) 75%,
            rgba(255, 255, 255, 0.8) 90%,
            rgba(255, 255, 255, 1) 100%),
        linear-gradient(135deg, 
            rgba(240, 240, 240, 0.1) 0%, 
            rgba(250, 250, 250, 0.05) 30%, 
            rgba(255, 165, 0, 0.01) 50%,
            rgba(255, 255, 255, 0.2) 100%);
    z-index: 1;
}

#accueil > * {
    z-index: 5;
    position: relative;
}

#accueil p {
    font-size: 1.4rem;
    color: #444;
    margin-top: 1rem;
    text-shadow: 0 2px 4px rgba(255, 255, 255, 0.8);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    z-index: 5;
    position: relative;
}

/* EFFET 3D SPECTACULAIRE POUR LAB REPAR */
.title-3d {
    font-family: 'Orbitron', monospace;
    font-weight: 900;
    font-size: 4.5rem;
    text-align: center;
    margin: 60px 0;
    perspective: 1000px;
    transform-style: preserve-3d;
    position: relative;
    
    /* Gradient métallique harmonisé */
    background: linear-gradient(45deg, 
        #FFD700 0%,
        #FFA500 20%,
        #FF8C00 35%,
        #FF6347 50%,
        #FFA500 65%,
        #FFD700 80%,
        #FFFF99 100%);
    background-size: 400% 400%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    
    /* Animation de gradient */
    animation: gradientShift 4s ease-in-out infinite alternate,
               float3D 6s ease-in-out infinite,
               glow 3s ease-in-out infinite alternate;
    
    /* Ombres multiples pour l'effet 3D */
    text-shadow: 
        /* Couches de profondeur harmonisées */
        0 1px 0 #ddd,
        0 2px 0 #ccc,
        0 3px 0 #bbb,
        0 4px 0 #aaa,
        0 5px 0 #999,
        0 6px 1px rgba(0,0,0,.1),
        0 0 5px rgba(0,0,0,.1),
        0 1px 3px rgba(0,0,0,.3),
        0 3px 5px rgba(0,0,0,.2),
        0 5px 10px rgba(0,0,0,.25),
        
        /* Effets de néon harmonisés */
        0 0 20px rgba(255, 215, 0, 0.9),
        0 0 40px rgba(255, 165, 0, 0.7),
        0 0 60px rgba(255, 140, 0, 0.5);
    
    /* Transformation 3D */
    transform: rotateX(15deg) rotateY(-5deg) translateZ(50px);
    
    /* Transition pour les effets de hover */
    transition: all 0.3s ease;
}

/* Animation du gradient arc-en-ciel */
@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
        filter: hue-rotate(0deg);
    }
    50% {
        background-position: 100% 50%;
        filter: hue-rotate(180deg);
    }
    100% {
        background-position: 0% 50%;
        filter: hue-rotate(360deg);
    }
}

/* Animation de flottement 3D */
@keyframes float3D {
    0%, 100% {
        transform: rotateX(15deg) rotateY(-5deg) translateZ(50px) translateY(0px);
    }
    25% {
        transform: rotateX(10deg) rotateY(5deg) translateZ(60px) translateY(-10px);
    }
    50% {
        transform: rotateX(20deg) rotateY(-10deg) translateZ(40px) translateY(-5px);
    }
    75% {
        transform: rotateX(5deg) rotateY(8deg) translateZ(70px) translateY(-15px);
    }
}

/* Animation de glow pulsant */
@keyframes glow {
    from {
        filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.8)) 
                drop-shadow(0 0 40px rgba(255, 165, 0, 0.6))
                drop-shadow(0 0 60px rgba(255, 99, 71, 0.4));
    }
    to {
        filter: drop-shadow(0 0 30px rgba(255, 215, 0, 1)) 
                drop-shadow(0 0 60px rgba(255, 165, 0, 0.8))
                drop-shadow(0 0 90px rgba(255, 99, 71, 0.6))
                drop-shadow(0 0 120px rgba(255, 20, 147, 0.4));
    }
}

/* Effet au survol */
.title-3d:hover {
    transform: rotateX(0deg) rotateY(0deg) translateZ(100px) scale(1.1);
    text-shadow: 
        0 1px 0 #ccc,
        0 2px 0 #c9c9c9,
        0 3px 0 #bbb,
        0 4px 0 #b9b9b9,
        0 5px 0 #aaa,
        0 6px 1px rgba(0,0,0,.1),
        0 0 5px rgba(0,0,0,.1),
        0 1px 3px rgba(0,0,0,.3),
        0 3px 5px rgba(0,0,0,.2),
        0 5px 10px rgba(0,0,0,.25),
        0 10px 20px rgba(0,0,0,.2),
        
        /* Glow intensifié au hover */
        0 0 30px rgba(255, 215, 0, 1),
        0 0 60px rgba(255, 165, 0, 0.8),
        0 0 90px rgba(255, 99, 71, 0.6),
        0 0 120px rgba(255, 20, 147, 0.5),
        0 0 150px rgba(138, 43, 226, 0.4);
}

/* Effet de particules derrière le titre */
.title-3d::before {
    content: '';
    position: absolute;
    top: -50px;
    left: -50px;
    right: -50px;
    bottom: -50px;
    background: 
        radial-gradient(circle at 20% 50%, rgba(255, 215, 0, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 165, 0, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(255, 99, 71, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 60% 30%, rgba(255, 20, 147, 0.3) 0%, transparent 50%);
    animation: particleFloat 8s ease-in-out infinite;
    z-index: -1;
    border-radius: 50%;
    filter: blur(2px);
}

@keyframes particleFloat {
    0%, 100% {
        transform: rotate(0deg) scale(1);
        opacity: 0.7;
    }
    25% {
        transform: rotate(90deg) scale(1.2);
        opacity: 0.9;
    }
    50% {
        transform: rotate(180deg) scale(0.8);
        opacity: 0.6;
    }
    75% {
        transform: rotate(270deg) scale(1.1);
        opacity: 0.8;
    }
}

/* Styles pour le reste du site */
header {
    background: linear-gradient(135deg, 
        rgba(26, 26, 46, 0.95) 0%, 
        rgba(22, 33, 62, 0.98) 30%,
        rgba(15, 52, 96, 0.95) 70%,
        rgba(26, 26, 46, 0.95) 100%);
    backdrop-filter: blur(15px);
    box-shadow: 0 4px 20px rgba(26, 26, 46, 0.4), 
                0 0 40px rgba(22, 33, 62, 0.2);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 3px solid rgba(255, 215, 0, 0.8);
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    padding: 1rem 0;
}

nav ul li {
    margin: 0 1.5rem;
}

nav ul li a {
    text-decoration: none;
    color: #fff;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    font-size: 1.1rem;
    padding: 0.5rem 1rem;
    border-radius: 25px;
}

nav ul li a:hover {
    color: #1a1a2e;
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.6);
}

nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(45deg, #FFD700, #FFFF00);
    transition: width 0.3s ease;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.8);
    border-radius: 2px;
}

nav ul li a:hover::after {
    width: 80%;
}

main {
    background: linear-gradient(135deg, 
        rgba(26, 26, 46, 0.95) 0%, 
        rgba(22, 33, 62, 0.98) 50%,
        rgba(15, 52, 96, 0.95) 100%);
    backdrop-filter: blur(10px);
    margin: 2rem;
    border-radius: 25px;
    padding: 3rem;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25),
                0 0 60px rgba(26, 26, 46, 0.2);
    border: 2px solid rgba(255, 165, 0, 0.3);
    color: #f0f0f0;
}

section {
    margin: 4rem 0;
    padding: 2rem;
}

/* Styles harmonisés pour les titres */
h2 {
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 2rem;
    background: linear-gradient(45deg, #FF8C00 0%, #FFA500 50%, #FFD700 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 2px 4px rgba(255, 165, 0, 0.3);
    position: relative;
}

h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(45deg, #FF8C00, #FFD700);
    border-radius: 2px;
    box-shadow: 0 2px 10px rgba(255, 165, 0, 0.5);
}

.services-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.service-item {
    background: linear-gradient(135deg, 
        rgba(255, 248, 220, 0.15) 0%, 
        rgba(255, 250, 240, 0.2) 50%,
        rgba(255, 248, 220, 0.15) 100%);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2),
                0 0 30px rgba(255, 165, 0, 0.1);
    transition: all 0.4s ease;
    border: 2px solid rgba(255, 165, 0, 0.3);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.service-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 165, 0, 0.1), 
        transparent);
    transition: left 0.6s ease;
}

.service-item:hover::before {
    left: 100%;
}

.service-item:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3),
                0 0 50px rgba(255, 165, 0, 0.3);
    border-color: rgba(255, 165, 0, 0.6);
    background: linear-gradient(135deg, 
        rgba(255, 248, 220, 0.25) 0%, 
        rgba(255, 250, 240, 0.3) 50%,
        rgba(255, 248, 220, 0.25) 100%);
}

.service-item h3 {
    color: #FFD700;
    margin-bottom: 1rem;
    font-size: 1.4rem;
    background: linear-gradient(45deg, #FF8C00, #FFA500);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.service-item p {
    color: #e0e0e0;
    line-height: 1.7;
}

footer {
    background: linear-gradient(135deg, 
        rgba(26, 26, 46, 0.95) 0%, 
        rgba(22, 33, 62, 0.98) 50%,
        rgba(15, 52, 96, 0.95) 100%);
    color: white;
    text-align: center;
    padding: 3rem 2rem;
    margin-top: 3rem;
    border-top: 3px solid rgba(255, 165, 0, 0.6);
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.2);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-links {
    margin-top: 1.5rem;
}

.footer-links a {
    color: #f0f0f0;
    text-decoration: none;
    margin: 0 1.5rem;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    background: rgba(255, 165, 0, 0.1);
}

.footer-links a:hover {
    color: #FFD700;
    background: rgba(255, 165, 0, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 165, 0, 0.3);
}

/* Styles pour la section Contact harmonisée avec fond bleu */
#contact {
    text-align: center;
    max-width: 800px;
    margin: 3rem auto;
    padding: 3rem 2rem;
    background: linear-gradient(135deg, 
        rgba(255, 248, 220, 0.1) 0%, 
        rgba(255, 250, 240, 0.15) 50%,
        rgba(255, 248, 220, 0.1) 100%);
    border-radius: 25px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25),
                0 0 60px rgba(255, 165, 0, 0.15);
    border: 2px solid rgba(255, 165, 0, 0.4);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

#contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 20%, rgba(255, 215, 0, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 165, 0, 0.05) 0%, transparent 50%);
    z-index: 1;
}

#contact > * {
    position: relative;
    z-index: 2;
}

#contact h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: #FFD700;
    background: linear-gradient(45deg, #FF8C00 0%, #FFA500 50%, #FFD700 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

#contact form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    text-align: left;
    position: relative;
}

.form-group label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #f0f0f0;
    font-size: 1.1rem;
    padding-left: 0.5rem;
}

.form-group input,
.form-group textarea {
    padding: 1rem 1.2rem;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 1rem;
    font-family: 'Open Sans', sans-serif;
    background: #fff;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #FFA500;
    box-shadow: 0 0 0 3px rgba(255, 165, 0, 0.1);
    transform: translateY(-2px);
}

.form-group input:hover,
.form-group textarea:hover {
    border-color: #ccc;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
    line-height: 1.6;
}

button[type="submit"] {
    align-self: center;
    background: linear-gradient(135deg, #FFA500 0%, #FF8C00 100%);
    color: white;
    padding: 1rem 3rem;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 165, 0, 0.3);
    margin-top: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

button[type="submit"]:hover {
    background: linear-gradient(135deg, #FF8C00 0%, #FF7F00 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 165, 0, 0.4);
}

button[type="submit"]:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(255, 165, 0, 0.3);
}

/* Animation pour les champs */
.form-group input,
.form-group textarea {
    position: relative;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #999;
    transition: all 0.3s ease;
}

.form-group input:focus::placeholder,
.form-group textarea:focus::placeholder {
    opacity: 0.7;
    transform: translateY(-2px);
}

/* Responsive pour le formulaire */
@media (max-width: 768px) {
    .title-3d {
        font-size: 2.8rem;
        margin: 40px 0;
    }
    
    #accueil {
        padding: 2rem 1rem;
    }
    
    #accueil p {
        font-size: 1.2rem;
        padding: 0 1rem;
    }
    
    nav ul {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }
    
    nav ul li {
        margin: 0.3rem 0;
    }
    
    nav ul li a {
        font-size: 1rem;
        padding: 0.4rem 0.8rem;
    }
    
    main {
        margin: 1rem;
        padding: 2rem 1.5rem;
    }
    
    section {
        margin: 2rem 0;
        padding: 1.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .services-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .service-item {
        padding: 2rem;
    }
    
    #contact {
        margin: 2rem 1rem;
        padding: 2rem 1rem;
    }
    
    #contact h2 {
        font-size: 2rem;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 0.8rem 1rem;
        font-size: 0.95rem;
    }
    
    button[type="submit"] {
        padding: 0.8rem 2rem;
        font-size: 1rem;
    }
    
    #mentions-legales {
        margin: 2rem 1rem;
        padding: 2rem 1.5rem;
    }
    
    footer {
        padding: 2rem 1rem;
    }
    
    .footer-links a {
        margin: 0.5rem;
        display: inline-block;
    }
    
    #map-container {
        height: 300px;
        margin: 1rem;
    }
}

@media (max-width: 480px) {
    .title-3d {
        font-size: 2.2rem;
    }
    
    header {
        padding: 0.5rem 0;
    }
    
    main {
        padding: 1.5rem 1rem;
    }
    
    .service-item {
        padding: 1.5rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
}

/* Section À propos avec fond bleu */
#a-propos {
    background: linear-gradient(135deg, 
        rgba(255, 248, 220, 0.1) 0%, 
        rgba(255, 250, 240, 0.15) 100%);
    border-radius: 20px;
    padding: 3rem;
    border: 2px solid rgba(255, 165, 0, 0.4);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
}

#a-propos p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    color: #e0e0e0;
    line-height: 1.6;
}

#a-propos p strong {
    color: #FFA500;
    font-weight: 700;
}

/* Section Mentions légales harmonisée */
#mentions-legales {
    background: linear-gradient(135deg, 
        rgba(26, 26, 46, 0.95) 0%, 
        rgba(22, 33, 62, 0.98) 100%);
    color: #f0f0f0;
    padding: 3rem;
    margin: 3rem 2rem;
    border-radius: 20px;
    border: 2px solid rgba(255, 165, 0, 0.3);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

#mentions-legales h2 {
    color: #FFD700;
    margin-bottom: 2rem;
}

#mentions-legales p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
    color: #e0e0e0;
}

#mentions-legales p strong {
    color: #FFA500;
}

/* Section Localisation harmonisée avec fond bleu */
#localisation {
    text-align: center;
    background: linear-gradient(135deg, 
        rgba(255, 248, 220, 0.1) 0%, 
        rgba(255, 250, 240, 0.15) 100%);
    border-radius: 20px;
    padding: 3rem;
    border: 2px solid rgba(255, 165, 0, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
}

#map-container {
    width: 100%;
    max-width: 800px;
    margin: 2rem auto;
    height: 450px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15),
                0 0 60px rgba(255, 165, 0, 0.1);
    border: 3px solid rgba(255, 165, 0, 0.3);
}

#map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
} 