/* Icônes : Feather Icons (MIT) — feathericons.com
*/
/* ==========================================================================
   Tacot Club de l'Ain — feuille de style unique
   Site 100 % statique : aucune police ni ressource externe.
   ========================================================================== */

:root {
  --creme: #f6f1e7;
  --creme-2: #efe7d6;
  --papier: #fffdf8;
  --encre: #221d15;
  --encre-2: #4c4436;
  --brun: #6e5333;
  --bordeaux: #8c1f28;
  --bordeaux-fonce: #64121a;
  --or: #b8862f;
  --or-clair: #d9b25f;
  --gris-ligne: #ddd2bd;
  --ombre: 0 10px 30px rgba(34, 29, 21, .12);
  --serif: "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--encre);
  background: var(--creme);
}

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

a { color: var(--bordeaux); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--bordeaux-fonce); }

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--bordeaux);
  color: #fff;
  padding: .6rem 1rem;
  z-index: 200;
}
.skip-link:focus { left: 0; }

/* ---------- En-tête ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 253, 248, .96);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--gris-ligne);
  transition: box-shadow .25s ease;
}
.site-header.is-scrolled { box-shadow: 0 6px 20px rgba(34, 29, 21, .1); }

.header-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: .55rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  text-decoration: none;
  color: var(--encre);
}
.brand img { height: 60px; width: 60px; mix-blend-mode: multiply; }
.brand .brand-tag {
  display: none;
  font-family: var(--serif);
  font-size: .8rem;
  color: var(--encre-2);
  line-height: 1.25;
  border-left: 1px solid var(--gris-ligne);
  padding-left: .75rem;
}

.main-nav ul { list-style: none; display: flex; gap: .25rem; margin: 0; padding: 0; }
.main-nav a {
  display: block;
  padding: .55rem .8rem;
  text-decoration: none;
  color: var(--encre-2);
  font-weight: 600;
  font-size: .95rem;
  border-radius: 6px;
  letter-spacing: .01em;
}
.main-nav a:hover { background: var(--creme-2); color: var(--encre); }
.main-nav a[aria-current="page"] {
  color: var(--bordeaux);
  background: #f3e6e2;
}

.nav-toggle {
  display: none;
  border: 1px solid var(--gris-ligne);
  background: var(--papier);
  border-radius: 6px;
  padding: .45rem .65rem;
  font: inherit;
  font-size: .9rem;
  cursor: pointer;
}

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; align-items: center; gap: .4rem; }
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--papier);
    border-bottom: 1px solid var(--gris-ligne);
    box-shadow: 0 16px 30px rgba(34, 29, 21, .14);
    display: none;
  }
  .main-nav.is-open { display: block; }
  .main-nav ul { flex-direction: column; gap: 0; padding: .5rem .9rem 1rem; }
  .main-nav a { padding: .8rem .6rem; border-bottom: 1px dashed var(--gris-ligne); border-radius: 0; }
}

/* ---------- Bannière ---------- */

.hero {
  position: relative;
  min-height: clamp(430px, 68vh, 660px);
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--encre);
  isolation: isolate;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  animation: heroFade 28s infinite;
  z-index: -2;
}
.hero-slide:nth-child(1) { animation-delay: 0s; }
.hero-slide:nth-child(2) { animation-delay: 7s; }
.hero-slide:nth-child(3) { animation-delay: 14s; }
.hero-slide:nth-child(4) { animation-delay: 21s; }

@keyframes heroFade {
  0% { opacity: 0; }
  5%, 25% { opacity: 1; }
  32%, 100% { opacity: 0; }
}
.hero-slide:first-child { opacity: 1; }

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(100deg, rgba(20, 14, 10, .82) 0%, rgba(20, 14, 10, .55) 55%, rgba(20, 14, 10, .25) 100%);
}

.hero-inner {
  max-width: 1180px;
  width: 100%;
  margin: 0 auto;
  padding: 4.5rem 1.25rem;
  color: #fdf9ef;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--or-clair);
  margin: 0 0 1rem;
}
.hero-kicker::before {
  content: "";
  width: 42px;
  height: 2px;
  background: var(--or-clair);
}

