/* cv.codingqueen40.com — feuille de style unique, sans dépendance.
   Les couleurs, rayons et espacements reprennent les tokens du blog CodingQueen40. */

/* ── Polices auto-hébergées (aucun appel à Google Fonts) ── */
@font-face {
  font-family: "Inter";
  src: url("fonts/inter-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Urbanist";
  src: url("fonts/urbanist-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* ── Tokens ── */
:root {
  color-scheme: dark;

  --bg: #030305;
  --surface-deep: #08080c;
  --surface: #0b0b10;
  --surface-2: #16161e;

  --text: #b0b0bd;
  --text-strong: #e8e8ed;
  --text-muted: #8b8b9e;
  --text-dim: #787890;

  --accent: #a68b4b;
  --accent-soft: #c4a55c;
  --teal: #2a9a94;
  --teal-soft: #3cc1b9;

  --border: rgba(255, 255, 255, 0.06);
  --border-strong: rgba(255, 255, 255, 0.1);
  --border-control: rgba(255, 255, 255, 0.14);

  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 18px;
  --radius-xl: 24px;

  --container: 1200px;
  --gutter: clamp(16px, 3vw, 40px);
  --section-y: clamp(64px, 8vw, 112px);

  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-title: "Urbanist", "Inter", system-ui, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --shadow-lg: 0 40px 120px rgba(0, 0, 0, 0.5);
}

/* ── Base ── */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
}

[id] {
  scroll-margin-top: 80px;
}

:focus-visible {
  outline: 2px solid var(--accent-soft);
  outline-offset: 3px;
  border-radius: 6px;
}

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

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 50;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: #000;
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus {
  top: 12px;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

.section {
  border-top: 1px solid var(--border);
}
.section > .container {
  padding-block: var(--section-y);
}

.eyebrow {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-soft);
}

.h2 {
  margin: 12px 0 0;
  max-width: 820px;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: clamp(28px, 3.2vw, 42px);
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: #fff;
  text-wrap: balance;
}

.lead {
  margin: 12px 0 0;
  max-width: 560px;
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-muted);
}

.check {
  flex: none;
  margin-top: 3px;
  color: var(--accent-soft);
}

/* ── Boutons et liens ── */
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.actions--center {
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}
.btn svg {
  flex: none;
}

.btn--primary {
  background: var(--accent);
  color: #000;
  font-weight: 600;
  box-shadow: 0 10px 34px rgba(166, 139, 75, 0.28);
}
.btn--primary:hover {
  background: var(--accent-soft);
}

.btn--ghost {
  border-color: var(--border-control);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-strong);
}
.btn--ghost:hover {
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.06);
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  color: var(--accent-soft);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  text-underline-offset: 4px;
  transition: color 0.2s;
}
.link-arrow:hover {
  color: #fff;
  text-decoration: underline;
}

/* ── En-tête ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--border);
  background: rgba(3, 3, 5, 0.82);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  backdrop-filter: saturate(140%) blur(12px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 64px;
}

.brand {
  padding: 10px 0;
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.02em;
  color: #fff;
  text-decoration: none;
}
.brand span {
  color: var(--accent-soft);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 4px 24px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 14px;
}
.nav__links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}
.nav__links a:hover {
  color: #fff;
}

@media (max-width: 559px) {
  .nav__item--wide {
    display: none;
  }
}

/* ── Hero ── */
.hero {
  position: relative;
  overflow: hidden;
}

.hero__glow {
  position: absolute;
  right: -15%;
  top: -30%;
  width: 75%;
  height: 150%;
  background: radial-gradient(closest-side, rgba(166, 139, 75, 0.13), rgba(166, 139, 75, 0) 72%);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  display: grid;
  align-items: center;
  gap: 56px 72px;
  padding-block: clamp(48px, 8vw, 120px) clamp(40px, 5vw, 72px);
}
@media (min-width: 960px) {
  .hero__inner {
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  }
}

.hero__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  min-width: 0;
}

.pill {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border: 1px solid rgba(42, 154, 148, 0.4);
  border-radius: 999px;
  background: rgba(42, 154, 148, 0.08);
  color: #cfe9e7;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
}
.pill__dot {
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--teal-soft);
  box-shadow: 0 0 0 4px rgba(60, 193, 185, 0.15);
}

.hero h1 {
  margin: 0;
  font-family: var(--font-title);
  font-weight: 800;
  font-size: clamp(44px, 7vw, 88px);
  line-height: 1;
  letter-spacing: -0.035em;
  color: #fff;
}

