/* fabien.dev — thème Bento
   Palette : fond #0d0d10, tuiles #17171c, accents violet #5b3df5 et lime #c6ff4d
*/

@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/plus-jakarta-sans-latin-ext-400.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/plus-jakarta-sans-latin-400.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/plus-jakarta-sans-latin-ext-500.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/plus-jakarta-sans-latin-500.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/plus-jakarta-sans-latin-ext-700.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/plus-jakarta-sans-latin-700.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("../fonts/plus-jakarta-sans-latin-ext-800.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("../fonts/plus-jakarta-sans-latin-800.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #0d0d10;
  --card: #17171c;
  --card-border: #2a2a34;
  --text: #f2f2f6;
  --muted: #b8b8c6;
  --label: #c5c5d2;
  --violet: #5b3df5;
  --violet-dark: #2a1b8f;
  --lime: #c6ff4d;
  --lime-ink: #14180a;
  --lime-label: #2a330c;
  --ok: #3ee87a;
  --chip: #23232b;
  --radius: 24px;
  --focus: #c6ff4d;
  --max: 1200px;
  --gap: 14px;
}

*,
*::before,
*::after { box-sizing: border-box; margin: 0; }

html { color-scheme: dark; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

body {
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  min-height: 100vh;
  padding: 20px 24px 48px;
  -webkit-font-smoothing: antialiased;
}

.skip {
  position: absolute;
  left: 12px;
  top: 8px;
  z-index: 20;
  background: var(--lime);
  color: var(--lime-ink);
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 999px;
  text-decoration: none;
  transform: translateY(-150%);
}
.skip:focus { transform: none; }

.top {
  max-width: var(--max);
  margin: 0 auto 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.brand {
  font-weight: 800;
  font-size: 17px;
  letter-spacing: -0.03em;
  color: var(--text);
  text-decoration: none;
  border-radius: 8px;
}
.brand:hover { color: var(--lime); }

.lang {
  display: flex;
  gap: 6px;
}
.lang a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 36px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--chip);
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.lang a:hover { color: var(--text); }
.lang a[aria-current="page"] {
  background: #fff;
  color: #111;
}

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

.g {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: minmax(170px, auto);
  gap: var(--gap);
}

.c {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 24px;
  position: relative;
  overflow: hidden;
}

.c > h2,
.tile-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--label);
  margin-bottom: 12px;
}

.hero {
  grid-column: span 2;
  grid-row: span 2;
  background: linear-gradient(145deg, var(--violet), var(--violet-dark));
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border: 0;
  min-height: 360px;
}
.hero h1 {
  font-size: clamp(42px, 5vw, 54px);
  line-height: 1;
  letter-spacing: -0.03em;
  font-weight: 800;
}
.hero .lead {
  margin-top: 12px;
  opacity: 0.92;
  font-size: 18px;
  font-weight: 500;
}

.av {
  width: 64px;
  height: 64px;
  border-radius: 20px;
  background: #fff;
  color: var(--violet-dark);
  font-weight: 800;
  font-size: 26px;
  display: grid;
  place-items: center;
  position: absolute;
  top: 24px;
  left: 24px;
  letter-spacing: -0.04em;
}

.big {
  font-size: 64px;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
}
.big small {
  font-size: 20px;
  color: var(--muted);
  font-weight: 500;
  letter-spacing: 0;
}

.muted { color: var(--muted); }

.place {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  display: block;
}

.dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--ok);
  margin-right: 8px;
  box-shadow: 0 0 10px var(--ok);
  vertical-align: middle;
}
@media (prefers-reduced-motion: reduce) {
  .dot { box-shadow: none; }
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chips li { list-style: none; }
.chips ul, .chips { padding: 0; margin: 0; }
.chip,
.chips span,
.chips li {
  background: var(--chip);
  border-radius: 99px;
  padding: 6px 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
}
.chip--hot,
.chips .hot,
.chips li.hot {
  background: var(--lime);
  color: var(--lime-ink);
  font-weight: 700;
}

.wide { grid-column: span 2; }

.t p { font-size: 15px; color: var(--muted); margin-top: 6px; }
.t b, .t .role { color: var(--text); font-size: 16px; font-weight: 700; display: block; }

.cta {
  background: var(--lime);
  color: var(--lime-ink);
  border: 0;
}
.cta h2 { color: var(--lime-label); }
.cta p { font-weight: 700; font-size: 18px; color: var(--lime-ink); }

.btn {
  display: inline-block;
  margin-top: 14px;
  background: #111;
  color: #fff;
  padding: 12px 18px;
  border-radius: 99px;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
}
.btn:hover { background: #2a2a2a; }
.cta .btn:focus-visible { outline-color: #111; }

.mail a.email {
  color: var(--text);
  font-weight: 700;
  font-size: 18px;
  text-decoration: none;
  word-break: break-all;
  border-radius: 4px;
}
.mail a.email:hover { color: var(--lime); }

/* —— Portfolio
   Pour masquer toute la section : attribut hidden sur #portfolio (FR et EN).
   Projets passés : dupliquer un article.project dans .projects--past.
   Projets en cours : dupliquer un article dans .projects--current
   (schéma de fonctionnement .fuel-diagram à côté de la capture du tableau de bord).
   Autres réalisations : dupliquer un article dans .projects--other.
   Voir README.md. */
#portfolio {
  grid-column: 1 / -1;
  background: transparent;
  border: 0;
  padding: 8px 0 0;
  overflow: visible;
}
.portfolio-block { margin: 0 0 22px; }
.portfolio-block > h2,
#portfolio > h2 {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--label);
  margin: 8px 2px 14px;
}
.portfolio-block--secondary > h2 { color: #9a9aaa; }
.projects {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
  list-style: none;
  padding: 0;
  margin: 0;
}
.projects--past,
.projects--current { grid-template-columns: 1fr; }
.project {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.project picture { display: block; width: 100%; }
.project img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top center;
  border-radius: 16px;
  margin-bottom: 16px;
  background: var(--chip);
}
.project h3 {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
  line-height: 1.2;
}
.project-meta {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--label);
  margin-bottom: 8px;
  line-height: 1.45;
  overflow-wrap: break-word;
  text-wrap: pretty;
}
@media (max-width: 560px) {
  .project-meta { letter-spacing: 0.02em; }
}
.project p, .project dd { color: var(--muted); font-size: 15px; }
.facts {
  display: grid;
  gap: 12px;
  margin: 14px 0 0;
}
.facts div { margin: 0; }
.facts dt {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--label);
  margin-bottom: 4px;
}
.facts dd { margin: 0; }
.project .chips { margin-top: 16px; }
.project-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-top: 14px;
}
.project-links a,
.project a.more {
  color: var(--lime);
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
}
.project-links a:hover,
.project a.more:hover { text-decoration: underline; }
.project--featured h3 {
  font-size: clamp(22px, 2.4vw, 28px);
  margin-bottom: 4px;
}
.projects--past .project:not(.project--featured) h3 {
  font-size: clamp(18px, 2vw, 22px);
  margin-bottom: 4px;
}
.facts .chips { margin-top: 12px; }
.project--current h3 {
  font-size: clamp(20px, 2.2vw, 24px);
  margin-bottom: 8px;
}
.project--current img {
  aspect-ratio: 2 / 1;
  object-position: top center;
  background: #fff;
}
.project-visuals {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 14px;
  align-items: stretch;
  margin-bottom: 16px;
}
.fuel-diagram {
  margin: 0;
  min-width: 0;
  background: #101014;
  border: 1px solid var(--card-border);
  border-radius: 16px;
  overflow: hidden;
}
.fuel-diagram svg {
  display: block;
  width: 100%;
  height: auto;
  font-family: inherit;
}
.fuel-diagram__tall { display: none; }
.project--current .project-shot {
  display: block;
  min-width: 0;
  align-self: stretch;
}
.project--current .project-shot img,
.project--current .project-visuals img {
  margin-bottom: 0;
  height: 100%;
  object-fit: cover;
}
@media (max-width: 800px) {
  .project-visuals { grid-template-columns: 1fr; }
  .fuel-diagram__wide { display: none; }
  .fuel-diagram__tall { display: block; }
  .project--current .project-shot img,
  .project--current .project-visuals img {
    height: auto;
    aspect-ratio: 2 / 1;
  }
}
.project--other { font-size: 15px; }
.project--other h3 { font-size: 17px; }
.portfolio-note {
  margin: 14px 2px 0;
  max-width: 60em;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.45;
  color: var(--muted);
}
.portfolio-note a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-color: #5a5a68;
}
.portfolio-note a:hover {
  color: var(--text);
  text-decoration-color: currentColor;
}

