/* ==========================================================================
   Variables
   ========================================================================== */
:root {
  --bg: #f4f3ef;
  --ink: #0b0b0b;
  --muted: #5a5955;
  --line: rgba(11, 11, 11, 0.16);
  --pad: clamp(20px, 5vw, 72px);
  --sans: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --ease: cubic-bezier(0.19, 1, 0.22, 1);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 60px; }
/* Garde-fou : jamais de défilement horizontal de la page */
html, body { max-width: 100%; overflow-x: clip; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

/* Lien vers le GitHub, à côté du titre « Projets » */
.section__link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-left: 12px;
  align-self: center;
  padding: 11px 20px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: background-color 0.5s ease, border-color 0.5s ease;
}
.section__link:hover,
.section__link:focus-visible { background-color: rgba(128, 128, 128, 0.12); border-color: var(--muted); }

/* Version sans JavaScript (balises <noscript> générées par tools/build.py) */
.nojs-list li { margin-bottom: 30px; }
.nojs-list h3 { font-weight: 400; font-size: 20px; }
.nojs-list a { border-bottom: 1px solid currentColor; }
.nojs-list p { max-width: 620px; color: var(--muted); }

/* Page 404 */
.page-404 { background: var(--ink); color: var(--bg); }
.nf {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 18px;
  padding: 40px var(--pad);
}
.nf__code {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(96px, 22vw, 260px);
  line-height: 0.9;
  opacity: 0.35;
}
.nf__title { font-weight: 300; font-size: clamp(28px, 5vw, 56px); letter-spacing: -0.02em; line-height: 1.1; }
.nf__text { max-width: 520px; color: rgba(244, 243, 239, 0.7); }
.page-404 .link-arrow { margin-top: 12px; border-bottom-color: var(--bg); }

/* Lien « aller au contenu » : visible uniquement au clavier */
.skip-link {
  position: fixed;
  left: 12px;
  top: -64px;
  z-index: 100;
  padding: 12px 20px;
  border-radius: 999px;
  background: #f4f3ef;
  color: #0b0b0b;
  font-size: 13px;
  letter-spacing: 0.06em;
  transition: top 0.25s ease;
}
.skip-link:focus,
.skip-link:focus-visible { top: 12px; outline: 2px solid #0b0b0b; outline-offset: 2px; }
main:focus { outline: none; }
ul, ol { list-style: none; }

::selection { background: var(--ink); color: var(--bg); }

/* ==========================================================================
   Header
   ========================================================================== */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px var(--pad);
  /* par défaut (sur une partie crème) : barre noire, texte crème */
  --bg: #0b0b0b;
  --ink: #f4f3ef;
  --muted: rgba(244, 243, 239, 0.62);
  --line: rgba(244, 243, 239, 0.2);
  background: rgba(11, 11, 11, 0.92);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  transition: background-color 0.6s var(--ease), color 0.6s var(--ease), border-color 0.6s var(--ease);
}
/* Sur une partie noire : l'inverse, barre crème, texte noir */
.header.is-on-dark {
  --bg: #f4f3ef;
  --ink: #0b0b0b;
  --muted: #5a5955;
  --line: rgba(11, 11, 11, 0.16);
  background: rgba(244, 243, 239, 0.92);
}

.logo {
  white-space: nowrap;
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.32em;
}

.nav { display: flex;  margin-left: auto; }

.lang {
  display: flex;
  gap: 4px;
  margin-left: clamp(24px, 3.5vw, 56px);
}
.lang button {
  background: none;
  border: 0;
  color: inherit;
  font: inherit;
  font-size: 11px;
  letter-spacing: 0.2em;
  padding: 7px 9px;
  cursor: pointer;
  opacity: 0.72;
  border-bottom: 1px solid transparent;
  transition: opacity 0.4s var(--ease), border-color 0.4s var(--ease);
}
.lang button:hover { opacity: 1; }
.lang button.is-active { opacity: 1; border-bottom-color: currentColor; }
.lang button:focus-visible { outline: 1px solid currentColor; outline-offset: 2px; }
.nav { gap: clamp(2px, 0.8vw, 12px); }
.nav a {
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  position: relative;
  padding: 8px 16px;
  border-radius: 999px;
  transition: background-color 0.5s var(--ease), color 0.5s var(--ease);
}
.nav a:hover { background: rgba(128, 128, 128, 0.16); }
/* Lien de la section affichée : pastille pleine, couleurs inversées */
.nav a.is-active { background: var(--ink); color: var(--bg); }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  display: flex;
  flex-direction: column;
  position: relative;
}

.eyebrow {
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 28px;
}

.hero__title {
  font-weight: 300;
  font-size: clamp(28px, 9vw, 150px);
  line-height: 0.95;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}
/* Le « & » reprend la police du titre (plus de esperluette ornementale) */
.hero__title em {
  font-family: inherit;
  font-style: normal;
  font-weight: inherit;
  letter-spacing: inherit;
}
.line { display: block; overflow: hidden; padding-bottom: 0.06em; }
.line__inner {
  display: block;
  transform: translateY(110%);
  animation: rise 1.4s var(--ease) forwards;
}
.line:nth-child(2) .line__inner { animation-delay: 0.12s; }

@keyframes rise { to { transform: translateY(0); } }

.hero__text { max-width: 520px; color: var(--muted); font-size: 15px; }

