/* ---------- Self-hosted fonts (RGPD : aucun appel à Google Fonts) ---------- */
/* Bricolage Grotesque — variable, poids 500..800 */
@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 500 800;
  font-display: swap;
  src: url('assets/fonts/bricolage-grotesque-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: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 500 800;
  font-display: swap;
  src: url('assets/fonts/bricolage-grotesque-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;
}
/* Inter — variable, poids 400..700 */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('assets/fonts/inter-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: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('assets/fonts/inter-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;
}

/* ---------- Design tokens ---------- */
:root {
  --bg: #f6f8fc;
  --bg-alt: #eef2f9;
  --surface: #ffffff;
  --surface-hover: #f7f9fd;
  --border: #dbe2f0;
  --text: #0f1b2d;
  --text-muted: #4b5872;
  --accent: #0d9488;
  --accent-2: #0891b2;
  --accent-ink: #04140f;
  --accent-text: #0a7d70;
  --shadow: 220 45% 20%;

  --font-display: 'Bricolage Grotesque', system-ui, -apple-system, Segoe UI, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, Segoe UI, sans-serif;
  --max-width: 1040px;
  --nav-h: 72px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0a1220;
    --bg-alt: #0f1a2e;
    --surface: #131f35;
    --surface-hover: #182742;
    --border: #24334f;
    --text: #eef2fb;
    --text-muted: #94a3c2;
    --accent: #2dd4bf;
    --accent-2: #22d3ee;
    --accent-ink: #032420;
    --accent-text: #2dd4bf;
    --shadow: 220 60% 4%;
  }
}

:root[data-theme="dark"] {
  --bg: #0a1220;
  --bg-alt: #0f1a2e;
  --surface: #131f35;
  --surface-hover: #182742;
  --border: #24334f;
  --text: #eef2fb;
  --text-muted: #94a3c2;
  --accent: #2dd4bf;
  --accent-2: #22d3ee;
  --accent-ink: #032420;
  --shadow: 220 60% 4%;
}

