/* =========================================================
   CREDIR Solutions : charte bleue / orange
   ========================================================= */
:root {
    --ink: #085388;
    --ink-deep: #05395f;
    --aqua: #82b9d6;
    --mint: #fff4e5;
    --orange: #f08a00;
    --orange-deep: #c46f00;
    --paper: #f7f4ef;
    --white: #fff;
    --text: #1d3a4d;
    --muted: #55707c;
    --line: rgba(8, 83, 136, .16);
    --green: #3daf4a;
    --plum: #673154;
    --shadow: 0 24px 80px rgba(5, 57, 95, .14);
    --font-head: "Manrope", "DM Sans", sans-serif;
    --font-body: "DM Sans", sans-serif;
    --font-serif: "Source Serif 4", serif;
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 110px; }
body {
    margin: 0;
    color: var(--text);
    background: var(--paper);
    font: 400 16px/1.65 var(--font-body);
    -webkit-font-smoothing: antialiased;
}
body.is-menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4, p, ul, ol, blockquote, figure { margin: 0; }
.container { width: min(1180px, calc(100% - 48px)); margin-inline: auto; }
.sr-only, .skip-link {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link:focus { z-index: 1000; width: auto; height: auto; clip: auto; margin: 12px; padding: 12px 18px; background: white; color: var(--ink-deep); }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Boutons ---------- */
.button {
    display: inline-flex; min-height: 52px; align-items: center; justify-content: center; gap: 10px;
    padding: 0 26px; border: 1px solid transparent; border-radius: 999px; cursor: pointer;
    font: 700 14px/1.2 var(--font-body); text-align: center; transition: transform .2s, background .2s, border-color .2s;
}
.button:hover { transform: translateY(-2px); }
.button-primary { color: var(--ink-deep); background: var(--orange); }
.button-primary:hover { background: #ffa21f; }
.button-ghost { color: inherit; border-color: currentColor; background: transparent; }
.button-dark { color: white; background: var(--ink); }
.button-dark:hover { background: var(--ink-deep); }
.button-row { display: flex; flex-wrap: wrap; gap: 12px; }
.text-link { display: inline-flex; gap: 10px; padding-bottom: 4px; border-bottom: 1px solid currentColor; font-weight: 700; }

/* ---------- En-tête ---------- */
.site-header {
    position: fixed; z-index: 100; inset: 0 0 auto;
    color: white; transition: background .3s, color .3s, box-shadow .3s;
}
.site-header.is-scrolled, .site-header.is-menu-open {
    color: var(--ink); background: rgba(247, 244, 239, .97);
    box-shadow: 0 8px 40px rgba(9, 38, 44, .08); backdrop-filter: blur(14px);
}
.header-inner { height: 88px; display: flex; align-items: center; gap: 32px; }
.brand { width: 150px; margin-right: auto; flex: none; }
.brand img { width: 100%; max-height: 62px; object-fit: contain; object-position: left center; }
.main-nav { display: flex; align-items: center; gap: 28px; font-size: 14px; font-weight: 600; }
.main-nav > a, .nav-group > a, .nav-parent {
    position: relative; display: inline-flex; align-items: center; gap: 6px; padding: 34px 0;
    border: 0; background: none; color: inherit; font: inherit; cursor: pointer;
}
.nav-parent::after { content: ""; width: 6px; height: 6px; margin-top: -3px; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.main-nav > a::before, .nav-group > a::before, .nav-parent::before {
    content: ""; position: absolute; left: 0; right: 100%; bottom: 26px; height: 2px;
    background: var(--orange); transition: right .25s;
}
.main-nav > a:hover::before, .nav-group:hover > a::before, .nav-group:hover > .nav-parent::before, .main-nav .is-active::before { right: 0; }
.nav-group { position: relative; }
.dropdown {
    position: absolute; top: 76px; left: -20px; min-width: 260px; padding: 10px;
    opacity: 0; visibility: hidden; transform: translateY(8px);
    background: white; color: var(--ink); border-radius: 14px; box-shadow: var(--shadow); transition: .2s;
}
.nav-group:hover .dropdown, .nav-group:focus-within .dropdown, .nav-group.is-open .dropdown { opacity: 1; visibility: visible; transform: none; }
.dropdown a { display: block; padding: 11px 14px; border-radius: 8px; font-size: 14px; }
.dropdown a:hover, .dropdown a.is-active { background: var(--mint); }
.header-actions { display: flex; align-items: center; gap: 16px; }
.header-cta {
    display: inline-flex; align-items: center; min-height: 46px; padding: 0 22px; border-radius: 999px;
    color: var(--ink-deep); background: var(--orange); font-size: 14px; font-weight: 700; white-space: nowrap; transition: background .2s;
}
.header-cta:hover { background: #ffa21f; }
.nav-mobile-cta, .main-nav > a.nav-mobile-cta { display: none; }
.menu-toggle { display: none; align-items: center; gap: 10px; border: 0; color: inherit; background: transparent; cursor: pointer; font-weight: 600; }

/* ---------- Bandeau d'ouverture ---------- */
.hero { position: relative; overflow: hidden; padding: 168px 0 88px; color: white; background: var(--ink-deep); }
.hero-media, .hero-shade { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-shade { background: linear-gradient(90deg, rgba(5, 57, 95, .95), rgba(5, 57, 95, .72) 55%, rgba(5, 57, 95, .3)); }
.hero-inner { position: relative; max-width: 880px; }
.eyebrow { display: block; margin-bottom: 22px; color: var(--orange); font: 700 12px/1.2 var(--font-head); letter-spacing: .2em; text-transform: uppercase; }
.eyebrow.dark, .section-light .eyebrow { color: var(--orange-deep); }
.hero h1 { font: 600 clamp(38px, 5.4vw, 70px)/1.04 var(--font-head); letter-spacing: -.045em; }
h1 i, h2 i, .hero h1 em { color: var(--orange); font: 400 1em/1 var(--font-serif); font-style: italic; letter-spacing: -.02em; }
.hero-lead { max-width: 720px; margin-top: 28px; color: rgba(255, 255, 255, .84); font-size: 19px; line-height: 1.7; }
.hero-lead p + p { margin-top: 14px; }
.hero .button-row { margin-top: 36px; }
.hero-large { display: flex; align-items: center; min-height: min(92vh, 820px); padding-bottom: 110px; }
.hero-large h1 { font-size: clamp(42px, 6.6vw, 88px); line-height: 1; }
.hero-large::before, .hero-large::after { content: ""; position: absolute; border-radius: 50%; pointer-events: none; }
.hero-large::before { width: 620px; height: 620px; right: -160px; top: 50%; margin-top: -310px; border: 1px solid rgba(130, 185, 214, .3); }
.hero-large::after { width: 420px; height: 420px; right: -60px; top: 50%; margin-top: -210px; background: radial-gradient(circle, rgba(240, 138, 0, .28), transparent 68%); }
.hero-large .hero-inner { z-index: 1; }
.hero-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.hero-chips span { padding: 7px 14px; border: 1px solid rgba(255, 255, 255, .3); border-radius: 999px; font-size: 13px; font-weight: 600; }

/* Mouvement du bandeau, dans l'esprit du site Accompagnement */
@keyframes heroFadeUp {
    from { opacity: 0; transform: translateY(28px); }
    to { opacity: 1; transform: none; }
}
@keyframes heroShadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes heroKen { from { transform: scale(1.12); } to { transform: scale(1); } }
@keyframes heroKenHome {
    0%, 100% { transform: scale(1.12) translate3d(1.2%, 0, 0); }
    46% { transform: scale(1.04) translate3d(-1.1%, -.7%, 0); }
}
@keyframes heroLine { from { width: 0; } to { width: 36px; } }
@keyframes heroOrb {
    0%, 100% { transform: translate3d(0, 0, 0) scale(.94); }
    50% { transform: translate3d(-28px, 18px, 0) scale(1.06); }
}
@keyframes heroOrbSoft {
    0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
    50% { transform: translate3d(16px, -22px, 0) scale(1.1); }
}
@keyframes heroScrollHint {
    0%, 100% { transform: translateY(0); opacity: .65; }
    50% { transform: translateY(8px); opacity: 1; }
}
.hero-media { overflow: hidden; }
.hero-media img { animation: heroKen 8s var(--ease-out) both; }
.hero-large .hero-media img { animation: heroKenHome 22s ease-in-out infinite; }
.hero-shade { animation: heroShadeIn 1.4s var(--ease-out) both; }
.hero .eyebrow { display: inline-flex; align-items: center; gap: 14px; }
.hero .eyebrow::before {
    content: ""; flex: none; width: 36px; height: 1px; background: currentColor;
    animation: heroLine .9s var(--ease-out) .4s both;
}
.hero .eyebrow, .hero h1, .hero-lead, .hero .button-row, .hero-chips span { animation: heroFadeUp 1s var(--ease-out) both; }
.hero .eyebrow { animation-delay: .12s; }
.hero h1 { animation-delay: .28s; }
.hero-lead { animation-delay: .46s; }
.hero-chips span { animation-delay: .84s; }
.hero-chips span:nth-child(1) { animation-delay: .58s; }
.hero-chips span:nth-child(2) { animation-delay: .68s; }
.hero-chips span:nth-child(3) { animation-delay: .78s; }
.hero .button-row { animation-delay: .9s; }
.hero-large::before { animation: heroOrb 16s ease-in-out infinite; }
.hero-large::after { animation: heroOrbSoft 13s ease-in-out -4s infinite; }
.hero-orb {
    position: absolute; z-index: 0; width: 240px; height: 240px; right: -20px; bottom: 6%;
    border-radius: 50%; pointer-events: none;
    background: radial-gradient(circle, rgba(240, 138, 0, .28), transparent 68%);
    animation: heroOrb 11s ease-in-out -2s infinite;
}
.hero-scroll {
    position: absolute; left: 50%; bottom: 28px; z-index: 2; translate: -50% 0;
    display: inline-flex; flex-direction: column; align-items: center; gap: 8px;
    color: rgba(255, 255, 255, .78); font: 700 12px/1 var(--font-head); letter-spacing: .16em; text-transform: uppercase;
    animation: heroShadeIn 1s var(--ease-out) 1.05s both;
}
.hero-scroll span {
    display: grid; place-items: center; width: 34px; height: 34px;
    border: 1px solid rgba(255, 255, 255, .35); border-radius: 50%; font-size: 16px; letter-spacing: 0;
    animation: heroScrollHint 1.8s ease-in-out infinite;
}

/* ---------- Bandeau de confiance ---------- */
.trust-band { padding: 28px 0; background: white; border-bottom: 1px solid var(--line); }
.trust-list { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 36px; padding: 0; margin: 0; list-style: none; }
.trust-list li { display: flex; align-items: center; gap: 12px; font: 600 15px/1.3 var(--font-head); color: var(--ink); }
.trust-list li::before { content: "✓"; display: grid; place-items: center; flex: none; width: 26px; height: 26px; border-radius: 50%; color: white; background: var(--orange); font-size: 14px; }
.trust-list li.has-logo::before { display: none; }
.trust-list img { width: auto; height: 46px; }
.trust-logos { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 26px 44px; margin-top: 26px; padding-top: 24px; border-top: 1px solid var(--line); }
.trust-logos img { width: auto; max-width: 150px; height: 40px; object-fit: contain; filter: grayscale(1); opacity: .75; transition: .2s; }
.trust-logos img:hover { filter: none; opacity: 1; }

/* ---------- Sections ---------- */
.section { padding: 100px 0; }
.section-soft { background: white; }
.section-dark { color: white; background: var(--ink-deep); }
.section-accent { color: var(--ink-deep); background: var(--orange); }
.section-head { max-width: 780px; margin-bottom: 52px; }
.section-head h2, .section h2 { font: 600 clamp(30px, 3.6vw, 48px)/1.1 var(--font-head); letter-spacing: -.04em; color: var(--ink); }
.section-dark h2, .section-dark .eyebrow + h2 { color: white; }
.section-accent h2 { color: var(--ink-deep); }
.section-dark h2 i { color: var(--orange); }
.section-accent h2 i { color: var(--ink-deep); }
.section-lead { margin-top: 20px; color: var(--muted); font-size: 18px; }
.section-dark .section-lead { color: rgba(255, 255, 255, .78); }
.section-accent .section-lead { color: var(--ink-deep); }
.section-dark .eyebrow { color: var(--orange); }
.section-accent .eyebrow { color: var(--ink-deep); opacity: .75; }
.section-cta { margin-top: 44px; }
.section-lead p + p, .prose p + p { margin-top: 14px; }
.prose a, .section-lead a, .callout-text a, .contact-aside a:not(.button) { color: var(--ink); text-decoration: underline; text-decoration-color: var(--orange); text-underline-offset: 3px; text-decoration-thickness: 2px; }
.section-dark a:not(.button) { color: white; }

/* ---------- Ancres ---------- */
.anchor-bar { background: white; border-bottom: 1px solid var(--line); }
.anchor-bar ul { display: flex; flex-wrap: wrap; gap: 10px; padding: 20px 0; margin: 0; list-style: none; }
.anchor-bar a { display: inline-flex; padding: 9px 18px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); font-size: 14px; font-weight: 700; transition: .2s; }
.anchor-bar a:hover { color: var(--ink-deep); background: var(--orange); border-color: var(--orange); }

/* ---------- Contenu en deux colonnes ---------- */
.content-layout { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 72px; align-items: start; }
.content-aside { position: sticky; top: 110px; }
.content-aside .section-head { margin-bottom: 28px; }
.content-aside h2 { font-size: clamp(28px, 3vw, 40px); }
.content-body { min-width: 0; }
.content-layout.is-single { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); }
.facts { padding: 24px 26px; margin-bottom: 28px; border-radius: 16px; background: var(--mint); }
.section-soft .facts { background: var(--paper); }
.facts-label { display: block; margin-bottom: 14px; color: var(--orange-deep); font: 700 12px/1.2 var(--font-head); letter-spacing: .16em; text-transform: uppercase; }
.facts ul { padding: 0; margin: 0; list-style: none; }
.facts li { position: relative; padding: 8px 0 8px 26px; font-weight: 600; color: var(--ink-deep); line-height: 1.45; }
.facts li::before { content: ""; position: absolute; left: 0; top: 16px; width: 12px; height: 12px; border-radius: 3px; background: var(--orange); }

.prose { font-size: 17px; }
.prose > * + * { margin-top: 18px; }
.prose h3 { margin-top: 38px; color: var(--ink); font: 700 22px/1.3 var(--font-head); letter-spacing: -.02em; }
.prose h3:first-child { margin-top: 0; }
.prose ul, .prose ol { padding: 0; list-style: none; }
.prose li { position: relative; padding: 4px 0 4px 30px; }
.prose ul li::before { content: ""; position: absolute; left: 4px; top: 15px; width: 10px; height: 10px; border-radius: 3px; background: var(--orange); }
.prose ol { counter-reset: step; }
.prose ol li { counter-increment: step; }
.prose ol li::before { content: counter(step); position: absolute; left: 0; top: 5px; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; color: var(--ink-deep); background: var(--orange); font: 700 13px/1 var(--font-head); }
.prose strong { color: var(--ink-deep); }
.note-box { padding: 22px 26px; border-left: 4px solid var(--orange); border-radius: 0 14px 14px 0; background: var(--mint); }
.section-soft .note-box { background: var(--paper); }
.note-box strong { display: block; margin-bottom: 6px; color: var(--ink-deep); font: 700 17px/1.3 var(--font-head); }

/* ---------- Tableaux ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; background: white; }
.section-soft .table-wrap { background: var(--paper); }
.data-table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.5; }
.data-table th, .data-table td { padding: 15px 20px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.data-table thead th { color: white; background: var(--ink); font: 700 14px/1.3 var(--font-head); }
.data-table tbody th { color: var(--ink-deep); font-weight: 600; background: rgba(255, 244, 229, .5); }
.data-table tbody tr:last-child th, .data-table tbody tr:last-child td { border-bottom: 0; }
.data-table .is-mark { width: 120px; text-align: center; }
.data-table td.is-mark { font-size: 22px; font-weight: 700; color: var(--orange-deep); }
.data-table td.is-dash { color: rgba(8, 83, 136, .3); }
.data-table thead .is-mark { text-align: center; }
.table-note { margin-top: 18px; color: var(--muted); font-weight: 600; }
.prose .table-wrap { margin-top: 22px; }

/* ---------- Cartes ---------- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 22px; }
.card {
    position: relative; display: flex; flex-direction: column; padding: 32px 30px; border: 1px solid var(--line);
    border-top: 4px solid var(--orange); border-radius: 16px; background: white; transition: transform .25s, box-shadow .25s;
}
.section-soft .card { background: var(--paper); }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.card.tone-sante { border-top-color: var(--green); }
.card.tone-qvt { border-top-color: var(--orange); }
.card.tone-qvht { border-top-color: var(--plum); }
.card.is-featured { color: white; background: var(--ink); border-color: var(--ink); }
.card-meta { margin-bottom: 14px; color: var(--orange-deep); font: 700 11px/1.2 var(--font-head); letter-spacing: .16em; text-transform: uppercase; }
.card h3 { color: var(--ink); font: 700 22px/1.25 var(--font-head); letter-spacing: -.025em; }
.card.is-featured h3 { color: white; }
.card p { margin-top: 12px; color: var(--muted); font-size: 15px; }
.card.is-featured p { color: rgba(255, 255, 255, .8); }
.card-link { margin-top: auto; padding-top: 24px; color: var(--ink); font-size: 14px; font-weight: 700; }
.card-link::after { content: " →"; color: var(--orange-deep); }
.card-link a::before { content: ""; position: absolute; inset: 0; border-radius: 16px; }
.card.is-featured .card-link { color: white; }

/* ---------- Étapes, colonnes, chiffres ---------- */
.steps { padding: 0; margin: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0; counter-reset: step; border-top: 1px solid var(--line); }
.step { padding: 34px 32px 14px 0; counter-increment: step; }
.step::before { content: counter(step, decimal-leading-zero); display: block; margin-bottom: 18px; color: var(--orange); font: 600 44px/1 var(--font-head); letter-spacing: -.04em; }
.step h3 { color: var(--ink); font: 700 21px/1.3 var(--font-head); }
.step p { margin-top: 10px; color: var(--muted); }
.split-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 0 56px; }
.split-item { padding: 26px 0; border-top: 1px solid var(--line); }
.split-item h3 { color: var(--ink); font: 700 20px/1.3 var(--font-head); }
.split-item p { margin-top: 8px; color: var(--muted); }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 22px; }
.stat { padding: 30px 28px; border-radius: 16px; background: white; border: 1px solid var(--line); }
.section-soft .stat { background: var(--paper); }
.stat-value { display: block; color: var(--ink); font: 600 clamp(38px, 4vw, 54px)/1 var(--font-head); letter-spacing: -.045em; }
.stat-value::after { content: ""; display: block; width: 44px; height: 4px; margin: 16px 0; border-radius: 2px; background: var(--orange); }
.stat p { color: var(--muted); font-size: 15px; }

/* ---------- Équation QVG ---------- */
.equation-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 72px; align-items: center; }
.equation-visual { padding: 34px; border-radius: 20px; background: white; border: 1px solid var(--line); }
.section-soft .equation-visual { background: var(--paper); }
.equation-visual img { width: 100%; }
.equation-equation { margin-bottom: 20px; color: var(--ink-deep); font: 600 clamp(26px, 3vw, 38px)/1.2 var(--font-head); letter-spacing: -.03em; }
.equation-items { display: grid; gap: 0; margin-top: 26px; }
.equation-item { display: grid; grid-template-columns: 120px 1fr; gap: 18px; padding: 16px 0; border-top: 1px solid var(--line); }
.equation-item strong { color: var(--ink); font: 700 17px/1.4 var(--font-head); }
.equation-item span { color: var(--muted); }
.equation-layout.is-wide { grid-template-columns: 1fr; gap: 36px; }
.equation-layout.is-wide .equation-visual { max-width: 860px; }
.equation-layout.is-wide .equation-items { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px; margin-top: 0; }
.equation-layout.is-wide .equation-item { display: block; padding: 18px 0 0; }
.equation-layout.is-wide .equation-item span { display: block; margin-top: 6px; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 880px; border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { position: relative; display: block; padding: 24px 56px 24px 0; color: var(--ink); font: 700 19px/1.4 var(--font-head); letter-spacing: -.02em; cursor: pointer; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::before, .faq-item summary::after { content: ""; position: absolute; right: 8px; top: 50%; width: 18px; height: 2px; background: var(--orange-deep); transition: transform .25s; }
.faq-item summary::after { transform: rotate(90deg); }
.faq-item[open] summary::after { transform: rotate(0); }
.faq-answer { padding: 0 56px 26px 0; color: var(--muted); font-size: 17px; }

/* ---------- Sources ---------- */
.sources-list { padding: 0; margin: 0; list-style: none; border-top: 1px solid var(--line); }
.sources-list li { padding: 18px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.sources-list a { color: var(--ink); font-weight: 700; text-decoration: underline; text-decoration-color: var(--orange); text-underline-offset: 3px; }
.sources-list span { display: block; margin-top: 4px; color: var(--muted); }
.section-sources { padding: 64px 0; }
.section-sources h2 { font-size: 26px; }

/* ---------- Bandeaux d'appel ---------- */
.callout-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 32px 56px; }
.callout-text { max-width: 760px; }
.callout-text h2 { font-size: clamp(28px, 3.2vw, 42px); }
.callout-text .section-lead { margin-top: 14px; font-size: 17px; }
.section-callout { padding: 72px 0; }
.section-accent .button-primary { color: white; background: var(--ink-deep); }
.section-accent .button-primary:hover { background: var(--ink); }

/* ---------- Témoignages, références ---------- */
.quote-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 22px; }
.quote { display: flex; flex-direction: column; padding: 34px 32px; border-radius: 16px; background: white; border: 1px solid var(--line); }
.section-soft .quote { background: var(--paper); }
.quote blockquote { color: var(--ink-deep); font: 400 20px/1.5 var(--font-serif); }
.quote blockquote::before { content: "«"; display: block; margin-bottom: 6px; color: var(--orange); font: 700 52px/.6 var(--font-head); }
.quote figcaption { margin-top: 22px; font-size: 14px; }
.quote figcaption strong { display: block; color: var(--ink); }
.quote figcaption span { color: var(--muted); }
.logo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 18px; }
.logo-cell { display: grid; place-items: center; min-height: 110px; padding: 18px; border-radius: 14px; background: white; border: 1px solid var(--line); text-align: center; font: 700 15px/1.3 var(--font-head); color: var(--ink); }
.section-soft .logo-cell { background: var(--paper); }
.logo-cell img { max-width: 100%; max-height: 64px; width: auto; object-fit: contain; }

