/* ===========================
   Variables et Reset
   =========================== */
:root {
    --primary-blue: #3FA9F5;
    --light-blue: #7DC8F7;
    --cyan: #A8E6F8;
    --white: #FFFFFF;
    --dark: #1A1A1A;
    --gray: #666666;
    --light-gray: #F5F5F5;
    --shadow: rgba(63, 169, 245, 0.1);
    --shadow-hover: rgba(63, 169, 245, 0.2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--dark);
    overflow-x: hidden;
}

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

/* ===========================
   Navigation
   =========================== */
.navbar {
    background: var(--white);
    box-shadow: 0 2px 10px var(--shadow);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo-container {
    height: 60px;
}

.logo {
    height: 100%;
    width: auto;
}

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

.nav-links a {
    color: var(--dark);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-blue);
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary-blue);
}

.nav-links a:hover::after {
    width: 100%;
}

/* ===========================
   Hero Section
   =========================== */
.hero {
    position: relative;
    background: linear-gradient(180deg, #FFFFFF 0%, #F8FAFB 100%);
    padding: 150px 0 100px;
    margin-top: 80px;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: linear-gradient(135deg, rgba(63, 169, 245, 0.03) 0%, rgba(168, 230, 248, 0.05) 100%);
    z-index: 0;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, var(--primary-blue), var(--light-blue));
    color: var(--white);
    padding: 0.5rem 1.2rem;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.8s ease;
}

.hero-badge svg {
    width: 18px;
    height: 18px;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--dark);
    line-height: 1.2;
    animation: fadeInUp 1s ease 0.1s both;
}

.highlight {
    background: linear-gradient(135deg, var(--primary-blue), var(--light-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    color: var(--gray);
    font-weight: 500;
    animation: fadeInUp 1s ease 0.2s both;
}

.hero-description {
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
    color: var(--gray);
    line-height: 1.8;
    max-width: 500px;
    animation: fadeInUp 1s ease 0.3s both;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease 0.4s both;
}

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

/* Hero Visual with Progress Circles */
.hero-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
}

.progress-circles {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    animation: fadeIn 1s ease 0.5s both;
}

.progress-circle {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.progress-ring {
    transform: rotate(-90deg);
}

.progress-ring-circle-bg {
    fill: none;
    stroke: #E5E5E5;
    stroke-width: 8;
}

.progress-ring-circle {
    fill: none;
    stroke: url(#gradient);
    stroke-width: 8;
    stroke-linecap: round;
    stroke-dasharray: 377;
    stroke-dashoffset: 377;
    animation: progressAnimation 2s ease-out forwards 0.8s;
}

.progress-circle:nth-child(1) .progress-ring-circle {
    stroke: var(--primary-blue);
    animation-delay: 0.8s;
}

.progress-circle:nth-child(2) .progress-ring-circle {
    stroke: var(--light-blue);
    animation-delay: 1s;
}

.progress-circle:nth-child(3) .progress-ring-circle {
    stroke: var(--cyan);
    animation-delay: 1.2s;
}

.progress-circle[data-percent="95"] .progress-ring-circle {
    stroke-dashoffset: calc(377 - (377 * 0.95));
}

.progress-circle[data-percent="100"] .progress-ring-circle {
    stroke-dashoffset: 0;
}

.progress-circle[data-percent="98"] .progress-ring-circle {
    stroke-dashoffset: calc(377 - (377 * 0.98));
}

@keyframes progressAnimation {
    from {
        stroke-dashoffset: 377;
    }
}

.progress-info {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    margin-top: -10px;
}

.progress-number {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark);
}

.progress-label {
    display: block;
    font-size: 0.75rem;
    color: var(--gray);
    font-weight: 500;
    margin-top: 0.25rem;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Floating Cards */
.floating-cards {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
}

.floating-card {
    position: absolute;
    background: var(--white);
    padding: 1rem 1.5rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-weight: 600;
    color: var(--dark);
    animation: float 6s ease-in-out infinite;
}

.floating-card svg {
    width: 24px;
    height: 24px;
    color: var(--primary-blue);
}

.floating-card.card-1 {
    top: 10%;
    right: 10%;
    animation-delay: 0s;
}

.floating-card.card-2 {
    bottom: 20%;
    left: 5%;
    animation-delay: 2s;
}

.floating-card.card-3 {
    top: 50%;
    right: 5%;
    animation-delay: 4s;
}

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

/* ===========================
   Buttons
   =========================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: var(--white);
    color: var(--primary-blue);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.btn-secondary {
    background: var(--primary-blue);
    color: var(--white);
    box-shadow: 0 4px 15px var(--shadow-hover);
}

.btn-secondary:hover {
    background: var(--light-blue);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--shadow-hover);
}

.btn-outline {
    background: transparent;
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
}

.btn-outline:hover {
    background: var(--primary-blue);
    color: var(--white);
    transform: translateY(-2px);
}

.external-icon {
    width: 20px;
    height: 20px;
}

/* ===========================
   Sections
   =========================== */
.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--dark);
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-blue), var(--cyan));
    margin: 1rem auto 0;
    border-radius: 2px;
}

