/* lexi.ink — feuille de style unique (remplace Astra + Elementor) */

@font-face { font-family: "Poppins"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/Poppins-400.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/Poppins-500.woff2") format("woff2"); }
@font-face { font-family: "Be Vietnam Pro"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/BeVietnamPro-500.woff2") format("woff2"); }
@font-face { font-family: "Roboto"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/Roboto-600.woff2") format("woff2"); }
@font-face { font-family: "Playfair Display"; font-style: italic; font-weight: 500; font-display: swap; src: url("fonts/PlayfairDisplay-500-italic.woff2") format("woff2"); }

:root {
  --ink: #14261C;        /* titres (ast-global-color-2) */
  --text: #4F5655;       /* texte courant (ast-global-color-3) */
  --muted: #4B4F58;      /* descriptions (ast-global-color-7) */
  --accent: #00AC97;     /* vert Lexi (ast-global-color-1) */
  --accent-ink: #007A6B; /* même teinte, lisible sur blanc (≥ 4,5:1) */
  --soft: #F3F6F3;       /* fond doux (ast-global-color-4) */
  --line: #DCE3DE;
  --bg: #FFFFFF;
  --max: 1200px;
  --gutter: clamp(20px, 4vw, 40px);
  --display: "Be Vietnam Pro", system-ui, sans-serif;
  --body: "Poppins", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, h4, h5 { margin: 0; color: var(--ink); font-family: var(--display); font-weight: 500; line-height: 1.15; }
p { margin: 0; }

.skip-link { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 6px; z-index: 10; }
.skip-link:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; padding-inline: var(--gutter); }

/* En-tête */
.site-header { position: absolute; inset: 0 0 auto 0; z-index: 5; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; padding-block: 20px; }
.site-header .logo img { width: 90px; height: auto; border-radius: 10px; }
.site-nav a {
  font-size: 0.95rem; font-weight: 500; text-decoration: none; color: var(--accent-ink);
  padding: 6px 2px; border-bottom: 2px solid transparent; transition: border-color .2s;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { border-bottom-color: var(--accent); }

/* Accueil — héros */
.hero { min-height: min(100svh, 940px); display: flex; flex-direction: column; justify-content: flex-end; padding-top: 140px; padding-bottom: 24px; }
.hero-grid { display: grid; grid-template-columns: 2fr 1fr; align-items: center; gap: 40px; margin-bottom: clamp(48px, 12vh, 144px); }
.hero-title { font-size: clamp(3.5rem, 9vw, 7rem); line-height: 1; letter-spacing: -0.05em; }
.hero-sub { display: block; margin-top: 12px; font-family: var(--body); font-weight: 400; font-size: clamp(2.6rem, 6.2vw, 5rem); line-height: 1.1; color: var(--ink); letter-spacing: -0.01em; }
.hero-tag { display: block; margin-top: 16px; font-family: "Roboto", var(--body); font-weight: 600; font-size: clamp(1.5rem, 3vw, 2.5rem); line-height: 1.2; color: var(--ink); max-width: 24em; }
.hero-mark img { width: 100%; max-width: 360px; margin-left: auto; border-radius: 50%; }
.scroll-cue { display: inline-flex; align-items: center; gap: 14px; text-decoration: none; color: var(--ink); font-family: var(--display); font-weight: 500; font-size: 1.15rem; letter-spacing: -0.02em; }
.scroll-cue svg { width: 32px; height: 32px; fill: currentColor; transition: transform .25s; }
.scroll-cue:hover svg { transform: translateY(4px); }

/* Sections numérotées */
.section { padding-block: clamp(80px, 14vw, 200px); }
.section--soft { background: var(--soft); }
.numbered { display: grid; grid-template-columns: 1fr 3fr; gap: 24px; }
.num { font-size: clamp(1.5rem, 2.4vw, 2rem); letter-spacing: -0.03em; }
.lead { font-family: var(--body); font-weight: 500; font-size: clamp(1.15rem, 2.4vw, 2rem); line-height: 1.5; color: var(--ink); margin-bottom: 24px; max-width: 34em; }
.about-text { max-width: 40em; }

.projects-head { display: grid; grid-template-columns: 1fr 2fr 1fr; align-items: baseline; gap: 24px; margin-bottom: clamp(48px, 7vw, 80px); }
.projects-head h2 { font-size: clamp(2rem, 3.4vw, 2.5rem); letter-spacing: -0.04em; }
.link-underline { justify-self: end; font-size: 0.9rem; font-weight: 500; color: var(--ink); text-decoration: none; padding-bottom: 4px; border-bottom: 2px solid var(--accent); transition: color .2s; white-space: nowrap; }
.link-underline:hover { color: var(--accent-ink); }

.project { display: block; }
.project-img { display: block; overflow: hidden; border-radius: 14px; background: #4F8EF7; }
.project-img img { width: 100%; aspect-ratio: 2560 / 1098; object-fit: cover; transition: transform .4s ease; }
.project-img:hover img { transform: scale(1.02); }
@media (prefers-reduced-motion: reduce) { .project-img img, .scroll-cue svg { transition: none; } }
.project h3 { margin-top: 20px; margin-bottom: 8px; font-size: clamp(1.5rem, 2.6vw, 2rem); letter-spacing: -0.03em; }
.project h3 a { text-decoration: none; }
.project h3 a:hover { color: var(--accent-ink); }
.project p { font-size: 1rem; font-weight: 500; color: var(--muted); max-width: 60em; }

/* Page « Work » */
.page-hero { background: var(--soft); padding-top: clamp(120px, 16vw, 200px); padding-bottom: clamp(48px, 10vw, 160px); }
.page-hero h1 { font-size: clamp(2.5rem, 9vw, 7rem); line-height: 1; letter-spacing: -0.05em; }
.page-hero .script { display: block; margin-top: 8px; font-family: "Playfair Display", Georgia, serif; font-style: italic; font-weight: 500; font-size: clamp(2.5rem, 9vw, 7rem); line-height: 1; letter-spacing: -0.03em; color: var(--ink); }
.works { background: var(--soft); padding-top: 0; }

/* Page « Contact » */
.contact h1 { font-size: clamp(1.4rem, 2.4vw, 1.6rem); letter-spacing: -0.02em; margin-bottom: 20px; }
.contact a { font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 500; color: var(--ink); text-decoration: none; border-bottom: 2px solid var(--accent); }
.contact a:hover { color: var(--accent-ink); }

/* 404 */
.notfound { min-height: 70svh; display: flex; align-items: center; padding-top: 140px; }
.notfound h1 { font-size: clamp(3rem, 8vw, 6rem); letter-spacing: -0.05em; margin-bottom: 12px; }
.notfound p { margin-bottom: 28px; }

/* Pied de page */
.site-footer { border-top: 1px solid var(--line); }
.site-footer .wrap { padding-block: 36px 40px; font-size: 0.9rem; line-height: 1.9; color: var(--ink); }
.site-footer a { text-decoration: none; border-bottom: 1px solid transparent; }
.site-footer a:hover { border-bottom-color: var(--accent); }

/* Tablette et mobile */
@media (max-width: 1024px) {
  .hero { min-height: 95svh; padding-top: 120px; }
  .numbered { grid-template-columns: 1fr; gap: 12px; }
  .projects-head { grid-template-columns: auto 1fr auto; }
}
@media (max-width: 767px) {
  .site-header .logo img { width: 72px; }
  .hero { min-height: auto; padding-top: 120px; padding-bottom: 40px; }
  .hero-grid { grid-template-columns: 1fr; margin-bottom: 48px; }
  .hero-mark { display: none; } /* comme l'original : image masquée sur mobile */
  .projects-head { grid-template-columns: 1fr; gap: 8px; }
  .link-underline { justify-self: start; }
}
