/* ============================================================
   ACS SAINT-JEAN-SUR-VEYLE — STYLES
   Palette inspirée du logo : bleu vif + bleu profond.
   ============================================================ */

:root {
  --blue: #0878d1;
  --blue-light: #48a9ed;
  --blue-dark: #0b3b53;
  --blue-deep: #062b3d;
  --blue-pale: #eef7fd;
  --text: #173042;
  --muted: #687d89;
  --white: #ffffff;
  --border: #dce9f0;
  --shadow-sm: 0 10px 30px rgba(11, 59, 83, .07);
  --shadow: 0 24px 60px rgba(11, 59, 83, .12);
  --radius: 22px;
  --container: 1180px;
}

/* ---------- BASE ---------- */
* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body {
  margin: 0;
  font-family: "Segoe UI", Arial, Helvetica, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

.container {
  width: min(calc(100% - 44px), var(--container));
  margin-inline: auto;
}

.section { padding: 115px 0; }
.section-light { background: #f6fafc; }

/* ---------- TYPOGRAPHY ---------- */
.eyebrow {
  margin: 0 0 13px;
  color: var(--blue);
  font-size: .72rem;
  line-height: 1.2;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .19em;
}

h1, h2, h3 {
  color: var(--blue-dark);
  line-height: 1.08;
  letter-spacing: -.035em;
}

h1 {
  max-width: 820px;
  margin: 0 0 26px;
  font-size: clamp(3rem, 6vw, 5.7rem);
  font-weight: 800;
}

h1 span,
h2 span { color: var(--blue); }

h2 {
  margin: 0;
  font-size: clamp(2.4rem, 4.4vw, 4rem);
  font-weight: 800;
}

h3 {
  margin: 0 0 11px;
  font-size: 1.45rem;
  font-weight: 800;
}

/* ---------- HEADER ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,.93);
  border-bottom: 1px solid rgba(11,59,83,.09);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.header-inner {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 35px;
}

.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand img { width: auto; height: 61px; object-fit: contain; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 7px;
}

.main-nav a {
  position: relative;
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--blue-dark);
  font-size: .86rem;
  font-weight: 750;
  transition: color .2s ease, background .2s ease;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 5px;
  height: 2px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .22s ease;
}

.main-nav a:hover { color: var(--blue); }
.main-nav a:hover::after { transform: scaleX(1); }

.main-nav .nav-contact {
  margin-left: 8px;
  padding-inline: 18px;
  color: white;
  background: var(--blue);
  box-shadow: 0 8px 20px rgba(8,120,209,.2);
}

.main-nav .nav-contact::after { display: none; }
.main-nav .nav-contact:hover { color: white; background: var(--blue-dark); }

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: 430px;
  padding: 55px 0;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: rgba(255,255,255,.88);
  background:
    radial-gradient(circle at 88% 15%, rgba(72,169,237,.32), transparent 28%),
    radial-gradient(circle at 8% 100%, rgba(72,169,237,.16), transparent 30%),
    linear-gradient(120deg, var(--blue-deep) 0%, var(--blue-dark) 48%, var(--blue) 100%);
}

.hero::after {
  content: "";
  position: absolute;
  right: -8%;
  bottom: -58%;
  width: 55%;
  height: 115%;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 0 0 35px rgba(255,255,255,.025), 0 0 0 70px rgba(255,255,255,.018);
  pointer-events: none;
}

.hero-shape {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.hero-shape-1 {
  width: 480px;
  height: 480px;
  right: -250px;
  top: -250px;
  background: rgba(72,169,237,.12);
}

.hero-shape-2 {
  width: 220px;
  height: 220px;
  left: -130px;
  bottom: -150px;
  background: rgba(255,255,255,.055);
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  gap: 60px;
  align-items: center;
}

.hero-content h2 {
  margin: 0 0 18px;
  color: white;
}

.hero-content h2 span {
  color: white;
}

.lead {
  max-width: 700px;
  margin: 0;
  color: rgba(255,255,255,.78);
  font-size: 1.02rem;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  min-height: 50px;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: .88rem;
  font-weight: 800;
  transition: transform .2s ease, background .2s ease, color .2s ease, box-shadow .2s ease;
}

.button-primary {
  color: white;
  background: var(--blue);
  box-shadow: 0 14px 30px rgba(0,0,0,.18);
}

.button-primary:hover {
  transform: translateY(-2px);
  background: white;
  color: var(--blue-dark);
  box-shadow: 0 17px 34px rgba(0,0,0,.2);
}

.button-ghost {
  color: white;
  border-color: rgba(255,255,255,.35);
  background: rgba(255,255,255,.08);
}

.button-ghost:hover {
  transform: translateY(-2px);
  border-color: white;
  color: white;
  background: rgba(255,255,255,.14);
}

.hero-visual {
  position: relative;
  min-height: 320px;
  display: grid;
  place-items: center;
}

.hero-logo-frame {
  width: min(285px, 100%);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  padding: 34px;
  border-radius: 34px;
  background: white;
  box-shadow: 0 22px 55px rgba(0,0,0,.24);
  transform: rotate(2deg);
}

.hero-logo-frame img { width: 100%; max-height: 100%; object-fit: contain; }

.hero-badge {
  position: absolute;
  right: 0;
  bottom: 5px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 17px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
  background: rgba(6,43,61,.92);
  color: white;
  box-shadow: 0 14px 35px rgba(0,0,0,.2);
  font-size: .7rem;
}

.hero-badge strong { color: #8ed0f8; }
.hero-badge span:not(:last-child)::after { content: "·"; margin-left: 12px; opacity: .5; }

.hero-bottom {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: rgba(255,255,255,.55);
  font-size: .66rem;
  font-weight: 800;
  letter-spacing: .14em;
}

.scroll-hint { display: flex; align-items: center; gap: 9px; }
.scroll-hint span { width: 25px; height: 1px; background: #69bdf4; }
.hero-meta { opacity: .65; }

/* ---------- SECTION HEADINGS ---------- */
.section-heading { max-width: 760px; margin-bottom: 52px; }
.split-heading {
  max-width: none;
  display: grid;
  grid-template-columns: 1fr .7fr;
  gap: 70px;
  align-items: end;
}

.split-heading > p {
  margin: 0;
  color: var(--muted);
  font-size: .98rem;
}

/* ---------- ACTIVITY CARDS ---------- */
.cards { display: grid; gap: 28px; }
.cards-2 { grid-template-columns: repeat(2, minmax(0,1fr)); }

.activity-card {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: white;
  box-shadow: var(--shadow-sm);
  transition: transform .3s ease, box-shadow .3s ease;
}

.activity-card:hover { transform: translateY(-7px); box-shadow: var(--shadow); }

.card-image,
.event-image {
  position: relative;
  overflow: hidden;
  background: var(--blue-pale);
}

.card-image { aspect-ratio: 16 / 9; }
.card-image img,
.event-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .55s ease; }
.activity-card:hover .card-image img,
.event-card:hover .event-image img { transform: scale(1.045); }

.image-label {
  position: absolute;
  top: 17px;
  left: 17px;
  padding: 7px 11px;
  border: 1px solid rgba(255,255,255,.55);
  border-radius: 999px;
  background: rgba(11,59,83,.78);
  color: white;
  font-size: .62rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  backdrop-filter: blur(7px);
}

.card-body { padding: 30px; }
.card-kicker { margin-bottom: 9px; color: var(--blue); font-size: .68rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.card-body p { margin: 0 0 20px; color: var(--muted); }

/* ---------- BADMINTON LISTS ---------- */
.badminton-list {
  list-style: none;
  margin: -6px 0 20px;
  padding: 0;
  color: var(--muted);
}

.badminton-list li {
  position: relative;
  margin: 7px 0;
  padding-left: 18px;
}

.badminton-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .72em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 3px rgba(8,120,209,.10);
  transform: translateY(-50%);
}

.text-link { color: var(--blue); font-size: .86rem; font-weight: 850; }
.text-link span { display: inline-block; margin-left: 5px; transition: transform .2s ease; }
.text-link:hover span { transform: translateX(4px); }

/* ---------- MANIFESTATIONS ---------- */
.events-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 26px;
}

