/* ===== VARIABLES & RESET ===== */
:root {
    --noir: #0a0a0a;
    --blanc-casse: #F8F4E3;
    --jaune-dore: #D4B483;
    --or-clair: #B89A6D;
    --gris-fonce: #1a1a1a;
    --gris-moyen: #2a2a2a;
    --bleu-electric: #00d9ff;
    --violet-electric: #9d00ff;
    --rose-electric: #ff00c8;
    --vert-electric: #00ff9d;
    --espace-gallaxy: #001233;
    --etoile-lumineuse: #C5D86D;
    --nebuleuse-violet: #736CED;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--noir);
    color: var(--blanc-casse);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ===== MATRIX BACKGROUND ===== */
#matrix {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    opacity: 0.4;
}

/* ===== HERO AVEC EFFET SPATIAL ===== */
#hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
    background: linear-gradient(135deg, 
        var(--espace-gallaxy) 0%, 
        rgba(10, 10, 10, 0.95) 100%);
}

#hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, 
            rgba(157, 0, 255, 0.15) 0%, 
            transparent 50%),
        radial-gradient(circle at 80% 20%, 
            rgba(0, 217, 255, 0.1) 0%, 
            transparent 50%),
        radial-gradient(circle at 40% 40%, 
            rgba(255, 0, 200, 0.05) 0%, 
            transparent 50%),
        radial-gradient(circle at 60% 60%, 
            rgba(0, 255, 157, 0.05) 0%, 
            transparent 50%);
    z-index: -1;
    animation: nebulaFloat 20s ease-in-out infinite alternate;
}

@keyframes nebulaFloat {
    0% {
        background-position: 0% 0%;
        transform: scale(1);
    }
    50% {
        background-position: 50% 50%;
        transform: scale(1.05);
    }
    100% {
        background-position: 100% 100%;
        transform: scale(1);
    }
}

#heroCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

/* ===== LAYOUT CONTAINER ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    width: 100%;
}

/* ===== HEADER & NAVIGATION ===== */
#header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(10, 10, 10, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(212, 180, 131, 0.2);
    transition: all 0.3s ease;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    z-index: 1001;
}

.logo-img {
    height: 40px;
    width: auto;
    transition: transform 0.3s ease;
}

.logo-img:hover {
    transform: scale(1.05);
}

/* Menu Principal */
#mainNav {
    display: flex;
    align-items: center;
}

#mainNav ul {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    align-items: center;
    margin: 0;
    padding: 0;
}

#mainNav a {
    color: var(--blanc-casse);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
    display: block;
}

#mainNav a:hover {
    color: var(--jaune-dore);
}

#mainNav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--jaune-dore);
    transition: width 0.3s ease;
}

#mainNav a:hover::after {
    width: 100%;
}

#mainNav a.active {
    color: var(--jaune-dore);
}

#mainNav a.active::after {
    width: 100%;
}

/* Bouton Devis dans le menu */
#mainNav .btn-devis {
    background: linear-gradient(135deg, var(--violet-electric) 0%, var(--bleu-electric) 100%);
    color: white;
    font-weight: 600;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    text-decoration: none;
    display: inline-block;
    margin-left: 0.5rem;
}

#mainNav .btn-devis:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(157, 0, 255, 0.3);
}

/* Menu Hamburger */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--blanc-casse);
    font-size: 1.8rem;
    cursor: pointer;
    padding: 0.5rem;
    transition: color 0.3s ease;
    z-index: 1001;
}

.mobile-menu-btn:hover {
    color: var(--jaune-dore);
}

/* ===== HERO CONTENT ===== */
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero h1 {
    font-family: 'Montserrat Alternates', sans-serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--blanc-casse);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    background: linear-gradient(135deg, var(--blanc-casse) 0%, var(--jaune-dore) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 1.2rem;
    color: var(--or-clair);
    margin-bottom: 2.5rem;
    max-width: 600px;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.hero-stats {
    display: flex;
    gap: 3rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.stat {
    text-align: center;
}

.stat-number {
    font-family: 'Montserrat Alternates', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--jaune-dore);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--or-clair);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    text-align: center;
}

.btn-primary {
    background: var(--jaune-dore);
    color: var(--noir);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(212, 180, 131, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--blanc-casse);
    border: 2px solid var(--jaune-dore);
}

