/* Euleria & Arduineuch — v2 mobile-first
   Optimisé pour smartphone (iPhone 16 Pro ≈ 402px) et grand écran. */

:root {
  --navy: #1d3050;
  --navy-dark: #14223b;
  --gold: #c9a227;
  --gold-soft: #f3e6bd;
  --orange: #e8762c;
  --bg: #fdfbf7;
  --card: #ffffff;
  --text: #2b2b2b;
  --muted: #5f6b7a;
  --radius: 16px;
  --shadow: 0 4px 18px rgba(20, 34, 59, 0.10);
  --header-h: 60px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  font-size: 17px;
  line-height: 1.65;
}

img { max-width: 100%; display: block; }

a { color: var(--navy); }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

.container { max-width: 1040px; margin: 0 auto; padding: 0 20px; }

/* =========== Header + hamburger (sans JavaScript) =========== */
.site-header {
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.18);
}

.nav {
  max-width: 1040px;
  margin: 0 auto;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
  position: relative;
}

.brand {
  font-weight: 700;
  font-size: 1.02rem;
  color: #fff;
  text-decoration: none;
  letter-spacing: 0.3px;
  white-space: nowrap;
  margin-right: auto;
  padding: 10px 0;
}

.brand span { color: var(--gold); }

.nav-toggle { position: absolute; opacity: 0; pointer-events: none; }

.nav-burger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 46px;
  height: 46px;
  padding: 11px;
  border-radius: 10px;
  cursor: pointer;
  background: rgba(255,255,255,0.10);
}

.nav-burger span {
  display: block;
  height: 2.5px;
  width: 100%;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.nav-toggle:checked ~ .nav-burger span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle:checked ~ .nav-burger span:nth-child(2) { opacity: 0; }
.nav-toggle:checked ~ .nav-burger span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

.nav-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--navy-dark);
  padding: 10px 16px 18px;
  box-shadow: 0 10px 24px rgba(0,0,0,0.28);
}

.nav-toggle:checked ~ .nav-menu { display: block; }

.nav-menu ul { list-style: none; }

.nav-menu a.navlink {
  display: block;
  color: #e8ecf3;
  text-decoration: none;
  font-size: 1.05rem;
  padding: 14px 10px;
  border-radius: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.nav-menu a.navlink:active, .nav-menu a.navlink:hover { background: rgba(255,255,255,0.10); }

.nav-menu a.navlink.active { color: var(--gold); font-weight: 700; }

.nav-menu a.cta {
  display: block;
  text-align: center;
  background: var(--gold);
  color: var(--navy-dark);
  font-weight: 700;
  text-decoration: none;
  padding: 14px;
  border-radius: 12px;
  margin-top: 14px;
  font-size: 1.05rem;
}

/* Desktop : menu horizontal, burger masqué */
@media (min-width: 800px) {
  .nav-burger { display: none; }
  .nav-menu {
    display: flex !important;
    position: static;
    background: none;
    padding: 0;
    box-shadow: none;
    align-items: center;
    gap: 6px;
  }
  .nav-menu ul { display: flex; gap: 4px; }
  .nav-menu a.navlink {
    display: inline-block;
    padding: 8px 14px;
    border-bottom: none;
    font-size: 0.97rem;
  }
  .nav-menu a.navlink.active { background: rgba(255,255,255,0.16); color: #fff; }
  .nav-menu a.cta { margin: 0 0 0 10px; padding: 9px 18px; font-size: 0.97rem; }
}

/* =========== Boutons =========== */
.btn {
  display: block;
  width: 100%;
  text-align: center;
  padding: 16px 22px;
  border-radius: 14px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.06rem;
}

.btn-gold { background: var(--gold); color: var(--navy-dark); }
.btn-outline { border: 2px solid #ffffff88; color: #fff; }
.btn-navy { background: var(--navy); color: #fff; }
.btn:hover { filter: brightness(1.08); }

@media (min-width: 640px) {
  .btn { display: inline-block; width: auto; }
}

/* =========== Hero (accueil) =========== */
.hero {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: #fff;
  text-align: center;
  padding: 40px 20px 52px;
}

.hero .logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 26px;
}

.hero .logos img,
.page-hero img.logo {
  width: 132px;
  height: 132px;
  object-fit: contain;
  background: #fff;
  border-radius: 20px;
  padding: 12px;
}

.hero h1 {
  font-size: clamp(1.55rem, 5.5vw, 2.5rem);
  line-height: 1.28;
  max-width: 800px;
  margin: 0 auto 14px;
  letter-spacing: -0.01em;
}

.hero p.sub {
  font-size: clamp(1.05rem, 3.8vw, 1.2rem);
  color: #d7dee9;
  max-width: 700px;
  margin: 0 auto 28px;
}

.hero .actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 420px;
  margin: 0 auto;
}

@media (min-width: 640px) {
  .hero { padding: 64px 24px 72px; }
  .hero .logos { gap: 36px; }
  .hero .logos img { width: 150px; height: 150px; }
  .hero .actions { flex-direction: row; justify-content: center; max-width: none; }
}

/* =========== Page hero (pages clubs) =========== */
.page-hero {
  color: #fff;
  text-align: center;
  padding: 38px 20px 46px;
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-dark) 100%);
}

