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

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

:root {
  --fond:         #f7f9fd;
  --blanc:        #ffffff;
  --terre:        #c47a9a;
  --terre-clair:  #e8b8cc;
  --sauge:        #6a8fb5;
  --sauge-clair:  #a8c4dc;
  --sauge-pale:   #edf3f9;
  --beige:        #d8e4f0;
  --brun:         #2e4a6a;
  --texte:        #2a3a4e;
  --texte-clair:  #7a8fa8;
  --border:       #ccdaeb;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Nunito', sans-serif;
  font-weight: 300;
  font-size: 16px;
  line-height: 1.75;
  color: var(--texte);
  background: var(--fond);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ── Header ──────────────────────────────────────── */

header {
  background: var(--blanc);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

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

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

.logo-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--brun);
  letter-spacing: .06em;
}

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

nav a {
  font-size: .875rem;
  font-weight: 400;
  color: var(--texte-clair);
  text-decoration: none;
  padding: 7px 14px;
  border-radius: 3px;
  transition: color .2s, background .2s;
  letter-spacing: .03em;
}

nav a:hover { color: var(--sauge); background: var(--sauge-pale); }
nav a.active { color: var(--sauge); font-weight: 500; }

.nav-burger { display: none; background: none; border: none; cursor: pointer; padding: 4px; }
.nav-burger span { display: block; width: 24px; height: 2px; background: var(--brun); margin: 5px 0; border-radius: 2px; transition: .3s; }

/* ── Hero ────────────────────────────────────────── */

.hero {
  background: var(--blanc);
  border-bottom: 2px solid var(--beige);
  overflow: hidden;
  position: relative;
}

.hero-deco-left, .hero-deco-right {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  opacity: .12;
  width: 220px;
}
.hero-deco-left { left: -40px; }
.hero-deco-right { right: -40px; transform: translateY(-50%) scaleX(-1); }

.hero-inner {
  max-width: 680px;
  margin: 0 auto;
  padding: 72px 24px 60px;
  text-align: center;
  position: relative;
  z-index: 1;
}

.hero-picto { margin-bottom: 24px; }

.hero-overtitle {
  font-size: .72rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--terre);
  font-weight: 500;
  margin-bottom: 14px;
}

.hero-inner h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 3.6rem;
  font-weight: 300;
  color: var(--brun);
  line-height: 1.1;
  margin-bottom: 14px;
}

.hero-ornament {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: center;
  margin: 16px 0 20px;
  color: var(--terre-clair);
  font-size: .8rem;
  letter-spacing: .1em;
}

.hero-ornament::before, .hero-ornament::after {
  content: '';
  flex: 1;
  max-width: 80px;
  height: 1px;
  background: var(--terre-clair);
}

.hero-desc {
  color: var(--texte-clair);
  font-size: .95rem;
  max-width: 460px;
  margin: 0 auto 36px;
}

.hero-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ── Séparateur ornemental ───────────────────────── */

.sep-zen {
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
  color: var(--beige);
}
.sep-zen::before, .sep-zen::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--beige);
}

/* ── Boutons ─────────────────────────────────────── */

.btn {
  display: inline-block;
  padding: 11px 28px;
  border-radius: 2px;
  font-size: .875rem;
  font-weight: 500;
  text-decoration: none;
  transition: .2s;
  letter-spacing: .06em;
  cursor: pointer;
  border: none;
  font-family: 'Nunito', sans-serif;
}

.btn-sauge { background: var(--sauge); color: #fff; }
.btn-sauge:hover { background: #5a7a5d; }

.btn-terre { background: var(--terre); color: #fff; }
.btn-terre:hover { background: #b07048; }

.btn-outline { background: transparent; border: 1px solid var(--border); color: var(--texte); }
.btn-outline:hover { border-color: var(--sauge); color: var(--sauge); background: var(--sauge-pale); }

/* ── Section intro cartes ────────────────────────── */

main { flex: 1; }

.cards-section {
  background: var(--fond);
  padding: 56px 24px;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 960px;
  margin: 0 auto;
}

.card {
  background: var(--blanc);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 32px 28px;
  text-decoration: none;
  color: inherit;
  transition: border-color .25s, transform .25s, box-shadow .25s;
  display: block;
  text-align: center;
}

.card:hover {
  border-color: var(--terre-clair);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(74,55,40,.07);
}

.card-picto { margin-bottom: 16px; }

.card h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--brun);
  margin-bottom: 8px;
  letter-spacing: .02em;
}

.card p { font-size: .875rem; color: var(--texte-clair); line-height: 1.6; }

/* ── Pages intérieures ───────────────────────────── */

.page-section {
  max-width: 760px;
  margin: 0 auto;
  padding: 56px 24px;
}

.section-nav {
  display: flex;
  gap: 0;
  margin-bottom: 48px;
  border-bottom: 1px solid var(--border);
}

.section-nav a {
  font-size: .82rem;
  color: var(--texte-clair);
  text-decoration: none;
  padding: 8px 16px 10px;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: .2s;
  letter-spacing: .03em;
}
.section-nav a:hover { color: var(--sauge); }
.section-nav a.active { color: var(--sauge); border-bottom-color: var(--sauge); font-weight: 500; }

.page-header { text-align: center; margin-bottom: 48px; }

.page-picto { margin-bottom: 20px; }

.page-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.4rem;
  font-weight: 400;
  color: var(--brun);
  margin-bottom: 10px;
  letter-spacing: .02em;
}

.page-lead {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  font-style: italic;
  color: var(--terre);
  line-height: 1.5;
}

.content-text h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--brun);
  margin: 32px 0 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.content-text h2::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--beige);
}

