/* Salle paroissiale de Bois-de-Villers — feuille de style unique
   Couleurs : papier, carte, sapin, terre cuite, encre. Polices hébergées sur le site. */

@font-face { font-family: "Fraunces"; src: url("../fonts/fraunces-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible"; src: url("../fonts/atkinson-hyperlegible-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible"; src: url("../fonts/atkinson-hyperlegible-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  --papier: #F7F3EC;
  --carte: #FFFDF8;
  --ligne: #E3DCCF;
  --ligne-forte: #D6CDBD;
  --encre: #23281F;
  --gris: #5B6157;
  --sapin: #2F4A3A;
  --sapin-fonce: #1E3328;
  --sapin-clair: #E7EEE6;
  --terre: #A84A2A;
  --terre-fonce: #8C3B20;
  --sable: #E9C9A8;
  --titre: "Fraunces", Georgia, "Times New Roman", serif;
  --texte: "Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", sans-serif;
  --rayon: 14px;
  --largeur: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--papier);
  color: var(--encre);
  font-family: var(--texte);
  font-size: 1.0625rem;
  line-height: 1.55;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--sapin); text-underline-offset: 3px; }
a:hover { color: var(--sapin-fonce); }
:focus-visible { outline: 3px solid var(--terre); outline-offset: 2px; }

h1, h2, h3 { font-family: var(--titre); font-weight: 600; line-height: 1.15; margin: 0; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 5vw + 0.6rem, 3.25rem); }
h2 { font-size: clamp(1.6rem, 2.2vw + 0.8rem, 2.2rem); }
h3 { font-size: 1.3rem; }
p { margin: 0; }

.lien-evitement { position: absolute; left: -9999px; top: 0; background: var(--carte); padding: 10px 14px; z-index: 100; }
.lien-evitement:focus { left: 12px; top: 12px; }

.conteneur { width: 100%; max-width: var(--largeur); margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .conteneur { padding: 0 32px; } }

