/* =========================================================
   Passeport Vacances Bex — pvbex.ch
   Palette reprise du bandeau : teal, vert, orange, turquoise.
   ========================================================= */

@font-face {
  font-family: 'Fredoka';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../assets/fonts/fredoka-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
                 U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
                 U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Fredoka';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../assets/fonts/fredoka-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
                 U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF,
                 U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('../assets/fonts/nunito-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
                 U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
                 U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('../assets/fonts/nunito-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
                 U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF,
                 U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --teal:        #185E5D;
  --teal-clair:  #44C1BF;
  --vert:        #63B05E;
  --orange:      #FCB040;
  --ciel:        #A4DCE4;

  --encre:       #12403F;
  --encre-doux:  #4c6f6e;
  --fond:        #f5faf8;
  --carte:       #ffffff;
  --bord:        #dceae7;

  --titre: 'Fredoka', 'Trebuchet MS', system-ui, sans-serif;
  --texte: 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --r-s: 10px;
  --r-m: 16px;
  --r-l: 24px;
  --ombre: 0 2px 4px rgba(18, 64, 63, .05), 0 8px 24px rgba(18, 64, 63, .07);
}

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

body {
  margin: 0;
  background: var(--fond);
  color: var(--encre);
  font-family: var(--texte);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--titre); font-weight: 600; line-height: 1.15; margin: 0; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
img { max-width: 100%; height: auto; display: block; }

.wrap { width: min(1120px, 100% - 2.5rem); margin-inline: auto; }

.sr-only {
  position: absolute; 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: 50%; translate: -50% -120%;
  background: var(--teal); color: #fff; padding: .6rem 1.2rem;
  border-radius: 0 0 var(--r-s) var(--r-s); z-index: 20; text-decoration: none;
}
.skip-link:focus { translate: -50% 0; }

:where(a, button, input, select, summary):focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 2px;
}

/* ---------- Hero ---------- */

.hero { background: #fff; }

.hero__banner { overflow: hidden; }

/* Le bandeau (2800x615, ratio 4.55) occupe toute la largeur : 22vw correspond
   à sa hauteur naturelle, il n'est donc pas rogné au-delà de ~600 px. En
   dessous, la hauteur plancher de 130 px le fait zoomer sur le centre — les
   marges latérales de l'illustration sont purement décoratives. */
.hero__banner img {
  width: 100%;
  height: max(130px, 22vw);
  object-fit: cover;
  object-position: 50% 45%;
}

.hero__body {
  padding: 2rem 0 3rem;
  text-align: center;
}

@media (min-width: 800px) {
  .hero__body { padding: 1.75rem 0 2.75rem; }
}

.hero__dates {
  font-family: var(--titre);
  font-weight: 600;
  font-size: clamp(1.5rem, 1.1rem + 2vw, 2.3rem);
  color: var(--orange);
  letter-spacing: .01em;
  text-transform: uppercase;
}

.hero__title {
  margin: .4rem 0 .6rem;
  font-size: clamp(1.35rem, 1rem + 1.7vw, 2rem);
  color: var(--teal);
}

.hero__sub { color: var(--encre-doux); }

.btn {
  display: inline-block;
  margin-top: 1.5rem;
  padding: .75rem 1.6rem;
  background: var(--teal);
  color: #fff;
  font-family: var(--titre);
  font-weight: 500;
  text-decoration: none;
  border-radius: 999px;
  transition: background .15s, translate .15s;
}
.btn:hover { background: #0f4a49; translate: 0 -2px; }

/* ---------- Infos pratiques ---------- */

.infos { margin-top: -1.5rem; position: relative; z-index: 2; }

.infos__grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.info {
  display: flex;
  flex-direction: column;
  background: var(--carte);
  border-radius: var(--r-m);
  border-top: 5px solid var(--teal-clair);
  padding: 1.25rem 1.4rem;
  box-shadow: var(--ombre);
}
.info--orange { border-top-color: var(--orange); }
.info--green  { border-top-color: var(--vert); }
.info--teal   { border-top-color: var(--teal-clair); }
.info--ciel   { border-top-color: var(--ciel); }

.info__label {
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--encre-doux);
}
.info__value {
  font-family: var(--titre);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--teal);
  margin-top: .15rem;
}
.info__note { color: var(--encre-doux); font-size: .95rem; }

.info__lien { margin-top: auto; padding-top: .8rem; }
.info__lien a {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .88rem;
  font-weight: 700;
  color: var(--teal);
  text-decoration: none;
}
.info__lien a:hover { text-decoration: underline; }
.info__lien svg {
  flex: none;
  width: 16px; height: 16px;
  fill: none; stroke: currentColor;
  stroke-width: 1.8; stroke-linecap: round;
}

/* ---------- Comment acheter ---------- */

.achat { padding-top: 3.5rem; }

.achat__panneau {
  background: var(--teal);
  color: #cfe6e4;
  border-radius: var(--r-l);
  padding: 2rem 2.25rem 2.25rem;
}
.achat__panneau .section-title { color: #fff; }

@media (max-width: 560px) {
  .achat__panneau { padding: 1.5rem 1.35rem 1.75rem; }
}

.achat__grille {
  display: grid;
  gap: 1.5rem 3rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  margin-top: 1.75rem;
}

.achat__label {
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #8fbdbb;
}
.achat__fort {
  font-family: var(--titre);
  font-size: 1.35rem;
  font-weight: 600;
  color: #fff;
  margin-top: .15rem;
}
.achat__bloc p + p { margin-top: .35rem; }

.achat__cal, .achat__carte { margin-top: .9rem; }
.achat__cal a, .achat__carte a {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .5rem 1.1rem;
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 999px;
  font-size: .9rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  transition: background .15s, border-color .15s;
}
.achat__cal a:hover, .achat__carte a:hover {
  background: rgba(255, 255, 255, .12);
  border-color: #fff;
}
.achat__cal svg, .achat__carte svg {
  flex: none;
  width: 17px; height: 17px;
  fill: none; stroke: currentColor;
  stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}

/* Le logo WhatsApp est un tracé plein, pas un pictogramme au trait. */
svg.icone-plein { fill: currentColor; stroke: none; }

.achat__pied {
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, .18);
  font-size: .93rem;
}
.achat__pied a {
  color: #fff;
  font-weight: 700;
  text-decoration-color: var(--orange);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
.achat__pied a:hover { color: var(--orange); }

/* ---------- Section activités ---------- */

.activites { padding: 3.5rem 0 4rem; }

.section-title {
  font-size: clamp(1.7rem, 1.2rem + 2vw, 2.4rem);
  color: var(--teal);
}
.section-title::after {
  content: '';
  display: block;
  width: 68px; height: 5px;
  margin-top: .6rem;
  border-radius: 999px;
  background: var(--orange);
}

.section-intro {
  max-width: 62ch;
  margin-top: .9rem;
  color: var(--encre-doux);
}

/* ---------- Filtres ---------- */

.filtres {
  margin: 2rem 0 1.75rem;
  background: var(--carte);
  border: 1px solid var(--bord);
  border-radius: var(--r-l);
  padding: 1.25rem 1.4rem;
}

.filtres__search { position: relative; }

.filtres__icon {
  position: absolute;
  left: 1rem; top: 50%;
  translate: 0 -50%;
  width: 20px; height: 20px;
  fill: none; stroke: var(--encre-doux); stroke-width: 2; stroke-linecap: round;
  pointer-events: none;
}

.filtres__search input {
  width: 100%;
  padding: .8rem 1rem .8rem 2.9rem;
  font: inherit;
  color: inherit;
  background: var(--fond);
  border: 1px solid var(--bord);
  border-radius: 999px;
}
.filtres__search input::-webkit-search-cancel-button { cursor: pointer; }

.filtres__row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem 2rem;
  margin-top: 1.25rem;
}

.chips { border: 0; margin: 0; padding: 0; min-width: 0; }

.chips legend,
.filtres__age label {
  padding: 0;
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--encre-doux);
}