.link-arrow {
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  white-space: nowrap;
  display: inline-flex;
  gap: 14px;
  align-items: center;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 6px;
}
.link-arrow span[aria-hidden] { transition: transform 0.5s var(--ease); }
.link-arrow:hover span[aria-hidden] { transform: translateX(8px); }

/* Le grec est plus large : on réduit un peu le grand titre */
html[lang="el"] .hero__title { font-size: clamp(24px, 6.6vw, 112px); }

/* Phrase d'accroche sous le titre */
.hero__tagline {
  margin-top: clamp(18px, 2.4vw, 32px);
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(22px, 2.6vw, 38px);
  line-height: 1.2;
  color: var(--muted);
}

/* ==========================================================================
   Sections
   ========================================================================== */
.section {
  padding: clamp(90px, 14vw, 200px) var(--pad);
  border-top: 1px solid var(--line);
}

.section__head {
  display: flex;
  align-items: baseline;
  gap: 28px;
  margin-bottom: clamp(48px, 8vw, 110px);
}
.section__index {
  font-size: 11px;
  letter-spacing: 0.3em;
  color: var(--muted);
}
.section__title {
  font-weight: 300;
  font-size: clamp(36px, 6vw, 88px);
  letter-spacing: -0.02em;
  text-transform: uppercase;
  line-height: 1;
}

/* ==========================================================================
   Timeline (parcours)
   ========================================================================== */
.timeline { border-top: 1px solid var(--line); }

.timeline__item {
  display: grid;
  grid-template-columns: minmax(140px, 1fr) 3fr;
  gap: 32px;
  padding: 44px 0;
  border-bottom: 1px solid var(--line);
}

.timeline__period {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(22px, 2.4vw, 34px);
  line-height: 1.2;
}
.timeline__body h3 {
  font-weight: 400;
  font-size: clamp(18px, 2vw, 26px);
  letter-spacing: -0.01em;
  margin-bottom: 4px;
}
.timeline__place {
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}
.timeline__text { max-width: 620px; color: var(--muted); }

/* Compétences : petites pastilles fines */
.skills { margin-top: 28px; }
.skills__label {
  display: block;
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}
.skills__list { display: flex; flex-wrap: wrap; gap: 8px; }
.skills__list li {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1.4;
  border: 1px solid var(--line);
  padding: 8px 16px;
  transition: background-color 0.5s ease, border-color 0.5s ease;
}
/* Compétences par catégories : une ligne par catégorie (titre à gauche, compétences à droite) */
.skill-groups { border-top: 1px solid var(--line); }
.skill-group {
  display: grid;
  grid-template-columns: minmax(150px, 210px) 1fr;
  gap: 10px 28px;
  align-items: baseline;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.skill-group__label {
  font-family: var(--serif);
  font-style: italic;
  font-size: 19px;
  line-height: 1.2;
}

.skills__list li:hover { background-color: rgba(128, 128, 128, 0.12); border-color: var(--muted); }

.timeline__item--current .timeline__period::before {
  content: "";
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--ink);
  margin-right: 12px;
  vertical-align: middle;
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse { 50% { opacity: 0.2; } }

/* Qualités : liste lisible à gauche, panneau noir à droite qui détaille la qualité active */
.strengths {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-content: start;
  border-top: 1px solid var(--line);
}
.strengths::after {
  content: "";
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 50%;
  background: var(--ink);
}

.strength {
  grid-column: 1;
  display: flex;
  align-items: baseline;
  gap: 22px;
  padding: 16px clamp(20px, 3vw, 44px) 16px 0;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  outline: none;
}
.strength::after {
  content: "→";
  margin-left: auto;
  font-family: var(--serif);
  font-size: 30px;
  line-height: 1;
  opacity: 0;
  transform: translateX(-10px);
  transition: opacity 0.5s var(--ease), transform 0.7s var(--ease);
}
.strength.is-active::after { opacity: 1; transform: none; }
.strength:focus-visible { outline: 2px solid var(--ink); outline-offset: -2px; }

.strength__num {
  min-width: 30px;
  font-size: 11px;
  letter-spacing: 0.3em;
  opacity: 0.68;
}
.strength__word {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(30px, 3.4vw, 50px);
  line-height: 1.1;
  opacity: 0.55;
  transition: opacity 0.5s var(--ease), transform 0.7s var(--ease);
}
.strength:hover .strength__word { opacity: 0.85; }
.strength.is-active .strength__word { opacity: 1; transform: translateX(14px); }

/* Détail : s'affiche dans le panneau noir, à droite */
.strength__desc {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: calc(50% + clamp(28px, 4vw, 64px));
  right: clamp(28px, 4vw, 64px);
  color: var(--bg);
  font-size: clamp(17px, 1.7vw, 23px);
  line-height: 1.55;
  opacity: 0;
  transform: translateY(calc(-50% + 14px));
  pointer-events: none;
  transition: opacity 0.4s var(--ease), transform 0.8s var(--ease);
}
.strength__desc::before {
  content: attr(data-num);
  display: block;
  margin-bottom: 20px;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(84px, 9vw, 140px);
  line-height: 0.9;
  opacity: 0.3;
}
.strength.is-active .strength__desc {
  opacity: 1;
  transform: translateY(-50%);
  transition-delay: 0.15s;
}

/* ==========================================================================
   Projets
   ========================================================================== */
.projects {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(40px, 5vw, 72px) clamp(20px, 3vw, 48px);
}

/* Deux groupes : projets phares / collections */
.projects-group__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding-bottom: 18px;
  margin-bottom: clamp(28px, 4vw, 48px);
  border-bottom: 1px solid var(--line);
}
.projects-group__title {
  font-weight: 400;
  font-size: 15px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
}

