/* =====================================================================
   OD-1 — Feuille de style du site (refonte 2025)
   Palette : bleu foncé / orange accent / gris clair
   ===================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Poppins:wght@500;600;700;800&display=swap');

/* ---------------------------------------------------------------------
   Design tokens
--------------------------------------------------------------------- */
:root {
    --navy:        #16365b;
    --navy-700:    #1e486f;
    --navy-900:    #0e2742;

    --orange:      #f07c1e;
    --orange-600:  #e06c0c;
    --orange-soft: #fff2e6;

    --grey-bg:     #f5f7fa;
    --grey-100:    #eef2f7;
    --grey-200:    #e3e9f0;
    --border:      #e2e8f0;

    --text:        #3b4a59;
    --text-muted:  #6b7986;
    --white:       #ffffff;

    --maxw: 1140px;
    --radius: 14px;
    --radius-sm: 10px;
    --shadow-sm: 0 1px 2px rgba(16, 39, 66, .06), 0 4px 14px rgba(16, 39, 66, .06);
    --shadow-md: 0 10px 30px rgba(16, 39, 66, .10);
    --shadow-lg: 0 24px 60px rgba(16, 39, 66, .16);

    --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --font-head: 'Poppins', var(--font-body);

    --ease: cubic-bezier(.4, 0, .2, 1);
}

/* ---------------------------------------------------------------------
   Reset / base
--------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.65;
    color: var(--text);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
}

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

/* Inline SVG icons (sprite) inherit stroke/fill from this base class */
svg.icon {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
    color: inherit;
}

a { color: var(--orange-600); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--orange); }

h1, h2, h3, h4 {
    font-family: var(--font-head);
    color: var(--navy);
    line-height: 1.18;
    margin: 0 0 .5em;
    letter-spacing: -.01em;
}