.btn-secondary:hover {
    background: var(--jaune-dore);
    color: var(--noir);
    transform: translateY(-3px);
}

.btn-devis {
    background: linear-gradient(135deg, var(--violet-electric) 0%, var(--bleu-electric) 100%);
    color: white;
    font-weight: 600;
    padding: 1rem 2rem;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
}

.btn-devis:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(157, 0, 255, 0.3);
}

/* ===== SECTIONS GENERAL ===== */
section {
    padding: 5rem 0;
    position: relative;
}

section h2 {
    font-family: 'Montserrat Alternates', sans-serif;
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--blanc-casse);
}

section > .container > p {
    text-align: center;
    color: var(--or-clair);
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 3rem;
}

/* ===== SERVICES SECTION ===== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    background: var(--gris-fonce);
    padding: 2.5rem 2rem;
    border-radius: 12px;
    border: 1px solid var(--gris-moyen);
    transition: all 0.3s ease;
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--jaune-dore);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.service-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-card h3 {
    font-family: 'Montserrat Alternates', sans-serif;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--blanc-casse);
}

.service-card p {
    color: var(--or-clair);
    flex-grow: 1;
}

/* ===== TARIFS SECTION ===== */
#tarifs {
    background: linear-gradient(135deg, var(--gris-fonce) 0%, var(--noir) 100%);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.pricing-card {
    background: var(--gris-fonce);
    padding: 2.5rem 2rem;
    border-radius: 12px;
    border: 1px solid var(--gris-moyen);
    transition: all 0.3s ease;
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
}

.pricing-card.featured {
    border-color: var(--jaune-dore);
    transform: scale(1.02);
}

.pricing-card:hover {
    transform: translateY(-5px);
    border-color: var(--jaune-dore);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.pricing-card.featured:hover {
    transform: translateY(-5px) scale(1.02);
}

.pricing-card h3 {
    font-family: 'Montserrat Alternates', sans-serif;
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--blanc-casse);
}

.price {
    font-family: 'Montserrat Alternates', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--jaune-dore);
    margin: 1rem 0;
}

.pricing-card > p {
    color: var(--or-clair);
    margin-bottom: 2rem;
    font-style: italic;
}

.features-list {
    list-style: none;
    margin: 2rem 0;
    text-align: left;
    flex-grow: 1;
}

.features-list li {
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--gris-moyen);
    color: var(--blanc-casse);
    display: flex;
    align-items: center;
}

.features-list li:last-child {
    border-bottom: none;
}

.features-list li i {
    color: var(--jaune-dore);
    margin-right: 0.8rem;
    font-size: 0.9rem;
}

.pricing-note {
    text-align: center;
    margin-top: 3rem;
    padding: 1.5rem;
    background: rgba(212, 180, 131, 0.05);
    border-radius: 8px;
    border: 1px solid var(--gris-moyen);
}

.pricing-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2rem;
    background: rgba(212, 180, 131, 0.05);
    border-radius: 12px;
    border: 1px solid var(--gris-moyen);
}