.content-text p { margin-bottom: 16px; color: var(--texte); }
.content-text strong { font-weight: 500; color: var(--brun); }

/* ── Horaires ───────────────────────────────────── */

.horaires-bloc { margin-bottom: 44px; }

.bloc-titre {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}

.bloc-titre h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem;
  color: var(--brun);
  font-weight: 500;
}

.tag {
  font-size: .68rem;
  font-family: 'Nunito', sans-serif;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.tag-presentiel { background: #e4f0e4; color: #3a6a3a; }
.tag-distanciel { background: #e4eaf5; color: #3a4a7a; }

.horaire-item {
  background: var(--blanc);
  border: 1px solid var(--border);
  border-left: 3px solid var(--sauge-clair);
  border-radius: 0 3px 3px 0;
  padding: 16px 20px;
  margin-bottom: 10px;
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 16px;
  align-items: start;
}

.horaire-temps {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  color: var(--sauge);
  font-weight: 500;
}

.horaire-lieu { font-size: .9rem; color: var(--texte); font-weight: 400; }
.horaire-adresse { font-size: .82rem; color: var(--texte-clair); margin-top: 3px; }
.horaire-metro { font-size: .78rem; color: var(--texte-clair); font-style: italic; margin-top: 1px; }

.separateur {
  border: none;
  text-align: center;
  margin: 40px 0;
  overflow: visible;
  height: 20px;
  position: relative;
}
.separateur::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0; right: 0;
  height: 1px;
  background: var(--beige);
}
.separateur-inner {
  position: relative;
  display: inline-block;
  background: var(--fond);
  padding: 0 12px;
}

/* ── Tarifs ─────────────────────────────────────── */

.tarifs-wrap {
  background: var(--fond);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 20px 24px;
  margin-top: 16px;
}

.tarifs-wrap h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem;
  font-weight: 500;
  color: var(--texte-clair);
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: 12px;
  font-size: .78rem;
}

.tarifs-table { width: 100%; border-collapse: collapse; }
.tarifs-table td { padding: 9px 0; border-bottom: 1px solid var(--border); font-size: .9rem; }
.tarifs-table tr:last-child td { border-bottom: none; }
.tarifs-table td:first-child { color: var(--texte-clair); }
.tarifs-table td:last-child { font-weight: 500; color: var(--brun); text-align: right; }

/* ── Ateliers ───────────────────────────────────── */

.ateliers-intro {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.05rem;
  font-style: italic;
  color: var(--texte-clair);
  margin-bottom: 36px;
  line-height: 1.7;
}

.atelier-item {
  background: var(--blanc);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 24px 28px;
  margin-bottom: 16px;
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 24px;
  align-items: start;
  transition: border-color .2s;
}

.atelier-item:hover { border-color: var(--terre-clair); }

.atelier-date {
  text-align: center;
  border-right: 1px solid var(--beige);
  padding-right: 20px;
  padding-top: 4px;
}

.atelier-date .jour-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.4rem;
  color: var(--brun);
  line-height: 1;
  font-weight: 300;
}

.atelier-date .mois {
  font-size: .72rem;
  color: var(--terre);
  text-transform: uppercase;
  letter-spacing: .12em;
  font-weight: 600;
  margin-top: 2px;
}

.atelier-date .annee {
  font-size: .72rem;
  color: var(--texte-clair);
  margin-top: 1px;
}

.atelier-horaire {
  font-size: .8rem;
  color: var(--sauge);
  font-weight: 500;
  letter-spacing: .04em;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.atelier-themes { list-style: none; }

.atelier-themes li {
  font-size: .9rem;
  padding: 4px 0 4px 20px;
  position: relative;
  color: var(--texte);
}

.atelier-themes li::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 12px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--terre-clair);
}

.atelier-lieu {
  font-size: .8rem;
  color: var(--texte-clair);
  margin-top: 12px;
  font-style: italic;
  display: flex;
  align-items: center;
  gap: 4px;
}

.inscription-note {
  background: var(--sauge-pale);
  border: 1px solid var(--sauge-clair);
  border-radius: 3px;
  padding: 20px 24px;
  margin-top: 32px;
  font-size: .9rem;
}
.inscription-note a { color: var(--sauge); font-weight: 500; }

