/* ===== ICT Fabric — Charte ===== */
:root {
    --primary: #534AB7;
    --navy: #25215B;
    --light-purple: #7E76DC;
    --lavender-bg: #EEEDFE;
    --lavender-mid: #AFA9EC;
    --accent: #FFB422;

    --ink: #25215B;
    --muted: #5b5780;
    --white: #ffffff;

    --radius: 16px;
    --radius-sm: 10px;
    --shadow: 0 18px 40px -22px rgba(37, 33, 91, .35);
    --shadow-sm: 0 8px 24px -16px rgba(37, 33, 91, .4);
    --container: 1140px;
    --header-h: 76px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
    color: var(--ink);
    background: var(--white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    font-family: "Poppins", "Inter", sans-serif;
    color: var(--navy);
    line-height: 1.15;
    margin: 0 0 .5em;
    letter-spacing: -.01em;
}

p { margin: 0 0 1em; color: var(--muted); }

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--navy); }

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

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

.skip-link {
    position: absolute;
    left: -999px;
    top: 0;
    background: var(--navy);
    color: #fff;
    padding: 10px 16px;
    z-index: 200;
    border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; color: #fff; }

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    font-family: "Poppins", sans-serif;
    font-weight: 600;
    font-size: .98rem;
    padding: .85rem 1.6rem;
    border-radius: 999px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
    white-space: nowrap;
}
.btn-primary {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 12px 26px -12px rgba(83, 74, 183, .8);
}
.btn-primary:hover {
    background: var(--navy);
    color: #fff;
    transform: translateY(-2px);
}
.btn-ghost {
    background: transparent;
    color: var(--navy);
    border-color: var(--lavender-mid);
}
.btn-ghost:hover {
    background: var(--lavender-bg);
    color: var(--navy);
    transform: translateY(-2px);
}
.btn-block { width: 100%; }

/* ===== Header ===== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, .85);
    backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid rgba(175, 169, 236, .35);
}
.header-inner {
    height: var(--header-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}
.brand { display: flex; align-items: center; gap: .7rem; }
.brand-logo { height: 52px; width: auto; }
.brand-banner { height: 26px; width: auto; }

.primary-nav ul {
    display: flex;
    align-items: center;
    gap: 1.8rem;
    list-style: none;
    margin: 0;
    padding: 0;
}
.primary-nav a {
    font-family: "Poppins", sans-serif;
    font-weight: 500;
    color: var(--navy);
    font-size: .98rem;
}
.primary-nav a:hover { color: var(--primary); }
.nav-cta {
    background: var(--primary);
    color: #fff !important;
    padding: .55rem 1.2rem;
    border-radius: 999px;
}
.nav-cta:hover { background: var(--navy); }

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    background: transparent;
    border: 0;
    cursor: pointer;
}
.nav-toggle span {
    display: block;
    height: 2.5px;
    width: 24px;
    background: var(--navy);
    border-radius: 2px;
    transition: transform .25s ease, opacity .2s ease;
}

/* ===== Hero ===== */
.hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(1200px 500px at 80% -10%, rgba(126, 118, 220, .25), transparent 60%),
        linear-gradient(160deg, var(--lavender-bg) 0%, #ffffff 70%);
    padding: clamp(3.5rem, 8vw, 6.5rem) 0 clamp(3.5rem, 7vw, 5.5rem);
}
.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    opacity: .55;
    pointer-events: none;
}
.network { width: 100%; height: 100%; }
.net-lines line { stroke: var(--lavender-mid); stroke-width: 2; }
.net-nodes circle { fill: var(--light-purple); }
.net-nodes .hub { fill: var(--primary); stroke: var(--navy); stroke-width: 3; }
.net-lines line { animation: pulse 6s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: .8; } 50% { opacity: .4; } }

.hero-inner { position: relative; z-index: 1; max-width: 760px; }
.eyebrow {
    font-family: "Poppins", sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .12em;
    font-size: .78rem;
    color: var(--primary);
    margin-bottom: 1rem;
}
.hero h1 {
    font-size: clamp(2.1rem, 5.5vw, 3.6rem);
    font-weight: 800;
    margin-bottom: 1rem;
}
.hero-sub {
    font-size: clamp(1.05rem, 2.2vw, 1.2rem);
    color: var(--muted);
    max-width: 620px;
}
.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .9rem;
    margin: 1.8rem 0 1.6rem;
}
.hero-points {
    display: flex;
    flex-wrap: wrap;
    gap: 1.4rem;
    list-style: none;
    margin: 0;
    padding: 0;
}
.hero-points li {
    font-family: "Poppins", sans-serif;
    font-weight: 500;
    font-size: .92rem;
    color: var(--navy);
    display: flex;
    align-items: center;
    gap: .5rem;
}
.hero-points li::before {
    content: "";
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 4px rgba(255, 180, 34, .25);
}

