/* Andriveau landing page (/andriveau-mariages), rebuilt from the legacy "#andriveau-container" styles (_andriveau.scss) without Bootstrap.
   Loaded after sources-directory.css (container, search form skeleton). Colours of the legacy variables: coral #ff5555, storm #2b2550,
   lagoon #00a3b7. Breakpoints of the legacy page: 480 / 767 / 769 px. */

.andriveau, .andriveau-band { --andriveau-coral: #ff5555; --andriveau-storm: #2b2550; --andriveau-lagoon: #00a3b7; --andriveau-ink: #303f4c; }

/* ---- Top band (dark blue, full width): title, "exclusive" subtitle, search form (hero variant, as the legacy page and the Archives) ---- */
.andriveau-band { padding: 1.5rem 15px 2.5rem; background: var(--andriveau-storm); color: #fff; text-align: center; }
.andriveau-band__inner { max-width: var(--sources-container); margin: 0 auto; }
.andriveau-band__title { margin: 0; font-size: 2rem; font-weight: 400; line-height: 1.15; color: #fff; }
.andriveau-band__subtitle { margin: 1.25rem 0 0; font-size: 1.3rem; color: #fff; }
.andriveau-band__subtitle sup { font-size: 1rem; }
.andriveau-exclusive { color: var(--andriveau-coral); text-transform: uppercase; }
@media (min-width: 768px) { .andriveau-band { padding-top: 2rem; } .andriveau-band__title { font-size: 2.8rem; } }

/* The search form: 900px column, as the Archives hero. The skeleton (before the React form loads) has the form's size: fields 43px,
   button 44px, 4px above the fields, gaps 8px (< 592px), 12px (>= 592px), 16px (>= 1168px), button 16px / 24px below, fields in two
   columns from 976px (QuickSearch.styled.ts, hero variant). Change the sizes there and here together. */
.andriveau-search { max-width: 900px; margin: 1.5rem auto 0; text-align: left; }
.andriveau-skeleton { display: flex; flex-direction: column; }
.andriveau-skeleton__fields { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; margin-top: 0.25rem; }
.andriveau-skeleton__field { height: 43px; border-radius: 4px; background: #fff; }
.andriveau-skeleton__field:nth-child(n+3) { grid-column: 1 / -1; }
.andriveau-skeleton__submit {
    align-self: center;
    height: 44px;
    margin-top: 1rem;
    padding: 0 1.5rem;
    border: 0;
    border-radius: 22px;
    background: var(--sources-badge);
    color: #fff;
    font: inherit;
}
@media (min-width: 592px) {
    .andriveau-skeleton__fields { gap: 0.75rem; }
    .andriveau-skeleton__submit { margin-top: 1.5rem; }
}
@media (min-width: 976px) { .andriveau-skeleton__field:nth-child(n+3) { grid-column: auto; } }
@media (min-width: 1168px) { .andriveau-skeleton__fields { gap: 1rem; } }

.andriveau-section-title { margin: 0; font-size: 2.5rem; line-height: 1.2; text-align: center; color: var(--andriveau-storm); }
.andriveau-section-title--left { margin: 1rem 0 1.5rem; font-size: 1.9rem; text-align: left; }
@media (max-width: 767px) { .andriveau-section-title { font-size: 1.8rem; } .andriveau-section-title--left { font-size: 1.5rem; } }

/* ---- Video (YouTube, loaded on click) ---- */
.andriveau-video { margin-top: 2.2rem; }
.andriveau-video__legend { margin: 0.9rem 1rem 0; text-align: center; font-size: 1.35rem; color: var(--andriveau-ink); }
@media (max-width: 1020px) { .andriveau-video__legend br { display: none; } }
.andriveau-video__frame {
    position: relative;
    width: 550px;
    max-width: 80%;
    aspect-ratio: 55 / 31;
    margin: 4rem auto 5rem;
    background: var(--andriveau-storm);
}
.andriveau-video__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
/* The video's own poster (a still of the video, served from Filae-images), so the page shows the same picture as the player did. */
.andriveau-video__poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.andriveau-video__play { position: absolute; inset: 0; width: 100%; border: 0; background: none; cursor: pointer; }
.andriveau-video__play span {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 4.5rem;
    height: 4.5rem;
    margin: -2.25rem 0 0 -2.25rem;
    border-radius: 50%;
    background: var(--andriveau-coral);
}
.andriveau-video__play span::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    margin: -0.8rem 0 0 -0.5rem;
    border-style: solid;
    border-width: 0.8rem 0 0.8rem 1.4rem;
    border-color: transparent transparent transparent #fff;
}
.andriveau-video__play:hover span, .andriveau-video__play:focus-visible span { background: #d34243; }
.andriveau-video__play:focus-visible { outline: 3px solid #fff; outline-offset: -6px; }

/* ---- Card "Les fiches de mariage du fonds Andriveau, une source unique" ---- */
.andriveau-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
    background: #000 var(--andriveau-card-art) no-repeat left center / contain;
    color: #fff;
}
.andriveau-card__body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; background: #000; }
.andriveau-card__text { padding: 1.25rem 0 1.25rem 1.9rem; line-height: 1.3; }
.andriveau-card__text p { margin: 1.25rem 0 0; font-size: 1rem; }
.andriveau-card__title { margin: 0; font-size: 1.5rem; font-weight: 700; line-height: 1.3; color: #fff; }
.andriveau-card__image { display: block; width: 100%; height: auto; }
.andriveau-highlight { color: var(--andriveau-coral); }
@media (max-width: 769px) {
    .andriveau-card { grid-template-columns: 1fr; background-image: var(--andriveau-card-art-small); background-position: center top; }
    .andriveau-card__art { height: 350px; }
}
@media (max-width: 480px) {
    .andriveau-card__body { display: flex; flex-direction: column-reverse; align-items: stretch; }
    .andriveau-card__text { padding: 1.25rem 10px; }
}

/* ---- Three figures ---- */
.andriveau-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 2.5rem 0; padding: 0; list-style: none; }
.andriveau-stats li { padding: 0 0.5rem; text-align: center; font-size: 1.25rem; font-weight: 600; color: var(--andriveau-storm); }
.andriveau-stats li + li { border-left: 1px solid var(--andriveau-storm); }
.andriveau-stat { color: var(--andriveau-coral); }
.andriveau-stat--dark { color: var(--andriveau-storm); }
@media (max-width: 767px) {
    .andriveau-stats { grid-template-columns: 1fr; justify-items: center; }
    .andriveau-stats li { width: 180px; padding: 0.9rem 0; }
    .andriveau-stats li + li { border-left: 0; border-top: 1px solid var(--andriveau-storm); }
}

/* ---- Origin of the collection + the fire of the Commune ---- */
.andriveau-origin { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem 2rem; margin-bottom: 1.25rem; }
.andriveau-origin__text p { margin: 0 0 1.25rem; font-size: 0.95rem; }
.andriveau-origin__more { font-size: 0.95rem; }
.andriveau-insurrection { background: var(--andriveau-lagoon); color: #fff; }
.andriveau-insurrection img { display: block; width: 100%; height: auto; }
.andriveau-insurrection__content { padding: 0 1.25rem 1rem; }
.andriveau-insurrection__content h3 { margin: 1.25rem 0; font-size: 1.15rem; font-weight: 700; color: #fff; }
.andriveau-insurrection__content p { margin: 0; font-size: 1rem; }
@media (max-width: 767px) {
    .andriveau-origin { grid-template-columns: 1fr; }
    .andriveau-origin__more { display: block; margin-bottom: 1.25rem; }
}

.andriveau-conclusion { margin: 5.6rem 0; text-align: center; font-size: 1.75rem; font-weight: 700; color: var(--andriveau-storm); }
@media (max-width: 767px) { .andriveau-conclusion { margin: 3rem 0; font-size: 1.4rem; } }
