* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
    --shadow-color: color-mix(in srgb, var(--accent-color) 20%, rgba(0, 0, 0, 0.15));
}

body {
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    background: transparent;
    overflow-x: hidden;
    position: relative;
    z-index: 0;
}

.background {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    opacity: .1;
    z-index: -10;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.background svg {
    width: 120vw;
    position: relative;
    top: 15px;
    z-index: -10;
    filter: drop-shadow(0 0 5px black);
}

.background span {
    display: block;
    height: 30%;
    width: 100%;
    z-index: -5;
    background-color: var(--accent-color);
}

/* Header */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 50px;
    transition: all 0.3s ease;
}

header.scrolled {
    padding: 20px 30px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    -webkit-backdrop-filter: blur(15px);
    backdrop-filter: blur(15px);
    background-color: rgba(255, 255, 255, 0.6);
}

.nav-container {
    max-width: 1340px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo-container img {
    height: 60px;
    transition: height 0.3s ease;
}

header.scrolled .logo-container img {
    height: 50px;
}

nav a {
    color: black;
    text-decoration: none;
    margin-left: 2.5rem;
    font-weight: 600;
    transition: color 0.3s ease;
    position: relative;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 3px;
    border-radius: 10px;
    background: var(--accent-color);
    transition: width 0.3s ease;
}

nav a:hover,
nav a.active {
    color: var(--accent-color);
}

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

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
}

.hero-content {
    text-align: center;
    z-index: 1;
    padding: 2rem;
}

.hero-logo {
    width: 400px;
    max-width: 90%;
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease forwards;
}

.hero .title {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease 0.2s forwards;
}

.hero .subtitle {
    font-size: 1.8rem;
    color: black;
    margin-bottom: 1.5rem;
    font-weight: 600;
    animation: fadeInUp 1s ease 0.4s forwards;
}

.hero .badge {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: var(--accent-color);
    color: white;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    margin-top: 1rem;
    letter-spacing: 1px;
    animation: fadeInUp 1s ease 0.6s forwards;
}

.cta-button {
    display: inline-block;
    margin-top: 2.5rem;
    text-align: center;
    padding: 1.2rem 3.5rem;
    background-color: var(--accent-color);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
    animation: fadeInUp 1s ease 0.8s forwards;
}

.cta-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 40px var(--shadow-color);
    background-color: color-mix(in srgb, var(--accent-color) 85%, black);
}

/* Section générique */
section {
    padding: 6rem 30px;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

h2 {
    font-size: 3rem;
    text-align: center;
    color: black;
    font-weight: 800;
}

h2::after {
    content: "";
    display: block;
    width: 100px;
    height: 5px;
    background: var(--accent-color);
    margin: 1rem auto;
    border-radius: 10px;
}

.link {
    color: black;
    transition: color .3s;
}

.link:hover {
    color: var(--accent-color);
}

.blur-box {
    background: rgba(255, 255, 255, 0.4);
    -webkit-backdrop-filter: blur(15px);
    backdrop-filter: blur(15px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
}

.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
}

.slide-in-right.visible,
.slide-in-left.visible {
    animation: slideIn 0.8s ease forwards;
}

.fade-in {
    opacity: 0;
    transform: translateY(30px);
}

/* About Section */
.about {
    margin-top: 10%;
    border-radius: 30px;
    padding: 4rem;
    opacity: 0;
    transform: translateY(50px);
    border: 3px solid var(--accent-color);
}

.about.visible, .inner-page.visible {
    animation: fadeInUp 0.8s ease forwards;
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.about p {
    font-size: 1.3rem;
    color: #333;
    line-height: 1.9;
    margin-bottom: 1.5rem;
}

.about p strong {
    color: var(--accent-color);
    font-weight: 700;
}

.cloud-img {
    margin-top: 50px;
    max-width: 100%;
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    margin-top: 4rem;
}

.service-card {
    border: 3px solid #f0f0f0;
    border-radius: 20px;
    padding: 3rem 2rem;
    opacity: 0;
    transform: translateY(50px);
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 5px;
    background: var(--accent-color);
    width: 0;
    border-radius: 10px;
    transition: width 0.4s ease;
}

.service-card:hover {
    scale: 1.03;
    border-color: var(--accent-color);
    box-shadow: 0 0 60px var(--shadow-color);
}

.service-card:hover::before {
    width: 100%;
}

.service-card:last-of-type {
    grid-column: span 3;
}

.service-card.visible {
    animation: fadeInUp 0.6s ease forwards;
}

.service-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    display: inline-block;
    filter: grayscale(100%);
    transition: filter 0.3s ease;
}

.service-card:hover .service-icon {
    filter: grayscale(0%);
}

.service-card h3 {
    font-size: 1.6rem;
    margin-bottom: 1rem;
    color: black;
    font-weight: 700;
}

.service-card p {
    color: #555;
    line-height: 1.7;
    font-size: 1.05rem;
}

/* Contact Section */
#contact {
    padding-bottom: 0;
}