/* ── Contact ─────────────────────────────────────── */

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 32px; }

.contact-card {
  background: var(--blanc);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 24px 28px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.contact-card-icon { flex-shrink: 0; margin-top: 2px; }

.contact-card h3 {
  font-size: .72rem;
  font-weight: 600;
  color: var(--texte-clair);
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: 6px;
}

.contact-card a { color: var(--sauge); text-decoration: none; font-size: .95rem; }
.contact-card a:hover { text-decoration: underline; }
.contact-card .val { font-size: .95rem; color: var(--brun); font-weight: 400; }

/* ── Footer ─────────────────────────────────────── */

footer {
  border-top: 1px solid var(--border);
  background: var(--blanc);
}

.footer-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 32px 24px;
  text-align: center;
}

.footer-picto { margin-bottom: 12px; opacity: .4; }

.footer-inner p { font-size: .82rem; color: var(--texte-clair); }
.footer-inner a { color: var(--sauge); text-decoration: none; }

/* ── Admin ───────────────────────────────────────── */

.admin-wrap { max-width: 820px; margin: 0 auto; padding: 40px 24px; }

.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.admin-title { font-family: 'Cormorant Garamond', serif; font-size: 1.6rem; color: var(--brun); }

.admin-nav { display: flex; gap: 8px; margin-bottom: 32px; flex-wrap: wrap; }
.admin-nav a {
  font-size: .82rem;
  padding: 6px 14px;
  border-radius: 3px;
  border: 1px solid var(--border);
  color: var(--texte-clair);
  text-decoration: none;
  transition: .2s;
}
.admin-nav a:hover, .admin-nav a.active { background: var(--sauge); color: #fff; border-color: var(--sauge); }

.admin-section { margin-bottom: 40px; }
.admin-section h2 { font-family: 'Cormorant Garamond', serif; font-size: 1.2rem; color: var(--brun); margin-bottom: 16px; }

.admin-table { width: 100%; border-collapse: collapse; font-size: .875rem; }
.admin-table th { text-align: left; padding: 8px 12px; background: var(--fond); color: var(--texte-clair); font-weight: 500; border-bottom: 2px solid var(--border); }
.admin-table td { padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
.admin-table tr:last-child td { border-bottom: none; }

.admin-form { background: var(--blanc); border: 1px solid var(--border); border-radius: 3px; padding: 20px; margin-top: 12px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
.form-row.full { grid-template-columns: 1fr; }

label { font-size: .75rem; color: var(--texte-clair); display: block; margin-bottom: 4px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }

input[type=text], input[type=date], input[type=time], input[type=password], select, textarea {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 3px;
  font-family: 'Nunito', sans-serif;
  font-size: .875rem;
  color: var(--texte);
  background: var(--fond);
  transition: border-color .2s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--sauge); background: var(--blanc); }
textarea { resize: vertical; min-height: 80px; }

.btn-danger { background: #c0392b; color: #fff; }
.btn-danger:hover { background: #a93226; }
.btn-sm { padding: 5px 12px; font-size: .78rem; }

.alert-success { background: #eaf5ea; border-left: 3px solid #5a9e5a; padding: 10px 16px; border-radius: 0 3px 3px 0; font-size: .875rem; color: #3a6e3a; margin-bottom: 20px; }

.login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: var(--fond); }
.login-box { background: var(--blanc); border: 1px solid var(--border); border-radius: 3px; padding: 48px 40px; width: 100%; max-width: 380px; text-align: center; }
.login-box h1 { font-family: 'Cormorant Garamond', serif; font-size: 1.8rem; color: var(--brun); margin-bottom: 4px; }
.login-box .sub { font-size: .85rem; color: var(--texte-clair); margin-bottom: 32px; }
.login-box input { margin-bottom: 16px; text-align: center; }
.error-msg { color: #c0392b; font-size: .85rem; margin-bottom: 12px; }

/* ── Responsive ─────────────────────────────────── */

@media (max-width: 700px) {
  .hero-inner h1 { font-size: 2.4rem; }
  .hero-deco-left, .hero-deco-right { display: none; }
  .cards-grid { grid-template-columns: 1fr; }
  nav { display: none; flex-direction: column; position: absolute; top: 68px; left: 0; right: 0; background: var(--blanc); border-bottom: 1px solid var(--border); padding: 12px; }
  nav.open { display: flex; }
  nav a { padding: 10px 16px; }
  .nav-burger { display: block; }
  .horaire-item { grid-template-columns: 1fr; gap: 4px; }
  .atelier-item { grid-template-columns: 1fr; }
  .atelier-date { display: flex; gap: 12px; align-items: center; border-right: none; border-bottom: 1px solid var(--beige); padding-right: 0; padding-bottom: 12px; text-align: left; }
  .contact-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .section-nav { overflow-x: auto; }
}