h1 { font-size: clamp(2rem, 4.4vw, 3.1rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 700; }
h3 { font-size: 1.3rem; font-weight: 600; }
h4 { font-size: 1.05rem; font-weight: 600; }
p  { margin: 0 0 1rem; }

ul { margin: 0; padding: 0; }

::selection { background: var(--orange); color: #fff; }

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

.section { padding: clamp(56px, 8vw, 110px) 0; }
.section--grey { background: var(--grey-bg); }
.section--navy { background: var(--navy); color: #d6e0ec; }
.section--navy h2, .section--navy h3 { color: #fff; }

.section-head { max-width: 760px; margin: 0 auto 52px; text-align: center; }
.section-head.left { text-align: left; margin-left: 0; }

.eyebrow {
    display: inline-block;
    font-family: var(--font-head);
    font-weight: 600;
    font-size: .8rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--orange-600);
    margin-bottom: 14px;
}
.section--navy .eyebrow { color: var(--orange); }

.lead { font-size: 1.18rem; color: var(--text-muted); }

/* ---------------------------------------------------------------------
   Buttons
--------------------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 1rem;
    line-height: 1;
    padding: 15px 28px;
    border-radius: 999px;
    border: 1.5px solid transparent;
    cursor: pointer;
    transition: transform .18s var(--ease), box-shadow .18s var(--ease), background .18s var(--ease), color .18s var(--ease);
    white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }

.btn--primary {
    background: var(--orange);
    color: #fff;
    box-shadow: 0 8px 20px rgba(240, 124, 30, .32);
}
.btn--primary:hover { background: var(--orange-600); color: #fff; transform: translateY(-2px); box-shadow: 0 12px 26px rgba(240, 124, 30, .40); }

.btn--ghost {
    background: transparent;
    color: var(--navy);
    border-color: var(--grey-200);
}
.btn--ghost:hover { border-color: var(--navy); color: var(--navy); transform: translateY(-2px); }

.btn--light {
    background: #fff;
    color: var(--navy);
}
.btn--light:hover { color: var(--navy); transform: translateY(-2px); box-shadow: var(--shadow-md); }

.btn--ghost-light {
    background: transparent;
    color: #fff;
    border-color: rgba(255, 255, 255, .35);
}
.btn--ghost-light:hover { color: #fff; border-color: #fff; transform: translateY(-2px); }

/* ---------------------------------------------------------------------
   Header / navigation
--------------------------------------------------------------------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, .88);
    backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid var(--border);
}
.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 74px;
}
.nav__brand { display: flex; align-items: center; gap: 10px; }
.nav__brand img { height: 50px; width: auto; transition: transform .2s var(--ease); }
.nav__brand:hover img { transform: translateY(-1px); }

.nav__menu {
    display: flex;
    align-items: center;
    gap: 8px;
}
.nav__links {
    display: flex;
    align-items: center;
    gap: 6px;
    list-style: none;
}
.nav__links a {
    display: block;
    font-family: var(--font-head);
    font-weight: 500;
    font-size: .97rem;
    color: var(--navy);
    padding: 10px 16px;
    border-radius: 999px;
    transition: background .2s var(--ease), color .2s var(--ease);
}
.nav__links a:hover { background: var(--grey-100); color: var(--navy); }
.nav__links a.active { color: var(--orange-600); }

.nav__cta { margin-left: 10px; }
.nav__cta .btn { padding: 11px 22px; font-size: .95rem; }

.nav__toggle {
    display: none;
    background: none;
    border: 0;
    width: 44px; height: 44px;
    cursor: pointer;
    padding: 10px;
}
.nav__toggle span {
    display: block;
    height: 2px;
    background: var(--navy);
    border-radius: 2px;
    transition: transform .25s var(--ease), opacity .25s var(--ease);
}
.nav__toggle span + span { margin-top: 6px; }
.nav.open .nav__toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav.open .nav__toggle span:nth-child(2) { opacity: 0; }
.nav.open .nav__toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 880px) {
    .nav__toggle { display: block; }
    .nav__menu {
        position: fixed;
        inset: 74px 0 auto 0;
        background: #fff;
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow-md);
        display: flex;
        flex-direction: column;
        gap: 0;
        padding: 14px 24px 24px;
        transform: translateY(-14px);
        opacity: 0;
        pointer-events: none;
        transition: transform .25s var(--ease), opacity .25s var(--ease);
    }
    .nav.open .nav__menu { transform: translateY(0); opacity: 1; pointer-events: auto; }
    .nav__links { flex-direction: column; align-items: stretch; gap: 2px; }
    .nav__links a { padding: 14px 14px; border-radius: var(--radius-sm); font-size: 1.05rem; }
    .nav__cta { margin: 12px 0 0; }
    .nav__cta .btn { width: 100%; justify-content: center; padding: 15px; }
}

/* ---------------------------------------------------------------------
   Hero
--------------------------------------------------------------------- */
.hero {
    position: relative;
    color: #fff;
    overflow: hidden;
    background: var(--navy);
}
.hero__bg {
    position: absolute;
    inset: 0;
    object-fit: cover;
    width: 100%; height: 100%;
    z-index: 0;
}
.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(115deg, rgba(10, 28, 48, .92) 0%, rgba(14, 39, 66, .82) 45%, rgba(14, 39, 66, .45) 100%);
    z-index: 1;
}
.hero__inner {
    position: relative;
    z-index: 2;
    padding: clamp(70px, 11vw, 140px) 0;
    max-width: 760px;
}
.hero h1 { color: #fff; margin-bottom: 22px; }
.hero p { color: #e3ebf4; font-size: 1.2rem; max-width: 620px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

.hero .eyebrow { color: var(--orange); }

/* compact hero for inner pages */
.hero--page .hero__inner { padding: clamp(64px, 9vw, 112px) 0; }

/* ---------------------------------------------------------------------
   Generic prose / intro blocks
--------------------------------------------------------------------- */
.prose p { margin-bottom: 1.15rem; }
.prose p:last-child { margin-bottom: 0; }

.split {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: clamp(32px, 5vw, 72px);
    align-items: center;
}
.split--reverse .split__media { order: -1; }
.split__media img {
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    width: 100%;
    object-fit: cover;
}
@media (max-width: 820px) {
    .split { grid-template-columns: 1fr; }
    .split--reverse .split__media { order: 0; }
}

/* ---------------------------------------------------------------------
   Application cards (home)
--------------------------------------------------------------------- */
.app-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
}
@media (max-width: 760px) { .app-grid { grid-template-columns: 1fr; } }

.app-card {
    position: relative;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 38px 34px;
    box-shadow: var(--shadow-sm);
    transition: transform .22s var(--ease), box-shadow .22s var(--ease), border-color .22s var(--ease);
    display: flex;
    flex-direction: column;
}
.app-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--grey-200); }
.app-card__icon {
    width: 58px; height: 58px;
    border-radius: 14px;
    background: var(--orange-soft);
    display: grid; place-items: center;
    margin-bottom: 22px;
}
.app-card__icon svg { width: 30px; height: 30px; }
.app-card h3 { font-size: 1.5rem; font-weight: 700; margin-bottom: 4px; }
.app-card .app-card__tag { color: var(--orange-600); font-weight: 600; font-family: var(--font-head); margin-bottom: 14px; display: block; }
.app-card p { color: var(--text-muted); flex: 1; }
.app-card .app-card__link {
    margin-top: 22px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-head);
    font-weight: 600;
    color: var(--navy);
}
.app-card .app-card__link svg { width: 18px; height: 18px; transition: transform .2s var(--ease); }
.app-card:hover .app-card__link svg { transform: translateX(4px); }
.app-card .app-card__link:hover { color: var(--orange-600); }

