/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.material-symbols-outlined {
    font-variation-settings:
    'FILL' 0,
    'wght' 400,
    'GRAD' 0,
    'opsz' 24;
    -webkit-user-select: none;
    user-select: none;
}

:root {
    /* Couleurs basées sur le logo Corellia */
    --primary-color: #FF6B35;
    --primary-dark: #E55A2B;
    --secondary-color: #004E89;
    --accent-color: #FFB627;
    --text-color: #1a1a2e;
    --text-light: #64748b;
    --bg-light: #f8fafc;
    --bg-white: #ffffff;
    --bg-dark: #1a1a2e;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --transition: all 0.3s ease;
    
    /* Parallax variables */
    --parallax-hero: 0px;
    --parallax-about: 0px;
    --parallax-services: 0px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-white);
    position: relative;
    overflow-x: hidden;
}

/* Suppression du caneva-1 */
body::before {
    display: none;
}

body::after {
    display: none;
}

/* Parallax planets styling */
.parallax-planet {
    position: absolute;
    pointer-events: none;
    will-change: transform;
    z-index: 100;
}

.parallax-planet img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.parallax-planet-hero {
    top: 50%;
    right: 5%;
    width: 350px;
    height: 350px;
    opacity: 0.2;
    z-index: 1;
    transform: translateY(-50%);
}

.parallax-planet-about {
    top: 10%;
    right: 5%;
    width: 200px;
    height: 200px;
    opacity: 0.99;
}

.parallax-planet-services {
    bottom: 10%;
    left: 5%;
    width: 180px;
    height: 180px;
    opacity: 0.99;
}

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

/* Navigation */
.navbar {
    background-color: var(--bg-white);
    box-shadow: var(--shadow);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    height: 45px;
    width: auto;
    transition: var(--transition);
    animation: fadeInRotate 0.8s ease;
}

.logo-text {
    height: 35px;
    width: auto;
    transition: var(--transition);
    animation: fadeInSlide 0.8s ease 0.2s both;
}

.nav-brand:hover .logo-icon {
    transform: scale(1.1);
}

.nav-brand:hover .logo-text {
    transform: scale(1.05);
}

@keyframes fadeInRotate {
    from {
        opacity: 0;
        transform: rotate(-180deg) scale(0.5);
    }
    to {
        opacity: 1;
        transform: rotate(0deg) scale(1);
    }
}

@keyframes fadeInSlide {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

.nav-link {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    padding: 0.5rem 0;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    transition: var(--transition);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--bg-dark) 100%);
    color: white;
    padding: 150px 20px 100px;
    margin-top: 73px;
    text-align: center;
    position: relative;
    overflow: hidden;
    min-height: 600px;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(2px 2px at 20% 30%, white, transparent),
        radial-gradient(2px 2px at 60% 70%, white, transparent),
        radial-gradient(1px 1px at 50% 50%, white, transparent),
        radial-gradient(1px 1px at 80% 10%, white, transparent),
        radial-gradient(2px 2px at 90% 60%, white, transparent),
        radial-gradient(1px 1px at 33% 80%, white, transparent);
    background-size: 200% 200%;
    background-position: 0% 0%;
    opacity: 0.5;
    animation: twinkle 3s ease-in-out infinite;
}

.hero::after {
    display: none;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    animation: fadeInUp 0.8s ease;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    animation: fadeInUp 0.8s ease 0.2s both;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    color: var(--bg-white);
    animation: fadeInUp 0.8s ease 0.4s both;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
}

/* Section Styles */
section {
    padding: 80px 20px;
    background-color: transparent;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--text-color);
    margin-bottom: 1rem;
}

.underline {
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    margin: 0 auto;
    border-radius: 2px;
}

/* About Section */
.about {
    background-color: transparent;
    position: relative;
}

.about::before {
    display: none;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(5deg);
    }
}

.about-content {
    display: grid;
    gap: 3rem;
}

.about-text {
    font-size: 1.125rem;
    color: var(--text-light);
    line-height: 1.8;
    background: rgba(255, 255, 255, 1);
    padding: 2rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 107, 53, 0.2);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.about-text p {
    margin-bottom: 1rem;
}

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

.feature {
    text-align: center;
    padding: 2rem;
    background: rgba(255, 255, 255, 1);
    border-radius: 20px;
    transition: var(--transition);
    border: 1px solid rgba(255, 107, 53, 0.2);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.feature:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(255, 107, 53, 0.15);
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.98);
}

.feature-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.feature-icon .material-symbols-outlined {
    font-size: 4rem;
}

