/* =========================================================
   Club de Golf de Chibougamau-Chapais — design system
   Thème "carte de pointage" : panneaux en diagonale,
   coins coupés, grille de trous façon scorecard.
   ========================================================= */
:root {
  --color-primary: #334221;
  --color-primary-light: #4a5c30;
  --color-primary-dark: #202619;
  --color-accent: #8a9a3a;
  --color-accent-dark: #6f7d2e;
  --color-bg: #f4f0e7;
  --color-bg-alt: #ffffff;
  --color-text: #23281f;
  --color-text-muted: #666f5c;
  --color-border: #e2ddce;
  --font-heading: 'Fraunces', Georgia, serif;
  --font-body: 'Inter', -apple-system, sans-serif;
  --radius: 10px;
  --cut: 16px;
  --shadow: 0 10px 30px rgba(51, 66, 33, 0.12);
  --shadow-lg: 0 24px 60px rgba(20, 26, 14, 0.35);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  font-size: 16px;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 600; line-height: 1.15; margin: 0 0 .5em; color: var(--color-primary); }
h1 { font-size: clamp(2.2rem, 4.4vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--color-accent-dark); font-family: var(--font-body); font-size: .76rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 12px; }
.eyebrow::before { content: ''; width: 22px; height: 2px; background: var(--color-accent); display: inline-block; }

