/* Page « histoire » (Papy Black, 03/12/2026). S'ajoute à rendez-vous.css (guirlande, polaroïds, macaron, encart). */

/* Ouverture : phrase manuscrite, collage de deux polaroïds */
.fw-p-histoire .hi-ouv { align-items: center; }
@container (min-width: 900px) { .fw-p-histoire .hi-ouv { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); } }
.fw-p-histoire .hi-main { font: 400 clamp(1.75rem, 1.4rem + 1.2vw, 2.25rem)/1.1 var(--fw-police-main); color: var(--fw-orange-700); transform: rotate(-2deg); transform-origin: left; margin: 0; }
.fw-p-histoire .hi-collage { position: relative; padding: var(--fw-e-4) 0 var(--fw-e-8); }
.fw-p-histoire .hi-collage__grand { width: 82%; margin-left: 0; }
.fw-p-histoire .hi-collage__grand img { aspect-ratio: 4 / 5; object-fit: cover; }
.fw-p-histoire .hi-collage__petit { position: absolute; right: 0; bottom: 0; width: 44%; z-index: 2; }
.fw-p-histoire .hi-collage__petit img { aspect-ratio: 3 / 4; object-fit: cover; }
.fw-p-histoire .hi-collage__petit .fw-polaroid__legende { font-size: 20px; }
.fw-p-histoire .hi-macaron { top: 0; right: 30%; }
@container (min-width: 900px) { .fw-p-histoire .hi-macaron { right: 32%; } }

/* Avant, après */
.fw-p-histoire .hi-duo { display: grid; gap: var(--fw-e-5); align-items: stretch; }
@container (min-width: 900px) { .fw-p-histoire .hi-duo { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; } }
.fw-p-histoire .hi-carte { border-radius: var(--fw-r-l); padding: var(--fw-e-6); display: flex; flex-direction: column; gap: var(--fw-e-3); height: 100%; }
.fw-p-histoire .hi-carte__surtitre { font: 700 var(--fw-fs-petit)/1.2 var(--fw-police); letter-spacing: .06em; text-transform: uppercase; margin: 0; }
.fw-p-histoire .hi-carte__grand { font: 800 clamp(1.75rem, 1.4rem + 1.4vw, 2.5rem)/1.05 var(--fw-police); margin: 0; }
.fw-p-histoire .hi-carte__citation { margin: 0; display: flex; flex-direction: column; gap: var(--fw-e-2); }
.fw-p-histoire .hi-carte__citation blockquote { margin: 0; }
.fw-p-histoire .hi-carte__citation blockquote p { font-size: var(--fw-fs-chapo); line-height: 1.45; margin: 0; }
.fw-p-histoire .hi-carte__citation figcaption { font-size: var(--fw-fs-petit); }
.fw-p-histoire .hi-carte--avant { background: var(--fw-bleu-900); color: var(--fw-blanc); }
.fw-p-histoire .hi-carte--avant * { color: var(--fw-blanc); }
.fw-p-histoire .hi-carte--avant .hi-carte__grand { color: var(--fw-peau); }
.fw-p-histoire .hi-carte--apres { background: var(--fw-orange); color: var(--fw-sur-aplat); transform: rotate(1deg); box-shadow: var(--fw-ombre-tampon); }
.fw-p-histoire .hi-carte--apres * { color: var(--fw-sur-aplat); }
.fw-p-histoire .hi-fleche { color: var(--fw-orange); width: 48px; height: 48px; justify-self: center; transform: rotate(90deg); }
@container (min-width: 900px) { .fw-p-histoire .hi-fleche { transform: none; } }
.fw-p-histoire .hi-fleche svg { width: 100%; height: 100%; }

/* Le défilé */
.fw-p-histoire .hi-defile { align-items: center; }
@container (min-width: 900px) { .fw-p-histoire .hi-defile { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); } }
.fw-p-histoire .hi-defile .pg-pola img { aspect-ratio: 4 / 5; object-fit: cover; }
.fw-p-histoire .hi-badge { display: flex; align-items: center; gap: var(--fw-e-4); padding: var(--fw-e-4) var(--fw-e-5); border-radius: var(--fw-r-l); background: var(--fw-jaune-pale); }
.fw-p-histoire .hi-badge .fw-chiffre { font: 800 3.5rem/1 var(--fw-police); color: var(--fw-chiffre); flex: none; }
.fw-p-histoire .hi-badge p { margin: 0; line-height: 1.45; }

/* Le journal de la première journée : une colonne qui zigzague */
.fw-p-histoire .hi-journal { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--fw-e-8); position: relative; }
.fw-p-histoire .hi-moment { display: grid; gap: var(--fw-e-4); align-items: center; }
@container (min-width: 900px) {
  .fw-p-histoire .hi-moment { grid-template-columns: 140px minmax(0, 1fr) minmax(0, 300px); gap: var(--fw-e-6); }
  .fw-p-histoire .hi-moment--inverse { grid-template-columns: 140px minmax(0, 300px) minmax(0, 1fr); }
  .fw-p-histoire .hi-moment--inverse .hi-moment__photo { grid-column: 2; grid-row: 1; }
  .fw-p-histoire .hi-moment--inverse .hi-moment__texte { grid-column: 3; grid-row: 1; }
}
.fw-p-histoire .hi-moment__heure { font: 400 2rem/1 var(--fw-police-main); color: var(--fw-orange-700); margin: 0; align-self: start; }
.fw-p-histoire .hi-moment__texte { display: flex; flex-direction: column; gap: var(--fw-e-3); }
.fw-p-histoire .hi-bulle { position: relative; margin: 0; padding: var(--fw-e-4) var(--fw-e-5); border-radius: var(--fw-r-l); background: var(--fw-jaune-pale); font-size: var(--fw-fs-chapo); line-height: 1.45; font-weight: 500; color: var(--fw-titre); }
.fw-p-histoire .hi-moment__photo { width: 100%; max-width: 300px; margin-inline: auto; }
.fw-p-histoire .hi-moment__photo img { aspect-ratio: 3 / 4; object-fit: cover; }
.fw-p-histoire .hi-moment__photo--large img { aspect-ratio: 4 / 3; }
.fw-p-histoire .hi-moment__photo .fw-polaroid__legende { font-size: 22px; }

