/* ==========================================================================
   TC Vallières-sur-Fier — palette & typographie inspirées de savoie-padel.com
   ========================================================================== */

:root {
  --ink:        #0E201A;
  --pine:       #15362A;
  --forest:     #1C4636;
  --green:      #2C6E54;
  --sage:       #5b6b62;
  --cream:      #F2EBDC;
  --paper:      #FBFAF5;
  --clay:       #C9572F;
  --clay-dark:  #A8431F;
  --sky:        #CBDCE4;

  --font-display: "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --font-body:    "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --font-mono:    "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;

  --radius: 20px;
  --container: 1120px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  font-size: 1.0625rem;
}

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

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.5rem, 6vw, 4.25rem); font-weight: 800; }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); }
h3 { font-size: 1.25rem; }

p + p { margin-top: 0.75em; }

a { color: inherit; }

.kicker {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--clay);
  display: block;
  margin-bottom: 14px;
}

.accent { color: var(--clay); }

/* --------------------------------------------------------------------------
   Boutons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  padding: 14px 28px;
  border-radius: 999px;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary { background: var(--clay); color: var(--paper); }
.btn-primary:hover { background: var(--clay-dark); }

.btn-outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-outline:hover { background: var(--ink); color: var(--paper); }

.btn-light { border-color: var(--cream); color: var(--cream); background: transparent; }
.btn-light:hover { background: var(--cream); color: var(--ink); }

.btn-nav { padding: 10px 22px; font-size: 0.9375rem; }

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 250, 245, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(14, 32, 26, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 14px;
}

.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.brand-logo {
  height: 60px;
  width: auto;
}

.footer-logo {
  height: 60px;
  width: auto;
  margin-bottom: 14px;
  /* logo noir → blanc sur fond sombre */
  filter: invert(1);
  opacity: 0.92;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 26px;
}

.site-nav a:not(.btn) {
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--ink);
  opacity: 0.75;
  transition: opacity 0.15s;
}
.site-nav a:not(.btn):hover,
.site-nav a.is-active { opacity: 1; }

.site-nav a.is-active { color: var(--clay); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
}
.nav-toggle span {
  width: 24px; height: 2.5px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
  background:
    radial-gradient(1200px 500px at 85% -10%, rgba(44, 110, 84, 0.45), transparent 60%),
    radial-gradient(800px 400px at -10% 110%, rgba(201, 87, 47, 0.25), transparent 55%),
    var(--ink);
  color: var(--cream);
  padding: clamp(72px, 12vw, 140px) 0;
  position: relative;
  overflow: hidden;
}

/* Variante avec photo de fond */
.hero-photo {
  background-size: cover;
  background-position: center;
}
.hero-photo::before, .hero-photo::after { display: none; }

.hero::after {
  content: "";
  position: absolute;
  right: -140px;
  top: 50%;
  transform: translateY(-50%);
  width: 480px; height: 480px;
  border: 2px solid rgba(242, 235, 220, 0.12);
  border-radius: 50%;
  pointer-events: none;
}
.hero::before {
  content: "";
  position: absolute;
  right: 100px;
  top: 50%;
  transform: translateY(-50%);
  width: 480px; height: 480px;
  border: 2px solid rgba(242, 235, 220, 0.07);
  border-radius: 50%;
  pointer-events: none;
}

.hero .container { position: relative; z-index: 1; }

.hero h1 { max-width: 15ch; }
.hero-full h1, .hero-full .hero-lead { max-width: none; }

.hero-lead {
  margin-top: 22px;
  font-size: clamp(1.0625rem, 1.8vw, 1.25rem);
  max-width: 52ch;
  color: rgba(242, 235, 220, 0.85);
}

.hero-actions {
  margin-top: 36px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-badges {
  margin-top: 44px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.badge {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid rgba(242, 235, 220, 0.25);
  color: rgba(242, 235, 220, 0.85);
}

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */
.section { padding: clamp(56px, 9vw, 100px) 0; }
.section-cream { background: var(--cream); }
.section-dark {
  background:
    radial-gradient(900px 400px at 90% 0%, rgba(44, 110, 84, 0.4), transparent 60%),
    var(--pine);
  color: var(--cream);
}

.section-head { max-width: none; margin-bottom: 44px; }
.section-head p { margin-top: 14px; color: var(--sage); max-width: 62ch; }
.section-dark .section-head p { color: rgba(242, 235, 220, 0.75); }

/* --------------------------------------------------------------------------
   Grilles & cartes
   -------------------------------------------------------------------------- */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--paper);
  border: 1px solid rgba(14, 32, 26, 0.1);
  border-radius: var(--radius);
  padding: 30px;
}

