:root {
  --color-petrol: #0f5c66;
  --color-petrol-dark: #0a3d44;
  --color-gold: #e8a33d;
  --color-gold-light: #f4c878;
  --color-red: #d1453b;
  --color-cream: #faf6ee;
  --color-ink: #1a2b2e;
  --max-width: 1100px;
  --radius: 14px;
  font-size: 16px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--color-cream);
  color: var(--color-ink);
  font-family: "Georgia", "Iowan Old Style", serif;
  line-height: 1.6;
}

h1, h2, h3, .display {
  font-family: "Trajan Pro", "Cinzel", "Georgia", serif;
  letter-spacing: 0.02em;
  color: var(--color-petrol-dark);
}

a { color: var(--color-petrol); }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.container.narrow { max-width: 760px; }

.presentation-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  align-items: center;
}
.presentation-grid img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: 0 14px 40px rgba(10,61,68,0.18);
}
@media (max-width: 720px) {
  .presentation-grid { grid-template-columns: 1fr; }
  .presentation-grid img { max-height: 280px; order: -1; }
}

.icon {
  width: 1em;
  height: 1em;
  vertical-align: -0.15em;
  flex-shrink: 0;
}

.meta-icon { width: 1.1em; height: 1.1em; vertical-align: -0.2em; margin-right: 0.15rem; }

.card-icon {
  width: 34px;
  height: 34px;
  color: var(--color-petrol);
  margin-bottom: 0.6rem;
}

.info-icon {
  width: 28px;
  height: 28px;
  color: var(--color-gold);
  margin-top: 0.1rem;
}

header.site-header {
  background: white;
  color: var(--color-petrol-dark);
  padding: 0.6rem 0;
  box-shadow: 0 2px 14px rgba(10,61,68,0.1);
  position: relative;
  z-index: 200;
}

header.site-header a { color: var(--color-petrol-dark); text-decoration: none; }

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand { display: flex; align-items: center; }
.brand img { height: 60px; width: auto; display: block; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  margin: -0.5rem;
}
.nav-toggle span { width: 26px; height: 3px; border-radius: 2px; background: var(--color-petrol-dark); display: block; }

nav.main-nav { display: flex; gap: 1.75rem; flex-wrap: wrap; align-items: center; }
nav.main-nav a { font-weight: 700; }
nav.main-nav a:hover { color: var(--color-petrol); }

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  nav.main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
    background: white;
    padding: 0.75rem 1.25rem 1.25rem;
    box-shadow: 0 12px 20px rgba(10,61,68,0.12);
  }
  nav.main-nav.open { display: flex; }
  nav.main-nav a { width: 100%; padding: 0.6rem 0; }
}

.btn {
  display: inline-block;
  background: var(--color-gold);
  color: var(--color-petrol-dark);
  padding: 0.7rem 1.5rem;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(232, 163, 61, 0.4); }
.btn.secondary {
  background: transparent;
  color: white;
  border: 2px solid white;
}

.hero {
  background: radial-gradient(ellipse at top right, rgba(232,163,61,0.2), transparent 60%),
              linear-gradient(160deg, rgba(10,61,68,0.88), rgba(15,92,102,0.82)),
              url('/images/hero-vallee.jpg');
  background-size: cover;
  background-position: center 60%;
  color: white;
  padding: 4rem 0 5rem;
  text-align: center;
}

.intro-banner {
  background: linear-gradient(160deg, rgba(10,61,68,0.82), rgba(15,92,102,0.72)),
              url('/images/programme-village.jpg');
  background-size: cover;
  background-position: center 55%;
  color: white;
  padding: 3.5rem 0;
  text-align: center;
}
.intro-banner h2 { color: white; margin: 0; }

.hero .anniversaire {
  display: inline-block;
  background: var(--color-gold);
  color: var(--color-petrol-dark);
  font-weight: 800;
  padding: 0.35rem 1.1rem;
  border-radius: 999px;
  margin-bottom: 1.25rem;
  font-family: "Trajan Pro", "Cinzel", serif;
}

.hero h1 { color: white; font-size: clamp(2rem, 5vw, 3.4rem); margin: 0 0 0.5rem; }
.hero .theme-corse, .intro-banner .theme-corse { font-size: 1.4rem; color: var(--color-gold-light); font-style: italic; margin: 1rem 0 0; }
.hero .theme-fr { font-size: 1.15rem; color: rgba(255,255,255,0.85); margin: 0.25rem 0 2rem; }
.intro-banner .theme-fr { font-size: 1.1rem; color: rgba(255,255,255,0.85); margin: 0.35rem 0 0; font-weight: 600; }
.hero .meta { display: flex; justify-content: center; gap: 2rem; flex-wrap: wrap; margin-bottom: 2rem; font-weight: 600; }
.hero .meta span { display: inline-flex; align-items: center; gap: 0.4rem; }
.hero .cta-row { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; }

section { padding: 3.5rem 0; }
section.alt { background: white; }

