/* ============================================================
   coloc27.hitop.fr — feuille de style commune (index.html + photos.html)
   Largeur de contenu responsive : plus de marges latérales réduites
   sur grand écran, layout inchangé sur mobile.
============================================================= */

:root {
  --content-width: 780px;
}

body {
  font-family: system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 2rem 1.25rem 4rem;
  line-height: 1.55;
  color: #222;
  background: #fafafa;
}

body.page-photos {
  --content-width: 960px;
}

@media (min-width: 900px) {
  :root { --content-width: 960px; }
  body.page-photos { --content-width: 1200px; }
  body { padding-left: 2rem; padding-right: 2rem; }
}

@media (min-width: 1400px) {
  :root { --content-width: 1100px; }
  body.page-photos { --content-width: 1320px; }
}

h1 { font-size: 1.7rem; margin-bottom: 0.5rem; }
h2 { font-size: 1.2rem; margin-top: 2.5rem; }

.btn {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: #2f6f4f;
  color: #fff;
  text-decoration: none;
  border-radius: 6px;
  font-size: 0.95rem;
}
.btn:hover { background: #24593f; }

footer {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e2e2e2;
  font-size: 0.85rem;
  color: #777;
}
footer img { height: 24px; vertical-align: middle; }

/* ---------- index.html (page-home) ---------- */

.intro p { margin: 0.75rem 0; }
.intro ol { padding-left: 1.25rem; }

.doc-list { margin-top: 1.5rem; }
.doc {
  background: #fff;
  border: 1px solid #e2e2e2;
  border-radius: 8px;
  padding: 1rem 1.25rem;
  margin-bottom: 1rem;
}
.doc h5 { margin: 0 0 0.35rem; font-size: 1.05rem; }
.doc p { margin: 0 0 0.75rem; color: #555; font-size: 0.95rem; }

.photos-link {
  display: inline-block;
  margin-top: 1rem;
  font-weight: 600;
}

.room-selector {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  background: #fff;
  border: 1px solid #e2e2e2;
  border-radius: 8px;
  padding: 0.85rem 1.1rem;
  margin: 1rem 0 1.25rem;
}
.room-selector-label { font-weight: 600; }
.room-selector label { display: inline-flex; align-items: center; gap: 0.3rem; cursor: pointer; }

.btn-zip {
  border: none;
  cursor: pointer;
  font: inherit;
  margin-bottom: 0.5rem;
}
.btn-zip:disabled { background: #9ca3af; cursor: wait; }
.zip-status { font-size: 0.9rem; color: #555; min-height: 1.2em; margin: 0.4rem 0 0; }

.download-columns {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: start;
}
@media (min-width: 640px) {
  .download-columns { grid-template-columns: 260px 1fr; }
}

.download-col-title {
  font-family: inherit;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #777;
  margin: 0 0 0.75rem;
}

.zip-card {
  background: #f4f8f6;
  border: 1px solid #cfe3d8;
  border-radius: 8px;
  padding: 1.1rem 1.25rem;
  position: sticky;
  top: 1rem;
}
.zip-card-desc { margin: 0 0 0.9rem; font-size: 0.9rem; color: #555; }

.doc-grid .doc:last-child { margin-bottom: 0; }
.doc.is-hidden { display: none; }

.faq { margin-top: 2.5rem; }
.faq-item {
  background: #fff;
  border: 1px solid #e2e2e2;
  border-radius: 8px;
  padding: 0.9rem 1.25rem;
  margin-bottom: 0.85rem;
}
.faq-item h5 { margin: 0 0 0.4rem; font-size: 1.02rem; }
.faq-item p { margin: 0; color: #444; font-size: 0.95rem; }

.hero { margin-bottom: 1.5rem; }
.hero-img {
  width: 100%;
  max-height: 340px;
  object-fit: cover;
  border-radius: 10px;
  display: block;
}
.hero-photos-link {
  display: inline-block;
  margin-top: 0.6rem;
  font-weight: 600;
  color: #2f6f4f;
  text-decoration: none;
}
.hero-photos-link:hover { text-decoration: underline; }

.dispo-banner {
  display: inline-block;
  font-weight: 600;
  padding: 0.6rem 1rem;
  border-radius: 8px;
  margin: 0.75rem 0 1rem;
}
.dispo-banner.is-available { background: #eaf6ee; color: #1f6b3a; border: 1px solid #bfe3cb; }
.dispo-banner.is-full { background: #f4f4f4; color: #555; border: 1px solid #e2e2e2; }

.dispo-updated {
  font-size: 0.85rem;
  color: #888;
  margin: -0.5rem 0 1rem;
}

.en-bref {
  background: #fff;
  border: 1px solid #e2e2e2;
  border-radius: 8px;
  padding: 1rem 1.25rem 1rem 2.25rem;
  margin: 0 0 1.5rem;
  font-size: 0.95rem;
}
.en-bref li { margin: 0.35rem 0; }

.btn-contact {
  font-size: 1rem;
  padding: 0.65rem 1.4rem;
  margin: 0.5rem 0 1.75rem;
}

.badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.1rem 0.5rem;
  border-radius: 999px;
  vertical-align: middle;
}
.badge.is-available { background: #eaf6ee; color: #1f6b3a; }
.badge.is-full { background: #f4f4f4; color: #888; }

.cta-bottom {
  text-align: center;
  margin: 2.5rem 0;
  padding: 1.5rem;
  background: #f4f8f6;
  border: 1px solid #cfe3d8;
  border-radius: 8px;
}
.cta-bottom p { margin: 0 0 0.75rem; font-weight: 600; }

/* ---------- photos.html (page-photos) ---------- */

.subtitle { color: #555; margin: 0 0 1.5rem; }

.back-link {
  display: inline-block;
  margin-bottom: 1.25rem;
  font-weight: 600;
  color: #2f6f4f;
  text-decoration: none;
}
.back-link:hover { text-decoration: underline; }

.gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
@media (min-width: 640px) {
  .gallery { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1024px) {
  .gallery { grid-template-columns: 1fr 1fr 1fr; }
}

.photo-card {
  background: #fff;
  border: 1px solid #e2e2e2;
  border-radius: 8px;
  overflow: hidden;
}
.photo-card img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  display: block;
  cursor: zoom-in;
}
.photo-card .caption {
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  font-weight: 600;
}

.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  align-items: center;
  justify-content: center;
  padding: 2rem;
  z-index: 50;
  cursor: zoom-out;
}
.lightbox.is-open { display: flex; }
.lightbox img {
  max-width: 100%;
  max-height: 100%;
  border-radius: 6px;
}
