/* =========================================================
   Portfolio Ethan Morel — écran d'accueil
   ========================================================= */
:root {
  --bg: #05070c;
  --ink: #f2f0ea;
  --ink-soft: #c9cbd3;
  --muted: #8c93a3;
  --gold: #f2b84b;
  --gold-hi: #ffd88a;
  --gold-soft: rgba(242, 184, 75, .16);
  --blue: #7fb6ff;
  --panel: rgba(8, 12, 22, .62);
  --line: rgba(255, 255, 255, .14);
  --display: "Exo 2", "Segoe UI", sans-serif;
  --ui: "Rajdhani", "Segoe UI", sans-serif;
  --pad: clamp(16px, 2.6vw, 40px);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--ui);
  font-size: 15px;
  line-height: 1.4;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
img { display: block; max-width: 100%; }
h1, h2, p { margin: 0; }
:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 3px; }

/* ---------- Fond vidéo ---------- */
.bg { position: fixed; inset: 0; z-index: 0; overflow: hidden; background: #000 url("../images/banniere-poster.jpg") center / cover; }
.bg video {
  position: absolute; inset: -3%; width: 106%; height: 106%; object-fit: cover;
  transform: translate3d(var(--px, 0), var(--py, 0), 0);
  transition: transform .8s cubic-bezier(.2,.7,.2,1), filter 1.2s ease;
  filter: saturate(1.05) brightness(.95);
}
body:not(.started) .bg video { filter: saturate(.9) brightness(.6) blur(2px); }
.shade {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(3,5,10,.7) 0%, rgba(3,5,10,.3) 26%, transparent 48%),
    linear-gradient(0deg, rgba(3,5,10,.55) 0%, transparent 16%);
}

/* ---------- Marque ---------- */
.brand { display: inline-grid; justify-items: start; gap: 6px; }
.brand-logo { width: 52px; height: 52px; margin: -8px 0 -4px -8px; overflow: visible; filter: drop-shadow(0 0 8px rgba(255, 216, 138, .4)); }
.brand-logo .orbit, .brand-logo .planet { fill: none; stroke: var(--ink); stroke-width: 1.3; }
.brand-logo .planet { fill: #0b0e16; }
.brand-logo .cam { fill: var(--gold-hi); }
.brand-title { display: grid; font-family: var(--display); font-weight: 300; text-transform: uppercase; line-height: 1.02; font-size: clamp(30px, 3.6vw, 54px); letter-spacing: .32em; text-shadow: 0 0 24px rgba(255,255,255,.25); }
.brand-title span:last-child { padding-left: .9em; }
.brand-sub {
  display: flex; align-items: center; gap: 12px; width: 100%;
  font-size: 12px; font-weight: 600; letter-spacing: .38em; text-transform: uppercase; color: var(--ink-soft);
}
.brand-sub::before, .brand-sub::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, rgba(255,255,255,.45), transparent); }

/* ---------- Écran titre ---------- */
.intro {
  position: fixed; inset: 0; z-index: 20; display: grid; place-content: center; justify-items: center; gap: 56px; text-align: center; padding: var(--pad);
  cursor: pointer; transition: opacity .9s ease, visibility .9s, transform 1.2s cubic-bezier(.2,.7,.2,1);
}
.intro:focus-visible { outline: none; }
.intro .brand { justify-items: center; }
.brand-lg .brand-title { font-size: clamp(44px, 8vw, 112px); }
.brand-lg .brand-logo { width: 84px; height: 84px; margin: 0 0 -6px; }
.brand-lg .brand-title span:last-child { padding-left: 0; }
.discover {
  display: inline-flex; align-items: center; gap: 18px; padding: 16px 34px; border: 1px solid var(--gold); border-radius: 3px;
  font-size: 16px; font-weight: 600; letter-spacing: .3em; text-transform: uppercase; color: var(--gold-hi);
  background: linear-gradient(90deg, rgba(242,184,75,.28), rgba(242,184,75,.08));
  box-shadow: 0 0 26px rgba(242,184,75,.3), inset 0 0 16px rgba(242,184,75,.15);
  animation: glow 2.4s ease-in-out infinite; transition: transform .3s, background .3s;
}
.discover span { font-size: 26px; line-height: 0; transition: transform .3s; }
.intro:hover .discover, .intro:focus-visible .discover { transform: translateY(-2px); background: linear-gradient(90deg, rgba(242,184,75,.42), rgba(242,184,75,.14)); }
.intro:hover .discover span { transform: translateX(5px); }
@keyframes glow { 50% { box-shadow: 0 0 42px rgba(242,184,75,.5), inset 0 0 20px rgba(242,184,75,.25); } }
.intro-foot { position: absolute; bottom: 28px; left: 0; right: 0; font-size: 12px; letter-spacing: .3em; text-transform: uppercase; color: var(--muted); padding: 0 var(--pad); }
@keyframes blink { 50% { opacity: .25; } }
body.started .intro { opacity: 0; visibility: hidden; transform: scale(1.06); pointer-events: none; }

