/* ═══════════════════════════════════════════
   Chalet Sainte-Foy — Feuille de style partagée
   ═══════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;1,300;1,400&family=DM+Sans:wght@300;400;500&display=swap');

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

:root {
  --snow: #f7f5f0;
  --bone: #ede9e0;
  --pine: #1e3328;
  --pine-mid: #2d4a38;
  --pine-light: #3d6449;
  --stone: #7a7265;
  --stone-light: #b5afa4;
  --copper: #b87940;
  --copper-light: #d4924e;
  --warm-white: #faf8f4;
  --text: #1a1814;
  --text-mid: #4a4540;
  --radius: 4px;
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'DM Sans', sans-serif;
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--warm-white);
  color: var(--text);
  font-size: 15px;
  line-height: 1.7;
  overflow-x: hidden;
}

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(247,245,240,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(122,114,101,0.15);
  padding: 0 3rem;
  height: 64px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-brand {
  font-family: var(--font-display);
  font-size: 1.2rem; font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--pine);
  text-decoration: none;
}
.nav-brand span { font-size: 0.7rem; font-family: var(--font-body); color: var(--stone); display: block; letter-spacing: 0.1em; }
.nav-links { display: flex; gap: 1.5rem; list-style: none; align-items: center; }
.nav-links a {
  font-size: 0.75rem; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-mid); text-decoration: none;
  transition: color .2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--pine); }
.nav-links .nav-cta {
  background: var(--pine); color: var(--snow) !important;
  padding: 7px 18px; border-radius: 2px;
}
.nav-links .nav-cta:hover { background: var(--pine-mid); }
.lang-switch {
  display: flex; align-items: center; gap: 5px;
  font-size: 0.72rem; font-weight: 500; letter-spacing: 0.08em;
  color: var(--text-mid); text-decoration: none;
  border: 1px solid var(--bone); border-radius: 2px;
  padding: 5px 10px; margin-left: 1rem;
  transition: border-color .2s, color .2s;
}
.lang-switch:hover { border-color: var(--stone-light); color: var(--pine); }

/* ── PAGE HEADER (sous-pages) ── */
.page-header {
  background: var(--pine);
  padding: 7rem 3rem 3.5rem;
  margin-bottom: 0;
}
.page-header .breadcrumb {
  font-size: 0.7rem; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--copper-light); margin-bottom: 0.8rem;
  display: flex; align-items: center; gap: 8px;
}
.page-header .breadcrumb a { color: var(--stone-light); text-decoration: none; }
.page-header .breadcrumb a:hover { color: var(--copper-light); }
.page-header h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 300; line-height: 1.15;
  color: var(--snow);
}
.page-header h1 em { font-style: italic; color: var(--bone); display: block; }
.page-header .page-intro {
  margin-top: 1rem;
  font-family: var(--font-display);
  font-size: 1.05rem; font-weight: 300; line-height: 1.8;
  color: var(--stone-light); max-width: 600px;
}

/* ── LAYOUT ── */
.container { max-width: 1100px; margin: 0 auto; padding: 0 3rem; }
.section { padding: 4.5rem 0; }
.section-alt { background: var(--bone); }
.section-dark { background: var(--pine); }

.section-label {
  font-size: 0.68rem; font-weight: 500; letter-spacing: 0.25em; text-transform: uppercase;
  color: var(--copper); margin-bottom: 0.6rem;
}
.section-dark .section-label { color: var(--copper-light); }
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.5vw, 2.2rem); font-weight: 300; line-height: 1.2;
  color: var(--pine); margin-bottom: 2rem;
}
.section-title em { font-style: italic; display: block; }
.section-dark .section-title { color: var(--snow); }

/* ── PROSE ── */
.prose { max-width: 720px; }
.prose p { margin-bottom: 1rem; color: var(--text-mid); line-height: 1.85; }
.prose h3 {
  font-family: var(--font-display);
  font-size: 1.3rem; font-weight: 400;
  color: var(--pine); margin: 2rem 0 0.6rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--bone);
}
.prose h4 { font-size: 0.85rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--copper); margin: 1.5rem 0 0.4rem; }
.prose ul { padding-left: 1.2rem; color: var(--text-mid); margin-bottom: 1rem; }
.prose ul li { margin-bottom: 0.35rem; }
.prose strong { color: var(--text); font-weight: 500; }
.prose a { color: var(--copper); text-decoration: none; }
.prose a:hover { color: var(--copper-light); text-decoration: underline; }