.hero__role {
  margin: 14px 0 0;
  font-family: var(--font-title);
  font-weight: 600;
  font-size: clamp(19px, 2.2vw, 28px);
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--text-strong);
}
.hero__role .sep {
  color: var(--text-dim);
}
.hero__role .stack {
  color: var(--accent-soft);
}

.hero__text {
  margin: 0;
  max-width: 560px;
  font-size: 17px;
  line-height: 1.7;
}

.hero__visual {
  position: relative;
  width: 100%;
  max-width: 440px;
  justify-self: center;
  padding-bottom: 36px;
}

/* Carte « code » */
.code-card {
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-xl);
  background: linear-gradient(165deg, #15151d 0%, #0d0d13 55%, #08080c 100%);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.7), 0 0 90px rgba(166, 139, 75, 0.1);
}
.code-card__bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: rgba(22, 22, 30, 0.8);
}
.dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #2c2c38;
}
.code-card__file {
  margin-left: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-dim);
}
.code-card pre {
  margin: 0;
  padding: 22px 22px 30px;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--text-strong);
}
@media (max-width: 400px) {
  .code-card pre {
    padding: 18px 16px 26px;
    font-size: 12.5px;
  }
}
.tok-k {
  color: var(--teal-soft);
}
.tok-s {
  color: var(--accent-soft);
}
.tok-n {
  color: #e7d3a1;
}
.tok-p {
  color: var(--text-muted);
}
.tok-c {
  color: var(--text-dim);
  font-style: italic;
}

/* Étiquette flottante */
.float-chip {
  position: absolute;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 14px 18px;
  border: 1px solid rgba(166, 139, 75, 0.3);
  border-radius: 16px;
  background: rgba(14, 14, 20, 0.94);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
}
.float-chip__label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-soft);
}
.float-chip__title {
  font-family: var(--font-title);
  font-size: 18px;
  font-weight: 700;
  color: #fff;
}
.float-chip__text {
  font-size: 13px;
  color: var(--text-muted);
}

/* À droite : les dernières lignes de code sont courtes, l'étiquette ne masque rien. */
.hero__visual .float-chip {
  right: -24px;
  bottom: 0;
}
/* Sur mobile, la carte prend toute la largeur : l'étiquette passe dessous. */
@media (max-width: 600px) {
  .hero__visual {
    padding-bottom: 0;
  }
  .hero__visual .float-chip {
    position: relative;
    right: auto;
    bottom: auto;
    width: max-content;
    max-width: calc(100% - 24px);
    margin: -20px 12px 0 auto;
  }
}

/* ── En bref ── */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
  gap: 12px;
  margin: 0;
  padding-bottom: clamp(56px, 7vw, 104px);
}
.stat {
  display: flex;
  flex-direction: column-reverse;
  justify-content: flex-end;
  gap: 6px;
  padding: 22px 22px 20px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
}
.stat dt {
  font-size: 13px;
  line-height: 1.45;
  color: var(--text-muted);
}
.stat dd {
  margin: 0;
  font-family: var(--font-title);
  font-weight: 800;
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: #fff;
}

/* ── Écran de téléphone ── */
.phone {
  padding: 7px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 30px;
  background: #121218;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}
.phone img {
  width: 100%;
  height: auto;
  aspect-ratio: 9 / 18.5;
  object-fit: cover;
  object-position: top;
  border-radius: 23px;
  background: var(--surface-2);
}

/* ── Projet phare ── */
.feature {
  display: grid;
  margin-top: 40px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-xl);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
}
@media (min-width: 1000px) {
  .feature {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  }
}

.feature__visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(36px, 5vw, 64px) clamp(16px, 3vw, 40px);
  background: radial-gradient(110% 80% at 0% 0%, rgba(166, 139, 75, 0.12), rgba(166, 139, 75, 0) 60%),
    var(--surface-deep);
}
.feature__visual .phone {
  position: relative;
  width: min(250px, 62%);
}
.feature__visual .float-chip {
  z-index: 1;
  padding: 10px 14px;
}
.feature__visual .float-chip--a {
  top: 18%;
  left: clamp(12px, 4%, 40px);
}
.feature__visual .float-chip--b {
  bottom: 16%;
  right: clamp(12px, 4%, 40px);
}
@media (max-width: 600px) {
  .feature__visual .float-chip--a {
    top: 12px;
    left: 12px;
  }
  .feature__visual .float-chip--b {
    bottom: 12px;
    right: 12px;
  }
}
.float-chip--teal {
  border-color: rgba(42, 154, 148, 0.4);
}
.float-chip--teal .float-chip__label {
  color: var(--teal-soft);
}

