/* ============================================================
   site.css - Portfolio de Liam Schott
   Tokens (clair / sombre) : theme.css
   Règle de forme : cartes et visuels 16px, boutons et pastilles en pilule.
   ============================================================ */

/* ── RESET ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }



body {
  font-family: var(--font-sans);
  background-color: var(--bg);
  color: var(--fg);
  line-height: 1.7;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Grain fin, calque fixe non interactif */
body::before {
  content: "";
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 220 220' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  background-size: 180px 180px;
  z-index: -1; pointer-events: none;
}

/* Aurore : trois halos doux derrière le verre, jamais criards */
body::after {
  content: "";
  position: fixed; inset: 0;
  background:
    radial-gradient(48rem 36rem at 88% -6%, color-mix(in srgb, var(--c-peach) calc(var(--aurora) * 100%), transparent), transparent 70%),
    radial-gradient(40rem 32rem at -6% 46%, color-mix(in srgb, var(--c-sage) calc(var(--aurora) * 75%), transparent), transparent 70%),
    radial-gradient(44rem 30rem at 82% 108%, color-mix(in srgb, var(--c-blue) calc(var(--aurora) * 80%), transparent), transparent 70%);
  z-index: -1; pointer-events: none;
}

a { color: var(--accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--fg); }
a:focus-visible, .btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

::selection { background: var(--accent); color: var(--on-accent); }

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 2rem;
}
@media (max-width: 600px) { .container { padding: 0 1.25rem; } }


/* ── HEADER ── */
.sticky-header {
  position: sticky; top: 0; z-index: 50; width: 100%;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.header-content {
  position: relative;
  display: flex; align-items: center; justify-content: space-between;
  height: 4rem;
}

.header-left { display: flex; align-items: center; }

.logo { display: inline-flex; align-items: center; gap: 0.65rem; text-decoration: none; }

.logo-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 1.9rem; height: 1.9rem;
  border-radius: 9px;
  background: var(--accent);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: -0.02em;
  color: var(--on-accent);
}

.logo-text {
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--fg);
}

.main-nav { display: none; }
@media (min-width: 820px) {
  .main-nav {
    display: flex; align-items: center; gap: 0.25rem;
    position: absolute; left: 50%; transform: translateX(-50%);
  }
}

.nav-link {
  display: inline-flex; align-items: center;
  font-size: 0.86rem; font-weight: 450;
  color: var(--fg-mid-s);
  padding: 0.4rem 0.85rem; border-radius: 100px;
  transition: color 0.2s, background 0.2s;
}
.nav-link:hover { color: var(--fg); background: var(--hover); }

.header-right { display: flex; align-items: center; gap: 0.5rem; }

/* ── BOUTONS ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 100px;
  font-family: var(--font-sans);
  font-size: 0.82rem; font-weight: 550;
  height: 2.4rem; padding: 0 1.2rem;
  cursor: pointer;
  transition: background 0.22s, color 0.22s, border-color 0.22s, transform 0.22s;
  text-decoration: none; white-space: nowrap;
  border: 1px solid transparent; background: transparent;
  color: var(--fg);
}
.btn:active { transform: scale(0.97); }

.btn-outline { border-color: var(--line-2); color: var(--fg); }
.btn-outline:hover { background: var(--hover); border-color: var(--accent-line); color: var(--fg); }

.btn-primary { background: var(--fg); color: var(--bg); border-color: var(--fg); height: 2.9rem; padding: 0 1.6rem; font-size: 0.9rem; }
.btn-primary:hover { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn-lg.btn-outline { height: 2.9rem; padding: 0 1.6rem; font-size: 0.9rem; }

.btn-icon {
  width: 2.25rem; height: 2.25rem; padding: 0;
  border-radius: 50%; border: 1px solid var(--line-2);
  color: var(--fg-mid-s);
}
.btn-icon:hover { background: var(--accent-soft); color: var(--accent); border-color: var(--accent-line); }

/* ── HERO (split asymétrique) ── */
.hero {
  min-height: min(calc(100dvh - 4rem), 46rem);
  display: flex; flex-direction: column; justify-content: center;
  padding-block: 3.5rem 4rem;
}

.hero-grid {
  display: grid; gap: 3.5rem;
  align-items: center;
}
@media (min-width: 960px) {
  .hero-grid { grid-template-columns: 1.05fr 0.95fr; gap: 4rem; }
}

.hero-grid > * { min-width: 0; }

.hero-badge {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  color: var(--fg);
  border: 1px solid var(--line-2);
  background: var(--bg-card);
  padding: 0.45rem 1rem;
  border-radius: 100px;
  margin-bottom: 2rem;
}
.badge-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--ok); flex-shrink: 0;
  animation: pulse 2.6s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--ok) 55%, transparent); }
  50%      { box-shadow: 0 0 0 7px transparent; }
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3.6rem, 9vw, 8rem);
  font-weight: 700;
  line-height: 0.88;
  letter-spacing: -0.05em;
  margin-bottom: 2rem;
}
.ht-line { display: block; color: var(--fg); }
.ht-accent { color: var(--accent); }
.ht-dot { color: var(--fg); }