/* ── CONTENT + SIDEBAR ── */
.content-with-sidebar {
  display: grid; grid-template-columns: 1fr 320px; gap: 4rem; align-items: start;
}
.content-sidebar { position: sticky; top: 84px; }
.sidebar-card {
  background: white; border: 1px solid var(--bone);
  border-radius: var(--radius); overflow: hidden; margin-bottom: 1rem;
}
.sidebar-card-header {
  background: var(--pine); color: var(--snow);
  padding: 0.9rem 1.2rem;
  font-size: 0.72rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase;
}
.sidebar-card-body { padding: 1rem 1.2rem; }
.sidebar-card-body p { font-size: 0.82rem; color: var(--text-mid); line-height: 1.7; margin-bottom: 0.6rem; }
.sidebar-card-body a { color: var(--copper); font-size: 0.82rem; text-decoration: none; }
.sidebar-card-body a:hover { color: var(--copper-light); }
.sidebar-nav { list-style: none; }
.sidebar-nav li { border-bottom: 1px solid var(--bone); }
.sidebar-nav li:last-child { border-bottom: none; }
.sidebar-nav a {
  display: block; padding: 0.65rem 1.2rem;
  font-size: 0.82rem; color: var(--text-mid); text-decoration: none;
  transition: background .15s, color .15s;
  display: flex; justify-content: space-between; align-items: center;
}
.sidebar-nav a:hover, .sidebar-nav a.active { background: rgba(30,51,40,0.05); color: var(--pine); }
.sidebar-nav a::after { content: '›'; color: var(--stone-light); }

/* ── PHOTO GRID ── */
.photo-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem; margin: 2rem 0;
}
.photo-card {
  border-radius: var(--radius); overflow: hidden;
  background: var(--bone); aspect-ratio: 4/3;
  cursor: pointer; position: relative;
}
.photo-card img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.photo-card:hover img { transform: scale(1.04); }
.photo-card .photo-caption {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(14,26,18,0.7));
  color: var(--snow); font-size: 0.72rem;
  padding: 1.5rem 0.8rem 0.6rem;
  opacity: 0; transition: opacity .25s;
}
.photo-card:hover .photo-caption { opacity: 1; }

/* ── PLAN IMAGE ── */
.plan-container {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin: 2rem 0;
}
.plan-box {
  background: white; border: 1px solid var(--bone);
  border-radius: var(--radius); overflow: hidden;
}
.plan-box-label {
  background: var(--pine-light); color: var(--snow);
  padding: 0.6rem 1rem;
  font-size: 0.72rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase;
}
.plan-box img { width: 100%; display: block; }

/* ── LARGE PHOTO ── */
.large-photo {
  width: 100%; border-radius: var(--radius); overflow: hidden;
  margin: 1.5rem 0; background: var(--bone);
}
.large-photo img { width: 100%; display: block; max-height: 480px; object-fit: cover; }
.large-photo .caption {
  padding: 0.6rem 1rem;
  font-size: 0.75rem; color: var(--stone); font-style: italic;
}

/* ── ÉTAPE BLOC (acces ski) ── */
.steps { display: flex; flex-direction: column; gap: 2rem; margin: 2rem 0; }
.step {
  display: grid; grid-template-columns: 48px 1fr; gap: 1.2rem;
  background: white; border: 1px solid var(--bone);
  border-radius: var(--radius); overflow: hidden;
}
.step-num {
  background: var(--pine); color: var(--snow);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 1.6rem; font-weight: 300;
  min-height: 100%;
}
.step-content { padding: 1.2rem 1.2rem 1.2rem 0; }
.step-content h3 {
  font-family: var(--font-display); font-size: 1.15rem; font-weight: 400;
  color: var(--pine); margin-bottom: 0.5rem; border: none; padding: 0;
}
.step-content p { font-size: 0.88rem; color: var(--text-mid); line-height: 1.75; margin: 0; }
.step-photo { margin-top: 1rem; border-radius: 2px; overflow: hidden; }
.step-photo img { width: 100%; display: block; max-height: 300px; object-fit: cover; }

