/* =============================================
   Bretz'selle — Main Stylesheet
   ============================================= */

/* --- Variables --- */
:root {
  --yellow:       #f2c830;
  --yellow-hover: #ddb520;
  --dark:         #1a1a1a;
  --text:         #2e2e2e;
  --muted:        #666;
  --light:        #f7f5f0;
  --white:        #fff;
  --border:       #e5e2db;
  --shadow:       0 2px 12px rgba(0,0,0,.07);
  --shadow-lg:    0 8px 32px rgba(0,0,0,.12);
  --radius:       6px;
  --radius-lg:    14px;
  --container:    1080px;
  --font-heading: 'Montserrat', system-ui, sans-serif;
  --font-body:    'Open Sans', system-ui, -apple-system, sans-serif;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
address { font-style: normal; }

/* --- Typography --- */
h1, h2, h3, h4, h5 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--dark);
}
h1 { font-size: clamp(1.9rem, 4.5vw, 3.2rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.4rem); }
h4 { font-size: 1rem; }
p  { margin-bottom: 1em; }
p:last-child { margin-bottom: 0; }
strong { font-weight: 600; }
em { font-style: italic; }

/* --- Layout --- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* =============================================
   HEADER & NAVIGATION
   ============================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--white);
  border-bottom: 3px solid var(--yellow);
  box-shadow: var(--shadow);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

/* Logo */
.site-logo {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  flex-shrink: 0;
}
.logo-eyebrow {
  font-family: var(--font-heading);
  font-size: 0.6rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}
.logo-name {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--dark);
  letter-spacing: -0.01em;
}

/* Nav */
.site-nav ul {
  display: flex;
  align-items: center;
  gap: 0.1rem;
}
.nav-item { position: relative; }
.nav-link {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  padding: 0.45rem 0.7rem;
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--dark);
  border-radius: var(--radius);
  white-space: nowrap;
  transition: background 0.15s;
}
.nav-link:hover { background: var(--light); }
.nav-link.active { color: var(--dark); background: var(--light); }
.nav-link.nav-cta {
  background: var(--yellow);
  color: var(--dark);
  padding: 0.45rem 1rem;
  margin-left: 0.25rem;
}
.nav-link.nav-cta:hover { background: var(--yellow-hover); }
.chevron { font-size: 0.55rem; opacity: 0.5; }

/* Dropdowns */
.has-dropdown .dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 220px;
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 2px solid var(--yellow);
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 0.4rem 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.18s, transform 0.18s, visibility 0.18s;
}
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown-link {
  display: block;
  padding: 0.55rem 1.1rem;
  font-size: 0.85rem;
  color: var(--text);
  transition: background 0.1s, color 0.1s;
}
.dropdown-link:hover { background: var(--light); color: var(--dark); }

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 38px;
  height: 38px;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  padding: 6px 8px;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}

/* =============================================
   BUTTONS
   ============================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.7rem 1.4rem;
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 700;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  letter-spacing: 0.02em;
  transition: background 0.15s, color 0.15s, border-color 0.15s, transform 0.1s, box-shadow 0.15s;
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,0,0,.12); }
.btn-primary  { background: var(--yellow); color: var(--dark); }
.btn-primary:hover  { background: var(--yellow-hover); }
.btn-dark     { background: var(--dark); color: var(--white); }
.btn-dark:hover     { background: #333; }
.btn-outline  { background: transparent; color: var(--dark); border-color: currentColor; }
.btn-outline:hover  { background: var(--dark); color: var(--white); border-color: var(--dark); }
.btn-sm { padding: 0.5rem 1rem; font-size: 0.8rem; }

/* =============================================
   HERO
   ============================================= */
