/* Trouvetonvéto — base styles, design tokens & shared components
   Colors & type from CHARTE GRAPHIQUE TROUVETONVETO */

@font-face {
  font-family: "Bahnschrift";
  src: url("../fonts/Bahnschrift.ttf") format("truetype");
  font-weight: 100 700;
  font-stretch: 75% 100%;
  font-display: swap;
}
@font-face {
  font-family: "Gilgongo";
  src: url("../fonts/Gilgongo.ttf") format("truetype");
  font-weight: 400 700;
  font-display: swap;
}

:root {
  /* Brand palette */
  --green: #0a5858; /* Vert Compagnon — primary */
  --coral: #cc7256; /* Corail Repère — secondary */
  --green-support: #749ea7; /* Vert soutien — hover / soft */
  --ivory: #f4f6f3; /* Ivoire soin — backgrounds */
  --grey-serein: #e5e5e5; /* separators / light fills */
  --black: #000000;
  --grey-consult: #2e2e2e; /* secondary text / dark UI */

  --text: #1f2a2a;
  --muted: #6b7574;
  --white: #ffffff;

  /* Type */
  --font-title: "Bahnschrift", "Segoe UI", system-ui, sans-serif;
  --font-body: "Bahnschrift", "Segoe UI", system-ui, sans-serif;
  --font-logo: "Gilgongo", var(--font-title);

  --header-h: 100px;
  --radius-pill: 999px;
  --radius-card: 16px;
  --shadow-soft: 0 10px 30px rgba(16, 40, 40, 0.08);
  --shadow-card: 0 6px 24px rgba(16, 40, 40, 0.06);
  --container: 1200px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

html {
  background: var(--white);
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 350;
  font-stretch: 90%;
  color: var(--text);
  background: var(--white);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  /* Sticky footer: keep the footer pinned to the bottom on short pages
     (otherwise the white html background shows below it). */
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
body > main,
body > .admin {
  flex: 1 0 auto;
}
.site-footer {
  flex-shrink: 0;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-title);
  font-weight: 700;
  font-stretch: 90%;
  margin: 0;
  color: var(--text);
  line-height: 1.15;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
  /* Prevent the browser's native image drag/ghost on all imagery. */
  -webkit-user-drag: none;
  -khtml-user-drag: none;
  -moz-user-drag: none;
  -o-user-drag: none;
  user-select: none;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  cursor: pointer;
  font-family: var(--font-title);
  font-weight: 600;
  font-stretch: 90%;
  font-size: 16px;
  border-radius: var(--radius-pill);
  padding: 14px 30px;
  transition: background-color 0.15s ease, color 0.15s ease,
    transform 0.05s ease;
}
.btn:active {
  transform: translateY(1px);
}
.btn--coral {
  background: var(--coral);
  color: var(--white);
}
.btn--coral:hover {
  background: #bb6147;
}
.btn--green {
  background: var(--green);
  color: var(--white);
}
.btn--green:hover {
  background: #0c6a6a;
}
.btn--ghost {
  background: transparent;
  color: var(--green);
  border: 1.5px solid var(--green);
}

/* ---------- Site header ---------- */
.site-header {
  background: var(--white);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
}
.brand img {
  height: 84px;
  width: auto;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 16px;
  color: var(--grey-consult);
}
.main-nav a {
  color: var(--grey-consult);
}
.main-nav a:hover {
  color: var(--green);
}
.main-nav .sep {
  width: 1px;
  height: 22px;
  background: #cfd6d5;
  display: inline-block;
}
.main-nav .lang {
  font-weight: 600;
}
.nav-toggle {
  display: none;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 2.5px;
  background: var(--grey-consult);
  margin: 5px 0;
  border-radius: 2px;
}

/* ---------- Site footer ---------- */
.site-footer {
  background: var(--grey-consult);
  color: #e9ecec;
}
.site-footer .container {
  display: flex;
  align-items: center;
  gap: 32px;
  min-height: 80px;
  flex-wrap: wrap;
}
.site-footer .brand-text {
  font-family: var(--font-logo);
  font-size: 22px;
  color: var(--white);
  letter-spacing: 0.2px;
}
.site-footer .brand-text .veto {
  color: var(--coral);
}
.footer-nav {
  display: flex;
  gap: 36px;
  margin-inline: auto;
  font-size: 15px;
}
.footer-nav a:hover {
  color: var(--white);
}
.footer-social {
  display: flex;
  gap: 12px;
  align-items: center;
}
.footer-social a {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--white);
  color: var(--grey-consult);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.footer-social svg {
  width: 16px;
  height: 16px;
}

/* ---------- Brand wordmark (fallback text logo) ---------- */
.wordmark {
  font-family: var(--font-logo);
  font-weight: 700;
  color: var(--black);
}
.wordmark .veto {
  color: var(--coral);
}

@media (max-width: 860px) {
  :root {
    --header-h: 84px;
  }
  .brand img {
    height: 66px;
  }
  .main-nav {
    display: none;
  }
  .nav-toggle {
    display: block;
  }
  .footer-nav {
    order: 3;
    width: 100%;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
  }
  .site-footer .container {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 18px;
    padding-block: 24px;
  }
  .footer-nav {
    margin-inline: 0;
  }
}

/* Mobile nav dropdown (opened by .nav-toggle) */
@media (max-width: 860px){
  .site-header .container{position:relative}
  .site-header.nav-open .main-nav{display:flex;flex-direction:column;align-items:flex-start;gap:14px;position:absolute;top:100%;left:0;right:0;background:#fff;padding:18px 22px;box-shadow:0 14px 30px rgba(0,0,0,.12);z-index:60}
  .site-header.nav-open .main-nav .sep{display:none}
}

/* Language switch */
.lang-switch{display:inline-flex;align-items:center;gap:6px;font-weight:600}
.lang-switch a{color:#9aa3a1}
.lang-switch a.is-active{color:var(--green)}
.lang-switch .lang-sep{color:#cfd6d5}
/* Disabled button (e.g. no online booking) */
.btn--disabled{background:#e7eaed;color:#8a8f8e;cursor:not-allowed;pointer-events:none;display:inline-flex;align-items:center;justify-content:center}

/* Floating emergency button (persistent, bottom-right, all public pages) */
.ttv-sos {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 10000;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 14px 22px 14px 20px;
  border-radius: var(--radius-pill);
  background: #e04b34;
  color: #fff;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.2px;
  text-decoration: none;
  box-shadow: 0 10px 26px -6px rgba(224, 75, 52, 0.65), 0 2px 6px rgba(0, 0, 0, 0.18);
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.ttv-sos:hover {
  background: #c73f2a;
  transform: translateY(-2px);
  box-shadow: 0 16px 34px -8px rgba(224, 75, 52, 0.75), 0 3px 8px rgba(0, 0, 0, 0.2);
}
.ttv-sos:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 2px;
}
.ttv-sos__icon {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  position: relative;
  z-index: 1;
}
.ttv-sos__label {
  position: relative;
  z-index: 1;
}
/* Attention-drawing pulse ring */
.ttv-sos__pulse {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: #e04b34;
  z-index: 0;
  animation: ttv-sos-pulse 2s ease-out infinite;
}
@keyframes ttv-sos-pulse {
  0% { transform: scale(1); opacity: 0.55; }
  70% { transform: scale(1.28); opacity: 0; }
  100% { transform: scale(1.28); opacity: 0; }
}
@media (max-width: 600px) {
  .ttv-sos {
    right: 16px;
    bottom: 16px;
    padding: 13px 18px;
    font-size: 15px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .ttv-sos__pulse { animation: none; display: none; }
  .ttv-sos:hover { transform: none; }
}
/* Results page, filter off: discreet grey ghost pill (sits over the map), no pulse. */
.ttv-sos.is-off {
  background: rgba(20, 40, 40, 0.28);
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.55);
  box-shadow: none;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}
.ttv-sos.is-off:hover {
  background: rgba(20, 40, 40, 0.42);
  transform: none;
  box-shadow: none;
}
.ttv-sos.is-off .ttv-sos__pulse {
  display: none;
}

/* While the cookie banner is open: float above it and shrink; back to normal once closed. */
body.ttv-consent-open .ttv-sos {
  bottom: calc(var(--ttv-consent-h, 84px) + 30px);
  padding: 11px 17px;
  font-size: 14px;
}
body.ttv-consent-open .ttv-sos__icon {
  width: 19px;
  height: 19px;
}
body.ttv-consent-open .ttv-sos__pulse {
  animation: none;
}