.hero h1 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(2.3rem, 5.4vw, 4rem);
  line-height: 1.08;
  margin: 0 0 1rem;
  max-width: 17ch;
  text-wrap: balance;
}

.hero p.lead {
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  max-width: 52ch;
  margin: 0 0 2rem;
  color: #f1e9d8;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; }

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

.btn {
  display: inline-block;
  padding: .8rem 1.5rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: .98rem;
  text-decoration: none;
  border: 2px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--bordeaux); color: #fff; box-shadow: var(--ombre); }
.btn-primary:hover { background: var(--bordeaux-fonce); color: #fff; }
.btn-ghost { border-color: rgba(253, 249, 239, .75); color: #fdf9ef; }
.btn-ghost:hover { background: rgba(253, 249, 239, .14); color: #fff; }
.btn-outline { border-color: var(--bordeaux); color: var(--bordeaux); }
.btn-outline:hover { background: var(--bordeaux); color: #fff; }

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

.section { padding: clamp(3rem, 7vw, 5.5rem) 1.25rem; }
.section--alt { background: var(--creme-2); }
.section--dark { background: var(--encre); color: #efe7d6; }
.section--dark a { color: var(--or-clair); }

.container { max-width: 1180px; margin: 0 auto; }
.container--narrow { max-width: 860px; }

.eyebrow {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--or);
  margin: 0 0 .6rem;
}
.section--dark .eyebrow { color: var(--or-clair); }

h2.section-title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(1.7rem, 3.6vw, 2.5rem);
  line-height: 1.15;
  margin: 0 0 1rem;
  text-wrap: balance;
}

.section-intro { max-width: 62ch; color: var(--encre-2); margin: 0 0 2.5rem; }
.section--dark .section-intro { color: #cfc4ac; }

.center { text-align: center; }
.center .section-intro { margin-left: auto; margin-right: auto; }

/* ---------- Grille de cartes ---------- */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.4rem;
  margin: 0;
  padding: 0;
}

.card {
  background: var(--papier);
  border: 1px solid var(--gris-ligne);
  border-radius: 14px;
  padding: 1.6rem 1.5rem;
  box-shadow: 0 2px 6px rgba(34, 29, 21, .06);
  transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--ombre); }

.card .card-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: #f3e6e2;
  color: var(--bordeaux);
  font-size: 1.35rem;
  margin-bottom: 1rem;
}
.card .card-icon svg { width: 24px; height: 24px; }
.ico svg, .btn svg, h3 svg { vertical-align: -0.15em; }
.card h3 {
  font-family: var(--serif);
  font-size: 1.22rem;
  margin: 0 0 .5rem;
}
.card p { margin: 0; color: var(--encre-2); font-size: .97rem; }

/* ---------- Chiffres clés ---------- */

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 1rem;
  text-align: center;
}
.stat { padding: 1rem; }
.stat b {
  display: block;
  font-family: var(--serif);
  font-size: clamp(2.2rem, 4.5vw, 3.2rem);
  line-height: 1.05;
  color: var(--or-clair);
}
.stat span {
  display: block;
  margin-top: .35rem;
  font-size: .9rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #cfc4ac;
}

/* ---------- Bandeau de page (pages internes) ---------- */

.page-hero {
  background:
    linear-gradient(100deg, rgba(24, 17, 12, .85), rgba(24, 17, 12, .45)),
    var(--img-hero, url("../assets/img/hero/photo10.jpg")) center / cover no-repeat;
  color: #fdf9ef;
  padding: clamp(3.2rem, 8vw, 5.5rem) 1.25rem;
}
.page-hero h1 {
  font-family: var(--serif);
  font-size: clamp(2rem, 4.6vw, 3.2rem);
  margin: 0 0 .6rem;
  text-wrap: balance;
}
.page-hero p { margin: 0; max-width: 60ch; color: #f1e9d8; font-size: 1.1rem; }

/* ---------- Encadrés ---------- */

.panel {
  background: var(--papier);
  border: 1px solid var(--gris-ligne);
  border-left: 5px solid var(--bordeaux);
  border-radius: 12px;
  padding: 1.5rem 1.7rem;
  box-shadow: 0 2px 6px rgba(34, 29, 21, .06);
}
.panel h3 { font-family: var(--serif); margin-top: 0; }
.panel ul { margin: .5rem 0 0; padding-left: 1.2rem; }
.panel li + li { margin-top: .4rem; }

.note {
  background: #fdf6df;
  border: 1px solid #e8d9a8;
  border-radius: 12px;
  padding: 1rem 1.3rem;
  font-size: .95rem;
  color: #6e5333;
}

/* ---------- Liste d'événements (agenda) ---------- */

.events {
  list-style: none;
  margin: 1.6rem 0 0;
  padding: 0;
  border-top: 1px solid var(--gris-ligne);
}
.events li {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 1rem;
  padding: .85rem .2rem;
  border-bottom: 1px solid var(--gris-ligne);
  align-items: baseline;
}
.events .event-date {
  font-family: var(--serif);
  font-weight: 700;
  color: var(--bordeaux);
  white-space: nowrap;
}
.events small { display: block; color: var(--encre-2); margin-top: .15rem; }
.events .event-passe { opacity: .62; }
@media (max-width: 640px) {
  .events li { grid-template-columns: 1fr; gap: .2rem; }
}

/* ---------- Galerie ---------- */

.gallery-filters {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin-bottom: 1.8rem;
}
.filter-btn {
  border: 1px solid var(--gris-ligne);
  background: var(--papier);
  color: var(--encre-2);
  border-radius: 999px;
  padding: .5rem 1.1rem;
  font: inherit;
  font-size: .92rem;
  font-weight: 600;
  cursor: pointer;
  transition: all .15s ease;
}
.filter-btn:hover { border-color: var(--bordeaux); color: var(--bordeaux); }
.filter-btn.is-active { background: var(--bordeaux); border-color: var(--bordeaux); color: #fff; }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
}
.gallery-item {
  position: relative;
  border: 0;
  padding: 0;
  margin: 0;
  background: none;
  cursor: zoom-in;
  border-radius: 10px;
  overflow: hidden;
  display: block;
}
.gallery-item img {
  width: 100%;
  height: 210px;
  object-fit: cover;
  transition: transform .3s ease;
}
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item figcaption,
.gallery-item .caption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 1.6rem .8rem .6rem;
  background: linear-gradient(transparent, rgba(20, 14, 10, .82));
  color: #fff;
  font-size: .85rem;
  text-align: left;
  opacity: 0;
  transition: opacity .2s ease;
}
.gallery-item:hover .caption, .gallery-item:focus-visible .caption { opacity: 1; }
.gallery-item.is-hidden { display: none; }

/* Visionneuse */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(15, 11, 8, .93);
  padding: 2rem;
}
.lightbox.is-open { display: flex; }
.lightbox img {
  max-width: min(1200px, 92vw);
  max-height: 80vh;
  border-radius: 6px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .6);
}
.lightbox-caption {
  position: absolute;
  bottom: 1.4rem;
  left: 0;
  right: 0;
  text-align: center;
  color: #efe7d6;
  font-size: .95rem;
}
.lightbox-close, .lightbox-prev, .lightbox-next {
  position: absolute;
  background: rgba(253, 249, 239, .12);
  color: #fff;
  border: 1px solid rgba(253, 249, 239, .3);
  border-radius: 999px;
  width: 46px;
  height: 46px;
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
}
.lightbox-close { top: 1.2rem; right: 1.2rem; }
.lightbox-prev { left: 1.2rem; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 1.2rem; top: 50%; transform: translateY(-50%); }
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover { background: var(--bordeaux); }