.section-description {
    text-align: center;
    font-size: 1.2rem;
    color: var(--gray);
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* ===========================
   Stats Section
   =========================== */
.stats-section {
    background: var(--white);
    padding: 80px 0;
    border-bottom: 1px solid #E5E5E5;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.stat-item {
    text-align: center;
    padding: 2rem 1rem;
    position: relative;
}

.stat-item::before {
    content: '';
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    width: 1px;
    height: 60%;
    background: linear-gradient(to bottom, transparent, var(--primary-blue), transparent);
}

.stat-item:last-child::before {
    display: none;
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-blue), var(--light-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--gray);
    font-size: 1rem;
    font-weight: 500;
}

/* ===========================
   Services Section
   =========================== */
.services {
    padding: 100px 0;
    background: var(--white);
}

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

.service-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 5px 20px var(--shadow);
    transition: all 0.3s ease;
    text-align: center;
    position: relative;
    border: 2px solid transparent;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px var(--shadow-hover);
    border-color: var(--primary-blue);
}

.service-card.featured {
    border-color: var(--primary-blue);
    box-shadow: 0 8px 30px var(--shadow-hover);
}

.featured-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, var(--primary-blue), var(--light-blue));
    color: var(--white);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--primary-blue), var(--light-blue));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
}

.service-icon svg {
    width: 40px;
    height: 40px;
}

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

.service-card p {
    color: var(--gray);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.service-features {
    list-style: none;
    text-align: left;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #E5E5E5;
}

.service-features li {
    padding: 0.5rem 0;
    color: var(--gray);
    position: relative;
    padding-left: 1.5rem;
}

.service-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-blue);
    font-weight: bold;
}

/* ===========================
   Solutions Section
   =========================== */
.solutions {
    padding: 100px 0;
    background: var(--light-gray);
}

.solution-highlight {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    background: var(--white);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 5px 20px var(--shadow);
    border: 1px solid #E5E5E5;
}

.solution-logo-container {
    margin-bottom: 1.5rem;
}

.solution-logo {
    height: 60px;
    width: auto;
}

.solution-content h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--dark);
}

.solution-description {
    font-size: 1.1rem;
    color: var(--gray);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.solution-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.feature-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.feature-item svg {
    width: 32px;
    height: 32px;
    color: var(--primary-blue);
    flex-shrink: 0;
}

.feature-item h4 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
    color: var(--dark);
}

.feature-item p {
    font-size: 0.9rem;
    color: var(--gray);
    margin: 0;
}

.btn-large {
    padding: 1.2rem 2.8rem;
    font-size: 1.1rem;
}

