/* ============================================================
   LE CULBUTO — feuille de style commune
   Couleurs reprises du logo. Pour changer un réglage global,
   modifiez les variables ci-dessous (--green, --ink, etc.).
   ============================================================ */

:root {
  /* Couleurs du logo */
  --green:        #4E9D2B;  /* accent principal */
  --green-deep:   #176C35;  /* vert foncé : liens, boutons, titres */
  --green-bright: #72B62B;  /* vert vif du logo : survols, surlignage */
  --green-light:  #B7D273;  /* vert clair : étiquettes */
  --green-wash:   #EFF5E3;  /* fond vert très pâle */

  --ink:        #1C1C1A;    /* texte principal */
  --ink-soft:   #5C5F57;    /* texte secondaire */
  --bg:         #FFFFFF;    /* fond */
  --surface:    #F5F7F1;    /* panneaux clairs */
  --line:       #E2E4DB;    /* filets / bordures */

  /* Typographie */
  --display: "Oswald", "Arial Narrow", system-ui, sans-serif;
  --body:    "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --mono:    "Space Mono", ui-monospace, "Courier New", monospace;

  /* Mesures */
  --maxw: 1120px;
  --pad: clamp(1.25rem, 4vw, 3rem);
  --radius: 4px;
}

/* ---------- base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--green-deep); text-underline-offset: 3px; }
a:hover { color: var(--green-bright); }

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  margin: 0 0 .4em;
}

.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--pad); }

/* étiquette technique « pochoir » — signature visuelle du site */
.stencil {
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .72rem;
  font-weight: 700;
  color: var(--green-deep);
}

/* ---------- en-tête ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: 76px;
}
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; }
.brand img { height: 52px; width: auto; }
.brand .sr { position: absolute; left: -9999px; }

nav.main { display: flex; align-items: center; gap: clamp(.6rem, 2vw, 1.6rem); flex-wrap: wrap; }
nav.main a {
  font-family: var(--mono);
  font-size: .8rem; letter-spacing: .04em; text-transform: uppercase;
  color: var(--ink); text-decoration: none; padding: .35rem 0;
  border-bottom: 2px solid transparent;
}
nav.main a:hover { color: var(--green-deep); border-bottom-color: var(--green-bright); }
nav.main a.cta {
  color: #fff; background: var(--green-deep); border: none;
  padding: .5rem .9rem; border-radius: var(--radius);
}
nav.main a.cta:hover { background: var(--green-bright); color: #fff; }

/* menu burger (mobile) — sans JS, via la case à cocher */
.nav-toggle, .burger { display: none; }
@media (max-width: 820px) {
  .burger {
    display: inline-flex; cursor: pointer; padding: .4rem;
    font-family: var(--mono); font-size: .8rem; text-transform: uppercase;
    letter-spacing: .08em; border: 1px solid var(--line); border-radius: var(--radius);
  }
  nav.main {
    display: none; position: absolute; top: 76px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line); padding: .5rem var(--pad) 1rem;
  }
  nav.main a { padding: .8rem 0; border-bottom: 1px solid var(--line); }
  nav.main a.cta { text-align: center; margin-top: .6rem; border: none; }
  .nav-toggle:checked ~ nav.main { display: flex; }
}

/* ---------- hero ---------- */
.hero { padding: clamp(3rem, 9vw, 6rem) 0 clamp(2.5rem, 6vw, 4rem); }
.hero .eyebrow { margin-bottom: 1.25rem; display: flex; gap: .9rem; align-items: center; }
.hero .eyebrow::after { content: ""; height: 1px; flex: 1; background: var(--line); }
.hero h1 {
  font-size: clamp(2.8rem, 9vw, 6.2rem);
  max-width: 14ch;
}
.hero h1 em { font-style: normal; color: var(--green-deep); }
.hero .lead { font-size: clamp(1.05rem, 2.2vw, 1.3rem); max-width: 52ch; color: var(--ink-soft); margin-top: 1rem; }
.hero-meta { display: flex; flex-wrap: wrap; gap: .6rem 1.5rem; margin-top: 1.8rem; }
.hero-meta span { display: inline-flex; align-items: center; gap: .5rem; }
.hero-meta .stencil { color: var(--ink-soft); }
.hero-meta b { font-family: var(--display); font-weight: 600; font-size: 1.1rem; }

