/* ============================================================
   Indre-et-Loire — Styles principaux
   ============================================================ */

:root {
  --gold: #C9A84C;
  --gold-light: #E8C97A;
  --gold-pale: #F5E9C8;
  --dark: #0E0D0B;
  --dark-mid: #1A1814;
  --dark-card: #201E1A;
  --text: #E8E2D6;
  --text-muted: #9A9080;
  --border: rgba(201,168,76,0.2);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--dark);
  color: var(--text);
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  overflow-x: hidden;
}

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.4rem 4rem;
  background: linear-gradient(to bottom, rgba(14,13,11,0.95) 0%, transparent 100%);
  backdrop-filter: blur(6px);
}
.nav-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem; font-weight: 400; letter-spacing: 0.25em;
  color: var(--gold-light); text-transform: uppercase; text-decoration: none;
}
.nav-links { display: flex; gap: 2.5rem; list-style: none; }
.nav-links a {
  color: var(--text-muted); font-size: 0.78rem; letter-spacing: 0.15em;
  text-transform: uppercase; text-decoration: none; transition: color 0.3s;
}
.nav-links a:hover { color: var(--gold-light); }

/* ── HERO ── */
.hero {
  height: 100vh; position: relative;
  display: flex; align-items: flex-end; justify-content: flex-start;
  padding: 0 4rem 6rem; overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background:
    linear-gradient(to top, rgba(14,13,11,0.95) 0%, rgba(14,13,11,0.3) 50%, rgba(14,13,11,0.5) 100%),
    linear-gradient(105deg, #1a1208 0%, #2a1f0a 40%, #0e1a14 100%);
}
.hero-bg::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0; height: 55%;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 400'%3E%3Cpath fill='%23141209' d='M0 400V180l60-20 20-60 20 60 40-10V80l15-15 15 15V150l30-5 10-40 10 40 50 5V120l20-20 20 20v30l40-10 15-50 15 50 60-5V100l25-25 25 25V155l35-5 5-30 5 30 70 0V130l30-30 30 30V160l60-10 20-60 20 60 40-5V90l20-20 20 20v70l50-5 10-35 10 35 60 5V110l25-25 25 25v50l40-10 15-45 15 45 60 0V150l30-30 30 30v50l40-5 8-28 8 28 50 5V180l60 20V400z'/%3E%3C/svg%3E") bottom/cover no-repeat;
  opacity: 0.6;
}
.hero-content { position: relative; z-index: 2; max-width: 700px; }
.hero-dept {
  font-size: 0.72rem; letter-spacing: 0.35em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 1.2rem;
  display: flex; align-items: center; gap: 1rem;
}
.hero-dept::before { content: ''; display: inline-block; width: 40px; height: 1px; background: var(--gold); }
.hero h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(3.5rem, 7vw, 6.5rem);
  font-weight: 300; line-height: 1.05; color: var(--gold-pale); margin-bottom: 1.5rem;
}
.hero h1 em { font-style: italic; color: var(--gold-light); }
.hero-sub {
  font-size: 0.95rem; font-weight: 300; line-height: 1.75;
  color: var(--text-muted); max-width: 480px; margin-bottom: 3rem;
}
.hero-ctas { display: flex; gap: 1.2rem; align-items: center; }
.btn-primary {
  background: var(--gold); color: var(--dark); padding: 0.85rem 2.2rem;
  font-family: 'Jost', sans-serif; font-size: 0.78rem;
  letter-spacing: 0.2em; text-transform: uppercase; text-decoration: none;
  transition: background 0.3s, transform 0.2s; display: inline-block;
}
.btn-primary:hover { background: var(--gold-light); transform: translateY(-1px); }
.btn-ghost {
  color: var(--text); font-size: 0.78rem; letter-spacing: 0.15em;
  text-transform: uppercase; text-decoration: none; border-bottom: 1px solid var(--border);
  padding-bottom: 2px; transition: color 0.3s, border-color 0.3s;
}
.btn-ghost:hover { color: var(--gold-light); border-color: var(--gold); }

/* ── SCROLL INDICATOR ── */
.scroll-indicator {
  position: absolute; right: 4rem; bottom: 4rem; z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 0.6rem;
}
.scroll-indicator span {
  font-size: 0.6rem; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--text-muted); writing-mode: vertical-rl;
}
.scroll-line {
  width: 1px; height: 60px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

/* ── STATS BAR ── */
.stats-bar {
  background: var(--dark-card);
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  display: flex; justify-content: center; padding: 2.5rem 4rem; gap: 5rem;
}
.stat { text-align: center; }
.stat-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.6rem; font-weight: 300; color: var(--gold-light); line-height: 1;
}
.stat-label {
  font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--text-muted); margin-top: 0.4rem;
}