/* ---------- Menu principal ---------- */
.home { position: fixed; inset: 0; z-index: 10; padding: var(--pad); visibility: hidden; }
body.started .home { visibility: visible; }
.home > * { opacity: 0; transform: translateX(-24px); transition: opacity .8s ease var(--d, 0s), transform .9s cubic-bezier(.2,.7,.2,1) var(--d, 0s); }
.home > .side-panel { transform: translateX(24px); }
.home > .bottom { transform: translateY(16px); }
body.started .home > * { opacity: 1; transform: none; }
.left { --d: .3s; position: absolute; top: 0; bottom: 0; padding: calc(var(--pad) + 6px) 0 74px; left: var(--pad); width: min(360px, 34vw); display: flex; flex-direction: column; gap: clamp(24px, 5vh, 52px); }
.top-left { padding-left: 8px; }
/* nom en haut à gauche, menu centré verticalement (sans jamais passer sous le nom) */
.left .menu { position: absolute; left: 0; right: 0; top: max(50%, 370px); transform: translateY(-50%); }
.side-panel { --d: .6s; position: absolute; top: calc(var(--pad) + 6px); right: var(--pad); width: min(330px, 30vw); display: grid; gap: 14px; }
.bottom { --d: .9s; position: absolute; left: var(--pad); right: var(--pad); bottom: 18px; display: flex; justify-content: space-between; align-items: center; }

.menu ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.menu-item {
  position: relative; width: 100%; display: flex; align-items: center; gap: 16px; text-align: left;
  padding: 12px 16px; border: 1px solid transparent; border-radius: 3px;
  transition: background .25s, border-color .25s, box-shadow .25s, transform .25s;
}
.mi-icon { flex: none; width: 24px; height: 24px; color: var(--ink); }
.mi-icon svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.mi-icon .fill { fill: currentColor; stroke: none; }
.mi-icon .cut { fill: #0a0d16; stroke: none; }
.mi-text { flex: 1; display: grid; }
.mi-text b { font-size: 18px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; line-height: 1.15; }
.mi-text small { font-size: 12px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); transition: color .25s; }
.mi-arrow { font-size: 30px; line-height: 1; color: var(--gold-hi); opacity: 0; transform: translateX(-6px); transition: opacity .25s, transform .25s; }
.menu-item.selected {
  border-color: var(--gold);
  background: linear-gradient(90deg, rgba(242, 184, 75, .34), rgba(242, 184, 75, .1) 70%, rgba(242, 184, 75, .04));
  box-shadow: 0 0 24px rgba(242, 184, 75, .25), inset 0 0 18px rgba(242, 184, 75, .15);
  transform: translateX(6px);
}
.menu-item.selected::before { content: ""; position: absolute; left: -1px; top: 6px; bottom: 6px; width: 3px; background: var(--gold-hi); box-shadow: 0 0 10px var(--gold); }
.menu-item.selected .mi-text small { color: var(--gold-hi); }
.menu-item.selected .mi-arrow { opacity: 1; transform: none; }

/* ---------- Panneaux ---------- */
.panel {
  display: block; background: var(--panel); border: 1px solid var(--line); border-radius: 4px; padding: 16px 18px;
  backdrop-filter: blur(10px) saturate(130%); -webkit-backdrop-filter: blur(10px) saturate(130%);
  box-shadow: 0 18px 40px -18px rgba(0,0,0,.7);
}
.panel-title { font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; padding-bottom: 10px; margin-bottom: 12px; border-bottom: 1px solid var(--line); }
.bar { height: 3px; background: rgba(255,255,255,.12); border-radius: 2px; overflow: hidden; }
.bar span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #d88f22, var(--gold-hi)); box-shadow: 0 0 8px var(--gold); transition: width 1.6s cubic-bezier(.2,.7,.2,1) 1.1s; }
body.started .bar span { width: var(--w); }

.dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #62e39b; box-shadow: 0 0 8px #62e39b; margin-right: 8px; animation: blink 1.6s ease-in-out infinite; }

