/* ==========================================================================
   en face de toi — global theme (warm, Hinge-inspired, single typeface)
   One font everywhere: Bricolage Grotesque (loaded in base.html.twig).
   Swap placeholder photos by setting --img on any .imgblock, or by replacing
   the files referenced in --bg-hero etc. (see /public/images/).
   ========================================================================== */

:root {
  /* Warm palette */
  --paper:        #FBF6F0;   /* cream background */
  --paper-2:      #F3EAE0;   /* deeper cream for alt sections */
  --ink:          #2A211E;   /* warm near-black text */
  --ink-soft:     #4A3F3A;
  --muted:        #8A7C74;
  --line:         #EBDFD3;
  --accent:       #F0533B;   /* warm coral — primary accent */
  --accent-ink:   #FFFFFF;
  --accent-soft:  #FADFD3;   /* peachy tint for blocks */
  --accent-2:     #E7A17A;   /* secondary warm */
  --plum:         #3A2230;   /* deep contrast for dark sections */
  --brick:        #B23A34;   /* home accent — used for the shared footer */

  /* Shape & motion */
  --r:    18px;
  --r-lg: 30px;
  --pill: 999px;
  --ease: cubic-bezier(.22,.61,.36,1);
  --wrap: 1180px;
  --shadow: 0 24px 60px -28px rgba(58,34,30,.45);

  /* Type — aligned with the home: Inter for body, Playfair for display titles. */
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Playfair Display', Georgia, serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  /* No element may spill a horizontal scrollbar on phones/tablets. `clip`
     (not `hidden`) keeps position:sticky navs working. */
  overflow-x: clip;
}

