/* Cache Rebuild — cache-rebuild.fr */

/* Self-hosted variable font (GDPR compliance: no call to Google Fonts). */
@font-face {
  font-family: 'Familjen Grotesk';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/familjen-grotesk-latin.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: 'Familjen Grotesk';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/familjen-grotesk-latin-ext.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;
}

:root {
  --ink: #1A1D21;
  --text: #3F454C;
  --text-soft: #5C636B;
  --muted: #8A9099;
  --accent: #3D5A80;
  --accent-dark: #2E4562;
  --border: #E8EAEC;
  --border-soft: #F1F2F4;
  --border-strong: #C4CAD1;
  --background: #FFFFFF;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--ink);
  font-family: 'Familjen Grotesk', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover {
  color: var(--ink);
}

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

/* ── Header ──────────────────────────────────────────────── */

.site-header {
  max-width: 1040px;
  margin: 0 auto;
  padding: 28px 24px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 24px;
}

.site-header .brand {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.site-header .brand a {
  color: var(--ink);
}

.site-header .brand span {
  color: var(--muted);
  font-weight: 400;
}

.site-header nav {
  display: flex;
  gap: 28px;
  font-size: 14px;
}

.site-header nav a {
  color: var(--text-soft);
}

.site-header nav a:hover {
  color: var(--ink);
}

.site-header nav .lang-switch {
  padding-left: 28px;
  border-left: 1px solid var(--border);
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0.04em;
}

/* ── Structure ───────────────────────────────────────────── */

main {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px;
}

main hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 0;
}

section {
  padding: clamp(56px, 9vh, 96px) 0;
}

.section-title {
  margin: 0 0 32px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

/* ── Hero ────────────────────────────────────────────────── */

.hero {
  padding: clamp(72px, 14vh, 140px) 0 clamp(64px, 10vh, 110px);
  display: flex;
  flex-wrap: wrap;
  gap: 48px;
  align-items: center;
  justify-content: space-between;
}

.hero .intro {
  flex: 1 1 380px;
}

.hero .kicker {
  margin: 0 0 20px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.hero h1 {
  margin: 0 0 24px;
  font-size: clamp(40px, 8vw, 68px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.hero .quip {
  margin: -12px 0 24px;
  font-size: 15px;
  color: var(--muted);
}

.hero .quip code {
  font-family: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
  font-size: 13px;
  background: var(--border-soft);
  padding: 2px 6px;
  border-radius: 3px;
}

.hero .tagline {
  margin: 0 0 28px;
  font-size: clamp(19px, 2.6vw, 23px);
  line-height: 1.5;
  color: var(--text);
  max-width: 38ch;
  text-wrap: pretty;
}

.hero .certification {
  margin: 0 0 12px;
  font-size: 15px;
  font-weight: 600;
}

.hero .location {
  margin: 0;
  font-size: 15px;
  color: var(--muted);
}

/* The tight framing reproduces the intended crop of the original design. Do not recenter. */
.hero .portrait {
  width: 200px;
  height: 250px;
  flex: 0 0 auto;
  object-fit: cover;
  object-position: 100% 50%;
  display: block;
}

/* ── About ───────────────────────────────────────────────── */

.about {
  display: grid;
  gap: 20px;
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  max-width: 60ch;
}

.about p {
  margin: 0;
  text-wrap: pretty;
}

.timeline {
  margin-top: 56px;
  display: grid;
  gap: 0;
}

.timeline .step {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 16px;
  padding: 14px 0;
  border-top: 1px solid var(--border);
  font-size: 15px;
}

.timeline .period {
  color: var(--accent);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.timeline .text {
  color: var(--text);
}

.skills {
  margin-top: 56px;
}

.skills h3 {
  margin: 0 0 20px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.skills ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px 24px;
  font-size: 15px;
  color: var(--text);
}

.skills li {
  padding: 6px 0;
  border-bottom: 1px solid var(--border-soft);
}

.skills li a {
  color: var(--text);
  border-bottom: 1px dotted var(--muted);
}

.skills li a:hover {
  color: var(--accent);
}

/* ── References ──────────────────────────────────────────── */

.references-list {
  display: grid;
  gap: 16px;
}

.reference {
  border: 1px solid var(--border);
  padding: 28px;
  display: grid;
  gap: 10px;
  transition: border-color 0.15s ease;
}

.reference:hover {
  border-color: var(--border-strong);
}

.reference .heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 4px 16px;
}

.reference .name {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.reference .name span {
  font-weight: 400;
  color: var(--muted);
}

.reference .place {
  font-size: 13px;
  color: var(--muted);
}

.reference .description {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
  max-width: 62ch;
  text-wrap: pretty;
}

.reference .tags {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}

.anonymous-references {
  margin: 28px 0 0;
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-soft);
  max-width: 58ch;
  text-wrap: pretty;
}

/* ── Cache Rebuild / Adevweb signpost ────────────────────── */
/* Two full-width doors stacked vertically: the primary one pairs
   text with its action, the Adevweb one embeds the team photo. */

.signpost {
  display: grid;
  gap: 16px;
}

.door {
  border: 1px solid var(--border);
  padding: clamp(24px, 4vw, 36px);
  display: grid;
  gap: 24px 40px;
  align-items: center;
  transition: border-color 0.15s ease;
}

.door:hover {
  border-color: var(--border-strong);
}

.door .pitch {
  display: grid;
  gap: 14px;
  justify-items: start;
}

.door-cache-rebuild {
  border-top: 3px solid var(--accent);
  grid-template-columns: 1fr auto;
}

.door-adevweb {
  grid-template-columns: 1fr 240px;
}

.door h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.door p {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
  text-wrap: pretty;
}

.door p strong {
  font-weight: 600;
  color: var(--ink);
}

.door .motto {
  color: var(--text-soft);
  font-size: 14px;
}

.door .button {
  margin-top: 4px;
}

.adevweb-logo {
  width: 132px;
  height: auto;
  display: block;
}

@media (max-width: 620px) {
  .door-cache-rebuild,
  .door-adevweb {
    grid-template-columns: 1fr;
  }
}

.button {
  display: inline-block;
  background: var(--accent);
  color: #FFFFFF;
  padding: 13px 26px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  border: 1px solid var(--accent);
  transition: background 0.15s ease, color 0.15s ease;
}

.button:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  color: #FFFFFF;
}

.button-secondary {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--border-strong);
}

.button-secondary:hover {
  background: transparent;
  border-color: var(--accent);
  color: var(--accent);
}

.team-photo {
  margin: 0;
  display: grid;
  gap: 10px;
}

.team-photo img {
  width: 100%;
  height: auto;
  display: block;
}

.team-photo figcaption {
  font-size: 13px;
  color: var(--muted);
}

/* ── Contact ─────────────────────────────────────────────── */

#contact {
  padding-bottom: 48px;
}

.contact-form {
  display: grid;
  gap: 20px;
}

.contact-form .row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

/* Rows generated by the Symfony form theme: <div><label> + widget. */
.contact-form > div:not(.row):not(.actions),
.contact-form .row > div {
  display: grid;
  gap: 8px;
}

.contact-form label {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  box-sizing: border-box;
  font-family: inherit;
  font-size: 16px;
  color: var(--ink);
  background: var(--background);
  border: 1px solid var(--border-strong);
  padding: 12px 14px;
  outline: none;
  transition: border-color 0.15s ease;
}

.contact-form textarea {
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--accent);
}

.contact-form .actions {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.contact-form button {
  font-family: inherit;
  background: var(--accent);
  color: #FFFFFF;
  border: none;
  padding: 13px 26px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: background 0.15s ease;
}

.contact-form button:hover {
  background: var(--accent-dark);
}

.contact-form ul {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 14px;
  color: #A4383C;
}

/* Honeypot: invisible to humans, present in the DOM for bots. */
.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.flash-success {
  margin: 0 0 24px;
  box-sizing: border-box;
  padding: 14px 18px;
  border: 1px solid var(--accent);
  font-size: 15px;
  color: var(--accent);
}

.contact-alt {
  margin: 32px 0 0;
  font-size: 15px;
  color: var(--muted);
}

/* ── Legal pages ─────────────────────────────────────────── */

.legal-page {
  max-width: 720px;
  margin: 0 auto;
  padding: clamp(48px, 8vh, 80px) 24px;
}

.legal-page h1 {
  margin: 0 0 40px;
  font-size: clamp(28px, 5vw, 40px);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.legal-page h2 {
  margin: 40px 0 16px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.legal-page p,
.legal-page li {
  font-size: 15px;
  line-height: 1.65;
  color: var(--text);
}

.legal-page p {
  margin: 0 0 12px;
  max-width: 62ch;
  text-wrap: pretty;
}

.legal-page ul {
  margin: 0 0 12px;
  padding-left: 20px;
}

/* ── Footer ──────────────────────────────────────────────── */

.site-footer {
  border-top: 1px solid var(--border);
}

.site-footer .inner {
  max-width: 1040px;
  margin: 0 auto;
  padding: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 24px;
  font-size: 13px;
  color: var(--muted);
}
