:root{
  --bg:#ffffff;
  --text:#1D1D1B;
  --border:#e7e7e7;
  --shadow: 0 16px 50px -18px rgba(29,29,27,.18);
  --red:#DC2A1C;
  --radius:18px;
  --max:1120px;
  --snow1:#ffffff;
  --snow2:#f6f7f8;
  --contactbg:#eceeef;
}
*{ box-sizing:border-box; }
body{
  margin:0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background:var(--bg);
  color:var(--text);
  line-height:1.6;
}
a{ color:var(--red); text-decoration:none; }
a:hover{ text-decoration:underline; }
.container{ max-width:var(--max); margin:0 auto; padding:0 20px; }

/* Hero */
.hero{ position:relative; height:92vh; min-height:640px; overflow:hidden; }
.hero-bg{
  position:absolute; inset:0;
  background: url("assets/hero.jpg");
  background-size:cover;
  background-position: center 70%; /* show more “lower” part (more skier if present) */
  transform:scale(1.02);
  opacity:.72;
}
.hero-overlay{
  position:absolute; inset:0;
  background:
    radial-gradient(1000px 600px at 50% 12%, rgba(255,255,255,.72) 0%, rgba(255,255,255,.28) 58%, rgba(255,255,255,.10) 100%),
    linear-gradient(180deg, rgba(29,29,27,.16) 0%, rgba(29,29,27,.08) 55%, rgba(29,29,27,.22) 100%);
  pointer-events:none;
}
.hero-content{
  position:relative; z-index:2; height:100%;
  display:flex; flex-direction:column; align-items:center; text-align:center;
}
.hero-spacer{ height:92px; }
.hero-logo{
  width:min(760px, 92vw);
  height:auto;
  filter: drop-shadow(0 18px 45px rgba(0,0,0,.10));
}

/* Buttons */
.btn{
  display:inline-flex; align-items:center; justify-content:center;
  border-radius:999px; padding:12px 18px; font-weight:800;
  border:2px solid transparent;
  box-shadow: 0 10px 30px -18px rgba(0,0,0,.18);
}
.btn-outline{
  background: rgba(255,255,255,.92);
  color: var(--red);
  border-color: var(--red);
}
.btn-outline:hover{ text-decoration:none; filter:brightness(.98); }

/* Icon-only outline button same size as others */
.btn-outline-icon{
  width: 188px; /* roughly similar presence to text button */
  height: 46px;
  padding: 0;
}
.btn-outline-icon img{ width: 24px; height: 24px; display:block; }

/* Sections */
.section{ padding:64px 0; }
.section-snow{
  border-top:1px solid var(--border);
  border-bottom:1px solid var(--border);
  background:
    radial-gradient(800px 300px at 10% 10%, rgba(0,0,0,.03) 0%, rgba(0,0,0,0) 70%),
    radial-gradient(700px 260px at 90% 30%, rgba(0,0,0,.025) 0%, rgba(0,0,0,0) 72%),
    linear-gradient(180deg, var(--snow1) 0%, var(--snow2) 100%);
}
.section-contact{
  background: var(--contactbg);
  border-top: 1px solid rgba(0,0,0,.06);
}

/* Headings */
.section-head{ margin-bottom:18px; }
.section-head.center{ text-align:center; margin-bottom:22px; }
.section-head h2{ margin:0; font-size:28px; line-height:1.15; letter-spacing:.01em; }
.heading-underline{
  width:44px; height:3px; background:var(--red);
  border-radius:999px;
  margin-top:10px;
}
.section-head.center .heading-underline{ margin-left:auto; margin-right:auto; }

