/* Ghost Shapes Protocols — site vitrine.
   Couleurs et polices à un seul endroit : change-les ici. */
:root {
  --ink: #111;
  --muted: #555;
  --paper: #fff;
  --line: #e5e5e5;
  --accent: #3b82f6;
  --night: #020409;
  --night-ink: #cfe9f7;
  --night-title: #8ec5ff;
  --serif: "Instrument Serif", "Times New Roman", serif;
  /* Espace entre les grandes sections de la page The BAY. */
  --section-gap: clamp(110px, 15vw, 200px);
  --mono: "Courier Prime", "Courier New", ui-monospace, monospace;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 15px/1.5 var(--mono);
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; letter-spacing: -0.01em; line-height: 1.02; margin: 0; }

/* ---------- en-tête ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px clamp(16px, 3vw, 32px);
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.brand { font-family: var(--serif); font-size: 19px; text-decoration: none; white-space: nowrap; }
.nav { display: flex; gap: clamp(10px, 2vw, 22px); font-size: 14px; }
.nav a { text-decoration: none; }
.nav a:hover, .nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 4px; }
.menu-toggle { display: none; background: none; border: 0; font: inherit; font-size: 14px; color: inherit; cursor: pointer; padding: 6px 0; }

@media (max-width: 640px) {
  .menu-toggle { display: block; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0;
    background: inherit; padding: 4px 16px 14px; border-bottom: 1px solid var(--line); }
  .nav a { padding: 10px 0; font-size: 16px; }
  .site-header.open .nav { display: flex; background: var(--paper); }
  .dark .site-header.open .nav { background: var(--night); border-color: rgba(142, 197, 255, 0.2); }
}

/* ---------- pages claires ---------- */
main { display: block; }
.page { max-width: 1200px; margin: 0 auto; padding: clamp(24px, 5vw, 56px) clamp(16px, 3vw, 32px) 80px; }
.page-title { text-align: center; font-size: clamp(48px, 7vw, 76px); margin: 12px 0 36px; }
.page-title.underlined span { border-bottom: 1px solid currentColor; padding-bottom: 4px; }
.prose { max-width: 560px; margin: 0 auto; text-align: center; }
.prose p { margin: 0 0 1.1em; }
.prose em { font-style: italic; }
.link { color: var(--accent); }

.split { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(24px, 5vw, 64px); align-items: center; margin: var(--section-gap) 0; }
.split.reverse > :first-child { order: 2; }
.split h2 { font-size: clamp(30px, 3.4vw, 40px); margin-bottom: 28px; }
.split p { margin: 0 0 1em; max-width: 480px; }
.split .big { font-family: var(--serif); font-size: clamp(30px, 3.4vw, 40px); line-height: 1.1; margin: 0 0 36px; }
@media (max-width: 760px) { .split { grid-template-columns: 1fr; } .split.reverse > :first-child { order: 0; } }

.shot { border-radius: 4px; box-shadow: 0 1px 2px rgba(0,0,0,.06), 0 10px 30px rgba(0,0,0,.10); }
.section-title { text-align: center; font-size: clamp(30px, 3.4vw, 40px); margin: var(--section-gap) 0 40px; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 3vw, 40px); }
@media (max-width: 760px) { .grid-3 { grid-template-columns: 1fr; } }
.feature figcaption { margin-top: 12px; text-align: center; font-size: 14px; }
.feature figcaption.left { text-align: left; }
.feature figcaption p { margin: 0 0 .9em; }
figure { margin: 0; }
.feature img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: center top; border-radius: 3px; }

.portrait figcaption { text-align: center; margin-top: 10px; font-size: 14px; }
.portrait img { width: min(260px, 100%); margin: 0 auto; filter: grayscale(1); }

