/* Mise en page : celle du CV InDesign (A4, Times New Roman). Photo en haut à gauche, nom en haut à droite,
   un filet horizontal, puis une colonne étroite à gauche et le parcours à droite, séparés par un filet vertical.
   Clair ou sombre selon le réglage de l'appareil, sans bouton : Antoine ne veut pas laisser le choix au lecteur (02/12/2026).
   Le sombre inverse seulement l'encre et le papier : toujours aucune couleur. */
:root {
  --paper: #FFFFFF;
  --ink: #111111;
  --grey: #575755;
  --serif: "Times New Roman", Times, serif;
  --datecol: 7.6rem;
  color-scheme: light;
}
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; }
img { max-width: 100%; height: auto; }
[hidden] { display: none !important; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --paper: #141414; --ink: #E8E6E1; --grey: #9C9B97; color-scheme: dark; }
}
:root[data-theme="dark"] { --paper: #141414; --ink: #E8E6E1; --grey: #9C9B97; color-scheme: dark; }
html { background: var(--paper); }
* { box-sizing: border-box; }
body { background: var(--paper); color: var(--ink); font-family: var(--serif); font-size: 1.125rem; line-height: 1.34; }
h1, h2, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: .15em; text-decoration-thickness: 1px; }
:focus-visible { outline: 1px solid var(--ink); outline-offset: 3px; }
summary { list-style: none; cursor: pointer; }
summary::-webkit-details-marker { display: none; }
i { font-style: italic; }
.g { color: var(--grey); }

.sheet {
  max-width: 58rem; margin-inline: auto; padding-block: clamp(1rem, 4vw, 3rem);
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.in { border: 1px solid var(--ink); padding: clamp(1.25rem, 6vw, 4rem) clamp(1rem, 6vw, 4rem); }

/* En-tête : photo à gauche, nom à droite, filet dessous */
.top { display: flex; justify-content: space-between; align-items: flex-start; gap: 1.25rem; padding-bottom: 1.4rem; border-bottom: 1px solid var(--ink); }
.photo { width: 10.2rem; aspect-ratio: 1; display: block; flex: none; }
.id { text-align: right; padding-top: 1.4rem; padding-right: 2.1rem; min-width: 0; }
h1 { font-size: 2.35rem; line-height: 1.15; font-weight: 400; }
h1 b { font-weight: 700; }
.id p { font-size: 1.18rem; text-wrap: balance; }

/* Corps : colonne de gauche, filet vertical, parcours */
.body { display: grid; grid-template-columns: 34% minmax(0, 1fr); grid-template-rows: auto 1fr; grid-template-areas: "a main" "b main"; margin-top: 2.7rem; }
.left-a { grid-area: a; padding-right: 1rem; display: flex; flex-direction: column; gap: 1.25rem; padding-bottom: 2.2rem; }
.left-b { grid-area: b; padding-right: 1rem; display: flex; flex-direction: column; gap: 2.2rem; }
.main { grid-area: main; border-left: 1px solid var(--ink); padding-left: 1.7rem; display: flex; flex-direction: column; gap: 2.2rem; min-width: 0; }
h2 { font-size: 1.27rem; font-weight: 700; line-height: 1.25; padding-bottom: .55rem; }
.main h2 { margin-left: var(--datecol); }
.nav { display: flex; justify-content: flex-end; gap: 1.25rem; margin-top: -2rem; margin-bottom: .75rem; }
.nav a[aria-current="page"] { font-weight: 700; }
.lines { display: flex; flex-direction: column; gap: 1.25rem; }
.block { display: flex; flex-direction: column; gap: 1.25rem; }

/* Une entrée : dates à gauche, texte à droite */
.entries { display: flex; flex-direction: column; gap: 1.25rem; }
.entry { display: grid; grid-template-columns: var(--datecol) minmax(0, 1fr); }
.entry > .date { grid-column: 1; }
.entry > .what { grid-column: 2; display: flex; flex-direction: column; min-width: 0; }
.what b { font-weight: 700; }
.what .gap { height: 1.25rem; }

/* Un point : la ligne du CV, qui s'ouvre */
.pt { position: relative; margin-top: .22rem; }
.what > .pt:first-child { margin-top: 0; }
.grp ul { display: block; }
.grp li { position: relative; padding-left: .95rem; }
.grp li::before { content: "–"; position: absolute; left: 0; }
.pt > summary::before { content: "+"; position: absolute; left: -.85rem; color: var(--grey); font-size: .9em; }
.pt[open] > summary::before { content: "–"; }
/* Une ligne qui ne s’ouvre pas porte un tiret, comme dans la colonne de gauche : sans repère, elle semblait prolonger la ligne d’au-dessus. */
p.pt::before { content: "–"; position: absolute; left: -.85rem; color: var(--grey); font-size: .9em; }
.pt > summary:hover i, .pt > summary:hover b { text-decoration: underline; text-underline-offset: .15em; text-decoration-thickness: 1px; }
.left-a .pt > summary::before, .left-b .pt > summary::before { position: static; margin-right: .3rem; }
.grp li:has(> .pt)::before { content: none; }
.grp li > .pt { margin-top: 0; }
.grp li > .pt > summary::before { position: absolute; left: -.95rem; margin: 0; }
.grp .more { color: var(--ink); }
.more { margin-block: .35rem .6rem; padding-left: .8rem; border-left: 1px solid var(--ink); display: flex; flex-direction: column; gap: .3rem; }
.more a { text-decoration: underline; text-underline-offset: .15em; text-decoration-thickness: 1px; }
.todo { color: var(--grey); font-style: italic; }
.more video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; background: var(--ink); margin-block: .2rem .1rem; }
.hint { color: var(--grey); font-style: italic; margin-left: var(--datecol); }
.contact > span { display: block; }
.contact .sep::before { content: " - "; }
.foot { margin-top: 3rem; color: var(--grey); font-size: .95rem; }