/* ---------- Formulaires ---------- */
.form-alert { margin: 0 0 18px; padding: 14px 16px; border-radius: 10px; font-size: 15px; font-weight: 600; }
.form-alert-success { color: #175b46; background: #dff3e9; }
.form-alert-error { color: #8b352b; background: #f8dfda; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field.is-wide { grid-column: 1 / -1; }
.field label { color: var(--ink-deep); font-size: 14px; font-weight: 700; }
.field label i { color: var(--orange-deep); font-style: normal; }
.field input, .field select, .field textarea, .newsletter-form input[type="email"] {
    width: 100%; min-height: 50px; padding: 12px 16px; border: 1px solid rgba(8, 83, 136, .28); border-radius: 12px; background: white; transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus, .newsletter-form input:focus { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(8, 83, 136, .15); outline: none; }
.form-consent { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--muted); }
.form-consent input { flex: none; width: 20px; height: 20px; margin-top: 3px; accent-color: var(--orange-deep); }
.form-consent a { color: var(--ink); text-decoration: underline; }
.appointment-layout { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.form-card { padding: 38px; border-radius: 20px; background: white; border: 1px solid var(--line); box-shadow: var(--shadow); }
.form-card h2 { margin-bottom: 26px; font-size: 28px; }
.form-card .button { margin-top: 8px; }
.contact-aside { padding: 34px; border-radius: 20px; color: white; background: var(--ink-deep); }
.contact-aside h2 { margin-bottom: 18px; color: white; font-size: 26px; }
.contact-aside strong { display: block; font: 700 20px/1.3 var(--font-head); }
.contact-aside p { margin-top: 4px; color: rgba(255, 255, 255, .78); }
.contact-aside a:not(.button) { display: block; margin-top: 12px; color: white; font-weight: 700; }
.contact-aside .contact-sep { margin-top: 26px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .22); font-size: 15px; }
.contact-aside .contact-sep a { display: inline; margin: 0; text-decoration: underline; text-decoration-color: var(--orange); }
.newsletter-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.newsletter-form { display: grid; gap: 14px; }
.newsletter-form .row { display: flex; gap: 10px; }
.newsletter-form input[type="email"] { flex: 1; min-width: 0; }
.newsletter-form .button { flex: none; }
.section-dark .newsletter-form .form-consent, .section-dark .newsletter-form .form-consent a { color: rgba(255, 255, 255, .8); }

/* ---------- Pied de page ---------- */
.site-footer { padding: 76px 0 90px; color: var(--ink); background: var(--mint); }
.footer-top { display: grid; grid-template-columns: 1.5fr repeat(var(--cols, 3), 1fr); gap: 44px; }
.footer-brand img { width: 168px; }
.footer-brand p { margin-top: 22px; color: #506f75; font-size: 14px; line-height: 1.6; }
.footer-column h2 { margin-bottom: 20px; font: 700 12px/1.2 var(--font-head); text-transform: uppercase; letter-spacing: .14em; }
.footer-column a, .footer-column p { display: block; margin-bottom: 11px; color: #3f6270; font-size: 14px; line-height: 1.55; }
.footer-column a:hover { color: var(--ink-deep); text-decoration: underline; }
.footer-column address { margin-bottom: 12px; color: #3f6270; font-size: 14px; font-style: normal; line-height: 1.55; }
.social-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.footer-column .social-links a { display: grid; place-items: center; width: 34px; height: 34px; margin: 0; border: 1px solid rgba(8, 83, 136, .3); border-radius: 50%; font-size: 12px; font-weight: 700; }
.footer-band { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; margin-top: 56px; padding: 30px 0; border-top: 1px solid rgba(8, 83, 136, .2); }
.footer-band + .footer-band { margin-top: 0; border-top: 1px solid rgba(8, 83, 136, .2); }
.footer-band-title strong { display: block; font: 700 18px/1.4 var(--font-head); }
.footer-band-title span { display: block; margin-bottom: 6px; color: var(--orange-deep); font: 700 11px/1.2 var(--font-head); text-transform: uppercase; letter-spacing: .15em; }
.footer-band .newsletter-form .button { min-height: 50px; }
.footer-sites { display: flex; flex-wrap: wrap; gap: 12px; }
.footer-sites a { display: inline-flex; padding: 11px 20px; border: 1px solid rgba(8, 83, 136, .35); border-radius: 999px; font-size: 14px; font-weight: 700; transition: .2s; }
.footer-sites a:hover { color: white; background: var(--ink); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px 30px; padding-top: 22px; border-top: 1px solid rgba(8, 83, 136, .2); color: #55747c; font-size: 13px; }
.footer-bottom div { display: flex; gap: 22px; }
.footer-bottom a:hover { text-decoration: underline; }

/* ---------- Assistant ---------- */
.site-chatbot { position: fixed; right: 22px; bottom: 22px; z-index: 400; }
.chatbot-launcher {
    display: inline-flex; align-items: center; gap: 10px; min-height: 54px; padding: 0 20px 0 14px; border: 0; border-radius: 999px;
    color: var(--ink-deep); background: var(--orange); font-size: 15px; font-weight: 700; cursor: pointer;
    box-shadow: 0 14px 34px rgba(5, 57, 95, .3); transition: transform .3s, box-shadow .3s;
}
.chatbot-launcher:hover { transform: translateY(-2px); box-shadow: 0 18px 40px rgba(5, 57, 95, .38); }
.chatbot-launcher-icon, .chatbot-launcher-close { display: inline-flex; width: 28px; height: 28px; }
.chatbot-launcher svg, .chatbot-close svg, .chatbot-send svg { width: 100%; height: 100%; }
.chatbot-launcher-close { display: none; }
.site-chatbot.is-open .chatbot-launcher-label, .site-chatbot.is-open .chatbot-launcher-icon { display: none; }
.site-chatbot.is-open .chatbot-launcher { width: 54px; padding: 0; justify-content: center; }
.site-chatbot.is-open .chatbot-launcher-close { display: inline-flex; }
.chatbot-panel {
    position: absolute; right: 0; bottom: calc(100% + 14px); display: flex; flex-direction: column;
    width: min(390px, calc(100vw - 32px)); height: min(580px, calc(100vh - 120px)); overflow: hidden;
    border: 1px solid var(--line); border-radius: 24px; background: linear-gradient(180deg, #fff, var(--paper));
    box-shadow: 0 24px 60px rgba(5, 57, 95, .25); transform-origin: bottom right; animation: chatIn .3s ease;
}
.chatbot-panel[hidden] { display: none !important; }
@keyframes chatIn { from { opacity: 0; transform: translateY(12px) scale(.97); } to { opacity: 1; transform: none; } }
.chatbot-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 18px 18px 14px; color: white; background: var(--ink-deep); }
.chatbot-kicker { margin-bottom: 4px; color: var(--orange); font: 700 11px/1.2 var(--font-head); letter-spacing: .12em; text-transform: uppercase; }
.chatbot-header h2 { color: white; font: 600 19px/1.25 var(--font-head); }
.chatbot-close { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; padding: 6px; border: 0; border-radius: 50%; color: white; background: rgba(255, 255, 255, .14); cursor: pointer; }
.chatbot-close:hover { background: rgba(255, 255, 255, .26); }
.chatbot-messages { flex: 1; display: flex; flex-direction: column; gap: 14px; padding: 16px; overflow-y: auto; scroll-behavior: smooth; }
.chatbot-message { display: flex; flex-direction: column; gap: 10px; max-width: 92%; animation: chatMsg .3s ease; }
.chatbot-message--bot { align-self: flex-start; }
.chatbot-message--user { align-self: flex-end; }
@keyframes chatMsg { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.chatbot-bubble { padding: 12px 15px; border-radius: 18px; font-size: 14.5px; line-height: 1.5; white-space: pre-line; }
.chatbot-message--bot .chatbot-bubble { color: var(--text); background: white; border: 1px solid var(--line); border-bottom-left-radius: 6px; }
.chatbot-message--user .chatbot-bubble { color: white; background: var(--ink); border-bottom-right-radius: 6px; }
.chatbot-page-link { align-self: flex-start; padding: 8px 15px; border-radius: 999px; color: var(--ink-deep); background: var(--orange); font-size: 13.5px; font-weight: 700; }
.chatbot-page-link:hover { background: #ffa21f; }
.chatbot-choices { display: flex; flex-wrap: wrap; gap: 8px; }
.chatbot-choice { padding: 8px 13px; border: 1px solid rgba(8, 83, 136, .3); border-radius: 999px; color: var(--ink); background: white; font-size: 13px; font-weight: 600; cursor: pointer; transition: .2s; }
.chatbot-choice:hover:not([disabled]) { color: white; background: var(--ink); border-color: var(--ink); }
.chatbot-choice[disabled] { opacity: .45; cursor: default; }
.chatbot-form { display: grid; grid-template-columns: 1fr auto; gap: 8px; padding: 12px 14px 14px; border-top: 1px solid var(--line); background: white; }
.chatbot-form input { width: 100%; min-height: 44px; padding: 0 16px; border: 1px solid rgba(8, 83, 136, .25); border-radius: 999px; font-size: 14.5px; }
.chatbot-form input:focus { border-color: var(--ink); outline: none; box-shadow: 0 0 0 3px rgba(8, 83, 136, .14); }
.chatbot-send { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 11px; border: 0; border-radius: 50%; color: white; background: var(--ink); cursor: pointer; }
.chatbot-send:hover { background: var(--ink-deep); }

/* ---------- Adaptation ---------- */
@media (max-width: 1100px) {
    .main-nav { gap: 20px; font-size: 13px; }
    .header-inner { gap: 20px; }
    .footer-top { gap: 32px; }
    .content-layout { gap: 44px; }
}

@media (max-width: 900px) {
    .container { width: min(100% - 32px, 720px); }
    .section { padding: 72px 0; }
    .header-inner { height: 74px; }
    .brand { width: 128px; }
    .menu-toggle { display: flex; }
    .menu-toggle i, .menu-toggle i::before, .menu-toggle i::after { display: block; width: 24px; height: 2px; background: currentColor; content: ""; transition: .2s; }
    .menu-toggle i { position: relative; }
    .menu-toggle i::before { position: absolute; top: -7px; }
    .menu-toggle i::after { position: absolute; top: 7px; }
    .site-header.is-menu-open .menu-toggle i { background: transparent; }
    .site-header.is-menu-open .menu-toggle i::before { top: 0; transform: rotate(45deg); }
    .site-header.is-menu-open .menu-toggle i::after { top: 0; transform: rotate(-45deg); }
    .header-cta { min-height: 42px; padding: 0 16px; font-size: 13px; }
    .main-nav {
        position: fixed; top: 74px; left: 0; right: 0; bottom: 0; display: block; padding: 12px 24px 60px; overflow-y: auto;
        color: var(--ink); background: var(--paper); opacity: 0; visibility: hidden; transform: translateY(-10px); transition: .25s;
    }
    .site-header.is-menu-open .main-nav { opacity: 1; visibility: visible; transform: none; }
    .main-nav > a, .nav-group > a, .nav-parent { display: flex; width: 100%; padding: 18px 0; border-bottom: 1px solid var(--line); font-size: 18px; }
    .nav-parent { justify-content: space-between; }
    .main-nav > a::before, .nav-group > a::before, .nav-parent::before { display: none; }
    .dropdown { position: static; min-width: 0; padding: 4px 0 12px 16px; opacity: 1; visibility: visible; transform: none; box-shadow: none; background: transparent; }
    .dropdown a { padding: 11px 0; font-size: 16px; }
    .hero { padding: 128px 0 64px; }
    .hero-large { min-height: 0; padding-bottom: 80px; }
    .hero-large::before, .hero-large::after, .hero-orb, .hero-scroll { display: none; }
    .content-layout, .content-layout.is-single, .equation-layout, .appointment-layout, .newsletter-layout, .footer-band { grid-template-columns: 1fr; gap: 36px; }
    .content-aside { position: static; }
    .form-grid { grid-template-columns: 1fr; }
    .form-card { padding: 26px 20px; }
    .trust-list { justify-content: flex-start; }
    .footer-top { grid-template-columns: 1fr 1fr; }
    .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
    .header-actions .header-cta { display: none; }
    .main-nav > a.nav-mobile-cta { display: flex; justify-content: center; margin-top: 24px; padding: 0 22px; border: 0; font-size: 16px; }
    .newsletter-form .row { flex-direction: column; }
    .footer-top { grid-template-columns: 1fr; }
    .equation-item { grid-template-columns: 1fr; gap: 4px; }
    .callout-inner { flex-direction: column; align-items: flex-start; }
    .data-table th, .data-table td { padding: 12px 14px; }
    .hero-lead { font-size: 17px; }
    .site-chatbot { right: 14px; bottom: 14px; }
    .chatbot-launcher-label { display: none; }
    .chatbot-launcher { width: 54px; padding: 0; justify-content: center; }
    .chatbot-panel { position: fixed; right: 10px; left: 10px; bottom: 78px; width: auto; height: min(70vh, calc(100vh - 110px)); }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
    .hero-media img, .hero .eyebrow, .hero h1, .hero-lead, .hero .button-row, .hero-chips span, .hero-shade, .hero-scroll { opacity: 1; transform: none; }
    .hero .eyebrow::before { width: 36px; }
}