.card h3 { margin-bottom: 10px; }
.card p { color: var(--sage); font-size: 0.9875rem; }

.card-icon {
  font-size: 1.75rem;
  line-height: 1;
  margin-bottom: 16px;
  display: block;
}

/* Vignette "logo" alignée sur le même gabarit que les vignettes photo */
.logo-tile {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 3 / 2;
  background: #232349;
  padding: 40px 36px;
}
.logo-tile img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.section-dark .card {
  background: rgba(251, 250, 245, 0.04);
  border-color: rgba(242, 235, 220, 0.14);
}
.section-dark .card p { color: rgba(242, 235, 220, 0.72); }

/* Cartes avec photo */
.photo-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.photo-card .card-body { padding: 24px 28px 28px; }

.photo-card-link {
  display: block;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  cursor: zoom-in;
}
.photo-card-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.photo-card-link:hover img { transform: scale(1.04); }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 32px;
  background: rgba(14, 32, 26, 0.92);
}
.lightbox.is-open { display: flex; }
.lightbox img {
  max-width: min(1100px, 100%);
  max-height: 88vh;
  width: auto;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}
.lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(251, 250, 245, 0.12);
  color: var(--cream);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}
.lightbox-close:hover { background: rgba(251, 250, 245, 0.22); }

/* Section photo + texte côte à côte */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; }
.split img { width: 100%; border-radius: var(--radius); }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } }

/* Étiquettes (matériel au chalet) */
.tag-list { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.tag {
  font-size: 0.875rem;
  font-weight: 600;
  padding: 8px 15px;
  border-radius: 999px;
  background: var(--cream);
  color: var(--forest);
}
.section-dark .tag { background: rgba(242, 235, 220, 0.12); color: var(--cream); }

/* --------------------------------------------------------------------------
   Cartes tarif (location)
   -------------------------------------------------------------------------- */
.price-card {
  border-radius: var(--radius);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.price-card-featured {
  background: var(--forest);
  color: var(--cream);
  border: none;
  position: relative;
  overflow: hidden;
}
.price-card-featured::after {
  content: "";
  position: absolute;
  right: -70px; top: -70px;
  width: 200px; height: 200px;
  border-radius: 50%;
  background: rgba(201, 87, 47, 0.35);
  filter: blur(2px);
}

.price-card-plain {
  background: var(--paper);
  color: var(--ink);
  border: 1px solid rgba(14, 32, 26, 0.12);
}

.price-tag {
  font-family: var(--font-mono);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  line-height: 1;
}
.price-tag small {
  font-size: 0.45em;
  font-weight: 400;
  opacity: 0.75;
}

.pill {
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 6px 13px;
  border-radius: 999px;
  background: var(--clay);
  color: var(--paper);
}
.price-card-plain .pill { background: var(--cream); color: var(--forest); }

.check-list { list-style: none; display: grid; gap: 10px; }
.check-list li { padding-left: 30px; position: relative; }
.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  font-weight: 700;
  color: var(--clay);
}
.price-card-featured .check-list li::before { color: #E8946F; }

/* --------------------------------------------------------------------------
   Étapes (comment ça marche)
   -------------------------------------------------------------------------- */
.steps { counter-reset: step; }
.step { position: relative; padding-left: 0; }
.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: var(--clay);
  display: block;
  margin-bottom: 12px;
}

/* --------------------------------------------------------------------------
   Encadré highlight (matériel inclus)
   -------------------------------------------------------------------------- */
.highlight-box {
  border-radius: var(--radius);
  background: var(--clay);
  color: var(--paper);
  padding: clamp(32px, 5vw, 52px);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 26px;
  align-items: center;
}
.highlight-box .big-icon { font-size: 3rem; line-height: 1; }
.highlight-box h2 { color: var(--paper); }
.highlight-box p { margin-top: 10px; color: rgba(251, 250, 245, 0.92); }

/* --------------------------------------------------------------------------
   Tableaux de tarifs
   -------------------------------------------------------------------------- */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid rgba(14, 32, 26, 0.12); }

table.pricing {
  width: 100%;
  border-collapse: collapse;
  background: var(--paper);
  font-size: 0.9875rem;
  min-width: 560px;
}

table.pricing th, table.pricing td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid rgba(14, 32, 26, 0.08);
}

table.pricing thead th {
  background: var(--forest);
  color: var(--cream);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9375rem;
}

table.pricing tbody tr:last-child td { border-bottom: none; }
table.pricing td.num { font-family: var(--font-mono); white-space: nowrap; }
table.pricing .total { font-family: var(--font-mono); font-weight: 700; color: var(--clay-dark); white-space: nowrap; }