.hero-statement {
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  line-height: 1.55;
  color: var(--fg-mid-s);
  max-width: 34ch;
  margin-bottom: 2.25rem;
}
.hero-statement em { color: var(--fg); font-weight: 500; }

.hero-cta { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.hero-visual { display: block; position: relative; color: inherit; }
.hero-frame {
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line-2);
  background: var(--bg-card);
  box-shadow: var(--shadow-card);
  transition: transform 0.45s cubic-bezier(0.32, 0.72, 0, 1);
}
.hero-frame img { display: block; width: 100%; height: auto; }
.hero-visual:hover .hero-frame { transform: translateY(-6px); }
.hero-caption {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.4rem 1.5rem;
  margin-top: 1.1rem;
  font-size: 0.82rem;
  color: var(--fg-mid-s);
}
.hero-caption-link { color: var(--fg); font-weight: 500; white-space: nowrap; }
.hero-caption-link i { font-size: 0.7rem; margin-left: 0.25rem; transition: transform 0.3s cubic-bezier(0.32, 0.72, 0, 1); }
.hero-visual:hover .hero-caption-link i { transform: translateX(4px); }
.hero-caption strong { color: var(--fg); font-weight: 550; }
@media (max-width: 959px) {
  .hero { min-height: 0; padding-top: 2.5rem; }
}

/* ── MARQUEE (unique sur la page) ── */
.marquee-section {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-2);
  padding: 1.25rem 0;
  margin-bottom: 9rem;
}
.marquee-track {
  display: flex; align-items: center; gap: 2.2rem;
  width: max-content;
  animation: marquee 42s linear infinite;
}
.marquee-section:hover .marquee-track { animation-play-state: paused; }
.marquee-item {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.6rem;
  letter-spacing: -0.02em;
  color: var(--fg);
  white-space: nowrap;
}
.marquee-sep { color: var(--accent); font-size: 0.8rem; }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ── STRUCTURE DES SECTIONS ── */
.section-block { margin-bottom: 9rem; }

.section-head {
  margin-bottom: 3.5rem;
}
.section-h {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
  color: var(--fg);
}
.section-lede {
  margin-top: 1.4rem;
  max-width: 52ch;
  color: var(--fg-mid-s);
  font-size: 1.02rem;
  line-height: 1.7;
}
.section-h::after {
  content: "";
  display: block;
  width: 3.25rem; height: 4px;
  background: var(--accent);
  border-radius: 4px;
  margin-top: 1.25rem;
}

/* ── À PROPOS ── */
.about-editorial {
  display: grid; gap: 2.5rem;
  margin-bottom: 5.5rem;
}
@media (min-width: 820px) {
  .about-editorial { grid-template-columns: 1.15fr 0.85fr; gap: 5rem; align-items: start; }
}

.about-quote {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.7rem, 3.4vw, 2.7rem);
  line-height: 1.15;
  color: var(--fg);
  letter-spacing: -0.03em;
}
.about-quote em { color: var(--accent); }

.about-text {
  color: var(--fg-mid-s);
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 1.2rem;
  max-width: 52ch;
}
.about-text:last-child { margin-bottom: 0; }
.about-text strong { color: var(--fg); font-weight: 550; }

/* Parcours */
.exp-timeline { display: flex; flex-direction: column; }

.exp-item {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 1.5rem;
  padding: 2rem 0.5rem;
  border-top: 1px solid var(--line);
  transition: background 0.25s;
}
.exp-item:last-child { border-bottom: 1px solid var(--line); }
.exp-item:hover { background: linear-gradient(90deg, var(--hover), transparent); }
@media (max-width: 600px) {
  .exp-item { grid-template-columns: 1fr; gap: 0.5rem; }
}

.exp-year {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent);
  padding-top: 0.35rem;
}

.exp-role {
  display: flex; align-items: center; gap: 0.7rem; flex-wrap: wrap;
  font-family: var(--font-display);
  font-size: 1.35rem; font-weight: 650; letter-spacing: -0.02em;
  color: var(--fg); margin-bottom: 0.15rem;
}
.exp-pill {
  --h: var(--c-peach);
  font-family: var(--font-mono);
  font-size: 0.72rem; font-weight: 450;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--h);
  border: 1px solid color-mix(in srgb, var(--h) 32%, transparent);
  background: color-mix(in srgb, var(--h) 11%, transparent);
  padding: 0.18rem 0.6rem; border-radius: 100px;
}
.exp-company {
  font-size: 0.95rem; font-weight: 500;
  color: var(--fg-mid-s);
  margin-bottom: 0.6rem;
}
.exp-desc {
  font-size: 0.92rem;
  color: var(--fg-mid-s);
  line-height: 1.7;
  max-width: 54ch;
}

/* ── LISTE DES PROJETS ── */
.work-list { position: relative; }