/* ===== Sections ===== */
.section { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.section-alt { background: var(--lavender-bg); }

.section-head {
    max-width: 640px;
    margin: 0 auto clamp(2rem, 4vw, 3rem);
    text-align: center;
}
.kicker {
    display: inline-block;
    font-family: "Poppins", sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .12em;
    font-size: .76rem;
    color: var(--primary);
    margin-bottom: .8rem;
}
.kicker-light { color: var(--lavender-mid); }
.section-head h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); }
.section-head h2::after {
    content: "";
    display: block;
    width: 54px;
    height: 4px;
    border-radius: 2px;
    background: var(--accent);
    margin: .9rem auto 0;
}

/* ===== Cards ===== */
.cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.4rem;
}
.card {
    background: var(--white);
    border: 1px solid rgba(175, 169, 236, .4);
    border-radius: var(--radius);
    padding: 1.8rem;
    box-shadow: var(--shadow-sm);
    transition: transform .2s ease, box-shadow .25s ease, border-color .2s ease;
}
.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
    border-color: var(--light-purple);
}
.card-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: var(--lavender-bg);
    color: var(--primary);
    margin-bottom: 1.1rem;
    transition: background .2s ease, color .2s ease;
}
.card:hover .card-icon {
    background: rgba(255, 180, 34, .16);
    color: var(--accent);
}
.card-icon svg { width: 26px; height: 26px; }
.card h3 { font-size: 1.18rem; }
.card p { margin: 0; font-size: .96rem; }

/* ===== Approche ===== */
.approche-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 5vw, 4rem);
    align-items: center;
}
.approche-intro h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
.value-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.value-list li {
    background: var(--white);
    border-radius: var(--radius);
    padding: 1.4rem 1.5rem;
    box-shadow: var(--shadow-sm);
    border-left: 4px solid var(--primary);
}
.value-list h3 { font-size: 1.12rem; margin-bottom: .35rem; }
.value-list p { margin: 0; font-size: .95rem; }

