/* ==========================================================
   Le Point Nommé · feuille de style
   Charte : bordeaux #4b2127 · sable #cabb76 · crème #e6e3d5
   Titres Poppins Black · texte Montserrat
   ========================================================== */

/* ---------- Polices auto-hébergées (licence OFL) ---------- */
@font-face {
  font-family: "Poppins";
  src: url("../assets/fonts/poppins-latin-700-normal.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Poppins";
  src: url("../assets/fonts/poppins-latin-900-normal.woff2") format("woff2");
  font-weight: 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Montserrat";
  src: url("../assets/fonts/montserrat-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Montserrat";
  src: url("../assets/fonts/montserrat-latin-wght-italic.woff2") format("woff2");
  font-weight: 100 900; font-style: italic; font-display: swap;
}

/* ---------- Variables ---------- */
:root {
  --bordeaux: #4b2127;
  --bordeaux-deep: #2e1418;
  --sable: #cabb76;
  --creme: #e6e3d5;
  --blanc: #ffffff;
  --texte-doux: #6b4a4f;
  --vert: #3f7a3a;

  --font-titre: "Poppins", "Arial Black", sans-serif;
  --font-texte: "Montserrat", "Helvetica Neue", Arial, sans-serif;

  --page-pad: clamp(20px, 5.5vw, 80px);
  --section-pad: clamp(64px, 9vw, 112px);
  --radius-l: clamp(20px, 2.2vw, 28px);
  --radius-m: clamp(16px, 1.6vw, 22px);
  --container: 1280px;
  --header-h: 80px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--creme);
  color: var(--bordeaux);
  font-family: var(--font-texte);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { margin: 0; font-family: var(--font-titre); line-height: 1.05; }
p { margin: 0; }
a { color: inherit; }
button { font: inherit; color: inherit; }

:focus-visible { outline: 3px solid var(--bordeaux); outline-offset: 3px; border-radius: 4px; }
.section--dark :focus-visible, .site-footer :focus-visible, .suspendu :focus-visible { outline-color: var(--sable); }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--bordeaux); color: var(--creme); padding: 10px 16px; border-radius: 8px;
  font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: calc(var(--container) + 2 * var(--page-pad)); margin: 0 auto; padding-inline: var(--page-pad); }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 26px; border-radius: 999px;
  font-family: var(--font-texte); font-weight: 700; font-size: 15px; line-height: 1.2;
  text-decoration: none; cursor: pointer; border: 2px solid var(--bordeaux);
  transition: background-color .2s, color .2s;
}
.btn--dark { background: var(--bordeaux); color: var(--creme); }
.btn--dark:hover { background: var(--bordeaux-deep); border-color: var(--bordeaux-deep); }
.btn--outline { background: transparent; color: var(--bordeaux); }
.btn--outline:hover { background: var(--bordeaux); color: var(--creme); }

.pill {
  display: inline-block; align-self: flex-start;
  border: 1.5px solid var(--bordeaux); border-radius: 999px; padding: 7px 16px;
  font-family: var(--font-titre); font-weight: 700; font-size: 12px; letter-spacing: .12em; text-transform: uppercase;
}

/* ---------- En-tête ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(230, 227, 213, .94);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(75, 33, 39, .15);
}
.site-header__inner {
  height: var(--header-h);
  max-width: calc(var(--container) + 2 * var(--page-pad)); margin: 0 auto; padding-inline: var(--page-pad);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.site-header__logo img { height: 52px; width: auto; }
.site-nav { display: flex; align-items: center; gap: clamp(18px, 2.5vw, 36px); font-weight: 600; font-size: 15px; }
.site-nav a:not(.btn) { text-decoration: none; padding: 6px 0; border-bottom: 2px solid transparent; }
.site-nav a:not(.btn):hover { border-bottom-color: var(--bordeaux); }
.site-nav .btn { min-height: 44px; padding: 10px 22px; }

.nav-toggle { display: none; width: 48px; height: 48px; border: 0; background: transparent; cursor: pointer; border-radius: 12px; }
.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after {
  display: block; width: 26px; height: 2.5px; background: var(--bordeaux); border-radius: 2px;
  position: relative; margin: 0 auto; transition: transform .25s, background-color .25s;
}
.nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle__bars::before { top: -8px; }
.nav-toggle__bars::after { top: 8px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  max-width: calc(var(--container) + 2 * var(--page-pad)); margin: 0 auto;
  padding: clamp(32px, 5vw, 56px) var(--page-pad) clamp(48px, 6vw, 72px);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 64px); align-items: center;
}
.hero__text { display: flex; flex-direction: column; gap: 26px; }
.hero__title {
  font-weight: 900; font-size: clamp(42px, 5.6vw, 76px); line-height: 1.02; letter-spacing: -.01em; text-transform: uppercase;
}
/* .hero__title mark { background: var(--sable); color: inherit; padding: 0 .16em; border-radius: .14em; -webkit-box-decoration-break: clone; box-decoration-break: clone; } */
.hero__title mark {
  display: inline-block;
  background: var(--sable);
  color: inherit;
  line-height: .92;
  padding: .06em .16em .02em;
  border-radius: .14em;
}
.hero__lead { font-size: clamp(17px, 1.5vw, 19px); max-width: 34em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }

.status { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 15px; }
.status__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--vert); flex-shrink: 0; box-shadow: 0 0 0 4px rgba(63, 122, 58, .18); }
.status.is-closed .status__dot { background: var(--texte-doux); box-shadow: 0 0 0 4px rgba(107, 74, 79, .15); }

.hero__media { position: relative; }
.hero__media > img { width: 100%; aspect-ratio: 16 / 13; object-fit: cover; border-radius: var(--radius-l); }
.hero__badge {
  position: absolute; left: clamp(-28px, -2vw, -12px); bottom: 36px;
  display: flex; flex-direction: column; gap: 2px; max-width: 80%;
  background: var(--bordeaux); color: var(--creme); text-decoration: none;
  border-radius: 20px; padding: 18px 24px; box-shadow: 0 12px 30px rgba(75, 33, 39, .25);
}
.hero__badge strong { font-family: var(--font-titre); font-weight: 900; font-size: clamp(20px, 2vw, 26px); letter-spacing: .02em; text-transform: uppercase; line-height: 1.1; }
.hero__badge span { color: var(--sable); font-weight: 600; font-size: 15px; }

/* ---------- Séparateur festonné (repris du flyer) ---------- */
.scallop {
  height: 24px;
  background: radial-gradient(circle at 24px 24px, var(--sable) 23.5px, transparent 24px) repeat-x left bottom / 48px 24px;
}

/* ---------- Sections ---------- */
.section { padding-block: var(--section-pad); }
.section--sable { background: var(--sable); padding-top: clamp(32px, 4vw, 48px); }
.section--dark { background: var(--bordeaux); color: var(--creme); }
.section__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: clamp(28px, 4vw, 48px); }
.section__title { font-weight: 900; font-size: clamp(34px, 4.4vw, 56px); line-height: 1; text-transform: uppercase; }
.section__title .accent { color: var(--sable); }
.section__sub { margin-top: 12px; font-size: clamp(16px, 1.4vw, 18px); max-width: 40em; }