/* Projets à télécharger : une ligne-lien (même effet que les lignes de contact) vers downloads.html */
.projects-group--downloads { margin-top: 0; }
.dl-wrap { border-bottom: 1px solid var(--line); }

/* Page downloads.html : liste simple (titre, une phrase, boutons) */
.dl-list { margin-top: 48px; border-top: 1px solid var(--line); }
.dl-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px 40px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}
.dl-item__text { flex: 1 1 340px; min-width: 0; }
.dl-item__title { font-weight: 400; font-size: clamp(20px, 2.2vw, 28px); letter-spacing: -0.01em; line-height: 1.2; }
.dl-item__desc { margin-top: 8px; max-width: 560px; color: var(--muted); font-size: 15px; line-height: 1.7; }
.dl-item__actions { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.dl-item__buttons { display: flex; flex-wrap: wrap; gap: 10px; }
.dl-item .btn { padding: 14px 22px; }
.dl-item .btn small { font-size: 10px; letter-spacing: 0.1em; text-transform: none; opacity: 0.6; }
.dl-item__repo {
  align-self: flex-end; /* lien « View on GitHub » aligné à droite, sous les boutons */
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 3px;
}
.projects-group__desc {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(17px, 1.6vw, 22px);
  color: var(--muted);
}

.card { display: block; }

.card__media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #e6e4de;
  display: grid;
  place-items: center;
}
.card__media img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease);
}
.card:hover .card__media img { transform: scale(1.05); }

.card__mono {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(64px, 9vw, 140px);
  color: rgba(11, 11, 11, 0.14);
  transition: transform 1.2s var(--ease);
}
a.card:hover .card__mono { transform: scale(1.06); }

/* Catégorie : petite étiquette au-dessus du titre (n'empiète plus sur l'image) */
.card__badge {
  display: block;
  padding-top: 20px;
  font-size: 10px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--muted);
}
.card__badge + .card__meta { padding-top: 8px; }

.card__meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding-top: 20px;
}
.card__title {
  font-weight: 400;
  font-size: clamp(18px, 1.9vw, 24px);
  letter-spacing: -0.01em;
}
.card__year { font-size: 12px; letter-spacing: 0.2em; color: var(--muted); }

.card__desc { color: var(--muted); font-size: 14.5px; margin-top: 6px; max-width: 520px; }

/* Résultat apporté par le projet + petite note pratique (ex. identifiants de démo) */
.card__result {
  position: relative;
  margin-top: 10px;
  padding-left: 20px;
  max-width: 520px;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--ink);
}
.card__result::before {
  content: "→";
  position: absolute;
  left: 0;
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.4;
}
.card__note {
  display: inline-block;
  margin-top: 12px;
  padding: 4px 12px;
  border: 1px dashed var(--line);
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.card__tags {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-top: 16px;
}
.card__tags li {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border: 1px solid var(--line);
  padding: 4px 10px;
}

.card__links { display: flex; gap: 24px; margin-top: 18px; }
.card__links a {
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 3px;
}

.card--soon { opacity: 0.85; }

/* ==========================================================================
   Contact
   ========================================================================== */
/* Section noire : on inverse simplement les couleurs de base.
   Tout ce qui utilise var(--bg) / var(--ink) / var(--muted) / var(--line)
   s'adapte automatiquement (texte, traits, pastilles, grille de qualités…). */
.section--dark {
  --bg: #0b0b0b;
  --ink: #f4f3ef;
  --muted: rgba(244, 243, 239, 0.62);
  --line: rgba(244, 243, 239, 0.2);
  background: var(--bg);
  color: var(--ink);
  border-top: 0;
}

/* Rythme de la page : deux couleurs seulement, noir et crème, en alternance.
   Sur fond noir, un fin contour garde les images des cartes bien lisibles. */
.section--dark .card__media { outline: 1px solid var(--line); }

.section.section--tight-bottom { padding-bottom: clamp(50px, 7vw, 100px); }

.contact__lead {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(24px, 3vw, 40px);
  color: var(--muted);
  margin-bottom: 20px;
}
/* Lignes de contact : un voile ivoire monte au survol, le texte glisse */
.contact__list {
  margin-top: clamp(40px, 6vw, 80px);
  border-top: 1px solid var(--line);
}
.contact__list li { border-bottom: 1px solid var(--line); }

.contact__row {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(110px, 1fr) 4fr auto;
  align-items: center;
  gap: 24px;
  padding: clamp(26px, 3.4vw, 44px) 0;
  transition: color 0.6s var(--ease);
}
.contact__row::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--ink);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.8s var(--ease);
}
.contact__row > * { transition: transform 0.8s var(--ease); }

.contact__label {
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  opacity: 0.6;
}
.contact__value {
  font-weight: 300;
  font-size: clamp(20px, 3.4vw, 52px);
  letter-spacing: -0.02em;
  line-height: 1.1;
  overflow-wrap: anywhere;
}
.contact__arrow {
  font-family: var(--serif);
  font-size: clamp(24px, 3vw, 44px);
  line-height: 1;
}