.work-row {
  display: grid;
  grid-template-columns: 3.5rem minmax(0, 1.2fr) minmax(0, 1.3fr) 7.5rem 2rem;
  align-items: center;
  gap: 1.5rem;
  padding: 2.1rem 0.5rem;
  border-top: 1px solid var(--line);
  text-decoration: none;
  color: var(--fg);
  position: relative;
  transition: color 0.25s;
}
.work-list .work-row:last-child { border-bottom: 1px solid var(--line); }

.work-row::before {
  content: "";
  position: absolute; inset: 0 -1rem; border-radius: 14px;
  background: linear-gradient(90deg, var(--accent-soft), transparent 85%);
  opacity: 0; transition: opacity 0.3s;
  pointer-events: none;
}
.work-row:hover::before { opacity: 1; }
.work-row:hover { color: var(--fg); }
.work-row:active::before { opacity: 1; }
.work-row:focus-visible { outline-offset: 0; border-radius: 14px; }
.work-row:focus-visible::before { opacity: 1; }
.work-row:focus-visible .work-title { transform: translateX(6px); }
.work-row:focus-visible .work-icon { display: block; width: 3.5rem; height: 3.5rem; }
.work-icon img {
  display: block; width: 100%; height: 100%;
  border-radius: 14px;
  box-shadow: 0 10px 24px -14px rgba(0, 0, 0, 0.6);
  transition: transform 0.45s cubic-bezier(0.32, 0.72, 0, 1);
}
.work-row:hover .work-icon img, .work-row:focus-visible .work-icon img { transform: translateY(-2px) scale(1.05) rotate(-2deg); }
.work-num { color: var(--accent); }
.work-row:focus-visible .work-arrow { color: var(--accent); transform: translate(4px, -4px); }

.work-num {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--fg-soft);
  transition: color 0.25s;
}
.work-row:hover .work-num { color: var(--accent); }

.work-title {
  font-family: var(--font-display);
  font-weight: 650;
  font-size: clamp(1.5rem, 3.2vw, 2.4rem);
  letter-spacing: -0.035em;
  line-height: 1.05;
  color: var(--fg);
  transition: transform 0.35s cubic-bezier(.2,.7,.2,1);
}
.work-row:hover .work-title { transform: translateX(6px); }

.work-tags {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--fg-mid-s);
}

.work-cat {
  --h: var(--c-peach);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--h);
  text-align: center;
  border: 1px solid color-mix(in srgb, var(--h) 32%, transparent);
  background: color-mix(in srgb, var(--h) 11%, transparent);
  border-radius: 100px;
  padding: 0.25rem 0.7rem;
  justify-self: end;
  white-space: nowrap;
}

.work-arrow {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2rem; height: 2rem;
  color: var(--fg-faint);
  transition: color 0.25s, transform 0.35s cubic-bezier(.2,.7,.2,1);
}
.work-row:hover .work-arrow { color: var(--accent); transform: translate(4px, -4px); }

@media (max-width: 860px) {
  .work-row {
    grid-template-columns: 2.75rem minmax(0, 1fr) auto;
    gap: 0.4rem 1rem;
    padding: 1.4rem 0.25rem;
    align-items: start;
  }
  .work-row::before { inset: 0 -0.5rem; }
  .work-icon { grid-column: 1; grid-row: 1 / span 3; width: 2.75rem; height: 2.75rem; }
  .work-icon img { border-radius: 11px; }
  .work-title { grid-column: 2; font-size: clamp(1.3rem, 5.6vw, 1.7rem); }
  .work-tags { display: block; grid-column: 2; grid-row: 2; }
  .work-cat { grid-column: 2; grid-row: 3; justify-self: start; margin-top: 0.35rem; }
  .work-arrow { grid-column: 3; grid-row: 1 / span 3; align-self: center; }
}

/* Aperçu qui suit le curseur */
.work-preview {
  position: fixed; top: 0; left: 0;
  width: 360px; height: 250px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line-2);
  background: var(--bg-card);
  box-shadow: var(--shadow-card);
  pointer-events: none;
  z-index: 40;
  opacity: 0;
  transition: opacity 0.3s ease, scale 0.3s ease;
  scale: 0.92;
  will-change: transform;
}
.work-preview.is-visible { opacity: 1; scale: 1; }
.work-preview img { width: 100%; height: 100%; object-fit: cover; }
.work-preview.is-small { background: var(--bg-card); display: flex; align-items: center; justify-content: center; }
.work-preview.is-small img { width: auto; height: auto; max-width: 100%; max-height: 100%; object-fit: contain; }

/* ── COMPÉTENCES (grille asymétrique, 5 blocs) ── */
.skills-clusters {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 1rem;
}

