/* ateliermutel.com — ce qui est propre au site. Le socle (couleurs, cadre, liens, boutons, pied) est dans commun.css. */

body {
    font-family: var(--sans);
    font-size: 17px;
    line-height: 1.55;
    --corps-lecture: clamp(1.05rem, 1.4vw, 1.25rem);
}

/* ---------- Accueil ---------- */

/* Premier écran : 85 % de la hauteur, en-tête compris (mesuré par accueil.js, 9 rem par défaut),
   pour que le haut du bandeau de photos apparaisse dès l'arrivée */
.intro {
    min-height: calc(85vh - var(--hauteur-entete, 9rem));
    min-height: calc(85svh - var(--hauteur-entete, 9rem));
    display: flex;
    align-items: center;
    padding-block: var(--esp-section);
}

.intro-cadre {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1em var(--gap-colonnes);
    font-size: clamp(1.3rem, 2.1vw, 1.9rem);
    font-weight: 800;
    line-height: 1.3;
}

@media (min-width: 900px) {
    .intro-cadre {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: start;
    }
}

.intro-cadre p {
    max-width: 46rem;
    margin: 0 0 1em;
}

.intro-colonne > :last-child {
    margin-bottom: 0;
}

/* La litanie prolonge le manifeste : même corps, même police. Hauteur réservée pour la phrase la plus longue. */
.litanie {
    min-height: var(--hauteur-litanie, auto);
}

/* La litanie parle d'une seule voix avec le manifeste : même graisse, seul le mouvement signale ce qui change */
.litanie-tirage {
    cursor: pointer;
}

.litanie-tirage:hover,
.litanie-tirage:focus-visible {
    background: none;
    color: inherit;
}

.litanie-tirage:focus-visible {
    outline: var(--trait) solid var(--noir);
    outline-offset: 0.15em;
}

/* Chaque mot glisse dans sa propre fenêtre : il sort par le haut, le suivant entre par le bas */
.mot {
    display: inline-block;
    overflow: hidden;
    vertical-align: top;
    padding-bottom: 0.08em;
    margin-bottom: -0.08em;
}

.mot > span {
    display: inline-block;
}

/* Second écran : le bandeau de photos, toute la hauteur, collé au bloc « dernier projet » */
.scene {
    height: 100vh;
    height: 100svh;
    min-height: 24rem;
}

.defile {
    height: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    cursor: grab;
    outline-offset: -3px;
    user-select: none;
    -webkit-user-select: none;
}

.defile::-webkit-scrollbar {
    display: none;
}

.defile-saisi {
    cursor: grabbing;
}

/* Une seule surface continue : les photos se touchent, sans gouttière */
.defile-piste {
    display: flex;
    gap: 0;
    height: 100%;
    width: max-content;
}

.defile-piste picture {
    height: 100%;
    flex: none;
}

.defile-piste img {
    height: 100%;
    width: auto;
    max-width: none;
    max-height: none;
    background: var(--fond-image);
    -webkit-user-drag: none;
}

/* Dernier projet : aplat noir sur toute la largeur, texte dans le cadre */
.projet {
    display: block;
    margin: 0;
    padding: var(--esp-section) 0;
    background: var(--noir);
    color: var(--blanc);
    text-decoration: none;
}

.projet-cadre {
    display: grid;
    gap: 0.2rem;
}

.projet:hover,
.projet:focus-visible {
    background: var(--noir);
    color: var(--blanc);
}

.projet-label {
    color: var(--gris-sur-noir);
}

.projet-titre {
    font-family: var(--titre);
    font-weight: 600;
    text-transform: uppercase;
    font-size: clamp(2.4rem, 7vw, 5rem);
    line-height: 0.95;
}

.projet:hover .projet-titre,
.projet:focus-visible .projet-titre {
    text-decoration: underline;
    text-decoration-thickness: var(--trait);
    text-underline-offset: 0.12em;
}

/* Sur l'accueil, le pied suit directement l'aplat noir : pas de filet ni de vide entre les deux */
.page-accueil .pied {
    margin-top: 0;
    border-top: 0;
}

/* ---------- Page projet ---------- */

.projet-entete {
    padding-block: var(--esp-section) var(--esp-4);
}

.projet-grand-titre {
    margin: 0;
    font-family: var(--titre);
    font-weight: 600;
    text-transform: uppercase;
    font-size: clamp(3rem, 11vw, 9rem);
    line-height: 0.88;
}

.projet-grand-auteur {
    margin: var(--esp-2) 0 0;
}

.video {
    margin-block: 0;
    background: var(--fond-image);
}

.video video {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.projet-corps {
    padding-block: var(--esp-section);
}

/* Cartel : même construction que la fiche d'Acid Airlines */
.projet-fiche {
    padding-top: var(--esp-2);
    border-top: var(--trait) solid var(--noir);
    font-family: var(--mono);
    font-size: 0.85rem;
    line-height: 1.5;
}

.projet-fiche p {
    margin: 0 0 0.85rem;
}

.projet-fiche p:last-child {
    margin-bottom: 0;
    font-weight: 800;
}

.projet-texte {
    max-width: 40rem;
    font-size: var(--corps-lecture);
    line-height: 1.5;
}

.projet-texte p {
    margin: 0 0 1em;
}

.galerie {
    columns: 1;
    column-gap: var(--gap-images);
}

@media (min-width: 700px) {
    .galerie {
        columns: 2;
    }
}

.galerie .planche {
    margin-bottom: var(--gap-images);
    break-inside: avoid;
}

/* Making of : aplat noir pleine page, contenu aligné sur le cadre */
.making-of {
    margin-top: var(--esp-section);
    padding: var(--esp-section) 0 calc(var(--esp-section) - var(--gap-images));
    background: var(--noir);
    color: var(--blanc);
}

.making-of-titre {
    margin: 0 0 var(--esp-4);
    font-family: var(--titre);
    font-weight: 600;
    text-transform: uppercase;
    font-size: clamp(2rem, 4.5vw, 3.4rem);
    line-height: 0.9;
}

/* Après un aplat noir, le pied colle à l'aplat */
.making-of + .pied,
main:has(> .making-of:last-child) + .pied {
    margin-top: 0;
    border-top: 0;
}

/* ---------- 404 ---------- */

.introuvable {
    padding-block: var(--esp-section);
    font-size: 1.3rem;
}
