/* ============================================================
   LOUIS HUBERT — JARDINIER PAYSAGISTE
   Design system : vert profond & or, éditorial premium
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,500;0,600;0,700;1,500;1,600&family=Inter:wght@300;400;500;600&display=swap');

:root {
  --green-dark: #0d1a12;
  --green: #14261a;
  --green-mid: #1c3524;
  --gold: #c9a24a;
  --gold-soft: #e3cf9a;
  --cream: #f6f3ec;
  --white: #ffffff;
  --text: #1a1f1c;
  --text-light: #5c6660;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--cream);
  color: var(--text);
  overflow-x: hidden;
  font-weight: 400;
  line-height: 1.6;
}

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

a { color: inherit; text-decoration: none; }

h1, h2, h3 {
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
}

h1 { font-size: clamp(2.8rem, 6vw, 5.4rem); line-height: 1.05; }
h2 { font-size: clamp(1.9rem, 3.4vw, 3rem); line-height: 1.15; margin-bottom: 20px; }
h3 { font-size: 1.5rem; line-height: 1.3; }

::selection { background: var(--gold); color: var(--white); }

/* ---------- Progress bar ---------- */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 2px; background: var(--gold);
  z-index: 9998; width: 0%; transition: width 0.1s linear;
}

/* ---------- Loader ---------- */
.loader {
  position: fixed; inset: 0; background: var(--green-dark); z-index: 10000;
  display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 28px;
}
.loader-name { font-family: 'Playfair Display', serif; color: var(--white); font-size: 1.8rem; letter-spacing: 0.1em; }
.loader-sub { color: rgba(255,255,255,0.35); font-size: 0.7rem; letter-spacing: 0.32em; text-transform: uppercase; }
.loader-line { width: 200px; height: 1px; background: rgba(255,255,255,0.12); position: relative; overflow: hidden; }
.loader-line::after { content: ''; position: absolute; inset: 0; background: var(--gold); transform: translateX(-100%); animation: loaderFill 1.1s var(--ease) forwards; }
@keyframes loaderFill { to { transform: translateX(0); } }
.loader.hide { animation: loaderOut 0.7s var(--ease) forwards; }
@keyframes loaderOut { to { opacity: 0; visibility: hidden; } }

/* ---------- Nav ---------- */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: space-between;
  padding: 30px 60px; transition: padding 0.4s var(--ease), background 0.4s var(--ease), transform 0.4s var(--ease);
}
nav.scrolled {
  padding: 18px 60px; background: rgba(13, 26, 18, 0.85); backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.06);
}
nav.nav-hide { transform: translateY(-100%); }
.nav-logo { font-family: 'Playfair Display', serif; font-size: 1.3rem; color: var(--white); letter-spacing: 0.02em; }
.nav-links { display: flex; list-style: none; gap: 44px; }
.nav-links a {
  color: rgba(255,255,255,0.75); font-size: 0.85rem; letter-spacing: 0.03em; position: relative; padding: 4px 0;
  transition: color 0.3s;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 1px; background: var(--gold);
  transition: width 0.35s var(--ease);
}
.nav-links a:hover, .nav-links a.active { color: var(--white); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-cta {
  border: 1px solid rgba(255,255,255,0.25); padding: 11px 26px; border-radius: 100px; font-size: 0.8rem !important;
  white-space: nowrap; line-height: 1.4;
}
.nav-cta:hover { border-color: var(--gold); }
.nav-burger { display: none; flex-direction: column; gap: 5px; cursor: pointer; z-index: 1100; }
.nav-burger span { width: 24px; height: 1px; background: var(--white); transition: 0.3s; }

/* Nav on pages without a dark hero (articles, CGV, contact) */
nav.nav-solid {
  background: rgba(13, 26, 18, 0.95); backdrop-filter: blur(14px);
  padding: 18px 60px; box-shadow: 0 1px 0 rgba(255,255,255,0.06);
}
nav.nav-solid.scrolled { padding: 18px 60px; }
@media (max-width: 860px) { nav.nav-solid { padding: 18px 24px; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 15px 34px; border-radius: 100px;
  font-size: 0.85rem; font-weight: 500; letter-spacing: 0.02em; position: relative; overflow: hidden;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.btn-gold { background: var(--gold); color: var(--green-dark); }
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(201,162,74,0.35); }
.btn-outline { border: 1px solid rgba(255,255,255,0.3); color: var(--white); }
.btn-outline:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-2px); }
.btn-dark { border: 1px solid rgba(0,0,0,0.15); color: var(--text); }
.btn-dark:hover { border-color: var(--green); background: var(--green); color: var(--white); transform: translateY(-2px); }

