/* ================================================
   Cercle des Œnophiles du Vexin — Feuille de style
   ================================================ */

:root {
  --wine:       #6E1E2E;
  --wine-dark:  #5f1d2b;
  --wine-light: #8B3148;
  --cream:      #faf7f3;
  --cream-2:    #f6f1e8;
  --cream-3:    #f2ebe4;
  --border:     rgba(139, 58, 58, 0.18);
  --text:       #333;
  --text-light: #555;
  --radius:     8px;
}

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--cream);
  overflow-x: hidden;
}

img, svg, iframe { max-width: 100%; height: auto; border-radius: var(--radius); }

a { color: var(--wine); text-decoration: none; }
a:hover { text-decoration: underline; }

strong, b { font-weight: 700; color: var(--wine-dark); }

h1, h2, h3 { color: var(--wine); line-height: 1.3; }
h1 { font-size: 2rem; margin-bottom: 0.5em; }
h2 { font-size: 1.6rem; margin-top: 2rem; margin-bottom: 0.5em; }
h3 { font-size: 1.25rem; margin-bottom: 0.4em; }

p { margin-bottom: 1em; }

ul li { margin-bottom: 6px; line-height: 1.6; }

hr {
  border: none;
  height: 1px;
  background: var(--border);
  margin: 2rem 0;
}

/* ---- Layout ---- */
.container {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---- Header ---- */
header {
  background: white;
  border-bottom: 2px solid var(--wine);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.header-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  gap: 20px;
}

.logo a {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.logo-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--wine);
  line-height: 1.2;
}

.logo-tagline {
  font-size: 0.78rem;
  color: #888;
  font-style: italic;
}

nav { display: flex; gap: 6px; align-items: center; }

nav a {
  font-size: 0.95rem;
  color: var(--text);
  padding: 6px 12px;
  border-radius: 6px;
  transition: background 0.2s, color 0.2s;
  font-weight: 500;
}

nav a:hover,
nav a.active {
  background: var(--wine);
  color: white;
  text-decoration: none;
}

.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 1.3rem;
  cursor: pointer;
  color: var(--wine);
}

/* ---- Hero ---- */
.hero {
  width: 100%;
  height: 420px;
  background: url('image fond.png') center/cover no-repeat;
  position: relative;
  color: white;
  margin-bottom: 0;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.25) 0%, rgba(0,0,0,0.45) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  text-align: center;
  padding: 70px 20px 50px;
}

.hero-content h1 {
  color: white;
  font-size: 2.6rem;
  text-shadow: 0 2px 10px rgba(0,0,0,0.6);
  margin-bottom: 0.4em;
}

.hero-content p {
  font-size: 1.3rem;
  color: rgba(255,255,255,0.93);
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
  margin: 0;
}

/* ---- Main Content ---- */
main { padding: 40px 0 60px; }

.page-header {
  background: var(--wine);
  color: white;
  padding: 40px 20px;
  text-align: center;
}

.page-header h1 { color: white; margin: 0 0 0.3em; }
.page-header p  { color: rgba(255,255,255,0.85); margin: 0; font-size: 1.05rem; }

