/* =========================================================
   Lucas Brohet — Portfolio
   Monochrome éditorial · papier clair · noir / blanc / gris
   Fraunces (display) · Hanken Grotesk (texte) · JetBrains Mono (labels)
   ========================================================= */

:root {
  /* Papier & encre */
  --bg:          #F4F3F0;   /* blanc cassé chaud */
  --surface:     #FBFAF8;
  --ink:         #121211;   /* presque noir */
  --ink-soft:    #3A3A38;
  --muted:       #6C6B66;   /* gris secondaire (AA sur papier) */
  --faint:       #9C9A93;   /* gris décoratif */
  --line:        #DEDCD5;   /* filet fin */
  --line-strong: #C7C4BB;

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-sans:    "Hanken Grotesk", system-ui, -apple-system, sans-serif;
  --font-mono:    "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --maxw: 680px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }

/* Grain papier très subtil */
.grain {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: .045;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ===== Layout ===== */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 28px;
  position: relative;
  z-index: 2;
}

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

.mono, .eyebrow, .accroche, .rule-label, .mention {
  font-family: var(--font-mono);
}

/* ===== Sélecteur de langue ===== */
.lang-switch {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 5;
  display: flex;
  gap: 6px;
  padding: 5px;
  border-radius: 999px;
  background: rgba(251, 250, 248, .82);
  border: 1px solid var(--line);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 8px 24px -18px rgba(0,0,0,.6);
}
.lang-btn {
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  display: grid;
  place-items: center;
  opacity: .5;
  filter: grayscale(.35);
  transition: transform .25s var(--ease), opacity .25s var(--ease), filter .25s var(--ease);
}
.lang-btn:hover { opacity: .9; filter: none; transform: translateY(-1px); }
.lang-btn.is-active {
  opacity: 1;
  filter: none;
  box-shadow: 0 0 0 2px var(--ink);
}
.lang-btn .flag {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  box-shadow: 0 0 0 1px rgba(0,0,0,.08) inset;
}

@media (max-width: 520px) {
  .lang-switch { top: 12px; right: 12px; }
}

/* ===== Hero ===== */
.hero {
  flex: 1 0 auto;
  text-align: center;
  padding-top: clamp(72px, 13vw, 136px);
  padding-bottom: clamp(48px, 9vw, 96px);
}

.photo-wrap {
  width: 168px;
  height: 168px;
  margin: 0 auto 38px;
  border-radius: 50%;
  padding: 6px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  box-shadow: 0 1px 0 #fff inset, 0 18px 40px -26px rgba(0,0,0,.55);
}
.photo {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.eyebrow {
  font-size: 11.5px;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 18px;
}

.name {
  font-family: var(--font-display);
  font-weight: 440;
  font-size: clamp(3rem, 11vw, 5.25rem);
  line-height: .96;
  letter-spacing: -.02em;
  font-optical-sizing: auto;
}

.accroche {
  margin-top: 22px;
  font-size: 12.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.certif {
  margin-top: 10px;
  font-size: 13px;
  color: var(--ink-soft);
  font-family: "JetBrains Mono", ui-monospace, monospace;
}

.avail {
  margin-top: 18px;
  font-size: 13px;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.avail .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #2e8b57;
  box-shadow: 0 0 0 3px rgba(46, 139, 87, .18);
}

.phrase {
  margin: 26px auto 0;
  max-width: 42ch;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
}

/* ===== Boutons ===== */
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 38px;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 22px;
  border-radius: 9px;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 15px;
  line-height: 1;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .25s var(--ease), background .25s var(--ease),
              color .25s var(--ease), border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.btn .ico { width: 17px; height: 17px; fill: currentColor; }
.btn .ico-line { fill: none; stroke: currentColor; }

.btn-solid {
  background: var(--ink);
  color: var(--bg);
  box-shadow: 0 10px 24px -16px rgba(0,0,0,.9);
}
.btn-solid:hover { transform: translateY(-2px); background: #000; box-shadow: 0 16px 30px -16px rgba(0,0,0,.9); }

.btn-line {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn-line:hover { transform: translateY(-2px); border-color: var(--ink); background: rgba(0,0,0,.03); }

/* ===== Blocs ===== */
.block {
  padding-top: clamp(40px, 7vw, 64px);
  text-align: center;
}

/* Label avec filets latéraux */
.rule-label {
  display: flex;
  align-items: center;
  gap: 16px;
  justify-content: center;
  color: var(--faint);
  font-size: 11px;
  letter-spacing: .26em;
  text-transform: uppercase;
  margin-bottom: 28px;
}
.rule-label::before,
.rule-label::after {
  content: "";
  height: 1px;
  width: clamp(28px, 14vw, 90px);
  background: var(--line-strong);
}

/* ===== Chips ===== */
.chips {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}
.chip {
  font-size: 14px;
  color: var(--ink-soft);
  background: transparent;
  border: 1px solid var(--line-strong);
  padding: 9px 16px;
  border-radius: 999px;
  transition: background .25s var(--ease), color .25s var(--ease),
              border-color .25s var(--ease), transform .2s var(--ease);
}
.chip:hover {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
  transform: translateY(-1px);
}

/* ===== Renvoi LinkedIn ===== */
.redirect-text {
  color: var(--muted);
  font-size: 16px;
  max-width: 38ch;
  margin-inline: auto;
}
.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  font-weight: 500;
  font-size: 16px;
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
  padding-bottom: 2px;
}
.arrow { transition: transform .3s var(--ease); display: inline-block; }
.arrow-link:hover .arrow { transform: translateX(5px); }

/* ===== Footer ===== */
.footer {
  flex-shrink: 0;
  margin-top: clamp(56px, 10vw, 104px);
  padding: clamp(40px, 6vw, 56px) 0 56px;
  border-top: 1px solid var(--line);
  text-align: center;
}
.footer-invite {
  max-width: 40ch;
  margin: 0 auto 30px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.15rem, 3.2vw, 1.45rem);
  line-height: 1.4;
  letter-spacing: -.01em;
  color: var(--ink);
}
.footer .cta-row { margin-top: 0; }
.footer .mention {
  margin-top: 26px;
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}
.footer .copy {
  margin-top: 10px;
  font-size: 13px;
  color: var(--faint);
}

/* ===== Apparition au chargement ===== */
@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}
@keyframes zoomin {
  from { opacity: 0; transform: scale(.94); }
  to   { opacity: 1; transform: none; }
}
.hero .photo-wrap { animation: zoomin .8s var(--ease) both; }
.hero .eyebrow   { animation: rise .7s var(--ease) .08s both; }
.hero .name      { animation: rise .7s var(--ease) .14s both; }
.hero .accroche  { animation: rise .7s var(--ease) .22s both; }
.hero .phrase    { animation: rise .7s var(--ease) .30s both; }
.hero .cta-row   { animation: rise .7s var(--ease) .38s both; }

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

/* ===== Responsive ===== */
@media (max-width: 520px) {
  body { font-size: 16px; }
  .hero { padding-top: 56px; }
  .photo-wrap, .photo { width: 140px; height: 140px; }
  .phrase { font-size: 16.5px; }
  .btn { padding: 12px 18px; }
}