/* ---------- Section helpers ---------- */
.section { padding: 140px 60px; max-width: 1360px; margin: 0 auto; }
.section-tag {
  display: inline-flex; align-items: center; gap: 10px; color: var(--gold); font-size: 0.78rem;
  letter-spacing: 0.2em; text-transform: uppercase; margin-bottom: 22px; font-weight: 500;
}
.section-tag::before { content: ''; width: 26px; height: 1px; background: var(--gold); }
.divider { width: 46px; height: 2px; background: var(--gold); margin-bottom: 22px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; height: 100vh; min-height: 640px; display: flex; align-items: flex-end;
  overflow: hidden; background: var(--green-dark);
}
.hero-bg {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  transform: scale(1.12);
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,18,13,0.35) 0%, rgba(10,18,13,0.25) 40%, rgba(8,15,10,0.92) 100%);
}
.hero-content { position: relative; z-index: 2; padding: 0 60px 110px; max-width: 1000px; }
.hero-tag {
  display: inline-flex; align-items: center; gap: 10px; color: var(--gold-soft); font-size: 0.8rem;
  letter-spacing: 0.24em; text-transform: uppercase; margin-bottom: 26px; font-weight: 500;
}
.hero-tag::before { content: ''; width: 30px; height: 1px; background: var(--gold); }
.hero h1 { color: var(--white); }
.hero h1 em { font-style: italic; color: var(--gold-soft); }
.hero p { color: rgba(255,255,255,0.68); font-size: 1.15rem; max-width: 560px; margin: 26px 0 40px; line-height: 1.7; }
.hero-btns { display: flex; gap: 18px; flex-wrap: wrap; }
.hero-scroll {
  position: absolute; right: 60px; bottom: 48px; z-index: 2; display: flex; flex-direction: column;
  align-items: center; gap: 12px; color: rgba(255,255,255,0.5); font-size: 0.72rem; letter-spacing: 0.2em;
  text-transform: uppercase;
}
.scroll-line { width: 1px; height: 46px; background: rgba(255,255,255,0.25); position: relative; overflow: hidden; }
.scroll-line::after {
  content: ''; position: absolute; top: -100%; left: 0; width: 100%; height: 100%; background: var(--gold);
  animation: scrollDown 2.2s ease-in-out infinite;
}
@keyframes scrollDown { 50% { top: 0; } 100% { top: 100%; } }