/* ---------- Événements ---------- */
.date-block {
  width: 104px; height: 112px; flex-shrink: 0; border-radius: 18px;
  background: var(--bordeaux); color: var(--creme);
  display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.1;
}
.date-block__dow, .date-block__month { font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.date-block__dow { color: var(--sable); }
.date-block__day { font-family: var(--font-titre); font-weight: 900; font-size: 44px; line-height: 1; margin: 2px 0; }

.tag {
  display: inline-flex; align-items: center; border-radius: 999px; padding: 6px 14px;
  font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  border: 1.5px solid var(--bordeaux);
}
.tag--dark { background: var(--bordeaux); color: var(--creme); }

.featured {
  background: var(--creme); border-radius: var(--radius-l); padding: clamp(18px, 2.4vw, 32px);
  display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: center;
  margin-bottom: clamp(24px, 3vw, 40px);
}
.featured__media img { width: 100%; aspect-ratio: 707 / 1000; object-fit: cover; border-radius: 16px; }
.featured__body { display: flex; flex-direction: column; gap: 22px; padding-right: clamp(0px, 2vw, 32px); }
.featured__tags { display: flex; flex-wrap: wrap; gap: 10px; }
.featured__heading { display: flex; align-items: center; gap: 22px; }
.featured__title { font-weight: 900; font-size: clamp(28px, 3.2vw, 44px); }
.featured__meta { display: flex; flex-wrap: wrap; gap: 8px 28px; font-weight: 600; }
.featured__actions { display: flex; flex-wrap: wrap; gap: 12px; }

.rich { font-size: 17px; line-height: 1.7; }
.rich p + p { margin-top: .8em; }
.rich a { font-weight: 600; text-underline-offset: 3px; }
.rich ul, .rich ol { margin: .6em 0; padding-left: 1.3em; }

.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 2.4vw, 32px); }
.card { background: var(--creme); border-radius: var(--radius-m); overflow: hidden; display: flex; flex-direction: column; }
.card__media { position: relative; }
.card__media img { width: 100%; aspect-ratio: 16 / 11; object-fit: cover; }
.card__body { padding: 22px 24px 28px; display: flex; flex-direction: column; gap: 12px; flex-grow: 1; }
.card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.card__date {
  background: var(--bordeaux); color: var(--creme); border-radius: 8px; padding: 5px 10px;
  font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
}
.card__date--outline { background: transparent; color: var(--bordeaux); border: 1.5px solid var(--bordeaux); padding: 4px 9px; }
.card__type { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.card__title { font-family: var(--font-titre); font-weight: 700; font-size: 22px; line-height: 1.2; }
.card__excerpt { font-size: 15px; }
.card__actions { margin-top: auto; display: flex; flex-wrap: wrap; gap: 4px 24px; }
.card__toggle {
  padding: 6px 0; min-height: 44px;
  background: none; border: 0; border-bottom: 2px solid var(--bordeaux);
  font-weight: 700; font-size: 14px; cursor: pointer;
}
.card__full[hidden] { display: none; }
.card.is-open .card__excerpt { display: none; }

.events-more { display: flex; justify-content: center; margin-top: clamp(28px, 3vw, 40px); }
.events-more:has(> [hidden]:only-child) { display: none; }
.events-empty { background: var(--creme); border-radius: var(--radius-m); padding: 28px; font-weight: 600; text-align: center; }

/* État de chargement */
.skeleton { background: rgba(230, 227, 213, .55); border-radius: var(--radius-m); min-height: 320px; }

/* ---------- Le lieu ---------- */
.pillars { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.pillar { background: var(--blanc); border-radius: var(--radius-m); padding: 30px 26px; display: flex; flex-direction: column; gap: 14px; }
.pillar__icon { width: 60px; height: 60px; border-radius: 50%; background: var(--sable); display: grid; place-items: center; align-self: center; }
.pillar__icon svg { width: 30px; height: 30px; fill: none; stroke: var(--bordeaux); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.pillar h3 { font-weight: 700; font-size: 24px; text-align: center; }
.pillar p { font-size: 15px; }

.suspendu {
  margin-top: clamp(24px, 3vw, 32px);
  background: var(--bordeaux); color: var(--creme); border-radius: var(--radius-l);
  padding: clamp(32px, 4vw, 48px) clamp(24px, 4vw, 56px);
  display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: clamp(20px, 4vw, 56px); align-items: center;
}
.suspendu__title { font-weight: 900; font-size: clamp(30px, 3vw, 40px); text-transform: uppercase; }
.suspendu__title span { color: var(--sable); }
.suspendu p { font-size: 18px; line-height: 1.7; }

/* ---------- Galerie ---------- */
.gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: clamp(180px, 19vw, 270px); gap: clamp(12px, 1.4vw, 20px); }
.gallery__item { padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: var(--radius-m); overflow: hidden; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.gallery__item:hover img { transform: scale(1.03); }
.gallery__item--big { grid-column: span 2; grid-row: span 2; }
.gallery__item--tall { grid-row: span 2; }

.lightbox {
  width: 100vw; height: 100vh; max-width: 100vw; max-height: 100vh; margin: 0; padding: 0; border: 0;
  background: rgba(46, 20, 24, .94); color: var(--creme);
}
.lightbox[open] { display: flex; align-items: center; justify-content: center; }
.lightbox::backdrop { background: transparent; }
.lightbox figure { margin: 0; max-width: min(90vw, 1400px); display: flex; flex-direction: column; align-items: center; gap: 12px; }
.lightbox img { max-height: 82vh; width: auto; border-radius: 12px; }
.lightbox figcaption { font-size: 15px; text-align: center; }
.lightbox__close, .lightbox__nav {
  position: absolute; width: 52px; height: 52px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(230, 227, 213, .12); color: var(--creme); font-size: 32px; line-height: 1;
}
.lightbox__close:hover, .lightbox__nav:hover { background: rgba(230, 227, 213, .25); }
.lightbox__close { top: 18px; right: 18px; }
.lightbox__nav--prev { left: 18px; top: 50%; transform: translateY(-50%); }
.lightbox__nav--next { right: 18px; top: 50%; transform: translateY(-50%); }

/* ---------- Infos pratiques ---------- */
.infos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.info-card { background: var(--blanc); border-radius: var(--radius-m); padding: 30px; display: flex; flex-direction: column; gap: 20px; }
.info-card h3 { font-weight: 700; font-size: 24px; }
.info-card__address { font-style: normal; font-size: 16px; }
.info-card__phone { font-size: 18px; font-weight: 700; text-decoration: none; }
.info-card__phone:hover { text-decoration: underline; }
.socials { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; font-weight: 600; font-size: 15px; }
.socials a { text-decoration: none; border-bottom: 1.5px solid var(--bordeaux); padding-bottom: 2px; }

.hours { margin: 0; display: grid; grid-template-columns: auto 1fr; row-gap: 8px; font-size: 15px; }
.hours dt { font-weight: 600; }
.hours dd { margin: 0; padding-left: 16px; text-align: right; }
.hours .is-today { font-weight: 700; background: var(--creme); }
.hours .is-today { padding-block: 3px; }
.hours dt.is-today { border-radius: 8px 0 0 8px; margin-left: -10px; padding-left: 10px; }
.hours dd.is-today { border-radius: 0 8px 8px 0; margin-right: -10px; padding-right: 10px; }
.hours__note { font-size: 14px; color: var(--texte-doux); }

.map {
  position: relative; min-height: 360px; border-radius: var(--radius-m); overflow: hidden; background: var(--sable);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
}
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map__load {
  display: flex; flex-direction: column; align-items: center; gap: 10px; min-height: 44px;
  background: none; border: 0; cursor: pointer; font-weight: 700; font-size: 16px;
}
.map__load svg { width: 44px; height: 44px; fill: none; stroke: var(--bordeaux); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.map__route {
  font-size: 14px; font-weight: 700; text-decoration: none; border-bottom: 1.5px solid var(--bordeaux);
}
.map.is-loaded .map__route {
  position: absolute; left: 14px; bottom: 14px; z-index: 2; background: var(--bordeaux); color: var(--creme);
  border: 0; border-radius: 999px; padding: 10px 16px;
}

/* ---------- Pied de page ---------- */
.site-footer { background: var(--bordeaux); color: var(--creme); padding-block: 56px 32px; }
.site-footer__inner { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 28px; }
.site-footer__brand { font-family: var(--font-titre); font-weight: 900; font-size: 30px; letter-spacing: .02em; text-transform: uppercase; line-height: 1.1; }
.site-footer__brand span { color: var(--sable); }
.site-footer__tag { margin-top: 8px; font-size: 14px; letter-spacing: .1em; text-transform: uppercase; }
.site-footer__links { display: flex; flex-wrap: wrap; gap: 28px; font-weight: 600; font-size: 14px; }
.site-footer__links a { text-decoration: none; }
.site-footer__links a:hover { text-decoration: underline; }
.site-footer__admin { color: var(--sable); }
.site-footer__copy { margin-top: 32px; font-size: 13px; color: #d9d3bf; }

/* ==========================================================
   Responsive
   ========================================================== */
@media (max-width: 1100px) {
  .pillars { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .infos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .map { grid-column: span 2; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  :root { --header-h: 68px; }
  .site-header__logo img { height: 44px; }

  .nav-toggle { display: block; }
  .site-nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--creme); border-bottom: 1px solid rgba(75, 33, 39, .15);
    padding: 8px var(--page-pad) 24px; font-size: 18px;
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .2s, transform .2s, visibility .2s;
  }
  .site-nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .site-nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid rgba(75, 33, 39, .12); }
  .site-nav .btn { margin-top: 18px; min-height: 52px; }

  .hero { grid-template-columns: minmax(0, 1fr); }
  .hero__media { order: -1; }
  .hero__media > img { aspect-ratio: 4 / 3; }
  .hero__badge { left: 14px; bottom: 14px; padding: 14px 18px; }

  .featured { grid-template-columns: minmax(0, 1fr); }
  .featured__media { max-width: 420px; }
  .featured__body { padding-right: 0; }

  .suspendu { grid-template-columns: minmax(0, 1fr); }

  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: clamp(150px, 38vw, 260px); }
  .gallery__item--tall { grid-row: span 2; }
}

@media (max-width: 640px) {
  .cards, .pillars, .infos { grid-template-columns: minmax(0, 1fr); }
  .map { grid-column: auto; min-height: 300px; }
  .section__head { flex-direction: column; align-items: flex-start; }
  .featured__heading { flex-direction: column; align-items: flex-start; gap: 16px; }
  .date-block { width: 88px; height: 94px; }
  .date-block__day { font-size: 36px; }
  .hero__actions .btn { flex: 1 1 auto; }
  .pill { letter-spacing: .06em; font-size: 11px; }
  .scallop { background-size: 32px 16px; height: 16px; background-image: radial-gradient(circle at 16px 16px, var(--sable) 15.5px, transparent 16px); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
