/* Portfolio Dorian Cavoit — CSS sans framework, mobile d'abord, thème clair/sombre automatique
   Une rampe de neutres teintée encre, une seule couleur d'accent (framboise du logo),
   Geist pour le texte, Geist Mono pour les stacks techniques et les dates. Grille de 4 px. */

:root {
  /* Marque */
  --accent: #c8324f;         /* bouton principal, logo, poste actuel */
  --accent-ink: #b02a45;     /* accent utilisé comme texte sur fond clair */
  --on-primary: #ffffff;

  /* Neutres teintés encre */
  --bg: #f6f7fa;
  --surface: #ffffff;
  --raised: #eceff4;
  --text: #141a2e;
  --text-2: #4a5266;
  --muted: #626a7f;
  --line: rgb(20 26 46 / 9%);
  --line-strong: rgb(20 26 46 / 16%);
  --positive: #16a34a;
  --band: #1e2a4f;           /* bandeau de contact */
  --band-line: rgb(255 255 255 / 14%);

  --primary-bg: #141a2e;     /* bouton principal : encre pleine sur fond clair */
  --shadow: 0 1px 2px rgb(20 26 46 / 5%);
  --img-dim: none;           /* captures claires : atténuées en thème sombre */

  --font: 'Geist', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: 'Geist Mono', ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --container: 1120px;
  --header: 64px;
  color-scheme: light;
}

/* Thème sombre : suit le système, sauf si le visiteur a choisi un thème avec le bouton
   (attribut data-theme posé sur <html>, mémorisé dans le navigateur) */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --accent: #ff5a78;
    --accent-ink: #ff5a78;
    --bg: #0b0e17;
    --surface: #11151f;
    --raised: #1a1f2b;
    --text: #eef0f5;
    --text-2: #a6adbd;
    --muted: #8189a0;
    --line: rgb(238 240 245 / 8%);
    --line-strong: rgb(238 240 245 / 16%);
    --positive: #4cc38a;
    --band: #18223f;
    --primary-bg: #eef0f5;     /* sur fond sombre : bouton blanc cassé, texte encre */
    --on-primary: #0b0e17;
    --img-dim: brightness(.82);
    --shadow: none;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --accent: #ff5a78;
  --accent-ink: #ff5a78;
  --bg: #0b0e17;
  --surface: #11151f;
  --raised: #1a1f2b;
  --text: #eef0f5;
  --text-2: #a6adbd;
  --muted: #8189a0;
  --line: rgb(238 240 245 / 8%);
  --line-strong: rgb(238 240 245 / 16%);
  --positive: #4cc38a;
  --band: #18223f;
  --primary-bg: #eef0f5;
  --on-primary: #0b0e17;
  --img-dim: brightness(.82);
  --shadow: none;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header) + 16px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 500; }
h2 { font-size: clamp(2rem, 2.4vw + 1rem, 2.75rem); line-height: 1.1; letter-spacing: -0.02em; text-wrap: balance; }
h3 { font-size: 1.25rem; line-height: 1.3; }
p { margin: 0 0 16px; }
strong { font-weight: 500; color: var(--text); }
p, li, dd { text-wrap: pretty; }
html { scrollbar-color: color-mix(in srgb, var(--text) 24%, transparent) var(--bg); }
::selection { background: color-mix(in srgb, var(--accent) 24%, transparent); color: var(--text); }
input, textarea { caret-color: var(--accent); }
/* Pendant un changement de thème, les couleurs basculent d'un coup au lieu de passer par du gris */
.theme-switching *, .theme-switching *::before, .theme-switching *::after { transition: none !important; }

