/* Page Notre histoire — maquette « PresencePlus-notre-histoire-feu-sur-le-pont » (Herbert, 25.10.2026),
   reprise à l'identique avec ses textes et sa planche de dessins violets. Chargée par cette seule page
   (pages.json → preloads). Même police que la page Communauté : Plus Jakarta Sans (OFL), servie depuis
   notre serveur. Les fines lignes courbes décoratives de la maquette ne sont PAS reprises (Herbert a fait
   retirer celles de la page Communauté le 25.10.2026) ; taches lavande et bas en vague gardés. */
@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("/assets/plus-jakarta-sans-latin-wght.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}
.hi {
  --hi-ink: #1f1240;
  --hi-texte: #3d3550;
  --hi-doux: #6b6380;
  --hi-violet: #6a2fd8;
  --hi-violet-vif: #7b3ff2;
  --hi-violet-fonce: #4b1fa6;
  --hi-clair: #c096ff;
  --hi-lavande: #f3effc;
  --hi-tache: #ece4fb;
  --hi-nuit: #2a1052;
  font-family: "Plus Jakarta Sans", "Segoe UI", Arial, sans-serif;
  color: var(--hi-texte);
  background: #fff;
  overflow-x: clip;
}
.hi h1, .hi h2, .hi h3 {
  font-family: "Plus Jakarta Sans", "Segoe UI", Arial, sans-serif;
  color: var(--hi-ink);
  letter-spacing: -.025em;
  font-weight: 800;
}
.hi h1 em, .hi h2 em, .hi h3 em { font-style: normal; font-weight: inherit; color: var(--hi-violet-vif); }
.hi-pt { margin-left: -.09em; }
.hi p { font-size: 17px; line-height: 1.6; margin: 0 0 14px; }
.hi-in { width: min(1180px, 100% - 48px); margin-inline: auto; }
.hi-kicker {
  margin: 0 0 12px !important;
  color: var(--hi-violet);
  font-size: 13px !important;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.hi-ico { width: 1em; height: 1em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.hi-bouton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 30px;
  border-radius: 14px;
  background: var(--hi-violet-vif);
  color: #fff;
  font-weight: 600;
  font-size: 17px;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(106, 47, 216, .25);
  transition: background .2s, transform .2s;
}
.hi-bouton:hover { background: var(--hi-violet-fonce); transform: translateY(-1px); }
.hi-bouton .hi-ico { width: 20px; height: 20px; }
.hi a:focus-visible { outline: 3px solid #f2c94c; outline-offset: 3px; }
.hi-section { padding-block: 72px; }
.hi-section h2, .hi-nuit h2, .hi-handicap h2, .hi-util h2, .hi-parcours h2, .hi-entete h2, .hi-change h2, .hi-suite h2 {
  font-size: clamp(28px, 3vw, 41px);
  line-height: 1.1;
  margin: 0 0 18px;
}
.hi-duo { display: grid; grid-template-columns: 1.4fr .6fr; align-items: center; gap: 48px; }
.hi-dessin { display: grid; place-items: center; }
.hi-dessin img { display: block; width: 100%; max-width: 380px; height: auto; }
/* Tache lavande irrégulière derrière un dessin, comme sur la maquette */
.hi-tache { position: relative; isolation: isolate; }
.hi-tache::before {
  content: "";
  position: absolute;
  inset: -8% -6%;
  z-index: -1;
  background: var(--hi-tache);
  border-radius: 58% 42% 55% 45% / 48% 58% 42% 52%;
  opacity: .75;
}

/* 1. Ouverture */
.hi-hero { position: relative; background: linear-gradient(180deg, #fbf9ff 0%, #f5f0fe 100%); padding-bottom: 90px; }
.hi-hero-grille { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; padding-top: 44px; }
.hi-hero h1 { font-size: clamp(36px, 4.1vw, 58px); line-height: 1.04; margin: 0 0 20px; }
.hi-sous { font-size: 22px !important; color: var(--hi-ink); font-weight: 500; margin-bottom: 8px !important; }
.hi-lead { font-size: 18px !important; max-width: 560px; margin-bottom: 30px !important; }
.hi-hero-photo { margin: 0; }
.hi-hero-photo img {
  display: block;
  width: 100%;
  aspect-ratio: 680 / 730;
  height: auto;
  object-fit: cover;
  object-position: 50% 30%;
  border-radius: 20px;
  box-shadow: 0 18px 40px rgba(42, 16, 82, .14);
}
.hi-hero-photo figcaption { margin-top: 10px; font-style: italic; font-size: 15px; color: var(--hi-texte); }
.hi-intro { margin-top: 26px !important; font-size: 19px !important; max-width: 1000px; }
.hi-liens-ligne { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-top: 18px; }
.hi-liens {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 34px;
  padding-top: 26px;
  border-top: 2px solid #b99af0;
  font-size: 18px;
  color: var(--hi-violet);
}
.hi-liens a { color: var(--hi-violet); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 7px; text-decoration-color: #b99af0; }
.hi-liens a:hover { text-decoration-color: var(--hi-violet); }
.hi-liens span { color: var(--hi-violet); font-weight: 300; font-size: 24px; }
.hi-pont-petit { width: 360px; height: auto; flex: none; margin-bottom: -40px; }
.hi-vague { position: absolute; left: 0; bottom: -1px; z-index: 2; width: 100%; line-height: 0; transform: rotate(180deg); pointer-events: none; }
.hi-vague svg { display: block; width: calc(100% + 1.3px); height: 70px; fill: var(--hi-lavande); }

/* 2. Le fil des quarante ans */
.hi-parcours { background: var(--hi-lavande); padding: 40px 0 70px; }
.hi-fil { position: relative; display: grid; gap: 20px; padding-left: 58px; margin-top: 30px; }
.hi-fil::before { content: ""; position: absolute; left: 10px; top: 30px; bottom: 60px; width: 2px; background: #9d6cf7; }
.hi-jalon {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: center;
  padding: 22px 26px;
  border-radius: 20px;
  background: rgba(255, 255, 255, .55);
  box-shadow: 0 1px 0 rgba(42, 16, 82, .04);
}
.hi-jalon::before {
  content: "";
  position: absolute;
  left: -58px;
  top: 34px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--hi-violet-vif);
  border: 4px solid #fff;
  box-shadow: 0 0 0 2px #9d6cf7;
}
.hi-an { color: var(--hi-violet-vif); font-weight: 800; font-size: 17px !important; letter-spacing: .06em; margin-bottom: 4px !important; }
.hi-jalon h3 { font-size: 26px; line-height: 1.15; margin: 0 0 10px; }
.hi-jalon p { color: #4a3f66; }
.hi-jalon .hi-accent { color: var(--hi-violet-fonce); }
.hi-jalon-pont img { display: block; width: 100%; height: auto; }
.hi-coupure { margin: 0; }
.hi-coupure img { display: block; width: 100%; height: auto; border-radius: 10px; box-shadow: 0 6px 18px rgba(42, 16, 82, .12); }
.hi-coupure figcaption { margin-top: 8px; font-style: italic; font-size: 14px; color: var(--hi-texte); }
.hi-archives { text-align: right; font-size: 13px !important; color: var(--hi-texte); margin-top: 12px !important; }

/* 3. Protéger, accueillir, transmettre */
.hi-metiers .hi-duo { grid-template-columns: 1.1fr .9fr; }
.hi-trois { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; text-align: center; }
.hi-trois .hi-tache { display: grid; place-items: center; height: 150px; margin-bottom: 14px; }
.hi-trois .hi-tache::before { inset: 0 -4%; }
.hi-trois img { width: auto; height: 104px; }
.hi-trois strong { display: inline-block; color: var(--hi-violet-vif); font-size: 19px; padding-bottom: 8px; border-bottom: 3px solid var(--hi-violet-vif); }

/* 4 et 13. Fond nuit */
.hi-nuit { background: var(--hi-nuit); color: #e9e2f7; padding-block: 64px; }
.hi-nuit h2 { color: #fff; }
.hi-nuit h2 em { color: var(--hi-clair); }
.hi-nuit .hi-kicker { color: var(--hi-clair); }
.hi-pastille {
  display: inline-block;
  margin-top: 10px !important;
  padding: 12px 26px;
  border-radius: 12px;
  background: #7d4be8;
  color: #fff;
  font-size: 19px !important;
  font-weight: 500;
}
.hi-feu .hi-dessin img { max-width: 400px; }

/* 5, 6, 7. Encadrés */
.hi-encadre {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-top: 22px !important;
  padding: 18px 26px;
  border-radius: 16px;
  background: var(--hi-lavande);
  color: var(--hi-violet-vif);
  font-weight: 700;
  font-size: 19px !important;
  line-height: 1.35 !important;
}
.hi-encadre .hi-ico { width: 56px; height: 56px; stroke-width: 1.5; }
.hi-encadre.blanc { background: #fff; box-shadow: 0 8px 26px rgba(42, 16, 82, .08); font-weight: 600; }
.hi-encadre.blanc strong { font-weight: 800; }

/* 6. L'entêtement : texte sur lavande, photo jusqu'au bord droit */
.hi-entete { display: grid; grid-template-columns: 1fr 1fr; background: #fff; }
.hi-entete-texte {
  position: relative;
  z-index: 1;
  padding: 56px 40px 40px max(24px, calc((100vw - 1180px) / 2));
  background: var(--hi-lavande);
  border-radius: 0 60px 60px 0;
}
.hi-entete-texte .hi-encadre { margin-right: -120px; }
.hi-entete-photo { position: relative; margin: 0; min-height: 100%; }
.hi-entete-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 40% 50%; }
.hi-entete-photo figcaption { position: absolute; right: 18px; bottom: 14px; color: #fff; font-style: italic; font-size: 14px; text-shadow: 0 1px 4px rgba(0, 0, 0, .5); }

/* 8. Le handicap me touche directement */
.hi-handicap { background: var(--hi-lavande); padding-block: 36px; }
.hi-handicap .hi-in { display: grid; grid-template-columns: 1fr 230px; gap: 30px; align-items: center; }
.hi-handicap-texte { display: grid; grid-template-columns: 80px 1fr; gap: 18px; align-items: start; }
.hi-guillemet { width: 66px; height: 54px; color: #8f55f5; margin-top: 4px; }
.hi-handicap h2 { margin-bottom: 10px; }
.hi-handicap p { margin: 0; }
.hi-handicap .hi-dessin img { max-width: 220px; }

/* 9. Ce qui a changé */
.hi-change { position: relative; overflow: hidden; background: #fff; }
.hi-change-photo { position: absolute; top: 0; right: 0; bottom: 0; width: 56%; }
.hi-change-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 60% 40%;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 34%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 34%);
}
.hi-change .hi-in { position: relative; padding-block: 60px; }
.hi-change-texte { max-width: 560px; }
.hi-change h2 { font-size: clamp(30px, 3.6vw, 48px); }
.hi-fort { margin-top: 24px !important; color: var(--hi-violet-vif); font-weight: 800; font-size: clamp(24px, 2.4vw, 32px) !important; line-height: 1.15 !important; letter-spacing: -.02em; }

/* 10. Lina est née */
.hi-nee { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; padding: 30px 34px; border-radius: 26px; background: var(--hi-lavande); }
.hi-nee-photo { margin: 0; }
.hi-nee-photo img { display: block; width: 100%; aspect-ratio: 5 / 4; height: auto; object-fit: cover; object-position: 50% 4%; border-radius: 18px; }
.hi-nee-photo figcaption { margin-top: 10px; font-style: italic; font-size: 15px; }
.hi-nee h2 { font-size: clamp(32px, 3.6vw, 48px); }
.hi-mot { margin: 18px 0 0; padding: 20px 26px; border-radius: 18px; background: #e7dcfb; color: var(--hi-violet-vif); font-weight: 700; font-size: 18px; line-height: 1.45; }
.hi-mot span { white-space: nowrap; }
#naissance { padding-bottom: 30px; }

/* 11. Des gestes simples */
.hi-gestes { padding-top: 30px; padding-bottom: 20px; }
.hi-cartes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 14px; }
.hi-cartes article { display: grid; grid-template-columns: 70px 1fr; gap: 16px; padding: 24px; border-radius: 20px; background: #f8f5fe; }
.hi-cartes .hi-ico { width: 56px; height: 56px; color: var(--hi-violet-vif); stroke-width: 1.7; }
.hi-cartes h3 { font-size: 21px; margin: 4px 0 6px; }
.hi-cartes p { font-size: 15.5px !important; margin: 0; }

/* 12. Avec ses utilisateurs */
.hi-util { padding-top: 10px; }
.hi-util-grille { display: grid; grid-template-columns: 260px 1fr; gap: 50px; align-items: end; }
.hi-salut { display: block; width: 220px; height: auto; margin-left: 30px; }
.hi-util-grille > div { padding-bottom: 40px; }
.hi-util h2 { font-size: clamp(26px, 2.8vw, 38px); margin-bottom: 10px; }

/* 13. Ce que Lina ne remplacera jamais */
.hi-jamais { padding-block: 48px; }
.hi-jamais-grille { display: grid; grid-template-columns: 1.6fr 1fr; gap: 48px; }
.hi-jamais p { color: #e1d8f3; }
.hi-presence { padding-left: 44px; border-left: 2px solid rgba(192, 150, 255, .5); }
.hi-presence h2 { font-size: clamp(30px, 3.4vw, 44px); }
.hi-aide { font-size: 15px !important; color: #e1d8f3; }
.hi-aide strong { color: #fff; font-weight: 600; }
.hi-aide b { color: #fff; }

/* 14. Une place, même avec peu de moyens */
.hi-moyens .hi-tache::before { inset: -14% 0 -18%; }
.hi-moyens .hi-dessin img { max-width: 300px; }
.hi-reserve { margin: 16px 0 0 !important; font-size: 14px !important; text-align: center; }

/* 15. La suite de cette histoire */
.hi-suite { background: linear-gradient(110deg, #6a2be8 0%, #5a20d6 100%); color: #fff; padding-block: 56px; }
.hi-suite h2 { color: #fff; }
.hi-suite h2 em { color: #d4bcff; }
.hi-suite p { color: #efe8ff; font-size: 19px !important; }
.hi-suite .hi-duo { grid-template-columns: 1.1fr .9fr; }
.hi-suite-actions { display: grid; gap: 14px; }
.hi-suite-actions .hi-bouton { width: 100%; padding-block: 18px; font-size: 19px; }
.hi-bouton.blanc { background: #fff; color: var(--hi-violet-vif); }
.hi-bouton.blanc:hover { background: #f1eaff; }
.hi-bouton.contour { background: transparent; border: 2px solid rgba(255, 255, 255, .85); box-shadow: none; }
.hi-bouton.contour:hover { background: rgba(255, 255, 255, .1); }
.hi-suite-actions p { text-align: center; font-size: 15px !important; margin-top: 6px !important; }

/* Tablette et téléphone */
@media (max-width: 1000px) {
  .hi-hero-grille, .hi-duo, .hi-suite .hi-duo, .hi-metiers .hi-duo, .hi-jamais-grille, .hi-nee, .hi-entete { grid-template-columns: 1fr; }
  .hi-hero-photo { max-width: 520px; }
  .hi-pont-petit { display: none; }
  .hi-jalon { grid-template-columns: 1fr; }
  .hi-dessin img { max-width: 320px; }
  .hi-entete-texte { padding: 48px 24px 32px; border-radius: 0; }
  .hi-entete-texte .hi-encadre { margin-right: 0; }
  .hi-entete-photo { min-height: 0; }
  .hi-entete-photo img { position: static; height: auto; aspect-ratio: 900 / 577; }
  .hi-handicap .hi-in { grid-template-columns: 1fr; }
  .hi-handicap .hi-dessin img { max-width: 180px; }
  .hi-change-photo { position: static; width: 100%; }
  .hi-change-photo img { height: auto; aspect-ratio: 4 / 3; -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent 100%); mask-image: linear-gradient(180deg, #000 70%, transparent 100%); }
  .hi-change .hi-in { padding-top: 10px; }
  .hi-cartes { grid-template-columns: 1fr; }
  .hi-util-grille { grid-template-columns: 1fr; gap: 10px; }
  .hi-salut { margin: 0 auto; width: 180px; }
  .hi-util-grille > div { padding-bottom: 30px; }
  .hi-presence { padding-left: 0; padding-top: 28px; border-left: 0; border-top: 2px solid rgba(192, 150, 255, .5); }
  .hi-vague svg { height: 44px; }
}
@media (max-width: 640px) {
  .hi-in { width: calc(100% - 32px); }
  .hi-section { padding-block: 52px; }
  .hi p { font-size: 16px; }
  .hi-sous { font-size: 19px !important; }
  .hi-intro { font-size: 17px !important; }
  .hi-intro br { display: none; }
  .hi-liens { gap: 10px 18px; font-size: 16px; }
  .hi-liens span { display: none; }
  .hi-fil { padding-left: 34px; }
  .hi-fil::before { left: 6px; }
  .hi-jalon { padding: 18px; }
  .hi-jalon::before { left: -36px; width: 16px; height: 16px; border-width: 3px; }
  .hi-jalon h3 { font-size: 22px; }
  .hi-trois { gap: 10px; }
  .hi-trois .hi-tache { height: 110px; }
  .hi-trois img { height: 72px; }
  .hi-trois strong { font-size: 15px; }
  .hi-encadre { gap: 14px; padding: 14px 18px; font-size: 17px !important; }
  .hi-encadre .hi-ico { width: 40px; height: 40px; }
  .hi-handicap-texte { grid-template-columns: 1fr; gap: 6px; }
  .hi-guillemet { width: 46px; height: 38px; }
  .hi-nee { padding: 18px; }
  .hi-bouton { padding: 15px 22px; font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .hi-bouton { transition: none; }
  .hi-bouton:hover { transform: none; }
}