.page-hero.arduineuch { background: linear-gradient(160deg, #23405f 0%, #14223b 100%); }

.page-hero img.logo { margin: 0 auto 18px; }

.page-hero h1 {
  font-size: clamp(1.45rem, 5vw, 2.2rem);
  line-height: 1.28;
  margin-bottom: 10px;
}

.page-hero p {
  color: #d7dee9;
  max-width: 680px;
  margin: 0 auto;
  font-size: clamp(1.02rem, 3.6vw, 1.15rem);
}

@media (min-width: 640px) {
  .page-hero { padding: 52px 24px; }
  .page-hero img.logo { width: 160px; height: 160px; }
}

/* =========== Sections =========== */
section { padding: 42px 0; }

section.alt { background: #f2f0e9; }

h2.section-title {
  font-size: clamp(1.4rem, 4.6vw, 1.8rem);
  color: var(--navy);
  text-align: center;
  margin-bottom: 12px;
  line-height: 1.3;
}

p.section-lead {
  text-align: center;
  color: var(--muted);
  max-width: 720px;
  margin: 0 auto 30px;
  font-size: 1.02rem;
}

@media (min-width: 640px) {
  section { padding: 56px 0; }
}

/* =========== Cartes clubs (accueil) =========== */
.clubs-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}

.club-card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px 22px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  border-top: 5px solid var(--gold);
}

.club-card.arduineuch { border-top-color: var(--orange); }

.club-card img { width: 118px; height: 118px; object-fit: contain; margin-bottom: 16px; }

.club-card h3 { font-size: 1.35rem; color: var(--navy); margin-bottom: 4px; }

.club-card p.tagline { color: var(--muted); font-style: italic; margin-bottom: 12px; }

.club-card p { margin-bottom: 14px; }

.club-card .btn { margin-top: auto; }

@media (min-width: 720px) {
  .clubs-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .club-card { padding: 32px 28px; }
}

/* =========== Tuiles (features) =========== */
.features {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.feature {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px 20px;
}

.feature .icon { font-size: 1.8rem; margin-bottom: 8px; }

.feature h3 { color: var(--navy); font-size: 1.12rem; margin-bottom: 6px; }

.feature p { font-size: 0.99rem; }

@media (min-width: 640px) {
  .features { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px; }
}

/* =========== Infos pratiques : cartes empilées sur mobile, tableau sur desktop =========== */
.info-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

/* Mobile : chaque ligne devient un bloc lisible */
.info-table, .info-table tbody, .info-table tr, .info-table th, .info-table td { display: block; width: 100%; }

.info-table tr { padding: 16px 18px; border-bottom: 1px solid #eee7d4; }

.info-table tr:last-child { border-bottom: none; }

.info-table th {
  text-align: left;
  background: none;
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0 0 4px;
}

.info-table td { padding: 0; }

/* Desktop : tableau classique */
@media (min-width: 720px) {
  .info-table { display: table; }
  .info-table tbody { display: table-row-group; }
  .info-table tr { display: table-row; padding: 0; border-bottom: none; }
  .info-table th, .info-table td { display: table-cell; padding: 14px 18px; vertical-align: top; }
  .info-table th {
    background: var(--navy);
    color: #fff;
    width: 200px;
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: none;
    letter-spacing: normal;
  }
  .info-table tr:nth-child(even) td { background: #f7f5ef; }
}

.note {
  margin-top: 18px;
  padding: 16px 18px;
  background: #fff8e6;
  border-left: 4px solid var(--gold);
  border-radius: 8px;
  font-size: 0.98rem;
}

/* =========== Bloc texte + image =========== */
.split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 26px;
  align-items: center;
}

.split h2.section-title { text-align: left; }

.split p { margin-bottom: 14px; }

.split .img-wrap img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; }

.split .img-wrap figcaption { font-size: 0.88rem; color: var(--muted); margin-top: 8px; text-align: center; }

@media (min-width: 760px) {
  .split { grid-template-columns: 1.1fr 0.9fr; gap: 36px; }
}

/* =========== Prose =========== */
.prose { max-width: 760px; margin: 0 auto; }

.prose p { margin-bottom: 16px; font-size: 1.03rem; }

/* =========== Galerie =========== */
.gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.gallery figure { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }

.gallery img { width: 100%; height: auto; }

.gallery figcaption { padding: 12px 16px; font-size: 0.92rem; color: var(--muted); }

@media (min-width: 720px) {
  .gallery { grid-template-columns: 1fr 1fr; gap: 24px; }
  .gallery img { height: 280px; object-fit: cover; }
}

/* =========== Bandeau contact =========== */
.cta-band {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: #fff;
  text-align: center;
  padding: 46px 20px;
}

.cta-band h2 { font-size: clamp(1.35rem, 4.6vw, 1.7rem); margin-bottom: 12px; }

.cta-band p { color: #d7dee9; max-width: 640px; margin: 0 auto 24px; }

.cta-band .btn { max-width: 420px; margin-left: auto; margin-right: auto; }

.cta-band a.mail { color: var(--gold); font-weight: 600; word-break: break-all; }

/* =========== Footer =========== */
.site-footer {
  background: var(--navy-dark);
  color: #aeb9c9;
  font-size: 0.92rem;
  padding: 26px 20px calc(26px + env(safe-area-inset-bottom));
  text-align: center;
}

.site-footer p { margin-bottom: 6px; }

.site-footer a { color: #d7dee9; }

/* =========== Équipe / animateurs =========== */
.team-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.person {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 26px 22px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.person .avatar {
  width: 128px;
  height: 128px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 14px;
  border: 4px solid var(--gold-soft);
}

.person .avatar-placeholder {
  width: 128px;
  height: 128px;
  border-radius: 50%;
  margin-bottom: 14px;
  border: 4px dashed #cfd6df;
  background: #f2f0e9;
  color: #9aa5b1;
  font-size: 3rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.person .avatar-initials {
  width: 128px;
  height: 128px;
  border-radius: 50%;
  margin-bottom: 14px;
  border: 4px solid var(--gold-soft);
  background: var(--navy);
  color: var(--gold);
  font-size: 2.6rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  justify-content: center;
}

.person h3 { color: var(--navy); font-size: 1.22rem; margin-bottom: 4px; }

.person .role { color: var(--muted); font-size: 0.95rem; margin-bottom: 10px; }

.badges { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-bottom: 12px; }

.badge {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 5px 12px;
  border-radius: 999px;
}

.badge-numa { background: #dcebd7; color: #3e6b3a; }
.badge-arduineuch { background: #fde3d0; color: #a8501a; }

.person p.bio { font-size: 0.98rem; text-align: left; }

.person.placeholder p.bio { color: var(--muted); font-style: italic; text-align: center; }

@media (min-width: 680px) {
  .team-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
}

@media (min-width: 980px) {
  .team-grid { grid-template-columns: 1fr 1fr 1fr; }
}

/* =========== Divers =========== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .nav-burger span { transition: none; }
}

/* =========== Logo large (Numa) =========== */
.hero .logos img.wide { width: 265px; padding: 10px 12px; }
.page-hero img.logo.wide { width: 320px; padding: 10px 12px; }
.club-card img.wide { width: 250px; }

@media (min-width: 640px) {
  .hero .logos img.wide { width: 310px; }
}
