/* Design épuré : clair (maquette A) et sombre (maquette B), selon le réglage de l'appareil ou le bouton */
:root {
  --bg: #fff; --surface: #fafafa; --text: #18181b; --muted: #52525b; --faint: #a1a1aa; --line: #f0f0f2; --border: #e4e4e7;
  --accent: #18181b; --accent-text: #fff; --ok: #15803d; --ok-bg: #f0fdf4; --ok-line: #bbf7d0;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #0a0a0b; --surface: #111113; --text: #ededed; --muted: #a1a1a6; --faint: #6b6b70; --line: #1c1c1f; --border: #26262a;
  --accent: #ededed; --accent-text: #0a0a0b; --ok: #4ade80; --ok-bg: #10241a; --ok-line: #1d3d2a;
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0a0a0b; --surface: #111113; --text: #ededed; --muted: #a1a1a6; --faint: #6b6b70; --line: #1c1c1f; --border: #26262a;
    --accent: #ededed; --accent-text: #0a0a0b; --ok: #4ade80; --ok-bg: #10241a; --ok-line: #1d3d2a;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 15.5px/1.7 Inter, system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img, video { max-width: 100%; display: block; }
h1, h2, h3, h4 { font-weight: 600; letter-spacing: -.015em; line-height: 1.3; }
:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; border-radius: 4px; }

/* conteneurs : une colonne étroite partout */
main, .nav, .pied { max-width: 720px; margin: 0 auto; padding-left: 20px; padding-right: 20px; }

/* barre du haut */
.nav { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 28px; padding-bottom: 28px; font-size: 14px; }
.logo { font-weight: 600; white-space: nowrap; }
.nav nav a { white-space: nowrap; }
.logo span { all: unset; }
.nav nav { display: flex; align-items: center; gap: 22px; color: var(--muted); }
.nav nav a:hover, .nav nav a[aria-current="page"] { color: var(--text); }
.theme { background: none; border: 1px solid var(--border); color: var(--muted); border-radius: 999px; width: 32px; height: 32px; display: grid; place-items: center; cursor: pointer; padding: 0; }
.theme:hover { color: var(--text); }
.theme svg { width: 16px; height: 16px; }
.theme .lune { display: none; }
:root[data-theme="dark"] .theme .soleil { display: none; } :root[data-theme="dark"] .theme .lune { display: block; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .theme .soleil { display: none; } :root:not([data-theme="light"]) .theme .lune { display: block; } }

/* boutons et liens */
.btn { display: inline-flex; align-items: center; gap: 6px; font: 500 13.5px Inter, sans-serif; border: 1px solid var(--border); border-radius: 999px; padding: 7px 15px; color: var(--text); background: transparent; cursor: pointer; transition: border-color .15s; }
.btn:hover { border-color: var(--faint); }
.btn:not(.ghost):not(.small) { background: var(--accent); color: var(--accent-text); border-color: var(--accent); }
.btn.small { padding: 5px 13px; font-size: 13px; }
.cta, .center, .links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }

/* accueil */
.hero-lite { padding: 48px 0 8px; }
.avatar { width: 76px; height: 76px; border-radius: 50%; object-fit: cover; }
.salut { font-size: 30px; margin: 24px 0 0; }
.salut span { color: var(--muted); }
.dispo { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 500; color: var(--ok); background: var(--ok-bg); border: 1px solid var(--ok-line); border-radius: 999px; padding: 3px 11px; margin-top: 14px; }
.dispo::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.intro { color: var(--muted); margin: 16px 0 0; }
.intro a { color: var(--text); text-decoration: underline; text-decoration-color: var(--border); text-underline-offset: 3px; }
.chiffres { display: flex; flex-wrap: wrap; gap: 6px 22px; list-style: none; padding: 0; margin: 18px 0 0; font-size: 14px; color: var(--muted); }
.chiffres b { color: var(--text); font-weight: 600; }
.reseaux { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 0; }
.reseaux a { font-size: 13px; border: 1px solid var(--border); border-radius: 999px; padding: 6px 14px; color: var(--muted); transition: border-color .15s, color .15s; }
.reseaux a:hover { color: var(--text); border-color: var(--faint); }
.reseaux a:first-child { background: var(--accent); color: var(--accent-text); border-color: var(--accent); }

