/* ========================================
   variablescss
   ======================================== */
:root {
    --color-primary: #2B7AB5;
    --color-secondary: #8EBE3F;
    --color-white: #ffffff;
    --color-black: #030213;
    --color-gray-50: #f9fafb;
    --color-gray-100: #f3f4f6;
    --color-gray-200: #e5e7eb;
    --color-gray-600: #4b5563;
    --color-gray-900: #111827;
    
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --radius-sm: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-gray-900);
    background-color: var(--color-white);
}

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

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

ul {
    list-style: none;
}

/* ========================================
   container 
   ======================================== */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

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

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

.nav-logo .logo {
    height: 70px; 
    width: auto;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 0.25rem;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--color-primary);
    border-radius: 2px;
    transition: var(--transition);
}

.nav-menu {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    font-weight: 500;
    color: var(--color-gray-900);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    transition: var(--transition);
}

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

.nav-link.btn-primary {
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    color: var(--color-white);
    padding: 0.75rem 1.5rem;
}

.nav-link.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* ========================================
   boutons
   ======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 2rem;
    border-radius: var(--radius-md);
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

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

.btn-white:hover {
    background-color: var(--color-gray-100);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

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

.btn-outline:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

/* ========================================
   section
   ======================================== */
.hero {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary) 60%, var(--color-secondary) 100%);
    color: var(--color-white);
    padding: 4rem 0;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.hero-text {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.hero-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    line-height: 1.2;
}

.hero-description {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.hero-image img {
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    width: 100%;
    object-fit: cover;
}

/* ========================================
   section style
   ======================================== */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--color-gray-900);
    margin-bottom: 1rem;
}

.section-description {
    font-size: 1.25rem;
    color: var(--color-gray-600);
    max-width: 42rem;
    margin: 0 auto;
}

/* ========================================
   services section
   ======================================== */
.services {
    padding: 5rem 0;
    background-color: var(--color-white);
}

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

.service-card {
    padding: 2rem;
    border: 2px solid var(--color-gray-200);
    border-radius: var(--radius-xl);
    transition: var(--transition);
}

.service-card:hover {
    border-color: var(--color-secondary);
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.service-icon {
    width: 4rem;
    height: 4rem;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: var(--transition);
}

.service-card:hover .service-icon {
    transform: scale(1.1);
}

.service-icon svg {
    color: var(--color-white);
}

.service-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-gray-900);
    margin-bottom: 1rem;
}

.service-description {
    color: var(--color-gray-600);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-primary);
    font-weight: 500;
}

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

.service-link svg {
    transition: var(--transition);
}

.service-link:hover svg {
    transform: translateX(4px);
}

/* ========================================
   acvantages Section
   ======================================== */
.advantages {
    padding: 5rem 0;
    background-color: var(--color-gray-50);
}

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

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

.advantage-icon {
    width: 5rem;
    height: 5rem;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.advantage-icon svg {
    color: var(--color-white);
}

.advantage-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-gray-900);
    margin-bottom: 0.75rem;
}

.advantage-description {
    color: var(--color-gray-600);
}

/* ========================================
   process Section
   ======================================== */
.process {
    padding: 5rem 0;
    background-color: var(--color-white);
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    position: relative;
}

.process-step {
    text-align: center;
    position: relative;
}

.step-number {
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    color: var(--color-white);
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.step-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-gray-900);
    margin-bottom: 0.5rem;
}

.step-description {
    color: var(--color-gray-600);
}

/* ========================================
   nouvelle application RGPD Section
   ======================================== */
.new-app-section {
    padding: 5rem 0;
    background: linear-gradient(to bottom, #f0f9ff 0%, #e8f4f8 100%);
}

.new-app-card {
    background: var(--color-white);
    border-radius: 2rem;
    padding: 4rem 3rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    text-align: center;
    max-width: 950px;
    margin: 0 auto;
}

.new-app-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(90deg, #3b82c6 0%, #6cb86e 100%);
    color: var(--color-white);
    padding: 0.625rem 1.5rem;
    border-radius: 2rem;
    font-weight: 500;
    font-size: 0.95rem;
    margin-bottom: 2rem;
}

.new-app-badge::before {
    content: "⭐";
    font-size: 1.1rem;
}

.new-app-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    color: #2B7AB5;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.new-app-subtitle {
    font-size: 1.15rem;
    color: #6b7280;
    margin-bottom: 3rem;
    line-height: 1.6;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.new-app-features {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    max-width: 550px;
    margin: 0 auto 3rem;
}

.new-app-features li {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.05rem;
    color: #1f2937;
    font-weight: 400;
    padding: 1.25rem 1.5rem;
    background: #f9fafb;
    border-radius: 0.75rem;
    transition: all 0.2s ease;
    border: 1px solid #e5e7eb;
}

.new-app-features li:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.new-app-features li svg {
    flex-shrink: 0;
    stroke: #8EBE3F;
    stroke-width: 3;
}

.new-app-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    font-size: 1.05rem;
    padding: 1rem 2.5rem;
    background: linear-gradient(90deg, #3b82c6 0%, #6cb86e 100%);
    border: none;
    border-radius: 2rem;
    color: white;
    font-weight: 500;
    box-shadow: 0 4px 14px rgba(43, 122, 181, 0.3);
    transition: all 0.3s ease;
}

.new-app-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(43, 122, 181, 0.4);
}

.new-app-btn svg {
    transition: transform 0.3s ease;
}

.new-app-btn:hover svg {
    transform: translateX(4px);
}

/* ========================================
   appel Section
   ======================================== */
.cta {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    color: var(--color-white);
}

.cta-content {
    text-align: center;
    max-width: 56rem;
}

.cta-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.cta-description {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
}

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

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

.footer-brand {
    grid-column: span 1;
}

.footer-logo {
    height: 50px;
    width: auto;
    margin-bottom: 1rem;
    filter: none;
    height: 60px; 
}

.footer-description {
    color: rgba(255, 255, 255, 0.7);
}

.footer-links h4,
.footer-contact h4 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-links ul,
.footer-contact ul {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
}

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

.footer-contact ul li {
    color: rgba(255, 255, 255, 0.7);
}

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

/* ========================================
   responsive design
   ======================================== */
@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--color-white);
        flex-direction: column;
        padding: 1rem;
        box-shadow: var(--shadow-lg);
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transition: var(--transition);
    }

    .nav-menu.active {
        max-height: 500px;
        opacity: 1;
        padding: 1rem;
    }

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

    .hero {
        padding: 2rem 0;
    }

    .services,
    .advantages,
    .process,
    .cta {
        padding: 3rem 0;
    }

    .new-app-section {
        padding: 3rem 0;
    }

    .new-app-card {
        padding: 2.5rem 1.5rem;
    }

    .new-app-badge {
        font-size: 0.85rem;
        padding: 0.5rem 1.25rem;
    }

    .new-app-title {
        font-size: 2rem;
    }

    .new-app-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    .new-app-features {
        gap: 1rem;
    }

    .new-app-features li {
        font-size: 0.95rem;
        padding: 1rem 1.25rem;
    }

    .new-app-btn {
        padding: 0.875rem 2rem;
        font-size: 0.95rem;
    }

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

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

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

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

    .nav-logo .logo {
        height: 50px;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
