/* ==========================================================================
   Page d'accueil
   ========================================================================== */

/* --- Hero : photo pleine largeur, voile dégradé, texte centré --- */
.hero { position: relative; overflow: hidden; background: var(--encre); color: var(--blanc); }
.hero__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 40% 62%; }
.hero__voile { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14, 46, 63, .78) 0%, rgba(14, 46, 63, .5) 42%, rgba(14, 46, 63, .15) 68%, rgba(14, 46, 63, .55) 100%); }
.hero__inner { position: relative; max-width: 900px; margin: 0 auto; padding: clamp(48px, 8vw, 88px) var(--gutter) clamp(110px, 14vw, 170px); text-align: center; display: flex; flex-direction: column; align-items: center; }
.hero__title { font-family: var(--font-titre); font-size: clamp(30px, 5.4vw, 50px); line-height: 1.1; margin: 0 0 18px; font-weight: 800; text-wrap: balance; text-shadow: 0 2px 16px rgba(14, 46, 63, .4); }
.hero__text { font-size: 17px; line-height: 1.6; max-width: 620px; margin: 0 0 28px; text-wrap: pretty; text-shadow: 0 1px 10px rgba(14, 46, 63, .5); }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
.btn--voile { background: rgba(14, 46, 63, .25); }

/* --- Encadrés « Cette semaine » / « Nos événements » qui remontent sur la photo --- */
.apercu { background: var(--creme); }
.apercu__inner { position: relative; max-width: 780px; margin: clamp(-80px, -6vw, -48px) auto 0; padding: 0 var(--gutter) 8px; }
.apercu__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 16px; }
.apercu__box { display: flex; flex-direction: column; background: var(--bleu); border: 1px solid var(--bleu); border-radius: 6px; padding: 14px 20px; box-shadow: 0 10px 30px rgba(14, 46, 63, .12); color: var(--blanc); }
.apercu__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 4px; padding-bottom: 10px; }
.apercu__title { font-family: var(--font-titre); font-weight: 700; font-size: 19px; }
.apercu__note { font-size: 13px; }
.apercu__row { min-height: 44px; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 6px 0; border-top: 1px solid var(--bleu-bord); text-decoration: none; color: var(--blanc); }
.apercu__row:hover { color: var(--blanc); }
.apercu__row:hover .apercu__nom { text-decoration: underline; }
.apercu__nom { font-size: 15px; min-width: 0; }
.apercu__val { font-size: 13px; font-weight: 700; white-space: nowrap; }
.apercu__note-bas { font-size: 13px; margin: 14px 0 0; font-style: italic; text-align: center; }

/* --- Newsletter --- */
.newsletter { background: var(--bleu); color: var(--blanc); }
.newsletter__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 28px 56px; align-items: center; padding-top: 56px; padding-bottom: 56px; }
.newsletter .tag { margin-bottom: 14px; }
.newsletter__title { font-family: var(--font-titre); font-size: 30px; margin: 0 0 10px; text-wrap: pretty; }
.newsletter__text { font-size: 15px; line-height: 1.6; margin: 0; max-width: 520px; }
.newsletter__form { display: flex; flex-wrap: wrap; gap: 10px; }
.newsletter__form input { flex: 1 1 240px; min-width: 0; border: 1px solid var(--bleu-bord); border-radius: 4px; padding: 13px 14px; font-size: 15px; background: var(--bleu-clair); color: var(--blanc); }
.newsletter__form input::placeholder { color: var(--blanc); opacity: 1; }
.newsletter__hint { font-size: 13px; margin: 10px 0 0; }

/* --- Événements --- */
.events { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 28px; }
.events__card { border-radius: 8px; padding: 28px; position: relative; align-self: start; }
.events__card--dark { background: var(--bleu-clair); border: 1px solid var(--bleu-bord); color: var(--blanc); }
.events__card--light { background: var(--blanc); border: 1px solid var(--sable); }
.events__head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.events__head h3 { font-family: var(--font-titre); font-size: 19px; margin: 0; }
.events__card--light .events__head h3 { color: var(--bleu); }
.events__scroll { max-height: 320px; overflow-y: auto; }
.events__empty { border-top: 1px solid var(--sable); padding: 16px 0 0; font-size: 15px; margin: 0; }
.events__more { display: flex; justify-content: center; width: 100%; margin-top: 8px; background: none; border: none; padding: 4px; cursor: pointer; }
.events__more[hidden] { display: none; }
.events__card--dark .events__more { color: rgba(255, 255, 255, .6); }
.events__card--light .events__more { color: var(--sable-fonce); }

.event { display: flex; gap: 16px; padding: 16px 0; border-top: 1px solid var(--sable); }
.events__card--dark .event { border-top-color: #4C58BE; }
.event__date { flex-shrink: 0; width: 56px; height: fit-content; text-align: center; border-radius: 6px; padding: 6px 4px; background: var(--creme); border: 1px solid var(--sable); }
.events__card--dark .event__date { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .35); }
.event__day { font-family: var(--font-titre); font-size: 15px; font-weight: 800; line-height: 1; color: var(--bleu); white-space: nowrap; }
.events__card--dark .event__day { color: var(--blanc); }
.event__month { font-size: 11px; font-weight: 700; letter-spacing: .04em; color: var(--rouge); margin-top: 2px; }
.events__card--dark .event__month { color: var(--blanc); }
.event__body { flex: 1; min-width: 0; }
.event__place { font-size: 13px; color: var(--rouge); font-weight: 700; text-transform: uppercase; letter-spacing: .03em; margin-bottom: 4px; }
.event__row { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 2px; }
.event__title { flex: 1 1 auto; min-width: 0; font-size: 15px; font-weight: 600; }
.events__card--dark .event__title { font-weight: 700; }
.event__desc { font-size: 13px; margin: 0; line-height: 1.5; }
.event__desc--tight { margin-top: 2px; }
.event__note { font-size: 13px; font-weight: 700; margin: 6px 0 0; line-height: 1.5; }
.events__card--dark .btn-mini { color: var(--blanc); border-color: #fbf6ec; }
.events__card--dark .btn-mini:hover { background: var(--bleu); }

/* --- Aperçu "Qui sommes-nous" --- */
.teaser { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 56px; align-items: center; }
.teaser__img { width: 100%; height: 340px; object-fit: cover; border-radius: 8px; }
.teaser__text { font-size: 15px; line-height: 1.7; margin: 0 0 12px; }
.teaser__text--last { margin-bottom: 24px; }
.link-underline { text-decoration: none; color: var(--bleu); font-weight: 700; font-size: 15px; border-bottom: 2px solid var(--rouge); padding-bottom: 2px; }

/* --- Galerie --- */
.section--gallery { padding: 56px 0; }
.section__title--gallery { font-size: 26px; margin-bottom: 28px; }
.gallery { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; }
/* Taille fixe 320 x 320 : sans min-width, une image s'élargit à sa taille réelle dans un flex */
.gallery__item { flex: 0 0 320px; width: 320px; height: 320px; min-width: 0; max-width: none; align-self: flex-start; object-fit: cover; scroll-snap-align: start; border-radius: 4px; }
.gallery__item--empty { display: flex; align-items: center; justify-content: center; text-align: center; padding: 16px; background: #f1ebdc; color: #8a8f86; font-size: 14px; }


.events__card--dark .events__empty { border-top-color: #4C58BE; }