/* En-tête */
.entete { position: sticky; top: 0; z-index: 50; background: rgba(247, 243, 236, 0.97); border-bottom: 1px solid var(--ligne); }
.entete__barre { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.logo { display: flex; flex-direction: column; line-height: 1.15; text-decoration: none; color: var(--encre); }
.logo__nom { font-family: var(--titre); font-weight: 600; font-size: 1.15rem; }
.logo__lieu { font-size: 0.82rem; color: var(--gris); }
.menu-bouton { width: 44px; height: 44px; border: 1px solid var(--ligne-forte); border-radius: 10px; background: var(--carte); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; color: var(--encre); }
.nav { display: none; }
.nav ul { list-style: none; margin: 0; padding: 0; }
.nav a { text-decoration: none; color: var(--encre); font-weight: 700; }
.nav a[aria-current="page"] { color: var(--terre); }
.entete.ouvert .nav { display: block; position: absolute; left: 0; right: 0; top: 100%; background: var(--papier); border-bottom: 1px solid var(--ligne); padding: 8px 16px 20px; }
.entete.ouvert .nav li a { display: block; padding: 12px 0; border-bottom: 1px solid var(--ligne); }
.entete.ouvert .nav .bouton { margin-top: 14px; }
@media (min-width: 960px) {
  .menu-bouton { display: none; }
  .nav { display: block; }
  .nav ul { display: flex; align-items: center; gap: 22px; }
  .nav li a:not(.bouton) { font-size: 0.98rem; padding: 6px 0; }
  .nav li a:not(.bouton):hover { color: var(--terre); }
}

/* Boutons */
.bouton { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 22px; border-radius: 12px; font-weight: 700; text-decoration: none; text-align: center; border: 1.5px solid transparent; cursor: pointer; font: inherit; font-weight: 700; }
.bouton--action { background: var(--terre); color: #fff; }
.bouton--action:hover { background: var(--terre-fonce); color: #fff; }
.bouton--contour { border-color: var(--sapin); color: var(--sapin); background: transparent; }
.bouton--contour:hover { background: var(--sapin-clair); color: var(--sapin-fonce); }
.bouton--petit { min-height: 44px; padding: 0 16px; }
.boutons { display: flex; flex-direction: column; gap: 10px; }
@media (min-width: 600px) { .boutons { flex-direction: row; flex-wrap: wrap; } }

/* Sections */
.section { padding: 48px 0; }
.section--carte { background: var(--carte); }
.section--sapin { background: var(--sapin); color: var(--papier); }
.section--sapin a { color: #fff; }
.section__tete { display: flex; flex-direction: column; gap: 10px; margin-bottom: 24px; max-width: 720px; }
.section__intro { color: var(--gris); }
.section--sapin .section__intro { color: #D9E2D6; }
@media (min-width: 768px) { .section { padding: 72px 0; } }
.pile { display: flex; flex-direction: column; gap: 16px; }
.discret { color: var(--gris); font-size: 0.95rem; }

/* Ouverture accueil */
.ouverture__image { width: 100%; height: 300px; object-fit: cover; object-position: center 45%; }
.ouverture__texte { padding-top: 28px; padding-bottom: 36px; display: flex; flex-direction: column; gap: 18px; }
.pastilles { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.pastilles li { font-size: 0.88rem; padding: 6px 12px; border-radius: 999px; background: var(--sapin-clair); color: var(--sapin); }
@media (min-width: 960px) {
  .ouverture { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); align-items: stretch; max-width: var(--largeur); margin: 0 auto; padding: 40px 32px 0; gap: 48px; }
  .ouverture__texte { padding-top: 24px; padding-bottom: 48px; justify-content: center; }
  .ouverture__image { height: 100%; min-height: 460px; border-radius: 18px; order: 2; }
  .ouverture .conteneur { padding: 0; }
}

/* En-tête des pages intérieures */
.page-tete { padding-top: 40px; padding-bottom: 8px; }
.page-tete h1 { font-size: clamp(2rem, 3vw + 1rem, 2.8rem); }
.page-tete p { margin-top: 12px; color: var(--gris); max-width: 680px; font-size: 1.1rem; }

/* Grilles */
.grille { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 768px) { .grille--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.grille-2 { display: grid; gap: 20px; }
@media (min-width: 768px) { .grille-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; } }

.occasion { display: flex; flex-direction: column; gap: 4px; padding: 16px; border: 1px solid var(--ligne); border-radius: 12px; text-decoration: none; color: var(--encre); background: var(--carte); min-height: 44px; }
.section--carte .occasion { background: var(--papier); }
.occasion strong { font-size: 1rem; }
.occasion span { font-size: 0.9rem; color: var(--gris); }
a.occasion:hover { border-color: var(--sapin); color: var(--encre); }

/* Cartes salles */
.salle { background: var(--carte); border: 1px solid var(--ligne); border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; }
.salle img { width: 100%; height: 220px; object-fit: cover; }
.salle__corps { padding: 18px; display: flex; flex-direction: column; gap: 6px; }
.salle__capacite { font-weight: 700; color: var(--sapin); }
.salle__texte { color: var(--gris); }

/* Listes à coches */
.coches { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.coches li { display: flex; gap: 10px; align-items: flex-start; }
.coches svg { flex: none; margin-top: 4px; }
@media (min-width: 768px) { .coches--2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; } }
.puces { margin: 0; padding-left: 1.2em; display: flex; flex-direction: column; gap: 6px; }

.compris { display: grid; gap: 24px; align-items: center; }
.compris img { width: 100%; height: 220px; object-fit: cover; border-radius: var(--rayon); }
@media (min-width: 900px) { .compris { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; } .compris img { height: 340px; } }

/* Tarifs */
.prix { background: var(--carte); border: 1px solid var(--ligne); border-radius: var(--rayon); padding: 18px; display: flex; flex-direction: column; gap: 2px; }
.prix__libelle { font-size: 0.9rem; color: var(--gris); }
.prix__montant { font-family: var(--titre); font-weight: 600; font-size: 2rem; line-height: 1.1; }
.prix__note { font-size: 0.82rem; color: var(--gris); }
.tableau-defile { overflow-x: auto; border: 1px solid var(--ligne); border-radius: var(--rayon); background: var(--carte); }
table { border-collapse: collapse; width: 100%; min-width: 520px; }
th, td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--ligne); }
thead th { font-size: 0.9rem; color: var(--gris); font-weight: 700; }
tbody tr:last-child td, tbody tr:last-child th { border-bottom: 0; }
tbody th { font-weight: 700; }
td { white-space: nowrap; }

/* Étapes */
.etapes { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; counter-reset: etape; }
.etapes li { display: flex; gap: 14px; align-items: flex-start; counter-increment: etape; }
.etapes li::before { content: counter(etape); flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--sapin-clair); color: var(--sapin); font-weight: 700; display: flex; align-items: center; justify-content: center; }
@media (min-width: 900px) { .etapes { grid-template-columns: repeat(4, minmax(0, 1fr)); } .etapes li { flex-direction: column; } }

/* Vie de la salle */
.mosaique { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.mosaique img { width: 100%; height: 140px; object-fit: cover; object-position: center 30%; border-radius: var(--rayon); }
.mosaique img:first-child { grid-column: 1 / -1; height: 200px; object-position: center 45%; }
@media (min-width: 900px) {
  .mosaique { grid-template-columns: 1.6fr 1fr; grid-template-rows: 170px 170px; }
  .mosaique img { height: 100%; }
  .mosaique img:first-child { grid-column: 1; grid-row: 1 / 3; height: 100%; }
}
.evenements { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.evenement { display: flex; gap: 14px; align-items: center; padding: 12px 14px; background: var(--carte); border: 1px solid var(--ligne); border-radius: 12px; }
.evenement__date { flex: none; width: 54px; text-align: center; line-height: 1.1; }
.evenement__jour { font-family: var(--titre); font-weight: 600; font-size: 1.6rem; }
.evenement__mois { font-size: 0.78rem; color: var(--gris); }
.evenement__infos { font-size: 0.9rem; color: var(--gris); }
.evenements__vide { color: var(--gris); }

.lien-icone { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-weight: 700; text-decoration: none; }

/* Photos de page */
.photo-large { width: 100%; height: 260px; object-fit: cover; border-radius: 16px; }
@media (min-width: 768px) { .photo-large { height: 420px; } }
.galerie { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.galerie img { width: 100%; height: 150px; object-fit: cover; border-radius: 12px; }
@media (min-width: 768px) { .galerie { grid-template-columns: repeat(3, minmax(0, 1fr)); } .galerie img { height: 220px; } }

.fiche { display: grid; gap: 20px; }
@media (min-width: 900px) { .fiche { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 40px; align-items: start; } }
.fiche__chiffres { display: flex; flex-wrap: wrap; gap: 8px 18px; font-weight: 700; color: var(--sapin); }

/* FAQ */
.faq details { border-bottom: 1px solid var(--ligne); padding: 4px 0; }
.faq summary { cursor: pointer; font-weight: 700; padding: 12px 0; min-height: 44px; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--titre); font-size: 1.4rem; line-height: 1; color: var(--sapin); }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 0 14px; color: var(--gris); }

/* Encadré */
.encadre { background: var(--carte); border: 1px solid var(--ligne); border-radius: var(--rayon); padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.encadre--sapin { background: var(--sapin-clair); border-color: transparent; }

/* Calendrier */
.calendrier { width: 100%; height: 1100px; border: 1px solid var(--ligne); border-radius: var(--rayon); background: #fff; }
@media (min-width: 768px) { .calendrier { height: 960px; } }

/* Pied de page */
.pied { background: var(--encre); color: #E9E4DA; padding: 40px 0 110px; font-size: 0.95rem; }
.pied a { color: #E9E4DA; }
.pied a:hover { color: #fff; }
.pied__nom { font-family: var(--titre); font-weight: 600; font-size: 1.2rem; color: var(--papier); }
.pied__grille { display: grid; gap: 22px; }
.pied__liens { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; }
.pied__petit { color: #BDB6A8; font-size: 0.88rem; }
@media (min-width: 768px) { .pied { padding-bottom: 40px; } .pied__grille { grid-template-columns: 1fr 1.4fr; gap: 40px; } }

/* Bouton fixe mobile */
.barre-action { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(247, 243, 236, 0.97); border-top: 1px solid var(--ligne); }
.barre-action .bouton { width: 100%; min-height: 50px; }
@media (min-width: 768px) { .barre-action { display: none; } }

.texte-legal { max-width: 760px; display: flex; flex-direction: column; gap: 14px; }
.texte-legal h2 { font-size: 1.5rem; margin-top: 18px; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media print { .entete, .barre-action, .pied nav { display: none; } body { background: #fff; } }
.visuellement-cache { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.logo { flex-direction: row; align-items: center; gap: 10px; }
.logo__image { width: 44px; height: 44px; border-radius: 8px; flex: none; }
.logo__texte { display: flex; flex-direction: column; line-height: 1.15; }
.nav a.bouton--action, .nav a.bouton--action[aria-current="page"] { color: #fff; }