.chips__liste { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .5rem; }

.chip {
  font: inherit;
  font-size: .92rem;
  padding: .35rem .9rem;
  border: 1px solid var(--bord);
  border-radius: 999px;
  background: var(--carte);
  color: var(--encre-doux);
  cursor: pointer;
  transition: background .12s, color .12s, border-color .12s;
}
.chip:hover { border-color: var(--teal-clair); color: var(--teal); }
.chip[aria-pressed="true"] {
  background: var(--teal);
  border-color: var(--teal);
  color: #fff;
  font-weight: 600;
}

.filtres__age { display: flex; flex-direction: column; }
.filtres__age select {
  margin-top: .5rem;
  font: inherit;
  font-size: .92rem;
  padding: .35rem .8rem;
  border: 1px solid var(--bord);
  border-radius: 999px;
  background: var(--carte);
  color: var(--encre);
  cursor: pointer;
}

.filtres__bilan {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .25rem 1rem;
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--bord);
  font-size: .95rem;
  color: var(--encre-doux);
}

.lien-reset {
  font: inherit;
  font-size: .95rem;
  padding: 0;
  border: 0;
  background: none;
  color: var(--teal);
  text-decoration: underline;
  cursor: pointer;
}

/* ---------- Grille de cartes ---------- */

.grille {
  display: grid;
  gap: 1.1rem;
  grid-template-columns: repeat(auto-fill, minmax(295px, 1fr));
  align-items: start;
}