.event-card {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: white;
  box-shadow: var(--shadow-sm);
  transition: transform .3s ease, box-shadow .3s ease;
}

.event-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.event-image { aspect-ratio: 16 / 10; }

.event-number {
  position: absolute;
  right: 15px;
  bottom: 14px;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: white;
  color: var(--blue-dark);
  font-size: .72rem;
  font-weight: 900;
  box-shadow: 0 8px 20px rgba(0,0,0,.14);
}

.event-body { padding: 23px 24px 26px; }
.event-date { margin-bottom: 8px; color: var(--blue); font-size: .66rem; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.event-body p { margin: 0; color: var(--muted); font-size: .9rem; }

/* ---------- TEAM ---------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0,1fr));
  gap: 31px 18px;
}

.member-card { text-align: center; }
.member-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  margin-bottom: 14px;
  border: 5px solid white;
  border-radius: 50%;
  box-shadow: 0 10px 28px rgba(11,59,83,.12);
  transition: transform .25s ease, box-shadow .25s ease;
}

.member-card:hover img { transform: translateY(-4px); box-shadow: 0 16px 35px rgba(11,59,83,.18); }
.member-card h3 { margin-bottom: 3px; font-size: .98rem; letter-spacing: -.02em; }
.member-card p { margin: 0; color: var(--blue); font-size: .73rem; font-weight: 800; }

/* ---------- CONTACT ---------- */
.contact-section {
  position: relative;
  overflow: hidden;
  background: var(--blue-dark);
  color: rgba(255,255,255,.73);
}

.contact-glow {
  position: absolute;
  width: 620px;
  height: 620px;
  right: -300px;
  top: -300px;
  border-radius: 50%;
  background: rgba(8,120,209,.22);
}

.contact-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr .85fr;
  gap: 90px;
  align-items: center;
}