.feature h3 {
    font-size: 1.25rem;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.feature p {
    color: var(--text-light);
}

/* Services Section */
.services {
    background-color: transparent;
    position: relative;
}

.services::before {
    display: none;
}

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

.service-card {
    background-color: rgba(255, 255, 255, 1);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transition: var(--transition);
    text-align: center;
    border: 1px solid rgba(255, 107, 53, 0.2);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    transform: scaleX(0);
    transition: var(--transition);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(255, 107, 53, 0.2);
    border-color: var(--primary-color);
}

.service-icon {
    font-size: 4.5rem;
    margin-bottom: 1.5rem;
}

.service-icon .material-symbols-outlined {
    font-size: 4.5rem;
}

.service-card h3 {
    font-size: 1.5rem;
    color: var(--text-color);
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--text-light);
    line-height: 1.7;
}

/* Réalisations Section */
.realisations {
    padding: 5rem 20px;
    background-color: var(--bg-light);
}

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

.realisation-card {
    background: rgba(255, 255, 255, 1);
    padding: 2.5rem 2rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 107, 53, 0.2);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    text-align: center;
}

.realisation-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(255, 107, 53, 0.2);
    border-color: var(--primary-color);
}

.realisation-icon {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.realisation-icon .material-symbols-outlined {
    font-size: 3.5rem;
}

.realisation-card h3 {
    font-size: 1.5rem;
    color: var(--text-color);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.realisation-type {
    color: var(--primary-color);
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.realisation-card p {
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 0;
}

.realisation-type + p {
    margin-top: 1rem;
}

.realisation-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
}

.realisation-link:hover {
    color: var(--primary-dark);
    transform: translateX(5px);
}

.realisation-link .material-symbols-outlined {
    font-size: 1.2rem;
}

/* Contact Section */
.contact {
    background-color: transparent;
    position: relative;
}

.contact .container {
    position: relative;
    z-index: 1;
}

.contact-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-info {
    background: rgba(255, 255, 255, 0.7);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 107, 53, 0.2);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.contact-info h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

.info-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.info-item:has(.address) {
    align-items: flex-start;
}

.info-icon {
    font-size: 2rem;
}

.info-icon.material-symbols-outlined {
    font-size: 2rem;
}

.info-item:has(.address) .info-icon {
    margin-top: 0.25rem;
}

.info-item p {
    color: var(--text-light);
    font-size: 1.125rem;
    margin: 0;
}

.address {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    background: rgba(255, 255, 255, 0.7);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 107, 53, 0.2);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.invalid-feedback {
    display: none;
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.was-validated .form-group input:invalid ~ .invalid-feedback,
.was-validated .form-group textarea:invalid ~ .invalid-feedback {
    display: block;
}

.d-none {
    display: none !important;
}

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

.fw-bolder {
    font-weight: 700;
}

.text-danger {
    color: #dc3545;
}

.mb-3 {
    margin-bottom: 1rem;
}

.contact-form .btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    color: var(--bg-white);
    width: 100%;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

.contact-form .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
}

/* Contact & Footer Wrapper with Caneva */
.contact-footer-wrapper {
    background: url('../assets/caneva-2-web.svg') no-repeat center bottom;
    background-size: 100% auto;
    position: relative;
    padding-bottom: 0;
}

/* Footer */
.footer {
    background: transparent;
    color: var(--text-dark);
    text-align: center;
    padding: 4rem 20px 3rem;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color), var(--primary-color));
}

.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 1.5rem;
    opacity: 0.9;
    position: relative;
    z-index: 1;
}

.footer-logo-icon {
    height: 35px;
    width: auto;
    filter: none;
}

.footer-logo-text {
    height: 25px;
    width: auto;
    filter: none;
}

.footer p {
    margin: 0;
    opacity: 0.9;
    position: relative;
    z-index: 1;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-brand {
        gap: 8px;
    }

    .logo-icon {
        height: 35px;
    }

    .logo-text {
        height: 28px;
    }

    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--bg-white);
        flex-direction: column;
        padding: 1rem 0;
        box-shadow: var(--shadow);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
        gap: 0;
    }

    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-menu li {
        text-align: center;
        padding: 1rem 0;
    }

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

    .hero-subtitle {
        font-size: 1.125rem;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }

    .footer-logo-icon {
        height: 28px;
    }

    .footer-logo-text {
        height: 20px;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 120px 20px 80px;
    }

    .hero::after {
        width: 120px;
        height: 120px;
        right: 5%;
        top: 10%;
    }

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

    section {
        padding: 60px 20px;
    }

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

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

    .about::before,
    .services::before {
        width: 80px;
        height: 80px;
    }

    .contact::after {
        height: 150px;
    }
}