.skill-cluster {
  --h: var(--c-peach);
  grid-column: span 12;
  display: flex; flex-direction: column; gap: 1.4rem;
  padding: 1.75rem;
  background:
    linear-gradient(160deg, color-mix(in srgb, var(--h) 12%, transparent), transparent 60%),
    var(--bg-card);
  border: 1px solid color-mix(in srgb, var(--h) 22%, var(--line-2));
  border-radius: var(--radius);
  transition: border-color 0.3s, transform 0.3s cubic-bezier(0.32, 0.72, 0, 1);
}
.skill-cluster:hover { border-color: color-mix(in srgb, var(--h) 55%, transparent); transform: translateY(-3px); }
@media (min-width: 820px) {
  .skill-cluster:nth-child(1) { grid-column: span 7; }
  .skill-cluster:nth-child(2) { grid-column: span 5; }
  .skill-cluster:nth-child(n+3) { grid-column: span 4; }
}
.skill-cluster:nth-child(1) { --h: var(--c-peach); }
.skill-cluster:nth-child(2) { --h: var(--c-sage); }
.skill-cluster:nth-child(3) { --h: var(--c-blue); }
.skill-cluster:nth-child(4) { --h: var(--c-clay); }
.skill-cluster:nth-child(5) { --h: var(--c-sand); }

.cluster-label {
  font-family: var(--font-display);
  font-weight: 650;
  font-size: 1.35rem;
  letter-spacing: -0.025em;
  color: var(--fg);
}
.cluster-label::before {
  content: "";
  display: inline-block;
  width: 0.55rem; height: 0.55rem; border-radius: 3px;
  background: var(--h);
  margin-right: 0.6rem;
  vertical-align: 0.1em;
}

.cluster-pills { display: flex; flex-wrap: wrap; gap: 0.5rem; }

.skill {
  display: inline-flex; align-items: center;
  border-radius: 100px;
  background: transparent;
  padding: 0.35rem 0.9rem;
  font-size: 0.84rem; font-weight: 450;
  color: var(--fg-mid-s);
  border: 1px solid var(--line-2);
  transition: color 0.2s, border-color 0.2s, background 0.2s, transform 0.2s;
  cursor: default;
}
.skill:hover { color: var(--fg); border-color: var(--fg-mid-s); transform: translateY(-2px); }
.skill-strong {
  color: var(--fg);
  border-color: color-mix(in srgb, var(--h, var(--accent)) 45%, transparent);
  background: color-mix(in srgb, var(--h, var(--accent)) 16%, transparent);
  font-weight: 550;
}
.skill-strong:hover { color: var(--fg); border-color: var(--h, var(--accent)); }

/* ── CONTACT ── */
.contact-cta {
  background:
    radial-gradient(34rem 20rem at 8% 0%, color-mix(in srgb, var(--c-peach) 20%, transparent), transparent 70%),
    radial-gradient(30rem 20rem at 100% 100%, color-mix(in srgb, var(--c-sage) 18%, transparent), transparent 70%),
    var(--glass);
  border: 1px solid var(--glass-edge);
  box-shadow: var(--shadow-card), inset 0 1px 0 var(--glass-shine);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  color: var(--fg);
  border-radius: var(--radius);
  padding: clamp(2.5rem, 7vw, 5.5rem) clamp(1.5rem, 5vw, 4.5rem);
}
.contact-kicker {
  font-family: var(--font-display);
  font-weight: 650;
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  letter-spacing: -0.02em;
  color: var(--fg-mid);
  margin-bottom: 1rem;
}
.contact-mail {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.7rem, 5.4vw, 4.2rem);
  letter-spacing: -0.04em;
  color: var(--fg);
  line-height: 1.05;
  margin-bottom: 2.5rem;
  overflow-wrap: anywhere;
  border-bottom: 3px solid var(--accent-line);
  transition: border-color 0.25s, color 0.25s;
}
.contact-mail:hover { color: var(--accent); border-color: var(--accent); }
.contact-links { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.contact-links a {
  font-size: 0.85rem; font-weight: 550;
  color: var(--fg);
  border: 1px solid var(--glass-edge);
  background: transparent;
  border-radius: 100px;
  padding: 0.55rem 1.2rem;
  transition: background 0.2s, border-color 0.2s;
}
.contact-links a:hover { background: var(--glass-strong); border-color: var(--accent-line); color: var(--fg); }

/* ── PIED DE PAGE ── */
.footer {
  border-top: 1px solid var(--line);
  padding: 2.5rem 0;
}
.footer-content {
  display: flex; flex-direction: column; gap: 1rem;
  align-items: center;
}
@media (min-width: 640px) {
  .footer-content { flex-direction: row; justify-content: space-between; }
}
.copyright { font-family: var(--font-mono); font-size: 0.78rem; color: var(--fg-soft); }
.footer-top {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-mono); font-size: 0.78rem;
  color: var(--fg-mid-s);
}
.footer-top:hover { color: var(--accent); }
.footer-top i { transition: transform 0.3s; }
.footer-top:hover i { transform: translateY(-3px); }