/* ---- Cards ---- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin: 24px 0;
}

.card {
  background: var(--cream-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.card h3 { margin: 0; font-size: 1.05rem; }
.card p  { margin: 0; color: var(--text-light); line-height: 1.6; font-size: 0.95rem; }

/* ---- Programme Cards ---- */
.programme-card {
  background: var(--cream-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.programme-card h2 { margin-top: 0; font-size: 1.6rem; }
.programme-card p  { color: #444; line-height: 1.6; margin: 0; }

/* ---- Séances (sessions) ---- */
.seance-upcoming {
  background: #fffdf9;
  border-left: 5px solid var(--wine);
  border-radius: 10px;
  padding: 20px 22px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.seance-past {
  background: var(--cream-3);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 15px 20px;
}

.seance-past.prestige {
  background: #f2ebe4;
}

.seance-date {
  font-weight: bold;
  color: var(--wine);
  font-size: 1.05em;
  margin: 0 0 6px 0;
}

.seance-past .seance-date { color: #888; font-size: 1em; }

.seance-desc { margin: 0; color: #333; }
.seance-past .seance-desc { color: #555; }

.badge-prestige {
  display: inline-block;
  font-size: 0.78em;
  background: var(--wine);
  color: white;
  padding: 2px 8px;
  border-radius: 4px;
  margin-left: 10px;
  vertical-align: middle;
}

.sessions-grid { display: grid; gap: 14px; }

/* ---- Titre section avec bullet ---- */
.titre-seances {
  position: relative;
  padding-left: 28px;
  margin: 0 0 16px 0;
}
.titre-seances::before {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--wine);
  transform: translateY(-50%);
}

/* ---- Accordion (Lexique) ---- */
details {
  margin: 10px 0;
  padding: 12px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--cream-2);
}

details summary {
  cursor: pointer;
  font-size: 1.1em;
  font-weight: bold;
  color: var(--wine);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}

details summary::after { content: "＋"; font-size: 1.1em; }
details[open] summary::after { content: "－"; }

details ul { margin-top: 12px; padding-left: 20px; }
details li { margin-bottom: 8px; line-height: 1.6; }

/* ---- Bloc info (CTA, important) ---- */
.bloc-info {
  background: #f6f1e8;
  border-left: 4px solid var(--wine);
  padding: 15px 20px;
  margin: 24px 0;
  border-radius: 4px;
}

.cta-block {
  background: var(--wine);
  color: white;
  text-align: center;
  padding: 50px 20px;
  border-radius: var(--radius);
  margin-top: 40px;
}

.cta-block h2 { color: white; margin-bottom: 16px; }
.cta-block p  { font-size: 1.1rem; max-width: 600px; margin: 0 auto 24px; color: rgba(255,255,255,0.9); }

.btn {
  display: inline-block;
  background: white;
  color: var(--wine);
  padding: 14px 28px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  transition: opacity 0.2s;
}

.btn:hover { opacity: 0.9; text-decoration: none; }

.btn-wine {
  background: var(--wine);
  color: white;
}

/* ---- Interactive Map ---- */
.map-wrap { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

.map-grid {
  display: grid;
  grid-template-columns: minmax(0, 2.2fr) minmax(240px, 0.6fr);
  gap: 22px;
  align-items: start;
}

.map-card, .info-card {
  background: rgba(255,255,255,0.6);
  border: 1px solid #D7C5B4;
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(110,30,46,0.07);
}

.map-card { padding: 18px; }

.info-card {
  padding: 22px;
  position: sticky;
  top: 90px;
  font-size: 0.9rem;
}

.info-card h3 { color: var(--wine); font-size: 1.4rem; margin: 0 0 8px; }
.info-card .city { font-size: 0.95rem; color: #7c5660; margin-bottom: 12px; }
.info-card p { line-height: 1.6; margin: 0 0 8px; }
.info-card ul { margin: 8px 0 0 18px; line-height: 1.6; }

.pill {
  display: inline-block;
  padding: 5px 10px;
  border-radius: 999px;
  background: #f4e8dc;
  color: var(--wine);
  font-size: 0.8rem;
  margin: 2px 4px 4px 0;
  border: 1px solid #e4d0be;
}

.map-legend {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 12px;
  font-size: 0.9rem;
  color: #6f5257;
}

.map-legend span { display: inline-flex; align-items: center; gap: 7px; }

.dot-legend {
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--wine);
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px rgba(110,30,46,0.25);
  display: inline-block;
}

.zone-legend {
  width: 16px; height: 10px;
  border-radius: 999px;
  background: rgba(110,30,46,0.18);
  border: 1px solid rgba(110,30,46,0.26);
  display: inline-block;
}

/* SVG Map */
.map-card svg { width: 100%; height: auto; display: block; }
.map-base path { transition: fill 0.2s ease; }

.region-zone {
  fill: rgba(110,30,46,0.10);
  stroke: rgba(110,30,46,0.18);
  stroke-width: 2;
  cursor: pointer;
  transition: fill 0.18s ease, stroke 0.18s ease;
}

.region-zone:hover, .region-zone.active {
  fill: rgba(110,30,46,0.26);
  stroke: rgba(110,30,46,0.5);
}

.city-marker {
  fill: var(--wine);
  stroke: white;
  stroke-width: 3;
  cursor: pointer;
  transition: transform 0.18s ease, fill 0.18s ease;
  transform-box: fill-box;
  transform-origin: center;
}

.city-marker:hover, .city-marker.active {
  fill: #C7A06A;
  transform: scale(1.25);
}

.city-label {
  fill: var(--wine);
  font-size: 24px;
  font-weight: 700;
  pointer-events: none;
  paint-order: stroke;
  stroke: rgba(255,255,255,0.8);
  stroke-width: 4;
}

/* ---- Footer ---- */
footer {
  background: var(--wine-dark);
  color: rgba(255,255,255,0.8);
  text-align: center;
  padding: 30px 20px;
  font-size: 0.9rem;
  line-height: 1.8;
}

footer a { color: rgba(255,255,255,0.7); }
footer a:hover { color: white; }

/* ============================
   RESPONSIVE
   ============================ */

@media (max-width: 720px) {

  .header-inner { height: 60px; }

  nav {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 60px;
    left: 0; right: 0;
    background: white;
    border-bottom: 2px solid var(--wine);
    padding: 12px 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    z-index: 99;
    gap: 4px;
  }

  nav.open { display: flex; }
  nav a { padding: 10px 12px; border-radius: 6px; }

  .menu-toggle { display: block; }

  .hero { height: 280px; }
  .hero-content h1 { font-size: 1.7rem; }
  .hero-content p  { font-size: 1rem; }

  .cards-grid { grid-template-columns: 1fr; }

  .map-grid { grid-template-columns: 1fr; }
  .info-card { position: static; }
  .city-label { font-size: 18px; }
}