/* listes de l'accueil */
.duo { display: block; padding: 8px 0 0; }
.colonne { margin-top: 40px; }
.petit-titre { font-size: 13px; font-weight: 500; color: var(--faint); margin: 0 0 6px; letter-spacing: 0; }
.liste { list-style: none; margin: 0; padding: 0; }
.liste a { display: flex; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); }
.liste .pastille { display: none; }
.liste .txt { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.liste b { font-weight: 500; font-size: 15px; }
.liste a:hover b { text-decoration: underline; text-underline-offset: 3px; }
.liste small { color: var(--muted); font-size: 14px; }
.liste em { font-style: normal; color: var(--muted); font-size: 14px; line-height: 1.55; margin-top: 2px; }
.liste .badge, .liste .quand { color: var(--faint); font-size: 13px; white-space: nowrap; }
.voir, .detail-lien, .retour { display: inline-block; font-size: 14px; color: var(--muted); margin-top: 10px; }
.voir:hover, .detail-lien:hover, .retour:hover { color: var(--text); }
.cv { margin-top: 14px; }
.cv a { font-size: 14px; color: var(--muted); text-decoration: underline; text-decoration-color: var(--border); text-underline-offset: 3px; }
.cv a:hover { color: var(--text); }

/* sections des pages */
.section { padding: 32px 0 8px; }
.section h2 { font-size: 22px; margin: 0 0 18px; }
.section h2 span { all: unset; }
.sub { color: var(--muted); margin: -8px 0 0; }
.contact { border-top: 1px solid var(--line); margin-top: 40px; padding-top: 40px; }

/* profil et compétences */
.profil p { color: var(--muted); margin: 0 0 14px; }
.skills { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 28px; }
.skill { padding: 14px 0; border-top: 1px solid var(--line); }
.skill h3 { font-size: 15px; font-weight: 500; margin: 0 0 2px; }
.skill p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.6; }
.skill.s7 { grid-column: 1 / -1; }

/* cartes (projets, formation) */
.grid, .featured { display: grid; gap: 14px; }
.card { border: 1px solid var(--border); border-radius: 14px; background: var(--surface); padding: 20px 22px; scroll-margin-top: 24px; }
.card:target, .xp:target { border-color: var(--faint); }
.card-head { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; }
.emoji-dot { display: none; }
.card h3 { font-size: 17px; margin: 0; }
.card p { color: var(--muted); margin: 6px 0; }
.card .date { margin-bottom: 4px; }
.autres { font-size: 13px; font-weight: 500; color: var(--faint); margin: 36px 0 10px; }
.points { margin: 10px 0; padding-left: 18px; color: var(--muted); font-size: 14.5px; }
.points li { margin: 3px 0; }
.points li::marker { color: var(--faint); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 14px 0 0; }
.chips li { font-size: 12px; color: var(--muted); border: 1px solid var(--border); border-radius: 6px; padding: 1px 8px; background: var(--bg); }
.date { display: inline-block; font-size: 13px; color: var(--faint); font-variant-numeric: tabular-nums; }

/* expériences : contexte, besoin, solution, résultat */
.xp-list { display: grid; gap: 0; }
.xp { padding: 24px 0; border-top: 1px solid var(--line); scroll-margin-top: 24px; }
.xp > header h3 { font-size: 17px; margin: 4px 0 14px; }
.xp h3 em { display: block; font-style: normal; font-weight: 400; font-size: 14px; color: var(--muted); }
.csbr { display: flex; flex-direction: column; gap: 14px; margin: 0; }
.csbr > div { display: grid; grid-template-columns: 96px 1fr; gap: 16px; }
.csbr > .sol { order: 3; } .csbr > div:nth-child(4) { order: 4; }
.csbr dt { font-size: 13px; color: var(--faint); padding-top: 2px; }
.csbr dd { margin: 0; color: var(--muted); font-size: 14.5px; }
.sol dd p { margin: 0 0 8px; }
.axe { display: inline-block; font-size: 11.5px; font-weight: 600; color: var(--text); border: 1px solid var(--border); border-radius: 6px; padding: 0 7px; margin-right: 6px; }
.wins { display: flex; flex-wrap: wrap; gap: 6px 18px; list-style: none; padding: 0; margin: 0; }
.wins b { color: var(--text); font-weight: 600; }