/* ── APPARITION AU SCROLL ── */
.reveal-ready [data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.75s cubic-bezier(.2,.7,.2,1),
              transform 0.75s cubic-bezier(.2,.7,.2,1);
  transition-delay: var(--reveal-delay, 0ms);
}
.reveal-ready [data-reveal].in-view { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal-ready [data-reveal] { opacity: 1; transform: none; }
  .marquee-track, .badge-dot { animation: none; }
  .hero-frame { transition: none; }
}

/* ============================================================
   PROJECT PAGES — compatibility (kept dark/editorial)
   ============================================================ */
.project-overview { display: flex; gap: 3rem; margin-bottom: 1.5rem; }
@media (max-width: 768px) { .project-overview { flex-direction: column; } }
.project-summary { flex: 1; }

.features-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem; margin-top: 1.5rem;
}
.feature-card {
  background: var(--bg-card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.25rem; text-align: center;
  transition: border-color 0.2s, transform 0.25s;
}
.feature-card:hover { border-color: var(--line-2); transform: translateY(-3px); }
.feature-icon { font-size: 2rem; color: var(--accent); margin-bottom: 1rem; }

.tech-stack, .implementation-details { margin-bottom: 1.5rem; margin-left: 1rem; }
.project-challenges ul { list-style-type: disc; padding-left: 1.5rem; }

section { margin-bottom: 6rem; }
h3 { margin-bottom: 0.5rem; color: var(--fg); }
ul { margin-top: 0.5rem; margin-bottom: 0.5rem; }


.section-title {
  font-family: var(--font-display);  font-weight: 700;
  font-size: clamp(2rem, 5vw, 3rem);
  text-align: center; margin-bottom: 2rem; line-height: 1.15;
  letter-spacing: -0.02em;
}

.tech-skills { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.8rem; }

/* ── PROJECT PAGE CONTENT POLISH ── */
.project-details p, .project-summary p, .project-overview p,
.project-challenges p, .technical-details p, .implementation-details p,
.project-details li, .project-summary li, .implementation-details li, .project-challenges li { max-width: 72ch; }
.project-details p, .project-summary p, .project-overview p,
.project-challenges p, .technical-details p, .implementation-details p,
.project-details li, .project-summary li, .implementation-details li, .project-challenges li { font-size: 1.03rem; }

.project-header .section-title { margin-bottom: 0.85rem; }

.project-details p, .project-summary p,
.project-overview p, .project-challenges p,
.technical-details p, .implementation-details p {
  color: var(--fg-mid-s);
  line-height: 1.85;
}
.project-details strong, .project-summary strong,
.implementation-details strong, .project-challenges strong { color: var(--fg); font-weight: 500; }

.project-details ul, .project-summary ul,
.implementation-details ul, .project-challenges ul,
.technical-details ul, section .section ul {
  padding-left: 1.25rem;
  margin: 0.75rem 0 1.25rem;
}
.project-details li, .project-summary li,
.implementation-details li, .project-challenges li {
  color: var(--fg-mid-s);
  margin-bottom: 0.55rem;
  line-height: 1.7;
}
.project-details li::marker, .project-summary li::marker,
.implementation-details li::marker, .project-challenges li::marker { color: var(--accent); }

.project-link, .project-summary a, .project-details a {
  color: var(--accent);
  font-weight: 500;
  border-bottom: 1px solid var(--accent-line);
  transition: color 0.2s, border-color 0.2s;
}
.project-link:hover, .project-summary a:hover, .project-details a:hover {
  color: var(--fg);
  border-color: var(--fg);
}


.feature-card ul { padding-left: 1.1rem; margin-top: 0.6rem; }
.feature-card li { font-size: 0.85rem; color: var(--fg-mid-s); margin-bottom: 0.35rem; }
.feature-card li::marker { color: var(--accent); }
.feature-card h3 { font-size: 0.95rem; }
.feature-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.5rem; height: 2.5rem; border-radius: 10px;
  background: var(--accent-soft); border: 1px solid var(--accent-line);
  font-size: 1.05rem;
}

/* ── PORTFOLIO D'APPRENTISSAGE ── */
.index-section { padding: 3rem 0; }
.index-section > .section-title { text-align: center; }

.portfolio-intro {
  max-width: 760px; margin: 0 auto 3.5rem; text-align: center;
}
.portfolio-intro p { color: var(--fg-mid-s); }

.competence {
  max-width: 840px; margin: 0 auto 1.75rem; padding: 2.25rem;
  background: var(--bg-card); border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.3s, transform 0.3s;
}
.competence:hover { border-color: var(--accent-line); transform: translateY(-3px); }
.competence h3 {
  font-family: var(--font-display);  font-weight: 650;
  font-size: 1.5rem; color: var(--fg); margin-bottom: 0.4rem; line-height: 1.25;
}
.competence h4 {
  font-family: var(--font-mono); font-size: 0.68rem; text-transform: uppercase;
  letter-spacing: 0.12em; color: var(--accent);
  margin: 1.75rem 0 0.7rem;
  padding-bottom: 0.4rem; border-bottom: 1px solid var(--line);
}
.competence p { color: var(--fg-mid-s); line-height: 1.85; }
.competence ul { padding-left: 1.25rem; margin: 0.5rem 0 1rem; }
.competence li { color: var(--fg-mid-s); margin-bottom: 0.5rem; line-height: 1.7; }
.competence li::marker { color: var(--accent); }
.competence strong { color: var(--fg); font-weight: 500; }
.competence a { color: var(--accent); border-bottom: 1px solid var(--accent-line); }
.competence a:hover { color: var(--fg); border-color: var(--fg); }