.pricing-cta p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.pricing-cta .btn {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

/* ===== PORTFOLIO SECTION ===== */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.portfolio-item {
    background: var(--gris-fonce);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--gris-moyen);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.portfolio-item:hover {
    transform: translateY(-5px);
    border-color: var(--jaune-dore);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.portfolio-image {
    height: 220px;
    background: var(--gris-moyen);
    overflow: hidden;
}

.portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.portfolio-item:hover .portfolio-image img {
    transform: scale(1.05);
}

.portfolio-overlay {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.portfolio-overlay h3 {
    font-family: 'Montserrat Alternates', sans-serif;
    font-size: 1.4rem;
    margin-bottom: 0.8rem;
    color: var(--blanc-casse);
}

.portfolio-overlay p {
    color: var(--or-clair);
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.portfolio-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.tech-tag {
    background: rgba(212, 180, 131, 0.1);
    color: var(--jaune-dore);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    border: 1px solid var(--jaune-dore);
}

/* ===== TEMOIGNAGES SECTION ===== */
#temoignages {
    background: linear-gradient(135deg, var(--gris-fonce) 0%, var(--noir) 100%);
}

.testimonials-slider {
    max-width: 800px;
    margin: 3rem auto 0;
    position: relative;
}

.testimonials-container {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
}

.testimonial {
    background: var(--noir);
    padding: 2.5rem;
    border-radius: 16px;
    border: 1px solid var(--gris-moyen);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    display: none;
}

.testimonial.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.testimonial-text {
    font-style: italic;
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    color: var(--blanc-casse);
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.author-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--jaune-dore);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--noir);
    font-weight: bold;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.testimonial-author h4 {
    color: var(--blanc-casse);
    font-size: 1.2rem;
    margin-bottom: 0.25rem;
    font-family: 'Montserrat Alternates', sans-serif;
}

.testimonial-author p {
    color: var(--or-clair);
    font-size: 0.9rem;
}

.testimonial-dots {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 2rem;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--gris-moyen);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.dot.active {
    background: var(--jaune-dore);
    transform: scale(1.2);
}

.dot:hover {
    background: var(--or-clair);
}

/* ===== CONTACT SECTION ===== */
.contact-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
    align-items: start;
}

.contact-info {
    background: var(--gris-fonce);
    padding: 2.5rem 2rem;
    border-radius: 12px;
    border: 1px solid var(--gris-moyen);
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.contact-item:last-child {
    margin-bottom: 0;
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: rgba(212, 180, 131, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon i {
    font-size: 1.5rem;
    color: var(--jaune-dore);
}

.contact-item h3 {
    font-family: 'Montserrat Alternates', sans-serif;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--blanc-casse);
}

.contact-item p, .contact-item a {
    color: var(--or-clair);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: var(--jaune-dore);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
}

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(212, 180, 131, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.social-link:hover {
    background: rgba(212, 180, 131, 0.2);
    border-color: var(--jaune-dore);
    transform: translateY(-3px);
}

.social-link i {
    color: var(--jaune-dore);
    font-size: 1.2rem;
}

.contact-form {
    background: var(--gris-fonce);
    padding: 2.5rem 2rem;
    border-radius: 12px;
    border: 1px solid var(--gris-moyen);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--blanc-casse);
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 0.8rem 1rem;
    background: var(--noir);
    border: 1px solid var(--gris-moyen);
    border-radius: 8px;
    color: var(--blanc-casse);
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--jaune-dore);
    box-shadow: 0 0 0 2px rgba(212, 180, 131, 0.1);
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

/* ===== QR CODE SECTION ===== */
.qr-section {
    text-align: center;
    padding: 2rem;
    background: rgba(212, 180, 131, 0.05);
    border-radius: 12px;
    border: 1px solid var(--gris-moyen);
    margin-top: 2rem;
}

.qr-code img {
    width: 150px;
    height: 150px;
    margin: 0 auto 1rem;
    border-radius: 8px;
}

/* ===== FOOTER ===== */
footer {
    background: var(--gris-fonce);
    padding: 4rem 0 2rem;
    border-top: 1px solid var(--gris-moyen);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-about .footer-logo {
    font-family: 'Montserrat Alternates', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--jaune-dore);
    margin-bottom: 1rem;
}

.footer-about p {
    color: var(--or-clair);
}

.footer-links h4 {
    font-family: 'Montserrat Alternates', sans-serif;
    color: var(--blanc-casse);
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: var(--or-clair);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--jaune-dore);
}

.copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--gris-moyen);
    color: var(--or-clair);
    font-size: 0.9rem;
}

.copyright a {
    color: var(--jaune-dore);
    text-decoration: none;
}