/* La phrase */
.fw-p-histoire .hi-phrase { background: var(--fw-orange); }
.fw-p-histoire .hi-phrase__fig { margin: 0 auto; max-width: 900px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: var(--fw-e-4); color: var(--fw-sur-aplat); }
.fw-p-histoire .hi-phrase__fig svg { width: 48px; height: 48px; color: var(--fw-sur-aplat); }
.fw-p-histoire .hi-phrase__fig blockquote { margin: 0; }
.fw-p-histoire .hi-phrase__fig blockquote p { font: 400 clamp(2.5rem, 1.8rem + 3vw, 4.5rem)/1.05 var(--fw-police-main); margin: 0; color: var(--fw-sur-aplat); }
.fw-p-histoire .hi-phrase__fig figcaption { font-size: var(--fw-fs-petit); color: var(--fw-sur-aplat); }

/* Le mur de polaroïds */
.fw-p-histoire .hi-mur { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--fw-e-6) var(--fw-e-5); }
.fw-p-histoire .hi-mur { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 960px; }
@container (max-width: 599px) { .fw-p-histoire .hi-mur { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.fw-p-histoire .hi-mur .pg-pola { width: 100%; padding: 8px 8px 40px; }
.fw-p-histoire .hi-mur .pg-pola img { aspect-ratio: 3 / 4; object-fit: cover; }
.fw-p-histoire .hi-mur .fw-polaroid__legende { font-size: 20px; }

/* Adopter un senior */
.fw-p-histoire .hi-senior__coeur { width: 96px; height: 96px; border-radius: 50%; background: var(--fw-orange); color: var(--fw-sur-aplat); display: grid; place-content: center; }
.fw-p-histoire .hi-senior__coeur svg { width: 48px; height: 48px; }

/* Merci à sa famille : la strate festive (03/12/2026) */
.fw-p-histoire .hi-bravo { position: relative; overflow: hidden; }
.fw-p-histoire .hi-bravo__in { position: relative; z-index: 1; align-items: center; text-align: center; }
.fw-p-histoire .hi-bravo__in .fw-chapo { margin-inline: auto; }
.fw-p-histoire .hi-confettis { position: absolute; top: 24px; width: 90px; height: auto; opacity: .95; }
.fw-p-histoire .hi-confettis--g { left: 8px; }
.fw-p-histoire .hi-confettis--d { right: 8px; transform: scaleX(-1) translateY(60px); }
@container (min-width: 900px) { .fw-p-histoire .hi-confettis { width: 150px; top: 40px; } .fw-p-histoire .hi-confettis--g { left: 4%; } .fw-p-histoire .hi-confettis--d { right: 4%; } }
.fw-p-histoire .hi-bravo__merci { font: 400 clamp(4rem, 3rem + 5vw, 7.5rem)/.9 var(--fw-police-main); color: var(--fw-orange-700); transform: rotate(-4deg); margin: 0; }
.fw-p-histoire .hi-gestes { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--fw-e-4); text-align: left; max-width: 1000px; }
@container (min-width: 900px) { .fw-p-histoire .hi-gestes { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--fw-e-5); } }
.fw-p-histoire .hi-geste { display: flex; gap: var(--fw-e-3); align-items: flex-start; background: var(--fw-surface); border-radius: var(--fw-r-l); padding: var(--fw-e-5); box-shadow: var(--fw-ombre-tampon); }
.fw-p-histoire .hi-geste:nth-child(1) { transform: rotate(-1.5deg); }
.fw-p-histoire .hi-geste:nth-child(3) { transform: rotate(1.5deg); }
.fw-p-histoire .hi-geste p { margin: 0; line-height: 1.45; }
.fw-p-histoire .hi-geste__pastille { flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--fw-jaune); color: var(--fw-titre); display: grid; place-content: center; font: 800 1.25rem/1 var(--fw-police); }
.fw-p-histoire .hi-bravo__carte { margin: var(--fw-e-5) 0 0; display: grid; gap: var(--fw-e-6); align-items: center; justify-items: center; }
@container (min-width: 900px) { .fw-p-histoire .hi-bravo__carte { grid-template-columns: 260px minmax(0, 460px); text-align: left; justify-items: start; } }
.fw-p-histoire .hi-bravo__carte .pg-pola { width: 240px; }
.fw-p-histoire .hi-bravo__carte .pg-pola img { aspect-ratio: 3 / 4; object-fit: cover; }
.fw-p-histoire .hi-bravo__mot { display: flex; flex-direction: column; gap: var(--fw-e-3); }
.fw-p-histoire .hi-bravo__mot p { margin: 0; }
.fw-p-histoire .hi-bravo__citation { font: 400 clamp(1.75rem, 1.4rem + 1.4vw, 2.5rem)/1.1 var(--fw-police-main); color: var(--fw-titre); }
.fw-p-histoire .hi-bravo__signe { font: 800 1.375rem/1.2 var(--fw-police); color: var(--fw-orange-700); }
.fw-p-histoire .hi-bravo__signe span { display: block; font: 400 1.25rem/1.2 var(--fw-police-main); color: var(--fw-titre); }
