/* Site de présentation VHEL — reprend le hero des sites de ville :
   collines vertes, bandeau vertical vert, cercles en dégradé bordés de blanc. */
:root {
  /* Couleurs : verts des collines, jaune des promos, bleu de l'icône */
  --bg: #f4f8f1;
  --surface: #ffffff;
  --fg: #1d2b1f;
  --muted: #56675a;
  --line: #d6e3d2;
  --green: #15803d;
  --green-deep: #14532d;
  --green-soft: #e3f1dc;
  --yellow: #f59e0b;
  --blue: #2563eb;
  --ring: #ffffff;
  --shadow: 0 18px 40px -18px rgba(20, 60, 30, 0.45);

  /* Typo : Fredoka (rondeurs des cercles) pour les titres, Nunito Sans pour le texte */
  --display: "Fredoka", "Trebuchet MS", system-ui, sans-serif;
  --body: "Nunito Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius: 18px;
  --max: 72rem;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f1a12; --surface: #16241a; --fg: #e5efe3; --muted: #a3b8a6; --line: #284030;
    --green: #4ade80; --green-deep: #14532d; --green-soft: #1d3324; --yellow: #fbbf24; --blue: #60a5fa;
    --ring: #e9f5e6; --shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.7);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0f1a12; --surface: #16241a; --fg: #e5efe3; --muted: #a3b8a6; --line: #284030;
  --green: #4ade80; --green-deep: #14532d; --green-soft: #1d3324; --yellow: #fbbf24; --blue: #60a5fa;
  --ring: #e9f5e6; --shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.7);
  color-scheme: dark;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 400 1.0625rem/1.65 var(--body);
}
a { color: var(--green); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }
img { max-width: 100%; }

.wrap {
  max-width: var(--max);
  margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}

h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.15; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(2rem, 4.5vw, 3.1rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.2rem; }
p { margin: 0; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 40rem; }
.eyebrow {
  font-family: var(--display); font-weight: 500; font-size: .85rem;
  letter-spacing: .12em; text-transform: uppercase; color: var(--green);
}

/* ---------- En-tête ---------- */
body::before {
  content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10;
  background: var(--surface);
}
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 9;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 1rem; padding-block: .7rem; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: .55rem; text-decoration: none; color: var(--fg); }
.brand img { width: 34px; height: 34px; }
.brand b { font-family: var(--display); font-weight: 700; font-size: 1.4rem; letter-spacing: .04em; }
.site-nav { display: flex; gap: .25rem; margin-left: auto; flex-wrap: wrap; }
.site-nav a {
  text-decoration: none; color: var(--muted); font-weight: 600; font-size: .95rem;
  padding: .4rem .75rem; border-radius: 999px;
}
.site-nav a:hover { background: var(--green-soft); color: var(--fg); }
.site-nav a[aria-current="page"] { background: var(--green); color: var(--surface); }
@media (max-width: 640px) {
  .site-nav { width: 100%; margin-left: 0; display: grid; grid-template-columns: 1fr 1fr; gap: .25rem; }
  .site-nav a { text-align: center; font-size: .9rem; white-space: nowrap; }
}