/* ============================================================
   PROJECT PAGES — editorial "wow" layout & motion
   ============================================================ */
main.container { padding-top: 1rem; padding-bottom: 5rem; }

/* ── HERO ── */
.section > .section-title {
  text-align: left;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.7rem, 7.5vw, 5.25rem);
  line-height: 1.02;
  letter-spacing: -0.025em;
  margin: 0 0 1.4rem;
  max-width: 20ch;
}
.project-header, .section.project-header {
  text-align: left;
  border-bottom: none;
  margin-bottom: 0;
  padding: 3.5rem 0 0;
}
.project-subtitle {
  text-align: left;
  margin: 0;
  max-width: 58ch;
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  font-family: var(--font-sans); /* DM Sans for readability */
  font-weight: 700;
  color: var(--fg-mid-s);
  line-height: 1.65;
}
.project-header .tech-skills { margin: 2rem 0 0; }

/* ── SECTION RHYTHM ── */
main.container > .section { padding: 3.5rem 0 0; margin: 0; border-top: none; }
main.container > .section + .section {
  border-top: 1px solid var(--line);
  margin-top: 3.5rem;
}
/* internal dividers for single-section pages */
.project-details > .subtitle:not(:first-child),
.project-summary > .subtitle:not(:first-child) {
  border-top: 1px solid var(--line);
  padding-top: 2.75rem;
  margin-top: 3.25rem;
}

/* ── SECTION HEADERS (h2) ── */
.subtitle {
  font-family: var(--font-display);  font-weight: 650;
  font-size: clamp(1.55rem, 3vw, 2.2rem);
  line-height: 1.12;
  margin-top: 1rem; margin-bottom: 1.5rem;
  color: var(--fg);
}
.subtitle::before {
  content: "";
  display: block;
  width: 2.25rem; height: 2px;
  background: var(--accent);
  border-radius: 2px;
  margin-bottom: 1.1rem;
}

/* ── LEAD PARAGRAPH ── */
.project-summary > p:first-of-type,
.project-details > p:first-of-type {
  font-size: 1.2rem;
  line-height: 1.85;
  color: var(--fg);
}

/* ── IMAGES ── */
.image-content {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  margin: 2.25rem auto;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
  transition: border-color 0.3s;
}
.image-content:hover { border-color: var(--accent-line); }

/* ── ENTRANCE ON LOAD ── */
@media (prefers-reduced-motion: no-preference) {
  .section > .section-title { animation: pp-rise 0.95s cubic-bezier(.2,.7,.2,1) both; }
  .project-subtitle { animation: pp-rise 0.95s cubic-bezier(.2,.7,.2,1) 0.12s both; }
  .project-header .tech-skills { animation: pp-rise 0.95s cubic-bezier(.2,.7,.2,1) 0.24s both; }
}
@keyframes pp-rise {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: none; }
}

/* ── SCROLL REVEAL (CSS-only, progressive) ── */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    main.container > .section + .section,
    .project-details > *,
    .project-summary > *,
    .feature-card,
    .image-content,
    .competence {
      animation: pp-reveal linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 32%;
    }
  }
}
@keyframes pp-reveal {
  from { opacity: 0; transform: translateY(36px); }
  to   { opacity: 1; transform: none; }
}


/* ============================================================
   VERRE LIQUIDE (approximation web, voir glass.js)
   Les panneaux [data-glass] réfractent ce qui passe derrière eux :
   disques colorés (.orb), texte qui défile sous l'en-tête.
   ============================================================ */
:root {
  --rim:
    inset 0 0 0 1px var(--glass-edge),
    inset 0 1.5px 0 var(--glass-shine),
    inset 1.5px 0 0 color-mix(in srgb, var(--glass-shine) 45%, transparent),
    inset 0 -1.5px 0 rgba(0, 0, 0, 0.16),
    inset 0 0 28px color-mix(in srgb, var(--glass-shine) 22%, transparent);
}
.contact-cta { box-shadow: var(--shadow-card), var(--rim); }

/* reflet spéculaire en diagonale */
[data-glass] {
  background-image:
    linear-gradient(125deg, color-mix(in srgb, var(--glass-shine) 70%, transparent) 0%, transparent 28%, transparent 72%, color-mix(in srgb, var(--glass-shine) 30%, transparent) 100%);
}
.has-refraction .contact-cta { background-color: color-mix(in srgb, var(--glass) 70%, transparent); }

