/* Lefeuvre IT Systems — polices et scripts servis localement, aucune ressource externe. */

@font-face {
  font-family: "Cormorant";
  src: url("../fonts/cormorant-garamond-latin-300-normal.woff2") format("woff2");
  font-weight: 300; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Cormorant";
  src: url("../fonts/cormorant-garamond-latin-300-italic.woff2") format("woff2");
  font-weight: 300; font-style: italic; font-display: swap;
}

:root {
  --bg: #050608;
  --fg: #efe9df;
  --muted: #8f8a82;
  --line: rgba(239, 233, 223, 0.14);
  --gold: #e7c08d;
  --serif: "Cormorant", "Cormorant Garamond", Garamond, "Times New Roman", serif;
  --sans: "Helvetica Neue", Helvetica, Arial, "Liberation Sans", sans-serif;
  --gutter: clamp(1.25rem, 4vw, 3.5rem);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); }
body { margin: 0; background: var(--bg); color: var(--fg); font: 300 1rem/1.6 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
p { margin: 0 0 1em; }
a { color: inherit; }
.skip-link { position: absolute; left: 1rem; top: -100px; z-index: 100; background: var(--fg); color: var(--bg); padding: .5rem 1rem; }
.skip-link:focus { top: 1rem; }
:focus-visible { outline: 1px solid var(--gold); outline-offset: 4px; }
.placeholder { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .85em; }

/* ---------- Scène ---------- */
.gl { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.gl canvas { display: block; width: 100%; height: 100%; opacity: 0; transition: opacity 2s ease; }
.gl.is-ready canvas { opacity: 1; }
.gl::after { /* vignette */
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 60% 50%, transparent 40%, rgba(5, 6, 8, .75) 100%);
}
.no-webgl .gl { background: radial-gradient(50vw 50vh at 70% 50%, rgba(231, 192, 141, .12), transparent 70%); }

/* ---------- En-tête ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.5rem var(--gutter);
  background: linear-gradient(rgba(5, 6, 8, .7), transparent);
}
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; }
.brand-mark { width: 26px; height: 26px; fill: none; stroke: var(--fg); stroke-width: 1.3; }
.brand-name { font-size: .72rem; line-height: 1.25; letter-spacing: .08em; text-transform: uppercase; }
.nav { display: flex; align-items: center; gap: clamp(1rem, 2.6vw, 2.6rem); }
.nav a { font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; text-decoration: none; color: #cfc9bf; transition: color .3s; white-space: nowrap; }
.nav a:hover { color: var(--gold); }
.nav-cta { color: var(--fg) !important; }
@media (max-width: 760px) { .nav a:not(.nav-cta) { display: none; } }

.pager { position: fixed; z-index: 20; right: var(--gutter); top: 50%; translate: 0 -50%; list-style: none; margin: 0; padding: 0; display: grid; gap: .9rem; }
.pager li { font-size: .62rem; letter-spacing: .15em; color: rgba(239, 233, 223, .3); transition: color .5s; position: relative; padding-right: 1.4rem; }
.pager li::after { content: ""; position: absolute; right: 0; top: 50%; width: 0; height: 1px; background: var(--gold); transition: width .6s var(--ease); }
.pager li.is-active { color: var(--fg); }
.pager li.is-active::after { width: .9rem; }
@media (max-width: 760px) { .pager { display: none; } }

/* ---------- Panneaux ---------- */
main { position: relative; z-index: 1; }
.panel {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: grid; align-items: center; grid-template-columns: minmax(0, 1fr);
  padding: 7rem var(--gutter);
}
@media (min-width: 900px) {
  .panel { grid-template-columns: minmax(0, 6fr) minmax(0, 3fr) minmax(0, 3fr); }
  .copy { grid-column: 1; }
  .aside { grid-column: 2; align-self: center; }
}
[data-depth] { will-change: transform; }

.kicker { display: flex; align-items: center; gap: .9rem; font-size: .66rem; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); margin-bottom: 2rem; }
.kicker span { color: var(--gold); }
.kicker::before { content: ""; order: 1; width: 2.5rem; height: 1px; background: var(--line); }
.kicker span { order: 0; }
.kicker { flex-wrap: nowrap; }

.title {
  margin: 0; font-family: var(--serif); font-weight: 300; letter-spacing: -0.01em; line-height: 1.02;
  font-size: clamp(2.8rem, 5.3vw, 6rem);
}
.title em { font-style: italic; color: var(--gold); }