/* ── SECTIONS PARTAGÉES ── */
section { padding: 8rem 4rem; }
.section-tag {
  font-size: 0.68rem; letter-spacing: 0.35em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 1rem; display: flex; align-items: center; gap: 1rem;
}
.section-tag::before { content: ''; display: inline-block; width: 30px; height: 1px; background: var(--gold); }
h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.2rem, 4vw, 3.5rem); font-weight: 300;
  color: var(--gold-pale); line-height: 1.2; margin-bottom: 1.5rem;
}
h2 em { font-style: italic; color: var(--gold-light); }

/* ── CHÂTEAUX ── */
.chateaux { background: var(--dark-mid); }
.chateaux-intro { max-width: 560px; margin-bottom: 4rem; }
.chateaux-intro p { color: var(--text-muted); line-height: 1.8; font-size: 0.95rem; }

.chateaux-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: 340px 340px;
  gap: 3px;
}
.chateau-card {
  position: relative; overflow: hidden;
  background: var(--dark-card); cursor: pointer;
}
/* Chenonceau occupe toute la hauteur à gauche */
.chateau-card:first-child { grid-row: 1 / 3; }

/* Illustration SVG plein cadre */
.chateau-illus {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  transition: transform 0.7s ease;
  overflow: hidden;
}
.chateau-illus svg { width: 100%; height: 100%; }
.chateau-card:hover .chateau-illus { transform: scale(1.04); }

/* Dégradé de lisibilité sur le texte */
.chateau-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(10,9,7,0.92) 0%, rgba(10,9,7,0.25) 55%, transparent 100%);
  display: flex; flex-direction: column; justify-content: flex-end; padding: 2rem;
}
.chateau-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.7rem; font-weight: 400; color: var(--gold-pale); margin-bottom: 0.3rem;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}
.chateau-card:first-child .chateau-name { font-size: 2.4rem; }
.chateau-desc { font-size: 0.78rem; color: var(--text-muted); letter-spacing: 0.04em; }
.chateau-tag {
  display: inline-block; font-size: 0.6rem; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--gold);
  border: 1px solid rgba(201,168,76,0.4); padding: 0.25rem 0.6rem;
  margin-bottom: 0.6rem; width: fit-content;
  background: rgba(14,13,11,0.4); backdrop-filter: blur(4px);
}

/* Crédit photo */
.photo-credit {
  margin-top: 1.5rem;
  font-size: 0.65rem; color: var(--text-muted); letter-spacing: 0.08em;
}

/* ── TOURISME ── */
.tourisme {
  background: var(--dark);
  display: grid; grid-template-columns: 1fr 1fr; gap: 6rem; align-items: center;
}
.tourisme-visual { position: relative; }
.tourisme-img-frame {
  width: 100%; aspect-ratio: 3/4;
  background: linear-gradient(160deg, #0d1a10 0%, #1a2d15 40%, #0d2015 100%);
  position: relative; overflow: hidden;
}
.tourisme-img-frame::before {
  content: ''; position: absolute; inset: 12px; border: 1px solid var(--border); z-index: 1;
}
.vine-pattern {
  position: absolute; inset: 0; opacity: 0.08;
  background-image: repeating-linear-gradient(45deg, var(--gold) 0px, var(--gold) 1px, transparent 1px, transparent 20px);
}
.tourisme-badge {
  position: absolute; bottom: -1.5rem; right: -1.5rem;
  width: 120px; height: 120px; background: var(--gold);
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
}
.badge-num { font-family: 'Cormorant Garamond', serif; font-size: 2.2rem; font-weight: 600; color: var(--dark); line-height: 1; }
.badge-text { font-size: 0.55rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--dark); font-weight: 500; margin-top: 0.3rem; }
.tourisme-content .section-tag { margin-top: 0; }
.tourisme-content p { color: var(--text-muted); line-height: 1.9; font-size: 0.95rem; margin-bottom: 1.5rem; }
.activities { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin-top: 2.5rem; border: 1px solid var(--border); }
.activity { padding: 1.4rem 1.6rem; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.activity:nth-child(even) { border-right: none; }
.activity:nth-last-child(-n+2) { border-bottom: none; }
.activity-icon { font-size: 1.2rem; margin-bottom: 0.5rem; display: block; }
.activity-name { font-size: 0.82rem; font-weight: 400; color: var(--text); letter-spacing: 0.05em; }
.activity-detail { font-size: 0.7rem; color: var(--text-muted); margin-top: 0.2rem; }

/* ── GASTRONOMIE ── */
.gastronomie { background: var(--dark-mid); position: relative; overflow: hidden; }
.gastro-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 4rem; }
.gastro-header-text { max-width: 500px; }
.gastro-header p { color: var(--text-muted); line-height: 1.8; font-size: 0.95rem; }