/* Deux en-têtes seulement, le grand et celui du téléphone (Antoine, 02/12/2026) :
   en dessous de 1 000 px, le texte se rapproche de la photo avant de basculer. */
@media (max-width: 1000px) {
  .id { padding-right: 0; }
}
@media (max-width: 860px) {
  .nav { margin-top: 0; }
  .body { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto; grid-template-areas: "a" "main" "b"; margin-top: 1.5rem; }
  .left-a, .left-b { padding-right: 0; }
  .left-a { padding-bottom: 1.1rem; margin-bottom: 1.6rem; border-bottom: 1px solid var(--ink); }
  .contact { text-align: center; }
  .contact > span { display: inline; }
  .contact > span:nth-child(2)::before, .contact .sep::before { content: " · "; }
  .contact .reseaux { display: block; }
  .main { border-left: 0; padding-left: 0; padding-bottom: 2.2rem; }
  .left-b { border-top: 1px solid var(--ink); padding-top: 2.2rem; }
  .main h2, .hint { margin-left: 0; }
  .entry { grid-template-columns: minmax(0, 1fr); }
  .entry > .date, .entry > .what { grid-column: 1; }
  .what { padding-left: .95rem; }
  .entry > .date:empty { display: none; }
}
/* La page du blog se lit sans la colonne de gauche, à toutes les largeurs (Antoine, 02/12/2026). */
.vue-blog .left-a, .vue-blog .left-b { display: none; }
.vue-blog .body { grid-template-columns: minmax(0, 1fr); grid-template-areas: "main"; }
.vue-blog .main { border-left: 0; padding-left: 0; padding-bottom: 0; }
/* Entre téléphone large et petite fenêtre : le contact tient sur une ligne. */
@media (min-width: 520px) and (max-width: 860px) {
  .contact .reseaux { display: inline; }
  .contact .reseaux::before { content: " · "; }
}
/* Étroit : photo, nom et sous-titre empilés et centrés, comme une carte de visite ;
   à côté de la photo, le texte s'effilochait ou laissait un vide (retours d'Antoine, 02/12/2026).
   Le seuil (860 px) est celui où le sous-titre en grand ne tient plus à côté de la photo, Safari compris ;
   le corps passe en une colonne au même seuil. */
@media (max-width: 860px) {
  .top { flex-direction: column; align-items: center; text-align: center; gap: 1rem; }
  .photo { width: clamp(7rem, 30vw, 9rem); }
  .id { text-align: center; padding: 0; }
  h1 { font-size: 1.7rem; }
  .id p { font-size: 1rem; text-wrap: balance; }
}

/* Pages intérieures : même cadre, même typographie, une seule colonne */
.small-top { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding-bottom: 1rem; border-bottom: 1px solid var(--ink); }
.small-top .nav { margin: 0; }
.name { font-size: 1.35rem; }
.name b { font-weight: 700; }
.page { max-width: 38rem; margin-top: 2.4rem; display: flex; flex-direction: column; gap: .8rem; }
.page h1 { font-size: 1.75rem; line-height: 1.2; font-weight: 400; }
.page .kicker { color: var(--grey); }
.page h2 { margin-top: 1.2rem; padding-bottom: 0; font-size: 1.15rem; }
.page h2 i { font-weight: 400; }
.page p a, .more a, .foot a { text-decoration: underline; text-underline-offset: .15em; text-decoration-thickness: 1px; }
.page .lede { color: var(--grey); }
.page .back { margin-top: 1.6rem; }
.dedie { margin-top: .2rem; }
.posts { display: flex; flex-direction: column; gap: 1.25rem; }