.legal-page {
  max-width: 680px;
  margin: 0 auto;
}
.legal-page h1 {
  font-size: 36px;
  letter-spacing: -0.03em;
  margin: 12px 0 24px;
}
.legal-page h2 {
  font-size: 16px;
  margin: 28px 0 8px;
}
.legal-page p, .legal-page li {
  color: var(--muted);
  margin-bottom: 10px;
}
.legal-page a { color: var(--lime); }
.legal-page .c { margin-bottom: 24px; padding: 32px; }
.todo {
  display: inline-block;
  background: #3a2a10;
  color: #f5d48a;
  border: 1px dashed #c9a14a;
  border-radius: 6px;
  padding: 1px 8px;
  font-weight: 700;
  font-size: 0.95em;
}

.site-footer {
  max-width: var(--max);
  margin: 28px auto 0;
  padding: 8px 4px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  color: var(--muted);
  font-size: 13px;
}
.site-footer a {
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.site-footer a:hover { color: var(--text); }

@media (max-width: 900px) {
  .g { grid-template-columns: repeat(2, 1fr); }
  .hero { grid-row: auto; min-height: 280px; }
  .projects { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  body { padding: 16px 14px 40px; }
  .g { grid-template-columns: 1fr; }
  .c, .hero, .wide { grid-column: auto; }
  .hero h1 { font-size: 42px; }
  .hero { min-height: 240px; }
  .projects { grid-template-columns: 1fr; }
  .big { font-size: 56px; }
}

/* —— Formulaire de contact */
.span-3 { grid-column: span 3; }
.contact-full { grid-column: 1 / -1; }
.cta { align-self: start; }
.contact-card { display: flex; flex-direction: column; }
.contact-card form { display: flex; flex-direction: column; gap: 12px; }
.fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 14px;
}
.field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.field--full { grid-column: 1 / -1; }
.field label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--label);
}
.req { color: var(--lime); font-weight: 800; margin-left: 2px; }
.field input,
.field textarea {
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  background: #101014;
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 11px 13px;
  width: 100%;
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:hover, .field textarea:hover { border-color: #3a3a48; }
.field input:focus, .field textarea:focus {
  outline: 2px solid var(--focus);
  outline-offset: 1px;
  border-color: transparent;
}
.field .hint { font-size: 12px; color: var(--muted); font-weight: 500; text-transform: none; letter-spacing: 0; }
.consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.45;
}
.consent input {
  margin-top: 3px;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  accent-color: var(--lime);
}
.consent a { color: var(--lime); }
.hp {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.turnstile-slot { min-height: 0; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.contact-card .btn {
  margin-top: 0;
  background: var(--lime);
  color: var(--lime-ink);
  border: 0;
  cursor: pointer;
  font-family: inherit;
}
.contact-card .btn:hover { background: #d6ff7a; }
.contact-card .btn[disabled] { opacity: 0.6; cursor: not-allowed; }
.form-status {
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 14px;
  font-weight: 600;
}
.form-status[hidden] { display: none; }
.form-status--ok { background: #14351f; color: #8dffb0; }
.form-status--err { background: #3a1518; color: #ffb4b8; }
.js-needed { font-size: 13px; color: var(--muted); margin: 0; }

@media (max-width: 900px) {
  .span-3, .contact-full { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .fields { grid-template-columns: 1fr; }
  .field--full { grid-column: auto; }
  .span-3, .contact-full { grid-column: auto; }
}