/* ---------- sections ---------- */
section { padding: clamp(3rem, 7vw, 5rem) 0; }
.section-head { max-width: 60ch; margin-bottom: 2.5rem; }
.section-head h2 { font-size: clamp(1.9rem, 5vw, 3rem); }
.section-head p { color: var(--ink-soft); margin: .4rem 0 0; }

.band { background: var(--surface); border-block: 1px solid var(--line); }
.band-green { background: var(--green-wash); border-block: 1px solid var(--line); }

/* le lieu : texte + repères */
.lieu { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(1.5rem, 5vw, 4rem); align-items: start; }
.lieu p { margin-top: 0; }
.repere-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.repere-list li { display: flex; justify-content: space-between; gap: 1rem; padding: .9rem 0; border-bottom: 1px solid var(--line); }
.repere-list li span:first-child { font-family: var(--mono); font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-soft); }
.repere-list li span:last-child { font-family: var(--display); text-transform: uppercase; font-weight: 600; }
@media (max-width: 760px) { .lieu { grid-template-columns: 1fr; } }

/* ---------- les espaces (channel strip / fiche technique) ---------- */
.spaces { display: grid; gap: clamp(1.25rem, 3vw, 2rem); }
.space {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(1.25rem, 4vw, 3rem);
  align-items: center; padding: clamp(1.25rem, 3vw, 2rem) 0; border-top: 1px solid var(--line);
}
.space:nth-child(even) .space-media { order: 2; }
.space-media { position: relative; }
.space-media img, .space-media svg { width: 100%; height: auto; display: block; border-radius: var(--radius); border: 1px solid var(--line); }
.space-no { font-family: var(--mono); font-weight: 700; color: var(--green-bright); font-size: .8rem; letter-spacing: .2em; }
.space h3 { font-size: clamp(1.6rem, 4vw, 2.4rem); margin-top: .3rem; }
.space p { color: var(--ink-soft); margin: .2rem 0 1rem; }
.specs { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.1rem; }
.specs .tag {
  font-family: var(--mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .06em;
  background: var(--green-wash); color: var(--green-deep);
  border: 1px solid var(--green-light); border-radius: 2px; padding: .3rem .55rem;
}

/* ---------- carrousel (studio) ---------- */
.carousel { position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: #111; aspect-ratio: 3 / 2; }
.carousel:focus-visible { outline: 2px solid var(--green-bright); outline-offset: 2px; }
.carousel-track { display: flex; height: 100%; transition: transform .45s ease; }
.carousel-track img { min-width: 100%; width: 100%; height: 100%; object-fit: cover; display: block; border: 0; border-radius: 0; }
.carousel-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 42px; height: 42px; border-radius: 50%; border: none; cursor: pointer;
  background: rgba(0,0,0,.5); color: #fff; font-size: 1.5rem; line-height: 1;
  display: flex; align-items: center; justify-content: center; transition: background .15s;
}
.carousel-btn:hover { background: var(--green-deep); }
.carousel-btn.prev { left: .6rem; } .carousel-btn.next { right: .6rem; }
.carousel-count { position: absolute; top: .6rem; right: .7rem; font-family: var(--mono); font-size: .7rem; letter-spacing: .05em; color: #fff; background: rgba(0,0,0,.5); padding: .15rem .5rem; border-radius: 2px; }
.carousel-dots { position: absolute; bottom: .7rem; left: 0; right: 0; display: flex; gap: .4rem; justify-content: center; }
.carousel-dots button { width: 9px; height: 9px; padding: 0; border-radius: 50%; border: none; cursor: pointer; background: rgba(255,255,255,.5); }
.carousel-dots button.active { background: #fff; }
@media (max-width: 760px) {
  .space { grid-template-columns: 1fr; }
  .space:nth-child(even) .space-media { order: 0; }
}

/* boutons */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--mono); text-transform: uppercase; letter-spacing: .06em; font-size: .82rem; font-weight: 700;
  background: var(--green-deep); color: #fff; text-decoration: none;
  padding: .7rem 1.2rem; border-radius: var(--radius); border: none; cursor: pointer;
  transition: background .15s ease;
}
.btn:hover { background: var(--green-bright); color: #fff; }
.btn-ghost { background: transparent; color: var(--green-deep); border: 1.5px solid var(--green-deep); }
.btn-ghost:hover { background: var(--green-deep); color: #fff; }

/* ---------- contact ---------- */
.contact { display: grid; grid-template-columns: 1fr; gap: clamp(1.5rem, 5vw, 3.5rem); max-width: 640px; }
@media (max-width: 820px) { .contact { grid-template-columns: 1fr; } }
.contact .coords p { margin: .2rem 0 1.2rem; }
.contact .coords a { font-weight: 600; }
form .field { margin-bottom: 1rem; }
form label { display: block; font-family: var(--mono); font-size: .74rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-soft); margin-bottom: .35rem; }
form input, form textarea {
  width: 100%; font-family: var(--body); font-size: 1rem; color: var(--ink);
  padding: .7rem .8rem; border: 1px solid var(--line); border-radius: var(--radius); background: #fff;
}
form input:focus, form textarea:focus { outline: 2px solid var(--green-bright); outline-offset: 1px; border-color: var(--green-bright); }
form textarea { min-height: 140px; resize: vertical; }
.hp { position: absolute; left: -9999px; }  /* piège anti-spam */
.map-frame { width: 100%; aspect-ratio: 16/10; border: 1px solid var(--line); border-radius: var(--radius); }

.notice { padding: .9rem 1rem; border-radius: var(--radius); margin-bottom: 1rem; font-size: .95rem; border: 1px solid; }
.notice-ok  { background: var(--green-wash); border-color: var(--green-light); color: var(--green-deep); }
.notice-err { background: #fcecec; border-color: #f0c2c2; color: #9a2222; }

/* ---------- pied de page ---------- */
.site-footer { background: var(--ink); color: #cfd2c8; padding: clamp(2.5rem, 6vw, 4rem) 0; }
.site-footer a { color: #fff; }
.site-footer .cols { display: flex; flex-wrap: wrap; gap: 2rem 4rem; justify-content: space-between; }
.site-footer .stencil { color: var(--green-bright); }
.site-footer nav { display: flex; flex-direction: column; gap: .5rem; }
.site-footer nav a { text-decoration: none; opacity: .85; }
.site-footer nav a:hover { opacity: 1; }
.site-footer small { display: block; margin-top: 2rem; opacity: .6; }

/* ---------- pages espace locataires / admin ---------- */
.panel-page { min-height: 100vh; display: flex; flex-direction: column; }
.panel-page main { flex: 1; padding-block: clamp(2rem, 6vw, 4rem); }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(1.25rem, 3vw, 2rem); max-width: 420px; margin: 0 auto;
}
.card.wide { max-width: 820px; }
.login-head { text-align: center; margin-bottom: 1.5rem; }
.login-head img { height: 64px; margin: 0 auto .8rem; }
table.data { width: 100%; border-collapse: collapse; font-size: .95rem; }
table.data th, table.data td { text-align: left; padding: .6rem .7rem; border-bottom: 1px solid var(--line); }
table.data th { font-family: var(--mono); font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-soft); }
table.data td.num { font-family: var(--mono); text-align: right; }
.kpi-row { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 1.75rem; }
.kpi { flex: 1 1 160px; background: var(--green-wash); border: 1px solid var(--green-light); border-radius: var(--radius); padding: 1rem 1.1rem; }
.kpi .stencil { color: var(--green-deep); }
.kpi b { display: block; font-family: var(--display); font-size: 2rem; font-weight: 600; line-height: 1.1; margin-top: .2rem; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 1rem; border-bottom: 1px solid var(--line); }
.topbar img { height: 40px; }

/* accessibilité : focus visible partout */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, label:focus-visible {
  outline: 2px solid var(--green-bright); outline-offset: 2px;
}
/* ajustements très petits écrans (smartphones) */
@media (max-width: 520px) {
  body { font-size: 16px; }
  .brand img { height: 46px; }
  .btn { width: 100%; justify-content: center; }   /* boutons pleine largeur, faciles à toucher */
  .hero-meta { gap: .5rem 1.2rem; }
  table.data { font-size: .85rem; }
  table.data th, table.data td { padding: .5rem .45rem; }
  .kpi b { font-size: 1.6rem; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { animation: none !important; transition: none !important; } }