.aside, .text { max-width: 26rem; color: #bdb7ad; font-size: .92rem; }
.aside { margin-top: 2.5rem; }
.text { margin-top: 2.4rem; }
@media (min-width: 900px) { .aside { margin-top: 0; padding-left: 1.5rem; border-left: 1px solid var(--line); } }

.link { display: inline-flex; gap: .6rem; margin-top: .6rem; font-size: .68rem; letter-spacing: .22em; text-transform: uppercase; text-decoration: none; color: var(--fg); padding-bottom: .4rem; background: linear-gradient(var(--gold), var(--gold)) 0 100% / 30% 1px no-repeat; transition: background-size .6s var(--ease); }
.link:hover { background-size: 100% 1px; }

.tags { list-style: none; margin: 1.6rem 0 0; padding: 0; display: grid; gap: .55rem; }
.tags li { display: flex; align-items: center; gap: .8rem; font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: #d8d2c7; }
.tags li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 10px var(--gold); }

.scroll-cue { position: absolute; left: var(--gutter); bottom: 2rem; margin: 0; display: flex; align-items: center; gap: .9rem; font-size: .62rem; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); }
.scroll-cue span { width: 1px; height: 42px; background: linear-gradient(var(--gold), transparent); animation: cue 2.2s var(--ease) infinite; transform-origin: top; }
@keyframes cue { 0% { transform: scaleY(0); } 55% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* Apparition des textes */
.js .copy > *, .js .aside { opacity: 0; transition: opacity 1.2s ease, filter 1.2s ease; filter: blur(6px); }
.js .panel.is-in .copy > *, .js .panel.is-in .aside { opacity: 1; filter: none; }
.js .panel.is-in .copy > :nth-child(2) { transition-delay: .12s; }
.js .panel.is-in .copy > :nth-child(3), .js .panel.is-in .aside { transition-delay: .26s; }

/* Contact */
.panel-contact { align-content: center; padding-bottom: 0; }
.phone { display: inline-block; font-family: var(--serif); font-size: clamp(2rem, 3.6vw, 3rem); text-decoration: none; color: var(--fg); margin-bottom: 1.4rem; }
.phone:hover { color: var(--gold); }
.panel-contact address { font-style: normal; line-height: 1.8; }
.site-footer {
  grid-column: 1 / -1; align-self: end; display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem;
  margin-top: 4rem; padding: 1.5rem 0 calc(1.5rem + env(safe-area-inset-bottom)); border-top: 1px solid var(--line);
  color: var(--muted); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase;
}

/* Mobile : texte en bas, forme en haut */
@media (max-width: 760px) {
  .panel { align-items: end; padding-top: 52vh; padding-bottom: 4rem; }
  .panel-contact { padding-bottom: 0; }
  .scroll-cue { display: none; }
  .title { font-size: clamp(2.6rem, 11vw, 3.6rem); }
}

/* ---------- Page légale ---------- */
.legal { position: relative; z-index: 1; padding: 9rem var(--gutter) 5rem; }
.legal .wrap { max-width: 760px; }
.legal h1 { font-family: var(--serif); font-weight: 300; font-size: clamp(2.6rem, 6vw, 4.5rem); margin: 0 0 2.5rem; line-height: 1; }
.legal h2 { font-family: var(--serif); font-weight: 300; font-size: 1.7rem; margin: 2.5rem 0 .8rem; }
.legal p, .legal dd { color: #bdb7ad; }
.legal dl { display: grid; grid-template-columns: max-content 1fr; gap: .5rem 1.5rem; margin: 0; }
.legal dt { color: var(--fg); }
.legal dd { margin: 0; }
.legal .back { display: inline-block; margin-top: 2rem; color: var(--gold); }
.legal-footer { position: relative; z-index: 1; margin: 0 var(--gutter); }
@media (max-width: 560px) { .legal dl { grid-template-columns: 1fr; } .legal dd { margin-bottom: .6rem; } }

/* ---------- Mouvement réduit ---------- */
@media (prefers-reduced-motion: reduce) {
  .js .copy > *, .js .aside { opacity: 1; filter: none; transition: none; }
  .scroll-cue span { animation: none; }
  [data-depth] { transform: none !important; }
}