.feature__body {
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-width: 0;
  padding: clamp(24px, 3.5vw, 48px);
}

.meta {
  margin: 0;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.feature__body h3 {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-soft);
}
.feature__body p {
  margin: 0;
  font-size: 15px;
  line-height: 1.7;
}

.checks {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-strong);
}
.checks li {
  display: flex;
  gap: 10px;
}

.results {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(120px, 100%), 1fr));
  gap: 10px;
  margin: 0;
}
.result {
  display: flex;
  flex-direction: column-reverse;
  justify-content: flex-end;
  gap: 2px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--surface-2);
}
.result dt {
  font-size: 12px;
  line-height: 1.4;
  color: var(--text-muted);
}
.result dd {
  margin: 0;
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 24px;
  color: #fff;
}

/* ── Autres projets ── */
.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 40px;
}
.section-head .lead {
  max-width: 380px;
  margin: 0;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 24px;
  margin: 40px 0 0;
  padding: 0;
  list-style: none;
}

.card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius-lg);
  background: var(--surface);
  transition: border-color 0.25s;
}
.card:hover {
  border-color: rgba(255, 255, 255, 0.16);
}

.card__visual {
  position: relative;
  margin: 0;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  background: radial-gradient(90% 70% at 100% 0%, rgba(166, 139, 75, 0.1), rgba(166, 139, 75, 0) 60%),
    var(--surface-deep);
}
.card__visual--teal {
  background: radial-gradient(90% 70% at 100% 0%, rgba(42, 154, 148, 0.12), rgba(42, 154, 148, 0) 60%),
    var(--surface-deep);
}
.card__visual .phone {
  position: absolute;
  left: 50%;
  top: 24px;
  width: clamp(130px, 42%, 170px);
  transform: translateX(-50%);
  transition: transform 0.35s ease;
}
.card:hover .card__visual .phone {
  transform: translateX(-50%) translateY(-6px);
}

.card__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 24px;
}
.card h3 {
  margin: 0;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 21px;
  line-height: 1.25;
  color: #fff;
}
.card h3 span {
  font-weight: 600;
  color: var(--text-muted);
}
.card__pitch {
  margin: 0;
  font-size: 15px;
  line-height: 1.65;
}
.card__result {
  display: flex;
  gap: 10px;
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-strong);
}
.card__result .check {
  margin-top: 2px;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.tags li {
  padding: 3px 10px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  font-size: 12px;
  color: var(--text-muted);
}

.card__links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
  margin-top: auto;
  padding-top: 6px;
}

/* ── Compétences ── */
.skills {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: 20px;
  margin-top: 40px;
}
.skill-group {
  padding: 26px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius-lg);
  background: var(--surface);
}
.skill-group--core {
  border-color: rgba(166, 139, 75, 0.25);
  background: linear-gradient(180deg, rgba(166, 139, 75, 0.06), rgba(166, 139, 75, 0) 40%), var(--surface);
}
.skill-group h3 {
  margin: 0;
  font-family: var(--font-title);
  font-size: 18px;
  font-weight: 700;
  color: #fff;
}
.skill-group > p {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--text-dim);
}

.skill-list {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}
.skill-list li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-top: 1px solid var(--border);
}
.skill-list li > span:first-child {
  font-weight: 500;
  color: var(--text-strong);
}
.skill-list li > span:last-child {
  font-size: 13px;
  color: var(--text-muted);
  text-align: right;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}
.chips li {
  padding: 7px 12px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.02);
  font-size: 13px;
}

/* ── Contact ── */
.contact-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  max-width: 880px;
  margin: 0 auto;
  padding: clamp(36px, 5vw, 64px) clamp(20px, 5vw, 64px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 28px;
  background: radial-gradient(80% 70% at 50% 0%, rgba(166, 139, 75, 0.12), rgba(166, 139, 75, 0) 70%),
    var(--surface);
  box-shadow: var(--shadow-lg);
  text-align: center;
}
.contact-card .h2 {
  margin: 0;
}
.contact-card__text {
  margin: 0;
  max-width: 520px;
  font-size: 16px;
  line-height: 1.65;
}

/* ── Pied de page ── */
.site-footer {
  border-top: 1px solid var(--border);
}
.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 24px;
  padding-block: 16px;
  font-size: 13px;
  color: var(--text-dim);
}
.site-footer ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-footer a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--text-muted);
  text-underline-offset: 3px;
}
.site-footer a:hover {
  color: #fff;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition: none !important;
  }
}
