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

/* =========================
   VARIABLES
========================= */
:root {
    --primary-color: #0b63ce;
    --primary-dark: #084ea6;
    --text-color: #1f2937;
    --text-light: #6b7280;
    --background-light: #f5f7fb;
    --white: #ffffff;
    --border-color: #e5e7eb;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    --radius: 18px;
    --container-width: 1200px;
}

/* =========================
   BASE
========================= */
html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    color: var(--text-color);
    background-color: var(--white);
    line-height: 1.6;
}

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

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
}

/* =========================
   UTILITAIRES
========================= */
.container {
    width: min(90%, var(--container-width));
    margin: 0 auto;
}

.section {
    padding: 90px 0;
}

.section-header {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 50px;
}

.section-header h2 {
    font-size: 2.4rem;
    margin-bottom: 18px;
    line-height: 1.2;
}

.section-header p {
    font-size: 1.08rem;
    color: var(--text-light);
}

/* =========================
   BOUTON
========================= */
.btn {
    display: inline-block;
    background: var(--white);
    color: var(--primary-color);
    padding: 14px 28px;
    border-radius: 12px;
    font-weight: bold;
    transition: 0.3s ease;
    box-shadow: var(--shadow);
}

.btn:hover {
    transform: translateY(-2px);
    background: #eef4ff;
}

/* =========================
   HEADER
========================= */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(11, 99, 206, 0.95);
    backdrop-filter: blur(8px);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 78px;
}

.logo {
    font-size: 1.9rem;
    font-weight: 800;
    color: var(--white);
    letter-spacing: 2px;
}

.nav-list {
    display: flex;
    gap: 28px;
}

.nav-list a {
    color: var(--white);
    font-weight: 600;
    transition: 0.3s ease;
}

.nav-list a:hover {
    opacity: 0.8;
}

/* =========================
   HERO
========================= */
.hero {
    background: linear-gradient(135deg, #0b63ce 0%, #0d4ea6 55%, #0c3d84 100%);
    color: var(--white);
    padding: 90px 0 70px;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: 40px;
}

.hero-subtitle {
    font-size: 1.1rem;
    margin-bottom: 12px;
    opacity: 0.95;
}

.hero-text h1 {
    font-size: 3.2rem;
    line-height: 1.15;
    margin-bottom: 22px;
    max-width: 650px;
}

.hero-description {
    font-size: 1.08rem;
    max-width: 620px;
    margin-bottom: 28px;
    color: rgba(255, 255, 255, 0.92);
}

.hero-image img {
    width: 100%;
    max-width: 650px;
    margin-left: auto;
    filter: drop-shadow(0 0 30px rgba(0, 150, 255, 0.3));
}

.hero-image img {
    transition: transform 0.5s ease;
}

.hero-image img:hover {
    transform: scale(1.05);
}


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

.services-grid {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.services-row {
    display: flex;
    gap: 24px;
}

.services-row .card {
    flex: 1;
}

/* Ligne du bas centrée */
.services-row.bottom {
    justify-content: center;
}

.services-row.bottom .card {
    max-width: 320px;
}
.card {
    background: var(--white);
    padding: 30px 24px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: 0.3s ease;
    border: 1px solid transparent;
    filter: drop-shadow(0 0 25px rgba(0, 150, 255, 0.25));
}

.card:hover {
    transform: translateY(-6px);
    border-color: #dbe7ff;
}

.card-icon {
    font-size: 2rem;
    margin-bottom: 16px;
}

.card h3 {
    font-size: 1.35rem;
    margin-bottom: 12px;
}

.card p {
    color: var(--text-light);
    font-size: 1rem;
}

/* =========================
   AI SECTION
========================= */
.ai {
    background: var(--white);
}

.ai-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.ai-text h2 {
    font-size: 2.4rem;
    margin-bottom: 20px;
}

.ai-text p {
    color: var(--text-light);
    margin-bottom: 18px;
    font-size: 1.05rem;
}

.ai-list {
    margin: 28px 0;
    display: grid;
    gap: 16px;
}

.ai-list li {
    position: relative;
    padding-left: 28px;
    color: var(--text-color);
    font-size: 1.02rem;
}

.ai-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--primary-color);
    font-weight: bold;
}

.ai-image img {
    width: 100%;
    max-width: 520px;
    margin-left: auto;
    filter: drop-shadow(0 0 25px rgba(0, 150, 255, 0.25));
    transition: transform 0.5s ease;
}

.ai-image img:hover {
    transform: scale(1.05);
}

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

.contact-container {
    display: flex;
    justify-content: center;
}

.contact-form-box {
    background: var(--white);
    width: 100%;
    max-width: 700px;
    padding: 40px;
    border-radius: 22px;
    box-shadow: var(--shadow);
    text-align: center;
}

/* TITRE */
.contact-form-box h2 {
    font-size: 2.4rem;
    margin-bottom: 16px;
}

/* TEXTE */
.contact-form-box p {
    color: var(--text-light);
    margin-bottom: 30px;
    font-size: 1.05rem;
}

/* FORM */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    text-align: left;
}

/* GROUPES */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* LABELS */
.form-group label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-color);
}

/* INPUTS */
.contact-form input,
.contact-form textarea {
    padding: 14px 16px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
}

/* FOCUS */
.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(11, 99, 206, 0.1);
}

/* TEXTAREA */
.contact-form textarea {
    resize: vertical;
    min-height: 140px;
}

/* BOUTON */
.contact-form .btn {
    margin-top: 10px;
    border: none;
    cursor: pointer;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--white);
    transition: 0.3s ease;
}

.contact-form .btn:hover {
    transform: translateY(-2px);
}

/* =========================
   FOOTER
========================= */
.footer {
    background: #111827;
    color: var(--white);
    padding: 26px 0;
}

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

.footer p {
    font-size: 0.98rem;
    opacity: 0.92;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 992px) {
    .hero-container,
    .ai-container,
    .contact-container {
        grid-template-columns: 1fr;
    }

    .hero-text h1 {
        font-size: 2.6rem;
    }

    .hero-image img,
    .ai-image img {
        margin: 0 auto;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .nav-list {
        gap: 18px;
    }
}

@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        justify-content: center;
        padding: 14px 0;
        gap: 12px;
    }

    .nav-list {
        flex-wrap: wrap;
        justify-content: center;
        gap: 14px;
    }

    .hero {
        padding-top: 70px;
    }

    .hero-text h1 {
        font-size: 2.2rem;
    }

    .section {
        padding: 70px 0;
    }

    .section-header h2,
    .ai-text h2,
    .contact-info h2 {
        font-size: 2rem;
    }

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

    .contact-form-box {
        padding: 24px;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 1.5rem;
    }

    .hero-text h1 {
        font-size: 1.9rem;
    }

    .hero-subtitle,
    .hero-description,
    .section-header p,
    .ai-text p,
    .contact-info p {
        font-size: 1rem;
    }

    .btn {
        width: 100%;
        text-align: center;
    }
}