/* ---------- Reveal animations ---------- */
.reveal, .reveal-left, .reveal-right, .reveal-scale { opacity: 0; }
.reveal { transform: translateY(46px); }
.reveal-left { transform: translateX(-46px); }
.reveal-right { transform: translateX(46px); }
.reveal-scale { transform: scale(0.94); }
.reveal.in, .reveal-left.in, .reveal-right.in, .reveal-scale.in {
  opacity: 1; transform: none; transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.delay-1.in { transition-delay: 0.08s; } .delay-2.in { transition-delay: 0.16s; }
.delay-3.in { transition-delay: 0.24s; } .delay-4.in { transition-delay: 0.32s; } .delay-5.in { transition-delay: 0.4s; }

/* ---------- Intro two-col ---------- */
.intro-grid { display: grid; grid-template-columns: 1fr 1fr; min-height: 78vh; }
.intro-text { padding: 100px 90px; display: flex; flex-direction: column; justify-content: center; }
.intro-text p { color: var(--text-light); line-height: 1.9; margin-bottom: 34px; font-size: 1.05rem; }
.intro-img { position: relative; overflow: hidden; }
.intro-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.intro-img:hover img { transform: scale(1.06); }

/* ---------- Cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.card {
  background: var(--white); padding: 52px 38px; border-radius: 4px; box-shadow: 0 4px 40px rgba(20,30,20,0.06);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.card:hover { transform: translateY(-10px); box-shadow: 0 24px 50px rgba(20,30,20,0.12); }
.card-number { font-family: 'Playfair Display', serif; font-size: 3rem; font-weight: 700; color: rgba(201,162,74,0.18); line-height: 1; margin-bottom: 22px; }
.card h3 { margin-bottom: 16px; }
.card p { color: var(--text-light); font-size: 0.96rem; line-height: 1.85; }
.card ul { list-style: none; margin-top: 18px; }
.card ul li { color: var(--text-light); font-size: 0.88rem; padding: 8px 0; border-bottom: 1px solid rgba(0,0,0,0.06); display: flex; align-items: center; gap: 10px; }
.card ul li::before { content: '—'; color: var(--gold); font-size: 0.7rem; }

/* ---------- Gallery ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.gallery-item { position: relative; overflow: hidden; border-radius: 4px; aspect-ratio: 4/5; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease); }
.gallery-item:hover img { transform: scale(1.08); }
.gallery-item-overlay {
  position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(8,14,10,0.55) 100%);
  opacity: 0; transition: opacity 0.4s;
}
.gallery-item:hover .gallery-item-overlay { opacity: 1; }
.gallery-item-label {
  position: absolute; bottom: 0; left: 0; right: 0; padding: 22px; color: rgba(255,255,255,0.85);
  font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; transform: translateY(14px); opacity: 0;
  transition: transform 0.4s var(--ease), opacity 0.4s;
}
.gallery-item:hover .gallery-item-label { transform: translateY(0); opacity: 1; }

/* ---------- Feature split (image + text with number) ---------- */
.feature-split { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.feature-split img { border-radius: 4px; width: 100%; height: 560px; object-fit: cover; }
.feature-split.reverse { direction: rtl; }
.feature-split.reverse > * { direction: ltr; }

/* ---------- App teaser ---------- */
.app-badge {
  display: inline-flex; align-items: center; gap: 10px; background: rgba(201,162,74,0.12);
  border: 1px solid rgba(201,162,74,0.3); border-radius: 100px; padding: 8px 18px; margin-bottom: 26px;
  color: var(--gold); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
}
.app-badge-dot { width: 7px; height: 7px; background: var(--gold); border-radius: 50%; animation: pulse 2s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.5; transform: scale(0.8); } }
.app-features { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.app-features li { color: rgba(255,255,255,0.75); font-size: 0.95rem; padding-left: 24px; position: relative; }
.app-features li::before { content: '—'; color: var(--gold); position: absolute; left: 0; }
.app-mockup-wrap { display: flex; justify-content: center; }
.feature-split .app-mockup-wrap img {
  width: 100%; max-width: 320px; height: auto; border-radius: 0;
  filter: drop-shadow(0 30px 60px rgba(0,0,0,0.5));
}

/* ---------- Parallax ---------- */
.parallax-section { position: relative; height: 68vh; min-height: 460px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.parallax-bg { position: absolute; inset: -10% 0; background-size: cover; background-position: center; background-attachment: fixed; }
.parallax-section::before { content: ''; position: absolute; inset: 0; background: rgba(8,15,10,0.5); }
.parallax-content { position: relative; z-index: 2; text-align: center; max-width: 700px; padding: 0 30px; }
.parallax-content h2, .parallax-content p { color: var(--white); }
.parallax-content p { color: rgba(255,255,255,0.7); margin-bottom: 8px; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--cream); padding: 130px 60px; text-align: center; position: relative; }
.cta-band p { color: var(--text-light); max-width: 480px; margin: 0 auto 36px; font-size: 1.05rem; }

/* ---------- Contact ---------- */
.contact-section { background: var(--green-dark); padding: 130px 60px; }
.contact-wrap { max-width: 640px; margin: 0 auto; }
.contact-wrap h2, .contact-wrap .sub { color: var(--white); text-align: center; }
.contact-wrap .sub { color: rgba(255,255,255,0.55); margin-bottom: 50px; text-align: center; }
.contact-wrap > .reveal { text-align: center; }
.form-notice {
  max-width: 560px; margin: 0 auto 28px; padding: 16px 20px; border-radius: 4px; text-align: center;
  font-size: 0.92rem; border: 1px solid transparent;
}
.form-notice.ok { background: rgba(120,180,120,0.12); border-color: rgba(120,180,120,0.35); color: #bfe3bf; }
.form-notice.erreur { background: rgba(200,90,90,0.12); border-color: rgba(200,90,90,0.35); color: #f0b8b8; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group { margin-bottom: 22px; }
.form-group label { display: block; color: rgba(255,255,255,0.5); font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 10px; }
.form-group input, .form-group textarea {
  width: 100%; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.14); border-radius: 4px;
  padding: 15px 18px; color: var(--white); font-family: 'Inter', sans-serif; font-size: 0.95rem;
  transition: border-color 0.3s, background 0.3s;
}
.form-group textarea { min-height: 130px; resize: vertical; }
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--gold); background: rgba(255,255,255,0.08); }
.form-group input::placeholder, .form-group textarea::placeholder { color: rgba(255,255,255,0.28); }

/* ---------- Footer ---------- */
footer { background: var(--green-dark); padding: 90px 60px 36px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 60px; max-width: 1300px; margin: 0 auto; padding-bottom: 64px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.footer-name { font-family: 'Playfair Display', serif; color: var(--white); font-size: 1.6rem; margin-bottom: 12px; }
.footer-desc { color: rgba(255,255,255,0.45); max-width: 340px; line-height: 1.7; }
.footer-contact-title { color: rgba(255,255,255,0.4); font-size: 0.76rem; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 18px; }
.footer-contact { display: flex; flex-direction: column; gap: 10px; }
.footer-contact a, .footer-contact span { color: rgba(255,255,255,0.75); font-size: 1rem; }
.footer-contact a { transition: color 0.3s; }
.footer-contact a:hover { color: var(--gold); }
.footer-copy { max-width: 1300px; margin: 30px auto 0; color: rgba(255,255,255,0.28); font-size: 0.78rem; text-align: center; }

/* ---------- Blog ---------- */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px; margin-top: 60px; }
.blog-card { background: var(--white); border-radius: 4px; overflow: hidden; box-shadow: 0 4px 40px rgba(20,30,20,0.06); transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease); }
.blog-card:hover { transform: translateY(-8px); box-shadow: 0 24px 50px rgba(20,30,20,0.12); }
.blog-card .img-wrap { overflow: hidden; height: 220px; }
.blog-card .img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.blog-card:hover .img-wrap img { transform: scale(1.08); }
.blog-card-body { padding: 30px 30px 34px; }
.blog-card-date { color: var(--gold); font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 12px; font-weight: 500; }
.blog-card h3 { font-size: 1.28rem; margin-bottom: 12px; }
.blog-card p { color: var(--text-light); font-size: 0.94rem; line-height: 1.75; }