/* ---------- Reset & base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  transition: background-color .3s ease, color .3s ease;
}

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

h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.1;
  font-weight: 700;
  text-wrap: balance;
  letter-spacing: -0.01em;
}

h2 { font-size: clamp(1.6rem, 1.15rem + 2vw, 2.4rem); margin: 0 0 1.25rem; }
h3 { font-size: clamp(1.1rem, 1rem + 0.5vw, 1.3rem); margin: 0 0 0.25rem; color: var(--text); }

p { margin: 0 0 1rem; }
a { color: var(--accent-text); }

.lead { font-size: clamp(1.02rem, 0.95rem + 0.3vw, 1.2rem); color: var(--text-muted); max-width: 62ch; }

.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: 1rem; top: -3rem;
  background: var(--accent); color: var(--accent-ink);
  padding: 0.6rem 1rem; border-radius: 8px; font-weight: 600;
  transition: top .2s ease; z-index: 100;
}
.skip-link:focus { top: 1rem; }

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

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.nav-logo {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--text);
  text-decoration: none;
  font-size: 1.05rem;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav-menu a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  transition: color .15s ease;
}
.nav-menu a:hover { color: var(--text); }
.nav-menu a.active:not(.nav-cta) { color: var(--text); font-weight: 600; }

.nav-cta {
  color: var(--accent-ink) !important;
  background: var(--accent);
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  font-weight: 600 !important;
  transition: transform .15s ease, background .15s ease;
}
.nav-cta:hover { background: var(--accent-2); transform: translateY(-1px); }

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  padding: 0;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px; height: 44px;
  padding: 0 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text) !important;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: border-color .15s ease, color .15s ease, transform .15s ease;
}
.lang-switch:hover { border-color: var(--accent); color: var(--accent-text) !important; transform: translateY(-1px); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .icon-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .icon-sun { display: none; }
  :root:not([data-theme="light"]) .theme-toggle .icon-moon { display: block; }
}
:root[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: block; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 44px; height: 44px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface);
  cursor: pointer;
  padding: 0;
}
.nav-toggle-bar {
  width: 18px; height: 2px; margin: 0 auto;
  background: var(--text);
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 760px) {
  .nav-toggle { display: flex; }
  .nav-menu {
    position: absolute;
    top: var(--nav-h);
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 0.5rem 1.5rem 1.25rem;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: transform .2s ease, opacity .2s ease;
  }
  .nav-menu.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .nav-menu a { padding: 0.85rem 0; border-bottom: 1px solid var(--border); }
  .nav-cta { text-align: center; margin-top: 0.75rem; }
  .theme-toggle { margin-top: 0.75rem; align-self: flex-start; }
  .lang-switch { margin-top: 0.75rem; align-self: flex-start; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(2.5rem, 6vw, 5rem) 1.5rem clamp(3rem, 8vw, 6rem);
  min-height: min(92vh, 780px);
  display: flex;
  align-items: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(60% 50% at 85% 10%, color-mix(in srgb, var(--accent) 18%, transparent), transparent),
    radial-gradient(50% 40% at 10% 90%, color-mix(in srgb, var(--accent-2) 14%, transparent), transparent),
    var(--bg);
}

.hero-bars {
  position: absolute;
  right: -2%;
  bottom: 0;
  width: min(46vw, 520px);
  height: auto;
  opacity: 0.5;
  fill: none;
}
.hero-bars rect { fill: color-mix(in srgb, var(--accent) 30%, transparent); }
.hero-bars path { stroke: var(--accent); stroke-width: 2.5; }

.hero-inner {
  position: relative;
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 4rem);
}

.eyebrow {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-text);
  margin: 0 0 1rem;
}

.hero-text h1 {
  font-size: clamp(2.1rem, 1.5rem + 3.4vw, 3.6rem);
  margin: 0 0 0.5rem;
}

.hero-role {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 1rem + 1vw, 1.5rem);
  font-weight: 600;
  margin: 0 0 1.25rem;
  color: var(--text-muted);
}
.hero-role span { color: var(--accent-text); }

.hero-lead { margin-bottom: 2rem; }

.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero-photo {
  position: relative;
  width: min(280px, 60vw);
  aspect-ratio: 1;
  margin-inline: auto;
  border-radius: 32% 68% 62% 38% / 45% 38% 62% 55%;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 30px 60px -25px hsl(var(--shadow) / 0.55);
  background: linear-gradient(155deg, var(--accent), var(--accent-2));
}

.hero-photo-fallback {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 4rem;
  color: var(--accent-ink);
}

.hero-photo-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}

.scroll-cue {
  position: absolute;
  bottom: clamp(1rem, 3vw, 2rem);
  left: 50%;
  transform: translateX(-50%);
  color: var(--text-muted);
  animation: bob 2.2s ease-in-out infinite;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
}
.scroll-cue svg { width: 22px; height: 22px; }
@keyframes bob {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 6px); }
}

@media (max-width: 760px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-actions { justify-content: center; }
  .hero-photo { order: -1; width: min(200px, 50vw); }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 0.85rem 1.75rem;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  font-size: 1rem;
  border: 1px solid transparent;
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
}

.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-2); transform: translateY(-2px); }

.btn-ghost { color: var(--text); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-text); transform: translateY(-2px); }

/* ---------- Sections ---------- */
.section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: clamp(3rem, 7vw, 5.5rem) 1.5rem;
  scroll-margin-top: var(--nav-h);
}

.section-alt { max-width: none; background: var(--bg-alt); }
.section-alt > * { max-width: var(--max-width); margin-left: auto; margin-right: auto; }

/* ---------- Cards / grid ---------- */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin: 2rem 0; }
@media (max-width: 700px) { .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.75rem;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--accent) 40%, var(--border));
  box-shadow: 0 20px 40px -28px hsl(var(--shadow) / 0.6);
}

.card ul { margin: 0; padding-left: 1.1rem; }
.card li { margin-bottom: 0.6rem; color: var(--text-muted); }