.contact__row:hover,
.contact__row:focus-visible { color: var(--bg); outline: none; }
.contact__row:hover::before,
.contact__row:focus-visible::before { transform: scaleY(1); }
.contact__row:hover .contact__label,
.contact__row:hover .contact__value,
.contact__row:focus-visible .contact__label,
.contact__row:focus-visible .contact__value { transform: translateX(clamp(12px, 2vw, 32px)); }
.contact__row:hover .contact__arrow,
.contact__row:focus-visible .contact__arrow { transform: translateX(calc(-1 * clamp(12px, 2vw, 32px))) rotate(0deg); }

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  display: flex;
  justify-content: space-between;
  padding: 28px var(--pad);
  background: var(--ink);
  color: rgba(244, 243, 239, 0.68);
  border-top: 1px solid rgba(244, 243, 239, 0.14);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.footer a:hover { color: var(--bg); }

/* ==========================================================================
   Page « Mentions légales »
   ========================================================================== */
.legal { margin-top: 48px; max-width: 980px; border-top: 1px solid var(--line); }
.legal__sec {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) 3fr;
  gap: 12px 32px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}
.legal__sec h2 {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  padding-top: 4px;
}
.legal__sec p { color: var(--muted); line-height: 1.8; max-width: 680px; }
.legal__sec a { color: var(--ink); border-bottom: 1px solid var(--line); }
.legal__sec a:hover { border-bottom-color: var(--ink); }

/* ==========================================================================
   Animations d'apparition
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 1.1s var(--ease), transform 1.1s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ==========================================================================
   Responsive
   ========================================================================== */

/* ==========================================================================
   Raccourcis réseaux (icônes) + icônes de la section Contact
   ========================================================================== */
.social {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: clamp(24px, 3.5vw, 56px);
}
.social + .lang { margin-left: clamp(14px, 2vw, 28px); }
.social a {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  opacity: 0.78;
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}
.social a:hover,
.social a:focus-visible { opacity: 1; transform: translateY(-2px); }
.social a:focus-visible { outline: 1px solid currentColor; outline-offset: 2px; }

.icon { width: 18px; height: 18px; fill: currentColor; flex: none; }
.social .icon { width: 22px; height: 22px; }
.icon--stroke { fill: none; stroke: currentColor; stroke-width: 1.4; }

.contact__label { display: flex; align-items: center; gap: 12px; }
.contact__label .icon { width: 16px; height: 16px; }

/* ==========================================================================
   CV : espace cliquable (accueil) + page cv.html
   ========================================================================== */
.section--compact { padding-block: clamp(60px, 9vw, 130px); }
.section--compact .section__head { margin-bottom: clamp(32px, 5vw, 64px); }

.cv-link {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(110px, 1fr) 4fr auto;
  align-items: center;
  gap: 24px;
  padding: clamp(28px, 3.6vw, 48px) clamp(20px, 3vw, 40px);
  border: 1px solid var(--ink);
  transition: color 0.6s var(--ease);
}
.cv-link::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--ink);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.8s var(--ease);
}
.cv-link:hover,
.cv-link:focus-visible { color: var(--bg); outline: none; }
.cv-link:hover::before,
.cv-link:focus-visible::before { transform: scaleY(1); }
.cv-link__label {
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  opacity: 0.6;
}
.cv-link__value {
  font-size: clamp(20px, 3.4vw, 52px);
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.cv-link__arrow {
  font-family: var(--serif);
  font-size: clamp(24px, 3vw, 44px);
  line-height: 1;
  transition: transform 0.6s var(--ease);
}
.cv-link:hover .cv-link__arrow { transform: translateX(8px); }

.cv-page { padding: 140px var(--pad) clamp(56px, 8vw, 100px); min-height: 100svh; }
.cv-title {
  font-weight: 300;
  font-size: clamp(36px, 7vw, 110px);
  letter-spacing: -0.03em;
  text-transform: uppercase;
  line-height: 0.95;
}
.cv-lead { color: var(--muted); max-width: 520px; margin-top: 24px; font-size: 15px; }

.cv-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px 40px;
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.link-arrow--back:hover span[aria-hidden] { transform: translateX(-8px); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  padding: 16px 28px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--bg);
  transition: background 0.5s var(--ease), color 0.5s var(--ease);
}
.btn:hover,
.btn:focus-visible { background: transparent; color: var(--ink); outline: none; }
.btn.is-disabled { opacity: 0.3; pointer-events: none; }

/* ==========================================================================
   En-tête mobile : menu burger (≤ 900px)
   Sur ordinateur, .header__menu est simplement la ligne nav + icônes + langues.
   ========================================================================== */
.header__menu { display: flex; align-items: center; margin-left: auto; }
.menu-toggle { display: none; }

/* Petit texte d'introduction sous un titre de section (ex. Projets) */
.section .section__head--tight { margin-bottom: clamp(20px, 2.4vw, 32px); }
.section__intro {
  max-width: 640px;
  margin-bottom: clamp(40px, 6vw, 80px);
  color: var(--muted);
  font-size: 15px;
  line-height: 1.8;
}

/* Centres d'intérêt (section À propos) : mêmes lignes fines que le parcours */
.subhead {
  margin: clamp(64px, 9vw, 120px) 0 28px;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(28px, 3.4vw, 48px);
  line-height: 1.1;
}
.subhead.subhead--first { margin-top: 0; }
.interests { border-top: 1px solid var(--line); }
.interest {
  display: grid;
  grid-template-columns: minmax(140px, 1fr) 3fr;
  align-items: baseline;
  gap: 32px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}
.interest__name {
  font-size: 11px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
}
.interest__text { max-width: 620px; color: var(--muted); }

/* ==========================================================================
   CV écrit en HTML (feuille) + mise en page d'impression A4
   ========================================================================== */
