/* =========================================================================
   daniello.lu — page de profil / CV
   Vanilla CSS, aucune dépendance, aucun build.
   ========================================================================= */

:root {
  --paper:        #fbfaf8;
  --paper-2:      #f2efea;
  --ink:          #14191f;
  --ink-soft:     #3d454e;
  --muted:        #6d7681;
  --line:         #e2ddd5;
  --accent:       #c0324b;
  --accent-soft:  #f7e9ec;
  --accent-ink:   #9c2740;
  --on-accent:    #ffffff;
  --warn-bg:      #fdf6e3;
  --warn-line:    #e8d9a8;
  --warn-ink:     #8a6d1f;

  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --shell: 44rem;      /* colonne de lecture */
  --shell-wide: 52rem; /* bandeau d'en-tête, plus large pour la photo */
  --gutter: clamp(1.25rem, 5vw, 3rem);
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper:       #12161a;
    --paper-2:     #1a2027;
    --ink:         #eef1f4;
    --ink-soft:    #c3cad2;
    --muted:       #8d97a3;
    --line:        #2a323b;
    --accent:      #e8798e;
    --accent-soft: #33161d;
    --accent-ink:  #f0a3b2;
    --on-accent:   #2a0f16;
    --warn-bg:     #2a2411;
    --warn-line:   #4d4222;
    --warn-ink:    #d8c07a;
  }
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent-ink); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--accent); }

.shell { width: min(100%, var(--shell)); margin-inline: auto; padding-inline: var(--gutter); }

/* ------------------------------------------------------------------ skip */
.skip {
  position: absolute; left: -9999px;
  background: var(--ink); color: var(--paper);
  padding: .6rem 1rem; border-radius: 6px; z-index: 100;
}
.skip:focus { left: 1rem; top: 1rem; }

/* ------------------------------------------------------------------ entête */
.masthead .shell { width: min(100%, var(--shell-wide)); }

.masthead {
  border-bottom: 1px solid var(--line);
  padding: clamp(3rem, 9vw, 5.5rem) 0 clamp(2rem, 6vw, 3.25rem);
}

.identity {
  display: flex;
  gap: clamp(1.25rem, 4vw, 2.25rem);
  align-items: flex-start;
  flex-wrap: wrap;
}

.portrait {
  width: clamp(12rem, 36vw, 18.5rem);
  flex: none;
  height: auto;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  object-position: 50% 22%;
  border-radius: 10px;
  background: var(--paper-2);
  box-shadow: 0 1px 2px rgba(0,0,0,.16), 0 10px 28px -12px rgba(0,0,0,.35);
}
.portrait--empty {
  display: grid; place-items: center;
  font-family: var(--serif); font-size: 2.25rem; color: var(--muted);
  letter-spacing: .02em;
}

.identity__text { flex: 1 1 24rem; min-width: 0; }

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

h1 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2.1rem, 6.5vw, 3rem);
  line-height: 1.03;
  letter-spacing: -0.015em;
  margin: 0 0 .5rem;
}

.role {
  margin: .85rem 0 0;
  font-size: clamp(1.02rem, 2.4vw, 1.15rem);
  color: var(--ink-soft);
}

.lede {
  margin: 1.35rem 0 1.1rem;
  font-family: var(--serif);
  font-size: clamp(1.1rem, 2.8vw, 1.3rem);
  line-height: 1.55;
  color: var(--ink-soft);
}

/* ------------------------------------------------------------------ actions */
.actions {
  display: flex; flex-wrap: wrap; gap: .6rem;
  margin-top: 1.6rem;
}

.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .6rem 1.05rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font-size: .93rem; font-weight: 500;
  text-decoration: none;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.btn:hover { border-color: var(--accent); color: var(--accent-ink); }
.btn--primary {
  background: var(--accent); border-color: var(--accent); color: var(--on-accent);
}
.btn--primary:hover { background: var(--accent-ink); border-color: var(--accent-ink); color: var(--on-accent); }

/* ------------------------------------------------------------------ sections */
main { padding-bottom: 4rem; }

section { padding: clamp(2.5rem, 7vw, 3.75rem) 0 0; }

h2 {
  font-size: .78rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent-ink);
  margin: 0 0 1.5rem;
  padding-bottom: .6rem;
  border-bottom: 1px solid var(--line);
}

p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

/* ------------------------------------------------------------------ parcours */
.timeline { list-style: none; margin: 0; padding: 0; }

.timeline > li {
  position: relative;
  padding: 0 0 1.9rem 1.65rem;
  border-left: 1px solid var(--line);
}
.timeline > li:last-child { padding-bottom: 0; border-left-color: transparent; }

.timeline > li::before {
  content: "";
  position: absolute; left: -4.5px; top: .58rem;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--paper);
  border: 2px solid var(--accent);
}

.when {
  display: block;
  font-size: .8rem; font-weight: 600;
  letter-spacing: .06em;
  color: var(--accent);
  margin-bottom: .15rem;
}