.container { width: min(100% - 32px, var(--container)); margin-inline: auto; }
.muted { color: var(--muted); font-weight: 400; }
.mono { font-family: var(--mono); font-size: .8125rem; letter-spacing: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.top-anchor { position: absolute; top: 0; left: 0; width: 1px; height: 1px; }
.skip-link { position: absolute; left: 16px; top: -64px; z-index: 100; padding: 8px 16px; background: var(--primary-bg); color: var(--on-primary); border-radius: 8px; }
.skip-link:focus { top: calc(var(--header) + 8px); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* En-tête */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .18s var(--ease);
}
.site-header.scrolled { border-bottom-color: var(--line); }
.nav { display: flex; align-items: center; gap: 8px; height: var(--header); }
.brand { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; margin-right: auto; text-decoration: none; font-weight: 500; font-size: 1.0625rem; }

/* Bouton clair / sombre : affiche la lune en thème clair, le soleil en thème sombre */
.theme-toggle {
  display: grid; place-items: center; width: 40px; height: 40px; padding: 0;
  border: 1px solid color-mix(in srgb, var(--text) 24%, transparent); border-radius: 8px; background: var(--surface); color: var(--text-2); cursor: pointer;
  transition: color .15s var(--ease), background-color .15s var(--ease);
}
.theme-toggle:hover { color: var(--text); background: var(--raised); }
.theme-toggle svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .icon-sun { display: block; }
  :root:not([data-theme="light"]) .theme-toggle .icon-moon { display: none; }
}
.brand-mark { width: 20px; fill: var(--accent); }
.nav-menu { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-menu a {
  display: block; padding: 8px 12px; border-radius: 8px; text-decoration: none;
  color: var(--text-2); font-size: .9375rem;
  transition: color .15s var(--ease), background-color .15s var(--ease);
}
.nav-menu a:hover, .nav-menu a.active { color: var(--text); background: var(--raised); }
.nav-menu a.active:not(.nav-cta) { box-shadow: inset 0 -2px 0 var(--accent); }
.nav-menu .nav-cta { margin-left: 8px; background: var(--primary-bg); color: var(--on-primary); font-weight: 500; }
.nav-menu .nav-cta:hover { background: var(--primary-bg); color: var(--on-primary); opacity: .88; }
.nav-menu .nav-cta.active { background: var(--primary-bg); color: var(--on-primary); box-shadow: 0 0 0 2px var(--bg), 0 0 0 3px var(--line-strong); }
.nav-toggle { display: none; }

@media (max-width: 820px) {
  .theme-toggle { width: 44px; height: 44px; border-radius: 10px; }
  .nav-toggle { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid color-mix(in srgb, var(--text) 24%, transparent); border-radius: 10px; background: var(--surface); color: var(--text-2); cursor: pointer; }
  .nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after { display: block; width: 16px; height: 2px; background: currentColor; border-radius: 2px; position: relative; transition: transform .18s var(--ease); }
  .nav-toggle-bar::before, .nav-toggle-bar::after { content: ''; position: absolute; left: 0; }
  .nav-toggle-bar::before { top: -6px; }
  .nav-toggle-bar::after { top: 6px; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { transform: translateY(6px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar::after { transform: translateY(-6px) rotate(-45deg); }
  .nav-menu {
    position: absolute; inset: var(--header) 0 auto 0; flex-direction: column; align-items: stretch; gap: 4px;
    padding: 12px 16px 20px; background: var(--surface); border-bottom: 1px solid var(--line);
    display: none;
  }
  .nav-menu.open { display: flex; }
  .nav-menu.open { box-shadow: 0 0 0 100vmax rgb(5 7 12 / 40%); clip-path: inset(0 0 -100vh 0); }
  .nav-menu a { padding: 12px 12px; font-size: 1rem; }
  .nav-menu .nav-cta { margin: 8px 0 0; text-align: center; }
}

/* Boutons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 20px; border-radius: 10px;
  font-weight: 500; font-size: 1rem; line-height: 1.2; text-decoration: none;
  border: 1px solid transparent;
  transition: background-color .15s var(--ease), border-color .15s var(--ease), color .15s var(--ease), opacity .15s var(--ease), transform .12s var(--ease);
}
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--primary-bg); color: var(--on-primary); }
.btn-primary:hover { opacity: .88; }
.btn-meta { font-family: var(--mono); font-size: .75rem; font-weight: 400; color: var(--muted); }
.btn-ghost { background: var(--surface); border-color: var(--line-strong); color: var(--text); }
.btn-ghost:hover { background: var(--raised); }

/* Accueil : grand titre à gauche, portrait et fiche à droite */
.hero { display: grid; align-items: center; min-height: min(calc(100svh - var(--header)), 880px); padding: 64px 0 80px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 80px; align-items: center; }
.status { display: flex; align-items: baseline; gap: 8px; margin-bottom: 32px; font-family: var(--mono); font-size: .875rem; color: var(--text-2); }
.status a { color: var(--text); text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 4px; transition: text-decoration-color .15s var(--ease); }
.status a:hover { text-decoration-color: currentColor; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--positive); flex: none; transform: translateY(-1px); }
.hero h1 {
  font-size: clamp(2rem, 3.6vw + 1rem, 3.75rem); line-height: 1.05; letter-spacing: -0.03em;
  max-width: 18ch; margin-bottom: 32px; text-wrap: balance;
}
.hero h1 .h1-sub { color: var(--text-2); }
.lead { font-size: clamp(1.0625rem, .4vw + 1rem, 1.1875rem); line-height: 1.6; color: var(--text-2); max-width: 36rem; margin-bottom: 40px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.hero-aside { margin: 0; }
.hero-photo img {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 30%;
  border-radius: 16px; background: var(--raised); box-shadow: var(--shadow);
}
.facts { margin: 20px 0 0; font-family: var(--mono); font-size: .8125rem; }
.facts div { display: grid; grid-template-columns: 96px 1fr; gap: 12px; padding: 8px 0; border-top: 1px solid var(--line); }
.facts div:last-child { border-bottom: 1px solid var(--line); }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; color: var(--text); overflow-wrap: anywhere; }
.facts dd a { color: inherit; text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
.facts dd a:hover { text-decoration-color: currentColor; }

@media (max-width: 860px) {
  .hero { min-height: 0; padding: 48px 0 64px; }
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .status { margin-bottom: 24px; }
  .hero h1 { margin-bottom: 24px; max-width: none; }
  .lead { margin-bottom: 32px; }
  .hero-aside { display: grid; grid-template-columns: 128px 1fr; gap: 20px; align-items: center; }
  .facts { margin: 0; }
  .facts div { grid-template-columns: 1fr; gap: 0; }
}

/* Sections */
.section { padding: clamp(80px, 8vw, 128px) 0; border-top: 1px solid var(--line); }
.section-head { display: grid; gap: 16px; margin-bottom: 48px; max-width: 44rem; }
.section-head h2 { margin: 0; }
.section-intro { color: var(--text-2); max-width: 40rem; margin: 0; }

.about-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 64px; align-items: start; }
.about-grid .section-head { margin: 0; }
.about-text p { font-size: 1.125rem; line-height: 1.65; color: var(--text-2); }
.about-text p:last-child { margin-bottom: 0; }
@media (max-width: 820px) { .about-grid { grid-template-columns: 1fr; gap: 24px; } }

/* Compétences : une fiche technique, une ligne par domaine */
.specs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 48px; margin: 0; }
.spec { padding-top: 16px; border-top: 2px solid var(--line-strong); }
.spec dt { font-weight: 500; margin-bottom: 12px; }
.spec dd { margin: 0; }
/* en colonnes à partir de la tablette ; sur téléphone, la liste reste en ligne pour rester courte */

.stack { display: flex; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; font-family: var(--mono); font-size: .875rem; line-height: 1.7; color: var(--text-2); }
.stack li:not(:last-child)::after { content: '·'; content: '·' / ''; padding: 0 8px; color: var(--muted); }
@media (max-width: 860px) { .specs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 24px; } }
@media (max-width: 480px) { .specs { grid-template-columns: 1fr; } }

/* Parcours : dates à gauche, postes à droite */
.timeline { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-strong); }
.timeline-item { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 24px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.timeline-date { display: flex; align-items: center; gap: 8px; height: 28px; margin: 0; font-family: var(--mono); font-size: .8125rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.timeline-item.current .timeline-date { color: var(--text); }
.timeline-item.current .timeline-date::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.timeline-item h3 { margin-bottom: 8px; }
.timeline-item p:last-child { color: var(--text-2); max-width: 56ch; margin: 0; }
@media (max-width: 720px) { .timeline-item { grid-template-columns: 1fr; gap: 4px; } }

/* Projets : deux projets en vedette en pleine largeur, puis les autres en lignes compactes
   (toutes les captures sont au format 16:10) */
.projects { display: grid; gap: 80px; }

.project-feature { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 48px; align-items: center; }
.project-feature-reverse { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.project-figure { margin: 0; }
.project-figure figcaption { margin-top: 8px; font-family: var(--mono); font-size: .75rem; color: var(--muted); }
.project-visual {
  position: relative; aspect-ratio: 16 / 10; overflow: hidden;
  background: var(--raised); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow);
}
.project-visual picture { display: block; width: 100%; height: 100%; }
.project-visual img { display: block; width: 100%; height: 100%; object-fit: contain; }
.project-visual-rafy { background: #060607; }
/* Captures cliquables : elles s'ouvrent en grand dans une fenêtre (voir .lightbox) */
.project-zoom { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.project-zoom img { transition: opacity .15s var(--ease); }
.project-zoom:hover img { opacity: .9; }
.project-visual .project-zoom:focus-visible { outline-offset: -4px; border-radius: 12px; }
.project-visual img, .project-thumb img { filter: var(--img-dim); }
.project-visual-rafy img { filter: none; }  /* capture déjà sombre */
.project-tag { margin-bottom: 8px; font-family: var(--mono); font-size: .8125rem; color: var(--muted); }
.project-body h3 { font-size: clamp(1.75rem, 1.2vw + 1.25rem, 2.25rem); line-height: 1.1; letter-spacing: -0.02em; margin-bottom: 16px; }
.project-pitch { color: var(--text-2); }
.project-role { display: flex; align-items: center; gap: 8px; margin: 0 0 16px; font-size: .9375rem; font-weight: 500; }
.project-role::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex: none; }
.project-points { margin: 0 0 24px; padding-left: 20px; color: var(--text-2); }
.project-points li { margin-bottom: 8px; padding-left: 4px; }
.project-points li::marker { color: var(--muted); }
.project-body .stack { padding-top: 16px; border-top: 1px solid var(--line); font-size: .8125rem; }
.project-demo { margin: 16px 0 0; font-size: .9375rem; }
.project-demo a, .offer-proof a { color: var(--text); text-decoration-color: var(--accent); text-underline-offset: 4px; transition: text-decoration-color .15s var(--ease); }
.project-demo a:hover, .offer-proof a:hover { text-decoration-color: currentColor; }

/* Autres projets : vignette, texte, lien éventuel */
.project-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-strong); }
.project-row { display: grid; grid-template-columns: 208px minmax(0, 1fr); gap: 32px; align-items: start; padding: 28px 0; border-bottom: 1px solid var(--line); }
.project-thumb { display: block; height: auto; border-radius: 8px; }
.thumb-note { margin: 8px 0 0; font-family: var(--mono); font-size: .75rem; color: var(--muted); }
.project-thumb img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; border-radius: 8px; border: 1px solid var(--line); background: var(--raised); }
.project-row-body h3 { margin-bottom: 8px; }
.project-row-body .project-pitch { max-width: 52ch; margin-bottom: 12px; }
.project-row-body .stack { font-size: .8125rem; }
.project-row-body .project-demo { margin-top: 8px; }