.solution-visual {
    position: relative;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.visual-mockup {
    width: 100%;
    max-width: 400px;
}

.mockup-window {
    background: var(--light-gray);
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.window-header {
    background: #E5E5E5;
    padding: 0.8rem 1rem;
    display: flex;
    gap: 0.5rem;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #C4C4C4;
}

.dot:nth-child(1) {
    background: #FF5F56;
}

.dot:nth-child(2) {
    background: #FFBD2E;
}

.dot:nth-child(3) {
    background: #27C93F;
}

.window-content {
    padding: 3rem 2rem;
    background: var(--white);
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.backup-animation {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    position: relative;
}

.server-icon,
.cloud-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    background: linear-gradient(135deg, var(--primary-blue), var(--light-blue));
    color: var(--white);
}

.server-icon svg,
.cloud-icon svg {
    width: 50px;
    height: 50px;
}

.sync-arrows {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.arrow {
    width: 40px;
    height: 3px;
    background: var(--primary-blue);
    position: relative;
    animation: slideRight 2s ease-in-out infinite;
}

.arrow::after {
    content: '';
    position: absolute;
    right: -5px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid var(--primary-blue);
    border-top: 4px solid transparent;
    border-bottom: 4px solid transparent;
}

.arrow-1 {
    animation-delay: 0s;
}

.arrow-2 {
    animation-delay: 0.3s;
}

.arrow-3 {
    animation-delay: 0.6s;
}

@keyframes slideRight {
    0%, 100% {
        opacity: 0;
        transform: translateX(-20px);
    }
    50% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes rotate {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* ===========================
   Contact Section
   =========================== */
.contact {
    padding: 100px 0;
    background: var(--white);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    margin-top: 2rem;
}

.contact-info h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--dark);
}

.contact-info p {
    color: var(--gray);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--gray);
}

.info-item svg {
    width: 24px;
    height: 24px;
    color: var(--primary-blue);
}

.contact-form {
    background: var(--light-gray);
    padding: 2.5rem;
    border-radius: 20px;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid transparent;
    border-radius: 10px;
    background: var(--white);
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* ===========================
   Footer
   =========================== */
.footer {
    background: var(--dark);
    color: var(--white);
    padding: 3rem 0 1.5rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-logo-img {
    height: 80px;
    width: auto;
    margin-bottom: 1rem;
    background: var(--white);
    padding: 0.5rem;
    border-radius: 10px;
}

.footer-tagline {
    color: var(--light-blue);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.footer-description {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-top: 1rem;
}

.footer-links h4 {
    margin-bottom: 1rem;
    color: var(--cyan);
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--cyan);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
}

/* ===========================
   Cookie Consent Banner
   =========================== */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--white);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    padding: 1.5rem;
    z-index: 10000;
    transform: translateY(100%);
    transition: transform 0.4s ease;
    border-top: 3px solid var(--primary-blue);
}

.cookie-consent.show {
    transform: translateY(0);
}

.cookie-consent-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 2rem;
    align-items: center;
}

.cookie-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-blue), var(--light-blue));
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    flex-shrink: 0;
}

.cookie-icon svg {
    width: 32px;
    height: 32px;
}

.cookie-text h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--dark);
}

.cookie-text p {
    font-size: 0.95rem;
    color: var(--gray);
    line-height: 1.6;
    margin: 0;
}

.cookie-link {
    color: var(--primary-blue);
    text-decoration: underline;
    transition: color 0.3s ease;
}

.cookie-link:hover {
    color: var(--light-blue);
}

.cookie-actions {
    display: flex;
    gap: 1rem;
    flex-shrink: 0;
}

.btn-cookie {
    padding: 0.8rem 2rem;
    white-space: nowrap;
}

/* ===========================
   Responsive Design
   =========================== */
@media (max-width: 1024px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hero {
        padding: 120px 0 80px;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

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

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

    .hero-description {
        font-size: 1rem;
    }

    .hero-cta {
        flex-direction: column;
    }

    .hero-cta .btn {
        width: 100%;
        justify-content: center;
    }

    .progress-circles {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }

    .progress-ring {
        width: 100px !important;
        height: 100px !important;
    }

    .progress-ring-circle,
    .progress-ring-circle-bg {
        r: 40;
    }

    .progress-number {
        font-size: 1.2rem;
    }

    .progress-label {
        font-size: 0.65rem;
    }

    .floating-cards {
        display: none;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .stat-item::before {
        display: none;
    }

    .stat-number {
        font-size: 2.5rem;
    }

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

    .solution-highlight {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 2rem;
    }

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

    .solution-visual {
        height: 300px;
    }

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

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .cookie-consent-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        text-align: center;
    }

    .cookie-icon {
        margin: 0 auto;
    }

    .cookie-actions {
        flex-direction: column;
        width: 100%;
    }

    .btn-cookie {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 100px 0 60px;
    }

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

    .hero-badge {
        font-size: 0.8rem;
        padding: 0.4rem 1rem;
    }

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

    .section-description {
        font-size: 1rem;
    }

    .btn {
        padding: 0.8rem 2rem;
        font-size: 0.9rem;
    }

    .progress-circles {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .progress-ring {
        width: 120px !important;
        height: 120px !important;
    }

    .progress-ring-circle,
    .progress-ring-circle-bg {
        r: 50;
    }

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

    .stat-number {
        font-size: 2rem;
    }

    .solution-logo {
        height: 40px;
    }

    .solution-content h3 {
        font-size: 1.5rem;
    }

    .backup-animation {
        gap: 1rem;
    }

    .server-icon,
    .cloud-icon {
        width: 60px;
        height: 60px;
    }

    .server-icon svg,
    .cloud-icon svg {
        width: 35px;
        height: 35px;
    }
}
