/* =========================================================
   PRESUME — feuille de style
   Palette : vert #35B68F, dégradé #00AC85 → #00DAE5
   ========================================================= */

:root {
    --green: #35B68F;
    --green-dark: #1E8F6E;
    --teal: #00AC85;
    --cyan: #00DAE5;
    --blue: #0092D2;
    --ink: #1D2B36;
    --text: #3A4550;
    --muted: #6B7784;
    --line: #DDE7E4;
    --tint: #F3F9F7;
    --white: #FFFFFF;
    --gradient: linear-gradient(120deg, var(--teal) 0%, #04BFB4 55%, var(--cyan) 100%);
    --radius: 16px;
    --radius-sm: 10px;
    --shadow: 0 1px 2px rgba(20, 60, 50, .06), 0 8px 24px rgba(20, 60, 50, .07);
    --shadow-lg: 0 2px 4px rgba(20, 60, 50, .06), 0 18px 40px rgba(20, 60, 50, .12);
    --header-h: 72px;
    --font: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

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

img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.25; margin: 0 0 .5em; font-weight: 600; }
p { margin: 0 0 1em; }
a { color: var(--green-dark); }

.container { width: min(1180px, 100% - 32px); margin-inline: auto; }

.icon { width: 1.25em; height: 1.25em; flex: none; }

.skip {
    position: absolute; left: 16px; top: -60px; z-index: 100;
    background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px;
}
.skip:focus { top: 12px; }

:focus-visible { outline: 3px solid var(--cyan); outline-offset: 2px; }

/* ---------- Boutons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5em;
    padding: .85em 1.5em; border-radius: 999px; border: 2px solid transparent;
    font: 500 1rem/1.2 var(--font); text-decoration: none; cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease, color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn .icon { width: 1.1em; height: 1.1em; transition: transform .2s ease; }
.btn:hover .icon { transform: translateX(3px); }
.btn-primary { background: var(--gradient); color: #fff; box-shadow: 0 6px 18px rgba(0, 172, 133, .3); }
.btn-primary:hover { box-shadow: 0 10px 24px rgba(0, 172, 133, .38); }
.btn-light { background: #fff; color: var(--green-dark); }
.btn-ghost { border-color: rgba(255, 255, 255, .7); color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, .12); }
.btn-sm { padding: .55em 1.1em; font-size: .9rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .7; cursor: wait; transform: none; }

/* ---------- En-tête ---------- */
.site-header {
    position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h);
    display: flex; align-items: center;
    transition: background-color .3s ease, box-shadow .3s ease;
}
.site-header.is-scrolled { background: rgba(255, 255, 255, .95); backdrop-filter: blur(10px); box-shadow: 0 1px 0 var(--line); }
.header-inner { display: flex; align-items: center; gap: 24px; }

.brand {
    font-weight: 700; font-size: 1.4rem; letter-spacing: .02em; text-decoration: none; color: #fff;
    transition: color .3s ease;
}
.is-scrolled .brand { color: var(--green); }

.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav a:not(.btn) {
    color: rgba(255, 255, 255, .92); text-decoration: none; font-size: .92rem; font-weight: 500;
    padding: .45em .7em; border-radius: 8px; transition: color .2s, background-color .2s;
}
.nav a:not(.btn):hover { background: rgba(255, 255, 255, .15); }
.is-scrolled .nav a:not(.btn) { color: var(--text); }
.is-scrolled .nav a:not(.btn):hover { background: var(--tint); color: var(--green-dark); }
.nav a.is-active { background: rgba(255, 255, 255, .15); }
.is-scrolled .nav a.is-active { background: var(--tint); color: var(--green-dark); }
.nav-cta { margin-left: 8px; }

