/*
 * Pages publiques du photobooth (galerie privée, confidentialité) — charte Burger'n'Co :
 * fond #111, accent rouge, police Oswald servie par ce serveur (licence : fonts/OFL.txt).
 * Aucune ressource tierce et aucun style en ligne (Content-Security-Policy : style-src 'self').
 */

@font-face {
  font-family: "Oswald";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/oswald-latin-400.woff2") format("woff2");
}

@font-face {
  font-family: "Shadows Into Light";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/shadows-into-light-latin-400.woff2") format("woff2");
}

@font-face {
  font-family: "Oswald";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/oswald-latin-600.woff2") format("woff2");
}

:root {
  --bg: #111111;
  --surface: #1c1c1c;
  --text: #f5f5f5;
  --muted: #b8b8b8;
  --accent: #ce2029;
  --accent-strong: #e0343d;
  --border: rgba(255, 255, 255, 0.24);
  --radius: 8px;
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

/* L'attribut hidden l'emporte sur le display des boutons (bouton « Partager »). */
[hidden] {
  display: none !important;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.55;
}

a {
  color: var(--text);
  text-decoration-color: var(--accent);
  text-underline-offset: 3px;
}

.site-header {
  display: flex;
  justify-content: center;
  padding: 20px 16px 14px;
  border-bottom: 3px solid var(--accent);
}

.logo {
  display: block;
  width: 72px;
  height: 72px;
  border-radius: 12px;
}

.page {
  max-width: 640px;
  margin: 0 auto;
  padding: 24px 16px 40px;
}

.title,
.subtitle,
.legal h2 {
  font-family: "Oswald", "Arial Narrow", sans-serif;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.15;
  text-transform: uppercase;
}

.title {
  margin: 0 0 12px;
  font-size: 2rem;
}

.subtitle {
  margin: 0;
  font-size: 1.3rem;
}

.lead {
  margin: 0 0 24px;
  color: var(--muted);
}

.ai-notice {
  display: inline-block;
  margin: 0 0 24px;
  padding: 4px 12px;
  border: 1px solid var(--accent);
  border-radius: 999px;
  font-family: "Oswald", "Arial Narrow", sans-serif;
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.photo {
  margin: 0 0 28px;
}

.photo img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  background: var(--surface);
}

.photo-actions {
  display: flex;
  gap: 12px;
  margin-top: 12px;
}

.photo-actions .btn {
  flex: 1 1 0;
}

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  padding: 10px 18px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  background: transparent;
  color: var(--text);
  font-family: "Oswald", "Arial Narrow", sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
}

.btn:focus-visible {
  outline: 3px solid #ffffff;
  outline-offset: 2px;
}

.btn-primary {
  border-color: var(--accent);
  background: var(--accent);
  color: #ffffff;
}

.btn-primary:hover,
.btn-primary:focus-visible {
  border-color: var(--accent-strong);
  background: var(--accent-strong);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  border-color: var(--text);
}

.btn-danger {
  border-color: var(--accent);
}

.btn-danger:hover,
.btn-danger:focus-visible {
  background: var(--accent);
  color: #ffffff;
}

.expiry {
  margin: 0 0 28px;
  padding: 12px 14px;
  border-left: 4px solid var(--accent);
  background: var(--surface);
}

.stack {
  display: grid;
  gap: 12px;
  margin: 0 0 32px;
}

.confirm {
  margin: 24px 0 12px;
}

.small {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer {
  max-width: 640px;
  margin: 0 auto;
  padding: 16px 16px 32px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
}

/* Page « Confidentialité du photobooth » */
.legal h2 {
  margin: 32px 0 8px;
  font-size: 1.3rem;
}

.legal ul {
  padding-left: 20px;
}

.legal li {
  margin-bottom: 10px;
}

.retention dt {
  margin-top: 14px;
  font-weight: 700;
}

.retention dd {
  margin: 2px 0 0;
  color: var(--muted);
}

.objection {
  margin-top: 32px;
  padding: 4px 0 4px 14px;
  border-left: 4px solid var(--accent);
}

/* ── Page d'accueil : enseigne néon du site bnco.fr, invitation, adresse et bouton GPS ── */
.home {
  text-align: center;
}

.neon-sign {
  margin: 1.5rem 0 0.5rem;
  font-family: "Shadows Into Light", cursive;
  font-size: clamp(2.25rem, 10vw, 3.5rem);
  line-height: 1.1;
  color: #fff;
  transform: rotate(-2deg);
  text-shadow: 0 0 5px #fff, 0 0 10px #fff, 0 0 20px #ce2029, 0 0 30px #ce2029, 0 0 40px #ce2029;
  animation: neon-flicker 3s infinite alternate;
}

@keyframes neon-flicker {
  0%, 19%, 21%, 23%, 25%, 54%, 56%, 100% { opacity: 1; }
  20%, 24%, 55% { opacity: 0.5; }
}

@media (prefers-reduced-motion: reduce) {
  .neon-sign { animation: none; }
}

.home-title {
  font-size: clamp(2rem, 8vw, 3rem);
  text-transform: uppercase;
}

.home-lead {
  font-size: 1.2rem;
}

.home-place {
  margin-top: 2rem;
  padding: 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.home-address {
  font-size: 1.15rem;
}

.home-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.btn-large {
  font-size: 1.3rem;
  padding: 0.9rem 2rem;
}
