/* Accueil : histoire redessinée et sections reprises de la V8. */
.hunawe-homepage .kicker.clair,
.hunawe-homepage .carnet-kicker {
  background: transparent;
  box-shadow: none;
}
.hunawe-homepage .carte-newsletter .carnet-kicker { color: var(--eau-2); }
.histoire-accueil { overflow: hidden; }
.histoire-accueil-entete {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: end;
  gap: 40px;
  margin-bottom: 44px;
}
.histoire-accueil-entete h2 { margin: 12px 0 0; }
.histoire-accueil-entete > p {
  max-width: 48ch;
  margin: 0 0 5px;
  color: rgba(251,250,246,.76);
  font-size: clamp(17px,1.5vw,21px);
  line-height: 1.7;
}
.histoire-carnet {
  position: relative;
  border-radius: 4px 16px 16px 4px;
  background: var(--papier);
  color: var(--encre);
  box-shadow: 0 24px 70px rgba(0,0,0,.18);
  border-left: 5px solid var(--eau-2);
}
.histoire-carnet-meta {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 24px;
  padding: 22px 32px;
  border-bottom: 1px solid rgba(20,36,43,.14);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #49616b;
}
.histoire-chapitres {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  list-style: none;
  padding: 0;
  margin: 0;
}
.histoire-chapitres li { min-width: 0; padding: 36px 32px 32px; }
.histoire-chapitres li + li { border-left: 1px solid rgba(20,36,43,.14); }
.histoire-repere { color: #466c80; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; }
#histoire .histoire-carnet .histoire-chapitres h3 { color: #14242b; font-size: clamp(25px,2.5vw,36px); line-height: 1.13; margin: 22px 0 18px; }
.histoire-chapitres p { color: #415159; font-size: 15px; line-height: 1.75; margin: 0; }
.histoire-annotation { display: block; margin-top: 24px; font-family: var(--main); color: #925733; font-size: 23px; line-height: 1.2; }
.histoire-parole { margin: 0; padding: 28px 40px; border-top: 1px solid rgba(20,36,43,.14); text-align: center; font-family: var(--serif); font-size: clamp(19px,2vw,26px); line-height: 1.5; color: var(--encre); }
.histoire-parole cite { display: block; margin-top: 12px; color: #49616b; font-family: var(--sans); font-style: normal; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; }
.histoire-cap { display: grid; grid-template-columns: .85fr 1.4fr; gap: 50px; align-items: center; padding: 48px 0 36px; }
.histoire-cap h3 { color: var(--papier); font-size: clamp(25px,2.7vw,36px); line-height: 1.13; margin: 14px 0 20px; }
.histoire-lien { color: var(--eau-2); font-size: 13px; text-underline-offset: 5px; }
.histoire-lien:hover { color: var(--papier); }
.histoire-parcours { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); list-style: none; margin: 0; padding: 0; }
.histoire-parcours li { position: relative; min-width: 0; padding: 36px 24px 0 0; }
.histoire-parcours li:first-child::after { content: ''; position: absolute; left: 15px; right: 0; top: 8px; border-top: 2px dashed rgba(142,184,206,.65); }
.histoire-parcours li:first-child::before { content: ''; position: absolute; top: 5px; right: 12px; width: 8px; height: 8px; border-top: 2px solid var(--eau-2); border-right: 2px solid var(--eau-2); transform: rotate(45deg); }
.histoire-jalon { position: absolute; top: 0; left: 0; width: 18px; height: 18px; border: 2px solid var(--eau-2); border-radius: 50%; background: var(--nuit); }
.histoire-etape-presente .histoire-jalon { background: var(--eau-2); box-shadow: 0 0 0 5px rgba(142,184,206,.12); }
.histoire-etape-temps { display: block; margin-bottom: 8px; color: var(--eau-2); font-size: 10px; text-transform: uppercase; font-weight: 700; letter-spacing: .09em; }
.histoire-parcours strong { display: block; color: var(--papier); font-family: var(--serif); font-size: 26px; line-height: 1.2; font-weight: 500; }
.histoire-parcours p { max-width: 26ch; margin: 12px 0 0; color: rgba(251,250,246,.72); font-size: 14px; line-height: 1.6; }
.histoire-suite { margin-top: 10px; }
.histoire-chemin-fer { position: relative; padding: 0 20px 24px; }
.histoire-rails-panorama { display: block; width: 100%; height: auto; }
.histoire-train-mobile { display: none; }
.histoire-rail-note { display: block; margin: -20px 24px 0; text-align: right; color: #925733; font-family: var(--main); font-size: 24px; }
/* Two rails and sleepers continue the same visual language toward the cooperative. */
.histoire-parcours li:first-child::after {
  top: 3px;
  height: 12px;
  border-top: 1px solid var(--eau-2);
  border-bottom: 1px solid var(--eau-2);
  background: repeating-linear-gradient(90deg,transparent 0 10px,rgba(142,184,206,.65) 10px 12px);
}
@media(max-width:900px) {
  .histoire-accueil-entete, .histoire-cap { grid-template-columns: 1fr; gap: 26px; }
  .histoire-chapitres li { padding: 28px 20px; }
  .histoire-parcours { max-width: 650px; }
}
@media(max-width:620px) {
  .histoire-accueil-entete { margin-bottom: 30px; }
  .histoire-chapitres { grid-template-columns: 1fr; }
  .histoire-chapitres li { padding: 28px 24px; }
  .histoire-chapitres li + li { border-left: 0; border-top: 1px solid rgba(20,36,43,.14); }
  .histoire-chapitres h3 br { display: none; }
  #histoire .histoire-carnet .histoire-chapitres h3 { margin-top: 14px; }
  .histoire-carnet-meta { padding: 20px 24px; }
  .histoire-parole { padding: 26px 24px; text-align: left; }
  .histoire-parcours { grid-template-columns: 1fr; }
  .histoire-parcours li { padding: 0 0 30px 34px; }
  .histoire-parcours li:last-child { padding-bottom: 0; }
  .histoire-parcours li:first-child::after { left: 3px; right: auto; top: 18px; bottom: 0; width: 12px; height: auto; border-top: 0; border-bottom: 0; border-left: 1px solid var(--eau-2); border-right: 1px solid var(--eau-2); background: repeating-linear-gradient(0deg,transparent 0 10px,rgba(142,184,206,.65) 10px 12px); }
  .histoire-parcours li:first-child::before { left: 5px; right: auto; top: auto; bottom: 12px; transform: rotate(135deg); }
  .histoire-parcours p { max-width: 36ch; }
  .histoire-chapitres li { position: relative; padding-left: 44px; }
  .histoire-chapitres li::before { content: ''; position: absolute; top: 0; bottom: 0; left: 18px; width: 9px; border-inline: 1px solid #708b96; background: repeating-linear-gradient(0deg,transparent 0 12px,#a6b5b7 12px 14px); }
  .histoire-chapitres li::after { content: ''; position: absolute; top: 31px; left: 15px; width: 15px; height: 15px; border-radius: 50%; border: 2px solid #a56843; background: var(--papier); }
  .histoire-rails-panorama { display: none; }
  .histoire-train-mobile { display: block; width: min(255px,100%); height: auto; margin: 0 auto; }
  .histoire-rail-note { margin: 12px 0 0; text-align: center; font-size: 22px; }
}