table.pricing td:first-child {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}
table.pricing td:first-child::before { content: none; }

/* Mobile : cartes empilées plutôt qu'un tableau à défiler horizontalement
   (le total, l'info la plus importante, doit rester visible sans scroll). */
@media (max-width: 640px) {
  .table-wrap { overflow-x: visible; border: none; }
  table.pricing { min-width: 0; }
  table.pricing thead { display: none; }
  table.pricing, table.pricing tbody, table.pricing tr, table.pricing td { display: block; width: 100%; }

  table.pricing tr {
    background: var(--paper);
    border: 1px solid rgba(14, 32, 26, 0.12);
    border-radius: 14px;
    padding: 14px 16px;
    margin-bottom: 12px;
  }
  table.pricing tr:last-child { margin-bottom: 0; }

  table.pricing td {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    padding: 4px 0;
    border-bottom: none;
    white-space: normal;
  }
  table.pricing td::before {
    content: attr(data-label);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--sage);
  }
  table.pricing td:first-child {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.0625rem;
    padding-bottom: 10px;
    margin-bottom: 4px;
    border-bottom: 1px solid rgba(14, 32, 26, 0.1);
  }
  table.pricing .total { font-size: 1.1875rem; }
}

.table-note {
  font-size: 0.875rem;
  color: var(--sage);
  margin-top: 12px;
}

/* Fil Facebook (page actualités) */
.fb-feed-wrap { width: 100%; }
.fb-feed-wrap iframe { width: 100% !important; max-width: 100%; }
.fb-feed-wrap .fb-page { width: 100%; }

.tarif-block { margin-bottom: 32px; }
.tarif-block:last-of-type { margin-bottom: 0; }
.tarif-block-title {
  font-family: var(--font-display);
  font-size: 1.375rem;
  margin-bottom: 14px;
}

/* --------------------------------------------------------------------------
   Formulaire contact
   -------------------------------------------------------------------------- */
.form-grid { display: grid; gap: 18px; grid-template-columns: 1fr 1fr; }
.form-grid .full { grid-column: 1 / -1; }

label {
  display: block;
  font-weight: 600;
  font-size: 0.9375rem;
  margin-bottom: 6px;
}

input[type="text"], input[type="email"], input[type="tel"], select, textarea {
  width: 100%;
  font: inherit;
  padding: 13px 16px;
  border: 1.5px solid rgba(14, 32, 26, 0.18);
  border-radius: 12px;
  background: var(--paper);
  color: var(--ink);
  transition: border-color 0.15s;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--green);
}
textarea { resize: vertical; min-height: 140px; }

.form-msg {
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 24px;
  font-weight: 600;
}
.form-msg.ok { background: rgba(44, 110, 84, 0.12); color: var(--forest); }
.form-msg.err { background: rgba(201, 87, 47, 0.12); color: var(--clay-dark); }

/* --------------------------------------------------------------------------
   Bandeau CTA
   -------------------------------------------------------------------------- */
.cta-banner {
  background:
    radial-gradient(700px 300px at 15% 0%, rgba(201, 87, 47, 0.35), transparent 55%),
    var(--ink);
  color: var(--cream);
  border-radius: var(--radius);
  padding: clamp(40px, 6vw, 64px);
  text-align: center;
}
.cta-banner h2 { max-width: 24ch; margin-inline: auto; }
.cta-banner p { margin-top: 14px; color: rgba(242, 235, 220, 0.8); }
.cta-banner .btn { margin-top: 28px; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--ink);
  color: rgba(242, 235, 220, 0.75);
  padding: 64px 0 28px;
  font-size: 0.9375rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 36px;
}

.footer-brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.125rem;
  color: var(--cream);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.footer-title {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--cream);
  margin-bottom: 14px;
}

.footer-grid a {
  display: block;
  text-decoration: none;
  margin-bottom: 9px;
  opacity: 0.75;
  transition: opacity 0.15s;
}
.footer-grid a:hover { opacity: 1; }

.footer-bottom {
  margin-top: 48px;
  padding-top: 22px;
  border-top: 1px solid rgba(242, 235, 220, 0.12);
  font-size: 0.8125rem;
}
.footer-bottom a { color: inherit; }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .highlight-box { grid-template-columns: 1fr; }

  .nav-toggle { display: flex; }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    flex-direction: column;
    align-items: flex-start;
    background: var(--paper);
    border-bottom: 1px solid rgba(14, 32, 26, 0.1);
    padding: 20px 24px 26px;
    gap: 18px;
  }
  .site-nav.is-open { display: flex; }
}