.contact-copy h2 { margin-bottom: 23px; color: white; }
.contact-copy > p:last-child { max-width: 560px; margin: 0; font-size: 1rem; }
.contact-section .eyebrow { color: #68baf2; }

.contact-links { display: grid; gap: 13px; }

.contact-item {
  display: grid;
  grid-template-columns: 47px 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 16px 17px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 17px;
  background: rgba(255,255,255,.055);
  transition: transform .22s ease, background .22s ease, border-color .22s ease;
}

.contact-item:hover {
  transform: translateX(5px);
  border-color: rgba(255,255,255,.27);
  background: rgba(255,255,255,.10);
}

.contact-icon {
  width: 47px;
  height: 47px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--blue);
  color: white;
  font-size: 1.1rem;
  font-weight: 900;
}

.contact-icon.social { font-family: Arial, sans-serif; }
.contact-item small { display: block; margin-bottom: 1px; color: #69bdf4; font-size: .62rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.contact-item b { color: #8ccdf4; font-size: 1rem; }

/* ---------- FOOTER ---------- */
.site-footer { padding: 24px 0; background: var(--blue-deep); color: rgba(255,255,255,.57); font-size: .72rem; }
.footer-inner { display: grid; grid-template-columns: 1.3fr 1fr auto; gap: 30px; align-items: center; }
.footer-brand { display: flex; align-items: center; gap: 12px; color: white; font-weight: 700; }
.footer-brand img { width: 42px; height: 42px; object-fit: contain; border-radius: 8px; background: white; }
.footer-inner p { margin: 0; }
.footer-inner > a { color: white; font-weight: 700; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1050px) {
  .team-grid { grid-template-columns: repeat(5, minmax(0,1fr)); }
  .hero-grid { gap: 45px; }
}

@media (max-width: 850px) {
  .section { padding: 85px 0; }
  .header-inner { min-height: 76px; }
  .brand img { height: 54px; }
  .main-nav { gap: 3px; overflow-x: auto; max-width: 67%; scrollbar-width: none; }
  .main-nav::-webkit-scrollbar { display: none; }
  .main-nav a { white-space: nowrap; padding: 9px 10px; font-size: .78rem; }
  .main-nav .nav-contact { margin-left: 0; }

  .hero { min-height: auto; padding: 55px 0 65px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-content { max-width: 750px; }
  .hero-visual { min-height: 270px; }
  .hero-logo-frame { width: 250px; }
  .hero-badge { right: 7%; }
  .hero-bottom { display: none; }

  .split-heading { grid-template-columns: 1fr; gap: 17px; }
  .events-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .team-grid { grid-template-columns: repeat(4, minmax(0,1fr)); }
  .contact-grid { grid-template-columns: 1fr; gap: 45px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-inner > a { justify-self: end; }
  .footer-inner p { grid-column: 1 / -1; grid-row: 2; }
}

@media (max-width: 600px) {
  .container { width: min(calc(100% - 28px), var(--container)); }
  .section { padding: 72px 0; }

  .site-header { position: sticky; }
  .header-inner { min-height: 72px; gap: 12px; }
  .brand img { height: 47px; }
  .main-nav { max-width: calc(100% - 145px); }
  .main-nav .nav-contact { display: none; }

  .hero { padding: 45px 0 55px; }
  h1 { font-size: 2.85rem; }
  .lead { font-size: 1rem; }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .button { width: 100%; }
  .hero-visual { min-height: 225px; }
  .hero-logo-frame { width: min(220px, 65vw); padding: 24px; border-radius: 26px; }
  .hero-badge { right: 0; bottom: 2px; font-size: .62rem; gap: 8px; padding: 11px 13px; }
  .hero-badge span:not(:last-child)::after { margin-left: 8px; }

  .cards-2,
  .events-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: repeat(3, minmax(0,1fr)); gap: 24px 11px; }
  .member-card h3 { font-size: .82rem; }
  .member-card p { font-size: .65rem; }

  .card-body { padding: 24px; }
  .contact-grid { gap: 35px; }
  .contact-item { grid-template-columns: 42px 1fr auto; gap: 12px; padding: 13px; font-size: .82rem; }
  .contact-icon { width: 42px; height: 42px; }

  .footer-inner { grid-template-columns: 1fr; gap: 15px; }
  .footer-inner > a { justify-self: start; }
  .footer-inner p { grid-column: auto; grid-row: auto; }
}