.hero {
  background-color: var(--dark);
  background-image: url('/assets/img/hero.jpg');
  background-size: cover;
  background-position: center;
  color: var(--white);
  padding: 5rem 0 4.5rem;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  pointer-events: none;
}
.hero-content { max-width: 640px; position: relative; z-index: 1; }
.hero h1 {
  color: var(--white);
  margin-bottom: 1.5rem;
  font-weight: 900;
  text-shadow: 0 2px 8px rgba(0,0,0,0.8);
}
.hero h1 em {
  font-style: normal;
  color: var(--yellow);
}
.hero-lead {
  font-size: 1.05rem;
  color: rgba(255,255,255,.95);
  line-height: 1.75;
  margin-bottom: 2rem;
  max-width: 580px;
  text-shadow: 0 1px 4px rgba(0,0,0,0.9);
}
.hero-membership {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-left: 4px solid var(--yellow);
  border-radius: var(--radius);
  padding: 1.5rem 1.75rem;
  margin-bottom: 2rem;
  max-width: 500px;
}
.hero-membership h3 {
  color: var(--yellow);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.75rem;
}
.hero-membership ul {
  padding-left: 0;
  margin-bottom: 0.75rem;
}
.hero-membership li {
  padding: 0.2rem 0 0.2rem 1.25rem;
  position: relative;
  color: rgba(255,255,255,.8);
  font-size: 0.9rem;
}
.hero-membership li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--yellow);
  font-weight: 700;
}
.hero-membership p {
  font-size: 0.875rem;
  color: rgba(255,255,255,.5);
  margin-bottom: 1.25rem;
}

/* =============================================
   INFO SECTION (Hours + Recurring events)
   ============================================= */
.info-section { padding: 4rem 0; background: var(--light); }
.info-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 1.75rem;
  align-items: start;
}

.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow);
}
.card-title {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--yellow);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Hours table */
.hours-table { width: 100%; border-collapse: collapse; }
.hours-table tr { border-bottom: 1px solid var(--border); }
.hours-table tr:last-child { border-bottom: none; }
.hours-table td { padding: 0.6rem 0.25rem; font-size: 0.9rem; vertical-align: middle; }
.hours-table .day {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--dark);
  width: 100px;
  text-transform: capitalize;
}
.hours-table .note {
  font-size: 0.75rem;
  color: var(--muted);
  margin-left: 0.4rem;
}
.hours-note {
  margin-top: 1rem;
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.6;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
}

/* Recurring events */
.recurring-list { display: flex; flex-direction: column; gap: 1.1rem; }
.recurring-item { display: flex; gap: 1rem; align-items: flex-start; }
.recurring-when {
  background: var(--yellow);
  color: var(--dark);
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.3rem 0.6rem;
  border-radius: var(--radius);
  white-space: nowrap;
  flex-shrink: 0;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-top: 0.15rem;
}
.recurring-info h4 { font-size: 0.95rem; margin-bottom: 0.15rem; }
.recurring-info h4 a:hover { color: var(--muted); text-decoration: underline; }
.recurring-info p { font-size: 0.825rem; color: var(--muted); margin: 0; }

/* =============================================
   ENGAGE SECTION (Newsletter, Calendar)
   ============================================= */
.engage-section { padding: 4rem 0; }
.section-title { font-size: 1rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin-bottom: 1.5rem; }
.engage-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
.engage-card {
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.engage-card:hover { border-color: var(--yellow); box-shadow: var(--shadow); }
.engage-icon { font-size: 1.75rem; margin-bottom: 0.75rem; }
.engage-card h3 { font-size: 1.05rem; margin-bottom: 0.5rem; }
.engage-card p { font-size: 0.875rem; color: var(--muted); margin-bottom: 1.25rem; }

/* =============================================
   NEWS SECTION
   ============================================= */
.news-section { padding: 4rem 0; background: var(--light); }
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
}
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.5rem;
}
.news-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
}
.news-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.news-card-thumb {
  aspect-ratio: 16/9;
  background: var(--light);
  overflow: hidden;
}
.news-card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.news-card:hover .news-card-thumb img { transform: scale(1.05); }
.news-card-thumb-placeholder {
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--yellow) 0%, var(--yellow-hover) 100%);
  opacity: 0.25;
}
.news-card-body { padding: 1.25rem; flex: 1; display: flex; flex-direction: column; }
.news-date {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 0.4rem;
}
.news-title {
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.35;
  flex: 1;
  margin-bottom: 0.75rem;
}
.news-more {
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  transition: color 0.15s;
  margin-top: auto;
}
.news-card:hover .news-more { color: var(--dark); }

/* =============================================
   FOOTER
   ============================================= */
.site-footer {
  background: var(--dark);
  color: rgba(255,255,255,.75);
  padding-top: 3.5rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
}
.footer-logo {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 900;
  color: var(--white);
  margin-bottom: 1rem;
}
.footer-address { font-size: 0.875rem; line-height: 1.9; }
.footer-address a { color: rgba(255,255,255,.6); transition: color 0.15s; }
.footer-address a:hover { color: var(--yellow); }

