@charset "UTF-8";
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@600;700&family=Source+Sans+3:wght@400;600;700&display=swap');

/* ============================================================
   ecriVOSGES — Vies parallèles
   Complément autonome à basiclayout.css — 27/08/2026
   ============================================================ */

.vp-page {
  --vp-bordeaux: #7a1512;
  --vp-bordeaux-fonce: #55100e;
  --vp-olive: #77833d;
  --vp-olive-fonce: #586228;
  --vp-or: #b68a36;
  --vp-papier: #fffdf8;
  --vp-creme: #f5efe3;
  --vp-encre: #302d2a;
  --vp-muted: #6d665f;
  --vp-ligne: #ded4c5;
  width: auto !important;
  margin: 0 !important;
  padding: 0 34px 44px;
  color: var(--vp-encre);
  font-family: "Source Sans 3", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

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

.vp-page .container { max-width: 100%; }
.vp-page [hidden] { display: none !important; }

.vp-page h1,
.vp-page h2,
.vp-page h3,
.vp-page h4 {
  float: none;
  width: auto;
  height: auto;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--vp-encre);
  font-family: "Cormorant Garamond", Georgia, serif;
  line-height: 1.08;
  text-transform: none;
}

.vp-page h1::first-letter,
.vp-page h2::first-letter,
.vp-page h3::first-letter,
.vp-page h4::first-letter {
  color: inherit;
  font-size: inherit;
  line-height: inherit;
}

.vp-page h1::after,
.vp-page h2::after,
.vp-page h3::after,
.vp-page h4::after { display: none; content: none; }

.vp-page a { color: var(--vp-bordeaux); }
.vp-page button,
.vp-page input { font: inherit; }
.vp-page button { cursor: pointer; }

.vp-page a:focus-visible,
.vp-page button:focus-visible,
.vp-page input:focus-visible,
.vp-page [tabindex]:focus-visible {
  outline: 3px solid #b8d64b;
  outline-offset: 3px;
}

.vp-retour {
  padding: 16px 0 8px;
  font-size: 0.9rem;
}

.vp-retour a { font-weight: 600; }

.vp-surtitre,
.vp-mini-titre,
.vp-personne-repere {
  margin: 0 0 6px;
  color: var(--vp-bordeaux);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* En-tête */
.vp-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px;
  gap: 34px;
  align-items: center;
  min-height: 250px;
  margin: 4px 0 22px;
  overflow: hidden;
  padding: 34px 36px;
  border: 1px solid #d5c4a6;
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(122, 21, 18, 0.035) 1px, transparent 1px),
    linear-gradient(135deg, #fffaf0 0%, #eee2ca 100%);
  background-size: 42px 100%, auto;
}

.vp-hero::before,
.vp-hero::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 5px;
}

.vp-hero::before { left: 0; background: var(--vp-bordeaux); }
.vp-hero::after { right: 0; background: var(--vp-olive); }

