/* Site personnel d'Omid NASER — styles
   Même langage visuel que le site Gratitude : bandeau bleu océan, fond gris Apple, cartes blanches.
   Police : Inter. Toutes les couleurs sont des variables (thème clair par défaut, thème sombre plus bas). */

/* Mise en page : bandeau bleu océan fixe + pastilles de rubriques + barre de progression (comme Gratitude), fond gris Apple, cartes blanches, colonne de lecture 760px. */
:root {
--bg: #F5F5F7; --card: #FFFFFF; --text: #1D1D1F; --soft: #424245; --muted: #6E6E73; --faint: #A1A1A6;
--line: #E8E8ED; --line2: #D2D2D7; --pillbg: #EDEDF0; --link: #2259B8;
--grad-hero: radial-gradient(90% 130% at 88% 0%, rgba(38,98,226,.55) 0%, rgba(38,98,226,0) 60%), radial-gradient(70% 110% at 0% 100%, rgba(20,70,170,.45) 0%, rgba(20,70,170,0) 62%), linear-gradient(135deg, #040A18 0%, #0A162C 46%, #0C2452 100%);
--grad-head: radial-gradient(70% 160% at 92% 0%, rgba(38,98,226,.5) 0%, rgba(38,98,226,0) 62%), linear-gradient(120deg, #040A18 0%, #0A162C 50%, #0D2A60 100%);
--navy: #0A162C; --navy2: #14244A; --sky: #8FB2EC; --onnavy: #F5F5F7; --onnavy-soft: #A1A1A6;
--subbar: rgba(255,255,255,.9); --pill-on-bg: #0A162C; --pill-on-fg: #FFFFFF;
--font: "Inter", "Segoe UI", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
--font-head: "Source Serif 4", Georgia, "Times New Roman", serif;
--head-track: -.012em;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
--bg: #0B0B0F; --card: #1C1C1E; --text: #F5F5F7; --soft: #D2D2D7; --muted: #A1A1A6; --faint: #6E6E73;
--line: #2C2C2E; --line2: #3A3A3C; --pillbg: #2C2C2E; --link: #8FB2EC;
--subbar: rgba(28,28,30,.88); --pill-on-bg: #F5F5F7; --pill-on-fg: #0A162C; color-scheme: dark; } }
:root[data-theme="dark"] {
--bg: #0B0B0F; --card: #1C1C1E; --text: #F5F5F7; --soft: #D2D2D7; --muted: #A1A1A6; --faint: #6E6E73;
--line: #2C2C2E; --line2: #3A3A3C; --pillbg: #2C2C2E; --link: #8FB2EC;
--subbar: rgba(28,28,30,.88); --pill-on-bg: #F5F5F7; --pill-on-fg: #0A162C; color-scheme: dark; }

[hidden] { display: none !important; }
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { overflow-x: clip; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 16.5px; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: clip; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 31; background: var(--navy); }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font-family: var(--font); }
:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; border-radius: 6px; }
.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.narrow { max-width: 792px; }
:root[lang="fr"] [lang="en"]:not(html), :root[lang="en"] [lang="fr"]:not(html) { display: none !important; }

/* En-tête */
#topbars { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; }
.nav { height: 52px; background: rgba(10,22,44,.95); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); }
.nav .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; padding-right: max(8px, env(safe-area-inset-right, 0px)); }
.brand { color: var(--onnavy); font-family: var(--font-head); font-weight: 600; font-size: 19px; letter-spacing: var(--head-track); }
.brand:hover { text-decoration: none; }
.nav-r { display: flex; align-items: center; gap: 2px; }
.nav-btn { min-width: 44px; height: 44px; padding: 0 10px; background: transparent; border: 0; color: #D2D2D7; display: inline-flex; align-items: center; justify-content: center; gap: 6px; font-size: 14px; cursor: pointer; }
.nav-btn:hover { color: #FFFFFF; }
.subbar { background: var(--subbar); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid var(--line2); }
.pills { display: flex; gap: 4px; overflow-x: auto; padding-block: 8px; font-size: 15px; scrollbar-width: none; }
.pills::-webkit-scrollbar { display: none; }
.pill { flex-shrink: 0; min-height: 36px; padding: 0 13px; display: flex; align-items: center; background: var(--pillbg); color: var(--text); border-radius: 980px; white-space: nowrap; transition: background .25s, color .25s; }
.pill:hover { text-decoration: none; }
.pill[aria-current="page"] { background: var(--pill-on-bg); color: var(--pill-on-fg); }
.progress { position: relative; height: 3px; background: var(--line); }
.progress i { position: absolute; top: 0; bottom: 0; left: 0; width: 0; background: #2259B8; transition: width .12s linear; }

/* Menu plein écran */
.menu { position: fixed; inset: calc(52px + env(safe-area-inset-top, 0px)) 0 0 0; z-index: 30; background: var(--navy); display: flex; flex-direction: column; overflow-y: auto; padding-block: 8px 32px; }
.menu .wrap { display: flex; flex-direction: column; flex: 1; }
.menu a.m { min-height: 56px; display: flex; align-items: center; color: var(--onnavy); border-bottom: 1px solid rgba(245,245,247,.1); font-size: 24px; font-weight: 300; letter-spacing: -.01em; }
.menu a.m:hover { text-decoration: none; color: var(--sky); }
.m-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 22px 0 4px; color: #D2D2D7; font-size: 15px; }
.seg { display: flex; padding: 3px; border-radius: 980px; background: var(--navy2); }
.seg button { min-height: 36px; padding: 0 13px; border: 0; border-radius: 980px; background: transparent; color: #D2D2D7; font-size: 14px; cursor: pointer; }
.seg button[aria-pressed="true"] { background: #F5F5F7; color: #0A162C; }

.pill .sh, .pill .home-ic { display: none; }
@media (max-width: 640px) {
.menu a.m { min-height: 48px; font-size: 19px; }
}
@media (max-width: 900px) {
.pills { gap: 3px; justify-content: space-between; font-size: var(--pill-fs, 14px); }
.pill { padding: 0 var(--pill-pad, 9px); min-height: 34px; }
.pill .lg { display: none; }
.pill .sh { display: inline; }
.pill .home-ic { display: block; }
}
@media (max-width: 360px) {
.pills { gap: 2px; padding-left: max(6px, env(safe-area-inset-left, 0px)); padding-right: max(6px, env(safe-area-inset-right, 0px)); }
}

/* Héros sombre */
.hero { background: var(--grad-hero); color: var(--onnavy); padding-block: 104px 96px; }
.hero-grid { display: grid; grid-template-columns: auto 1fr; gap: 36px; align-items: center; }
.portrait { width: 168px; height: auto; aspect-ratio: 1 / 1; max-width: 100%; flex-shrink: 0; border-radius: 50%; object-fit: cover; object-position: 50% 20%; border: 3px solid var(--navy2); }
.kicker { margin: 0 0 10px; font-size: 13px; letter-spacing: .2em; text-transform: uppercase; color: var(--sky); }
h1 { margin: 0; font-family: var(--font-head); font-size: clamp(38px, 6vw, 64px); line-height: 1.04; font-weight: 600; letter-spacing: var(--head-track); text-wrap: balance; }
.hero .lede { margin: 14px 0 0; font-size: 19px; font-weight: 300; color: #D2D2D7; max-width: 44ch; text-wrap: pretty; }
@media (max-width: 640px) {
.hero { padding-block: 56px 52px; }
.hero-grid { grid-template-columns: 1fr; gap: 20px; }
.portrait { width: 112px; }
}
.pagehead { position: relative; overflow: hidden; background: var(--grad-head); color: var(--onnavy); padding-block: 60px 52px; }
.pagehead .wrap { position: relative; z-index: 1; }
.pagehead h1 { font-size: clamp(34px, 5vw, 48px); }
.pagehead .lede { margin: 10px 0 0; color: #D2D2D7; font-size: 18px; font-weight: 300; max-width: 56ch; }

/* Sections */
.sec { padding-block: 48px 8px; }
.sec:last-of-type { padding-bottom: 64px; }
h2 { margin: 0 0 6px; font-family: var(--font-head); font-size: clamp(25px, 3.3vw, 32px); line-height: 1.15; font-weight: 600; letter-spacing: var(--head-track); text-wrap: balance; }
.sec-sub { margin: 0 0 20px; color: var(--muted); font-size: 17px; }
.label { margin: 0 0 10px; font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.card { background: var(--card); border-radius: 20px; padding: 24px; min-width: 0; }
.card + .card { margin-top: 12px; }
.prose p { margin: 0 0 14px; color: var(--soft); max-width: 65ch; }
.prose p:last-child { margin-bottom: 0; }

/* Liste des rubriques (accueil) */
.list { margin: 0; padding: 4px 0; list-style: none; background: var(--card); border-radius: 20px; }
.list a { min-height: 64px; display: flex; align-items: center; gap: 14px; padding: 10px 20px; color: var(--text); border-bottom: 1px solid var(--line); }
.list a:hover { text-decoration: none; background: color-mix(in srgb, var(--pillbg) 60%, transparent); }
.list li:first-child a { border-radius: 20px 20px 0 0; }
.list li:last-child a { border-bottom: 0; border-radius: 0 0 20px 20px; }
.list .l { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.list .t { font-size: 17px; font-weight: 600; line-height: 1.25; }
.list .d { font-size: 15px; color: var(--muted); line-height: 1.4; }
.list .chev { color: var(--faint); font-size: 22px; }
.tag { flex-shrink: 0; font-size: 12px; letter-spacing: .06em; color: var(--muted); background: var(--pillbg); padding: 3px 10px; border-radius: 980px; white-space: nowrap; }

/* CV */
.role { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; }
.role h3 { margin: 0; font-size: 18px; font-weight: 600; line-height: 1.35; letter-spacing: -.01em; }
.role .org { color: var(--link); font-size: 16px; grid-column: 1; }
.role .when { grid-column: 2; grid-row: 1 / span 2; text-align: right; color: var(--muted); font-size: 15px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.role .when small { display: block; font-size: 13px; color: var(--faint); }
.role .body { grid-column: 1 / -1; margin-top: 10px; color: var(--soft); font-size: 16px; }
.role h4 { margin: 18px 0 6px; font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.role ul { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.role ul ul { margin-top: 6px; }
.role b { color: var(--text); }
@media (max-width: 600px) {
.role { grid-template-columns: 1fr; }
.role .when { grid-column: 1; grid-row: auto; text-align: left; }
.card { padding: 20px 18px; }
}
.kv { display: grid; grid-template-columns: 170px 1fr; gap: 0 20px; }
.kv > div { padding-block: 12px; border-top: 1px solid var(--line); min-width: 0; }
.kv > div:nth-child(-n+2) { border-top: 0; padding-top: 0; }
.kv .k { color: var(--muted); font-size: 16px; }
.kv .v { color: var(--soft); font-size: 16px; }
@media (max-width: 600px) {
.kv { grid-template-columns: 1fr; }
.kv .k { border-top: 1px solid var(--line); padding-bottom: 0; }
.kv .v { border-top: 0; padding-top: 2px; }
.kv > div:nth-child(2) { padding-top: 2px; }
}
.dl { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.btn { min-height: 44px; padding: 0 20px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 980px; font-size: 16px; border: 0; cursor: pointer; }
.btn:hover { text-decoration: none; }
.btn-dark { background: var(--navy); color: #F5F5F7; }
:root[data-theme="dark"] .btn-dark { background: #F5F5F7; color: #0A162C; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn-dark { background: #F5F5F7; color: #0A162C; } }
.btn-ghost { background: var(--pillbg); color: var(--text); }

/* Coming soon */
.soon { text-align: center; padding: 44px 24px; }
.soon .big { font-size: clamp(28px, 4vw, 36px); font-weight: 600; letter-spacing: -.02em; margin: 0; }
.soon p { margin: 8px auto 0; color: var(--muted); max-width: 46ch; }
.facts-mini { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.facts-mini li { padding-block: 14px; border-top: 1px solid var(--line); color: var(--soft); }
.facts-mini li:first-child { border-top: 0; padding-top: 0; }
.facts-mini b { color: var(--text); display: block; font-size: 17px; font-weight: 600; }

/* Contact */
.contact-line { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-block: 14px; border-top: 1px solid var(--line); }
.contact-line:first-child { border-top: 0; padding-top: 0; }
.contact-line .k { color: var(--muted); font-size: 15px; display: block; }
.contact-line .v { font-size: 19px; user-select: all; word-break: break-word; }

/* Accueil : réseau de points dans le bandeau */
.hero { position: relative; overflow: hidden; }
canvas.fx { position: absolute; inset: 0; width: 100%; height: 100%; display: block; pointer-events: none; }
.hero .wrap { position: relative; z-index: 1; }

/* Apparition au défilement (seulement si le script tourne) */
.js .rv { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.js .rv.on { opacity: 1; transform: none; }

/* CV : sommaire qui suit la lecture */
.cvtoc { position: sticky; top: calc(var(--hdr, 105px) + env(safe-area-inset-top, 0px)); z-index: 5; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.cvtoc .wrap { display: flex; gap: 6px; overflow-x: auto; padding-block: 10px; scrollbar-width: none; }
.cvtoc .wrap::-webkit-scrollbar { display: none; }
.cvtoc button { flex-shrink: 0; min-height: 32px; padding: 0 12px; border: 1px solid var(--line2); border-radius: 980px; background: transparent; color: var(--muted); font-size: 13px; cursor: pointer; white-space: nowrap; transition: background .25s, color .25s, border-color .25s; }
.cvtoc button[aria-current="true"] { background: var(--pill-on-bg); border-color: var(--pill-on-bg); color: var(--pill-on-fg); }
[data-cv] { scroll-margin-top: calc(var(--hdr, 105px) + 64px); }

/* CV : frise chronologique */
.timeline { position: relative; padding-left: 30px; }
.timeline::before { content: ""; position: absolute; left: 9px; top: 28px; bottom: 28px; width: 2px; background: var(--line2); }
.timeline .role { position: relative; }
.timeline .role::before { content: ""; position: absolute; left: -27px; top: 28px; width: 14px; height: 14px; border-radius: 50%; background: var(--bg); border: 2px solid var(--link); }
.timeline .role.now::before { background: var(--link); box-shadow: 0 0 0 4px color-mix(in srgb, var(--link) 22%, transparent); }
@media (max-width: 600px) {
.timeline { padding-left: 22px; }
.timeline::before { left: 5px; }
.timeline .role::before { left: -23px; width: 12px; height: 12px; }
}

/* CV : missions repliables */
.toggle-all { margin-left: auto; background: none; border: 0; color: var(--link); font-size: 14px; cursor: pointer; padding: 6px 0; }
.sec-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 16px; }
.role details { border-top: 1px solid var(--line); }
.role details:last-of-type { border-bottom: 1px solid var(--line); }
.role summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; padding-block: 10px; color: var(--text); font-weight: 500; cursor: pointer; }
.role summary::-webkit-details-marker { display: none; }
.role summary::after { content: "›"; flex-shrink: 0; color: var(--faint); font-size: 20px; line-height: 1; transition: transform .25s; }
.role details[open] summary::after { transform: rotate(90deg); }
.role details > p, .role details > ul { margin: 0 0 14px; color: var(--soft); }
.role details > ul { padding-left: 20px; }
.role .group-title { margin: 20px 0 4px; font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }

footer { border-top: 1px solid var(--line2); color: var(--muted); font-size: 14px; padding-block: 24px 36px; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }
.view { animation: fade .35s ease both; }
@keyframes fade { from { opacity: .4; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { *, .view { animation: none !important; transition: none !important; } }

/* Philosophie : vignette d'aperçu du site Gratitude */
.preview { display: block; margin-top: 24px; border-radius: 20px; overflow: hidden; background: var(--card); color: var(--text); box-shadow: 0 1px 2px rgba(10,22,44,.06), 0 10px 30px rgba(10,22,44,.10); transition: transform .35s ease, box-shadow .35s ease; }
.preview:hover { text-decoration: none; transform: translateY(-4px); box-shadow: 0 2px 4px rgba(10,22,44,.08), 0 18px 44px rgba(10,22,44,.18); }
.pv-bar { display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; background: var(--navy2); }
.pv-bar i { width: 9px; height: 9px; border-radius: 50%; background: rgba(245,245,247,.25); }
.pv-url { margin: 0 auto; padding-right: 40px; font-size: 12px; color: #A1A1A6; letter-spacing: .01em; }
.pv-shot { display: block; position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #0A162C; }
.pv-shot img { position: absolute; left: 0; top: 0; width: 100%; height: auto; max-width: 100%; transition: transform 3.5s cubic-bezier(.25,.6,.25,1); }
.preview:hover .pv-shot img, .preview:focus-visible .pv-shot img { transform: translateY(calc(-100% + 100cqh)); }
.pv-shot { container-type: size; }
.pv-foot { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px 16px; padding: 16px 20px; }
.pv-foot b { display: block; font-weight: 600; font-size: 17px; }
.pv-sub { display: block; font-size: 14px; color: var(--muted); }
.pv-go { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 16px; border-radius: 980px; background: var(--navy); color: #F5F5F7; font-size: 15px; white-space: nowrap; }
:root[data-theme="dark"] .pv-go { background: #F5F5F7; color: #0A162C; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .pv-go { background: #F5F5F7; color: #0A162C; } }
.preview:hover .pv-go svg { transform: translate(2px, -2px); }
.pv-go svg { transition: transform .25s; }

/* Philosophie : les trois pôles */
.poles { display: grid; grid-template-columns: 200px 1fr; gap: 24px; align-items: center; }
.tri { width: 100%; max-width: 200px; height: auto; justify-self: center; overflow: visible; }
.tri-edge { fill: none; stroke: var(--line2); stroke-width: 1.5; }
.tri-node { fill: var(--card); stroke: var(--faint); stroke-width: 2; cursor: pointer; transition: fill .3s, stroke .3s, r .3s; }
.tri-node.on { fill: var(--link); stroke: var(--link); r: 13; }
.pole-list { display: grid; gap: 6px; min-width: 0; }
.pole { display: block; width: 100%; text-align: left; padding: 12px 14px; border: 1px solid transparent; border-radius: 14px; background: transparent; color: var(--text); cursor: pointer; transition: background .25s, border-color .25s; }
.pole b { display: block; font-weight: 600; font-size: 16px; }
.pole .pole-d { display: block; margin-top: 2px; color: var(--muted); font-size: 15px; line-height: 1.5; max-height: 0; overflow: hidden; opacity: 0; transition: max-height .35s ease, opacity .35s ease; }
.pole[aria-selected="true"] { background: var(--bg); border-color: var(--line); }
.pole[aria-selected="true"] .pole-d { max-height: 8em; opacity: 1; }
.note-under { margin: 14px 4px 0; color: var(--muted); font-size: 15px; max-width: 65ch; }
@media (max-width: 600px) {
  .poles { grid-template-columns: 1fr; gap: 12px; }
  .tri { max-width: 150px; }
}

/* Philosophie : citation */
.quote { margin: 24px 0 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--link); font-size: clamp(19px, 2.6vw, 23px); font-weight: 300; line-height: 1.45; letter-spacing: -.01em; color: var(--text); text-wrap: balance; }
/* La vignette reste animée au survol même après son apparition au défilement */
.js .preview.rv { transition: opacity .7s ease, transform .35s ease, box-shadow .35s ease; }
.js .preview.rv.on:hover { transform: translateY(-4px); }
/* Écrans tactiles (pas de survol) : l'aperçu défile une fois tout seul quand il apparaît */
.preview.pan .pv-shot img { transform: translateY(calc(-100% + 100cqh)); transition-duration: 6s; }

/* Pastilles centrées sur ordinateur (centrage « sûr » : si elles débordent, rien n'est coupé à gauche) */
@media (min-width: 901px) {
  .pills .pill:first-child { margin-left: auto; }
  .pills .pill:last-child { margin-right: auto; }
}

/* Vignette d'un site au fond clair */
.pv-light .pv-shot { background: #F3F4F7; }

/* Services financiers : méthode en trois temps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; counter-reset: st; }
.steps li { counter-increment: st; background: var(--card); border-radius: 20px; padding: 20px; display: flex; flex-direction: column; gap: 6px; min-width: 0; color: var(--soft); font-size: 15px; line-height: 1.55; }
.steps li::before { content: counter(st); width: 28px; height: 28px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--navy-chip, var(--pillbg)); color: var(--text); font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.steps b { color: var(--text); font-weight: 600; font-size: 16px; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }
.chips-row { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips-row li { font-size: 14px; color: var(--soft); border: 1px solid var(--line2); border-radius: 980px; padding: 6px 12px; }

/* Finance : lien de retour vers la page de section */
.back { display: inline-flex; align-items: center; gap: 4px; margin: 0 0 14px -2px; min-height: 32px; color: var(--sky); font-size: 15px; }
.back:hover { color: #FFFFFF; text-decoration: none; }
.back-btn { gap: 6px; }

/* Finance : cartes de projets sur la page de section */
.projs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 640px) { .projs { grid-template-columns: 1fr; } }
.proj { display: flex; flex-direction: column; border-radius: 20px; overflow: hidden; background: var(--card); color: var(--text); box-shadow: 0 1px 2px rgba(10,22,44,.06), 0 10px 30px rgba(10,22,44,.10); min-width: 0; }
.js .proj.rv { transition: opacity .7s ease, transform .35s ease, box-shadow .35s ease; }
.proj:hover, .js .proj.rv.on:hover { text-decoration: none; transform: translateY(-4px); box-shadow: 0 2px 4px rgba(10,22,44,.08), 0 18px 44px rgba(10,22,44,.18); }
.proj-img { display: block; aspect-ratio: 16 / 10; overflow: hidden; }
.proj-img img { display: block; width: 100%; height: 100%; max-width: 100%; object-fit: cover; object-position: top center; transition: transform .6s ease; }
.proj:hover .proj-img img { transform: scale(1.04); }
.pv-light-bg { background: #F3F4F7; }
.pv-green-bg, .pv-green .pv-shot { background: #133F2A; }
.proj-body { display: flex; flex-direction: column; gap: 6px; padding: 18px 20px 20px; flex: 1; }
.proj-body > b { font-size: 19px; font-weight: 600; letter-spacing: -.01em; }
.proj-d { color: var(--soft); font-size: 15px; line-height: 1.5; }
.proj-meta { color: var(--muted); font-size: 13px; }
.proj-go { margin-top: auto; padding-top: 8px; display: inline-flex; align-items: center; gap: 6px; color: var(--link); font-size: 15px; font-weight: 500; }
.proj-go svg { transition: transform .25s; }
.proj:hover .proj-go svg { transform: translateX(3px); }

/* Repère de code (A, B… / C01, D06…) dans les onglets */
.pole-code { display: inline-block; min-width: 26px; margin-right: 8px; padding: 1px 7px; border-radius: 6px; background: var(--pillbg); color: var(--muted); font-size: 12px; font-weight: 600; text-align: center; font-variant-numeric: tabular-nums; }
.pole[aria-selected="true"] .pole-code { background: var(--link); color: #FFFFFF; }

/* Sustainable Finance : le parcours d'une obligation verte */
.thread-steps { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; position: relative; }
.thread-steps .pole { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 6px; text-align: center; }
.thread-steps .pole-code { margin: 0; }
.thread-steps .pole b { font-size: 14px; }
.thread-steps .pole .pole-d { display: none; }
.thread-panel { margin: 14px 4px 0; min-height: 3em; color: var(--soft); font-size: 16px; line-height: 1.55; }
@media (max-width: 600px) { .thread-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* Titres : légende des bandeaux un peu plus lumineuse sur le dégradé */
.hero h1, .pagehead h1 { text-shadow: 0 1px 24px rgba(4,10,24,.55); }
.hero .lede, .pagehead .lede { text-shadow: 0 1px 14px rgba(4,10,24,.6); }
.soon .big, .quote, .proj-body > b { font-family: var(--font-head); letter-spacing: var(--head-track); }

/* Accueil : trois projets */
@media (min-width: 761px) { .projs-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; } .projs-3 .proj-body { padding: 14px 16px 16px; } .projs-3 .proj-body > b { font-size: 17px; } .projs-3 .proj-d { font-size: 14px; } }
.pv-navy-bg { background: #0A162C; }

/* CV : « En bref » */
.brief { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.brief > div { background: var(--card); border-radius: 18px; padding: 16px 18px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.brief .k { font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--link); margin-bottom: 4px; }
.brief .v { font-size: 16px; font-weight: 600; color: var(--text); line-height: 1.35; }
.brief .m { font-size: 14px; color: var(--muted); line-height: 1.45; }
@media (max-width: 600px) { .brief { grid-template-columns: 1fr; } }

/* CV : compétences en pastilles */
.skills { display: grid; gap: 10px; margin: 2px 0 6px; }
.skill { display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 6px 14px; align-items: baseline; }
.skill-k { font-size: 15px; font-weight: 600; color: var(--text); }
.skill-v { display: flex; flex-wrap: wrap; gap: 6px; }
.skill-v span { font-size: 13.5px; line-height: 1.35; color: var(--soft); border: 1px solid var(--line2); border-radius: 980px; padding: 3px 10px; }
@media (max-width: 600px) { .skill { grid-template-columns: 1fr; } }

/* Pastille « Donate » (après Contact) */
.pill-donate { gap: 5px; color: #1DA1F2; }
.pill-donate .heart-ic { flex-shrink: 0; }
.pill-donate[aria-current="page"] { background: #1DA1F2; color: #FFFFFF; }
.pill-donate:not([aria-current]) { color: #0B84CF; }
:root[data-theme="dark"] .pill-donate:not([aria-current]) { color: #5CC3FF; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .pill-donate:not([aria-current]) { color: #5CC3FF; } }
@media (max-width: 900px) { .pill-donate .lg { display: none; } }
.m-donate { gap: 10px; color: #5CC3FF !important; }

/* Accueil : « Soutenir mes projets » */
#soutien { scroll-margin-top: calc(var(--hdr, 105px) + 16px); }
.support { position: relative; overflow: hidden; border-radius: 24px; color: #F5F5F7; background: radial-gradient(80% 120% at 100% 0%, rgba(29,161,242,.30) 0%, rgba(29,161,242,0) 55%), radial-gradient(70% 120% at 0% 100%, rgba(38,98,226,.45) 0%, rgba(38,98,226,0) 60%), linear-gradient(135deg, #0A162C 0%, #13285A 100%); box-shadow: 0 18px 48px rgba(10,22,44,.22); }
.support-in { position: relative; z-index: 1; padding: 34px 32px 30px; max-width: 62ch; }
.support h2 { color: #FFFFFF; margin-bottom: 12px; }
.support p { margin: 0 0 12px; color: #D2D2D7; line-height: 1.6; }
.support-kicker { display: flex; align-items: center; gap: 8px; font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: #8FD6FF !important; }
.support-heart { color: #1DA1F2; animation: beat 2.4s ease-in-out infinite; transform-origin: center; }
@keyframes beat { 0%, 60%, 100% { transform: scale(1); } 10% { transform: scale(1.18); } 20% { transform: scale(1); } 30% { transform: scale(1.12); } }
.support-list { margin: 0 0 20px; padding: 0; list-style: none; display: grid; gap: 8px; }
.support-list li { position: relative; padding-left: 22px; color: #E8ECF2; }
.support-list li::before { content: ""; position: absolute; left: 4px; top: .62em; width: 7px; height: 7px; border-radius: 50%; background: #5CC3FF; box-shadow: 0 0 10px rgba(92,195,255,.85); }
.support-btn { background: #FFFFFF; color: #0A162C; font-weight: 600; gap: 8px; box-shadow: 0 6px 24px rgba(29,161,242,.45); transition: transform .25s ease, box-shadow .25s ease; }
.support-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(29,161,242,.6); }
.support-note { margin-top: 14px !important; font-size: 13.5px; color: #A1A1A6 !important; }
.support-hearts { position: absolute; inset: 0; pointer-events: none; }
.support-hearts i { position: absolute; bottom: -24px; width: 14px; height: 14px; opacity: 0; background: #5CC3FF; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 21s-7.5-4.6-9.6-9.1C.9 8.6 3 5 6.6 5c2.1 0 3.6 1.1 4.4 2.5h2C13.8 6.1 15.3 5 17.4 5 21 5 23.1 8.6 21.6 11.9 19.5 16.4 12 21 12 21z'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 21s-7.5-4.6-9.6-9.1C.9 8.6 3 5 6.6 5c2.1 0 3.6 1.1 4.4 2.5h2C13.8 6.1 15.3 5 17.4 5 21 5 23.1 8.6 21.6 11.9 19.5 16.4 12 21 12 21z'/%3E%3C/svg%3E") center / contain no-repeat; animation: float 11s linear infinite; }
.support-hearts i:nth-child(1) { left: 62%; animation-delay: 0s; }
.support-hearts i:nth-child(2) { left: 74%; width: 10px; height: 10px; animation-delay: 2.2s; animation-duration: 13s; }
.support-hearts i:nth-child(3) { left: 86%; width: 18px; height: 18px; animation-delay: 4.1s; }
.support-hearts i:nth-child(4) { left: 94%; width: 9px; height: 9px; animation-delay: 6s; animation-duration: 9s; }
.support-hearts i:nth-child(5) { left: 70%; width: 12px; height: 12px; animation-delay: 7.6s; animation-duration: 12s; }
.support-hearts i:nth-child(6) { left: 80%; width: 8px; height: 8px; animation-delay: 9.3s; }
.support-hearts i:nth-child(7) { left: 90%; width: 13px; height: 13px; animation-delay: 3.3s; animation-duration: 14s; }
@keyframes float { 0% { transform: translateY(0) translateX(0) rotate(-8deg); opacity: 0; } 12% { opacity: .55; } 50% { transform: translateY(-240px) translateX(10px) rotate(6deg); } 85% { opacity: .35; } 100% { transform: translateY(-480px) translateX(-6px) rotate(-6deg); opacity: 0; } }
@media (max-width: 600px) { .support-in { padding: 26px 20px 24px; } .support-hearts i { opacity: 0; animation-duration: 14s; } }
@media (prefers-reduced-motion: reduce) { .support-heart, .support-hearts i { animation: none; } }

/* Data & IA : vignette et carte */
.pv-dai .pv-shot, .pv-dai-bg { background: #0B2440; }

/* Onglets groupés (les neuf étapes) */
.tab-group { margin: 12px 4px 2px; font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--link); }
.tab-group:first-child { margin-top: 0; }
.pole-meta { color: var(--muted); font-weight: 400; font-size: 13px; white-space: nowrap; }
.readers .pole-d i { font-style: italic; color: var(--text); }

/* Data & IA : démonstration de la température */
.temp-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; font-size: 14px; color: var(--muted); }
.temp-row input { width: 100%; accent-color: var(--link); }
.temp-bars { display: grid; gap: 8px; margin: 18px 0; }
.temp-bar { display: grid; grid-template-columns: 120px minmax(0, 1fr) 56px; align-items: center; gap: 10px; font-size: 14px; }
.temp-bar .w { color: var(--text); font-variant-numeric: tabular-nums; }
.temp-bar .track { height: 10px; border-radius: 6px; background: var(--pillbg); overflow: hidden; }
.temp-bar .fill { display: block; height: 100%; width: 0; border-radius: 6px; background: linear-gradient(90deg, #2259B8, #5CC3FF); transition: width .25s ease; }
.temp-bar .p { text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; }
.temp-bar.hit .w { font-weight: 600; color: var(--link); }
.temp-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.temp-out { margin: 0; color: var(--soft); font-size: 16px; }
.temp-out b { color: var(--link); }
.temp-note { margin: 14px 0 0; font-size: 13.5px; color: var(--muted); }
@media (max-width: 480px) { .temp-bar { grid-template-columns: 96px minmax(0, 1fr) 48px; font-size: 13px; } .temp-row { font-size: 13px; gap: 8px; } }