.footer-section-title {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,.4);
  margin-bottom: 1rem;
}
.footer-hours-table { width: 100%; border-collapse: collapse; }
.footer-hours-table td { padding: 0.3rem 0; font-size: 0.85rem; vertical-align: top; }
.footer-hours-table .day { font-weight: 600; color: rgba(255,255,255,.9); width: 90px; }
.footer-links li { margin-bottom: 0.55rem; }
.footer-links a { font-size: 0.875rem; color: rgba(255,255,255,.6); transition: color 0.15s; }
.footer-links a:hover { color: var(--yellow); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 1.25rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  color: rgba(255,255,255,.3);
}

/* =============================================
   PAGE & POST LAYOUTS
   ============================================= */
.page-wrap { padding: 3.5rem 0 5rem; }
.page-header {
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 3px solid var(--yellow);
}
.page-header h1 { font-size: clamp(1.6rem, 4vw, 2.4rem); }
.page-body { max-width: 700px; }
.page-body h2 { margin: 2rem 0 0.75rem; font-size: 1.35rem; }
.page-body h3 { margin: 1.5rem 0 0.5rem; font-size: 1.1rem; }
.page-body ul { list-style: disc; padding-left: 1.5rem; margin-bottom: 1rem; }
.page-body ol { list-style: decimal; padding-left: 1.5rem; margin-bottom: 1rem; }
.page-body li { margin-bottom: 0.4rem; }
.page-body a { color: var(--dark); text-decoration: underline; text-underline-offset: 3px; }
.page-body a:hover { opacity: 0.7; }
.page-body table { border-collapse: collapse; margin-bottom: 1rem; font-size: 0.9rem; }
.page-body table td, .page-body table th { padding: 0.5rem 0.75rem; border: 1px solid var(--border); }
.page-body table th { background: var(--light); font-weight: 600; }

.post-wrap { padding: 3.5rem 0 5rem; }
.post-header { margin-bottom: 2.5rem; padding-bottom: 1.5rem; border-bottom: 3px solid var(--yellow); }
.post-meta {
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--muted);
  margin-bottom: 0.75rem;
}
.post-body { max-width: 700px; }
.post-body p, .post-body li { line-height: 1.75; }
.post-body h2 { margin: 2rem 0 0.75rem; }
.post-body h3 { margin: 1.5rem 0 0.5rem; }
.post-body ul { list-style: disc; padding-left: 1.5rem; margin-bottom: 1rem; }
.post-body li { margin-bottom: 0.4rem; }
.post-body a { color: var(--dark); text-decoration: underline; text-underline-offset: 3px; }
.post-body img { border-radius: var(--radius); margin: 1.5rem 0; }
.post-footer { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--border); }

/* =============================================
   ACTUALITÉS LIST PAGE
   ============================================= */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}
.posts-empty { color: var(--muted); font-style: italic; margin-top: 2rem; }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 800px) {
  .nav-toggle { display: flex; }
  .site-nav {
    display: none;
    position: absolute;
    top: 71px;
    left: 0; right: 0;
    background: var(--white);
    border-top: 1px solid var(--border);
    border-bottom: 3px solid var(--yellow);
    box-shadow: var(--shadow-lg);
    padding: 0.75rem 1.5rem 1.25rem;
  }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .nav-link {
    padding: 0.75rem 0;
    border-radius: 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.9rem;
  }
  .nav-link.nav-cta {
    margin: 0.75rem 0 0;
    border-radius: var(--radius);
    border-bottom: none;
    justify-content: center;
  }
  .has-dropdown .dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    border-top: none;
    border-radius: 0;
    padding: 0.25rem 0 0.5rem 0.75rem;
    background: var(--light);
  }
  .dropdown-link { font-size: 0.85rem; padding: 0.45rem 0.75rem; }
  .chevron { display: none; }
  .info-grid { grid-template-columns: 1fr; }
  .engage-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}
@media (max-width: 560px) {
  .hero { padding: 3rem 0 3.5rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
  .section-header { flex-direction: column; align-items: flex-start; gap: 0.75rem; }
  .news-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 380px) {
  .news-grid { grid-template-columns: 1fr; }
}
