/* Direction A · Enluminure : page d'accueil */

.visuel-masque { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

/* ── Première page ── */
.une-page { position: relative; padding-block: 32px 64px; overflow: hidden; }
.une-page__grille { display: grid; gap: 40px; }
.une-page__titre { font-size: clamp(3.25rem, 15vw, 5.5rem); line-height: 0.98; font-weight: 600; margin-bottom: 24px; }
.une-page__titre .lettrine { font-size: 1.46em; margin-top: 0.03em; }
.une-page__chapeau { max-width: 34em; font-size: var(--t-20); line-height: 1.5; margin-bottom: 32px; clear: both; }

@media (min-width: 1024px) {
  .une-page { padding-block: 64px 96px; }
  /* Le rinceau tient lieu de marge enluminée, à gauche du texte. */
  .une-page::before { content: ""; position: absolute; top: 0; bottom: 0; left: max(-16px, calc((100vw - var(--largeur)) / 2 - 40px)); width: 112px; background: url("../assets/ornaments/rinceau-v.svg") center top / 112px 180px repeat-y; }
  .une-page__grille { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; }
  .une-page__texte { padding-left: 40px; }
  .une-page__titre { font-size: clamp(4rem, 5.6vw, 5.25rem); }
}
@media (min-width: 1500px) { .une-page__image { margin-right: -64px; } }

/* ── Portails : quadrilobes sur fond de lapis ── */
.portails { background: var(--lapis-fonce) var(--diapre-fonce) center / 40px; color: #F4EEDD; padding-block: var(--section); }
.portails .rubrique { color: #F2DD9A; }
.portails__tete { margin-bottom: 48px; }
.portails__liste { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 48px 32px; }
.portail { display: grid; gap: 8px; align-content: start; }
.portail__lobe { width: min(100%, 240px); margin-bottom: 16px; filter: drop-shadow(3px 0 0 var(--or)) drop-shadow(-3px 0 0 var(--or)) drop-shadow(0 3px 0 var(--or)) drop-shadow(0 -3px 0 var(--or)); transition: transform 0.25s; }
.portail__lobe img { width: 100%; aspect-ratio: 1; object-fit: cover; clip-path: url("#quadrilobe"); }
.portail:hover .portail__lobe { transform: rotate(4deg); }
.portail h3 { font-size: var(--t-39); }
.portail h3 a { color: inherit; text-decoration: none; }
.portail h3 a:hover { color: #F2DD9A; text-decoration: underline; text-decoration-thickness: 2px; }
.portail h3 a::after { content: " →"; font-family: var(--livre); font-size: 0.55em; color: #F2DD9A; }
.portail p { margin: 0; color: #E4DDCB; font-size: 1rem; line-height: 1.55; }

/* ── Chronologie ── */
.chrono { padding-block: var(--section); }
.chrono__tete { display: grid; gap: 16px; margin-bottom: 40px; }
.chrono__tete > p { margin: 0; color: var(--texte-doux); max-width: 32em; }
@media (min-width: 1024px) { .chrono__tete { grid-template-columns: 2fr 1fr; align-items: end; gap: 64px; } }
.chrono__ligne { list-style: none; margin: 0; display: flex; gap: 0; overflow-x: auto; --marge: max(var(--gouttiere), calc((100vw - var(--largeur)) / 2 + var(--gouttiere))); scroll-snap-type: x proximity; scroll-padding-left: var(--marge); padding: 16px var(--marge) 24px; scrollbar-color: var(--or) transparent; }
.chrono__ligne li { position: relative; flex: 0 0 272px; padding: 40px 32px 0 0; scroll-snap-align: start; border-top: 3px double var(--or-fonce); }
.chrono__ligne li::before { content: ""; position: absolute; top: -10px; left: 0; width: 16px; height: 16px; transform: rotate(45deg); background: var(--or-feuille); outline: 1px solid var(--or-fonce); outline-offset: 2px; }
.chrono__ligne li:nth-child(even)::before { background: var(--vermillon); }
.chrono__ligne time { display: block; font-size: var(--t-petit); font-weight: 600; color: var(--vermillon); letter-spacing: 0.04em; }
.chrono__ligne h3 { font-size: var(--t-31); margin: 4px 0 8px; }
.chrono__ligne p { margin: 0; font-size: 1rem; line-height: 1.55; color: var(--texte-doux); }

/* ── Situations ── */
.situations { background: var(--surface); border-block: 1px solid var(--filet); padding-block: var(--section); }
.situations__liste { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 0 48px; }
.situations__liste a { display: grid; gap: 4px; padding-block: 16px; min-height: 44px; border-top: 1px solid var(--encre); color: var(--encre); text-decoration: none; }
.situations__liste b { font-family: var(--gothique); font-size: var(--t-31); font-weight: 600; line-height: 1.1; color: var(--lapis); }
.situations__liste b::after { content: " →"; font-family: var(--livre); font-size: 0.6em; color: var(--vermillon); }
.situations__liste span { color: var(--texte-doux); font-size: 1rem; line-height: 1.45; }
.situations__liste a:hover b { color: var(--vermillon); text-decoration: underline; text-decoration-thickness: 2px; }
@media (min-width: 768px) { .situations__liste { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Portes à venir : présentes, sans lien */
.portail--bientot .portail__lobe { opacity: 0.55; filter: grayscale(0.5) drop-shadow(3px 0 0 var(--or)) drop-shadow(-3px 0 0 var(--or)) drop-shadow(0 3px 0 var(--or)) drop-shadow(0 -3px 0 var(--or)); }
.portail--bientot:hover .portail__lobe { transform: none; }
.portail--bientot h3 { color: #E4DDCB; }
.portail b { color: #F2DD9A; font-weight: 600; }

/* ── Armes ── */
.armes-accueil { padding-block: var(--section); }
.armes__liste--clair { margin-top: 32px; }
.armes__liste--clair a { background: var(--surface); border-color: var(--encre); color: var(--encre); }
.armes__liste--clair a:hover { background: var(--lapis-fonce); border-color: var(--or); color: #F4EEDD; }
.armes-accueil__suite { margin: 32px 0 0; }