/* ---- Responsive + accessibility baseline (every page: front + member) ---- */
/* Media never overflows its container. */
img, video, iframe, canvas, table { max-width: 100%; }
/* Long words / URLs / e-mails wrap instead of pushing the layout wide. */
h1, h2, h3, h4, p, li, dd, a, blockquote, figcaption { overflow-wrap: break-word; }
/* Keyboard focus is always visible; mouse users are unaffected. */
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 3px; }
/* Light focus ring on dark surfaces. */
.section--plum :focus-visible, .foot :focus-visible, .hero :focus-visible,
.ev-nav :focus-visible, .imperso-bar :focus-visible { outline-color: #fff; }
/* The scripted focus target (a page's <main>) must not show a stray outline. */
[tabindex="-1"]:focus { outline: none; }

/* Skip-to-content link — off-screen until focused (keyboard / screen-reader). */
.skip-link {
  position: fixed; left: 12px; top: -80px; z-index: 1000;
  background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 10px;
  font-weight: 600; text-decoration: none; box-shadow: var(--shadow);
  transition: top .18s var(--ease);
}
.skip-link:focus { top: 12px; outline: 2px solid #fff; outline-offset: 2px; }
a { color: inherit; }
img { display: block; max-width: 100%; }
h1, h2, h3 { font-weight: 700; letter-spacing: -.02em; line-height: 1.02; margin: 0; }
p { margin: 0; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 clamp(20px, 4vw, 44px); }
.section { padding: clamp(56px, 8vw, 120px) 0; }
.section--alt { background: var(--paper-2); }
.section--plum { background: var(--plum); color: #F7EFEA; }

.eyebrow {
  font-size: 13px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: var(--accent); margin: 0 0 18px;
}
.display {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(42px, 7vw, 96px); line-height: 1; letter-spacing: -.015em;
}
.h2 { font-family: var(--font-display); font-weight: 500; font-size: clamp(30px, 4.6vw, 56px); letter-spacing: -.01em; }
.lead { font-size: clamp(17px, 1.5vw, 21px); color: var(--ink-soft); line-height: 1.5; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  height: 56px; padding: 0 30px; border-radius: var(--pill);
  font-family: var(--font); font-size: 16px; font-weight: 600; text-decoration: none; cursor: pointer;
  border: 1.5px solid transparent; transition: transform .2s var(--ease), background .2s var(--ease),
  color .2s var(--ease), border-color .2s var(--ease), box-shadow .25s var(--ease);
}
.btn svg { width: 18px; height: 18px; transition: transform .25s var(--ease); }
/* Buttons are black & white only (no accent colour), by design choice. */
.btn--accent { background: var(--ink); color: #fff; }
.btn--accent:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn--accent:hover svg { transform: translateX(4px); }
.btn--ink { background: var(--ink); color: #fff; }
.btn--ink:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: #fff; }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn--sm { height: 46px; padding: 0 22px; font-size: 15px; }
.btn:active { transform: translateY(0); }

/* ---- Nav ---- */
.nav { position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  backdrop-filter: saturate(140%) blur(14px); -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--line); }
.nav__in { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none;
  font-weight: 800; font-size: 23px; letter-spacing: -.02em; color: var(--ink); }
.brand__dot { width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: #fff;
  display: grid; place-items: center; font-size: 19px; font-weight: 700; line-height: 1; }
.nav__actions { display: flex; align-items: center; gap: 6px; }
.nav__link { text-decoration: none; font-size: 15px; font-weight: 600; color: var(--ink);
  padding: 10px 15px; border-radius: var(--pill); transition: background .2s var(--ease); }
.nav__link:hover { background: color-mix(in srgb, var(--accent-soft) 60%, transparent); }

/* Burger — hidden on desktop, shown on mobile */
.nav__burger { display: none; width: 46px; height: 42px; border: 0; background: transparent; cursor: pointer;
  flex-direction: column; justify-content: center; gap: 5px; padding: 0; }
.nav__burger span { display: block; width: 26px; height: 2px; margin: 0 auto; background: var(--ink); border-radius: 2px;
  transition: transform .25s var(--ease), opacity .2s var(--ease); }
.nav__burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger.is-open span:nth-child(2) { opacity: 0; }
.nav__burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 720px) {
  .nav__burger { display: flex; }
  /* Collapse the nav into a dropdown panel toggled by the burger. */
  .nav__actions {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 40px -24px rgba(0,0,0,.28);
    padding: 6px clamp(16px, 5vw, 32px) 16px;
    max-height: 0; overflow: hidden; visibility: hidden;
    transition: max-height .28s var(--ease);
  }
  .nav__actions.is-open { max-height: 80vh; visibility: visible; }
  .nav__link, .nav__link--keep { display: block; padding: 14px 4px; font-size: 17px;
    border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav__actions a:last-child { border-bottom: 0; }
  .nav__link--keep.btn { align-self: flex-start; display: inline-flex; margin-top: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .nav__actions, .nav__burger span { transition: none; }
}

/* ---- Image blocks (placeholder-ready) ----
   Set a real photo with:  style="--img:url('/uploads/…')"  on the element. */
.imgblock {
  position: relative; border-radius: var(--r-lg); overflow: hidden;
  background:
    var(--img, none),
    linear-gradient(135deg, var(--accent-soft), var(--accent-2));
  background-size: cover; background-position: center;
  box-shadow: var(--shadow);
  min-height: 260px;
}
.imgblock::after {
  content: attr(data-label);
  position: absolute; left: 16px; bottom: 14px;
  font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: rgba(255,255,255,.92); background: rgba(42,33,30,.32); padding: 5px 12px; border-radius: var(--pill);
  backdrop-filter: blur(4px);
}
.imgblock[data-label=""]::after, .imgblock:not([data-label])::after { content: none; }

/* Full-bleed hero background (photo-ready). Replace /images/hero.jpg to set a real photo. */
.hero-bg {
  position: relative; color: #fff; overflow: hidden;
  background:
    linear-gradient(180deg, rgba(42,33,30,.20), rgba(42,33,30,.55)),
    var(--bg-hero, none),
    radial-gradient(120% 90% at 70% 10%, var(--accent-2), var(--accent) 55%, var(--plum));
  background-size: cover; background-position: center;
}

/* ---- Footer (shared, brick — matches the home) ---- */
:root { --color-footer: #B23A34; }
.foot { background: var(--color-footer); color: #fff; padding: clamp(24px,3.4vw,40px) 0 22px; }
.foot__in { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.foot a { color: #fff; text-decoration: none; opacity: .85; }
.foot a:hover { opacity: 1; }
.foot__logo { height: 22px; width: auto; opacity: .9; }
.foot__links { display: flex; gap: 24px; flex-wrap: wrap; }
.foot__links a { font-size: 14.5px; }
.foot__copy { opacity: .75; font-size: 13px; }

/* Social icon row — only rendered when at least one network is configured */
.foot__social { display: flex; align-items: center; gap: 10px; }
.foot__social a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.28); opacity: .85;
  transition: opacity .15s ease, border-color .15s ease, background-color .15s ease;
}
.foot__social a:hover { opacity: 1; border-color: rgba(255,255,255,.6); background: rgba(255,255,255,.08); }
.foot__social svg { width: 17px; height: 17px; display: block; fill: currentColor; }

/* Bottom bar — copyright + legal links, split by a hairline rule */
.foot__bottom {
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px 24px; flex-wrap: wrap;
  margin-top: clamp(18px,2.4vw,26px); padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,.16);
}
.foot__legal { display: flex; gap: 20px; flex-wrap: wrap; }
.foot__legal a { font-size: 13px; opacity: .72; }
.foot__legal a:hover { opacity: 1; }

@media (max-width: 620px) {
  .foot__in { flex-direction: column; align-items: flex-start; gap: 16px; }
  .foot__bottom { flex-direction: column; align-items: flex-start; gap: 12px; }
}

/* ---- Brand logo (nav) ---- */
.brand__logo { height: 30px; width: auto; display: block; }

/* ---- Flash / utility ---- */
.flash { padding: .7rem 1.1rem; background: #fff; border-left: 4px solid var(--accent);
  border-radius: 0 var(--r) var(--r) 0; margin-bottom: 1rem; box-shadow: var(--shadow); }

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

/* ---- Google Places city autocomplete dropdown ---- */
.pac-container { border:1px solid var(--line); border-radius:12px; margin-top:4px;
  box-shadow:0 18px 40px -18px rgba(42,33,30,.4); font-family:var(--font); z-index:100000; }
.pac-item { padding:8px 12px; font-size:14px; cursor:pointer; border-top:1px solid var(--line); }
.pac-item:first-child { border-top:0; }
.pac-item:hover, .pac-item-selected { background:var(--paper-2); }
.pac-item-query { font-size:14px; color:var(--ink); }
.pac-icon { display:none; }