/* rubans organiques : matière diffuse derrière le verre.
   Très floutés, immobiles, discrets. Un seul par section (hero, compétences, contact). */
.hero, .section-block { position: relative; isolation: isolate; }
.orb {
  position: absolute; z-index: -1;
  left: 50%; width: 100vw;
  transform: translateX(-50%);
  pointer-events: none;
  filter: blur(44px);
  opacity: var(--ribbon);
}
.orb::before {
  content: "";
  position: absolute; inset: 0;
  background: var(--orb-bg);
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-size: 100% 100%; mask-size: 100% 100%;
}
.orb-shape-a::before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 1000 300%22 preserveAspectRatio=%22none%22%3E%3Cpath d=%22M0,190 C70,95 180,45 300,78 C420,112 500,205 640,168 C770,134 850,30 1000,62 L1000,160 C890,200 800,290 650,268 C520,248 430,160 300,196 C190,226 90,285 0,250 Z%22 fill=%22%23000%22/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 1000 300%22 preserveAspectRatio=%22none%22%3E%3Cpath d=%22M0,190 C70,95 180,45 300,78 C420,112 500,205 640,168 C770,134 850,30 1000,62 L1000,160 C890,200 800,290 650,268 C520,248 430,160 300,196 C190,226 90,285 0,250 Z%22 fill=%22%23000%22/%3E%3C/svg%3E"); }
.orb-shape-b::before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 1000 300%22 preserveAspectRatio=%22none%22%3E%3Cpath d=%22M0,120 C110,40 230,70 330,120 C440,176 520,230 660,190 C790,152 880,60 1000,110 L1000,215 C880,170 800,255 660,262 C520,270 430,215 330,206 C220,196 110,260 0,222 Z%22 fill=%22%23000%22/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 1000 300%22 preserveAspectRatio=%22none%22%3E%3Cpath d=%22M0,120 C110,40 230,70 330,120 C440,176 520,230 660,190 C790,152 880,60 1000,110 L1000,215 C880,170 800,255 660,262 C520,270 430,215 330,206 C220,196 110,260 0,222 Z%22 fill=%22%23000%22/%3E%3C/svg%3E"); }
.orb-shape-c::before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 1000 300%22 preserveAspectRatio=%22none%22%3E%3Cpath d=%22M0,150 C90,70 190,110 290,150 C400,194 470,60 600,70 C730,80 790,200 900,170 C950,156 980,120 1000,100 L1000,230 C960,262 900,285 820,268 C700,242 640,160 540,190 C430,224 360,290 250,262 C150,236 80,220 0,255 Z%22 fill=%22%23000%22/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 1000 300%22 preserveAspectRatio=%22none%22%3E%3Cpath d=%22M0,150 C90,70 190,110 290,150 C400,194 470,60 600,70 C730,80 790,200 900,170 C950,156 980,120 1000,100 L1000,230 C960,262 900,285 820,268 C700,242 640,160 540,190 C430,224 360,290 250,262 C150,236 80,220 0,255 Z%22 fill=%22%23000%22/%3E%3C/svg%3E"); }

.orb-hero-b, .orb-skill-b, .orb-contact-b { display: none; }

.orb-hero-a::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 1000 300%22 preserveAspectRatio=%22none%22%3E%3Cpath d=%22M0,190 C70,95 180,45 300,78 C420,112 500,205 640,168 C770,134 850,30 1000,62 L1000,160 C890,200 800,290 650,268 C520,248 430,160 300,196 C190,226 90,285 0,250 Z%22 fill=%22%23000%22/%3E%3C/svg%3E"), linear-gradient(90deg, transparent 34%, #000 64%);
  mask-image: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 1000 300%22 preserveAspectRatio=%22none%22%3E%3Cpath d=%22M0,190 C70,95 180,45 300,78 C420,112 500,205 640,168 C770,134 850,30 1000,62 L1000,160 C890,200 800,290 650,268 C520,248 430,160 300,196 C190,226 90,285 0,250 Z%22 fill=%22%23000%22/%3E%3C/svg%3E"), linear-gradient(90deg, transparent 34%, #000 64%);
  -webkit-mask-composite: source-in; mask-composite: intersect;
  -webkit-mask-size: 100% 100%, 100% 100%; mask-size: 100% 100%, 100% 100%;
}
.orb-hero-a {
  top: 12%; height: 24rem; rotate: -5deg;
  --orb-bg: linear-gradient(100deg, var(--c-peach) 10%, var(--c-clay) 55%, var(--c-blue) 100%);
}
.orb-skill-a {
  top: 40%; height: 9rem; rotate: -2deg;
  --orb-bg: linear-gradient(95deg, var(--c-sage), var(--c-blue) 50%, var(--c-peach));
}
.orb-contact-a {
  top: -4rem; height: 11rem; rotate: -2deg;
  --orb-bg: linear-gradient(95deg, var(--c-peach), var(--c-clay) 55%, var(--c-blue));
}
@media (max-width: 959px) {
  .orb-hero-a { top: auto; bottom: 8rem; height: 14rem; }
  .orb-skill-a { top: 30%; }
}
@media (prefers-reduced-transparency: reduce) { .orb { display: none; } }