/* ---------- About page ---------- */
.about-intro { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 80px; align-items: center; }
.about-text p { color: var(--text-light); line-height: 1.9; margin-bottom: 20px; font-size: 1.02rem; }
.img-wrap { border-radius: 4px; overflow: hidden; }
.img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease); }
.img-wrap:hover img { transform: scale(1.05); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; }
.mini-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 28px; }
.mini-gallery .gallery-item { aspect-ratio: 1/1; }

.tournaments { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; margin-top: 56px; }
.tournament-badge {
  background: var(--white); border-radius: 4px; overflow: hidden;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.tournament-badge:hover { transform: translateY(-6px); box-shadow: 0 20px 40px rgba(20,30,20,0.14); }
.tournament-badge .img-wrap { aspect-ratio: 3/4; overflow: hidden; }
.tournament-badge .img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.tournament-badge:hover .img-wrap img { transform: scale(1.06); }
.tournament-badge-body { padding: 20px 18px; text-align: center; }
.tournament-year { font-family: 'Playfair Display', serif; color: var(--gold); font-size: 1.5rem; margin-bottom: 6px; }
.tournament-name { color: var(--text-light); font-size: 0.8rem; letter-spacing: 0.03em; line-height: 1.5; }

.ambiance-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 18px; }
.ambiance-row .img-wrap { border-radius: 4px; height: 320px; }