.carte {
  display: flex;
  flex-direction: column;
  background: var(--carte);
  border: 1px solid var(--bord);
  border-radius: var(--r-m);
  border-left: 6px solid var(--accent, var(--teal-clair));
  padding: 1.15rem 1.25rem 1.25rem;
  box-shadow: var(--ombre);
}

.carte__cat {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  align-self: flex-start;
  font-size: .74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--accent-fonce, var(--teal));
  background: var(--accent-tint, #eef7f6);
  padding: .2rem .6rem;
  border-radius: 999px;
}

.carte__titre {
  margin-top: .65rem;
  font-size: 1.2rem;
  color: var(--teal);
  text-wrap: balance;
}

.carte__meta {
  display: flex;
  flex-wrap: wrap;
  gap: .3rem .5rem;
  margin-top: .45rem;
  font-size: .85rem;
  color: var(--encre-doux);
}
.carte__meta span + span::before { content: '· '; }

.carte__desc {
  margin-top: .75rem;
  font-size: .96rem;
  color: #2c4f4e;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  line-clamp: 4;
  overflow: hidden;
}
.carte.est-ouverte .carte__desc {
  -webkit-line-clamp: none;
  line-clamp: none;
  overflow: visible;
}

.carte__plus {
  align-self: flex-start;
  margin-top: .7rem;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-size: .9rem;
  font-weight: 700;
  color: var(--teal);
  cursor: pointer;
}
.carte__plus:hover { text-decoration: underline; }

mark {
  background: #fdeec9;
  color: inherit;
  border-radius: 3px;
  padding: 0 .1em;
}

.vide, .erreur {
  margin-top: 1.5rem;
  padding: 2rem;
  text-align: center;
  color: var(--encre-doux);
  background: var(--carte);
  border: 1px dashed var(--bord);
  border-radius: var(--r-m);
}
.erreur { border-color: #e6b7a8; color: #a8452a; }

/* ---------- Pied ---------- */

.pied {
  background: var(--teal);
  color: #cfe6e4;
  padding: 2.25rem 0;
  text-align: center;
}
.pied__nom { font-family: var(--titre); font-size: 1.15rem; color: #fff; }
.pied__contact { margin-top: .5rem; }
.pied__contact a {
  color: #fff;
  font-weight: 700;
  text-decoration-color: var(--orange);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
.pied__contact a:hover { color: var(--orange); }
.comite {
  max-width: 58ch;
  margin: 1.5rem auto 0;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, .18);
}
.comite__titre {
  font-family: var(--texte);
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: #8fbdbb;
}
.comite__membres {
  margin-top: .35rem;
  font-size: .88rem;
  line-height: 1.7;
  color: #cfe6e4;
  text-wrap: balance;
}

.pied__wa { margin-top: .9rem; }
.pied__wa a {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .45rem 1.1rem;
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 999px;
  font-size: .9rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  transition: background .15s, border-color .15s;
}
.pied__wa a:hover { background: rgba(255, 255, 255, .12); border-color: #fff; }
.pied__wa svg { flex: none; width: 17px; height: 17px; }

.pied__note { font-size: .9rem; margin-top: 1.5rem; color: #a8ccca; }

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