/* ---------- tarifs (vrai tableau, lisible par Google) ---------- */
.plans { background: #1f1f1f; color: #e8e8e8; border-radius: 6px; padding: clamp(20px, 4vw, 48px); max-width: 1000px; margin: 0 auto; font-family: system-ui, -apple-system, "Segoe UI", sans-serif; }
.plan-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
@media (max-width: 860px) { .plan-cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .plan-cards { grid-template-columns: 1fr; } }
.plan { border: 1px solid #333; padding: 18px; display: flex; flex-direction: column; }
.plan.featured { background: #2a3140; border-color: #3d4a63; }
.plan .eyebrow { font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: #8a8a8a; margin: 0; }
.plan.featured .eyebrow { color: #7fb0ff; }
.plan h3 { font-family: inherit; font-weight: 600; font-size: 22px; margin: 6px 0 2px; }
.plan .sub { font-size: 12px; color: #9a9a9a; margin: 0 0 18px; min-height: 2.6em; }
.plan .price { font-size: 26px; font-weight: 600; margin: 0; }
.plan .price small { font-size: 12px; font-weight: 400; color: #9a9a9a; }
.plan .note { font-size: 11px; color: #9a9a9a; margin: 8px 0 0; }
.plan .cta { margin-top: auto; padding-top: 18px; }
.plan .cta a { display: block; text-align: center; font-size: 12px; text-decoration: none; border: 1px solid #444; border-radius: 999px; padding: 8px 10px; }
.plan.featured .cta a { background: #3b82f6; border-color: #3b82f6; color: #fff; }
.compare { width: 100%; border-collapse: collapse; margin-top: 36px; font-size: 12px; }
.compare caption { font-size: 18px; font-weight: 600; padding-bottom: 18px; }
.compare th, .compare td { padding: 9px 6px; border-bottom: 1px solid #2e2e2e; text-align: center; }
.compare th:first-child, .compare td:first-child { text-align: left; }
.compare thead th { color: #9a9a9a; font-weight: 500; }
.compare .group th { color: #7fb0ff; font-size: 10px; letter-spacing: .18em; text-transform: uppercase; padding-top: 22px; }
.compare .yes { color: #34d399; }
.compare .no { color: #555; }
.table-scroll { overflow-x: auto; }

/* ---------- cadres (configurateur, messagerie) ---------- */
/* Le configurateur sort de la colonne de texte (1200 px) pour profiter des grands écrans :
   même largeur qu'avant sur un 13", puis 79 % de la fenêtre, jusqu'à 1800 px. */
.frame-box { position: relative; height: 800px; margin-top: 40px;
  width: min(max(1136px, 79vw), calc(100vw - 2 * clamp(16px, 3vw, 32px)), 1800px);
  margin-left: 50%; transform: translateX(-50%); }
.frame-box iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
.messages-box { max-width: 1000px; margin: 48px auto 0; }
.messages-box iframe { width: 100%; height: 80vh; min-height: 560px; border: 1px solid var(--line); border-radius: 12px; display: block; }
.messages-box p { text-align: center; font-size: 13px; margin-top: 10px; }

/* ---------- FAQ (fond noir) ---------- */
.dark { background: #000; color: var(--night-title); }
.dark .site-header { background: rgba(0, 0, 0, 0.85); }
.faq { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(24px, 5vw, 64px); max-width: 1100px; margin: 0 auto; padding: clamp(40px, 8vw, 100px) clamp(16px, 3vw, 32px) 120px; }
.faq h1 { font-size: clamp(44px, 5.5vw, 64px); }
.faq details { border-top: 1px solid rgba(142, 197, 255, 0.35); }
.faq details:last-child { border-bottom: 1px solid rgba(142, 197, 255, 0.35); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 16px; padding: 18px 0; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 0 18px; color: var(--night-ink); }
@media (max-width: 760px) { .faq { grid-template-columns: 1fr; } }

/* ---------- pied de page ---------- */
.site-footer { text-align: center; padding: 40px 16px 48px; font-family: var(--serif); font-size: 22px; }
.site-footer small { display: block; font-family: var(--mono); font-size: 12px; color: var(--muted); margin-top: 8px; }
.dark .site-footer small { color: #6f8ea3; }

/* ---------- accueil Matrix ---------- */
.home { color: var(--night-ink); }
.home .site-header { position: fixed; left: 0; right: 0; background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; color: var(--night-title); }
.home main { position: relative; z-index: 1; }
.home section { min-height: 115vh; display: flex; align-items: center; padding: 0 clamp(16px, 5vw, 64px); }
.home .hero { min-height: 100svh; justify-content: center; text-align: center; }
.home .hero h1 { font: 700 clamp(40px, 8.6vw, 128px)/.95 "Chakra Petch", sans-serif; text-transform: uppercase; color: #38bdf8; text-shadow: 0 0 18px rgba(56,189,248,.55); }
.home .hero .tag { margin-top: 18px; color: #6f8ea3; letter-spacing: .2em; text-transform: uppercase; font-size: 12px; }
.home .card { width: min(440px, 100%); }
.home .card .panel { background: rgba(2, 8, 16, 0.62); padding: 18px 22px; -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.home .right .card { margin-left: auto; }
.home .eyebrow { font-size: 11px; font-style: italic; margin: 0 0 14px; }
.home h2 { font-size: clamp(38px, 4.4vw, 54px); color: var(--night-title); margin-bottom: 18px; }
.home .card p { font-size: 13px; margin: 0 0 1em; }
.home .btn { display: block; width: 150px; margin: 22px auto 0; text-align: center; border: 1px solid var(--night-title); color: var(--night-title); text-decoration: none; padding: 4px 0; font-size: 13px; }
.home .btn:hover { background: rgba(142, 197, 255, 0.12); }
.home .outro { justify-content: center; text-align: center; }
.home .outro h2 { font-size: clamp(40px, 5vw, 64px); }
.home .outro h2 span { display: block; }
.home .end { min-height: 80vh; justify-content: center; }
.home .end h2 { font-size: clamp(44px, 5.5vw, 72px); }
.home .site-footer { color: var(--night-title); }
@media (max-width: 640px) {
  .home .card .panel { background: rgba(2, 8, 16, 0.78); }
  .home .site-header.open .nav { background: var(--night); }
}

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Sur l'accueil, un léger voile derrière le menu pour qu'il reste lisible au-dessus des textes. */
.home .site-header { background: linear-gradient(rgba(2, 4, 9, 0.85), rgba(2, 4, 9, 0)); }

/* Pas de grand espace entre le titre de page et le premier bloc. */
.page-title + .split { margin-top: 0; }