/* ── INFO BADGE ── */
.info-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(30,51,40,0.06); border: 1px solid rgba(30,51,40,0.15);
  border-radius: 2px; padding: 0.7rem 1rem;
  font-size: 0.82rem; color: var(--text-mid);
  margin: 0.5rem 0;
}
.info-badge strong { color: var(--pine); }

/* ── GPS BOX ── */
.gps-box {
  background: var(--pine); color: var(--snow);
  border-radius: var(--radius); padding: 1.2rem 1.5rem;
  display: flex; align-items: center; gap: 1.2rem;
  margin: 1.5rem 0;
}
.gps-icon { font-size: 1.8rem; flex-shrink: 0; }
.gps-coords { font-family: var(--font-display); font-size: 1.3rem; font-weight: 300; }
.gps-label { font-size: 0.7rem; color: var(--stone-light); letter-spacing: 0.1em; text-transform: uppercase; margin-top: 2px; }

/* ── CHECKLIST ── */
.checklist { list-style: none; display: flex; flex-direction: column; gap: 4px; margin: 0.5rem 0 1rem; }
.checklist li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 0.88rem; color: var(--text-mid);
  padding: 5px 0;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}
.checklist li::before {
  content: '✓'; color: var(--pine-light); font-weight: 600;
  flex-shrink: 0; margin-top: 1px;
}

/* ── TABLE STYLE ── */
.table-wrapper { overflow-x: auto; margin: 1rem 0; }
table.styled { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
table.styled th {
  background: var(--pine); color: var(--snow);
  padding: 8px 12px; text-align: left;
  font-weight: 500; font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase;
}
table.styled td { padding: 8px 12px; border-bottom: 1px solid var(--bone); color: var(--text-mid); }
table.styled tr:last-child td { border-bottom: none; }
table.styled td strong { color: var(--text); }

/* ── FAQ ACCORDION ── */
.faq-list { display: flex; flex-direction: column; }
.faq-item { border-top: 1px solid rgba(30,51,40,0.12); }
.faq-item:last-child { border-bottom: 1px solid rgba(30,51,40,0.12); }
.faq-q {
  width: 100%; background: none; border: none; cursor: pointer;
  padding: 1.2rem 0;
  display: flex; justify-content: space-between; align-items: center;
  text-align: left;
  font-family: var(--font-body); font-size: 0.9rem; font-weight: 500;
  color: var(--text); transition: color .2s;
}
.faq-q:hover { color: var(--pine); }
.faq-icon {
  width: 22px; height: 22px; border-radius: 50%;
  border: 1px solid var(--stone-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem; color: var(--stone); flex-shrink: 0;
  transition: transform .25s, background .2s;
}
.faq-item.open .faq-icon { transform: rotate(45deg); background: var(--pine); color: white; border-color: var(--pine); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .35s ease, padding .3s; font-size: 0.88rem; line-height: 1.85; color: var(--text-mid); }
.faq-item.open .faq-a { max-height: 500px; padding-bottom: 1.2rem; }

/* ── FOOTER ── */
footer {
  background: #0e1a12; color: var(--stone-light);
  padding: 2.5rem 3rem;
  display: flex; justify-content: space-between; align-items: center;
}
.footer-brand { font-family: var(--font-display); font-size: 1.05rem; font-weight: 300; color: var(--snow); margin-bottom: 3px; }
.footer-sub { font-size: 0.72rem; color: var(--stone); }
.footer-links { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.footer-links a { color: var(--stone-light); text-decoration: none; font-size: 0.78rem; transition: color .2s; }
.footer-links a:hover { color: var(--snow); }

/* ── REVEAL ── */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .55s ease, transform .55s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  nav { padding: 0 1.5rem; }
  .nav-links { display: none; }
  .container { padding: 0 1.5rem; }
  .page-header { padding: 6rem 1.5rem 2.5rem; }
  .content-with-sidebar { grid-template-columns: 1fr; }
  .content-sidebar { position: static; }
  .plan-container { grid-template-columns: 1fr; }
  .step { grid-template-columns: 40px 1fr; }
  footer { flex-direction: column; gap: 1.2rem; text-align: center; }
}