.dark-section { background: var(--green-dark); padding: 120px 60px; }
.dark-section h2, .dark-section h3 { color: var(--white); }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .cards, .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .tournaments { grid-template-columns: repeat(3, 1fr); }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  nav { padding: 22px 24px; }
  nav.scrolled { padding: 14px 24px; }
  .nav-links { position: fixed; inset: 0; background: var(--green-dark); flex-direction: column; justify-content: center; align-items: center; gap: 34px; transform: translateY(-100%); transition: transform 0.5s var(--ease); }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { font-size: 1.3rem; }
  .nav-burger { display: flex; }
  .hero-content { padding: 0 26px 80px; }
  .hero-scroll { display: none; }
  .section { padding: 90px 26px; }
  .intro-grid, .feature-split, .about-intro, .two-col { grid-template-columns: 1fr; }
  .intro-text { padding: 70px 26px; }
  .intro-img { height: 440px; }
  .cards, .gallery-grid, .blog-grid, .tournaments { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 40px; }
  .form-row { grid-template-columns: 1fr; }
  .feature-split img { height: 340px; }
  .feature-split.reverse { direction: ltr; }
}
@media (max-width: 560px) {
  .cards, .gallery-grid, .blog-grid, .tournaments { grid-template-columns: 1fr; }
  .contact-section, .cta-band, .dark-section { padding-left: 24px; padding-right: 24px; }
}

/* ---------- Back to top ---------- */
.back-to-top {
  position: fixed; left: 50%; bottom: 28px; z-index: 900;
  transform: translate(-50%, 12px);
  width: 56px; height: 56px; border-radius: 50%; border: none;
  background: var(--gold); color: var(--green-dark); font-size: 1.5rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  opacity: 0; visibility: hidden;
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease), visibility 0.35s, box-shadow 0.3s;
  box-shadow: 0 10px 30px rgba(0,0,0,0.28);
}
.back-to-top.visible { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.back-to-top:hover { box-shadow: 0 14px 36px rgba(201,162,74,0.45); transform: translate(-50%, -3px); }
@media (max-width: 560px) { .back-to-top { width: 48px; height: 48px; bottom: 18px; font-size: 1.3rem; } }

/* ---------- Floating contact button ---------- */
.floating-contact {
  position: fixed; right: 28px; bottom: 28px; z-index: 900;
  width: 58px; height: 58px; border-radius: 50%; background: var(--green-dark); color: var(--gold);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3); border: 2px solid var(--gold);
  animation: floatingPulse 2.2s ease-in-out infinite;
}
.floating-contact svg { width: 26px; height: 26px; }
.floating-contact:hover { animation-play-state: paused; box-shadow: 0 14px 36px rgba(201,162,74,0.5); }
@keyframes floatingPulse {
  0%, 100% { box-shadow: 0 10px 30px rgba(0,0,0,0.3), 0 0 0 0 rgba(201,162,74,0.5); }
  50% { box-shadow: 0 10px 30px rgba(0,0,0,0.3), 0 0 0 10px rgba(201,162,74,0); }
}
@media (max-width: 560px) { .floating-contact { right: 18px; bottom: 18px; width: 50px; height: 50px; } .floating-contact svg { width: 22px; height: 22px; } }