.what { font-weight: 600; margin: 0 0 .1rem; font-size: 1.02rem; }
.where { margin: 0; color: var(--muted); font-size: .95rem; }
.detail { margin: .5rem 0 0; color: var(--ink-soft); font-size: .97rem; }

/* ------------------------------------------------------------------ listes */
.plain { list-style: none; margin: 0; padding: 0; }
.plain > li { padding: .8rem 0; border-bottom: 1px solid var(--line); }
.plain > li:last-child { border-bottom: 0; }

.tags { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0; padding: 0; list-style: none; }
.tags > li {
  padding: .35rem .8rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: .88rem;
  color: var(--ink-soft);
  background: var(--paper-2);
}

/* ------------------------------------------------------------------ à compléter */
.todo {
  background: var(--warn-bg);
  border: 1px dashed var(--warn-line);
  border-radius: 8px;
  padding: .9rem 1.1rem;
  color: var(--warn-ink);
  font-size: .95rem;
}
.todo strong { font-weight: 600; }
.chip {
  display: inline-block;
  margin-left: .5rem;
  padding: .1rem .5rem;
  border-radius: 4px;
  background: var(--warn-bg);
  border: 1px dashed var(--warn-line);
  color: var(--warn-ink);
  font-size: .72rem; font-weight: 600;
  letter-spacing: .04em; text-transform: uppercase;
  vertical-align: middle;
}

/* ------------------------------------------------------------------ contact */
.contact-grid {
  display: grid;
  gap: .9rem;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
}
.card {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1.1rem 1.2rem;
  background: var(--paper-2);
}
.card__label {
  display: block;
  font-size: .72rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted);
  margin-bottom: .3rem;
}
.card a { font-weight: 500; word-break: break-word; }

/* ------------------------------------------------------------------ pied */
footer {
  margin-top: clamp(3rem, 8vw, 4.5rem);
  border-top: 1px solid var(--line);
  padding: 1.75rem 0 2.5rem;
  color: var(--muted);
  font-size: .87rem;
}
footer p { margin: 0 0 .35rem; }

/* ------------------------------------------------------------------ impression */
@media print {
  :root { --paper: #fff; --paper-2: #fff; --ink: #000; --ink-soft: #222; --muted: #555; --line: #ccc; --accent: #c0324b; --accent-ink: #8a2438; --on-accent: #fff; }
  .actions, .skip, .todo, .chip { display: none !important; }
  body { font-size: 10.5pt; }
  section { padding-top: 1.4rem; break-inside: avoid; }
  .timeline > li { break-inside: avoid; }
  a { text-decoration: none; color: #000; }
}

/* ------------------------------------------------------------------ limites */
.boundary {
  border-left: 3px solid var(--accent);
  background: var(--paper-2);
  border-radius: 0 8px 8px 0;
  padding: 1rem 1.2rem;
  color: var(--ink-soft);
  font-size: .97rem;
}
.boundary p:first-child { font-weight: 600; color: var(--ink); }


/* ------------------------------------------------------------------ langues */
.langs { display: flex; flex-wrap: wrap; gap: 1.6rem; margin: 0; padding: 0; list-style: none; }
.langs > li { font-size: 1rem; }
.langs .where { font-size: .85rem; }

/* en pile sous 44rem : photo centrée, texte aligné à gauche */
@media (max-width: 44rem) {
  .identity { flex-direction: column; align-items: center; }
  .identity__text { text-align: left; width: 100%; flex: 1 1 auto; }
  .portrait { width: min(15rem, 62%); }
}

/* ------------------------------------------------------------------ sous-titres */
h3 {
  font-size: 1rem; font-weight: 600;
  margin: 2.1rem 0 .9rem;
  color: var(--ink);
}

/* ------------------------------------------------------------------ profils */
.profils { list-style: none; margin: 0; padding: 0; counter-reset: p; }
.profils > li {
  position: relative;
  padding: .8rem 0 .8rem 2.4rem;
  border-bottom: 1px solid var(--line);
}
.profils > li:last-child { border-bottom: 0; padding-bottom: 0; }
.profils > li::before {
  counter-increment: p;
  content: counter(p);
  position: absolute; left: 0; top: .95rem;
  width: 1.6rem; height: 1.6rem;
  border-radius: 50%;
  background: var(--accent);
  color: var(--on-accent);
  font-size: .78rem; font-weight: 700;
  display: grid; place-items: center;
}

/* ------------------------------------------------------------------ formules */
.offres { list-style: none; margin: 0; padding: 0; display: grid; gap: .85rem; }
.offres > li {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1rem 1.15rem;
  background: var(--paper-2);
}
.offres .what { margin-bottom: .1rem; }
.offres .where { margin-bottom: .55rem; font-size: .88rem; }
.offres .detail { margin: 0; }

/* ------------------------------------------------------------------ appel */
.cta { margin-top: 1.6rem; }
.cta p { margin: 0 0 .8rem; color: var(--ink-soft); }