/* ===== Steps ===== */
.steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.4rem;
    counter-reset: step;
}
.steps li {
    position: relative;
    padding: 1.6rem 1.4rem;
    border-radius: var(--radius);
    background: linear-gradient(160deg, var(--lavender-bg), #fff);
    border: 1px solid rgba(175, 169, 236, .4);
}
.step-num {
    font-family: "Poppins", sans-serif;
    font-weight: 800;
    font-size: 1.6rem;
    color: var(--accent);
    display: block;
    margin-bottom: .5rem;
}
.steps h3 { font-size: 1.12rem; margin-bottom: .3rem; }
.steps p { margin: 0; font-size: .92rem; }

/* ===== Contact ===== */
.section-contact {
    background: linear-gradient(165deg, var(--navy), var(--primary));
    color: #fff;
}
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 5vw, 4rem);
    align-items: start;
}
.contact-intro h2 { color: #fff; font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
.contact-intro p { color: rgba(255, 255, 255, .82); }
.contact-list { list-style: none; margin: 1.6rem 0 0; padding: 0; display: grid; gap: 1rem; }
.contact-list li { display: flex; align-items: center; gap: .9rem; color: #fff; }
.contact-list a { color: #fff; }
.contact-list a:hover { color: var(--lavender-mid); }
.ci {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, .12);
    color: #fff;
}
.ci svg { width: 22px; height: 22px; }

.contact-form {
    background: #fff;
    border-radius: var(--radius);
    padding: clamp(1.5rem, 3vw, 2.2rem);
    box-shadow: var(--shadow);
    display: grid;
    gap: 1rem;
}
.field { display: grid; gap: .35rem; }
.field label {
    font-family: "Poppins", sans-serif;
    font-weight: 500;
    font-size: .9rem;
    color: var(--navy);
}
.field .opt { color: var(--muted); font-weight: 400; }
.field input, .field textarea {
    font-family: inherit;
    font-size: 1rem;
    color: var(--ink);
    padding: .8rem 1rem;
    border: 1.5px solid var(--lavender-mid);
    border-radius: var(--radius-sm);
    background: #fdfdff;
    transition: border-color .2s ease, box-shadow .2s ease;
    resize: vertical;
}
.field input:focus, .field textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(83, 74, 183, .18);
}

/* Champ honeypot : invisible pour les humains, piège à bots */
.hp-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

/* Message de confirmation / erreur du formulaire */
.form-status {
    margin: 0;
    padding: .8rem 1rem;
    border-radius: var(--radius-sm);
    font-size: .95rem;
    font-weight: 500;
}
.form-status.is-ok {
    background: #e9f9ef;
    color: #1c7a44;
    border: 1px solid #b6e6c8;
}
.form-status.is-err {
    background: #fdecec;
    color: #b3261e;
    border: 1px solid #f5c2c0;
}

/* ===== Footer ===== */
.site-footer { background: var(--navy); color: rgba(255, 255, 255, .8); }
.footer-inner {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 2rem;
    padding-top: 3.2rem;
    padding-bottom: 2.4rem;
}
.footer-logo {
    height: 64px;
    width: auto;
    margin-bottom: 1rem;
}
.footer-brand p { color: rgba(255, 255, 255, .7); margin: 0; }
.footer-col h4 {
    color: #fff;
    font-size: 1rem;
    margin-bottom: 1rem;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.footer-col li { color: rgba(255, 255, 255, .75); font-size: .94rem; }
.footer-col a { color: rgba(255, 255, 255, .85); }
.footer-col a:hover { color: var(--lavender-mid); }
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, .12);
    padding: 1.2rem 0;
}
.footer-bottom p { margin: 0; font-size: .85rem; color: rgba(255, 255, 255, .6); }

/* ===== Back to top ===== */
.back-to-top {
    position: fixed;
    right: clamp(16px, 3vw, 32px);
    bottom: clamp(16px, 3vw, 32px);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 0;
    background: var(--primary);
    color: #fff;
    display: grid;
    place-items: center;
    cursor: pointer;
    z-index: 120;
    box-shadow: 0 12px 26px -10px rgba(83, 74, 183, .8);
    opacity: 0;
    visibility: hidden;
    transform: translateY(16px);
    transition: opacity .25s ease, transform .25s ease, background .2s ease, visibility .25s;
}
.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.back-to-top:hover {
    background: var(--navy);
    transform: translateY(-3px);
}
.back-to-top svg { width: 24px; height: 24px; }

/* ===== Responsive ===== */
@media (max-width: 900px) {
    .cards { grid-template-columns: repeat(2, 1fr); }
    .steps { grid-template-columns: repeat(2, 1fr); }
    .approche-grid, .contact-grid { grid-template-columns: 1fr; }
    .footer-inner { grid-template-columns: 1fr 1fr; }
    .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
    .nav-toggle { display: flex; }
    .primary-nav {
        position: fixed;
        inset: var(--header-h) 0 auto 0;
        background: #fff;
        border-bottom: 1px solid rgba(175, 169, 236, .4);
        box-shadow: var(--shadow);
        transform: translateY(-130%);
        transition: transform .3s ease;
    }
    .primary-nav.open { transform: translateY(0); }
    .primary-nav ul {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: .5rem 0;
    }
    .primary-nav li { border-bottom: 1px solid rgba(175, 169, 236, .25); }
    .primary-nav li:last-child { border-bottom: 0; }
    .primary-nav a { display: block; padding: .9rem 24px; }
    .nav-cta { border-radius: 0; margin: .4rem 24px; text-align: center; }
    .nav-toggle.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
    .nav-toggle.open span:nth-child(2) { opacity: 0; }
    .nav-toggle.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
}

@media (max-width: 520px) {
    .brand-logo { height: 42px; }
    .brand-banner { height: 21px; }
    .cards, .steps { grid-template-columns: 1fr; }
    .footer-inner { grid-template-columns: 1fr; }
    .hero-actions .btn { flex: 1 1 auto; }
}

@media (prefers-reduced-motion: reduce) {
    * { animation: none !important; scroll-behavior: auto !important; }
}