/* About */
.about-long{ max-width: 90ch; margin: 0 auto 22px; color:#2a2a2a; font-size:16px; }
.about-long p{ margin: 0 0 14px; }
.about-long p:last-child{ margin-bottom:0; }

/* Values */
.values-images{
  display:grid;
  gap:14px;
  grid-template-columns: 1fr;
  align-items:stretch;
  margin-top: 26px;
}
.value-img{
  background:#fff;
  border:1px solid var(--border);
  border-radius:16px;
  padding:14px;
  box-shadow: var(--shadow);
  display:flex;
  align-items:center;
  justify-content:center;
}
.value-img img{ width:100%; max-width: 260px; height:auto; display:block; }
@media (min-width: 620px){
  .values-images{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .value-img img{ max-width: 240px; }
}
@media (min-width: 980px){
  .values-images{ grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .value-img img{ max-width: 210px; }
}
@media (max-width: 768px){
  .value-img img{
    max-width: 180px;
  }
}

/* Cards */
.card{
  background:#fff; border:1px solid var(--border); border-radius:var(--radius);
  padding:20px; box-shadow: var(--shadow);
}
.card h3{ margin:0 0 8px; font-size:18px; }
.card-center{ text-align:center; }
.card-center h3{ text-align:center; }

/* Inscription */
.inscription-card{ max-width: 900px; margin: 0 auto; }
.lead{ margin:0 0 18px; color:#333; font-size:16px; }
.fees{
  display:grid;
  grid-template-columns: 1fr;
  gap:10px;
  margin: 16px 0 22px;
}
.fee{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:12px 14px;
  border:1px solid rgba(0,0,0,.08);
  border-radius:14px;
  background: rgba(0,0,0,.02);
}
.fee span{ font-weight:700; color:#222; }
.fee strong{ font-weight:900; color:#111; }
@media (min-width: 760px){
  .fees{ grid-template-columns: 1fr 1fr; }
}
.inscription-action{ text-align:center; }

/* Events */
.events-split{ display:grid; gap:18px; grid-template-columns: 1fr; align-items:start; margin-top: 8px; }
@media (max-width: 768px){
  .events-split{
    display:flex;
    flex-direction: column;
  }
}
.events-list{ display:flex; flex-direction:column; gap:12px; }
.event{
  background:#fff; border:1px solid var(--border); border-radius:var(--radius);
  padding:18px; box-shadow: var(--shadow);
}
.event-date{ font-weight:900; color:var(--red); letter-spacing:.04em; text-transform:uppercase; font-size:12px; }
.event h3{ margin:8px 0 6px; font-size:18px; }
.event-place{ color:#333; font-weight:700; }
.event-desc{ margin:10px 0 0; color:#555; font-size:14px; }

.events-media{
  border-radius:var(--radius); overflow:hidden; border:1px solid var(--border);
  box-shadow: var(--shadow); background:#fff;
  max-height: 320px;
}
.events-media img{
  width:100%;
  height:100%;
  max-height: 320px;
  object-fit:cover;
  display:block;
}
@media (min-width: 980px){
  .events-split{ grid-template-columns: 1.15fr .85fr; gap:22px; }
  .events-media{ max-height: 360px; }
  .events-media img{ max-height: 360px; }
}

/* Committee */
.committee-grid{
  display:grid;
  gap:10px;
  grid-template-columns: 1fr;
  color:#222;
  font-size:14px;
}
@media (min-width: 860px){
  .committee-grid{ grid-template-columns: 1fr 1fr; }
}

/* Contact grid */
.contact-grid{ display:grid; gap:14px; grid-template-columns: 1fr; }
.contact-grid.centered{ align-items:stretch; }
.meta{ color:#555; font-size:14px; margin:0 0 14px; text-align:center; }
@media (min-width: 860px){
  .contact-grid{ grid-template-columns: 1fr 1fr; gap:18px; }
}

/* Footer */
.site-footer{ background:#111; color:#fff; padding:20px 0; }
.footer-inner{
  display:flex; flex-direction:column; gap:10px;
  align-items:flex-start; justify-content:space-between;
}
.footer-meta{ color:rgba(255,255,255,.72); font-size:13px; }
.footer-links a{ color:#fff; opacity:.80; font-weight:700; }
.footer-links a:hover{ opacity:1; text-decoration:none; }
@media (min-width: 860px){
  .footer-inner{ flex-direction:row; align-items:center; }
}


/* Unified outline button width */
:root{
  --outline-btn-width: 188px;
}
.btn-outline{
  min-width: var(--outline-btn-width);
}

/* Inscription buttons row */
.action-row{
  display:flex;
  gap:12px;
  justify-content:center;
  flex-wrap:wrap;
}
/* Contact / Instagram marks */
.contact-card .contact-mark {
  width: 120px;
  margin: 0 auto 12px;
  display: block;
}

.insta-card .insta-mark {
  width: 64px;
  margin: 6px auto 12px;
  display: block;
}
.is-hidden {
  display: none !important;
}
.events-placeholder-text {
  text-align: center;
  font-style: italic;
  color: #666;
  margin-top: 2rem;
}
.events-placeholder-text span {
  display: block;
  margin-top: 0.5rem;
  color: #888;
}
@media (max-width: 768px) {

  /* FORCE grid layout on mobile */

@media (max-width: 768px) {
  .values-images {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    justify-items: center; /* center all items in their columns */
  }

  .value-img {
    aspect-ratio: 1 / 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 16px;
  }

  .value-img img {
    width: 90%;
    height: auto;
  }

  /* Last icon: keep it in a column but center it */
  .value-img:last-child {
    grid-column: 1; /* place in first column */
    justify-self: center; /* center inside the column */
  }
}



@media (max-width: 768px) {
  .events-split {
    display: flex;
    flex-direction: column;
  }

  .events-media {
    order: -1;
  }
}