.goals ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.goals li > div:first-child { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; font-weight: 500; margin-bottom: 5px; }
.goals b { font-weight: 600; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.goals li.active span { color: var(--gold-hi); }
.goals li.active .bar span { animation: pulsebar 2s ease-in-out infinite; }
@keyframes pulsebar { 50% { opacity: .5; } }
.reward { display: flex; align-items: center; gap: 10px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.reward span { color: var(--gold); font-size: 16px; text-shadow: 0 0 10px var(--gold); }

.promo { padding: 14px; transition: border-color .3s, transform .3s; }
.promo:hover { border-color: rgba(242, 184, 75, .6); transform: translateY(-3px); }
.promo .panel-title { border: 0; padding: 0; margin-bottom: 10px; }
.promo figure { margin: 0 0 10px; aspect-ratio: 16 / 8; overflow: hidden; border-radius: 2px; }
.promo img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s; }
.promo:hover img { transform: scale(1.06); }
.promo p { font-size: 13px; color: var(--ink-soft); }

/* ---------- Barre du bas ---------- */
.keys { display: flex; gap: 26px; font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); }
.keys span { display: flex; align-items: center; gap: 8px; }
kbd { font: 600 11px var(--ui); letter-spacing: .08em; padding: 3px 8px; border: 1px solid rgba(255,255,255,.4); border-radius: 3px; background: rgba(0,0,0,.35); color: var(--ink); }
.icons { display: flex; gap: 6px; }
.icons a, .icons button { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 4px; color: var(--ink-soft); transition: color .25s, background .25s; }
.icons a:hover, .icons button:hover { color: var(--gold-hi); background: rgba(255,255,255,.06); }
.icons svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 20px; background: rgba(2,3,8,.9); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); opacity: 0; visibility: hidden; transition: opacity .4s, visibility .4s; }
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox-inner { width: min(1100px, 100%); aspect-ratio: 16 / 9; border: 1px solid var(--gold); box-shadow: 0 0 60px rgba(242,184,75,.25); }
.lightbox-inner iframe { width: 100%; height: 100%; border: 0; display: block; }
.lightbox-close { position: absolute; top: 18px; right: 18px; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 4px; font-size: 26px; background: var(--panel); }

/* ---------- Écrans plus petits ---------- */
@media (max-height: 940px) and (min-width: 901px) { .promo figure { display: none; } }
@media (max-height: 800px) and (min-width: 901px) {
  .promo { display: none; }
  .menu-item { padding: 10px 14px; }
}
@media (max-height: 700px) and (min-width: 901px) {
  .menu-item small { display: none; }
  .goals { display: none; }
}
@media (max-width: 900px) {
  body { overflow-y: auto; }
  .home { position: relative; inset: auto; min-height: 100%; display: flex; flex-direction: column; justify-content: center; gap: 24px; padding: 28px 16px 24px; }
  .home > .left, .home > .side-panel { width: 100% !important; max-width: 520px; margin: 0 auto; }
  .left .menu { position: static; transform: none; }
  .home > *, .left { position: static !important; width: auto !important; }
  .left { display: flex; gap: 24px; }
  .promo figure { display: block; }
  .top-left { padding: 0 4px; }
  .brand-title { font-size: 34px; }
  .menu { margin-top: 8px; }
  .bottom { flex-direction: column; gap: 14px; }
  .keys { display: none; }
  body:not(.started) .home { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .discover, .dot, .goals li.active .bar span { animation: none; }
  .home > *, .intro, .bar span, .bg video { transition: none !important; }
}

/* =========================================================
   Pages intérieures (projets…)
   ========================================================= */
body.page { overflow-x: hidden; overflow-y: auto; min-height: 100vh; display: flex; flex-direction: column; }
.bg-dim .shade { background-color: rgba(3, 5, 10, .45); }
.progress { position: fixed; top: 0; left: 0; right: 0; z-index: 30; height: 2px; background: rgba(255,255,255,.08); }
.progress span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #d88f22, var(--gold-hi)); box-shadow: 0 0 10px var(--gold); transition: width .5s cubic-bezier(.2,.7,.2,1); }

.page-head { position: relative; z-index: 5; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; padding: 18px var(--pad) 0; }
.back { justify-self: start; display: inline-flex; align-items: center; gap: 10px; padding: 8px 0; font-size: 13px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; transition: border-color .25s, color .25s; }
.back span { font-size: 22px; line-height: 0; color: var(--gold-hi); }
.back:hover { color: var(--gold-hi); }
.brand-sm { display: inline-flex; align-items: center; gap: 4px; }
.brand-sm .brand-logo { width: 46px; height: 46px; margin: 0; }
.brand-name { font-family: var(--display); font-weight: 300; font-size: 15px; letter-spacing: .34em; text-transform: uppercase; }
.counter { justify-self: end; font-family: var(--display); font-weight: 300; font-size: 15px; letter-spacing: .14em; color: var(--muted); font-variant-numeric: tabular-nums; }
.counter b { font-weight: 400; font-size: 22px; color: var(--gold-hi); }

.projects-page { position: relative; z-index: 5; flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; padding: 18px 0 8px; }
.page-title { text-align: center; padding: 0 var(--pad); }
.page-title h1 { font-family: var(--display); font-weight: 300; font-size: clamp(28px, 3.4vw, 46px); letter-spacing: .3em; text-transform: uppercase; padding-left: .3em; text-shadow: 0 0 24px rgba(255,255,255,.2); }
.page-title p { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 8px; font-size: 14px; letter-spacing: .08em; color: var(--ink-soft); }
.page-title p::before, .page-title p::after { content: ""; width: 60px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold)); }
.page-title p::after { transform: scaleX(-1); }

.tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; padding: 0 var(--pad); }
.tab { padding: 8px 16px; font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); border-bottom: 2px solid transparent; transition: color .25s, border-color .25s, background .25s; }
.tab:hover { color: var(--ink); }
.tab.active { color: var(--gold-hi); border-bottom-color: var(--gold); background: linear-gradient(0deg, rgba(242,184,75,.16), transparent); }

/* Carrousel de cartes verticales */
.carousel { --cw: clamp(170px, min(17vw, 29vh), 270px); position: relative; width: 100%; }
.cards {
  list-style: none; margin: 0; display: flex; gap: clamp(14px, 1.6vw, 26px); align-items: center;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none;
  padding: 34px calc(50% - var(--cw) / 2);
}
.cards::-webkit-scrollbar { display: none; }
.card { flex: none; width: var(--cw); scroll-snap-align: center; transition: transform .5s cubic-bezier(.2,.7,.2,1), opacity .5s, filter .5s; opacity: .85; filter: saturate(.8) brightness(.8); transform: scale(.92); }
.card[hidden] { display: none; }
.card-btn { position: relative; display: block; width: 100%; aspect-ratio: 10 / 14; overflow: hidden; border-radius: 4px; border: 1px solid var(--line); background: #0b0e16; text-align: center; transition: border-color .4s, box-shadow .4s; }
.card-btn img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(.2,.7,.2,1); }
.card-btn::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(3,5,10,.92)); }
.card-text { position: absolute; z-index: 1; left: 12px; right: 12px; bottom: 18px; display: grid; gap: 4px; }
.card-text b { font-size: clamp(15px, 1.25vw, 19px); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; line-height: 1.15; }
.card-text small { font-size: 12px; font-weight: 500; letter-spacing: .04em; color: var(--ink-soft); }
.card:hover { opacity: 1; filter: none; }
.card.selected { opacity: 1; filter: none; transform: scale(1.1); position: relative; z-index: 2; }
.card.selected .card-btn { border-color: var(--gold); box-shadow: 0 0 34px rgba(242,184,75,.35), 0 24px 50px -18px rgba(0,0,0,.9); }
.card.selected .card-btn img { transform: scale(1.06); }
.card.selected .card-text small { color: var(--gold-hi); }

.nav-arrow { position: absolute; z-index: 3; top: 50%; width: 48px; height: 48px; margin-top: -24px; border: 1px solid var(--line); border-radius: 3px; background: var(--panel); font-size: 30px; line-height: 1; color: var(--ink); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); transition: border-color .25s, color .25s, box-shadow .25s; }
.nav-arrow:hover { border-color: var(--gold); color: var(--gold-hi); box-shadow: 0 0 18px rgba(242,184,75,.3); }
.nav-arrow.prev { left: var(--pad); }
.nav-arrow.next { right: var(--pad); }

/* Fiche du projet sélectionné */
.detail { width: min(920px, calc(100% - 2 * var(--pad))); display: flex; align-items: center; justify-content: space-between; gap: 28px; padding: 18px 24px; transition: opacity .3s, transform .3s; }
.detail.swap { opacity: 0; transform: translateY(6px); }
.detail-cat { font-size: 12px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-hi); }
.detail h2 { font-family: var(--display); font-weight: 400; font-size: clamp(20px, 2vw, 26px); letter-spacing: .1em; text-transform: uppercase; margin: 2px 0 4px; }
.detail-text p:last-child { font-size: 14px; color: var(--ink-soft); }
.detail-actions { flex: none; display: flex; gap: 10px; }
.btn-gold, .btn-line { display: inline-flex; align-items: center; gap: 10px; padding: 12px 20px; border-radius: 3px; font-size: 14px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; transition: box-shadow .25s, border-color .25s, color .25s, transform .25s; }
.btn-gold { border: 1px solid var(--gold); color: var(--gold-hi); background: linear-gradient(90deg, rgba(242,184,75,.34), rgba(242,184,75,.1)); box-shadow: inset 0 0 14px rgba(242,184,75,.15); }
.btn-gold:hover { box-shadow: 0 0 24px rgba(242,184,75,.35), inset 0 0 14px rgba(242,184,75,.2); transform: translateY(-2px); }
.btn-gold[hidden] { display: none; }
.tri { width: 0; height: 0; border-left: 9px solid currentColor; border-top: 6px solid transparent; border-bottom: 6px solid transparent; }
.btn-line { border: 1px solid var(--line); }
.btn-line span { font-size: 22px; line-height: 0; }
.btn-line:hover { border-color: var(--gold); color: var(--gold-hi); transform: translateY(-2px); }

.bottom-static { position: relative; z-index: 5; left: auto; right: auto; bottom: auto; padding: 14px var(--pad) 16px; }