/* ---------------------------------------------------------------------
   Feature / icon rows (Ce que permet…)
--------------------------------------------------------------------- */
.feature-list { display: grid; gap: 30px; }
.feature {
    display: grid;
    grid-template-columns: 64px 1fr;
    gap: 22px;
    align-items: start;
}
.feature__icon {
    width: 64px; height: 64px;
    border-radius: 16px;
    background: var(--white);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    display: grid; place-items: center;
}
.feature__icon svg { width: 32px; height: 32px; }
.feature h3 { font-size: 1.18rem; margin-bottom: 6px; }
.feature p { color: var(--text-muted); margin: 0; }

/* ---------------------------------------------------------------------
   Benefits (numbered)
--------------------------------------------------------------------- */
.benefits {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
}
@media (max-width: 860px) { .benefits { grid-template-columns: 1fr; } }

.benefit {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px 30px;
    box-shadow: var(--shadow-sm);
    transition: transform .22s var(--ease), box-shadow .22s var(--ease);
}
.benefit:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.benefit__icon {
    width: 52px; height: 52px;
    border-radius: 13px;
    background: var(--navy);
    display: grid; place-items: center;
    margin-bottom: 20px;
}
.benefit__icon svg { width: 27px; height: 27px; color: #fff; }
.benefit__num {
    font-family: var(--font-head);
    font-weight: 700;
    color: var(--orange);
    font-size: .85rem;
    letter-spacing: .08em;
    display: block;
    margin-bottom: 6px;
}
.benefit h3 { font-size: 1.2rem; margin-bottom: 8px; }
.benefit p { color: var(--text-muted); margin: 0; font-size: .98rem; }

/* benefits on navy section */
.section--navy .benefit { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.12); }
.section--navy .benefit p { color: #c2d0e0; }
.section--navy .benefit__icon { background: var(--orange); }

/* ---------------------------------------------------------------------
   Audience chips ("Pour qui ?")
--------------------------------------------------------------------- */
.chips { display: flex; flex-wrap: wrap; gap: 12px; }
.chip {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 11px 20px;
    font-weight: 500;
    color: var(--navy);
    box-shadow: var(--shadow-sm);
}
.chip svg { width: 18px; height: 18px; color: var(--orange); flex: none; }

/* ---------------------------------------------------------------------
   Use-case callout
--------------------------------------------------------------------- */
.callout {
    background: var(--white);
    border: 1px solid var(--border);
    border-left: 4px solid var(--orange);
    border-radius: var(--radius);
    padding: 36px 40px;
    box-shadow: var(--shadow-sm);
}
.callout h3 { margin-bottom: 14px; }
.callout p:last-child { margin-bottom: 0; }

/* ---------------------------------------------------------------------
   CTA band
--------------------------------------------------------------------- */
.cta-band {
    position: relative;
    overflow: hidden;
    background: linear-gradient(120deg, var(--navy-900), var(--navy));
    border-radius: clamp(18px, 3vw, 28px);
    padding: clamp(44px, 6vw, 72px);
    text-align: center;
    color: #fff;
}
.cta-band::before {
    content: "";
    position: absolute;
    width: 420px; height: 420px;
    right: -120px; top: -160px;
    background: radial-gradient(circle, rgba(240,124,30,.35), transparent 65%);
    z-index: 0;
}
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { color: #fff; margin-bottom: 12px; }
.cta-band p { color: #cdd9e6; max-width: 620px; margin: 0 auto 28px; font-size: 1.12rem; }
.cta-band .hero__actions { justify-content: center; }

/* ---------------------------------------------------------------------
   Contact
--------------------------------------------------------------------- */
.contact-grid {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 40px;
    align-items: stretch;
}
@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 44px 40px;
    box-shadow: var(--shadow-md);
}
.contact-card__icon {
    width: 64px; height: 64px;
    border-radius: 16px;
    background: var(--orange-soft);
    display: grid; place-items: center;
    margin-bottom: 24px;
}
.contact-card__icon svg { width: 32px; height: 32px; color: var(--orange-600); }
.contact-mail {
    display: inline-block;
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 1.25rem;
    color: var(--navy);
    margin: 6px 0 26px;
}
.contact-aside {
    background: var(--navy);
    color: #cdd9e6;
    border-radius: var(--radius);
    padding: 44px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.contact-aside h3 { color: #fff; }
.contact-aside p { margin-bottom: 0; }
.contact-aside ul { margin-top: 18px; display: grid; gap: 12px; }
.contact-aside li { display: flex; gap: 12px; align-items: flex-start; }
.contact-aside li svg { width: 20px; height: 20px; color: var(--orange); flex: none; margin-top: 3px; }

/* ---------------------------------------------------------------------
   Legal page
--------------------------------------------------------------------- */
.legal { max-width: 760px; }
.legal h2 { font-size: 1.25rem; margin: 38px 0 8px; padding-top: 26px; border-top: 1px solid var(--border); color: var(--navy); }
.legal h2:first-of-type { border-top: 0; padding-top: 0; margin-top: 0; }
.legal address { font-style: normal; color: var(--text); line-height: 1.8; }

/* ---------------------------------------------------------------------
   Footer
--------------------------------------------------------------------- */
.site-footer {
    background: var(--navy-900);
    color: #aebccd;
    padding: 64px 0 28px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
    gap: 40px;
}
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-brand img { height: 52px; margin-bottom: 16px; }
.footer-brand p { color: #8da0b5; max-width: 320px; font-size: .96rem; }
.footer-col h4 { color: #fff; font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 16px; }
.footer-col ul { display: grid; gap: 10px; list-style: none; }
.footer-col a { color: #aebccd; font-size: .98rem; }
.footer-col a:hover { color: var(--orange); }
.footer-bottom {
    margin-top: 48px;
    padding-top: 22px;
    border-top: 1px solid rgba(255,255,255,.1);
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    font-size: .9rem;
    color: #8da0b5;
}
.footer-bottom a { color: #8da0b5; }
.footer-bottom a:hover { color: var(--orange); }

/* ---------------------------------------------------------------------
   Reveal-on-scroll
--------------------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
    html { scroll-behavior: auto; }
}

/* ---------------------------------------------------------------------
   Utilities
--------------------------------------------------------------------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.stack-lg > * + * { margin-top: 22px; }
.visually-hidden {
    position: absolute; width: 1px; height: 1px;
    padding: 0; margin: -1px; overflow: hidden;
    clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