.contact {
    max-width: none;
    text-align: center;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
}

.contact h2 {
    color: white;
}

.contact-content {
    max-width: 1340px;
    margin: 0 auto;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-top: 4rem;
    align-items: start;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem;
    background: white;
    border-radius: 15px;
    overflow: hidden;
    transition: .3s ease;
}

.contact-item::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 5px;
    background: var(--accent-color);
}

.contact-item:hover {
    translate: 10px;
    box-shadow: 0 0 30px var(--shadow-color);
}

.contact-item-content {
    text-align: left;
}

.contact-item-content h3 {
    color: var(--accent-color);
    margin-bottom: 0.5rem;
    font-weight: 700;
    font-size: 1.3rem;
}

.contact-item-content p,
.contact-item-content a {
    color: #333;
    line-height: 1.8;
    font-size: 1.05rem;
}

.contact-icon {
    font-size: 2.5rem;
    flex-shrink: 0;
}

.contact-map {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    height: 100%;
    min-height: 450px;
}

.contact-map iframe {
    width: 100%;
    height: 100%;
    min-height: 450px;
    border: none;
}

/* Page SYLink */
.inner-page {
    padding-top: 170px;
    max-width: 1200px;
}

.inner-page h3 {
    font-size: 32px;
    margin-top: 20px;
    text-align: center;
}

.page-lead {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    font-size: 1.2rem;
    line-height: 1.8;
}

.price-box {
    margin-top: 2rem;
    text-align: center;
    padding: 1.6rem;
    border-radius: 16px;
    color: white;
    background: linear-gradient(120deg, color-mix(in srgb, var(--accent-color) 80%, black), var(--accent-color));
}

.price-box p {
    font-size: 2rem;
    font-weight: 800;
    margin-top: .5rem;
}

.sylink-actions {
    display: flex;
    justify-content: center;
    margin-top: 2.5rem;
    gap: 2.5rem;
}

.sylink-actions .cta-button {
    margin: 0;
}

/* Footer */
footer section {
    padding: 2.5rem 30px;
}


/* Responsive */
@media (max-width: 1115px) {
    .service-card:last-of-type {
        grid-column: span 1;
    }
}

@media (max-width: 968px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .contact-item {
        transform: translateY(50px);
    }

    .contact-item.visible {
        animation: fadeInUp 0.6s ease forwards;
    }

    .contact-map {
        transform: translateY(50px);
    }

    .contact-map.visible {
        animation: fadeInUp 0.8s ease forwards;
    }
}

@media (max-width: 770px) {
    header {
        padding: 30px;
    }

    nav a:nth-child(2),
    nav a:nth-child(3),
    nav a:nth-child(5) {
        display: none;
    }

    .hero-logo {
        width: 280px;
    }

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

    .hero .badge {
        font-size: 0.95rem;
        padding: 0.8rem 1.8rem;
    }

    h2 {
        font-size: 2rem;
    }

    .about {
        padding: 2.5rem 1.5rem;
    }

    .sylink-actions {
        flex-direction: column;
    }
}

@media (max-width: 455px) {
    nav a {
        margin-left: 10px;
    }
}


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

@keyframes slideIn {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}