/* bande de section : la section compétences repose sur une surface plus profonde */
#skills::before {
  content: "";
  position: absolute; z-index: -2;
  left: 50%; width: 100vw; transform: translateX(-50%);
  top: -2.5rem; bottom: -2.5rem;
  background: var(--bg-2);
  border-radius: 40px;
  border: 1px solid var(--line);
}

/* reflet qui suit le curseur sur les panneaux de verre (pas de déplacement de forme) */
.skill-cluster, .contact-cta { --mx: 50%; --my: 0%; }
.skill-cluster::after, .contact-cta::after {
  content: "";
  position: absolute; inset: 0;
  border-radius: inherit;
  background: radial-gradient(22rem circle at var(--mx) var(--my), color-mix(in srgb, var(--h, var(--c-peach)) 22%, transparent), transparent 60%);
  opacity: 0;
  transition: opacity 0.35s;
  pointer-events: none;
}
.skill-cluster:hover::after, .contact-cta:hover::after { opacity: 1; }
.skill-cluster, .contact-cta { position: relative; }


/* ============================================================
   AUDIT UX : navigation mobile, état courant, typographie, tactile
   ============================================================ */
.nav-link[aria-current="true"] { color: var(--fg); background: var(--hover); }

h1, h2, h3, .hero-title, .about-quote, .work-title, .exp-role { text-wrap: balance; }
p, .exp-desc, .hero-statement, .hero-caption { text-wrap: pretty; }

/* dock : navigation de sections sur mobile, en verre, avec indicateur */
.dock { display: none; }
@media (max-width: 819px) {
  .dock {
    display: flex; gap: 0.1rem;
    position: fixed; z-index: 50;
    left: 50%; transform: translateX(-50%);
    bottom: max(0.75rem, env(safe-area-inset-bottom));
    padding: 0.3rem;
    border-radius: 100px;
    background: color-mix(in srgb, var(--bg-card) 80%, transparent);
    border: 1px solid var(--glass-edge);
    backdrop-filter: blur(18px) saturate(1.6);
    -webkit-backdrop-filter: blur(18px) saturate(1.6);
    box-shadow: var(--shadow-card), var(--rim);
    max-width: calc(100vw - 1.25rem);
  }
  .dock a {
    display: inline-flex; align-items: center;
    min-height: 2.75rem; padding: 0 0.62rem;
    border-radius: 100px;
    font-size: 0.78rem; font-weight: 500;
    color: var(--fg-mid-s);
    white-space: nowrap;
    transition: background 0.3s cubic-bezier(0.32, 0.72, 0, 1), color 0.3s, transform 0.15s;
  }
  .dock a:active { transform: scale(0.96); }
  .dock a[aria-current="true"] {
    background: var(--accent-soft); color: var(--fg);
    box-shadow: inset 0 0 0 1px var(--accent-line);
  }
  .footer { padding-bottom: 6.5rem; }
}

/* espacements mobiles */
@media (max-width: 700px) {
  .section-block, .marquee-section { margin-bottom: 5.5rem; }
  .section-head { margin-bottom: 2.25rem; }
  .about-editorial { margin-bottom: 3.5rem; gap: 1.75rem; }
  #skills::before { top: -1.75rem; bottom: -1.75rem; border-radius: 28px; }
}

/* zones tactiles confortables */
@media (pointer: coarse) {
  .logo { min-height: 2.75rem; }
  .footer-top { min-height: 2.75rem; }
  .contact-links a { display: inline-flex; align-items: center; min-height: 2.75rem; }
  .btn-primary, .btn-lg.btn-outline { height: 3rem; }
}

/* pas de survol collant sur écran tactile : retour d'appui à la place */
@media (hover: none) {
  .skill-cluster:hover, .hero-visual:hover .hero-frame, .skill:hover { transform: none; }
  .skill-cluster:hover { border-color: color-mix(in srgb, var(--h) 24%, var(--glass-edge)); }
  .work-row:hover::before { opacity: 0; }
  .work-row:hover .work-title { transform: none; }
  .work-row:hover .work-arrow { color: var(--fg-faint); transform: none; }
  .work-row:hover .work-num { color: var(--fg-soft); }
  .work-row:hover .work-icon img { transform: none; }
  .contact-mail:hover { color: var(--fg); border-color: var(--accent-line); }
  .skill-cluster:active, .contact-links a:active, .btn:active { transform: scale(0.98); }
  .work-row:active::before { opacity: 1; }
}

/* mouvement réduit : pas d'effet de survol animé sur les panneaux */
@media (prefers-reduced-motion: reduce) {
  .skill-cluster, .work-row .work-title, .work-row .work-arrow, .hero-frame { transition: none; }
}