/* ===== DEVIS INTERACTIF ===== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(10, 10, 10, 0.98);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
    padding: 1rem;
}

.modal.active {
    display: flex;
}

.devis-container {
    background: var(--gris-fonce);
    border: 1px solid var(--gris-moyen);
    border-radius: 16px;
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.devis-header {
    padding: 2rem;
    border-bottom: 1px solid var(--gris-moyen);
    position: relative;
}

.devis-header h3 {
    font-family: 'Montserrat Alternates', sans-serif;
    font-size: 1.8rem;
    color: var(--blanc-casse);
    margin-bottom: 0.5rem;
}

.devis-header p {
    color: var(--or-clair);
    font-size: 1rem;
}

.close-devis {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: none;
    border: none;
    color: var(--or-clair);
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s ease;
    z-index: 1;
}

.close-devis:hover {
    color: var(--jaune-dore);
}

.devis-progress {
    padding: 0 2rem 1rem;
    border-bottom: 1px solid var(--gris-moyen);
}

.progress-bar {
    height: 6px;
    background: var(--gris-moyen);
    border-radius: 3px;
    margin-bottom: 1rem;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--jaune-dore);
    width: 20%;
    transition: width 0.5s ease;
}

.progress-steps {
    display: flex;
    justify-content: space-between;
    position: relative;
}

.progress-step {
    text-align: center;
    flex: 1;
    position: relative;
    padding-top: 25px;
}

.step-circle {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--gris-moyen);
    color: var(--or-clair);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    transition: all 0.3s ease;
}

.progress-step.active .step-circle {
    background: var(--jaune-dore);
    color: var(--noir);
}

.step-text {
    font-size: 0.8rem;
    color: var(--or-clair);
    margin-top: 5px;
}

.progress-step.active .step-text {
    color: var(--jaune-dore);
    font-weight: 500;
}

.devis-content {
    padding: 2rem;
    min-height: 400px;
}

.devis-step {
    display: none;
    animation: fadeIn 0.5s ease;
}

.devis-step.active {
    display: block;
}

.devis-step h4 {
    font-family: 'Montserrat Alternates', sans-serif;
    font-size: 1.5rem;
    color: var(--blanc-casse);
    margin-bottom: 1rem;
}

.devis-step p {
    color: var(--or-clair);
    margin-bottom: 2rem;
}

#projectTypeOptions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.option-card {
    background: var(--noir);
    border: 1px solid var(--gris-moyen);
    border-radius: 10px;
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.option-card:hover {
    border-color: var(--jaune-dore);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.option-card.selected {
    border-color: var(--jaune-dore);
    background: rgba(212, 180, 131, 0.05);
}

.option-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.option-card h5 {
    font-family: 'Montserrat Alternates', sans-serif;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--blanc-casse);
}

.option-card p {
    color: var(--or-clair);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    flex-grow: 1;
}

.option-price {
    font-weight: 600;
    color: var(--jaune-dore);
    margin-top: 0.5rem;
    font-size: 1.1rem;
}

.features-list-devis {
    list-style: none;
    margin: 1.5rem 0;
}

.features-list-devis li {
    padding: 0.5rem 0;
    color: var(--blanc-casse);
    display: flex;
    align-items: center;
    font-size: 0.9rem;
}

.features-list-devis li i {
    color: var(--jaune-dore);
    margin-right: 0.8rem;
    font-size: 0.8rem;
}

.checkbox-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.checkbox-option {
    display: flex;
    align-items: center;
    padding: 1rem;
    background: var(--noir);
    border: 1px solid var(--gris-moyen);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.checkbox-option:hover {
    border-color: var(--jaune-dore);
}

.checkbox-option input {
    margin-right: 1rem;
    accent-color: var(--jaune-dore);
}

.option-details {
    flex-grow: 1;
}

.option-details h5 {
    font-family: 'Montserrat Alternates', sans-serif;
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
    color: var(--blanc-casse);
}

.option-details p {
    color: var(--or-clair);
    font-size: 0.9rem;
    margin-bottom: 0;
}

.option-price-addon {
    font-weight: 600;
    color: var(--jaune-dore);
    margin-left: 1rem;
}

.radio-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.radio-option {
    display: flex;
    align-items: center;
    padding: 1rem;
    background: var(--noir);
    border: 1px solid var(--gris-moyen);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.radio-option:hover {
    border-color: var(--jaune-dore);
}

.radio-option.selected {
    border-color: var(--jaune-dore);
    background: rgba(212, 180, 131, 0.05);
}

.radio-option input {
    margin-right: 1rem;
    accent-color: var(--jaune-dore);
}

.radio-details {
    flex-grow: 1;
}

.radio-details h5 {
    font-family: 'Montserrat Alternates', sans-serif;
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
    color: var(--blanc-casse);
}

.radio-details p {
    color: var(--or-clair);
    font-size: 0.9rem;
    margin-bottom: 0;
}

.estimation-preview {
    background: rgba(212, 180, 131, 0.05);
    border-radius: 10px;
    padding: 1.5rem;
    margin: 2rem 0;
    border: 1px solid var(--gris-moyen);
}

.estimation-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.estimation-header h5 {
    font-family: 'Montserrat Alternates', sans-serif;
    font-size: 1.2rem;
    color: var(--blanc-casse);
}

.estimation-total {
    font-family: 'Montserrat Alternates', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--jaune-dore);
}

.estimation-details {
    border-top: 1px solid var(--gris-moyen);
    padding-top: 1rem;
}

.estimation-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.estimation-item:last-child {
    margin-bottom: 0;
}

.estimation-label {
    color: var(--or-clair);
}

.estimation-value {
    color: var(--blanc-casse);
    font-weight: 500;
}

.devis-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--gris-moyen);
}

.devis-navigation {
    display: flex;
    gap: 1rem;
    width: 100%;
}

.disclaimer {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 1rem;
    background: rgba(255, 193, 7, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(255, 193, 7, 0.3);
    margin: 1.5rem 0;
    font-size: 0.9rem;
}

.disclaimer i {
    color: var(--jaune-dore);
    font-size: 1rem;
    margin-top: 0.2rem;
}

.disclaimer span {
    color: var(--or-clair);
}

/* ===== LOADER ===== */
.loader {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 10, 0.9);
    z-index: 3000;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.loader.active {
    display: flex;
}