.section-title { text-align: center; margin-bottom: 2rem; }
.section-title h2 { font-size: 2rem; margin-bottom: 0.4rem; }
.section-title p { color: #55666a; margin: 0; }

.activites-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 1rem;
}
.activite-card {
  background: white;
  border: 1px solid rgba(15,92,102,0.15);
  border-radius: var(--radius);
  padding: 1.5rem 1.25rem;
  text-align: center;
}
.activite-card .corse { font-weight: 700; color: var(--color-petrol); display: block; }
.activite-card .fr { color: #55666a; font-size: 0.95rem; }

.activites-grid.compact { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0.75rem; margin: 2.5rem 0 2rem; }
.activites-grid.compact .activite-card { padding: 1rem 0.75rem; background: var(--color-cream); border-color: transparent; }
.activites-grid.compact .card-icon { width: 26px; height: 26px; margin-bottom: 0.35rem; }
.activites-grid.compact .fr { font-size: 0.85rem; }

.text-link {
  color: var(--color-petrol-dark);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.timeline { display: flex; flex-direction: column; gap: 1rem; }
.timeline-item {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 1.25rem;
  align-items: start;
  background: var(--color-cream);
  border-left: 4px solid var(--color-gold);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1rem 1.25rem;
}
.timeline-item .annee { font-weight: 800; font-size: 1.2rem; color: var(--color-red); }
.timeline-item .theme { font-weight: 700; margin: 0 0 0.25rem; }
.timeline-item p { margin: 0; color: #444; }

.lead {
  font-size: 1.1rem;
  color: #33454a;
  margin: 0 0 1.1rem;
}

.citation {
  font-style: italic;
  color: var(--color-petrol);
  border-left: 3px solid var(--color-gold);
  padding-left: 1rem;
  margin-top: 1.5rem;
}

.info-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin: 2.5rem 0;
}
.info-item {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  background: white;
  border: 1px solid rgba(15,92,102,0.15);
  border-radius: var(--radius);
  padding: 1.1rem 1.25rem;
}
.info-item div { display: flex; flex-direction: column; gap: 0.2rem; }
.info-item strong { color: var(--color-petrol-dark); }
.info-item span { color: #55666a; font-size: 0.92rem; }

.inscription-cta {
  text-align: center;
  background: linear-gradient(160deg, var(--color-petrol-dark), var(--color-petrol));
  color: white;
  border-radius: var(--radius);
  padding: 2.5rem 1.5rem;
}
.inscription-cta h3 { color: white; margin-top: 0; font-size: 1.5rem; }
.inscription-cta p { max-width: 520px; margin: 0 auto 1.5rem; color: rgba(255,255,255,0.85); }

.publics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}
.public-card {
  background: white;
  border: 1px solid rgba(15,92,102,0.15);
  border-radius: var(--radius);
  padding: 1.5rem 1.25rem;
}
.public-card h3 { margin: 0 0 0.5rem; font-size: 1.1rem; }
.public-card p { margin: 0; color: #444; font-size: 0.95rem; }

.footer-partenaires-title {
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.78rem;
  font-weight: 700;
  color: #55666a;
  margin: 2rem 0 1.25rem;
}
.footer-partenaires {
  display: flex;
  flex-wrap: wrap;
  gap: 1.75rem;
  justify-content: center;
  align-items: center;
}
.footer-partenaires img { height: 40px; width: auto; max-width: 130px; object-fit: contain; }

form.inscription-form {
  max-width: 640px;
  margin: 0 auto;
  background: white;
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: 0 10px 40px rgba(10,61,68,0.08);
}
.form-row { margin-bottom: 1.25rem; }
.form-row.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
label { display: block; font-weight: 700; margin-bottom: 0.35rem; color: var(--color-petrol-dark); }
input, select, textarea {
  width: 100%;
  padding: 0.65rem 0.8rem;
  border: 1px solid #cdd6d7;
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
}
textarea { resize: vertical; min-height: 90px; }
.checkbox-row { display: flex; align-items: flex-start; gap: 0.6rem; }
.checkbox-row input { width: auto; margin-top: 0.3rem; }
.checkbox-row label { font-weight: 500; margin: 0; }

.field-hint { color: #55666a; font-size: 0.88rem; margin: -0.4rem 0 1rem; }

fieldset.evenements-jour {
  border: 1px solid #dde4e4;
  border-radius: 10px;
  padding: 0.25rem 1.1rem 1rem;
  margin: 0 0 1rem;
}
fieldset.evenements-jour legend { font-weight: 800; color: var(--color-petrol-dark); padding: 0 0.4rem; }
.evenement-option { display: flex; align-items: flex-start; gap: 0.6rem; margin-bottom: 0.6rem; cursor: pointer; font-weight: 500; }
.evenement-option:last-child { margin-bottom: 0; }
.evenement-option input { width: auto; margin-top: 0.3rem; }

.alert {
  padding: 0.9rem 1.1rem;
  border-radius: 10px;
  margin-bottom: 1.25rem;
  font-weight: 600;
}
.alert.success { background: #e3f5e6; color: #1e6b2f; border: 1px solid #b9e3c0; }
.alert.error { background: #fdecea; color: #a3271f; border: 1px solid #f3c3bd; }

table.admin-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border-radius: var(--radius);
  overflow: hidden;
}
table.admin-table th, table.admin-table td {
  text-align: left;
  padding: 0.7rem 0.9rem;
  border-bottom: 1px solid #eee;
  font-size: 0.92rem;
}
table.admin-table th { background: var(--color-petrol); color: white; }
table.admin-table tr:hover { background: #f6faf9; }

.admin-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.stat-pill {
  background: var(--color-gold);
  color: var(--color-petrol-dark);
  font-weight: 800;
  padding: 0.5rem 1rem;
  border-radius: 999px;
}
.stat-pill.small { font-size: 0.8rem; padding: 0.3rem 0.75rem; }

.admin-section-title {
  margin: 2rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid rgba(15,92,102,0.15);
  color: var(--color-petrol-dark);
}

.stats-jours-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.25rem;
  margin-bottom: 1rem;
}
.stats-jour-card {
  background: white;
  border: 1px solid rgba(15,92,102,0.15);
  border-radius: var(--radius);
  padding: 1.1rem 1.25rem;
}
.stats-jour-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}
.stats-jour-header h4 { margin: 0; color: var(--color-petrol-dark); }

table.admin-table.compact th, table.admin-table.compact td { padding: 0.45rem 0.6rem; font-size: 0.85rem; }
table.admin-table.compact { box-shadow: none; }

.login-box {
  max-width: 380px;
  margin: 4rem auto;
  background: white;
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: 0 10px 40px rgba(10,61,68,0.1);
}

footer.site-footer {
  background: white;
  color: var(--color-petrol-dark);
  padding: 2.5rem 0;
  text-align: center;
  font-size: 0.9rem;
  border-top: 1px solid rgba(15,92,102,0.12);
}
footer.site-footer a { color: var(--color-petrol); font-weight: 600; }
footer.site-footer p:first-of-type { font-weight: 700; }
.footer-logo { height: 70px; width: auto; margin-bottom: 1.25rem; }

.cf-turnstile { display: flex; justify-content: center; margin-bottom: 1.25rem; }

.floating-cta {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 300;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--color-gold);
  color: var(--color-petrol-dark);
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 10px 28px rgba(10,61,68,0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.floating-cta:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(10,61,68,0.4); }
@media (max-width: 500px) {
  .floating-cta { bottom: 1rem; right: 1rem; padding: 0.75rem 1.2rem; font-size: 0.92rem; }
}

.jours-nav {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}
.jours-nav a {
  background: white;
  border: 1px solid rgba(15,92,102,0.2);
  border-radius: 999px;
  padding: 0.5rem 1.1rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--color-petrol-dark);
}

.jour-block { margin-bottom: 3.5rem; scroll-margin-top: 90px; }
.jour-header { margin-bottom: 1.5rem; }
.jour-header h2 { margin-bottom: 0.15rem; }
.jour-corse { font-style: italic; color: var(--color-petrol); margin: 0 0 0.4rem; }
.jour-soustitre { color: #55666a; margin: 0; }

.creneaux { display: flex; flex-direction: column; }
.creneau {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 1.25rem;
  padding: 1rem 0;
  border-bottom: 1px solid #eee;
}
.creneau .heure { font-weight: 800; color: var(--color-red); }
.creneau-titre { margin: 0; font-weight: 600; color: var(--color-petrol-dark); }
.creneau ul { margin: 0.5rem 0 0; padding-left: 1.1rem; color: #444; font-size: 0.92rem; }
.creneau li { margin-bottom: 0.2rem; }

.animations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}
.animation-card {
  background: white;
  border: 1px solid rgba(15,92,102,0.15);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.animation-card h3 { margin: 0 0 0.75rem; font-size: 1.1rem; }
.animation-card ul { margin: 0; padding-left: 1.1rem; color: #444; font-size: 0.92rem; }
.animation-card li { margin-bottom: 0.4rem; }
.animation-card p { margin: 0; color: #444; font-size: 0.92rem; }

.conference-card {
  background: white;
  border: 1px solid rgba(15,92,102,0.15);
  border-radius: var(--radius);
  padding: 1.1rem 1.5rem;
  margin-bottom: 1rem;
}
.conference-card summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--color-petrol-dark);
  padding: 0.3rem 0;
}
.conference-card[open] summary { margin-bottom: 0.75rem; }
.conference-card .intervenant { color: var(--color-petrol); font-weight: 700; margin: 0 0 0.15rem; }
.conference-card .bio { color: #667; font-size: 0.88rem; font-style: italic; margin: 0 0 1rem; }
.conference-card p:not(.intervenant):not(.bio) { color: #333; font-size: 0.95rem; margin: 0 0 0.85rem; }

@media (max-width: 640px) {
  .form-row.two-col { grid-template-columns: 1fr; }
  .timeline-item { grid-template-columns: 1fr; }
  .creneau { grid-template-columns: 65px 1fr; }
}