@media (max-width: 900px) {
  .page-head { grid-template-columns: auto 1fr auto; padding-top: 14px; }
  .brand-sm { justify-self: center; }
  .brand-name { display: none; }
  .carousel { --cw: min(62vw, 36vh, 300px); }
  .nav-arrow { display: none; }
  .detail { flex-direction: column; align-items: flex-start; gap: 16px; padding: 18px; }
  .detail-actions { width: 100%; flex-wrap: wrap; }
  .btn-gold, .btn-line { flex: 1; justify-content: center; }
  .bottom-static { flex-direction: row; justify-content: center; }
  .page-title p::before, .page-title p::after { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .cards { scroll-behavior: auto; }
  .card, .card-btn img, .detail { transition: none; }
}

/* =========================================================
   Page « Qui suis-je ? »
   ========================================================= */
.page-about { background: radial-gradient(70% 80% at 30% 60%, #15171d 0%, #0a0b0f 55%, #060709 100%); }
.head-link { justify-self: end; display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-soft); transition: color .25s; }
.head-link span { font-size: 22px; line-height: 0; color: var(--gold-hi); }
.head-link:hover { color: var(--gold-hi); }

.about {
  position: relative; flex: 1; width: 100%; max-width: 1320px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1.05fr; align-items: center; gap: clamp(24px, 4vw, 64px);
  padding: 10px var(--pad) 40px;
}
.ghost {
  position: absolute; left: 46%; top: 50%; transform: translate(-50%, -50%); z-index: 0; pointer-events: none;
  display: grid; justify-items: center; line-height: .82;
  font-family: var(--display); font-weight: 400; font-size: clamp(90px, 16vh, 170px); text-transform: uppercase;
  color: transparent; -webkit-text-stroke: 1px rgba(242, 184, 75, .2);
}
.about-photo { position: relative; z-index: 1; margin: 0; align-self: stretch; min-height: 420px; }
.about-photo::before { content: ""; position: absolute; left: 50%; bottom: 8%; width: 80%; aspect-ratio: 1; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(circle, rgba(242,184,75,.16), transparent 65%); pointer-events: none; }
.about-photo img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: 50% 100%;
  filter: grayscale(1) contrast(1.08) brightness(.92);
  -webkit-mask-image: linear-gradient(180deg, #000 72%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 72%, transparent 100%);
}

.about-text { position: relative; z-index: 1; max-width: 600px; }
.about-label { font-size: 13px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--gold-hi); margin-bottom: 6px; }
.about-text h1 { font-family: var(--display); font-weight: 300; font-size: clamp(40px, 5vw, 72px); line-height: 1.02; text-transform: uppercase; letter-spacing: .02em; }
.about-text h1 em { font-style: normal; font-weight: 400; color: var(--gold); text-shadow: 0 0 24px rgba(242,184,75,.35); }
.about-line { display: block; width: 64px; height: 2px; margin: 16px 0 20px; background: var(--gold); box-shadow: 0 0 10px var(--gold); }
.about-text > p { font-size: 16px; color: var(--ink-soft); margin-bottom: 12px; }
.about-text > p.about-lead { color: var(--ink); font-weight: 500; }

.features { list-style: none; margin: 26px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 22px 28px; }
.features li { display: flex; gap: 14px; align-items: flex-start; }
.features svg { flex: none; width: 34px; height: 34px; fill: none; stroke: var(--gold-hi); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 6px rgba(242,184,75,.35)); }
.features h2 { font-size: 17px; font-weight: 700; letter-spacing: .04em; margin-bottom: 2px; }
.features p { font-size: 14px; color: var(--muted); }