@media (max-width: 900px) {
  .projects { gap: 64px; }
  .project-feature { grid-template-columns: 1fr; gap: 24px; }
  .project-feature-reverse { grid-template-columns: 1fr; }
  .project-row { grid-template-columns: 112px minmax(0, 1fr); gap: 16px; padding: 24px 0; }
}

/* Offres : quatre missions, sans cartes, lues comme une liste */
.offers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 64px; border-top: 1px solid var(--line-strong); }
.offer { padding: 28px 0 32px; border-bottom: 1px solid var(--line); }
.offer h3 { margin-bottom: 8px; }
.offer p { color: var(--text-2); margin: 0; max-width: 44ch; }
.offer .offer-proof { margin-top: 12px; font-size: .875rem; color: var(--muted); }
/* Démarche : quatre étapes numérotées, l'ordre compte */
.process { margin-top: 64px; }
.process h3 { margin-bottom: 24px; }
.process-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; list-style: none; margin: 0; padding: 0; counter-reset: step; }
.process-steps li { counter-increment: step; padding-top: 16px; border-top: 2px solid var(--line-strong); }
.process-steps li::before { content: counter(step); display: block; margin-bottom: 12px; font-family: var(--mono); font-size: .8125rem; color: var(--accent-ink); }
.process-steps h4 { margin: 0 0 8px; font-size: 1.0625rem; font-weight: 500; line-height: 1.3; }
.process-steps p { margin: 0; font-size: .9375rem; color: var(--text-2); }
@media (max-width: 860px) { .process-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 24px; } }
@media (max-width: 480px) { .process-steps { grid-template-columns: 1fr; gap: 24px; } }
.offers-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin: 40px 0 0; }
.offers-cta span { font-size: .9375rem; color: var(--text-2); }
@media (max-width: 760px) { .offers { grid-template-columns: 1fr; } }