.tag {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--accent-text);
  margin-bottom: 0.75rem;
}

/* Skill tags */
.tags { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.tags span {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.55rem 1.05rem;
  font-size: 0.95rem;
  color: var(--text-muted);
  transition: border-color .15s ease, color .15s ease, transform .15s ease;
}
.tags span:hover { border-color: var(--accent); color: var(--text); transform: translateY(-2px); }

/* ---------- Process ---------- */
.process-list {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: grid;
  gap: 1.5rem;
}

.process-item {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 1.1rem;
  align-items: start;
  position: relative;
}

.process-item:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 21px;
  top: 44px;
  bottom: -1.5rem;
  width: 2px;
  background: var(--border);
}

.process-num {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  color: var(--accent-text);
  background: var(--bg);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.process-item h3 { margin-bottom: 0.35rem; }
.process-item p { color: var(--text-muted); margin-bottom: 0; max-width: 60ch; }

/* ---------- Timeline ---------- */
.timeline-item {
  border-left: 2px solid var(--border);
  padding-left: 1.5rem;
  margin-bottom: 2.5rem;
  position: relative;
}
.timeline-item::before {
  content: "";
  position: absolute;
  left: -7px; top: 4px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 20%, transparent);
}

.timeline-heading { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.5rem; margin-bottom: 0.5rem; }
.timeline-date { color: var(--text-muted); font-size: 0.9rem; font-variant-numeric: tabular-nums; }
.timeline-item ul { padding-left: 1.1rem; color: var(--text-muted); }
.timeline-item li { margin-bottom: 0.4rem; }

/* ---------- FAQ ---------- */
.faq-list {
  display: grid;
  gap: 0.85rem;
  margin-top: 2rem;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 0.2rem 1.5rem;
  transition: border-color .15s ease;
}
.faq-item:hover { border-color: color-mix(in srgb, var(--accent) 35%, var(--border)); }

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 1.15rem 1.75rem 1.15rem 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.02rem;
  position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--accent);
  transition: transform .2s ease;
}
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }

.faq-item p {
  color: var(--text-muted);
  padding-bottom: 1.25rem;
  margin: 0;
  max-width: 66ch;
}

/* ---------- Contact ---------- */
.contact { text-align: center; }
.contact .lead { margin: 0 auto 1.5rem; }

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.1rem;
  margin-top: 2.25rem;
  text-align: left;
}
@media (max-width: 560px) {
  .contact-grid { grid-template-columns: 1fr; }
}

.contact-card {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  padding: 1.6rem;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, background .2s ease;
}
.contact-card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--accent) 40%, var(--border));
  box-shadow: 0 20px 40px -28px hsl(var(--shadow) / 0.6);
}

.contact-icon { width: 26px; height: 26px; color: var(--accent); }

.contact-label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  word-break: break-word;
}

.contact-value { font-size: 0.85rem; color: var(--text-muted); }

.contact-card-primary {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: transparent;
}
.contact-card-primary .contact-icon { color: var(--accent-ink); }
.contact-card-primary .contact-value { color: var(--accent-ink); opacity: 0.75; }
.contact-card-primary:hover { background: var(--accent-2); }

/* ---------- Footer ---------- */
.footer { text-align: center; padding: 2rem 1.5rem; color: var(--text-muted); font-size: 0.9rem; }
.footer p { display: flex; flex-wrap: wrap; gap: 0.25rem 0.75rem; align-items: center; justify-content: center; margin: 0; }
.footer a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 0.25rem; }
.footer-updated { display: block; width: 100%; margin-top: 0.35rem; font-size: 0.85rem; opacity: 0.8; }

/* ---------- Scroll reveal ---------- */
/* Hidden-until-revealed only kicks in once .js is confirmed on <html> (see
   inline script in <head>) and JS has had a chance to attach the
   IntersectionObserver. This keeps content visible by default if JS fails
   to load, instead of leaving it permanently hidden at opacity: 0. */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.in-view { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .scroll-cue { animation: none; }
}