.tools-row { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 16px; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); }
.tools-label { font-size: 12px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.tools-row ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tools-row li { padding: 5px 12px; border: 1px solid var(--line); border-radius: 3px; font-size: 13px; font-weight: 600; letter-spacing: .04em; }

.about-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.about-actions .btn-gold span { font-size: 22px; line-height: 0; }

/* Apparition */
.page-about .about-photo, .page-about .about-text > * { opacity: 0; transform: translateY(18px); animation: rise .9s cubic-bezier(.2,.7,.2,1) forwards; }
.page-about .about-photo { animation-delay: .1s; transform: none; }
.page-about .about-text > *:nth-child(1) { animation-delay: .2s; }
.page-about .about-text > *:nth-child(2) { animation-delay: .28s; }
.page-about .about-text > *:nth-child(3) { animation-delay: .36s; }
.page-about .about-text > *:nth-child(4) { animation-delay: .44s; }
.page-about .about-text > *:nth-child(5) { animation-delay: .5s; }
.page-about .about-text > *:nth-child(n+6) { animation-delay: .6s; }
@keyframes rise { to { opacity: 1; transform: none; } }

@media (max-width: 900px) {
  .page-about .head-link { display: none; }
  .about { grid-template-columns: 1fr; padding-top: 0; }
  .about-photo { min-height: 0; aspect-ratio: 3 / 3.4; max-width: 420px; width: 100%; margin: 0 auto; }
  .ghost { display: none; }
  .features { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .page-about .about-photo, .page-about .about-text > * { opacity: 1; transform: none; animation: none; }
}

/* =========================================================
   Page contact
   ========================================================= */
.contact {
  position: relative; z-index: 5; flex: 1; width: 100%; max-width: 1240px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1.1fr; align-items: center; gap: clamp(28px, 5vw, 80px);
  padding: 24px var(--pad) 24px;
}
.contact-intro h1 { font-family: var(--display); font-weight: 300; font-size: clamp(38px, 4.6vw, 66px); line-height: 1.02; text-transform: uppercase; letter-spacing: .02em; }
.contact-intro h1 em { display: block; font-style: normal; font-weight: 400; color: var(--gold); text-shadow: 0 0 24px rgba(242,184,75,.35); }
.contact-lead { font-size: 16px; color: var(--ink-soft); max-width: 46ch; }
.status { display: inline-flex; align-items: center; margin: 20px 0 22px; padding: 7px 14px; border: 1px solid rgba(98, 227, 155, .35); border-radius: 3px; background: rgba(98, 227, 155, .08); font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }

.channels { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; max-width: 480px; }
.channels li { display: flex; gap: 10px; }
.channel { flex: 1; min-width: 0; display: flex; align-items: center; gap: 16px; padding: 14px 18px; transition: border-color .25s, transform .25s, box-shadow .25s; }
a.channel:hover { border-color: var(--gold); transform: translateX(4px); box-shadow: 0 0 22px rgba(242,184,75,.2); }
.channel svg { flex: none; width: 26px; height: 26px; fill: none; stroke: var(--gold-hi); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.channel span { flex: 1; min-width: 0; display: grid; }
.channel small { font-size: 11px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.channel b { font-size: 16px; font-weight: 600; overflow-wrap: anywhere; }
.channel i { font-style: normal; color: var(--gold-hi); font-size: 18px; }
.copy { flex: none; display: grid; place-items: center; gap: 2px; width: 74px; border: 1px solid var(--line); border-radius: 4px; background: var(--panel); color: var(--ink-soft); font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); transition: border-color .25s, color .25s; }
.copy svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.copy:hover, .copy.done { border-color: var(--gold); color: var(--gold-hi); }

.contact-form { padding: 26px 28px; display: grid; gap: 16px; }
.contact-form .panel-title { margin-bottom: 0; }
.contact-form fieldset { border: 0; margin: 0; padding: 0; }
.contact-form legend, .field { font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.contact-form legend { margin-bottom: 10px; }
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choices label { cursor: pointer; }
.choices input { position: absolute; opacity: 0; pointer-events: none; }
.choices span { display: block; padding: 7px 14px; border: 1px solid var(--line); border-radius: 3px; font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); transition: all .25s; }
.choices label:hover span { color: var(--ink); border-color: rgba(255,255,255,.3); }
.choices input:checked + span { color: var(--gold-hi); border-color: var(--gold); background: linear-gradient(90deg, rgba(242,184,75,.28), rgba(242,184,75,.08)); box-shadow: 0 0 16px rgba(242,184,75,.2); }
.choices input:focus-visible + span { outline: 2px solid var(--gold-hi); outline-offset: 2px; }
.field { display: grid; gap: 8px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field input, .field textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 3px; background: rgba(2, 4, 9, .55);
  color: var(--ink); font: 500 15px var(--ui); letter-spacing: .02em; text-transform: none; resize: vertical; transition: border-color .25s, box-shadow .25s;
}
.field input::placeholder, .field textarea::placeholder { color: #5b6170; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(242,184,75,.15); }
.form-foot { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 20px; }
.form-foot .btn-gold { cursor: pointer; }
.form-foot .btn-gold span { font-size: 22px; line-height: 0; }
.form-foot .btn-gold:disabled { opacity: .6; cursor: wait; }
.form-message { font-size: 14px; font-weight: 500; }
.form-message.success { color: #62e39b; }
.form-message.error { color: #ff8f8f; }
.honeypot { position: absolute; left: -9999px; }

.legal { font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); transition: color .25s; }
.legal:hover { color: var(--gold-hi); }

/* Apparition */
.page-contact .contact-intro > *, .page-contact .contact-form { opacity: 0; transform: translateY(18px); animation: rise .9s cubic-bezier(.2,.7,.2,1) forwards; }
.page-contact .contact-intro > *:nth-child(2) { animation-delay: .08s; }
.page-contact .contact-intro > *:nth-child(3) { animation-delay: .16s; }
.page-contact .contact-intro > *:nth-child(4) { animation-delay: .22s; }
.page-contact .contact-intro > *:nth-child(n+5) { animation-delay: .3s; }
.page-contact .contact-form { animation-delay: .35s; }

@media (max-width: 900px) {
  .page-contact .head-link { display: none; }
  .contact { grid-template-columns: 1fr; padding-top: 8px; }
  .field-row { grid-template-columns: 1fr; }
  .contact-form { padding: 20px 18px; }
  .page-contact .bottom-static { justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  .page-contact .contact-intro > *, .page-contact .contact-form { opacity: 1; transform: none; animation: none; }
}

/* =========================================================
   Page « Mes services »
   ========================================================= */
.services-page { position: relative; z-index: 5; flex: 1; width: 100%; max-width: 1240px; margin: 0 auto; padding: 22px var(--pad) 30px; display: grid; gap: clamp(40px, 7vh, 72px); }

.service-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.service {
  position: relative; display: flex; flex-direction: column; gap: 14px; padding: 30px 26px 24px; overflow: hidden;
  transition: border-color .35s, transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s;
}
.service::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: linear-gradient(90deg, transparent, var(--gold), transparent); opacity: 0; transition: opacity .35s; }
.service:hover { border-color: var(--gold); transform: translateY(-6px); box-shadow: 0 0 34px rgba(242,184,75,.22), 0 30px 50px -24px rgba(0,0,0,.9); }
.service:hover::before { opacity: 1; }
.service-num { position: absolute; top: 18px; right: 22px; font-family: var(--display); font-weight: 200; font-size: 44px; line-height: 1; color: rgba(255,255,255,.1); transition: color .35s; }
.service:hover .service-num { color: rgba(242,184,75,.4); }
.service-icon { width: 62px; height: 68px; color: var(--gold-hi); }
.service-icon svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.service-icon .hex { fill: rgba(242,184,75,.1); stroke-width: 1.6; filter: drop-shadow(0 0 6px rgba(242,184,75,.5)); }
.service h2 { font-size: 22px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.service-desc { font-size: 15px; color: var(--ink-soft); }
.service-skills { list-style: none; margin: 4px 0 0; padding: 14px 0 0; border-top: 1px solid var(--line); display: grid; gap: 8px; }
.service-skills li { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 500; }
.service-skills li::before { content: ""; flex: none; width: 6px; height: 6px; transform: rotate(45deg); background: var(--gold); box-shadow: 0 0 6px var(--gold); }
.service-refs { margin-top: auto; padding-top: 16px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.service-refs small { width: 100%; font-size: 11px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.service-refs a { padding: 4px 10px; border: 1px solid var(--line); border-radius: 3px; font-size: 13px; font-weight: 600; color: var(--ink-soft); transition: border-color .25s, color .25s; }
.service-refs a:hover { border-color: var(--gold); color: var(--gold-hi); }

/* Méthode */
.method-title { text-align: center; font-family: var(--display); font-weight: 300; font-size: clamp(22px, 2.4vw, 30px); letter-spacing: .26em; text-transform: uppercase; margin-bottom: 28px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; position: relative; }
.steps::before { content: ""; position: absolute; top: 22px; left: 12.5%; right: 12.5%; height: 1px; background: linear-gradient(90deg, transparent, var(--gold) 15%, var(--gold) 85%, transparent); opacity: .5; }
.steps li { position: relative; text-align: center; display: grid; justify-items: center; gap: 6px; }
.steps b { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 8px; border: 1px solid var(--gold); border-radius: 50%; background: #0b0e16; font-family: var(--display); font-weight: 400; font-size: 15px; color: var(--gold-hi); box-shadow: 0 0 16px rgba(242,184,75,.3); }
.steps h3 { margin: 0; font-size: 17px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.steps p { font-size: 14px; color: var(--muted); max-width: 26ch; }

/* Appel à l'action */
.cta { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 26px 30px; border-color: rgba(242,184,75,.35); background: linear-gradient(90deg, rgba(242,184,75,.12), var(--panel) 60%); }
.cta h2 { font-family: var(--display); font-weight: 300; font-size: clamp(24px, 2.6vw, 34px); letter-spacing: .06em; text-transform: uppercase; }
.cta p { color: var(--ink-soft); }
.cta-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cta-actions .btn-gold span { font-size: 22px; line-height: 0; }

/* Apparition */
.page-services .page-title, .page-services .service, .page-services .method, .page-services .cta { opacity: 0; transform: translateY(18px); animation: rise .9s cubic-bezier(.2,.7,.2,1) forwards; }
.page-services .service:nth-child(1) { animation-delay: .12s; }
.page-services .service:nth-child(2) { animation-delay: .2s; }
.page-services .service:nth-child(3) { animation-delay: .28s; }
.page-services .method { animation-delay: .4s; }
.page-services .cta { animation-delay: .5s; }

@media (max-width: 1000px) {
  .service-list { grid-template-columns: 1fr; max-width: 620px; margin: 0 auto; width: 100%; }
}
@media (max-width: 900px) {
  .page-services .head-link { display: none; }
  .page-services .bottom-static { justify-content: center; }
  .steps { grid-template-columns: 1fr 1fr; gap: 28px 16px; }
  .steps::before { display: none; }
  .cta { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  .page-services .page-title, .page-services .service, .page-services .method, .page-services .cta { opacity: 1; transform: none; animation: none; }
}

/* =========================================================
   Mentions légales
   ========================================================= */
.legal-page { position: relative; z-index: 5; flex: 1; width: 100%; max-width: 1100px; margin: 0 auto; padding: 22px var(--pad) 30px; display: flex; flex-direction: column; justify-content: center; gap: clamp(28px, 5vh, 48px); }
.legal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.legal-block { display: flex; gap: 18px; align-items: flex-start; padding: 24px 26px; transition: border-color .3s, box-shadow .3s; }
.legal-block:hover { border-color: rgba(242,184,75,.55); box-shadow: 0 0 26px rgba(242,184,75,.15); }
.legal-block svg { flex: none; width: 30px; height: 30px; margin-top: 2px; fill: none; stroke: var(--gold-hi); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 6px rgba(242,184,75,.35)); }
.legal-block h2 { font-size: 17px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 8px; }
.legal-block p { font-size: 15px; color: var(--ink-soft); line-height: 1.6; }
.legal-block strong { color: var(--ink); }
.legal-block a { color: var(--gold-hi); border-bottom: 1px solid rgba(242,184,75,.4); transition: border-color .25s; }
.legal-block a:hover { border-color: var(--gold-hi); }
.copyright { font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }

.page-legal .page-title, .page-legal .legal-block { opacity: 0; transform: translateY(18px); animation: rise .9s cubic-bezier(.2,.7,.2,1) forwards; }
.page-legal .legal-block:nth-child(1) { animation-delay: .1s; }
.page-legal .legal-block:nth-child(2) { animation-delay: .18s; }
.page-legal .legal-block:nth-child(3) { animation-delay: .26s; }
.page-legal .legal-block:nth-child(4) { animation-delay: .34s; }

@media (max-width: 900px) {
  .legal-grid { grid-template-columns: 1fr; }
  .page-legal .bottom-static { justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  .page-legal .page-title, .page-legal .legal-block { opacity: 1; transform: none; animation: none; }
}

/* =========================================================
   Page contact : tient sur un seul écran (ordinateur)
   ========================================================= */
@media (min-width: 901px) {
  body.page-contact { height: 100vh; height: 100svh; min-height: 0; overflow: hidden; }
  .page-contact .contact { min-height: 0; padding-top: clamp(6px, 2vh, 24px); padding-bottom: clamp(6px, 2vh, 24px); }
  .page-contact .contact-intro h1 { font-size: clamp(34px, min(4.6vw, 7.5vh), 66px); }
  .page-contact .about-line { margin: clamp(8px, 1.6vh, 16px) 0 clamp(10px, 2vh, 20px); }
  .page-contact .status { margin: clamp(10px, 2vh, 20px) 0 clamp(10px, 2vh, 22px); }
  .page-contact .channels { gap: clamp(6px, 1.1vh, 10px); }
  .page-contact .channel { padding: clamp(8px, 1.4vh, 14px) 18px; }
  .page-contact .contact-form { gap: clamp(8px, 1.6vh, 16px); padding: clamp(16px, 2.6vh, 26px) 28px; }
  .page-contact .field input { padding: clamp(8px, 1.3vh, 12px) 14px; }
  .page-contact .field textarea { height: clamp(50px, 14vh, 140px); padding: 10px 14px; resize: none; }
  .page-contact .bottom-static { padding-top: 8px; padding-bottom: 12px; }
}
@media (min-width: 901px) and (max-height: 720px) {
  .page-contact .contact-lead { display: none; }
  .page-contact .channels li:last-child { display: none; }
}
@media (min-width: 901px) and (max-height: 640px) {
  .page-contact .contact-form .panel-title { display: none; }
}

/* =========================================================
   Sélecteur de langue FR / EN
   ========================================================= */
.lang-switch { display: inline-flex; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: 3px; background: rgba(5, 7, 12, .45); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.lang-switch a { padding: 4px 9px; border-radius: 2px; font-size: 12px; font-weight: 700; letter-spacing: .16em; color: var(--muted); transition: color .25s, background .25s; }
.lang-switch a:hover { color: var(--ink); }
.lang-switch a[aria-current] { color: var(--gold-hi); background: rgba(242, 184, 75, .16); }
.head-right { justify-self: end; display: flex; align-items: center; gap: 22px; }
.lang-intro { position: absolute; top: var(--pad); right: var(--pad); z-index: 2; }
.icons { align-items: center; }
.icons .lang-switch { margin-right: 12px; }
@media (max-width: 900px) {
  .head-right { gap: 14px; }
  .home .icons { flex-wrap: wrap; justify-content: center; }
}
.icons .lang-switch a { width: auto; height: auto; display: inline-block; place-items: initial; padding: 4px 9px; }

/* Sélecteur de langue en haut à droite du menu ; le panneau « Objectifs » passe dessous */
.home .side-panel { top: calc(var(--pad) + 52px); }
@media (max-width: 900px) {
  .home > .lang-home { position: absolute !important; top: 18px; right: 16px; width: auto !important; }
}
