:root {
  --teal: #14778A;
  --vert: #3B8447;
  --terre: #A4663F;
  --creme: #FAF6EF;
  --texte: #233238;
  --radius: 14px;

  /* Tokens additionnels (calendrier, carrousel, cartes d'info) */
  --line: #d6e0da;
  --surface: #ffffff;
  --ink: #172d27;
  --ink-soft: #4c6a60;
  --ink-faint: #7c9188;
  --accent-soft: #d7ecef;
  --leaf: #3d8a4a;
  --leaf-soft: #dcefdd;
  --critical: #b0493a;
  --critical-soft: #f6dcd6;
  --warn: #a8752a;
  --warn-soft: #f3e6cf;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Public Sans", Calibri, Arial, sans-serif;
  color: var(--texte);
  background: var(--creme);
  line-height: 1.55;
}

h1, h2, h3 {
  font-family: "Fraunces", Georgia, serif;
  margin: 0 0 .5em;
}

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

header.site {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 10;
  box-shadow: 0 1px 6px rgba(0,0,0,.06);
}

header.site .brand {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-weight: 700;
  font-size: 1.2rem;
}

header.site img.logo { height: 60px; width: auto; }

nav.site a {
  margin-left: 1.2rem;
  text-decoration: none;
  color: var(--texte);
  font-size: .95rem;
}
nav.site a:hover { color: var(--teal); }

.hero {
  text-align: center;
  padding: 3rem 1.5rem 3rem;
  background:
    linear-gradient(180deg, rgba(255,255,255,.90), rgba(250,246,239,.94)),
    url("assets/hero-illustration.jpg") center 30% / cover no-repeat;
}
.hero .hero-logo {
  height: 150px;
  width: auto;
  margin-bottom: 1.2rem;
}
.hero h1 { font-size: 2.2rem; color: var(--teal); }
.hero p.tagline { font-size: 1.15rem; max-width: 640px; margin: .8rem auto 1.6rem; }

.btn {
  display: inline-block;
  padding: .75rem 1.6rem;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  color: #fff;
  background: var(--teal);
}
.btn.vert { background: var(--vert); }
.btn.terre { background: var(--terre); }
.btn.outline {
  background: transparent;
  border: 2px solid var(--teal);
  color: var(--teal);
}

.reveal {
  max-width: 640px;
  margin: 1.6rem auto 0;
  padding: 1.6rem;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 2px 10px rgba(0,0,0,.06);
  text-align: left;
}
.reveal p { font-size: 1.02rem; margin-bottom: 1rem; }

.carousel-track {
  position: relative;
  min-height: 7.5rem;
}
.carousel-slide {
  display: none;
  animation: fade-in .25s ease;
}
.carousel-slide.is-active { display: block; }
.carousel-slide p { margin-bottom: 0; }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: .8rem;
}
.carousel-arrow {
  background: var(--accent-soft);
  color: var(--teal);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
}
.carousel-arrow:hover { background: var(--teal); color: #fff; }
.carousel-dots {
  display: flex;
  gap: .5rem;
}
.carousel-dots button {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: var(--line);
  padding: 0;
  cursor: pointer;
}
.carousel-dots button.is-active { background: var(--teal); }

/* Calendrier de demande de visite */
.calendar {
  max-width: 420px;
  margin: 0 auto;
  background: var(--surface, #fff);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.2rem 1.4rem 1.6rem;
}
.cal-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: .8rem;
}
.cal-nav button {
  background: var(--accent-soft);
  color: var(--teal);
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 1.1rem;
  cursor: pointer;
}
.cal-nav button:disabled { opacity: .35; cursor: default; }
.cal-nav .cal-month-label {
  font-weight: 700;
  text-transform: capitalize;
}
.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  text-align: center;
}
.cal-dow {
  font-size: .68rem;
  text-transform: uppercase;
  color: var(--ink-faint, #7c9188);
  padding-bottom: .3rem;
}
.cal-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-size: .86rem;
  background: transparent;
  border: none;
  cursor: default;
  color: var(--ink-faint, #7c9188);
}
.cal-day.empty { visibility: hidden; }
.cal-day.available {
  background: var(--leaf-soft, #dcefdd);
  color: var(--ink, #172d27);
  cursor: pointer;
  font-weight: 600;
}
.cal-day.available:hover { background: var(--leaf, #3d8a4a); color: #fff; }
.cal-day.blocked {
  background: var(--critical-soft, #f6dcd6);
  color: var(--critical, #b0493a);
  text-decoration: line-through;
}
.cal-day.selected {
  background: var(--teal) !important;
  color: #fff !important;
}
.cal-legend {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: .76rem;
  color: var(--ink-soft, #4c6a60);
  margin-top: 1rem;
}
.cal-legend span { display: inline-flex; align-items: center; gap: .35rem; }
.cal-legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.cal-summary {
  margin-top: 1.2rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
  text-align: center;
}
.cal-summary .btn[aria-disabled="true"] {
  opacity: .4;
  pointer-events: none;
}

section.mission {
  max-width: 920px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
  border-top: 1px solid rgba(0,0,0,.08);
}

section.mission#installations {
  max-width: none;
  background-color: var(--creme);
  background-image:
    linear-gradient(180deg, rgba(250,246,239,.72), rgba(250,246,239,.9)),
    url("assets/installations-blueprint.svg");
  background-repeat: no-repeat, repeat-x;
  background-position: center, left top;
  background-size: cover, 420px 320px;
}
section.mission#installations > .grid {
  max-width: 920px;
  margin: 0 auto;
}

section.mission#formation {
  max-width: none;
  background-color: #fff;
  background-image:
    linear-gradient(180deg, rgba(255,255,255,.85), rgba(250,246,239,.92)),
    url("assets/formation-cahier.svg");
  background-repeat: no-repeat, repeat;
  background-position: center, top left;
  background-size: cover, 320px 320px;
}
section.mission#formation > .grid {
  max-width: 920px;
  margin: 0 auto;
}

section.mission#ateliers {
  max-width: none;
  position: relative;
  overflow: hidden;
}
section.mission#ateliers > .grid {
  max-width: 920px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.photo-strip {
  position: absolute;
  inset: 0;
  display: flex;
}
.photo-strip .ph {
  flex: 1 1 25%;
  background-size: cover;
  background-position: center;
  opacity: .16;
}
/* Voile clair par-dessus la bande de photos pour garder le texte lisible */
section.mission#ateliers::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(250,246,239,.75), rgba(250,246,239,.92));
  z-index: 0;
}

section.mission .grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 2rem;
  align-items: start;
}
@media (max-width: 720px) {
  section.mission .grid { grid-template-columns: 1fr; }
}

.card {
  background: #fff;
  border-radius: var(--radius);
  padding: 1.4rem 1.6rem;
  box-shadow: 0 2px 10px rgba(0,0,0,.05);
}

.badge-soon {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  color: #fff;
  background: var(--terre);
  padding: .25rem .7rem;
  border-radius: 999px;
  margin-bottom: .6rem;
}

ul.points { padding-left: 1.1rem; }
ul.points li { margin-bottom: .4rem; }

footer.site {
  background: #233238;
  color: #e7e7e3;
  padding: 2.5rem 1.5rem 2rem;
  font-size: .85rem;
}
footer.site .foot-grid {
  max-width: 920px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
@media (max-width: 600px) {
  footer.site .foot-grid { grid-template-columns: 1fr; }
}
footer.site a { color: #a8d8df; }
footer.site h4 { font-family: inherit; margin: 0 0 .5rem; color: #fff; }