.cv-hint { margin-top: 14px; font-size: 12px; color: var(--muted); }
.cv-hint[hidden] { display: none; }

.cv-sheet {
  margin-top: 40px;
  padding: clamp(22px, 5vw, 64px);
  background: #fbfaf6;
  border: 1px solid var(--line);
}
.cv-doc__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  padding-bottom: clamp(20px, 3vw, 34px);
  border-bottom: 1px solid var(--ink);
}
.cv-doc__id { min-width: 0; }
.cv-doc__photo {
  flex: none;
  width: 88px;
  height: 88px;
  object-fit: cover;
  object-position: center 30%;
  border-radius: 50%;
}
.cv-print-foot { display: none; }
.cv-doc__name {
  font-weight: 300;
  font-size: clamp(26px, 4.6vw, 56px);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  line-height: 1.05;
  overflow-wrap: anywhere;
}
.cv-doc__name span:first-child { font-weight: 500; }
.cv-doc__role {
  margin-top: 14px;
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
}

.cv-doc__grid {
  display: grid;
  grid-template-columns: minmax(230px, 1fr) 2.2fr;
  gap: clamp(28px, 5vw, 68px);
  padding-top: clamp(24px, 4vw, 44px);
}
.cv-doc__side, .cv-doc__main { min-width: 0; }

