/* =========================================================
   dylan-odie.fr · direction « Lumière »
   Une seule police (Inter, auto-hébergée), aucun service tiers.
   ========================================================= */
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-var-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #0A0E1A;
  --ink-2: #2A3142;
  --ink-3: #4F586B;
  --line: rgba(10, 14, 26, .08);
  --line-2: rgba(10, 14, 26, .12);
  --paper: #FFFFFF;
  --paper-2: #F5F6FA;
  --mist: #F4F6FB;
  --accent: #2F52E0;
  --accent-ink: #3448C4;
  --night: #070A16;

  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 24px;
  --r-xl: 32px;

  --sh-1: 0 1px 2px rgba(14, 20, 40, .05), 0 1px 1px rgba(14, 20, 40, .03);
  --sh-2: 0 1px 2px rgba(14, 20, 40, .04), 0 4px 10px -2px rgba(14, 20, 40, .05), 0 14px 28px -12px rgba(14, 20, 40, .10);
  --sh-3: 0 2px 4px rgba(14, 20, 40, .04), 0 12px 24px -8px rgba(14, 20, 40, .08), 0 40px 80px -24px rgba(30, 40, 90, .22);

  /* Dégradé du cadre portrait / carte de visite */
  --frame-bg:
    radial-gradient(70% 45% at 25% 12%, rgba(255,255,255,.55) 0%, rgba(255,255,255,0) 70%),
    radial-gradient(90% 55% at 100% 100%, #F7BFA4 0%, rgba(247,191,164,0) 70%),
    linear-gradient(168deg, #B9CCFF 0%, #C6B9FB 52%, #E3C3D6 100%);

  --gutter: 16px;
  --wrap: 1200px;
  --header-h: 60px;

  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; background: var(--paper); }
body {
  margin: 0;
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-optical-sizing: auto;
  font-feature-settings: "cv11", "ss01";
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
[hidden] { display: none !important; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
p, li, dd { text-wrap: pretty; }
h2, h3 { text-wrap: balance; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
::selection { background: rgba(47, 82, 224, .18); }

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

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

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px; }

/* Photo renseignée ou non (classe posée sur <html> dès le chargement) */
html:not(.has-photo) .only-photo { display: none; }
.has-photo .only-card { display: none; }

/* ---------- Icônes trait ---------- */
.i-arrow, .i-down, .i-ext, .modal-nav svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------- Boutons ---------- */
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-weight: 600; letter-spacing: -.01em; white-space: nowrap;
  border-radius: 999px; border: 0; cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease;
}
.btn-sm { height: 40px; padding: 0 16px; font-size: 14.5px; }
.btn-sm::after { content: ""; position: absolute; inset: -4px -2px; }
.btn-lg { height: 54px; padding: 0 26px; font-size: 16.5px; }
.btn-xl { height: 64px; padding: 0 32px; font-size: 18px; }
.btn-dark {
  background: var(--ink); color: #fff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.14), 0 1px 2px rgba(10,14,26,.25), 0 10px 24px -12px rgba(10,14,26,.55);
}
.btn-dark:hover { background: #1A2034; transform: translateY(-1px); }
.btn-light {
  background: rgba(255,255,255,.85); color: var(--ink);
  box-shadow: 0 0 0 1px var(--line-2), var(--sh-1);
}
.btn-light:hover { background: #fff; transform: translateY(-1px); box-shadow: 0 0 0 1px var(--line-2), var(--sh-2); }
.btn-white {
  background: #fff; color: var(--ink);
  box-shadow: 0 1px 0 rgba(255,255,255,.5) inset, 0 18px 40px -16px rgba(0,0,0,.6);
}
.btn-white:hover { transform: translateY(-2px); }
.btn svg { flex: none; }
.btn .i-arrow { transition: transform .18s ease; }
.btn:hover .i-arrow { transform: translateX(3px); }

/* ---------- En-tête ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, background-color .2s ease;
}
.site-header.is-scrolled {
  border-bottom-color: var(--line); background: rgba(255,255,255,.95);
  -webkit-backdrop-filter: saturate(180%) blur(14px); backdrop-filter: saturate(180%) blur(14px);
}
.header-inner { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { font-weight: 700; font-size: 17.5px; letter-spacing: -.02em; }
.nav { display: none; }

/* ---------- Hero ---------- */
.hero { position: relative; z-index: 1; isolation: isolate; margin-top: calc((var(--header-h) + 1px) * -1); padding-top: calc(var(--header-h) + 22px); }
.hero-bg {
  position: absolute; inset: 0; z-index: -1; overflow: hidden;
  background:
    radial-gradient(68% 30% at 0% 0%, rgba(125, 186, 255, .62) 0%, rgba(125,186,255,0) 72%),
    radial-gradient(70% 34% at 100% 2%, rgba(170, 150, 255, .58) 0%, rgba(170,150,255,0) 72%),
    radial-gradient(60% 26% at 100% 42%, rgba(255, 178, 130, .50) 0%, rgba(255,178,130,0) 72%),
    radial-gradient(70% 26% at 10% 48%, rgba(190, 206, 255, .50) 0%, rgba(190,206,255,0) 72%),
    linear-gradient(180deg, #EDF1FD 0%, #F4F4FD 55%, var(--mist) 100%);
}
.hero-bg::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 220px;
  background: linear-gradient(180deg, rgba(244,246,251,0), var(--mist) 85%);
}

/* Ligne d'identité : photo ronde (si renseignée) + nom */
.identity { display: flex; align-items: center; gap: 16px; }
.avatar {
  position: relative; flex: none; width: 84px; height: 84px; border-radius: 50%; overflow: hidden;
  background: var(--frame-bg);
  box-shadow: 0 0 0 3px #fff, 0 0 0 4px rgba(30,40,90,.08), var(--sh-2);
}
.avatar img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.identity-name { font-weight: 700; font-size: 19px; letter-spacing: -.02em; line-height: 1.2; }
.identity-role { font-size: 15px; color: #434C5F; line-height: 1.4; margin-top: 3px; }
.identity-role .role, .identity-role .place { display: block; text-wrap: balance; }
.identity-role .sep { display: none; }
.identity-since { display: none; }

/* Sans photo, sur mobile et tablette : la ligne d'identité devient une carte de visite */
@media (max-width: 1023.98px) {
  html:not(.has-photo) .identity {
    display: block; position: relative; max-width: 460px;
    padding: 10px 16px; border: 4px solid #fff; border-radius: 24px;
    background: var(--frame-bg);
    box-shadow: 0 0 0 1px rgba(30,40,90,.06), 0 2px 4px rgba(14,20,40,.04), 0 18px 36px -16px rgba(40,50,120,.32);
  }
  html:not(.has-photo) .identity-name { font-size: 20px; font-weight: 720; letter-spacing: -.028em; }
  html:not(.has-photo) .identity-role { margin-top: 1px; color: var(--ink-2); }
  html:not(.has-photo) .identity-role .place {
    margin-top: 6px; padding-top: 6px; border-top: 1px solid rgba(255,255,255,.75);
    font-weight: 620; color: var(--ink); letter-spacing: -.01em;
  }
  html:not(.has-photo) .identity-since { display: block; font-size: 14.5px; line-height: 1.4; color: var(--ink-2); margin-top: 1px; }
}

.hero h1 {
  margin-top: 24px;
  font-size: 35px; line-height: 1.08; font-weight: 700; letter-spacing: -.032em;
  color: var(--ink);
  text-wrap: balance;
}
.h1-soft { color: var(--accent-ink); }
.lead { margin-top: 16px; font-size: 17px; line-height: 1.58; color: var(--ink-2); max-width: 36em; }

.cta-row { margin-top: 24px; display: grid; gap: 10px; }
.cta-row .btn { width: 100%; }
.availability { margin-top: 16px; display: flex; align-items: baseline; gap: 10px; font-size: 15.5px; font-weight: 550; color: var(--ink-2); }
.availability-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: #1F9D6B; box-shadow: 0 0 0 3px rgba(31,157,107,.16); transform: translateY(-1px); }

.hero-visual { display: none; }

/* Preuves */
.proofs {
  position: relative; margin-top: 32px;
  background: #fff; border-radius: var(--r-lg);
  box-shadow: 0 0 0 1px var(--line), var(--sh-3);
  display: grid;
}
.proofs li { padding: 15px 20px; display: grid; gap: 1px; }
.proofs li + li { border-top: 1px solid var(--line); }
.proofs strong { font-size: 16.5px; font-weight: 650; letter-spacing: -.015em; text-wrap: balance; }
.proofs span { font-size: 14.5px; color: var(--ink-3); text-wrap: balance; }

/* ---------- Sections ---------- */
.section { padding: 64px 0; position: relative; }
.section-head h2, .path-head h2 {
  font-size: 32px; line-height: 1.1; font-weight: 700; letter-spacing: -.03em; text-wrap: balance;
}
.section-intro { margin-top: 12px; font-size: 17px; color: var(--ink-2); max-width: 38em; }

/* ---------- Services ---------- */
.services { padding-top: 64px; background: var(--mist); }
.svc-grid { margin-top: 26px; display: grid; gap: 12px; }
.svc {
  position: relative; display: flex; flex-direction: column;
  background: #fff; border-radius: 22px; padding: 22px 20px 20px;
  box-shadow: 0 0 0 1px var(--line), var(--sh-2);
}
.svc h3 { font-size: 20px; line-height: 1.22; font-weight: 680; letter-spacing: -.022em; }
.svc > p:not(.svc-proof) { margin-top: 8px; margin-bottom: 16px; color: var(--ink-2); font-size: 16.5px; line-height: 1.52; }
.svc-proof {
  margin-top: auto; padding: 13px 16px 14px; border-radius: 14px;
  background: #F3F5FC; color: var(--ink-2); font-size: 15px; line-height: 1.48;
  box-shadow: inset 0 0 0 1px rgba(52, 72, 196, .06);
}
.proof-tag { display: block; font-weight: 650; color: var(--accent-ink); font-size: 14px; margin-bottom: 2px; letter-spacing: -.005em; }
.svc-link { display: block; font-weight: 600; color: var(--ink); transition: background-color .18s ease; }
.svc-link .i-down { display: inline-block; vertical-align: -4px; margin-left: 4px; }
.svc-link:hover { background: #E9EDFB; }

/* ---------- Projets (section sombre) ---------- */
.projects { background: var(--night); color: #fff; overflow: hidden; isolation: isolate; }
.projects-glow {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60% 360px at 12% 0%, rgba(70, 110, 255, .24), rgba(70,110,255,0) 100%),
    radial-gradient(45% 300px at 92% 0%, rgba(120, 100, 255, .16), rgba(120,100,255,0) 100%);
}
.on-dark .section-intro { color: #B4BCD0; }
.pj-grid { margin-top: 30px; display: grid; gap: 14px; }
.pj-noscript { margin-top: 24px; color: #D3D9E8; }
.pj-noscript a { text-decoration: underline; }

.pj {
  position: relative; display: block; overflow: hidden; isolation: isolate;
  height: 388px; border-radius: var(--r-lg);
  background: var(--card-bg);
  box-shadow: 0 30px 60px -30px rgba(0,0,0,.7);
  transition: transform .25s ease, box-shadow .25s ease;
  -webkit-tap-highlight-color: transparent;
}
.pj::after { /* filet intérieur */
  content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: 3; pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.10);
}
.pj:focus-visible { outline-offset: 4px; border-radius: var(--r-lg); }

/* Thèmes de cartes (champ « theme » de projects.js). --deep-rgb = couleur du voile bas */
.theme-bleu    { --deep-rgb: 20, 34, 120;  --card-bg: radial-gradient(130% 90% at 100% 0%, #8AA6FF 0%, #4C6CF2 28%, #2C47CF 55%, #182A8C 100%); }
.theme-vert    { --deep-rgb: 5, 62, 54;    --card-bg: radial-gradient(130% 90% at 100% 0%, #6AE8C8 0%, #1DAA8C 28%, #0E7A66 55%, #074B40 100%); }
.theme-orange  { --deep-rgb: 172, 50, 16;  --card-bg: radial-gradient(130% 90% at 100% 0%, #FFB27C 0%, #FF7A3D 26%, #DD5420 54%, #9A2E0E 100%); }
.theme-violet  { --deep-rgb: 58, 30, 150;  --card-bg: radial-gradient(130% 90% at 100% 0%, #C9B6FF 0%, #8F6BFF 28%, #6A44E0 55%, #36188F 100%); }
.theme-rose    { --deep-rgb: 128, 22, 70;  --card-bg: radial-gradient(130% 90% at 100% 0%, #FFB6D2 0%, #F06AA0 28%, #C93D78 55%, #7E1846 100%); }
.theme-ardoise { --deep-rgb: 24, 32, 54;   --card-bg: radial-gradient(130% 90% at 100% 0%, #B8C4DC 0%, #6E7FA3 28%, #46557A 55%, #1F2840 100%); }

.pj-window {
  position: absolute; z-index: 0;
  left: 20px; top: 20px; width: calc(100% + 110px);
  border-radius: 12px; overflow: hidden; background: #fff;
  box-shadow: 0 0 0 1px rgba(255,255,255,.3), 0 30px 60px -20px rgba(0,0,0,.5);
  transform-origin: top left;
  transition: transform .35s cubic-bezier(.2,.7,.2,1);
}
/* Copie « imprimée » de la capture : prend la couleur de la carte sous le titre */
.pj-window.is-ghost { mix-blend-mode: multiply; box-shadow: none; opacity: .6; }
.theme-orange .pj-window.is-ghost { display: none; }
.theme-orange .pj-veil {
  background: linear-gradient(0deg,
    rgba(var(--deep-rgb), .98) 0%,
    rgba(var(--deep-rgb), .95) 30%,
    rgba(var(--deep-rgb), .9) 53%,
    rgba(var(--deep-rgb), .55) 59%,
    rgba(var(--deep-rgb), .15) 65%,
    rgba(var(--deep-rgb), 0) 71%);
}
.pj > .pj-window:not(.is-ghost) {
  -webkit-mask-image: linear-gradient(180deg, #000 0, #000 112px, rgba(0,0,0,.3) 146px, transparent 162px);
          mask-image: linear-gradient(180deg, #000 0, #000 112px, rgba(0,0,0,.3) 146px, transparent 162px);
}
.win-bar {
  height: 30px; display: flex; align-items: center; gap: 6px; padding: 0 12px;
  background: #F1F3F8; border-bottom: 1px solid #E4E7EF;
}
.win-bar i { width: 9px; height: 9px; border-radius: 50%; background: #D3D8E3; }
.win-url {
  margin-left: 14px; font-size: 11.5px; color: #5A6275; background: #fff;
  border-radius: 6px; padding: 2px 10px; box-shadow: 0 0 0 1px #E4E7EF;
}
.win-shot { aspect-ratio: 16 / 10; background: #fff; }
.win-shot img { width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, center top); }

.pj-veil {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(0deg,
    rgba(var(--deep-rgb), .98) 0%,
    rgba(var(--deep-rgb), .92) 30%,
    rgba(var(--deep-rgb), .72) 46%,
    rgba(var(--deep-rgb), .3) 58%,
    rgba(var(--deep-rgb), 0) 68%);
}
.pj-body { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; padding: 22px; }
.pj-meta { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 14px; font-weight: 600; color: #fff; text-shadow: 0 1px 12px rgba(var(--deep-rgb), .6); }
.pj-live {
  font-size: 12.5px; font-weight: 600; color: #fff; text-shadow: none;
  padding: 3px 9px; border-radius: 999px; background: rgba(var(--deep-rgb), .55);
  box-shadow: 0 0 0 1px rgba(255,255,255,.32) inset;
}
.pj-title { margin-top: 4px; font-size: 46px; line-height: 1; font-weight: 720; letter-spacing: -.04em; color: #fff; text-shadow: 0 2px 30px rgba(var(--deep-rgb), .55); overflow-wrap: anywhere; }
.pj-desc { margin-top: 10px; font-size: 15.5px; line-height: 1.45; color: rgba(255,255,255,.92); max-width: 30em; }
.pj-more {
  margin-top: 14px; display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600;
  padding: 0 14px 0 17px; height: 40px; border-radius: 999px;
  background: #fff; color: rgb(var(--deep-rgb));
  box-shadow: 0 8px 20px -8px rgba(0,0,0,.45);
  transition: background-color .18s ease, transform .18s ease;
}
.pj-more .i-arrow { transition: transform .18s ease; }
@media (hover: hover) {
  .pj:hover { transform: translateY(-3px); }
  .pj:hover .pj-window { transform: translateY(-4px) scale(1.012); }
  .pj:hover .pj-more { background: #F1F4FF; }
  .pj:hover .pj-more .i-arrow { transform: translateX(3px); }
}

/* ---------- Parcours ---------- */
.path { background: var(--paper); }
.path-grid { display: grid; gap: 26px; }
.timeline { position: relative; display: grid; gap: 0; }
.timeline > li { position: relative; padding: 0 0 20px 30px; }
.timeline > li::before {
  content: ""; position: absolute; left: 5px; top: 10px; bottom: -10px; width: 2px; background: #E3E6EE;
}
.timeline > li:last-child::before { display: none; }
.timeline > li:last-child { padding-bottom: 0; }
.timeline > li::after {
  content: ""; position: absolute; left: 0; top: 5px; width: 12px; height: 12px; border-radius: 50%;
  background: #fff; box-shadow: 0 0 0 2px #C5CBDA;
}
.timeline > li.is-now::after { background: var(--accent); box-shadow: 0 0 0 4px rgba(47,82,224,.16); }
.tl-date { font-size: 14px; font-weight: 600; color: var(--ink-3); font-variant-numeric: tabular-nums; letter-spacing: -.005em; }
.is-now .tl-date { color: var(--accent-ink); }
.tl-body h3 { margin-top: 3px; font-size: 18.5px; line-height: 1.25; font-weight: 660; letter-spacing: -.02em; }
.tl-org { font-size: 15px; color: var(--ink-3); margin-top: 1px; }
.tl-body > p:not(.tl-org) { margin-top: 5px; font-size: 16px; line-height: 1.5; color: var(--ink-2); }
.tl-more { margin-top: 4px; }
.tl-more summary {
  display: inline-flex; align-items: center; gap: 6px; cursor: pointer; list-style: none;
  font-size: 15px; font-weight: 600; color: var(--accent-ink); min-height: 44px;
}
.tl-more summary::-webkit-details-marker { display: none; }
.tl-more summary::after {
  content: ""; width: 7px; height: 7px; border-right: 1.8px solid currentColor; border-bottom: 1.8px solid currentColor;
  transform: rotate(45deg) translateY(-2px); transition: transform .18s ease;
}
.tl-more[open] summary::after { transform: rotate(225deg) translate(-2px, 0); }
.tl-more ul { display: grid; gap: 6px; padding-left: 2px; }
.tl-more li { position: relative; padding-left: 16px; font-size: 15.5px; color: var(--ink-2); }
.tl-more li::before { content: ""; position: absolute; left: 0; top: .7em; width: 6px; height: 1.5px; background: #9AA3B6; }

.path-grid > .card { margin-top: -6px; }
.card {
  background: #fff; border-radius: 22px; padding: 20px 20px;
  box-shadow: 0 0 0 1px var(--line), var(--sh-2);
}
.card h3 { font-size: 18px; font-weight: 680; letter-spacing: -.02em; }
.edu-list { margin-top: 10px; display: grid; }
.edu-list li { display: grid; gap: 2px; align-content: start; padding: 11px 0; border-top: 1px solid var(--line); }
.edu-list li:first-child { border-top: 0; padding-top: 4px; }
.edu-list li:last-child { padding-bottom: 0; }
.edu-list strong { font-size: 15.5px; font-weight: 620; letter-spacing: -.01em; line-height: 1.35; }
.edu-list span { font-size: 14px; color: var(--ink-3); line-height: 1.45; }
.chips { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 6px; }
.chips li {
  font-size: 13.5px; font-weight: 530; color: var(--ink-2);
  padding: 5px 11px; border-radius: 999px; background: var(--paper-2);
  box-shadow: 0 0 0 1px var(--line) inset;
}

/* ---------- Contact ---------- */
.contact-wrap { padding: 0 0 48px; }
.contact {
  position: relative; overflow: hidden; isolation: isolate;
  border-radius: 28px; background: #0A0F2A; color: #fff;
  padding: 44px 20px 26px;
  box-shadow: 0 40px 80px -40px rgba(10,14,40,.6);
}
.contact-glow {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(70% 60% at 0% 0%, rgba(72, 116, 255, .55), rgba(72,116,255,0) 72%),
    radial-gradient(60% 55% at 100% 0%, rgba(140, 115, 255, .32), rgba(140,115,255,0) 72%),
    radial-gradient(60% 50% at 100% 100%, rgba(60, 90, 230, .26), rgba(60,90,230,0) 72%);
}
.mail-preview { display: none; }
.contact h2 { font-size: 34px; line-height: 1.08; font-weight: 720; letter-spacing: -.034em; text-wrap: balance; }
.contact-text { margin-top: 14px; font-size: 17px; color: #D3D9E8; max-width: 34em; }
.contact .btn-xl { margin-top: 26px; width: 100%; }
.i-mail { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linejoin: round; stroke-linecap: round; }
.contact-alt {
  margin-top: 12px; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 6px 6px 6px 18px; border-radius: 999px;
  background: rgba(255,255,255,.07); box-shadow: 0 0 0 1px rgba(255,255,255,.12) inset;
  max-width: 100%;
}
.mail-plain { font-size: 15.5px; font-weight: 550; color: #fff; letter-spacing: -.005em; -webkit-user-select: all; user-select: all; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.copy-btn {
  flex: none; display: inline-flex; align-items: center; gap: 7px; height: 44px; padding: 0 16px;
  border-radius: 999px; border: 0; background: rgba(255,255,255,.12); color: #fff; font-size: 14.5px; font-weight: 600; cursor: pointer;
  transition: background-color .18s ease, color .18s ease;
}
.copy-btn:hover { background: rgba(255,255,255,.2); }
.copy-btn svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.copy-btn .i-check { stroke-width: 2; }
.copy-btn .i-check, .copy-done, .copy-sel { display: none; }
.copy-btn.is-copied { background: #fff; color: #0A0F2A; }
.copy-btn.is-copied .i-copy, .copy-btn.is-copied .copy-idle,
.copy-btn.is-selected .copy-idle { display: none; }
.copy-btn.is-copied .i-check, .copy-btn.is-copied .copy-done,
.copy-btn.is-selected .copy-sel { display: inline; }
.t-wide { display: none; }
.t-narrow { display: inline; }

/* Autres moyens de contact (affichés seulement s'ils sont renseignés) */
.contact-more { margin-top: 12px; display: grid; gap: 10px; }
.btn-ghost {
  width: 100%; height: 52px; padding: 0 20px; font-size: 15.5px; gap: 9px; color: #fff;
  background: rgba(255,255,255,.07); box-shadow: 0 0 0 1px rgba(255,255,255,.16) inset;
}
.btn-ghost:hover { background: rgba(255,255,255,.14); }
.btn-ghost svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }
.phone-num { font-weight: 500; color: #C9D0E2; }
.phone-num::before { content: "·"; margin: 0 8px; color: rgba(255,255,255,.4); }
.site-footer .footer-siret { white-space: nowrap; }
.nowrap { white-space: nowrap; }
#projets :focus-visible, #contact :focus-visible { outline-color: #A9BBFF; }

.contact-foot { margin-top: 28px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.12); display: grid; gap: 10px; }
.contact-foot p { font-size: 15.5px; color: #C2C9DA; line-height: 1.55; }
.contact-foot .contact-zone { color: #fff; font-weight: 550; }

/* ---------- Pied de page ---------- */
.site-footer { padding: 0 0 92px; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 24px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 14.5px; color: var(--ink-3); }
.site-footer nav { display: flex; gap: 22px; }
.site-footer nav a { color: var(--ink-2); font-weight: 550; min-height: 44px; display: inline-flex; align-items: center; }
.site-footer nav a:hover { color: var(--ink); }

/* ---------- Barre CTA mobile ---------- */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  padding: 0 var(--gutter) calc(14px + env(safe-area-inset-bottom));
  transform: translateY(130%); transition: transform .2s ease; pointer-events: none;
}
.sticky-cta .btn {
  width: 100%; pointer-events: auto;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.14), 0 0 0 1px rgba(255,255,255,.32), 0 12px 30px -8px rgba(10,14,26,.55);
}
.sticky-cta.is-visible { transform: none; }

/* ---------- Fenêtre projet ---------- */
.modal {
  padding: 0; border: 0; margin: 0; inset: 0;
  width: 100%; max-width: 100%; height: 100%; height: 100dvh; max-height: 100%; max-height: 100dvh;
  background: #fff; color: var(--ink); overflow: hidden;
}
.modal:focus { outline: none; }
.modal::backdrop { background: rgba(7, 10, 22, .62); }
.modal[open] { display: flex; flex-direction: column; }
.modal-top {
  flex: none; height: 60px; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 0 8px 0 var(--gutter); border-bottom: 1px solid var(--line); background: #fff;
}
.modal-top-title { font-weight: 650; letter-spacing: -.015em; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.modal-close {
  flex: none; width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 999px; background: var(--paper-2); cursor: pointer;
  transition: background-color .15s ease;
}
.modal-close:hover { background: #EAECF3; }
.modal-close:focus:not(:focus-visible) { outline: none; }
.modal-close:focus-visible { outline-offset: 0; border-radius: 999px; }
.modal-close svg { width: 18px; height: 18px; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; fill: none; }
.modal-scroll { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.modal-media { position: relative; padding: 22px var(--gutter) 0; background: var(--card-bg); height: 220px; overflow: hidden; }
.modal-media::after { content: ""; position: absolute; inset: auto 0 0; height: 36px; background: linear-gradient(180deg, rgba(var(--deep-rgb), 0), rgba(var(--deep-rgb), .25)); pointer-events: none; }
.modal .modal-window { position: relative; left: 0; top: 0; width: 100%; max-width: 760px; margin: 0 auto; }
.modal-body { padding: 22px var(--gutter) 0; }
.modal-meta { font-size: 14px; font-weight: 600; color: var(--ink-3); }
.modal-body h2 { margin-top: 4px; font-size: 36px; line-height: 1.05; font-weight: 720; letter-spacing: -.035em; }
.modal-lead { margin-top: 10px; font-size: 17px; color: var(--ink-2); }
.modal-block { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }
.modal-block h3 { font-size: 16px; font-weight: 650; letter-spacing: -.01em; }
.modal-text p { margin-top: 6px; color: var(--ink-2); }
.modal-list { margin-top: 8px; display: grid; gap: 6px; }
.modal-list li { position: relative; padding-left: 18px; color: var(--ink-2); font-size: 16px; }
.modal-list li::before { content: ""; position: absolute; left: 2px; top: .72em; width: 7px; height: 1.6px; background: var(--accent-ink); }
.modal-nav { margin-top: 18px; padding: 6px 0 16px; display: flex; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); }
.modal-nav button {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 4px;
  border: 0; background: none; cursor: pointer; font-size: 15px; font-weight: 600; color: var(--ink-2);
}
.modal-nav button:hover { color: var(--ink); }
.modal-actions {
  flex: none; display: grid; gap: 8px;
  padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom));
  background: #fff; border-top: 1px solid var(--line);
  box-shadow: 0 -12px 24px -18px rgba(14,20,40,.25);
}
.modal-actions .btn { width: 100%; height: 50px; }
.modal-actions .i-ext { width: 17px; height: 17px; }
body.modal-open { overflow: hidden; }
.modal.is-fallback { position: fixed; z-index: 200; box-shadow: 0 0 0 100vmax rgba(7, 10, 22, .62); }

/* Très petits écrans (320 à 359 px) */
@media (max-width: 359.98px) {
  .hero h1 { font-size: 31px; }
  .pj-title { font-size: 40px; }
  .contact h2 { font-size: 30px; }
  .contact { padding: 36px 16px 22px; }
  .contact .btn-xl { padding: 0 18px; font-size: 17px; gap: 9px; }
  .contact-alt { flex-direction: column; align-items: stretch; gap: 6px; padding: 12px 6px 6px; border-radius: 22px; }
  .mail-plain { text-align: center; }
  .copy-btn { justify-content: center; }
  .contact-more { grid-template-columns: minmax(0, 1fr); }
  .btn-ghost { padding: 0 14px; gap: 7px; }
  .contact-more .t-long, .btn-ghost .phone-num::before { display: none; }
  .btn-ghost .phone-num { color: #fff; font-weight: 600; }
  html:not(.has-photo) .identity-since { display: none; }
  html:not(.has-photo) .identity-role { font-size: 14px; }
}

/* Écrans mobiles peu hauts (360×640, 320×568) : le bouton principal reste visible */
@media (max-width: 719.98px) and (max-height: 700px) {
  .hero { padding-top: calc(var(--header-h) + 12px); }
  .hero h1 { margin-top: 16px; }
}

/* Pied de page mobile : le SIRET passe sur sa propre ligne */
@media (max-width: 719.98px) {
  .site-footer [data-row="siret"] { display: block; }
  .footer-sep { display: none; }
}

/* =========================================================
   ≥ 720 px
   ========================================================= */
@media (min-width: 720px) {
  :root { --gutter: 32px; }
  .hero h1 { font-size: 52px; }
  .cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
  .cta-row .btn { width: auto; }
  .proofs { grid-template-columns: repeat(3, 1fr); }
  .proofs li + li { border-top: 0; border-left: 1px solid var(--line); }
  .proofs li { align-content: start; }
  .svc-grid { grid-template-columns: 1fr 1fr; gap: 20px; }
  .pj-grid { grid-template-columns: 1fr 1fr; gap: 20px; }
  .pj-feature { grid-column: 1 / -1; }
  .contact .btn-xl { width: auto; }
  .contact-alt { display: inline-flex; }
  .t-wide { display: inline; }
  .t-narrow { display: none; }
  .contact-more { display: flex; flex-wrap: wrap; gap: 10px; }
  .contact-more[data-count="3"] li { flex: 1 1 auto; }
  .btn-ghost { width: 100%; height: 48px; }
  .modal-media { height: 300px; padding: 32px 40px 0; }
  .modal-body { padding: 28px 40px 0; }
  .modal-actions { display: flex; flex-wrap: wrap; gap: 10px; padding: 16px 40px calc(16px + env(safe-area-inset-bottom)); }
  .modal-actions .btn { width: auto; height: 52px; }
  .modal-nav { margin-top: 26px; padding-bottom: 22px; }
}

/* =========================================================
   ≥ 1024 px · bureau
   ========================================================= */
@media (min-width: 1024px) {
  :root { --header-h: 72px; }
  .nav { display: flex; gap: 6px; margin-left: auto; margin-right: 10px; }
  .nav a { padding: 10px 14px; border-radius: 999px; font-size: 15.5px; font-weight: 550; color: var(--ink-2); transition: background-color .15s ease, color .15s ease; }
  .nav a:hover { color: var(--ink); background: rgba(10,14,26,.05); }
  .brand { font-size: 18.5px; }
  .btn-sm { height: 44px; padding: 0 20px; font-size: 15px; }

  .hero { padding-top: calc(var(--header-h) + 56px); }
  .hero-bg {
    background:
      radial-gradient(42% 46% at 0% 0%, rgba(125, 186, 255, .55) 0%, rgba(125,186,255,0) 72%),
      radial-gradient(46% 58% at 96% 6%, rgba(160, 140, 255, .62) 0%, rgba(160,140,255,0) 70%),
      radial-gradient(34% 44% at 100% 64%, rgba(255, 176, 128, .58) 0%, rgba(255,176,128,0) 72%),
      radial-gradient(30% 40% at 64% 40%, rgba(150, 190, 255, .40) 0%, rgba(150,190,255,0) 72%),
      radial-gradient(40% 40% at 18% 78%, rgba(196, 210, 255, .45) 0%, rgba(196,210,255,0) 72%),
      linear-gradient(180deg, #EDF1FD 0%, #F4F4FD 55%, var(--mist) 100%);
  }
  .hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 80px; align-items: center; }
  .avatar { display: none; }
  .identity-role .sep { display: inline; }
  .identity-role .role, .identity-role .place { display: inline; }
  .identity-name { font-size: 18px; }
  .identity-role { font-size: 15.5px; }
  /* Sans photo, la carte de visite porte l'identité : pas de doublon au-dessus du titre */
  html:not(.has-photo) .identity { display: none; }
  html:not(.has-photo) .hero h1 { margin-top: 0; }
  .hero h1 { margin-top: 22px; font-size: 60px; line-height: 1.04; letter-spacing: -.034em; font-weight: 700; }
  .h1-soft { display: block; }
  .lead { margin-top: 24px; font-size: 18.5px; line-height: 1.62; max-width: 34em; }
  .cta-row { margin-top: 34px; }
  .availability { margin-top: 20px; }

  /* Portrait (photo) ou carte de visite */
  .hero-visual { display: block; position: relative; padding: 0 0 28px; }
  .portrait {
    position: relative; margin: 0; width: 100%; aspect-ratio: 4 / 5;
    border-radius: 30px; background: #fff;
    box-shadow: 0 0 0 1px rgba(30,40,90,.05), 0 2px 4px rgba(14,20,40,.04), 0 24px 48px -16px rgba(40,50,120,.22), 0 60px 100px -40px rgba(60,60,160,.28);
  }
  .portrait-inner {
    position: absolute; inset: 6px; border-radius: 24px; overflow: hidden;
    background: var(--frame-bg);
  }
  .portrait-photo { position: absolute; inset: 0; }
  .portrait-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; }

  .vcard { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: space-between; padding: 28px 30px 104px; }
  .vcard::before { /* reflet doux, comme une lumière sur la carte */
    content: ""; position: absolute; z-index: -1; left: -30%; top: -24%; width: 120%; height: 70%;
    background: radial-gradient(closest-side, rgba(255,255,255,.55), rgba(255,255,255,0));
    pointer-events: none;
  }
  .vcard-mark { align-self: flex-start; display: grid; place-items: center; width: 58px; height: 58px; border-radius: 17px; background: rgba(255,255,255,.92); box-shadow: var(--sh-1); font-size: 21px; font-weight: 760; letter-spacing: -.04em; color: var(--ink); }
  .vcard-name { font-size: 50px; line-height: .98; font-weight: 720; letter-spacing: -.04em; color: var(--ink); }
  .vcard-role { margin-top: 14px; font-size: 18px; line-height: 1.35; color: var(--ink-2); font-weight: 500; max-width: 13em; text-wrap: balance; }

  .float-card {
    position: absolute; background: #fff; border-radius: 18px; box-shadow: 0 0 0 1px var(--line), var(--sh-3);
  }
  .float-place { left: -48px; bottom: 4px; display: flex; align-items: center; gap: 12px; padding: 13px 20px 13px 13px; }
  .float-place strong { display: block; font-size: 15px; font-weight: 650; letter-spacing: -.015em; line-height: 1.3; }
  .float-place small { display: block; font-size: 13.5px; color: var(--ink-3); margin-top: 1px; }
  .pin { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: #EEF2FF; color: var(--accent-ink); flex: none; }
  .pin svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; }

  .proofs { margin-top: 64px; }
  .proofs li { padding: 26px 32px; }
  .proofs strong { font-size: 18px; }
  .proofs span { font-size: 15px; }

  .section { padding: 120px 0; }
  .services { padding-top: 120px; }
  .section-head { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: end; }
  .section-head h2, .path-head h2 { font-size: 50px; letter-spacing: -.034em; line-height: 1.05; }
  .section-head .section-intro { margin: 0; font-size: 18.5px; max-width: 30em; padding-bottom: 6px; }
  .svc-grid { margin-top: 56px; gap: 24px; }
  .svc { padding: 36px 36px 32px; border-radius: 28px; }
  .svc h3 { font-size: 25px; }
  .svc > p:not(.svc-proof) { margin-top: 12px; margin-bottom: 28px; font-size: 17.5px; }
  .svc-proof { padding: 18px 20px; font-size: 15.5px; }

  .pj-grid { margin-top: 56px; gap: 24px; }
  .pj { height: 480px; border-radius: 28px; }
  .pj:focus-visible { border-radius: 28px; }
  .pj-window { left: 40px; top: 40px; width: calc(100% + 112px); }
  .pj > .pj-window:not(.is-ghost) {
    -webkit-mask-image: linear-gradient(180deg, #000 0, #000 176px, rgba(0,0,0,.3) 214px, transparent 232px);
            mask-image: linear-gradient(180deg, #000 0, #000 176px, rgba(0,0,0,.3) 214px, transparent 232px);
  }
  .pj-body { padding: 36px 40px; }
  .pj-title { font-size: 64px; }
  .pj-desc { font-size: 17px; }

  .theme-orange .pj-veil {
    background: linear-gradient(0deg,
      rgba(var(--deep-rgb), .98) 0,
      rgba(var(--deep-rgb), .95) 150px,
      rgba(var(--deep-rgb), .9) 226px,
      rgba(var(--deep-rgb), .5) 252px,
      rgba(var(--deep-rgb), .12) 278px,
      rgba(var(--deep-rgb), 0) 298px);
  }

  .pj-feature { height: 540px; }
  .pj-feature .pj-window { left: 31%; top: 56px; width: 960px; }
  .pj-feature > .pj-window:not(.is-ghost) {
    -webkit-mask-image: linear-gradient(90deg, transparent 0, transparent 100px, rgba(0,0,0,.45) 230px, #000 400px), linear-gradient(180deg, #000 0, #000 280px, rgba(0,0,0,.35) 380px, transparent 430px);
    -webkit-mask-composite: source-in;
            mask-image: linear-gradient(90deg, transparent 0, transparent 100px, rgba(0,0,0,.45) 230px, #000 400px), linear-gradient(180deg, #000 0, #000 280px, rgba(0,0,0,.35) 380px, transparent 430px);
            mask-composite: intersect;
  }
  .pj-feature .pj-veil {
    background:
      linear-gradient(90deg, rgba(var(--deep-rgb), .96) 0%, rgba(var(--deep-rgb), .85) 24%, rgba(var(--deep-rgb), .45) 40%, rgba(var(--deep-rgb), 0) 56%),
      linear-gradient(0deg, rgba(var(--deep-rgb), .8) 0%, rgba(var(--deep-rgb), 0) 38%);
  }
  .pj-feature .pj-body { right: auto; width: 52%; top: 0; display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start; padding: 48px; }
  .pj-feature .pj-title { font-size: 88px; }
  .pj-feature .pj-desc { max-width: 22em; font-size: 18px; }

  .path-grid {
    grid-template-columns: 400px 1fr; gap: 32px 88px;
    grid-template-areas: "head timeline" "tools timeline" "edu edu";
    grid-template-rows: auto 1fr auto;
  }
  .path-head { grid-area: head; }
  .timeline { grid-area: timeline; }
  .path-grid > .edu { grid-area: edu; margin-top: 24px; }
  .path-grid > .tools { grid-area: tools; align-self: start; margin-top: 16px; }
  .edu-list { grid-template-columns: 1fr 1fr; column-gap: 48px; }
  .edu-list li:nth-child(2) { border-top: 0; padding-top: 4px; }
  .edu-list li:nth-last-child(2) { padding-bottom: 0; }
  .path-head .section-intro { font-size: 18px; }
  .timeline > li { display: grid; grid-template-columns: 190px 1fr; gap: 24px; padding: 0 0 36px 36px; }
  .tl-date { padding-top: 2px; }
  .tl-body h3 { margin-top: 0; font-size: 21px; }
  .card { padding: 32px 34px; border-radius: 28px; }
  .card h3 { font-size: 19px; }
  .edu-list { margin-top: 14px; }
  .chips { gap: 7px; }
  .chips li { font-size: 14px; padding: 6px 12px; }

  .contact-wrap { padding: 0 0 96px; }
  .contact { padding: 88px 72px 56px; border-radius: 40px; }
  .contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) 440px; gap: 64px; align-items: center; }
  .mail-preview {
    display: block; background: #fff; color: var(--ink); border-radius: 22px; overflow: hidden;
    box-shadow: 0 0 0 1px rgba(255,255,255,.4), 0 40px 80px -30px rgba(0,0,0,.65);
  }
  .mp-head { display: flex; align-items: center; gap: 6px; padding: 14px 18px; background: #F3F5FA; border-bottom: 1px solid #E5E8F0; }
  .mp-dot { width: 9px; height: 9px; border-radius: 50%; background: #D3D8E3; }
  .mp-title { margin-left: 10px; font-size: 13.5px; font-weight: 600; color: var(--ink-3); }
  .mp-fields { margin: 0; padding: 4px 22px; }
  .mp-fields div { display: flex; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
  .mp-fields dt { width: 48px; color: var(--ink-3); flex: none; }
  .mp-fields dd { margin: 0; color: var(--ink); font-weight: 550; min-width: 0; overflow-wrap: anywhere; }
  .mp-body { padding: 18px 22px 8px; display: grid; gap: 12px; font-size: 15px; color: var(--ink-2); }
  .mp-line { display: flex; align-items: baseline; gap: 10px; }
  .mp-line b { font-weight: 600; color: var(--ink); white-space: nowrap; }
  .mp-line span { flex: 1; border-bottom: 1.5px dashed #D5DAE5; transform: translateY(-3px); }
  .mp-note { margin: 10px 22px 20px; padding: 10px 14px; border-radius: 12px; background: #EEF3FF; color: #2A44B8; font-size: 13.5px; font-weight: 550; text-wrap: balance; }
  .contact h2 { font-size: 62px; letter-spacing: -.038em; line-height: 1.03; }
  .contact-text { font-size: 20px; margin-top: 22px; }
  .contact .btn-xl { margin-top: 40px; height: 76px; padding: 0 44px; font-size: 20px; gap: 12px; }
  .contact-alt { margin-top: 18px; }
  .contact-more { margin-top: 14px; max-width: 600px; }
  .btn-ghost { padding: 0 18px; font-size: 15px; gap: 8px; }
  .t-long, .btn-ghost .phone-num::before { display: none; }
  .btn-ghost .phone-num { color: #fff; font-weight: 600; }
  .contact-foot { margin-top: 64px; grid-template-columns: 1.3fr 1fr; gap: 64px; }

  .site-footer { padding-bottom: 40px; }
  .sticky-cta { display: none; }

  .modal { inset: 0; width: min(960px, calc(100% - 48px)); height: auto; max-height: calc(100vh - 64px); max-height: calc(100dvh - 64px); margin: auto; border-radius: 28px; box-shadow: var(--sh-3); }
  .modal-top { height: 64px; padding: 0 12px 0 28px; }
  .modal-media { height: 340px; padding: 36px 48px 0; }
  .modal-body { padding: 32px 48px 0; }
  .modal-body h2 { font-size: 48px; }
  .modal-nav { padding-bottom: 28px; }
  .modal-actions { padding: 18px 48px 20px; }
}

@media (min-width: 1024px) and (max-width: 1279.98px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr) 340px; gap: 56px; }
  .hero h1 { font-size: 54px; }
  .float-place { left: -36px; }
  .vcard-name { font-size: 44px; }
  .path-grid { grid-template-columns: 320px 1fr; gap: 32px 56px; }
  .timeline > li { grid-template-columns: 170px 1fr; gap: 20px; }
  .contact { padding: 72px 56px 48px; }
  .contact-grid { grid-template-columns: minmax(0, 1fr) 360px; gap: 48px; }
  .contact h2 { font-size: 50px; }
  .contact .btn-xl { height: 68px; padding: 0 36px; font-size: 19px; }
  .contact-foot { gap: 48px; }
}

@media (min-width: 1280px) {
  .hero h1 { font-size: 68px; }
}

/* =========================================================
   Pages annexes : mentions légales, 404
   ========================================================= */
.page-hero { position: relative; isolation: isolate; margin-top: calc((var(--header-h) + 1px) * -1); padding: calc(var(--header-h) + 40px) 0 0; }
.page-hero .hero-bg { inset: 0 0 auto 0; height: 620px; }
.page-hero .hero-bg::after { height: 240px; }
.header-actions { display: flex; align-items: center; gap: 8px; }
.header-back { gap: 8px; }
@media (max-width: 419.98px) { .header-contact { display: none; } }
.header-back svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.legal { background: var(--mist); padding-bottom: 64px; }
.legal-head { max-width: 760px; margin: 0 auto; }
.legal-head h1 { font-size: 40px; line-height: 1.05; font-weight: 720; letter-spacing: -.034em; }
.legal-updated { margin-top: 10px; font-size: 15px; color: var(--ink-3); }
.legal-card {
  position: relative; max-width: 760px; margin: 28px auto 0;
  background: #fff; border-radius: 24px; padding: 8px 20px 28px;
  box-shadow: 0 0 0 1px var(--line), var(--sh-3);
}
.legal-card h2 { margin-top: 28px; font-size: 21px; line-height: 1.25; font-weight: 680; letter-spacing: -.022em; }
.legal-card p { margin-top: 10px; font-size: 16px; line-height: 1.6; color: var(--ink-2); }
.legal-card a:not(.btn) { color: var(--accent-ink); font-weight: 550; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.legal-list { margin: 12px 0 0; display: grid; }
.legal-list div { display: grid; gap: 2px; padding: 11px 0; border-top: 1px solid var(--line); }
.legal-list div:first-child { border-top: 0; }
.legal-list dt { font-size: 14px; font-weight: 600; color: var(--ink-3); }
.legal-list dd { margin: 0; font-size: 16px; color: var(--ink); overflow-wrap: anywhere; }
.legal + .site-footer { background: var(--mist); }

.notfound { min-height: 100vh; min-height: 100dvh; margin-top: calc((var(--header-h) + 1px) * -1); display: grid; place-items: center; padding: calc(var(--header-h) + 32px) var(--gutter) 48px; position: relative; isolation: isolate; }
.notfound .hero-bg::after { display: none; }
.notfound-card {
  width: 100%; max-width: 560px; text-align: center;
  background: rgba(255,255,255,.92); border-radius: 30px; padding: 44px 24px 32px;
  box-shadow: 0 0 0 1px var(--line), var(--sh-3);
}
.notfound-code { font-size: 14.5px; font-weight: 650; color: var(--accent-ink); letter-spacing: -.005em; }
.notfound h1 { margin-top: 10px; font-size: 38px; line-height: 1.05; font-weight: 720; letter-spacing: -.034em; text-wrap: balance; }
.notfound p:not(.notfound-code) { margin-top: 12px; color: var(--ink-2); }
.notfound .cta-row { margin-top: 28px; }

@media (min-width: 720px) {
  .legal-head h1 { font-size: 52px; }
  .legal-card { padding: 16px 44px 40px; border-radius: 30px; }
  .legal-card h2 { margin-top: 34px; font-size: 23px; }
  .legal-list div { grid-template-columns: 200px 1fr; gap: 20px; }
  .legal-list dt { font-size: 15px; padding-top: 1px; }
  .notfound-card { padding: 56px 56px 44px; }
  .notfound h1 { font-size: 48px; }
  .notfound .cta-row { justify-content: center; }
}
@media (min-width: 1024px) {
  .page-hero { padding-top: calc(var(--header-h) + 64px); }
  .legal { padding-bottom: 96px; }
  .legal-head h1 { font-size: 60px; }
  .legal-card { margin-top: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