/* ---------- Tarifs ---------- */

.price-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.4rem;
  margin: 2rem 0;
}
.price-card {
  background: var(--papier);
  border: 1px solid var(--gris-ligne);
  border-radius: 16px;
  padding: 2rem 1.7rem;
  text-align: center;
  box-shadow: 0 2px 6px rgba(34, 29, 21, .06);
}
.price-card.featured {
  border: 2px solid var(--bordeaux);
  position: relative;
}
.price-card .price {
  font-family: var(--serif);
  font-size: 2.7rem;
  color: var(--bordeaux);
  line-height: 1;
  margin: .8rem 0 .3rem;
}
.price-card .price small { font-size: 1.05rem; color: var(--encre-2); }
.price-card .hint { font-size: .88rem; color: var(--encre-2); }
.price-card p { color: var(--encre-2); font-size: .95rem; }

.steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 2rem 0 0;
  display: grid;
  gap: 1rem;
}
.steps li {
  counter-increment: step;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: var(--papier);
  border: 1px solid var(--gris-ligne);
  border-radius: 12px;
  padding: 1.1rem 1.3rem;
}
.steps li::before {
  content: counter(step);
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--bordeaux);
  color: #fff;
  font-weight: 700;
  display: grid;
  place-items: center;
}

/* ---------- Contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 2rem;
  align-items: start;
}
@media (max-width: 820px) {
  .contact-grid { grid-template-columns: 1fr; }
}
.contact-list { list-style: none; margin: 0; padding: 0; }
.contact-list li {
  display: flex;
  gap: .9rem;
  padding: 1rem 0;
  border-bottom: 1px dashed var(--gris-ligne);
}
.contact-list .ico { font-size: 1.3rem; flex: 0 0 auto; }
.contact-list b { display: block; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--encre-2); }

.map-embed {
  border: 1px solid var(--gris-ligne);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--ombre);
  line-height: 0;
}
.map-embed iframe { width: 100%; height: 380px; border: 0; }
.map-embed figcaption {
  line-height: 1.4;
  font-size: .82rem;
  color: var(--encre-2);
  padding: .6rem .9rem;
  background: var(--papier);
}

/* ---------- Pied de page ---------- */