/* pages dédiées */
.detail { padding-top: 16px; }
.retour { margin: 0 0 20px; }
.card.seul { background: none; border: 0; padding: 0; }
.card.seul h3, .card.big.seul h3 { font-size: 26px; }
.sous { font-size: 13px; font-weight: 500; color: var(--faint); margin: 36px 0 12px; }
.ecrans, .apercu-ecrans { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; }
.telephone { flex: none; width: 200px; margin: 0; scroll-snap-align: start; border: 1px solid var(--border); border-radius: 26px; padding: 6px; background: var(--surface); }
.telephone img { width: 100%; height: auto; border-radius: 20px; }
.pager { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 36px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.pager a:hover { color: var(--text); } .pager .suiv { margin-left: auto; }

/* vidéos */
.videos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.videos figure { margin: 0; }
.videos video { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; background: #000; border-radius: 12px; border: 1px solid var(--border); }
.videos figcaption { margin-top: 8px; font-size: 14px; font-weight: 500; }
.videos small { display: block; font-size: 12px; color: var(--faint); font-weight: 400; }
.section.dark { background: none; }

/* fenêtre d'aperçu des applis */
#apercu { width: min(960px, 94vw); max-height: 92vh; padding: 20px; border: 1px solid var(--border); border-radius: 16px; background: var(--bg); color: var(--text); }
#apercu::backdrop { background: rgba(0, 0, 0, .6); }
.apercu-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; }
.apercu-head h3 { margin: 0; font-size: 17px; }
.apercu-aide { margin: 0; text-align: center; color: var(--faint); font-size: 13px; }

/* pied de page */
.pied { margin-top: 72px; padding-top: 24px; padding-bottom: 40px; border-top: 1px solid var(--line); font-size: 13px; color: var(--faint); }
.pied-cols { display: flex; gap: 56px; flex-wrap: wrap; margin-bottom: 20px; }
.pied h4 { margin: 0 0 6px; font-size: 13px; font-weight: 500; color: var(--muted); }
.pied-cols a { display: block; padding: 2px 0; } .pied-cols a:hover { color: var(--text); }
.pied p { margin: 0; }

@media (max-width: 560px) {
  .nav { gap: 10px; font-size: 13.5px; }
  .nav nav { gap: 12px; }
  .salut { font-size: 26px; }
  .skills { grid-template-columns: 1fr; }
  .csbr > div { grid-template-columns: 1fr; gap: 2px; }
  .videos { grid-template-columns: repeat(3, 70vw); overflow-x: auto; scroll-snap-type: x mandatory; }
  .telephone { width: 64vw; }
  .liste a { flex-wrap: wrap; gap: 2px 16px; }
  .liste .badge, .liste .quand { width: 100%; padding-left: 0; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* pages projet : mise en page éditoriale (en-tête et visuel, sections numérotées, solution en six points) */
:root { --pj-accent: #b4492f; --pj-bande: #f6f5f2; --pj-serif: "Playfair Display", Georgia, serif; }
:root[data-theme="dark"] { --pj-accent: #ec8a72; --pj-bande: #111113; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --pj-accent: #ec8a72; --pj-bande: #111113; } }
.page-projet .nav, .page-projet .pied { max-width: 1160px; }
main.pj { max-width: none; padding: 0; }
.pj-wrap { max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.pj-eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--pj-accent); margin: 0 0 18px; }
.pj h2 { font-family: var(--pj-serif); font-weight: 400; font-size: clamp(30px, 4vw, 46px); line-height: 1.12; letter-spacing: -.01em; margin: 0; }
.pj-hero { padding: 24px 0 72px; }
.pj-hero .retour { margin: 0 0 40px; }
.pj-hero-grille { display: grid; grid-template-columns: 1.05fr 1fr; gap: 64px; align-items: center; }
.pj-titre { font-family: var(--pj-serif); font-weight: 400; font-size: clamp(56px, 8vw, 104px); line-height: .98; letter-spacing: -.02em; margin: 0 0 28px; }
.pj-titre em, .pj-idee em { font-style: normal; color: var(--pj-accent); }
.pj-idee em { font-style: italic; }
.pj-accroche { font-size: 19px; font-weight: 500; margin: 0 0 16px; }
.pj-intro { color: var(--muted); font-size: 16px; line-height: 1.85; margin: 0; max-width: 560px; }
.pj-tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 26px 0 0; }
.pj-tags li { font-size: 13px; color: var(--muted); border: 1px solid var(--border); border-radius: 999px; padding: 6px 14px; background: var(--bg); }
.pj-statut { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); margin: 26px 0 0; }
.pj-statut::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); }
.pj-visuel { margin: 0; background: var(--pj-bande); border: 1px solid var(--line); padding: 26px; display: flex; flex-direction: column; align-items: center; gap: 22px; }
.pj-visuel figcaption { align-self: flex-start; font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); }
.pj-visuel img { border-radius: 10px; box-shadow: 0 24px 50px rgba(0, 0, 0, .14); }
.pj-visuel .telephone { width: 230px; }
.pj-visuel .telephone img { box-shadow: none; }
.pj-visuel video { width: 250px; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 14px; background: #000; box-shadow: 0 24px 50px rgba(0, 0, 0, .18); }
.pj-pipeline { list-style: none; margin: 0; padding: 0; width: 100%; max-width: 340px; counter-reset: x; }
.pj-pipeline li { display: flex; gap: 16px; align-items: center; padding: 12px 16px; border: 1px solid var(--border); border-radius: 10px; background: var(--bg); font-weight: 500; }
.pj-pipeline li + li { margin-top: 10px; position: relative; }
.pj-pipeline span { font-size: 12px; color: var(--pj-accent); font-variant-numeric: tabular-nums; }
.pj-bloc { padding: 88px 0; }
.pj-bloc.bande { background: var(--pj-bande); }
.pj-deux { display: grid; grid-template-columns: 1fr 1.3fr; gap: 72px; }
.pj-texte p { color: var(--muted); margin: 0 0 16px; line-height: 1.8; }
.pj-texte .lead { color: var(--text); font-size: 18px; line-height: 1.7; }
.pj-tech-titre { margin-top: 34px; }
.pj-h2-seul { max-width: 640px; margin-bottom: 48px !important; }
.pj-points { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 40px; }
.pj-point { border-top: 1px solid var(--border); padding-top: 22px; }
.pj-point span { font-size: 12px; font-weight: 600; color: var(--pj-accent); font-variant-numeric: tabular-nums; }
.pj-point h3 { font-family: var(--pj-serif); font-weight: 400; font-size: 22px; margin: 14px 0 10px; }
.pj-point p { color: var(--muted); margin: 0; font-size: 14.5px; line-height: 1.75; }
.pj-ecrans .telephone { width: 210px; }
.pj-fin { text-align: center; }
.pj-fin .pj-idee { font-size: clamp(36px, 5.5vw, 68px); line-height: 1.08; margin: 0 auto 26px; max-width: 900px; }
.pj-fin .pj-intro { margin: 0 auto; }
.pj-fin .cta { justify-content: center; margin-top: 32px; }
@media (max-width: 860px) {
  .pj-hero-grille, .pj-deux { grid-template-columns: 1fr; gap: 36px; }
  .pj-points { grid-template-columns: 1fr 1fr; }
  .pj-bloc { padding: 60px 0; }
}
@media (max-width: 560px) { .pj-points { grid-template-columns: 1fr; gap: 28px; } .pj-visuel { padding: 18px; } }
.pj-visuel img { height: auto; }
.pj-titre-liste { font-size: clamp(52px, 7vw, 92px); }
.pj-bloc-liste { padding-top: 0; }
.pj-liste { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--border); }
.pj-liste a { display: grid; grid-template-columns: 56px 1fr 150px; gap: 32px; align-items: center; padding: 34px 0; border-bottom: 1px solid var(--border); }
.pj-num { font-size: 13px; font-weight: 600; color: var(--pj-accent); font-variant-numeric: tabular-nums; align-self: start; padding-top: 4px; }
.pj-ligne-txt { display: flex; flex-direction: column; }
.pj-ligne-txt .pj-eyebrow { margin: 0 0 8px; font-size: 11px; }
.pj-ligne-titre { font-family: var(--pj-serif); font-size: clamp(30px, 3.6vw, 44px); line-height: 1.1; }
.pj-ligne-desc { color: var(--muted); margin-top: 8px; max-width: 560px; }
.pj-ligne-voir { font-size: 14px; color: var(--muted); margin-top: 12px; }
.pj-liste a:hover .pj-ligne-titre { color: var(--pj-accent); }
.pj-liste a:hover .pj-ligne-voir { color: var(--text); }
.pj-vignette { height: 190px; background: var(--pj-bande); display: grid; place-items: center; overflow: hidden; }
.pj-vignette img { width: 96px; height: auto; border-radius: 12px; box-shadow: 0 12px 26px rgba(0, 0, 0, .14); transition: transform .3s; }
.pj-liste a:hover .pj-vignette img { transform: translateY(-4px); }
.pj-vide { font-family: var(--pj-serif); font-size: 20px; line-height: 1.3; text-align: center; color: var(--pj-accent); }
@media (max-width: 640px) { .pj-liste a { grid-template-columns: 1fr 96px; gap: 18px; } .pj-num { display: none; } .pj-vignette { height: 140px; } .pj-vignette img { width: 70px; } }
