/* ===== VARIABLES ===== */
:root {
    --primary: #2e5c8a;
    --primary-dark: #1e3a5f;
    --primary-light: #4682b4;
    --secondary: #e67e22;
    --accent: #27ae60;
    --dark: #2c3e50;
    --light: #ecf0f1;
    --white: #ffffff;
    --gray: #7f8c8d;
    --gray-light: #bdc3c7;
    --shadow: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 30px rgba(0,0,0,0.15);
    --transition: all 0.3s ease;
}

/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark);
    overflow-x: hidden;
}

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

img {
    max-width: 100%;
    height: auto;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

/* ===== HEADER ===== */
.header {
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

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

.logo img {
    height: 50px;
    width: auto;
    max-width: 200px;
}

.nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav a {
    font-weight: 500;
    transition: var(--transition);
}

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

.btn-contact {
    background: var(--primary);
    color: var(--white) !important;
    padding: 0.5rem 1.5rem;
    border-radius: 5px;
}

.btn-contact:hover {
    background: var(--primary-dark);
}

.mobile-menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: var(--secondary);
    color: var(--white);
}

.btn-primary:hover {
    background: #d35400;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: var(--white);
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-secondary:hover {
    background: var(--primary);
    color: var(--white);
}

.btn-large {
    padding: 15px 40px;
    font-size: 1.1rem;
}

/* ===== HERO SECTION ===== */
.hero {
    position: relative;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: var(--white);
    padding: 100px 0;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23ffffff" fill-opacity="0.05" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,154.7C960,171,1056,181,1152,165.3C1248,149,1344,107,1392,85.3L1440,64L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>');
    background-size: cover;
    opacity: 0.3;
}

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

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

.highlight {
    color: var(--secondary);
}

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

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 3rem;
    animation: fadeInUp 0.8s 0.4s backwards;
}

.hero-features {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s 0.6s backwards;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.feature-item i {
    color: var(--accent);
}

/* ===== SECTIONS ===== */
section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 10px;
}

.section-header p {
    font-size: 1.2rem;
    color: var(--gray);
}

/* ===== SERVICES ===== */
.services {
    background: var(--light);
}

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

.service-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.service-card.featured {
    border: 2px solid var(--secondary);
}

.badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--secondary);
    color: var(--white);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.service-icon {
    width: 80px;
    height: 80px;
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 20px;
}

.service-card h3 {
    color: var(--primary);
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.service-list {
    list-style: none;
    margin-top: 20px;
}

.service-list li {
    padding: 8px 0;
    border-bottom: 1px solid var(--light);
}

.service-list li:before {
    content: "✓ ";
    color: var(--accent);
    font-weight: bold;
}

/* ===== WIWITROUTEUR ===== */
.wiwitrouteur {
    background: var(--white);
}

.wiwitrouteur-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.badge-new {
    display: inline-block;
    background: var(--accent);
    color: var(--white);
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.wiwitrouteur-text h2 {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 10px;
}

.subtitle {
    font-size: 1.3rem;
    color: var(--secondary);
    margin-bottom: 20px;
}

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

.features-list {
    margin-bottom: 30px;
}

.feature {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

.feature i {
    font-size: 1.5rem;
    color: var(--primary);
    min-width: 30px;
}

.feature h4 {
    color: var(--dark);
    margin-bottom: 5px;
}

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

.wiwitrouteur-visual {
    background: var(--light);
    padding: 40px;
    border-radius: 10px;
}

.workflow-diagram {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
}

.workflow-node {
    background: var(--white);
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    min-width: 100px;
    box-shadow: var(--shadow);
}

.workflow-node i {
    font-size: 2rem;
    display: block;
    margin-bottom: 10px;
}

.node-start { border-top: 3px solid var(--accent); }
.node-condition { border-top: 3px solid var(--secondary); }
.node-action { border-top: 3px solid var(--primary); }
.node-end { border-top: 3px solid var(--accent); }

.workflow-arrow {
    font-size: 2rem;
    color: var(--gray);
}

.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.stat-item {
    text-align: center;
    background: var(--white);
    padding: 20px;
    border-radius: 10px;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--primary);
}

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

/* ===== WHY US ===== */
.why-us {
    background: var(--light);
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.why-card {
    background: var(--white);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    transition: var(--transition);
}

.why-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.why-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 20px;
}

.why-card h3 {
    color: var(--primary);
    margin-bottom: 10px;
}

/* ===== CONTACT ===== */
.contact {
    background: var(--white);
}

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

.contact-text h2 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 20px;
}

.contact-text p {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: var(--gray);
}

.contact-info {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin: 30px 0;
    flex-wrap: wrap;
}

.contact-item {
    display: flex;
    gap: 15px;
    align-items: center;
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--primary);
}