.site-footer {
  background: #191410;
  color: #cfc4ac;
  padding: 3.2rem 1.25rem 2rem;
  font-size: .95rem;
}
.footer-grid {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2.4rem;
}
@media (max-width: 780px) {
  .footer-grid { grid-template-columns: 1fr; gap: 1.8rem; }
}
.site-footer h4 {
  font-family: var(--serif);
  color: #fdf9ef;
  font-size: 1.05rem;
  margin: 0 0 .8rem;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li + li { margin-top: .45rem; }
.site-footer a { color: #cfc4ac; text-decoration: none; }
.site-footer a:hover { color: var(--or-clair); text-decoration: underline; }
.footer-brand img {
  height: 70px;
  width: 70px;
  margin-bottom: .9rem;
  background: #fff;
  border-radius: 50%;
  padding: 6px;
}
.footer-bottom {
  max-width: 1180px;
  margin: 2.4rem auto 0;
  padding-top: 1.4rem;
  border-top: 1px solid #3a3226;
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
  justify-content: space-between;
  font-size: .85rem;
  color: #9a8d72;
}
.ffve-badge {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  background: #fff;
  border-radius: 8px;
  padding: .45rem .8rem;
  color: var(--encre) !important;
  font-weight: 600;
}
.ffve-badge img { height: 40px; width: auto; }

/* ---------- Divers ---------- */

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.4rem;
  align-items: center;
}
@media (max-width: 820px) {
  .two-col { grid-template-columns: 1fr; }
}
.rounded { border-radius: 14px; box-shadow: var(--ombre); }

.figure-credit { font-size: .82rem; color: var(--encre-2); margin-top: .5rem; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-slide { animation: none; }
  .hero-slide:nth-child(n+2) { opacity: 0; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .card:hover, .btn:hover { transform: none; }
}
