/* ===================================================================
   Brochon Sports et Détente — style « Zen & épuré »
   Palette terracotta, accordée au logo (#b86b5c)
   =================================================================== */

:root {
  --terra: #a85d4e;
  --terra-clair: #b86b5c;
  --terra-texte: #8f4d3f;
  --gris-chaud: #9c8a83;
  --creme: #f6efec;
  --fond: #fdfbfa;
  --fond-alt: #f9f3f0;
  --bordure: #ecdfdb;
  --texte: #4a3d38;
}

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

html {
  scroll-behavior: smooth;
  /* Compense la hauteur de l'en-tête fixe lors des ancres */
  scroll-padding-top: 4.5rem;
}

body {
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  background: var(--fond);
  color: var(--texte);
  line-height: 1.7;
}

/* ----------------------------------------------------------------
   En-tête & navigation
   ---------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem 1.5rem;
  padding: 0.9rem 2rem;
  background: var(--fond);
  border-bottom: 1px solid var(--bordure);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--terra);
  text-decoration: none;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem 1.2rem;
}

.site-nav a {
  color: var(--gris-chaud);
  text-decoration: none;
  transition: color 0.2s;
}

.site-nav a:hover {
  color: var(--terra);
}

/* ----------------------------------------------------------------
   Accueil (hero)
   ---------------------------------------------------------------- */

.brand-logo {
  height: 2.2rem;
}

.hero {
  text-align: center;
  padding: 4rem 1.5rem;
  background: linear-gradient(160deg, #ecd5cd, var(--creme));
  color: var(--terra-texte);
}

.hero-logo {
  height: 6.5rem;
  margin-bottom: 1.2rem;
}

.hero h1 {
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  font-weight: 300;
  letter-spacing: 0.12em;
}

.hero-subtitle {
  margin-top: 0.8rem;
  color: var(--gris-chaud);
}

.hero .btn {
  margin-top: 1.6rem;
}

/* ----------------------------------------------------------------
   Boutons
   ---------------------------------------------------------------- */

.btn {
  display: inline-block;
  padding: 0.7rem 1.8rem;
  border-radius: 2rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.btn-primary {
  background: var(--terra-clair);
  color: #fff;
}

.btn-light {
  background: #fff;
  color: var(--terra);
}

/* ----------------------------------------------------------------
   Sections
   ---------------------------------------------------------------- */

.section {
  padding: 3.5rem 1.5rem;
  max-width: 60rem;
  margin: 0 auto;
  text-align: center;
}

.section h2 {
  font-size: 1.4rem;
  font-weight: 300;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--terra);
  margin-bottom: 1.4rem;
}

.section p {
  color: var(--gris-chaud);
  max-width: 42rem;
  margin: 0 auto 0.8rem;
}

/* Sections pleine largeur avec fond alterné */
.section-alt,
.section-terra {
  max-width: none;
}

.section-alt {
  background: var(--fond-alt);
}

.section-alt > *,
.section-terra > * {
  max-width: 60rem;
  margin-left: auto;
  margin-right: auto;
}

.section-intro {
  margin-bottom: 1.4rem;
}

.note {
  font-style: italic;
  color: #bca79f;
}

.muted {
  color: var(--gris-chaud);
  font-weight: 400;
}

/* ----------------------------------------------------------------
   Cartes d'activités
   ---------------------------------------------------------------- */

.cards-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.activity-card {
  flex: 0 1 11rem;
  background: #fff;
  border-radius: 0.6rem;
  padding: 1.4rem 1rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  transition: transform 0.15s, box-shadow 0.15s;
}

.activity-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 14px rgba(0, 0, 0, 0.1);
}

.activity-icon {
  font-size: 1.8rem;
}

.activity-card h3 {
  margin: 0.4rem 0 0.2rem;
  font-weight: 600;
  color: var(--terra);
}

.activity-card p {
  margin: 0;
  font-size: 0.9rem;
}