.contact-item a {
    color: var(--secondary);
    font-weight: 600;
}

.contact-cta {
    margin-top: 40px;
}

/* ===== FOOTER ===== */
.footer {
    background: var(--dark);
    color: var(--light);
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    color: var(--white);
    margin-bottom: 20px;
}

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

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col a:hover {
    color: var(--secondary);
}

.footer-email {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
    padding: 10px 20px;
    background: var(--primary);
    color: var(--white);
    border-radius: 5px;
    transition: var(--transition);
}

.footer-email:hover {
    background: var(--secondary);
    transform: translateX(5px);
}

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

.footer-bottom a {
    color: var(--secondary);
}

/* ===== SCROLL TO TOP ===== */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--primary);
    color: var(--white);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow-lg);
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    background: var(--secondary);
    transform: translateY(-5px);
}

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

/* ===== PAGE MENTIONS LÉGALES ===== */
.legal-page {
    padding: 100px 0 60px;
    background: var(--white);
    min-height: 100vh;
}

.legal-content {
    max-width: 900px;
    margin: 0 auto;
}

.legal-content h1 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.legal-content h1 i {
    font-size: 2rem;
}

.legal-section {
    margin-bottom: 40px;
    padding: 30px;
    background: var(--light);
    border-radius: 10px;
    border-left: 4px solid var(--primary);
}

.legal-section h2 {
    color: var(--primary);
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.legal-section h3 {
    color: var(--secondary);
    font-size: 1.3rem;
    margin: 25px 0 15px;
}

.legal-section p {
    line-height: 1.8;
    color: var(--gray);
    margin-bottom: 15px;
}

.legal-section ul {
    list-style: none;
    margin-left: 0;
    padding-left: 0;
}

.legal-section ul li {
    padding-left: 30px;
    position: relative;
    margin-bottom: 10px;
    line-height: 1.8;
    color: var(--gray);
}

.legal-section ul li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: bold;
    font-size: 1.2rem;
}

.legal-section a {
    color: var(--primary);
    text-decoration: underline;
}

.legal-section a:hover {
    color: var(--secondary);
}

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

.info-item {
    background: var(--white);
    padding: 15px;
    border-radius: 5px;
    border: 1px solid var(--gray-light);
}

.info-item.full-width {
    grid-column: 1 / -1;
}

.info-item strong {
    display: block;
    color: var(--primary);
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.info-item span {
    color: var(--gray);
    line-height: 1.6;
}

.info-item .note {
    display: block;
    margin-top: 10px;
    font-size: 0.9rem;
    color: var(--gray);
    font-style: italic;
}

.legal-actions {
    display: flex;
    gap: 20px;
    margin-top: 40px;
    flex-wrap: wrap;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 968px) {
    .logo img {
        height: 40px;
        max-width: 150px;
    }

    .nav {
        display: none;
    }

    .mobile-menu-toggle {
        display: block;
    }

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

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

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

    .workflow-diagram {
        flex-direction: column;
    }

    .workflow-arrow {
        transform: rotate(90deg);
    }

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

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

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

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

    .wiwitrouteur-text h2 {
        font-size: 2rem;
    }
}