.gastro-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 3px; }

.gastro-card {
  background: var(--dark-card);
  border-top: 2px solid transparent;
  transition: border-color 0.3s;
  position: relative; overflow: hidden;
  display: flex; flex-direction: column;
}
.gastro-card:hover { border-color: var(--gold); }

/* Zone illustration gastronomie */
.gastro-img-wrap {
  height: 200px; overflow: hidden; flex-shrink: 0; position: relative;
}
.gastro-img-wrap svg { width: 100%; height: 100%; display: block; transition: transform 0.6s ease; }
.gastro-card:hover .gastro-img-wrap svg { transform: scale(1.04); }
.gastro-img-wrap::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to bottom, transparent 55%, rgba(14,13,11,0.6) 100%);
  pointer-events: none;
}

/* Numéro décoratif */
.gastro-card::before {
  content: attr(data-num); position: absolute; top: 0.8rem; right: 1rem;
  font-family: 'Cormorant Garamond', serif; font-size: 3.5rem; font-weight: 300;
  color: rgba(201,168,76,0.12); line-height: 1; z-index: 2; pointer-events: none;
}

/* Corps texte de la carte gastronomie */
.gastro-body { padding: 1.6rem 1.8rem 2rem; flex: 1; }
.gastro-icon { font-size: 1.4rem; margin-bottom: 0.7rem; display: block; }
.gastro-name { font-family: 'Cormorant Garamond', serif; font-size: 1.3rem; color: var(--gold-pale); margin-bottom: 0.5rem; }
.gastro-desc { font-size: 0.78rem; color: var(--text-muted); line-height: 1.7; }

/* ── VILLES ── */
.villes { background: var(--dark); }
.villes-intro { max-width: 500px; margin-bottom: 4rem; }
.villes-intro p { color: var(--text-muted); line-height: 1.8; }
.villes-list { display: flex; flex-direction: column; gap: 1.5px; }
.ville-row {
  display: grid; grid-template-columns: 80px 1fr auto; align-items: center; gap: 3rem;
  background: var(--dark-card); padding: 2rem 2.5rem;
  border-left: 2px solid transparent; transition: border-color 0.3s, background 0.3s; cursor: pointer;
}
.ville-row:hover { border-color: var(--gold); background: rgba(32,30,26,0.8); }
.ville-num { font-family: 'Cormorant Garamond', serif; font-size: 2.5rem; font-weight: 300; color: rgba(201,168,76,0.25); text-align: center; }
.ville-info h3 { font-family: 'Cormorant Garamond', serif; font-size: 1.5rem; color: var(--gold-pale); margin-bottom: 0.3rem; }
.ville-info p { font-size: 0.8rem; color: var(--text-muted); line-height: 1.6; }
.ville-tags { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.tag {
  font-size: 0.6rem; letter-spacing: 0.15em; text-transform: uppercase;
  border: 1px solid var(--border); padding: 0.3rem 0.7rem; color: var(--text-muted); white-space: nowrap;
}

/* ── ÉCONOMIE ── */
.economie { background: var(--dark-card); text-align: center; }
.economie h2 { margin-bottom: 0.8rem; }
.economie > p { color: var(--text-muted); max-width: 550px; margin: 0 auto 4rem; line-height: 1.8; }
.eco-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5px; max-width: 900px; margin: 0 auto; }
.eco-card { background: var(--dark-mid); padding: 3rem 2rem; text-align: left; position: relative; overflow: hidden; }
.eco-card::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(to right, var(--gold), transparent);
  transform: scaleX(0); transform-origin: left; transition: transform 0.4s ease;
}
.eco-card:hover::after { transform: scaleX(1); }
.eco-icon { font-size: 1.8rem; margin-bottom: 1.2rem; display: block; }
.eco-name { font-family: 'Cormorant Garamond', serif; font-size: 1.3rem; color: var(--gold-pale); margin-bottom: 0.5rem; }
.eco-desc { font-size: 0.78rem; color: var(--text-muted); line-height: 1.7; }