/* ---------- Hero (comme sur les sites de ville) ---------- */
.hero { padding-block: 3rem 4.5rem; }
.hero-board {
  position: relative;
  min-height: 400px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: #dfeedd url("assets/collines.webp") center / cover no-repeat;
  display: grid;
  grid-template-columns: auto 1fr;
}
.hero-board.compact { min-height: 260px; }
.hero-band {
  border-radius: var(--radius) 0 0 var(--radius);
  background: linear-gradient(160deg, rgba(22, 163, 74, .93), rgba(4, 120, 87, .93) 55%, rgba(22, 101, 52, .95));
  display: flex; align-items: center; justify-content: center;
  padding-inline: 1.4rem;
}
.hero-band span {
  writing-mode: vertical-rl; transform: rotate(180deg);
  font-family: var(--display); font-weight: 700; color: #fff;
  font-size: clamp(2rem, 4vw, 3.2rem); letter-spacing: .14em; white-space: nowrap;
}
.hero-board.compact .hero-band span { font-size: clamp(1.3rem, 3vw, 2rem); }
.circles {
  display: flex; align-items: center; justify-content: space-evenly; gap: 1rem;
  padding: 2rem 1.5rem;
}
.circle {
  --size: clamp(7rem, 13vw, 10.5rem);
  width: var(--size); height: var(--size); flex: none;
  border-radius: 50%;
  border: 4px solid var(--ring);
  box-shadow: 0 16px 30px -10px rgba(20, 70, 30, .55);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .15rem;
  text-decoration: none; color: #fff; text-align: center;
  font-family: var(--display); font-weight: 700; letter-spacing: .06em;
  font-size: clamp(.85rem, 1.5vw, 1.15rem);
  transform: translateY(var(--dy, 0));
  transition: transform .18s ease;
  animation: pop .6s ease-out both;
  animation-delay: var(--delay, 0s);
  text-shadow: 0 1px 2px rgba(0, 0, 0, .25);
}
.circle small { font-family: var(--body); font-weight: 700; font-size: .68em; letter-spacing: .02em; opacity: .95; }
.circle:hover { transform: translateY(var(--dy, 0)) scale(1.08); }
.c-habitants { background: linear-gradient(135deg, #a3e635, #22c55e); --dy: -70px; --delay: .15s; }
.c-orgas { background: linear-gradient(135deg, #6ee7b7, #4ade80 50%, #2dd4bf); --dy: 40px; --delay: .3s; }
.c-commerces { background: linear-gradient(135deg, #fde047, #facc15 50%, #f59e0b); --dy: -20px; --delay: .45s; color: #3b2a04; text-shadow: none; }
.c-communes { background: linear-gradient(135deg, #4ade80, #059669); --dy: 70px; --delay: .6s; }
.hero-board.compact .circles { justify-content: flex-start; padding-left: clamp(1.5rem, 6vw, 5rem); }
.hero-board.compact .circle { --dy: 0px; }
@keyframes pop {
  from { transform: translateY(var(--dy, 0)) scale(.6); opacity: .2; }
  to { transform: translateY(var(--dy, 0)) scale(1); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .circle { animation: none; transition: none; }
}
.hero-text { display: grid; gap: .8rem; margin-top: 3.2rem; max-width: 46rem; }
.hero-board.compact + .hero-text { margin-top: 2.2rem; }

/* Téléphone : bandeau étroit et cercles en grille, toujours décalés */
@media (max-width: 720px) {
  .hero { padding-block: 1.5rem 3rem; }
  .hero-board { min-height: 360px; }
  .hero-band { padding-inline: .6rem; }
  .circles {
    display: grid; grid-template-columns: 1fr 1fr; justify-items: center; align-content: center;
    gap: 1.6rem .5rem; padding: 2rem .8rem;
  }
  .circle { --size: clamp(6.2rem, 30vw, 8rem); font-size: .8rem; }
  .c-habitants { --dy: -14px; } .c-orgas { --dy: 14px; } .c-commerces { --dy: -6px; } .c-communes { --dy: 18px; }
  .hero-board.compact { min-height: 200px; }
  .hero-board.compact .circles { display: flex; justify-content: center; padding-left: .8rem; }
}

/* ---------- Sections ---------- */
.section { padding-block: 3.5rem; }
.section.alt { background: var(--surface); border-block: 1px solid var(--line); }
.section-head { display: grid; gap: .6rem; margin-bottom: 2rem; max-width: 46rem; }

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 1.25rem; }
.feature { display: grid; gap: .45rem; align-content: start; min-width: 0; }
.feature .dot {
  width: 2.6rem; height: 2.6rem; border-radius: 50%;
  background: var(--green-soft); color: var(--green);
  display: grid; place-items: center; margin-bottom: .3rem;
}
.feature .dot svg { width: 1.3rem; height: 1.3rem; }
.feature p { color: var(--muted); }

/* Étapes réelles (ordre utile au lecteur) */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; counter-reset: etape; max-width: 46rem; }
.steps li {
  counter-increment: etape; display: grid; grid-template-columns: 2.6rem 1fr; gap: 1rem; align-items: start;
  padding: 1rem 1.1rem; background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
}
.steps li::before {
  content: counter(etape);
  width: 2.6rem; height: 2.6rem; border-radius: 50%;
  background: var(--green); color: var(--surface);
  font-family: var(--display); font-weight: 700; font-size: 1.2rem;
  display: grid; place-items: center;
}
.steps li > div { min-width: 0; display: grid; gap: .2rem; }
.steps p { color: var(--muted); }

.note {
  border-left: 4px solid var(--green); background: var(--green-soft);
  padding: 1rem 1.2rem; border-radius: 0 12px 12px 0; max-width: 46rem;
}

/* Profils (accueil) */
.profiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 1rem; }
.profile {
  display: grid; grid-template-columns: auto 1fr; gap: 1rem; align-items: center;
  padding: 1.1rem; border-radius: 16px; text-decoration: none; color: var(--fg);
  background: var(--surface); border: 1px solid var(--line);
  transition: border-color .15s, transform .15s;
}
.profile:hover { border-color: var(--green); transform: translateY(-2px); }
.profile .mini { width: 3.2rem; height: 3.2rem; border-radius: 50%; border: 3px solid var(--ring); box-shadow: 0 6px 14px -6px rgba(20,70,30,.5); }
.profile div { min-width: 0; }
.profile strong { font-family: var(--display); font-weight: 600; font-size: 1.15rem; display: block; }
.profile span { color: var(--muted); font-size: .95rem; }

/* Villes */
.cities { display: grid; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); gap: 2rem; }
.cities h3 { margin-bottom: .8rem; }
.city-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.city-list a {
  display: inline-block; text-decoration: none; color: var(--fg); font-weight: 600;
  padding: .45rem .9rem; border-radius: 999px; background: var(--surface); border: 1px solid var(--line);
}
.city-list a:hover { border-color: var(--green); color: var(--green); }
.install { color: var(--muted); font-size: .95rem; margin-top: 1.5rem; max-width: 46rem; }

/* Contact */
.contact { display: grid; gap: 1rem; justify-items: start; }
.mail {
  display: flex; flex-wrap: wrap; align-items: center; gap: .6rem;
  font-family: var(--display); font-size: 1.3rem; font-weight: 600;
}
.mail code { font-family: inherit; user-select: all; }
.btn {
  font: 700 .95rem var(--body); cursor: pointer;
  padding: .55rem 1.1rem; border-radius: 999px; border: 0;
  background: var(--green); color: var(--surface); text-decoration: none; display: inline-block;
}
.btn.ghost { background: transparent; color: var(--green); border: 2px solid var(--green); }

.site-footer { padding-block: 2rem; color: var(--muted); font-size: .9rem; border-top: 1px solid var(--line); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between; }
