/* Déclic Sobriété — CSS page centre SSR */
:root {
  --navy: #0E2845; --navy2: #163659; --navy3: #1D4570;
  --gold: #FFD60A; --gold2: #ffe34a; --gold-light: #FFFDE6;
  --teal: #3B8A7A; --teal-light: #E8F5F2;
  --bg: #FFFFFF; --bg2: #F5F7FA; --bg3: #EDF0F5;
  --text: #111827; --text2: #374151; --text3: #6B7280;
  --border: #DDE2EA;
  --shadow: 0 4px 24px rgba(14,40,69,0.08);
  --shadow-lg: 0 16px 60px rgba(14,40,69,0.14);
  --r: 10px; --r-lg: 18px; --r-xl: 28px;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: 'Sora', system-ui, sans-serif; background: var(--bg); color: var(--text); line-height: 1.65; overflow-x: hidden; }
img { max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* Cover */
.detail-cover {
  height: 380px; background-size: cover; background-position: center;
  position: relative; display: flex; align-items: flex-end;
}
.detail-cover::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(14,40,69,0.85) 0%, rgba(14,40,69,0.2) 70%, transparent 100%);
}
.detail-cover-body { position: relative; z-index: 1; padding: 2rem 2.5rem; }
.detail-back {
  position: absolute; top: 1.5rem; left: 1.5rem; z-index: 10;
  background: rgba(14,40,69,0.7); backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff; font-size: 0.8rem; font-weight: 600;
  padding: 0.5rem 1.1rem; border-radius: 50px; cursor: pointer;
  transition: all 0.16s; display: flex; align-items: center; gap: 0.5rem;
}
.detail-back:hover { background: var(--navy); }
.detail-cover-name {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.6rem, 3vw, 2.6rem); font-weight: 700; color: #fff; line-height: 1.2;
}
.detail-cover-loc { font-size: 0.85rem; color: rgba(255,255,255,0.7); margin-top: 0.4rem; display: flex; align-items: center; gap: 0.4rem; }

/* Content layout */
.detail-content { max-width: 1200px; margin: 0 auto; padding: 3rem 1.5rem; }
.detail-layout { display: grid; grid-template-columns: 1fr 360px; gap: 2.5rem; align-items: start; }
.detail-region { font-size: 0.7rem; font-weight: 700; color: var(--teal); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 0.75rem; }
.detail-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 1.5rem; }
.d-tag {
  font-size: 0.72rem; font-weight: 600;
  background: var(--bg2); color: var(--text2);
  border: 1px solid var(--border);
  padding: 0.28rem 0.75rem; border-radius: 50px;
}
.d-tag.green { background: var(--teal-light); color: var(--teal); border-color: rgba(59,138,122,0.2); }
.d-tag.gold { background: var(--gold-light); color: #8B6914; }
.detail-section { margin-bottom: 2rem; }
.detail-section h2 {
  font-size: 1rem; font-weight: 700; color: var(--text); margin-bottom: 0.75rem;
  padding-bottom: 0.5rem; border-bottom: 2px solid var(--navy); display: inline-block;
}
.detail-desc { font-size: 0.9rem; color: var(--text2); line-height: 1.8; }
.detail-programs { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.detail-programs li { font-size: 0.88rem; color: var(--text2); display: flex; align-items: flex-start; gap: 0.7rem; }
.detail-programs li::before { content: '✓'; color: var(--teal); font-weight: 700; flex-shrink: 0; margin-top: 0.1rem; }

/* Sidebar */
.sidebar-card {
  background: var(--bg); border: 1.5px solid var(--border);
  border-radius: var(--r-xl); padding: 1.8rem; position: sticky; top: 80px;
}
.sidebar-duration { font-family: 'Playfair Display', serif; font-size: 1.6rem; font-weight: 700; color: var(--navy); line-height: 1.2; margin-bottom: 0.25rem; }
.sidebar-type { font-size: 0.78rem; color: var(--text3); margin-bottom: 1.5rem; }
.sidebar-infos { display: flex; flex-direction: column; gap: 0.75rem; margin-bottom: 1.5rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--border); }
.sidebar-info { display: flex; justify-content: space-between; align-items: center; }
.sidebar-info-label { font-size: 0.78rem; color: var(--text3); }
.sidebar-info-val { font-size: 0.82rem; font-weight: 600; color: var(--text); }
.s-btn {
  display: flex; align-items: center; justify-content: center; gap: 0.4rem;
  width: 100%; margin-bottom: 0.7rem;
  border-radius: 10px; font-size: 0.85rem; font-weight: 700; cursor: pointer;
  padding: 0.85rem 1.5rem; text-align: center; transition: all 0.18s;
}
.s-btn.outline { background: none; color: var(--navy); border: 1.5px solid var(--navy); }
.s-btn.outline:hover { background: var(--navy); color: #fff; }
.s-btn.gold-btn { background: var(--gold); color: var(--navy); border: none; display: block; text-align: center; }
.s-btn.gold-btn:hover { background: var(--gold2); }
.s-btn-note { font-size: 0.72rem; color: var(--text3); text-align: center; line-height: 1.5; margin-top: 0.5rem; }

/* Responsive */
@media (max-width: 1024px) {
  .detail-layout { grid-template-columns: 1fr; }
  .sidebar-card { position: static; }
}
@media (max-width: 768px) {
  .nav-links-desktop { display: none !important; }
  .detail-cover { height: 220px; }
  .detail-cover-body { padding: 1rem; }
  .detail-content { padding: 1.2rem 1rem; }
  .detail-layout { grid-template-columns: 1fr !important; }
  .sidebar-card { position: static !important; }
}