/* ── VIVRE ICI ── */
.vivre { background: var(--dark-mid); display: grid; grid-template-columns: 1fr 1fr; gap: 6rem; align-items: center; }
.vivre-content p { color: var(--text-muted); line-height: 1.9; margin-bottom: 2rem; }
.avantages { display: flex; flex-direction: column; gap: 1rem; }
.avantage {
  display: flex; gap: 1.5rem; align-items: flex-start; padding: 1.2rem 1.5rem;
  border: 1px solid var(--border); transition: border-color 0.3s;
}
.avantage:hover { border-color: var(--gold); }
.avantage-icon { font-size: 1.2rem; flex-shrink: 0; margin-top: 0.1rem; }
.avantage h4 { font-size: 0.88rem; color: var(--text); font-weight: 400; margin-bottom: 0.2rem; }
.avantage p { font-size: 0.75rem; color: var(--text-muted); line-height: 1.6; }
.vivre-map { position: relative; }
.map-frame { background: var(--dark-card); padding: 3rem; border: 1px solid var(--border); position: relative; }
.map-frame::before {
  content: 'DÉPARTEMENT 37'; position: absolute; top: 1rem; left: 50%; transform: translateX(-50%);
  font-size: 0.6rem; letter-spacing: 0.3em; color: var(--text-muted);
}
.map-frame svg { width: 100%; height: auto; display: block; }
.map-info { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin-top: 1.5px; }
.map-stat { background: var(--dark-card); padding: 1.2rem 1.5rem; text-align: center; }
.map-stat-num { font-family: 'Cormorant Garamond', serif; font-size: 1.8rem; color: var(--gold-light); }
.map-stat-label { font-size: 0.65rem; color: var(--text-muted); letter-spacing: 0.1em; }

/* ── FOOTER ── */
footer { background: var(--dark); border-top: 1px solid var(--border); padding: 5rem 4rem 2rem; }
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 4rem; margin-bottom: 4rem; }
.footer-brand p { font-size: 0.82rem; color: var(--text-muted); line-height: 1.8; margin-top: 1rem; max-width: 280px; }
.footer-logo { font-family: 'Cormorant Garamond', serif; font-size: 1.2rem; color: var(--gold-light); letter-spacing: 0.1em; }
.footer-col h4 { font-size: 0.68rem; letter-spacing: 0.25em; text-transform: uppercase; color: var(--gold); margin-bottom: 1.5rem; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.7rem; }
.footer-col a { color: var(--text-muted); font-size: 0.82rem; text-decoration: none; transition: color 0.3s; }
.footer-col a:hover { color: var(--gold-light); }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 2rem; display: flex; justify-content: space-between; align-items: center; }
.footer-bottom p { font-size: 0.72rem; color: var(--text-muted); }
.footer-bottom a { color: var(--gold); text-decoration: none; }

/* ── ANIMATIONS ── */
@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(0.6); }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-content > * { animation: fadeUp 0.8s ease forwards; opacity: 0; }
.hero-dept { animation-delay: 0.2s; }
.hero h1   { animation-delay: 0.4s; }
.hero-sub  { animation-delay: 0.6s; }
.hero-ctas { animation-delay: 0.8s; }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  nav { padding: 1.2rem 2rem; }
  .nav-links { display: none; }
  section { padding: 5rem 2rem; }
  .hero { padding: 0 2rem 4rem; }
  .stats-bar { padding: 2rem; gap: 2rem; flex-wrap: wrap; }
  .chateaux-grid { grid-template-columns: 1fr 1fr; grid-template-rows: 260px 260px 260px; }
  .chateau-card:first-child { grid-column: 1 / 3; grid-row: 1; }
  .tourisme { grid-template-columns: 1fr; gap: 3rem; }
  .gastro-grid { grid-template-columns: 1fr 1fr; }
  .vivre { grid-template-columns: 1fr; gap: 3rem; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .eco-grid { grid-template-columns: 1fr; max-width: 400px; }
  .scroll-indicator { display: none; }
}

@media (max-width: 640px) {
  .gastro-grid { grid-template-columns: 1fr; }
  .chateaux-grid { grid-template-columns: 1fr; grid-template-rows: repeat(5, 260px); }
  .chateau-card:first-child { grid-column: auto; grid-row: auto; }
  .footer-top { grid-template-columns: 1fr; }
  .hero h1 { font-size: 2.8rem; }
  .ville-row { grid-template-columns: 60px 1fr; }
  .ville-tags { display: none; }
}
