/* ══════════════════════════════════════════
   TOKENS
══════════════════════════════════════════ */
:root {
  --bg:        #F8F8F6;
  --ink:       #0F0F0D;
  --accent:    #1C2B1E;   /* vert forêt profond */
  --muted:     #7A7A76;
  --rule:      #1C2B1E;
  --photo-bg:  #D6D4CE;

  --f-display: "DM Serif Display", Georgia, serif;
  --f-body:    "DM Sans", system-ui, sans-serif;
}

/* ══════════════════════════════════════════
   RESET
══════════════════════════════════════════ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ══════════════════════════════════════════
   BASE
══════════════════════════════════════════ */
html, body {
  height: 100%;
}

body {
  background-color: var(--bg);
  color: var(--ink);
  font-family: var(--f-body);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 2rem;
  -webkit-font-smoothing: antialiased;
}

/* ══════════════════════════════════════════
   SCÈNE — layout deux colonnes + règle
══════════════════════════════════════════ */
.scene {
  display: grid;
  grid-template-columns: 220px 2px 1fr;
  grid-template-areas: "photo rule identity";
  align-items: center;
  gap: 0 52px;
  max-width: 720px;
  width: 100%;
}

/* ══════════════════════════════════════════
   COLONNE PHOTO
══════════════════════════════════════════ */
.col-photo {
  grid-area: photo;
  display: flex;
  justify-content: flex-end;
}

.photo-frame {
  width: 180px;
  height: 220px;
  border-radius: 6px;
  overflow: hidden;
  background-color: var(--photo-bg);
  /* Légère ombre portée pour sortir du fond */
  box-shadow: 8px 12px 32px rgba(15, 15, 13, 0.10);
}

.photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

/* ══════════════════════════════════════════
   RÈGLE VERTICALE — élément signature
══════════════════════════════════════════ */
.rule-v {
  grid-area: rule;
  width: 2px;
  height: 160px;
  background-color: var(--rule);
  align-self: center;
}

/* ══════════════════════════════════════════
   COLONNE IDENTITÉ
══════════════════════════════════════════ */
.col-identity {
  grid-area: identity;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
}

/* Nom — DM Serif, prénom droit + nom en italique */
.name {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  line-height: 1.0;
  color: var(--ink);
  margin-bottom: 1.1rem;
}

.name em {
  font-style: italic;
  color: var(--accent);
}

/* Bio */
.bio {
  font-family: var(--f-body);
  font-size: 0.82rem;
  font-weight: 300;
  color: var(--muted);
  letter-spacing: 0.01em;
  margin-bottom: 0.4rem;
}

/* Meta : ville */
.meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.6rem;
}

.location {
  font-family: var(--f-body);
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--muted);
  letter-spacing: 0.02em;
}

/* Bouton LinkedIn */
.linkedin {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.52rem 1.05rem;
  border: 1.5px solid var(--accent);
  border-radius: 3px;
  text-decoration: none;
  font-family: var(--f-body);
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: var(--accent);
  background-color: transparent;
  transition: background-color 0.18s ease, color 0.18s ease;
}

.linkedin:hover,
.linkedin:focus-visible {
  background-color: var(--accent);
  color: var(--bg);
}

.linkedin:hover .li-icon,
.linkedin:focus-visible .li-icon {
  fill: var(--bg);
}

.li-icon {
  width: 14px;
  height: 14px;
  fill: var(--accent);
  flex-shrink: 0;
  transition: fill 0.18s ease;
}

/* ══════════════════════════════════════════
   RESPONSIVE MOBILE
══════════════════════════════════════════ */
@media (max-width: 600px) {
  .scene {
    grid-template-columns: 1fr;
    grid-template-areas:
      "photo"
      "rule"
      "identity";
    gap: 0;
    text-align: center;
  }

  .col-photo {
    justify-content: center;
    margin-bottom: 2rem;
  }

  .photo-frame {
    width: 130px;
    height: 160px;
  }

  .rule-v {
    display: none;
  }

  .col-identity {
    align-items: center;
  }

  .meta {
    justify-content: center;
  }
}

/* ══════════════════════════════════════════
   REDUCED MOTION
══════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  .linkedin,
  .li-icon {
    transition: none;
  }
}