.header-tools { display: flex; align-items: center; gap: 8px; }
.lang-switch {
    display: inline-flex; border: 1.5px solid rgba(255, 255, 255, .6); border-radius: 999px; padding: 3px;
    text-decoration: none; font-size: .78rem; font-weight: 600;
}
.lang-switch span { padding: .25em .6em; border-radius: 999px; color: rgba(255, 255, 255, .85); }
.lang-switch span.on { background: #fff; color: var(--green-dark); }
.is-scrolled .lang-switch { border-color: var(--line); }
.is-scrolled .lang-switch span { color: var(--muted); }
.is-scrolled .lang-switch span.on { background: var(--green); color: #fff; }

.menu-toggle {
    display: none; background: none; border: 0; color: #fff; padding: 8px; cursor: pointer; border-radius: 8px;
}
.menu-toggle .icon { width: 26px; height: 26px; }
.menu-toggle .icon-close { display: none; }
.is-scrolled .menu-toggle, .menu-open .menu-toggle { color: var(--ink); }

/* ---------- Hero ---------- */
.hero {
    position: relative; color: #fff;
    min-height: min(92vh, 860px); display: flex; align-items: center;
    padding: calc(var(--header-h) + 48px) 0 72px;
    background: var(--gradient);
    background-image: url("../img/hero-bg.jpg"), var(--gradient);
    background-size: cover; background-position: center;
    overflow: hidden;
}
.hero-inner { position: relative; max-width: 900px; margin-inline: auto; text-align: center; }
.eyebrow {
    display: inline-block; font-size: .85rem; font-weight: 500; letter-spacing: .02em;
    background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .3);
    padding: .45em 1em; border-radius: 999px; margin-bottom: 28px;
}
.hero-title { display: flex; flex-direction: column; align-items: center; gap: 6px; color: #fff; margin-bottom: 32px; }
.hero-brand { font-size: clamp(2.8rem, 7.5vw, 5.4rem); font-weight: 600; letter-spacing: .01em; line-height: 1; }
.hero-acronym { max-width: 760px; text-wrap: balance; font-size: clamp(.85rem, 1.1vw, .95rem); font-style: italic; font-weight: 400; line-height: 1.5; letter-spacing: .02em; color: rgba(255, 255, 255, .95); }
.hero-lead { font-size: clamp(1.02rem, 1.6vw, 1.22rem); font-weight: 300; max-width: 720px; margin: 0 auto 36px; color: rgba(255, 255, 255, .95); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-bottom: 56px; }
.hero-facts {
    list-style: none; margin: 0; padding: 0;
    display: grid; grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid rgba(255, 255, 255, .3);
}
.hero-facts li { padding: 22px 12px 0; display: flex; flex-direction: column; }
.hero-facts li + li { border-left: 1px solid rgba(255, 255, 255, .3); }
.hero-facts strong { font-weight: 600; font-size: 1.05rem; }
.hero-facts span { font-size: .88rem; font-weight: 300; opacity: .9; }

/* ---------- Bandeau partenaires ---------- */
.trust { border-bottom: 1px solid var(--line); background: #fff; }
.trust-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 20px 32px; padding: 26px 0; }
.trust img { width: auto; height: 40px; object-fit: contain; }
.trust img.logo-chu { height: 60px; }
.trust-label { font-size: .8rem; font-weight: 500; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.trust-sep { width: 1px; height: 40px; background: var(--line); }

/* ---------- Sections ---------- */
.section { padding: clamp(72px, 10vw, 120px) 0; }
.section-tint { background: var(--tint); }
.section-head { text-align: center; max-width: 820px; margin: 0 auto clamp(40px, 6vw, 64px); }
.section-head-left { text-align: left; margin: 0; }
.section-head h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); letter-spacing: -.015em; }
.kicker {
    display: inline-block; font-size: .8rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
    color: var(--green-dark); margin-bottom: 14px;
}
.kicker-light { color: rgba(255, 255, 255, .9); }
.section-lead { font-size: 1.08rem; color: var(--muted); margin-top: 1em; }
.highlight { color: var(--green-dark); font-weight: 500; font-size: 1.15rem; }
.note { text-align: center; color: var(--muted); font-size: .85rem; margin-top: 28px; font-style: italic; }

/* ---------- Données ---------- */
.data-layout { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(40px, 6vw, 80px); align-items: center; }
.data-diagram { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: center; }
.data-col { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.data-col-main { border: 2px solid var(--green); box-shadow: var(--shadow-lg); }
.data-col h3 { font-size: 1rem; margin-bottom: 14px; }
.data-col-main h3 { color: var(--green-dark); }
.data-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: .9rem; }
.data-col li { display: flex; gap: 8px; align-items: flex-start; line-height: 1.4; }
.data-col li .icon { color: var(--green); width: 1.1em; height: 1.1em; margin-top: .1em; }

/* ---------- Solution ---------- */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.feature {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px 26px;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.feature-icon {
    display: inline-flex; width: 56px; height: 56px; border-radius: 14px; align-items: center; justify-content: center;
    background: linear-gradient(135deg, rgba(0, 172, 133, .12), rgba(0, 218, 229, .16)); color: #07A8A0; margin-bottom: 22px;
}
.feature-icon .icon { width: 28px; height: 28px; }
.feature h3 { font-size: 1.08rem; }
.feature p { margin: 0; font-size: .95rem; color: var(--muted); }

/* ---------- Fonctionnement ---------- */
.tech { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.tech-card { display: flex; gap: 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.tech-icon {
    flex: none; width: 44px; height: 44px; border-radius: 12px; background: var(--ink); color: #fff;
    display: flex; align-items: center; justify-content: center;
}
.tech-card h3 { font-size: 1rem; margin-bottom: .3em; }
.tech-card p { margin: 0; font-size: .9rem; color: var(--muted); }

/* ---------- Mention réglementaire ---------- */
.disclaimer {
    display: flex; gap: 12px; align-items: flex-start; max-width: 820px; margin: 40px auto 0;
    padding: 16px 20px; border-radius: var(--radius-sm); background: var(--tint); border: 1px solid var(--line);
    font-size: .88rem; color: var(--muted); line-height: 1.55;
}
.disclaimer .icon { color: var(--green); margin-top: .1em; }

/* ---------- Équipe ---------- */
.team { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.team-group { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 20px 36px; }
.team-group-title { text-align: center; font-size: .8rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--green-dark); margin-bottom: 28px; }
.team-group--advisors { background: rgba(53, 182, 143, .07); border-color: rgba(53, 182, 143, .25); }
.team-group--advisors .member img { box-shadow: 0 0 0 2px rgba(53, 182, 143, .45), var(--shadow); }
.team-members { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.member { text-align: center; }
.member h4 { font-size: 1.1rem; margin-bottom: .25em; }
.member img {
    width: 160px; height: 160px; border-radius: 50%; object-fit: cover; margin: 0 auto 20px;
    border: 4px solid #fff; box-shadow: 0 0 0 2px var(--green), var(--shadow);
}
.member-role { margin: 0; font-size: .92rem; }
.member-org { margin: 0; font-size: .85rem; color: var(--muted); }

/* ---------- Contact ---------- */
.contact {
    color: #fff;
    background: var(--gradient);
    background-image: url("../img/contact-bg.jpg"), var(--gradient);
    background-size: cover; background-position: center;
}
.contact-inner { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(40px, 6vw, 80px); align-items: center; }
.contact h2 { color: #fff; font-size: clamp(1.6rem, 3.2vw, 2.4rem); }
.contact-intro p { font-weight: 300; font-size: 1.08rem; color: rgba(255, 255, 255, .95); }
.contact-details { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 18px; }
.contact-details li { display: flex; gap: 12px; align-items: flex-start; }
.contact-details .icon { margin-top: .2em; }
.contact-details address { font-style: normal; line-height: 1.6; }
.contact-details a { color: #fff; font-weight: 500; text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, .5); }
.contact-details a:hover { border-bottom-color: #fff; }
.contact-details address a { font-weight: 400; font-size: .9rem; }
.contact-form { background: #fff; color: var(--text); border-radius: 20px; padding: clamp(24px, 4vw, 40px); box-shadow: 0 24px 60px rgba(0, 60, 50, .25); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: .85rem; font-weight: 500; color: var(--ink); margin-bottom: 6px; }
.field input, .field select, .field textarea {
    width: 100%; font: 400 .95rem/1.4 var(--font); color: var(--ink);
    padding: .75em .9em; border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: #FBFDFC;
    transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 4px rgba(53, 182, 143, .15); }
.field.has-error input, .field.has-error textarea { border-color: #D94E2E; }
.field-error { display: block; color: #C0392B; font-size: .8rem; margin-top: 4px; }
.field-check { display: flex; gap: 10px; align-items: flex-start; flex-wrap: wrap; }
.field-check input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--green); flex: none; }
.field-check label { flex: 1; font-weight: 400; font-size: .85rem; color: var(--muted); margin: 0; }
.field-check .field-error { flex-basis: 100%; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status:empty { display: none; }
.form-status { padding: 12px 16px; border-radius: var(--radius-sm); margin-bottom: 18px; font-size: .92rem; font-weight: 500; }
.form-status.is-success { background: #E3F6EF; color: var(--green-dark); }
.form-status.is-error { background: #FDECEA; color: #B03A2E; }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--ink); color: rgba(255, 255, 255, .7); padding: 40px 0; font-size: .9rem; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 16px 40px; justify-content: space-between; align-items: center; }
.site-footer p { margin: 0 0 4px; }
.site-footer a:not(.brand) { color: #fff; }
.site-footer address { font-style: normal; margin-bottom: 4px; }
.footer-meta { text-align: right; }
.trust-link { display: inline-flex; border-radius: 6px; transition: opacity .2s; }
.trust-link:hover { opacity: .75; }
.footer-disclaimer { margin: 28px 0 0 !important; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: .8rem; opacity: .75; }
.brand-footer { color: #fff; font-size: 1.25rem; display: inline-block; margin-bottom: 4px; }

/* ---------- Animations d'apparition ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
    .nav a:not(.btn) { padding: .45em .5em; font-size: .86rem; }
    .features { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 1024px) {
    .menu-toggle { display: inline-flex; }
    .nav {
        position: fixed; inset: var(--header-h) 0 auto; flex-direction: column; align-items: stretch; gap: 0;
        background: #fff; padding: 12px 16px 24px; box-shadow: 0 16px 30px rgba(0, 0, 0, .1);
        transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .2s, transform .2s, visibility .2s;
    }
    .menu-open .nav { transform: none; opacity: 1; visibility: visible; }
    .nav a:not(.btn) { color: var(--text) !important; padding: 14px 8px; font-size: 1rem; border-bottom: 1px solid var(--line); border-radius: 0; }
    .nav-cta { margin: 16px 0 0; }
    .menu-open .site-header { background: #fff; }
    .menu-open .brand { color: var(--green); }
    .menu-open .menu-toggle .icon-open { display: none; }
    .menu-open .menu-toggle .icon-close { display: block; }
    .menu-open .lang-switch { border-color: var(--line); }
    .menu-open .lang-switch span { color: var(--muted); }
    .menu-open .lang-switch span.on { background: var(--green); color: #fff; }
    .header-tools { margin-left: auto; }

    .section-head-left { text-align: center; max-width: 820px; margin: 0 auto; }
    .tech { grid-template-columns: 1fr; }
    .team { grid-template-columns: 1fr; max-width: 640px; margin-inline: auto; }
    .contact-inner, .data-layout { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 720px) {
    .hero { min-height: auto; }
    .hero-facts { grid-template-columns: 1fr; border-top: 0; }
    .hero-facts li { padding: 14px 0; border-top: 1px solid rgba(255, 255, 255, .3); }
    .hero-facts li + li { border-left: 0; }
    .trust-sep { display: none; }
    .data-diagram { grid-template-columns: 1fr; }
    .data-col { width: 100%; }
    .features { grid-template-columns: 1fr; }
    .footer-meta { text-align: left; }
    .team-members { gap: 24px 12px; }
    .member img { width: 120px; height: 120px; }
    .field-row { grid-template-columns: 1fr; gap: 0; }
}
