/* ── Reset & base ─────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --orange:  #f16121;
  --orange-d:#c94d14;
  --text:    #1a1a2e;
  --muted:   #6b7280;
  --bg:      #f8f9fb;
  --white:   #ffffff;
  --border:  #e2e4e8;
  --radius:  12px;
}

body {
  font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
}

a { color: var(--orange); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Header ───────────────────────────────────────────────────────────────── */
.site-header {
  background: var(--text);
  color: #fff;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.site-logo { font-weight: 700; font-size: 1.1rem; color: #fff; }
.site-logo span { color: var(--orange); }

/* ── Contenu ──────────────────────────────────────────────────────────────── */
.page-wrapper {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

/* ── Visite card ──────────────────────────────────────────────────────────── */
.tour-header { margin-bottom: 1.5rem; }
.tour-title  { font-size: 1.75rem; font-weight: 700; margin-bottom: .25rem; }
.tour-city   { font-size: 1rem; color: var(--muted); }
.tour-ref    { font-size: .85rem; color: var(--muted); margin-top: .15rem; }

.tour-description {
  font-size: 1rem;
  color: #374151;
  margin: 1rem 0 1.5rem;
  line-height: 1.7;
}

/* ── Iframe responsive ────────────────────────────────────────────────────── */
.matterport-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: #111;
  box-shadow: 0 4px 24px rgba(0,0,0,.15);
}
.matterport-wrapper iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: 0;
}

/* ── Actions ──────────────────────────────────────────────────────────────── */
.tour-actions {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .65rem 1.3rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: .95rem;
  font-weight: 600;
  text-decoration: none;
  transition: opacity .15s;
}
.btn:hover { opacity: .85; text-decoration: none; }
.btn-primary { background: var(--orange); color: #fff; }
.btn-outline { background: transparent; border: 2px solid var(--orange); color: var(--orange); }

/* ── Formulaire d'accès ───────────────────────────────────────────────────── */
.access-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  max-width: 580px;
  margin: 2rem auto;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
}
.access-title { font-size: 1.3rem; font-weight: 700; margin-bottom: .5rem; }
.access-subtitle { color: var(--muted); font-size: .9rem; margin-bottom: 1.5rem; }

.form-group   { margin-bottom: 1rem; }
.form-label   { display: block; font-size: .875rem; font-weight: 600; margin-bottom: .3rem; }
.form-control {
  width: 100%;
  padding: .6rem .8rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: .95rem;
  font-family: inherit;
}
.form-control:focus { outline: none; border-color: var(--orange); }
.form-hint { font-size: .78rem; color: var(--muted); margin-top: .25rem; }

.form-check { display: flex; align-items: flex-start; gap: .5rem; margin: .5rem 0; font-size: .875rem; }
.form-check input { margin-top: .15rem; accent-color: var(--orange); }

.rgpd-box {
  background: #f8f9fb;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: .9rem 1rem;
  font-size: .82rem;
  color: #555;
  margin-bottom: 1rem;
  line-height: 1.6;
}

/* ── Messages d'état ──────────────────────────────────────────────────────── */
.status-message {
  text-align: center;
  padding: 3rem 2rem;
  max-width: 500px;
  margin: 3rem auto;
}
.status-icon   { font-size: 3rem; margin-bottom: 1rem; }
.status-title  { font-size: 1.3rem; font-weight: 700; margin-bottom: .5rem; }
.status-text   { color: var(--muted); }

/* ── Footer ───────────────────────────────────────────────────────────────── */
.site-footer {
  text-align: center;
  padding: 2rem 1.5rem;
  font-size: .8rem;
  color: var(--muted);
  border-top: 1px solid var(--border);
  margin-top: 3rem;
}
.site-footer a { color: var(--muted); }

/* ── Upload zone ──────────────────────────────────────────────────────────── */
.upload-label {
  display: block;
  border: 2px dashed var(--border);
  border-radius: 8px;
  padding: 1rem;
  text-align: center;
  color: var(--muted);
  cursor: pointer;
  font-size: .875rem;
  transition: border-color .15s;
}
.upload-label:hover { border-color: var(--orange); }
.upload-label input[type=file] { display: none; }

/* ── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 600px) {
  .tour-title  { font-size: 1.3rem; }
  .page-wrapper { padding: 1rem; }
  .access-card  { padding: 1.25rem; }
}