.loader-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid var(--gris-moyen);
    border-top: 5px solid var(--jaune-dore);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loader-text {
    color: var(--or-clair);
    font-size: 1rem;
}

/* ===== MESSAGES D'ALERTE ===== */
.alert {
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin: 1rem 0;
    display: none;
    align-items: center;
    gap: 1rem;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.alert-success {
    background: rgba(40, 167, 69, 0.1);
    border: 1px solid rgba(40, 167, 69, 0.3);
    color: #28a745;
}

.alert-error {
    background: rgba(220, 53, 69, 0.1);
    border: 1px solid rgba(220, 53, 69, 0.3);
    color: #dc3545;
}

.alert-warning {
    background: rgba(255, 193, 7, 0.1);
    border: 1px solid rgba(255, 193, 7, 0.3);
    color: #ffc107;
}

.alert-info {
    background: rgba(23, 162, 184, 0.1);
    border: 1px solid rgba(23, 162, 184, 0.3);
    color: #17a2b8;
}

.alert i {
    font-size: 1.2rem;
}

.alert.active {
    display: flex;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1024px) {
    .container {
        padding: 0 1.2rem;
    }
    
    .portfolio-grid, .services-grid, .pricing-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.5rem;
    }
    
    .devis-container {
        max-width: 700px;
    }
}

@media (max-width: 992px) {
    /* Menu Mobile */
    .mobile-menu-btn {
        display: block;
    }
    
    #mainNav {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        height: calc(100vh - 70px);
        background: rgba(10, 10, 10, 0.98);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        padding: 2rem;
        transform: translateX(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 999;
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        overflow-y: auto;
    }
    
    #mainNav.active {
        transform: translateX(0);
        opacity: 1;
        visibility: visible;
    }
    
    #mainNav ul {
        flex-direction: column;
        gap: 0;
        align-items: flex-start;
        width: 100%;
    }
    
    #mainNav li {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    #mainNav a {
        display: block;
        padding: 1rem 0;
        border-bottom: 1px solid rgba(212, 180, 131, 0.1);
        width: 100%;
        font-size: 1.1rem;
    }
    
    #mainNav li:last-child a {
        border-bottom: none;
    }
    
    #mainNav .btn-devis {
        margin: 1rem 0 0 0;
        width: 100%;
        text-align: center;
    }
    
    /* Hero Section */
    .hero h1 {
        font-size: clamp(2rem, 4vw, 3rem);
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    
    .btn-devis {
        width: 100%;
        text-align: center;
    }
    
    /* Sections */
    section {
        padding: 3rem 0;
    }
    
    section h2 {
        font-size: 2rem;
    }
    
    /* Testimonials */
    .testimonial {
        padding: 2rem 1.5rem;
    }
    
    .testimonial-author {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    /* Pricing Cards */
    .pricing-card.featured {
        transform: none;
    }
    
    .pricing-card.featured:hover {
        transform: translateY(-5px);
    }
    
    /* Contact */
    .contact-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
    
    /* Devis */
    .devis-container {
        max-width: 95%;
    }
    
    .devis-header, .devis-content {
        padding: 1.5rem;
    }
    
    #projectTypeOptions {
        grid-template-columns: 1fr;
    }
    
    .devis-actions {
        flex-direction: column;
        gap: 1rem;
    }
    
    .devis-navigation {
        width: 100%;
    }
    
    .devis-navigation .btn {
        flex: 1;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .hero-stats {
        flex-direction: column;
        gap: 2rem;
    }
    
    .stat {
        flex: 1;
    }
    
    .portfolio-grid, .services-grid, .pricing-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    section h2 {
        font-size: 1.8rem;
    }
    
    .service-card, .pricing-card, .contact-info, .contact-form {
        padding: 1.5rem 1.2rem;
    }
    
    .devis-header, .devis-content {
        padding: 1.2rem;
    }
    
    .testimonial {
        padding: 1.5rem 1rem;
    }
}

/* ===== SCROLLBAR PERSONNALISÉE ===== */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--gris-fonce);
}