/* ----------------------------------------------------------------
   Tableaux (planning & tarifs)
   ---------------------------------------------------------------- */

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  font-size: 0.9rem;
}

thead th {
  background: var(--terra);
  color: #fff;
  padding: 0.6rem;
  font-weight: 600;
}

tbody th {
  background: #f3e6e1;
  color: var(--terra);
  font-weight: 600;
  padding: 0.6rem;
  text-align: left;
}

tbody td {
  border: 1px solid var(--bordure);
  padding: 0.6rem;
  text-align: center;
}

.notes-list {
  list-style: none;
  margin-top: 1.2rem;
  font-size: 0.85rem;
  color: var(--gris-chaud);
  text-align: center;
}

.notes-list li {
  margin-bottom: 0.3rem;
}

.rib-link {
  color: var(--terra);
  font-weight: 600;
}

/* ----------------------------------------------------------------
   Inscription (bandeau vert)
   ---------------------------------------------------------------- */

.section-terra {
  background: var(--terra);
  color: #fff;
}

.section-terra h2 {
  color: #fff;
}

.cta-wrap {
  margin-bottom: 1.6rem;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
  gap: 1.2rem;
  text-align: left;
}

.info-card {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 0.6rem;
  padding: 1.2rem 1.4rem;
  font-size: 0.92rem;
}

.info-card h3 {
  font-size: 1rem;
  margin-bottom: 0.6rem;
}

.info-card p,
.info-card li {
  color: rgba(255, 255, 255, 0.9);
}

.info-card ul {
  padding-left: 1.1rem;
}

.info-card li {
  margin-bottom: 0.4rem;
}

.note-light {
  font-style: italic;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.75);
}

/* .section-terra .refund-note : spécificité supérieure à « .section p »
   qui imposait sinon sa couleur grise */
.section-terra .refund-note {
  display: inline-block;
  margin-top: 1.4rem;
  padding: 0.6rem 1.2rem;
  font-size: 0.95rem;
  color: #fff;
  background: rgba(0, 0, 0, 0.18);
  border-radius: 0.4rem;
}

/* ----------------------------------------------------------------
   Contact & pied de page
   ---------------------------------------------------------------- */

.contact-line {
  font-size: 1.05rem;
}

.contact-line a {
  color: var(--terra);
}

.contact-form {
  max-width: 28rem;
  margin: 1.5rem auto 0;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.contact-form label {
  font-size: 0.9rem;
  color: var(--terra);
  font-weight: 600;
}

.contact-form input,
.contact-form textarea {
  font: inherit;
  color: var(--texte);
  background: #fff;
  border: 1px solid var(--bordure);
  border-radius: 0.4rem;
  padding: 0.55rem 0.8rem;
  margin-bottom: 0.7rem;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid var(--terra-clair);
  border-color: transparent;
}

.contact-form button {
  align-self: center;
  border: none;
  cursor: pointer;
  font: inherit;
  font-weight: 600;
  margin-top: 0.4rem;
}

/* Champ piège anti-robots : invisible pour les humains */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-feedback {
  max-width: 28rem;
  margin: 1rem auto 0;
  padding: 0.7rem 1rem;
  border-radius: 0.4rem;
  font-size: 0.95rem;
}

.form-feedback-ok {
  background: #f5e7e2;
  color: var(--terra-texte);
}

.form-feedback-err {
  background: #f7e8e4;
  color: #8a4a3a;
}

.site-footer {
  padding: 1rem;
  background: #f3e9e4;
  text-align: center;
  font-size: 0.85rem;
  color: #bca79f;
}

/* ----------------------------------------------------------------
   Responsive
   ---------------------------------------------------------------- */

@media (max-width: 40rem) {
  .site-header {
    justify-content: center;
    text-align: center;
  }

  .hero {
    padding: 3.5rem 1rem;
  }

  .section {
    padding: 2.5rem 1rem;
  }
}