/* Buttons — coins coupés façon carte de pointage */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 30px; font-weight: 700; text-decoration: none; border: none; cursor: pointer;
  font-size: .95rem; font-family: var(--font-body); letter-spacing: .01em;
  clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease, color .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-accent { background: var(--color-accent); color: #fff; box-shadow: 0 8px 20px rgba(138,154,58,.4); }
.btn-accent:hover { background: var(--color-accent-dark); }
.btn-outline { background: transparent; color: #fff; box-shadow: inset 0 0 0 2px rgba(255,255,255,.7); }
.btn-outline:hover { box-shadow: inset 0 0 0 2px #fff; background: rgba(255,255,255,.1); }
.btn-outline-dark { background: transparent; color: var(--color-primary); box-shadow: inset 0 0 0 2px var(--color-primary); }
.btn-outline-dark:hover { background: var(--color-primary); color: #fff; }
.btn-block { width: 100%; }
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }

/* ===== Header — transparent sur le hero, plein vert au scroll ===== */
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 100; background: transparent; transition: background-color .3s ease, box-shadow .3s ease, padding .3s ease; }
.site-header.scrolled { background: var(--color-primary-dark); box-shadow: 0 6px 24px rgba(0,0,0,.3); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 20px; padding-bottom: 20px; transition: padding .3s ease; }
.site-header.scrolled .container { padding-top: 10px; padding-bottom: 10px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { height: 64px; width: auto; transition: height .3s ease; }
.site-header.scrolled .brand img { height: 46px; }

.main-nav { display: flex; align-items: center; gap: 30px; }
.main-nav a { text-decoration: none; font-weight: 600; color: #fff; font-size: .85rem; letter-spacing: .05em; text-transform: uppercase; position: relative; padding: 6px 0; }
.main-nav a::after { content: ''; position: absolute; left: 0; right: 100%; bottom: 0; height: 2px; background: var(--color-accent); transition: right .2s ease; }
.main-nav a:hover::after, .main-nav a.active::after { right: 0; }
.main-nav a.active { color: var(--color-accent); }

.header-cta { display: flex; align-items: center; gap: 14px; }
.menu-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.menu-toggle svg { width: 26px; height: 26px; color: #fff; }

.mobile-drawer { position: fixed; inset: 0; z-index: 200; visibility: hidden; }
.mobile-drawer .backdrop { position: absolute; inset: 0; background: rgba(20,26,14,.6); opacity: 0; transition: opacity .25s ease; }
.mobile-drawer .panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(300px, 82vw); background: var(--color-primary-dark); padding: 28px 24px; transform: translateX(100%); transition: transform .25s ease; display: flex; flex-direction: column; gap: 22px; }
body.menu-open .mobile-drawer { visibility: visible; }
body.menu-open .mobile-drawer .backdrop { opacity: 1; }
body.menu-open .mobile-drawer .panel { transform: translateX(0); }
.mobile-drawer nav { display: flex; flex-direction: column; gap: 18px; margin-top: 10px; }
.mobile-drawer nav a { text-decoration: none; font-weight: 700; font-size: 1.1rem; color: #fff; }
.mobile-drawer .close-drawer { align-self: flex-end; background: none; border: none; cursor: pointer; }
.mobile-drawer .close-drawer svg { width: 24px; height: 24px; color: #fff; }

/* ===== Hero — panneau en diagonale par-dessus la photo ===== */
.hero { position: relative; height: min(90vh, 740px); min-height: 560px; overflow: hidden; }
.hero .slide-item { position: absolute; inset: 0; opacity: 0; transition: opacity 1.2s ease; background-size: cover; background-position: center; }
.hero .slide-item.active { opacity: 1; z-index: 1; }
.hero .slide-item::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20,26,14,.15) 0%, rgba(20,26,14,0) 45%), linear-gradient(0deg, rgba(20,26,14,.4) 0%, rgba(20,26,14,0) 30%); }

.hero-panel {
  position: absolute; top: 0; left: 0; height: 100%; width: min(600px, 90vw); z-index: 2;
  background: linear-gradient(160deg, rgba(32,38,25,.97), rgba(51,66,33,.9));
  clip-path: polygon(0 0, 100% 0, 76% 100%, 0 100%);
  display: flex; flex-direction: column; justify-content: center;
  padding: 140px 70px 70px 44px; color: #fff;
}
.hero-panel .eyebrow { color: #d7db7b; }
.hero-panel .eyebrow::before { background: #d7db7b; }
.hero-panel h1 { color: #fff; margin-bottom: .4em; }
.hero-panel p { color: rgba(255,255,255,.88); font-size: 1.05rem; max-width: 42ch; margin-bottom: 24px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero-dots { position: absolute; bottom: 26px; right: 26px; z-index: 3; display: flex; gap: 8px; padding: 8px 12px; background: rgba(20,26,14,.4); backdrop-filter: blur(6px); }
.hero-dots button { width: 10px; height: 10px; border-radius: 50%; border: none; background: rgba(255,255,255,.55); cursor: pointer; padding: 0; transition: background-color .2s, transform .2s; }
.hero-dots button.active { background: var(--color-accent); transform: scale(1.2); }

@media (max-width: 760px) {
  .hero { height: min(80vh, 620px); min-height: 480px; }
  .hero-panel { position: absolute; left: 0; right: 0; top: auto; bottom: 0; width: 100%; height: auto; clip-path: none; padding: 30px 24px 34px; background: rgba(20,26,14,.94); }
  .hero-panel p { max-width: none; }
}

/* Scorecard stat strip (remplace la trust-bar classique) */
.scorecard-strip { background: var(--color-bg-alt); border-bottom: 1px solid var(--color-border); }
.scorecard-strip .container { display: flex; flex-wrap: wrap; }
.scorecard-item { flex: 1 1 0; min-width: 140px; text-align: center; padding: 30px 16px; border-left: 1px solid var(--color-border); }
.scorecard-item:first-child { border-left: none; }
.scorecard-item .num { display: block; font-family: var(--font-heading); font-size: 2.1rem; font-weight: 700; color: var(--color-primary); line-height: 1; margin-bottom: 6px; }
.scorecard-item .num.small { font-size: 1.4rem; }
.scorecard-item .label { font-size: .76rem; text-transform: uppercase; letter-spacing: .07em; color: var(--color-text-muted); font-weight: 600; }
@media (max-width: 700px) {
  .scorecard-item { flex: 1 1 50%; border-left: none; border-top: 1px solid var(--color-border); }
}

/* ===== Sections ===== */
.section { padding: 84px 0; }
.section-alt { background: var(--color-bg-alt); }
.section-header { max-width: 640px; margin: 0 auto 44px; text-align: center; }
.section-header.left { margin-left: 0; text-align: left; }

/* Intro split */
.intro-split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.intro-split img { clip-path: polygon(0 0, 100% 0, 100% calc(100% - 28px), calc(100% - 28px) 100%, 0 100%); box-shadow: var(--shadow-lg); height: 100%; object-fit: cover; }
@media (max-width: 900px) { .intro-split { grid-template-columns: 1fr; } }

/* Service card (unité de base réutilisée dans les grilles bento) */
.service-card { position: relative; overflow: hidden; text-decoration: none; display: block; clip-path: polygon(0 0, 100% 0, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0 100%); box-shadow: var(--shadow); }
.service-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.service-card:hover img { transform: scale(1.08); }
.service-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(51,66,33,0) 30%, rgba(20,26,14,.9) 100%); }
.service-card .label { position: absolute; left: 20px; right: 20px; bottom: 16px; z-index: 2; color: #fff; font-family: var(--font-heading); font-size: 1.1rem; font-weight: 600; }
.service-card .desc { position: absolute; left: 20px; right: 20px; bottom: 46px; z-index: 2; color: rgba(255,255,255,.85); font-size: .82rem; }

/* Bento — grille asymétrique : 1 grande carte + 2 petites */
.bento-grid { display: grid; grid-template-columns: 1.3fr 1fr; grid-template-rows: 1fr 1fr; gap: 18px; margin-bottom: 18px; }
.bento-grid .service-card.big { grid-column: 1; grid-row: 1 / span 2; min-height: 420px; }
.bento-grid .service-card:not(.big) { grid-column: 2; min-height: 195px; }
.bento-grid.pair { grid-template-rows: 1fr; }
.bento-grid.pair .service-card.big { grid-row: 1; min-height: 320px; }
.bento-grid.pair .service-card:not(.big) { grid-column: 2; grid-row: 1; min-height: 320px; }
@media (max-width: 760px) {
  .bento-grid { grid-template-columns: 1fr; grid-template-rows: none; }
  .bento-grid .service-card.big, .bento-grid .service-card:not(.big) { grid-column: 1; min-height: 240px; }
}

/* CTA band */
.cta-band { background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light)); color: #fff; clip-path: polygon(0 0, 100% 0, 100% calc(100% - 26px), calc(100% - 26px) 100%, 0 100%); padding: 50px 54px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.cta-band h2 { color: #fff; margin-bottom: 6px; }
.cta-band p { color: rgba(255,255,255,.85); margin: 0; }
.cta-band .actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* Contact */
.contact-features { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; margin-bottom: 50px; }
.contact-feature { background: var(--color-bg-alt); clip-path: polygon(0 0, 100% 0, 100% calc(100% - 18px), calc(100% - 18px) 100%, 0 100%); padding: 30px; box-shadow: var(--shadow); display: flex; align-items: flex-start; gap: 16px; }
.contact-feature .icon-wrap { display: flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 50%; background: var(--color-accent); color: #fff; flex-shrink: 0; }
.contact-feature .icon-wrap svg { width: 22px; height: 22px; }
.contact-feature h3 { font-size: 1rem; margin-bottom: 4px; }
.contact-feature a, .contact-feature p { color: var(--color-text-muted); text-decoration: none; margin: 0; }
.contact-feature a:hover { color: var(--color-accent-dark); }
.map-embed { width: 100%; height: 100%; min-height: 340px; border: 0; box-shadow: var(--shadow); }
.map-embed.map-full { min-height: 460px; }

/* Gallery grid */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.gallery-grid img { width: 100%; height: 200px; object-fit: cover; transition: transform .3s ease; }
.gallery-grid a { overflow: hidden; display: block; }
.gallery-grid a:hover img { transform: scale(1.06); }

/* Parcours — carte de pointage 3x3 */
.scorecard-holes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; max-width: 640px; margin: 0 auto; background: var(--color-border); border: 1px solid var(--color-border); }
.scorecard-holes a { position: relative; overflow: hidden; display: block; aspect-ratio: 1 / 1; background: var(--color-primary-dark); }
.scorecard-holes img { width: 100%; height: 100%; object-fit: cover; opacity: .85; transition: transform .3s ease, opacity .3s ease; }
.scorecard-holes a:hover img { transform: scale(1.08); opacity: 1; }
.scorecard-holes .hole-num { position: absolute; top: 10px; left: 10px; z-index: 2; background: rgba(20,26,14,.8); color: #fff; font-family: var(--font-heading); font-weight: 700; font-size: .85rem; width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; }
@media (max-width: 480px) {
  .scorecard-holes { max-width: 340px; }
}

/* Page hero (pages intérieures) */
.page-hero { position: relative; padding: 150px 0 64px; color: #fff; background-size: cover; background-position: center; }
.page-hero::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,26,14,.55), rgba(20,26,14,.78)); }
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: #fff; margin-bottom: 6px; }
.page-hero p { color: rgba(255,255,255,.85); margin: 0; }
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: .82rem; color: rgba(255,255,255,.75); margin-bottom: 14px; text-transform: uppercase; letter-spacing: .06em; }
.breadcrumb a { color: #fff; text-decoration: none; font-weight: 700; }

/* Tarif blocks */
.tarif-block { background: var(--color-bg-alt); clip-path: polygon(0 0, 100% 0, 100% calc(100% - 22px), calc(100% - 22px) 100%, 0 100%); box-shadow: var(--shadow); padding: 32px; margin-bottom: 24px; }
.tarif-block h2 { margin-bottom: 18px; }
.tarif-table { width: 100%; border-collapse: collapse; }
.tarif-table th, .tarif-table td { text-align: left; padding: 10px 12px; border-bottom: 1px dashed var(--color-border); }
.tarif-table th { font-family: var(--font-body); font-size: .76rem; text-transform: uppercase; letter-spacing: .06em; color: var(--color-text-muted); }
.tarif-table td:not(:first-child), .tarif-table th:not(:first-child) { text-align: right; font-family: var(--font-heading); font-weight: 700; color: var(--color-accent-dark); white-space: nowrap; }
.tarif-table tr:last-child td { border-bottom: none; }
.tarif-note { max-width: 900px; margin: 20px auto 0; color: var(--color-text-muted); font-size: .88rem; line-height: 1.8; text-align: center; }
@media (max-width: 600px) { .tarif-block { padding: 22px 18px; } .tarif-table { font-size: .86rem; } }

/* Footer */
.site-footer { background: var(--color-primary-dark); color: rgba(255,255,255,.8); padding: 60px 0 26px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-grid h4 { color: #fff; font-family: var(--font-body); font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 16px; }
.footer-brand img { height: 72px; margin-bottom: 14px; }
.footer-brand p { color: rgba(255,255,255,.65); max-width: 34ch; }
.footer-links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-links a { text-decoration: none; color: rgba(255,255,255,.8); font-weight: 600; }
.footer-links a:hover { color: var(--color-accent); }
.footer-contact { display: flex; flex-direction: column; gap: 12px; }
.footer-contact a, .footer-contact span { text-decoration: none; color: rgba(255,255,255,.8); font-weight: 600; display: flex; gap: 8px; align-items: center; }
.footer-contact svg { width: 16px; height: 16px; color: var(--color-accent); flex-shrink: 0; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.15); padding-top: 22px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .82rem; }
.footer-bottom a { color: rgba(255,255,255,.8); text-decoration: none; }

/* Responsive */
@media (max-width: 991px) {
  .main-nav { display: none; }
  .menu-toggle { display: inline-flex; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; }
  .cta-band { padding: 32px 26px; }
  .section { padding: 56px 0; }
}