/* Contact */
.contact { background: var(--band); color: #fff; border-top: 1px solid var(--band-line); }
.contact-inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 48px; align-items: end; }
.contact-inner h2 { font-size: clamp(2.5rem, 3.4vw + 1rem, 3.75rem); line-height: 1.05; letter-spacing: -0.03em; margin-bottom: 20px; max-width: 16ch; }
.contact-inner p { margin: 0; color: rgb(255 255 255 / 72%); font-size: 1.125rem; }
.contact-actions { display: grid; justify-items: start; gap: 12px; }
.contact-email { display: flex; flex-wrap: wrap; gap: 12px; }
.contact .btn-primary { background: #fff; color: #141a2e; font-family: var(--mono); font-size: .9375rem; }
.btn-band { background: transparent; border-color: rgb(255 255 255 / 44%); color: #fff; cursor: pointer; font-family: inherit; }
.btn-band:hover { background: rgb(255 255 255 / 8%); border-color: rgb(255 255 255 / 48%); }
.contact .copy-status { min-height: 24px; font-family: var(--mono); font-size: .8125rem; color: rgb(255 255 255 / 72%); }
.contact-links { display: flex; gap: 24px; list-style: none; margin: 0; padding: 0; }
.contact-links a { display: inline-block; padding: 12px 0; color: rgb(255 255 255 / 80%); text-decoration: underline; text-decoration-color: rgb(255 255 255 / 30%); text-underline-offset: 4px; transition: color .15s var(--ease), text-decoration-color .15s var(--ease); }
.contact-links a:hover { color: #fff; text-decoration-color: #fff; }
.contact :focus-visible { outline-color: #fff; }
@media (max-width: 760px) { .contact-inner { grid-template-columns: 1fr; gap: 32px; align-items: start; } }

/* Capture agrandie */
.lightbox {
  width: fit-content; max-width: calc(100% - 32px); max-height: calc(100% - 32px); padding: 0;
  border: 1px solid var(--line-strong); border-radius: 12px; background: var(--surface); color: var(--text); overflow: hidden;
}
.lightbox::backdrop { background: rgb(5 7 12 / 82%); }
.lightbox img { display: block; width: auto; height: auto; max-width: 100%; max-height: calc(100vh - 34px); }
.lightbox form { position: absolute; top: 8px; right: 8px; z-index: 1; margin: 0; }
.lightbox-hint { display: none; }
.lightbox-close {
  display: grid; place-items: center; width: 44px; height: 44px; padding: 0; cursor: pointer;
  border: 1px solid rgb(255 255 255 / 20%); border-radius: 10px; background: rgb(11 14 23 / 72%); color: #fff;
}
.lightbox-close:hover { background: rgb(11 14 23 / 90%); }
.lightbox-close svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; }
.lightbox[open] { animation: lightbox-in .2s var(--ease); }
@media (max-width: 600px) {
  .lightbox { overflow: auto; }
  .lightbox form { position: fixed; top: 12px; right: 12px; }
  .lightbox-hint { display: block; position: sticky; left: 0; width: max-content; margin: 0; padding: 8px 12px; font-family: var(--mono); font-size: .75rem; color: var(--text-2); }
  .lightbox img { max-width: none; max-height: calc(100vh - 34px); width: auto; }
}
@keyframes lightbox-in { from { opacity: 0; transform: scale(.98); } }
@media (prefers-reduced-motion: reduce) { .lightbox[open] { animation: none; } }

/* Mentions légales */
.legal { border-top: 0; }
.legal .container > * { max-width: 760px; }
.legal p { max-width: 37rem; }
.legal h1 { font-size: clamp(2.5rem, 3vw + 1.5rem, 3.5rem); line-height: 1.05; letter-spacing: -0.03em; margin-bottom: 48px; }
.legal section + section { margin-top: 48px; }
.legal h2 { font-size: 1.5rem; letter-spacing: -0.01em; margin-bottom: 16px; }
.legal p { color: var(--text-2); }
.legal a { color: var(--text); text-underline-offset: 4px; text-decoration-color: var(--line-strong); }
.legal a:hover { text-decoration-color: currentColor; }
.legal-list { margin: 0; border-top: 1px solid var(--line-strong); }
.legal-list div { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.legal-list dt { color: var(--muted); }
.legal-list dd { margin: 0; overflow-wrap: anywhere; }
.legal-back { min-height: 40px; padding: 8px 16px; font-size: .9375rem; }
.brand { white-space: nowrap; }
@media (max-width: 600px) { .legal-list div { grid-template-columns: 1fr; gap: 0; } }

/* Pied de page */
.site-footer { padding: 24px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: .875rem; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }
.footer-inner p { margin: 0; }
.footer-links { display: flex; gap: 24px; }
.back-to-top, .footer-links a { display: inline-block; padding: 12px 0; margin: -12px 0; text-decoration: none; transition: color .15s var(--ease); }
.back-to-top:hover, .footer-links a:hover { color: var(--text); }

/* Apparition au défilement : un léger fondu par bloc de section, rien d'autre */
.reveal { opacity: 1; transform: none; }
.js .reveal { opacity: 0; transform: translateY(8px); transition: opacity .4s var(--ease), transform .4s var(--ease); }
.js .reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn:active { transform: none; }
}

@media print {
  .site-header, .hero-actions, .offers-cta, .copy-email, .copy-status, .contact-links, .back-to-top { display: none; }
  .reveal { opacity: 1 !important; transform: none !important; }
  .contact { background: none; color: inherit; }
  .contact .btn-primary { background: none; color: inherit; padding: 0; min-height: 0; }
}