.vp-hero h1 {
  margin: 0 0 11px;
  color: #2d2925;
  font-size: clamp(3rem, 7vw, 5.1rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 0.88;
}

.vp-chapo {
  max-width: 690px;
  margin: 0;
  color: #544c43;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.28rem;
  line-height: 1.38;
}

.vp-hero-signe {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 58px minmax(30px, 1fr) 58px;
  align-items: center;
  margin: 0;
}

.vp-hero-signe span {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border-radius: 50%;
  background: var(--vp-bordeaux);
  color: #fff;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 2rem;
  font-weight: 700;
  box-shadow: 0 7px 20px rgba(67, 39, 27, 0.14);
}

.vp-hero-signe span:last-child { background: var(--vp-olive); }
.vp-hero-signe i { height: 2px; background: linear-gradient(90deg, var(--vp-bordeaux), var(--vp-or), var(--vp-olive)); }

/* Choix des personnes */
.vp-choix {
  position: relative;
  z-index: 8;
  margin-bottom: 22px;
  padding: 21px 22px;
  border: 1px solid var(--vp-ligne);
  border-radius: 7px;
  background: #fff;
  box-shadow: 0 5px 20px rgba(61, 47, 32, 0.08);
}

.vp-choix-tete,
.vp-section-tete,
.vp-actions {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.vp-choix-tete { margin-bottom: 17px; }
.vp-choix-tete p:not(.vp-mini-titre) { margin: 0; color: var(--vp-muted); font-size: 0.88rem; }
.vp-choix-tete > a { flex: 0 0 auto; font-size: 0.88rem; font-weight: 700; }

.vp-selecteurs {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 46px minmax(0, 1fr);
  gap: 13px;
  align-items: end;
}

.vp-recherche-personne { position: relative; }
.vp-recherche-personne label {
  display: block;
  margin-bottom: 6px;
  color: #4a4540;
  font-size: 0.82rem;
  font-weight: 700;
}

.vp-recherche-personne input[type="search"] {
  width: 100%;
  min-height: 47px;
  padding: 10px 12px;
  border: 1px solid #a99d8d;
  border-radius: 4px;
  background: var(--vp-papier);
  color: var(--vp-encre);
  font-size: 0.95rem;
}

.vp-recherche-personne[data-choix="a"] input[type="search"] { border-left: 5px solid var(--vp-bordeaux); }
.vp-recherche-personne[data-choix="b"] input[type="search"] { border-left: 5px solid var(--vp-olive); }

.vp-inverser {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid #b9ad9e;
  border-radius: 50%;
  background: #f8f3e9;
  color: var(--vp-bordeaux);
  font-size: 1.35rem;
}

.vp-inverser:hover { background: #ede3d2; }

.vp-suggestions {
  position: absolute;
  z-index: 40;
  top: calc(100% + 4px);
  right: 0;
  left: 0;
  max-height: 310px;
  overflow-y: auto;
  border: 1px solid #b9ad9e;
  border-top: 3px solid var(--vp-bordeaux);
  background: #fff;
  box-shadow: 0 14px 34px rgba(44, 34, 25, 0.18);
}

.vp-recherche-personne[data-choix="b"] .vp-suggestions { border-top-color: var(--vp-olive); }

.vp-suggestions button,
.vp-suggestions p {
  display: block;
  width: 100%;
  margin: 0;
  padding: 10px 12px;
  border: 0;
  border-bottom: 1px solid #eee7dc;
  background: #fff;
  color: #37322e;
  font-size: 0.88rem;
  line-height: 1.3;
  text-align: left;
}

.vp-suggestions button:hover,
.vp-suggestions button.is-active { background: #f3eadc; color: var(--vp-bordeaux); }
.vp-suggestions button:last-child { border-bottom: 0; }
.vp-suggestions p { color: var(--vp-muted); font-style: italic; }

.vp-actions {
  justify-content: flex-start;
  margin-top: 16px;
  padding-top: 15px;
  border-top: 1px solid #eee7dc;
}

.vp-actions button {
  min-height: 43px;
  padding: 9px 15px;
  border-radius: 4px;
  font-weight: 700;
}

.vp-comparer {
  border: 1px solid var(--vp-bordeaux);
  background: var(--vp-bordeaux);
  color: #fff;
}

.vp-comparer:hover { background: var(--vp-bordeaux-fonce); }

.vp-contemporain {
  border: 1px solid var(--vp-olive-fonce);
  background: #fff;
  color: var(--vp-olive-fonce);
}

.vp-contemporain:hover { background: #edf0df; }

.vp-erreur {
  margin: 12px 0 0;
  color: #9a1712;
  font-size: 0.88rem;
  font-weight: 700;
}

/* Les deux portraits */
.vp-duo {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 22px;
}

.vp-personne {
  display: grid;
  grid-template-columns: 145px minmax(0, 1fr);
  min-height: 245px;
  overflow: hidden;
  border: 1px solid var(--vp-ligne);
  border-top: 5px solid var(--vp-bordeaux);
  border-radius: 6px;
  background: #fff;
}

.vp-personne-olive { border-top-color: var(--vp-olive); background: #fbfcf5; }

.vp-personne-portrait {
  display: grid;
  min-height: 100%;
  place-items: center;
  overflow: hidden;
  background: #ded3c3;
}

.vp-personne-portrait img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 245px;
  object-fit: cover;
  object-position: center top;
}

.vp-personne-portrait > span {
  color: #fff;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 4rem;
  font-weight: 700;
}

.vp-personne-bordeaux .vp-personne-portrait { background: #8d3a37; }
.vp-personne-olive .vp-personne-portrait { background: #858f51; }

.vp-personne-texte { padding: 21px 20px; }
.vp-personne-olive .vp-personne-repere { color: var(--vp-olive-fonce); }

.vp-personne h2 { margin-bottom: 3px; font-size: 1.85rem; }
.vp-personne h2 a { color: var(--vp-encre); text-decoration: none; }
.vp-personne h2 a:hover { color: var(--vp-bordeaux); }

.vp-personne-dates {
  margin: 0 0 10px;
  color: var(--vp-bordeaux);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.18rem;
  font-weight: 700;
}

.vp-personne-olive .vp-personne-dates { color: var(--vp-olive-fonce); }
.vp-personne-metiers { margin: 0 0 13px; color: #554f49; font-size: 0.88rem; font-weight: 600; }

.vp-personne-lieux { margin: 0; font-size: 0.83rem; }
.vp-personne-lieux div { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 8px; padding: 4px 0; border-top: 1px solid #eee8de; }
.vp-personne-lieux dt { color: var(--vp-muted); font-weight: 600; }
.vp-personne-lieux dd { margin: 0; }

/* Constats */
.vp-lecture,
.vp-chronologie,
.vp-documents {
  margin-bottom: 22px;
  padding: 23px;
  border: 1px solid var(--vp-ligne);
  border-radius: 7px;
  background: #fff;
}

.vp-section-tete { align-items: flex-end; margin-bottom: 18px; }
.vp-section-tete h2 { font-size: clamp(1.7rem, 3vw, 2.35rem); }
.vp-section-tete > a,
.vp-section-tete > p { margin: 0; color: var(--vp-muted); font-size: 0.84rem; }
.vp-section-tete > a { font-weight: 700; }

.vp-constats {
  display: grid;
  grid-template-columns: 1.3fr repeat(3, 1fr);
  gap: 1px;
  overflow: hidden;
  border: 1px solid #ddcfb8;
  border-radius: 5px;
  background: #ddcfb8;
}

.vp-constat {
  display: flex;
  min-height: 145px;
  flex-direction: column;
  justify-content: center;
  padding: 17px;
  background: #fbf7ef;
  text-align: center;
}

.vp-constat-principal { background: var(--vp-bordeaux); color: #fff; }
.vp-constat strong { color: var(--vp-bordeaux); font-family: "Cormorant Garamond", Georgia, serif; font-size: 2.65rem; line-height: 0.9; }
.vp-constat-principal strong { color: #fff; font-size: 3.2rem; }
.vp-constat span { margin-top: 9px; font-size: 0.85rem; font-weight: 700; line-height: 1.25; }
.vp-constat small { margin-top: 8px; color: #72685e; font-size: 0.73rem; line-height: 1.3; }
.vp-constat-principal small { color: #f2d9d5; }

/* Axe chronologique */
.vp-chronologie { overflow: hidden; }

.vp-defilement {
  overflow-x: auto;
  padding: 4px 0 10px;
  scrollbar-color: var(--vp-bordeaux) #e8dfd1;
}

.vp-axe {
  position: relative;
  min-width: 810px;
  padding: 104px 0 4px;
}

.vp-reperes-historiques {
  position: absolute;
  top: 0;
  right: 0;
  left: 205px;
  height: 82px;
}

.vp-reperes-historiques > span {
  position: absolute;
  top: 0;
  width: 1px;
  height: 82px;
  border-left: 1px dashed #c9bda9;
}

.vp-reperes-historiques i { position: absolute; top: 0; left: -3px; width: 7px; height: 7px; border-radius: 50%; background: var(--vp-or); }
.vp-reperes-historiques b { position: absolute; top: 8px; left: 6px; color: #745318; font-size: 0.73rem; }
.vp-reperes-historiques em { position: absolute; top: 27px; left: 6px; width: 110px; color: #786f64; font-size: 0.66rem; font-style: normal; line-height: 1.15; }

.vp-graduations {
  position: relative;
  height: 29px;
  margin-left: 205px;
  border-top: 1px solid #9f9587;
}

.vp-graduations span {
  position: absolute;
  top: 0;
  color: #6e675f;
  font-size: 0.72rem;
  transform: translateX(-50%);
}

.vp-graduations i { display: block; width: 1px; height: 7px; margin: 0 auto 3px; background: #9f9587; }

.vp-zone-couche {
  position: absolute;
  z-index: 0;
  top: 102px;
  right: 0;
  bottom: 2px;
  left: 205px;
  pointer-events: none;
}

.vp-zone-commune {
  position: absolute;
  top: 0;
  bottom: 0;
  background: rgba(182, 138, 54, 0.16);
  border-right: 1px solid rgba(182, 138, 54, 0.42);
  border-left: 1px solid rgba(182, 138, 54, 0.42);
}

.vp-zone-commune span {
  position: absolute;
  top: 5px;
  left: 50%;
  color: #80601f;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  white-space: nowrap;
  text-transform: uppercase;
  transform: translateX(-50%);
}

.vp-ligne-vie {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 15px;
  align-items: center;
  min-height: 92px;
  border-top: 1px solid #eee7dc;
}

.vp-ligne-vie:last-child { border-bottom: 1px solid #eee7dc; }
.vp-ligne-nom { padding: 12px 0; }
.vp-ligne-nom a { display: block; color: var(--vp-encre); font-family: "Cormorant Garamond", Georgia, serif; font-size: 1.06rem; font-weight: 700; line-height: 1.1; }
.vp-ligne-nom span { display: block; margin-top: 3px; color: var(--vp-muted); font-size: 0.76rem; }

.vp-piste { position: relative; height: 66px; }
.vp-grille { position: absolute; top: 0; bottom: 0; width: 1px; background: #eee8df; }

.vp-barre {
  position: absolute;
  top: 29px;
  height: 10px;
  border-radius: 8px;
  background: var(--vp-bordeaux);
  box-shadow: 0 3px 7px rgba(75, 33, 27, 0.18);
}

.vp-ligne-olive .vp-barre { background: var(--vp-olive); }

.vp-naissance,
.vp-deces {
  position: absolute;
  z-index: 2;
  top: 25px;
  width: 18px;
  height: 18px;
  border: 4px solid #fff;
  border-radius: 50%;
  background: var(--vp-bordeaux);
  box-shadow: 0 0 0 1px var(--vp-bordeaux);
  transform: translateX(-50%);
}

.vp-ligne-olive .vp-naissance,
.vp-ligne-olive .vp-deces { background: var(--vp-olive); box-shadow: 0 0 0 1px var(--vp-olive); }
.vp-deces { width: 14px; height: 14px; top: 27px; background: #fff; }
.vp-ligne-olive .vp-deces { background: #fff; }

.vp-marque-oeuvre {
  position: absolute;
  z-index: 4;
  top: 8px;
  width: 8px;
  height: 8px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--vp-bordeaux);
  box-shadow: 0 0 0 1px rgba(122, 21, 18, 0.55);
  transform: translateX(-50%);
}

.vp-ligne-olive .vp-marque-oeuvre { background: var(--vp-olive); box-shadow: 0 0 0 1px rgba(88, 98, 40, 0.6); }
.vp-marque-oeuvre:hover { width: 12px; height: 12px; }

.vp-legende {
  display: flex;
  flex-wrap: wrap;
  gap: 9px 22px;
  margin-top: 14px;
  color: #6c655e;
  font-size: 0.76rem;
}

.vp-legende span { display: flex; align-items: center; gap: 7px; }
.vp-legende i { display: inline-block; width: 24px; height: 7px; border-radius: 6px; }
.vp-legende-a { background: var(--vp-bordeaux); }
.vp-legende-b { background: var(--vp-olive); }
.vp-legende-oeuvre { width: 8px !important; height: 8px !important; border-radius: 50% !important; background: var(--vp-or); }
.vp-legende-commun { border: 1px solid rgba(182, 138, 54, 0.5); background: rgba(182, 138, 54, 0.18); }

/* Documents des deux parcours */
.vp-documents-grille {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.vp-parcours {
  padding: 20px;
  border: 1px solid var(--vp-ligne);
  border-top: 5px solid var(--vp-bordeaux);
  border-radius: 5px;
  background: #fffdf9;
}

.vp-parcours-olive { border-top-color: var(--vp-olive); background: #fbfcf5; }
.vp-parcours h3 { margin-bottom: 18px; font-size: 1.65rem; }
.vp-parcours h3 a { color: var(--vp-encre); }
.vp-parcours h4 { margin: 19px 0 9px; color: var(--vp-bordeaux); font-family: "Source Sans 3", sans-serif; font-size: 0.76rem; letter-spacing: 0.09em; text-transform: uppercase; }
.vp-parcours-olive h4 { color: var(--vp-olive-fonce); }

.vp-reperes-liste,
.vp-oeuvres-liste { margin: 0; padding: 0; list-style: none; }

.vp-reperes-liste li,
.vp-oeuvres-liste li {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 12px;
  padding: 9px 0;
  border-top: 1px solid #e9e1d5;
  font-size: 0.85rem;
  line-height: 1.42;
}

.vp-reperes-liste time,
.vp-oeuvres-liste time { color: var(--vp-bordeaux); font-weight: 700; }
.vp-parcours-olive time { color: var(--vp-olive-fonce); }
.vp-oeuvres-liste span { font-family: "Cormorant Garamond", Georgia, serif; font-size: 1rem; font-weight: 600; }

.vp-selection-note { margin: 9px 0 0; color: var(--vp-muted); font-size: 0.75rem; font-style: italic; }
.vp-fiche-lien { display: inline-block; margin-top: 20px; font-size: 0.86rem; font-weight: 700; }

.vp-note {
  padding: 18px 21px;
  border-left: 4px solid var(--vp-or);
  background: var(--vp-creme);
}

.vp-note p:last-child { margin: 0; color: #5c554e; font-size: 0.88rem; line-height: 1.5; }

/* Tablettes */
@media (max-width: 900px) {
  .vp-hero { grid-template-columns: 1fr; }
  .vp-hero-signe { width: 180px; }
  .vp-duo,
  .vp-documents-grille { grid-template-columns: 1fr; }
  .vp-constats { grid-template-columns: repeat(2, 1fr); }
  .vp-personne { grid-template-columns: 175px minmax(0, 1fr); }
}

/* Téléphones */
@media (max-width: 650px) {
  .vp-page { padding: 0 15px 34px; font-size: 15.8px; }
  .vp-hero { min-height: 0; padding: 27px 22px; }
  .vp-hero h1 { font-size: clamp(2.9rem, 16vw, 4.25rem); }
  .vp-chapo { font-size: 1.12rem; }
  .vp-hero-signe { width: 145px; grid-template-columns: 48px minmax(25px, 1fr) 48px; }
  .vp-hero-signe span { width: 48px; height: 48px; }

  .vp-choix,
  .vp-lecture,
  .vp-chronologie,
  .vp-documents { padding: 18px 16px; }

  .vp-choix-tete,
  .vp-section-tete,
  .vp-actions { display: grid; }

  .vp-selecteurs { grid-template-columns: 1fr; }
  .vp-inverser { justify-self: center; transform: rotate(90deg); }
  .vp-actions button { width: 100%; }

  .vp-personne { grid-template-columns: 112px minmax(0, 1fr); min-height: 235px; }
  .vp-personne-portrait img { min-height: 235px; }
  .vp-personne-texte { padding: 17px 15px; }
  .vp-personne h2 { font-size: 1.45rem; }
  .vp-personne-metiers { font-size: 0.8rem; }
  .vp-personne-lieux div { grid-template-columns: 1fr; gap: 0; }

  .vp-constats { grid-template-columns: 1fr; }
  .vp-constat { min-height: 120px; }
  .vp-section-tete > p { max-width: none; }
  .vp-axe { min-width: 740px; }
}

@media (max-width: 430px) {
  .vp-personne { grid-template-columns: 1fr; }
  .vp-personne-portrait { height: 250px; }
  .vp-personne-portrait img { height: 250px; min-height: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .vp-page * { scroll-behavior: auto !important; }
}

@media print {
  .vp-choix,
  .vp-retour,
  .vp-hero-signe { display: none !important; }
  .vp-page { padding: 0; }
  .vp-hero { min-height: 0; padding: 14mm 0 8mm; border: 0; background: #fff; }
  .vp-lecture,
  .vp-chronologie,
  .vp-documents { break-inside: avoid; border-color: #bbb; }
  .vp-defilement { overflow: visible; }
  .vp-axe { min-width: 0; }
}