::-webkit-scrollbar-thumb {
    background: var(--gris-moyen);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--jaune-dore);
}

/* ===== ANIMATIONS SUPPLEMENTAIRES ===== */
@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* ===== CLASSES UTILITAIRES ===== */
.text-center {
    text-align: center;
}

.text-gradient {
    background: linear-gradient(135deg, var(--jaune-dore) 0%, var(--or-clair) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-5 { margin-bottom: 3rem; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 3rem; }

.d-none { display: none !important; }
.d-block { display: block !important; }
.d-flex { display: flex !important; }

.w-100 { width: 100%; }
.h-100 { height: 100%; }

/* ===== ACCÈSIBILITÉ ===== */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ===== PERFORMANCE ===== */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* = SEO = */
[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.3s ease;
}

[loading="lazy"].loaded {
    opacity: 1;
}

/* ===== CORRECTIONS HEADER ===== */
#header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

/* Espacement pour le header fixe */
section:first-of-type {
    margin-top: 80px;
}

/* ===== EFFET SPATIAL HERO ===== */
#hero {
    position: relative;
    overflow: hidden;
}

#heroCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

/* ===== BOUTON CTA DANS LES TARIFS ===== */
.pricing-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2rem;
    background: rgba(212, 180, 131, 0.05);
    border-radius: 12px;
    border: 1px solid var(--gris-moyen);
}

.pricing-cta p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.pricing-cta .btn {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

/* ===== CORRECTIONS MENU MOBILE ===== */
@media (max-width: 992px) {
    #mainNav {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        height: calc(100vh - 70px);
        background: rgba(10, 10, 10, 0.98);
        backdrop-filter: blur(10px);
        transform: translateX(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }
    
    #mainNav.active {
        transform: translateX(0);
        opacity: 1;
        visibility: visible;
    }
    
    #mainNav ul {
        flex-direction: column;
        gap: 0;
        padding: 2rem;
    }
    
    #mainNav a {
        padding: 1rem 0;
        border-bottom: 1px solid rgba(212, 180, 131, 0.1);
        width: 100%;
    }
    
    #mainNav .btn-devis {
        margin-top: 1rem;
        width: 100%;
    }
}

/* ===== OPTIMISATIONS SPÉCIFIQUES ===== */

/* Support des couleurs système */
@media (prefers-color-scheme: dark) {
    :root {
        --blanc-casse: #F8F4E3;
        --noir: #0a0a0a;
    }
}

/* Réduction des animations pour l'accessibilité */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Correction des ancres avec header fixe */
:target {
    scroll-margin-top: 80px;
}

/* Amélioration du contraste pour accessibilité */
@media (prefers-contrast: high) {
    :root {
        --jaune-dore: #b89440;
        --or-clair: #9a7a45;
    }
}

/* Styles pour la page réalisations spécifiques */
.coming-soon-message {
    text-align: center;
    padding: 4rem 2rem;
    background: rgba(212, 180, 131, 0.05);
    border-radius: 12px;
    border: 1px solid var(--jaune-dore);
    margin: 2rem 0;
}

.coming-soon-message i {
    font-size: 3rem;
    color: var(--jaune-dore);
    margin-bottom: 1rem;
}

.coming-soon-message h3 {
    font-family: 'Montserrat Alternates', sans-serif;
    color: var(--blanc-casse);
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.coming-soon-message p {
    color: var(--or-clair);
    font-size: 1.1rem;
    line-height: 1.6;
}

/* Amélioration de la lisibilité sur mobile */
@media (max-width: 768px) {
    .coming-soon-message {
        padding: 2rem 1rem;
        margin: 1rem 0;
    }
    
    .coming-soon-message h3 {
        font-size: 1.5rem;
    }
    
    .coming-soon-message p {
        font-size: 1rem;
    }
}