/* Préparer la célébration — feuille de style (sans étape de compilation) */

@font-face { font-family: "Libertinus Serif"; src: url("../fonts/LibertinusSerif-Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Libertinus Serif"; src: url("../fonts/LibertinusSerif-Italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Libertinus Serif"; src: url("../fonts/LibertinusSerif-Semibold.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Libertinus Serif"; src: url("../fonts/LibertinusSerif-SemiboldItalic.woff2") format("woff2"); font-weight: 600; font-style: italic; font-display: swap; }
@font-face { font-family: "Libertinus Serif"; src: url("../fonts/LibertinusSerif-Bold.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

:root {
    --encre: #2b2622;
    --doux: #6e655d;
    --rouge: #a3151b;
    --rouge-pale: #f7e9e7;
    --papier: #fbf8f3;
    --carte: #ffffff;
    --filet: #e3dbcf;
    --succes: #2f6b3b;
    --ombre: 0 1px 2px rgba(60, 40, 20, .06), 0 4px 16px rgba(60, 40, 20, .05);
    --rayon: 10px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    background: var(--papier);
    color: var(--encre);
    font-family: "Libertinus Serif", Georgia, "Times New Roman", serif;
    font-size: 1.15rem;
    line-height: 1.5;
    font-variant-ligatures: common-ligatures;
}

a { color: var(--rouge); }
a:hover { text-decoration-thickness: 2px; }

h1, h2, h3 { font-weight: 600; line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: 2rem; text-align: center; letter-spacing: .01em; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.2rem; }

.ornement { display: block; margin: .25rem auto 1.5rem; width: min(260px, 70%); height: auto; color: var(--encre); }
.ornement-petit { display: block; margin: 2.5rem auto; width: min(180px, 50%); height: auto; opacity: .85; }

/* Structure */

.entete {
    background: var(--carte);
    border-bottom: 1px solid var(--filet);
}
.entete-contenu {
    max-width: 52rem;
    margin: 0 auto;
    padding: .75rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}
.marque { color: var(--encre); text-decoration: none; font-weight: 600; font-size: 1.1rem; }
.marque span { color: var(--rouge); }
.entete form { margin: 0; }
.lien-entete { margin-left: auto; }

.page { max-width: 52rem; margin: 0 auto; padding: 2rem 1rem 4rem; }
.page-etroite { max-width: 30rem; }

.pied { text-align: center; color: var(--doux); font-size: .95rem; padding: 1rem 1rem 2.5rem; }
.logo-pied { display: block; margin: 0 auto; width: min(320px, 80%); height: auto; }

/* Cartes et formulaires */

.carte {
    background: var(--carte);
    border: 1px solid var(--filet);
    border-radius: var(--rayon);
    box-shadow: var(--ombre);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.intro { color: var(--doux); text-align: center; font-style: italic; margin-bottom: 2rem; }

label, .libelle { display: block; font-weight: 600; margin-bottom: .3rem; }
.aide { color: var(--doux); font-style: italic; font-size: 1rem; margin: -.1rem 0 .5rem; }

input[type="text"], input[type="email"], input[type="password"], input[type="url"],
input[type="date"], input[type="datetime-local"], textarea, select {
    width: 100%;
    font: inherit;
    font-size: 1.05rem;
    color: var(--encre);
    background: #fff;
    border: 1px solid #cfc5b7;
    border-radius: 6px;
    padding: .55rem .7rem;
}
textarea { min-height: 7rem; resize: vertical; line-height: 1.45; }
input:focus, textarea:focus, select:focus { outline: 2px solid var(--rouge); outline-offset: 1px; border-color: var(--rouge); }

.champ { margin-bottom: 1.25rem; }
.champ:last-child { margin-bottom: 0; }
.erreur { color: var(--rouge); font-size: 1rem; margin-top: .3rem; }
.statut { background: #edf5ee; color: var(--succes); border-radius: 6px; padding: .6rem .8rem; margin-bottom: 1rem; }

.code-saisie { text-align: center; font-size: 1.6rem !important; letter-spacing: .12em; text-transform: uppercase; }

.bouton {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    font: inherit;
    font-weight: 600;
    font-size: 1.05rem;
    border-radius: 6px;
    border: 1px solid var(--rouge);
    background: var(--rouge);
    color: #fff;
    padding: .6rem 1.2rem;
    cursor: pointer;
    text-decoration: none;
}
.bouton:hover { background: #87110f; }
.bouton-large { width: 100%; }
.bouton-secondaire { background: #fff; color: var(--rouge); }
.bouton-secondaire:hover { background: var(--rouge-pale); }
.bouton-lien { background: none; border: none; color: var(--rouge); padding: 0; font: inherit; font-weight: 400; text-decoration: underline; cursor: pointer; }
.bouton-lien:hover { background: none; }
.bouton-petit { font-size: .95rem; padding: .3rem .7rem; }

.case { display: flex; align-items: center; gap: .5rem; font-weight: 400; }
.liens-annexes { text-align: center; margin-top: 1.25rem; font-size: 1rem; }

/* Éditeur de dossier */

.dossier-titre { margin-bottom: .2rem; }
.dossier-sous-titre { text-align: center; color: var(--doux); margin: 0 0 1.5rem; }

.barre-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.code-partage {
    text-align: center;
    background: var(--rouge-pale);
    border-radius: var(--rayon);
    padding: .8rem 1rem;
    margin-bottom: 2rem;
    font-size: 1.02rem;
}
.code-partage strong { letter-spacing: .08em; white-space: nowrap; }

.sommaire {
    position: sticky;
    top: 0;
    z-index: 5;
    background: rgba(251, 248, 243, .96);
    backdrop-filter: blur(4px);
    border-bottom: 1px solid var(--filet);
    margin: 0 -1rem 1.5rem;
    padding: .5rem 1rem;
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    white-space: nowrap;
    font-size: 1rem;
}
.sommaire a { text-decoration: none; color: var(--encre); }
.sommaire a:hover { color: var(--rouge); }

.section-titre {
    font-size: 1.6rem;
    text-align: center;
    margin: 2.5rem 0 .2rem;
    scroll-margin-top: 3.5rem;
}
.section-titre + .ornement { margin-bottom: 1.25rem; width: min(200px, 55%); }

.element { padding: 1.25rem 0; border-bottom: 1px solid var(--filet); }
.element:first-child { padding-top: 0; }
.element:last-child { border-bottom: none; padding-bottom: 0; }

.rubrique { color: var(--rouge); font-style: italic; }
.rubrique::before { content: "✝ "; font-style: normal; }
.note { color: var(--doux); font-style: italic; font-size: 1rem; margin-top: .5rem; }

.intro-section { font-style: italic; color: var(--doux); text-align: center; max-width: 40rem; margin: -.5rem auto 1.5rem; }

.liste-propositions > summary {
    list-style: none;
    display: flex;
    align-items: center;
    gap: .6rem;
    cursor: pointer;
    border: 1px solid var(--filet);
    border-radius: 8px;
    background: #faf6f0;
    padding: .6rem .8rem;
}
.liste-propositions > summary::-webkit-details-marker { display: none; }
.liste-propositions > summary:hover { border-color: var(--rouge); }
.liste-propositions[open] > summary { border-color: var(--rouge); }
.chevron {
    flex: none;
    width: .55rem;
    height: .55rem;
    border-right: 2px solid var(--rouge);
    border-bottom: 2px solid var(--rouge);
    transform: rotate(-45deg);
    transition: transform .15s ease;
}
.liste-propositions[open] > summary .chevron { transform: rotate(45deg); }
.choix-actuel { flex: 1; }
.action-liste { color: var(--rouge); font-size: .98rem; text-decoration: underline; }
.liste-propositions[open] .action-liste { display: none; }

.propositions { display: grid; gap: .5rem; margin: .5rem 0 1rem; }
.proposition {
    border: 1px solid var(--filet);
    border-radius: 8px;
    background: #fff;
}
.proposition.choisie { border-color: var(--rouge); box-shadow: 0 0 0 1px var(--rouge); background: #fffdfb; }
.proposition-entete { display: flex; align-items: flex-start; gap: .6rem; padding: .6rem .8rem; cursor: pointer; font-weight: 400; margin: 0; }
.proposition-entete input { margin-top: .35rem; accent-color: var(--rouge); width: 1.1rem; height: 1.1rem; flex: none; }
.proposition-numero { color: var(--rouge); font-weight: 600; }
.proposition-reference { color: var(--doux); font-style: italic; font-size: .95rem; display: block; }
.proposition details { padding: 0 .8rem .6rem 2.5rem; }
.proposition summary { cursor: pointer; color: var(--rouge); font-size: .98rem; }
.texte-liturgique { font-size: 1.05rem; margin-top: .5rem; }
.texte-liturgique p { margin: 0 0 .7em; }
.texte-liturgique .introduction { font-weight: 600; }
.repons { color: var(--rouge); font-family: "DejaVu Sans", "Segoe UI Symbol", "Apple Symbols", sans-serif; font-size: .9em; }
.refrain { font-style: italic; }

.sous-champ { margin-top: .8rem; }
.sous-champ label { font-weight: 400; font-style: italic; }

.musique-saisie { display: grid; gap: .5rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .musique-saisie { grid-template-columns: 3fr 2fr; } }
.ecouter { font-size: .98rem; }
.suggestions { margin-top: .6rem; }
.suggestions summary { cursor: pointer; color: var(--rouge); font-size: 1rem; }
.suggestions ul { list-style: none; padding: 0; margin: .5rem 0 0; display: grid; gap: .35rem; }
.suggestions li { display: flex; flex-wrap: wrap; align-items: baseline; gap: .3rem .8rem; font-size: 1rem; padding: .35rem .5rem; border-radius: 6px; background: #faf6f0; }
.suggestions li .titre-musique { flex: 1 1 14rem; }
.suggestions .compositeur { color: var(--doux); }

.options { display: flex; flex-wrap: wrap; gap: 1.5rem; }

.enregistrement {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    background: var(--encre);
    color: #fff;
    border-radius: 999px;
    padding: .35rem .9rem;
    font-size: .95rem;
    box-shadow: var(--ombre);
}

.liste-dossiers { list-style: none; padding: 0; display: grid; gap: .75rem; }
.liste-dossiers a { display: block; text-decoration: none; color: inherit; }

.texte-information h2 { margin-top: 1.5rem; }
.texte-information p, .texte-information li { margin-bottom: .6em; }

@media (max-width: 480px) {
    body { font-size: 1.08rem; }
    h1 { font-size: 1.65rem; }
    .carte { padding: 1.1rem; }
    .section-titre { font-size: 1.4rem; }
}