.cv-sec + .cv-sec { margin-top: 34px; }
.cv-sec__title {
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

.cv-contact li, .cv-list li { font-size: 14px; line-height: 1.6; overflow-wrap: anywhere; }
.cv-contact li + li { margin-top: 6px; }
.cv-k {
  display: block;
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
}
.cv-contact a { border-bottom: 1px solid var(--line); }
.cv-contact a:hover { border-bottom-color: var(--ink); }
.cv-sep { color: var(--muted); }

.cv-list li + li { margin-top: 14px; }
.cv-list strong { display: block; font-weight: 500; }
.cv-list span { display: block; color: var(--muted); }
.cv-list .cv-muted { font-size: 13px; }
.cv-list--inline li + li { margin-top: 6px; }
.cv-list--inline li { display: flex; flex-wrap: wrap; gap: 0 10px; align-items: baseline; }
.cv-list--inline strong, .cv-list--inline span { display: inline; }

.cv-profile { font-size: 15px; line-height: 1.8; color: var(--muted); }

.cv-job + .cv-job { margin-top: 30px; padding-top: 26px; border-top: 1px solid var(--line); }
.cv-job__role { font-size: clamp(17px, 1.8vw, 21px); font-weight: 500; letter-spacing: -0.01em; }
.cv-job__org { margin-top: 2px; font-size: 14px; }
.cv-job__period {
  margin-top: 2px;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}
.cv-job__bullets { margin-top: 12px; list-style: disc; padding-left: 18px; }
.cv-job__bullets li { font-size: 14.5px; line-height: 1.7; color: var(--muted); }
.cv-job__bullets li + li { margin-top: 6px; }

/* ==========================================================================
   Accueil en « carte » : portrait, titre fort, points clés, bande d'outils
   (placé en fin de fichier pour prendre le dessus sur l'ancien accueil)
   ========================================================================== */
.hero {
  min-height: 100svh;
  justify-content: flex-start;
  gap: 14px;
  padding: 58px var(--pad) 28px;
}
.hero__card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  flex: 1 1 auto;
  min-height: 560px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  /* plus de cadre : on reste sur le beige du site, écriture en noir */
  padding: clamp(10px, 1.4vw, 18px) 0 clamp(4px, 0.7vw, 10px);
  background: transparent;
  color: #0b0b0b;
}
/* portrait (noir et blanc, fondu dans le beige) */
.hero__photo {
  position: absolute;
  z-index: -2;
  left: 39%;
  bottom: 0;
  height: 100%;
  width: 42%;
  object-fit: cover;
  object-position: 50% 8%;
  filter: grayscale(1) brightness(0.96) contrast(1.18);
  mix-blend-mode: multiply;
  -webkit-mask-image: radial-gradient(ellipse 52% 80% at 50% 38%, #000 28%, transparent 100%);
  mask-image: radial-gradient(ellipse 52% 80% at 50% 38%, #000 28%, transparent 100%);
}
/* voiles beiges : derrière le texte (droite et gauche), en bas et en haut, pour fondre le portrait */
.hero__card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(270deg, #f4f3ef 0%, rgba(244, 243, 239, 0.85) 22%, rgba(244, 243, 239, 0) 44%),
    linear-gradient(90deg, rgba(244, 243, 239, 0.9) 0%, rgba(244, 243, 239, 0) 34%),
    linear-gradient(0deg, #f4f3ef 0%, rgba(244, 243, 239, 0.6) 22%, rgba(244, 243, 239, 0) 46%),
    linear-gradient(180deg, rgba(244, 243, 239, 0.6) 0%, rgba(244, 243, 239, 0) 22%);
}

/* titre à gauche (il chevauche un peu le portrait), texte à droite, comme la référence */
.hero__main {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.6fr);
  align-items: center;
  gap: 32px;
  /* remonte légèrement le bloc titre / texte, plus près de la barre de navigation */
  padding-bottom: clamp(40px, 6.5vw, 84px);
}
.hero__content { max-width: none; }
.hero__aside { justify-self: end; max-width: 300px; }
.hero__aside .hero__tagline { margin-top: 0; }
.hero__card .eyebrow {
  margin-bottom: 18px;
  font-size: 14px;
  letter-spacing: 0.02em;
  text-transform: none;
  font-weight: 600;
  color: #0b0b0b;
}
.hero__card .hero__title {
  font-weight: 500;
  font-size: clamp(42px, 5.6vw, 94px);
  line-height: 0.98;
  letter-spacing: -0.04em;
  text-transform: none;
}
html[lang="el"] .hero__card .hero__title { font-size: clamp(30px, 4.4vw, 74px); }
.hero__card .hero__tagline {
  margin-top: clamp(18px, 2vw, 28px);
  font-size: clamp(20px, 2.1vw, 30px);
  color: #0b0b0b;
}
.hero__card .hero__text {
  margin-top: 18px;
  max-width: 440px;
  font-size: 15px;
  color: rgba(11, 11, 11, 0.85);
}

/* bouton pilule */
.hero__cta {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  margin-top: 28px;
  padding: 6px 6px 6px 24px;
  border-radius: 999px;
  background: #0b0b0b;
  color: #f4f3ef;
  font-size: 13px;
  letter-spacing: 0.04em;
  font-weight: 500;
}
.hero__cta-arrow {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #f4f3ef;
  color: #0b0b0b;
  font-size: 18px;
  transition: transform 0.6s var(--ease);
}
.hero__cta:hover .hero__cta-arrow { transform: translateX(5px); }

/* points clés numérotés */
.hero__points {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(16px, 2.4vw, 32px);
  margin-top: 36px;
}
.hero__points li {
  padding-top: 14px;
  border-top: 1px solid rgba(11, 11, 11, 0.2);
  font-size: 14px;
}
.hero__points b {
  display: block;
  margin-bottom: 6px;
  font-weight: 400;
  font-size: 11px;
  letter-spacing: 0.2em;
  color: rgba(11, 11, 11, 0.78);
}

/* badge circulaire dans la carte */

/* bande d'outils */
.hero__stack {
  display: flex;
  align-items: center;
  gap: clamp(20px, 3vw, 40px);
  /* plus de cadre : un simple trait fin au-dessus, comme les points clés */
  padding: 22px 0 6px;
  border-top: 1px solid rgba(11, 11, 11, 0.2);
  background: transparent;
  color: #0b0b0b;
}
.hero__stack-label {
  flex: none;
  max-width: 140px;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  line-height: 1.5;
  color: #0b0b0b;
}
.hero__stack ul {
  display: flex;
  flex-wrap: wrap;
  flex: 1;
  justify-content: space-between;
  gap: 10px 28px;
}
.hero__stack li {
  font-size: clamp(15px, 1.4vw, 19px);
  font-weight: 500;
  letter-spacing: -0.01em;
}
.hero__stack .hero__stack-more {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(17px, 1.6vw, 22px);
  letter-spacing: 0;
  color: rgba(11, 11, 11, 0.78);
}

/* ==========================================================================
   Téléphone : paragraphes justifiés (avec césure automatique pour éviter
   les grands trous entre les mots). Les titres, étiquettes et boutons restent alignés à gauche.
   ========================================================================== */

/* ==========================================================================
   Menu mobile : lien actif = point + texte plein (pas de pastille)
   ========================================================================== */

/* ==========================================================================

   Responsive : du plus large au plus étroit (les règles « mobile » viennent en dernier)

   ========================================================================== */

@media (max-width: 900px) {
  html { scroll-padding-top: 84px; }
  .header { padding-top: 10px; padding-bottom: 10px; }
  .logo { font-size: 12px; letter-spacing: 0.18em; }

  .menu-toggle {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 44px;
    height: 44px;
    margin-right: -10px;
    background: none;
    border: 0;
    color: inherit;
    cursor: pointer;
  }
  .menu-toggle span {
    display: block;
    width: 22px;
    height: 1px;
    background: currentColor;
    transition: transform 0.6s var(--ease), opacity 0.3s var(--ease);
  }
  .menu-toggle:focus-visible { outline: 1px solid currentColor; outline-offset: -4px; }
  /* 3 traits (pas de 7px entre deux traits) → croix à l'ouverture */
  .header.is-open .menu-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .header.is-open .menu-toggle span:nth-child(2) { opacity: 0; transform: scaleX(0); }
  .header.is-open .menu-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .header__menu {
    display: flex;
    /* fermé : invisible mais animable (pas de display:none, sinon pas de transition) */
    visibility: hidden;
    opacity: 0;
    clip-path: inset(0 0 100% 0);
    transform: translateY(-10px);
    pointer-events: none;
    /* fermeture = l'ouverture à l'envers : le panneau se roule vers le haut, avec la même courbe */
    transition:
      clip-path 0.7s var(--ease),
      transform 0.7s var(--ease),
      opacity 0.45s ease 0.1s,
      visibility 0s linear 0.7s;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-left: 0;
    flex-wrap: wrap;
    align-items: center;
    padding: 6px var(--pad) 26px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    max-height: calc(100svh - 64px);
    overflow-y: auto;
  }
  .header.is-open .header__menu {
    visibility: visible;
    opacity: 1;
    clip-path: inset(0 0 0 0);
    transform: none;
    pointer-events: auto;
    /* ouverture : le panneau se déroule vers le bas */
    transition:
      clip-path 0.85s var(--ease),
      transform 0.7s var(--ease),
      opacity 0.4s ease,
      visibility 0s;
  }

  /* Les éléments du menu apparaissent l'un après l'autre */
  .nav a, .social, .lang {
    opacity: 0;
    transform: translateY(-6px);
    /* fermeture : les liens disparaissent dans l'ordre inverse de l'ouverture (le dernier d'abord) */
    transition:
      opacity 0.3s ease calc((6 - var(--i, 0)) * 0.03s),
      transform 0.45s var(--ease) calc((6 - var(--i, 0)) * 0.03s);
  }
  .header.is-open .nav a,
  .header.is-open .social,
  .header.is-open .lang {
    opacity: 1;
    transform: none;
    transition: opacity 0.7s var(--ease), transform 0.9s var(--ease);
    transition-delay: calc(0.05s + var(--i, 0) * 0.06s);
  }
  .nav a:nth-child(1) { --i: 1; }
  .nav a:nth-child(2) { --i: 2; }
  .nav a:nth-child(3) { --i: 3; }
  .nav a:nth-child(4) { --i: 4; }
  .social { --i: 5; }
  .lang { --i: 6; }

  .nav { flex-direction: column; gap: 0; width: 100%; margin-left: 0; }
  .nav a {
    font-size: 13px;
    letter-spacing: 0.2em;
    padding: 18px 0;
    border-bottom: 1px solid var(--line);
  }
  .nav a::after { display: none; }

  .social { margin: 22px 0 0 -6px; }
  .social + .lang,
  .lang { margin: 22px 0 0 auto; }

  /* cibles tactiles confortables (44 px) */
  .social a { width: 44px; height: 44px; }
  .social .icon { width: 24px; height: 24px; }
  .lang button { min-width: 44px; min-height: 44px; padding: 12px; }

  .nav a { border-radius: 0; }
  .nav a:hover,
  .nav a.is-active { background: none; color: var(--ink); }
  .nav a.is-active { font-weight: 500; }
  .nav a.is-active::before {
    content: "";
    display: inline-block;
    width: 7px;
    height: 7px;
    margin-right: 12px;
    border-radius: 50%;
    background: currentColor;
    vertical-align: middle;
  }
}

@media (max-width: 820px) {
  .strengths { display: block; }
  .strengths::after { display: none; }
  .strength {
    position: relative;
    display: block;
    padding: 24px 0 24px 46px;
    cursor: default;
  }
  .strength::after { display: none; }
  .strength__num { position: absolute; top: 31px; left: 0; }
  .strength__word { display: block; opacity: 1; transform: none !important; font-size: 28px; }
  .strength__desc {
    position: static;
    margin-top: 8px;
    opacity: 1;
    transform: none !important;
    color: var(--muted);
    font-size: 14.5px;
    pointer-events: auto;
  }
  .strength__desc::before { display: none; }

  .timeline__item { grid-template-columns: 1fr; gap: 12px; padding: 32px 0; }
  .projects { grid-template-columns: 1fr; }
  .footer { flex-direction: column; gap: 12px; }

  .interest { grid-template-columns: 1fr; gap: 6px; padding: 22px 0; }
  .subhead { margin-top: 56px; }

  .cv-doc__grid { grid-template-columns: 1fr; }
  .cv-doc__name { letter-spacing: 0.12em; }
  .cv-doc__head { flex-direction: column-reverse; align-items: flex-start; gap: 16px; }
  .cv-doc__photo { width: 76px; height: 76px; }

  .hero { min-height: auto; padding: 76px var(--pad) 24px; }
  .hero__card { min-height: 0; padding: 10px 0 8px; }
  .hero__photo {
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.5;
    object-position: 70% 18%;
    -webkit-mask-image: radial-gradient(ellipse 62% 56% at 58% 38%, #000 25%, transparent 100%);
    mask-image: radial-gradient(ellipse 62% 56% at 58% 38%, #000 25%, transparent 100%);
  }
  .hero__main { display: block; padding-bottom: 0; }
  .hero__aside { max-width: none; margin-top: 20px; }
  .hero__card::before {
    background: linear-gradient(0deg, #f4f3ef 0%, rgba(244, 243, 239, 0.7) 55%, rgba(244, 243, 239, 0.82) 100%);
  }
  .hero__content { max-width: 100%; }
  .hero__card .hero__title { font-size: clamp(38px, 11.5vw, 64px); }
  html[lang="el"] .hero__card .hero__title { font-size: clamp(28px, 8.2vw, 48px); }
  .hero__points { grid-template-columns: repeat(2, 1fr); margin-top: 32px; }
  .hero__stack { flex-direction: column; align-items: flex-start; gap: 14px; }
  .hero__stack-label { max-width: none; }
  .hero__stack ul { justify-content: flex-start; gap: 8px 22px; }

  .hero__text,
  .timeline__text,
  .strength__desc,
  .interest__text,
  .card__desc,
  .section__intro,
  .cv-lead,
  .cv-profile,
  .cv-job__bullets li,
  .legal__sec p {
    text-align: justify;
    text-justify: inter-word;
    text-align-last: left;
    -webkit-hyphens: auto;
    hyphens: auto;
    overflow-wrap: break-word;
  }
}

@media (max-width: 720px) {
  .legal__sec { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .skill-group { grid-template-columns: 1fr; padding: 14px 0; }

  .contact__row { grid-template-columns: 1fr auto; gap: 6px 16px; }
  .contact__label { grid-column: 1 / -1; }
  /* Hero compact : le contenu démarre juste sous la navbar, sans grand vide */
  .hero { min-height: auto; justify-content: flex-start; }
  .eyebrow { margin-bottom: 14px; }
  /* les sections « compactes » et « tight-bottom » gardent leur propre marge */
  .section:not(.section--compact):not(.section--tight-bottom) { padding-block: 72px; }
  .section.section--tight-bottom { padding-top: 72px; }
  .section__head { margin-bottom: 40px; }
  .section__head { flex-wrap: wrap; gap: 6px 20px; }
  .section__link { margin-left: 0; margin-top: 10px; padding: 12px 18px; letter-spacing: 0.12em; white-space: normal; max-width: 100%; border-radius: 24px; line-height: 1.5; }
  .section__title { min-width: 0; overflow-wrap: anywhere; font-size: clamp(26px, 8.4vw, 48px); }
  .timeline__period { font-size: 24px; }
  .card__meta { flex-wrap: wrap; gap: 4px 16px; }
  .contact__lead { font-size: 24px; }
  .contact__value { font-size: clamp(18px, 6vw, 28px); }
  /* Pied de page mobile : mentions légales à gauche, retour en haut à droite (même ligne),
     © année + nom centré en dessous ; la mention « Built with… » est masquée */
  .footer {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 14px 16px;
    padding: 24px var(--pad);
  }
  .footer > :first-child { order: 3; flex: 0 0 100%; text-align: center; }
  .footer [data-i18n="footer.built"] { display: none; }

  .cv-link { grid-template-columns: 1fr auto; gap: 6px 16px; }
  .cv-link__label { grid-column: 1 / -1; }
  .cv-page { padding-top: 112px; }
  .cv-title { font-size: clamp(26px, 9.5vw, 56px); overflow-wrap: anywhere; }
  .cv-actions { gap: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .header__menu, .nav a, .social, .lang, .menu-toggle span { transition: none !important; }
  html { scroll-behavior: auto; }
  .line__inner { animation: none; transform: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .timeline__item--current .timeline__period::before { animation: none; }
}

@media print {
  /* marge 0 = le navigateur n'imprime plus sa date / son titre / son adresse en haut et en bas */
  @page { size: A4; margin: 0; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  html, body { background: #fff; }
  body { font-size: 10pt; }
  .header, .footer, .skip-link, .cv-page > .eyebrow, .cv-title, .cv-lead, .cv-actions, .cv-hint { display: none !important; }
  .cv-page { padding: 0; min-height: 0; }

  /* Mise en page compacte : le CV tient sur une seule page A4 */
  .cv-sheet { margin: 0; padding: 10mm 12mm 12mm; border: 0; background: #fff; }
  .cv-doc__photo { width: 22mm; height: 22mm; }
  .cv-doc__head { flex-direction: row; align-items: center; gap: 6mm; padding-bottom: 4mm; }
  .cv-doc__name { font-size: 26pt; }
  .cv-doc__grid { grid-template-columns: 60mm 1fr; gap: 8mm; padding-top: 4.5mm; }
  .cv-sec + .cv-sec { margin-top: 3.6mm; }
  .cv-sec__title { margin-bottom: 2.2mm; padding-bottom: 1.4mm; }
  .cv-job + .cv-job { margin-top: 3mm; padding-top: 3mm; }
  .cv-job, .cv-list li { break-inside: avoid; }
  .cv-profile, .cv-job__bullets li, .cv-contact li, .cv-list li { font-size: 9pt; line-height: 1.42; }
  .cv-contact li + li { margin-top: 2px; }
  .cv-contact a { border-bottom: 0; }
  .cv-k { font-size: 7.5px; line-height: 1.2; }
  .cv-list li + li { margin-top: 2.6mm; }
  .cv-list--skills li + li { margin-top: 1.8mm; }
  .cv-list--skills strong, .cv-list--skills span { display: inline; }
  .cv-list--skills strong::after { content: " : "; font-weight: 400; }
  .cv-job__role { font-size: 11.5pt; }
  .cv-job__org { font-size: 9.5pt; margin-top: 0; }
  .cv-job__period { font-size: 7.5pt; margin-top: 0; }
  .cv-job__bullets { margin-top: 1.8mm; }
  .cv-job__bullets li + li { margin-top: 1mm; }

  /* pied de page : lien du CV à gauche, date à droite */
  .cv-print-foot {
    display: flex;
    justify-content: space-between;
    gap: 8mm;
    position: fixed;
    left: 12mm;
    right: 12mm;
    bottom: 7mm;
    font-size: 8pt;
    color: #555;
  }
}

/* Téléphone, page de téléchargement : « View on GitHub » centré sous le bouton de téléchargement */
@media (max-width: 720px) {
  .dl-item__repo { align-self: center; }
  /* boutons de même largeur (Windows / Linux) : le lien reste bien centré sous les deux */
  .dl-item__buttons { flex-direction: column; align-items: stretch; }
}

/* Accueil : disponibilité, juste sous le titre */
.hero__status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: clamp(16px, 1.8vw, 24px);
  padding: 8px 18px 8px 14px;
  border: 1px solid rgba(11, 11, 11, 0.28);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  color: #0b0b0b;
}
.hero__status-dot {
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #0b0b0b;
}
@media (max-width: 820px) {
  .hero__status { font-size: 12.5px; padding: 7px 14px 7px 12px; }
}

/* Point de disponibilité : clignotement doux avec une onde (désactivé si le visiteur réduit les animations) */
.hero__status-dot { animation: status-blink 1.7s ease-in-out infinite; }
@keyframes status-blink {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(11, 11, 11, 0.4); }
  50% { opacity: 0.25; box-shadow: 0 0 0 7px rgba(11, 11, 11, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .hero__status-dot { animation: none; }
}
