/* Ravella, site vitrine. DA « Minuit sérieux » : couleurs reprises de src/theme/colors.ts.
   Polices hébergées ici (assets/fonts, licence OFL) : rien n'est chargé chez un tiers. */

@font-face {
  font-family: 'Inter';
  src: url('fonts/Inter_400Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('fonts/Inter_600SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter Tight';
  src: url('fonts/InterTight_700Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #0b0b10;
  --card: #15151c;
  --card-raised: #1d1d26;
  --violet: #6e4ff0;
  --violet-light: #b3a1ff;
  --signal: #c4b5ff;
  --amber: #ffb547;
  --text: #f5f5f7;
  --muted: #9d9ca8;
  --border: #62626f;
  --line: #26262f;
  --display: 'Inter Tight', 'Inter', system-ui, -apple-system, sans-serif;
  --body: 'Inter', system-ui, -apple-system, sans-serif;
  color-scheme: dark;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1rem/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--violet-light);
  text-underline-offset: 3px;
}
a:hover {
  color: var(--signal);
}
:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 8px;
  background: var(--text);
  color: var(--bg);
  padding: 8px 12px;
  border-radius: 8px;
  z-index: 10;
}
.skip:focus {
  left: 16px;
}

.wrap {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 0 16px;
}

/* En-tête */
.top {
  border-bottom: 1px solid var(--line);
}
.top .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 64px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font: 700 1.25rem/1 var(--display);
  letter-spacing: -0.01em;
}
.brand:hover {
  color: var(--text);
}
.logo {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: var(--violet);
  color: var(--text);
  display: grid;
  place-items: center;
  font: 700 1.25rem/1 var(--display);
  flex: none;
}
.top nav {
  display: flex;
  gap: 16px;
}
.top nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9375rem;
  padding: 10px 4px;
}
.top nav a:hover,
.top nav a[aria-current='page'] {
  color: var(--text);
}

/* Titres et texte */
h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.2;
  margin: 0;
}
h1 {
  font-size: clamp(2rem, 8vw, 3rem);
}
.page h1 {
  font-size: clamp(1.75rem, 6vw, 2.25rem);
}
h2 {
  font-size: 1.25rem;
  margin-top: 40px;
  margin-bottom: 12px;
}
p,
ul,
ol {
  margin: 0 0 14px;
}
ul,
ol {
  padding-left: 1.25em;
}
li {
  margin-bottom: 8px;
}
li::marker {
  color: var(--muted);
}
.muted {
  color: var(--muted);
}

/* Accueil */
.hero {
  padding: 56px 0 32px;
}
.hero .logo {
  width: 72px;
  height: 72px;
  border-radius: 19px;
  font-size: 2.75rem;
  margin-bottom: 28px;
}
.lead {
  font-size: 1.125rem;
  color: var(--muted);
  margin-top: 16px;
  max-width: 34em;
}
.store {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 28px;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--muted);
  font: 600 1rem/1 var(--body);
  cursor: not-allowed;
}
.store svg {
  flex: none;
}
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}
.tags li {
  margin: 0;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 600;
}
.features {
  display: grid;
  gap: 12px;
  margin: 24px 0 8px;
  padding: 0;
  list-style: none;
}
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px;
  margin: 0;
}
.card h2,
.card h3 {
  margin: 14px 0 6px;
  font-size: 1.125rem;
}
.card p {
  margin: 0;
  color: var(--muted);
}
.icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--card-raised);
  color: var(--signal);
  display: grid;
  place-items: center;
}
.contact {
  margin: 32px 0 56px;
}
.contact h2 {
  margin-top: 0;
}

/* Pages de texte */
.page {
  padding-top: 40px;
  padding-bottom: 56px;
}
.page .intro {
  color: var(--muted);
  margin-top: 12px;
}
.toc {
  margin: 28px 0 8px;
  padding: 16px 20px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.toc p {
  margin: 0 0 8px;
  font-weight: 600;
}
.toc ol {
  margin: 0;
}
.toc li {
  margin-bottom: 4px;
}

/* Trous à remplir avant la mise en ligne : bien visibles exprès. */
mark.trou {
  background: rgba(255, 181, 71, 0.12);
  color: var(--amber);
  border: 1px dashed var(--amber);
  border-radius: 6px;
  padding: 0 4px;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

/* Aide */
.faq {
  margin-top: 28px;
}
.faq details {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  margin-bottom: 10px;
}
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 48px 16px 18px;
  font-weight: 600;
  position: relative;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: '';
  position: absolute;
  right: 20px;
  top: 50%;
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: translateY(-70%) rotate(45deg);
}
.faq details[open] summary::after {
  transform: translateY(-30%) rotate(-135deg);
}
.faq .answer {
  padding: 0 18px 6px;
}
.callout {
  margin-top: 32px;
}
.callout h2 {
  margin-top: 0;
}

/* Pied de page */
.foot {
  border-top: 1px solid var(--line);
  padding: 28px 0 40px;
  font-size: 0.9375rem;
}
.foot ul {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
}
.foot li {
  margin: 0;
}
.foot a {
  color: var(--muted);
  display: inline-block;
  padding: 6px 0;
}
.foot a:hover {
  color: var(--text);
}
.foot p {
  margin: 0;
  color: var(--muted);
}

@media (min-width: 640px) {
  .hero {
    padding-top: 88px;
  }
  .features {
    grid-template-columns: repeat(3, 1fr);
  }
}

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

.page h1 + p {
  margin-top: 12px;
}

/* Accueil : sections, captures, encart lieux */
.section-title {
  margin-top: 48px;
  margin-bottom: 4px;
  font-size: 1.5rem;
}
.shots-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 20px;
}
.shots figure {
  margin: 0;
}
.shots img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--card);
}
.shots figcaption {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.875rem;
  text-align: center;
}
.promise {
  margin: 32px 0 0;
  color: var(--muted);
}
.teaser {
  margin-top: 32px;
}
.teaser h2 {
  margin-top: 0;
}
.contact {
  margin-top: 12px;
}

/* Bouton principal (lien) */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 24px;
  margin: 8px 0 8px;
  border-radius: 12px;
  background: var(--violet);
  color: var(--text);
  font: 600 1rem/1 var(--body);
  text-decoration: none;
}
.btn:hover {
  background: #7d61f2;
  color: var(--text);
}
.page .features {
  margin-top: 8px;
}
.small {
  font-size: 0.875rem;
  margin-top: 8px;
}

@media (min-width: 640px) {
  .shots-grid {
    max-width: 560px;
  }
}

/* En-tête commun : liens, bouton « Bientôt », version large de l'accueil */
.wrap.wide {
  max-width: 1120px;
}
.top {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(11, 11, 16, 0.82);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  transition: border-color 0.3s;
}
.home .top {
  border-bottom-color: transparent;
}
.home .top.scrolled {
  border-bottom-color: var(--line);
}
.top nav {
  align-items: center;
}
.top .nav-link {
  display: none;
}
.top .cta {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 10px;
  background: var(--violet);
  color: var(--text);
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  white-space: nowrap;
}
.top .cta:hover {
  background: #7d61f2;
  color: var(--text);
}
.cta-long {
  display: none;
}
@media (min-width: 420px) {
  .cta-long {
    display: inline;
    margin-left: 0.3em;
  }
}
@media (min-width: 820px) {
  .top .nav-link {
    display: inline;
  }
  .top nav {
    gap: 24px;
  }
}
