/* Page de présentation de Digbox (getdigbox.com/decouvrir). Couleurs et police de l'app (design/tokens) ; aucune
   ressource hors de ce dossier. */

@font-face {
  font-family: "Instrument Sans";
  src: url("/decouvrir/assets/instrument-sans-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("/decouvrir/assets/instrument-sans-500.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("/decouvrir/assets/instrument-sans-600.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #07090f;
  --panel: #0e1420;
  --panel-deep: #0a0f18;
  --text: #edf0f6;
  --muted: #b0b8ca;
  --accent: #a9b3ff;
  --line: #303950;
  --line-strong: #46516d;
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font:
    16px/1.6 "Instrument Sans",
    system-ui,
    -apple-system,
    sans-serif;
  -webkit-font-smoothing: antialiased;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
  cursor: pointer;
}
button,
a,
summary {
  -webkit-tap-highlight-color: transparent;
}
a:focus-visible,
button:focus-visible,
summary:focus-visible,
video:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}
[hidden] {
  display: none !important;
}
img {
  max-width: 100%;
}
p {
  margin: 0 0 18px;
}
h1,
h2,
h3 {
  letter-spacing: -0.04em;
  font-weight: 600;
  line-height: 1.15;
  margin: 0;
}
h1 {
  font-size: clamp(40px, 4.5vw, 62px);
}
h1 span {
  color: var(--accent);
}
h2 {
  font-size: clamp(31px, 3.4vw, 45px);
}
h3 {
  font-size: 28px;
  margin-bottom: 16px;
}

.wrap {
  width: min(1180px, calc(100% - 64px));
  margin-inline: auto;
}
.skip {
  position: fixed;
  left: 15px;
  top: -100px;
  z-index: 100;
  padding: 12px;
  background: var(--accent);
  color: var(--bg);
  border-radius: 8px;
}
.skip:focus {
  top: 12px;
}
.small {
  font-size: 14px;
  line-height: 1.6;
}
.muted {
  color: var(--muted);
}
.eyebrow {
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin: 0 0 16px;
}
.text-link {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.text-link:hover {
  color: #c3cbff;
}
.actions {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

/* ——— Boutons ——— */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 11px 22px;
  border: 1px solid #48526c;
  border-radius: 10px;
  background: transparent;
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
}
.button:hover {
  background: #1d273b;
}
.button.primary {
  background: var(--accent);
  color: #090d17;
  border-color: var(--accent);
}
.button.primary:hover {
  background: #c3cbff;
}
.button.compact {
  min-height: 44px;
  padding: 8px 17px;
}

/* ——— Barre du haut ——— */
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: #07090ff2;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav {
  min-height: 76px;
  display: flex;
  gap: 24px;
  align-items: center;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 23px;
  font-weight: 600;
  letter-spacing: -0.04em;
}
.brand img {
  display: block;
}
.nav-links {
  display: flex;
  gap: 28px;
  margin: auto;
  font-size: 14px;
  color: var(--muted);
}
.nav-links a:hover {
  color: var(--text);
}

/* ——— En-tête ——— */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 56px;
  align-items: center;
  padding-top: 64px;
  padding-bottom: 56px;
}
.lead {
  font-size: 19px;
  max-width: 540px;
  color: var(--muted);
  margin-top: 26px;
}
.benefits {
  padding-left: 21px;
  margin: 24px 0 30px;
  line-height: 1.75;
  max-width: 540px;
}
.benefits li::marker {
  color: var(--accent);
}
.hero .small {
  margin: 18px 0 0;
}

.showcase {
  display: grid;
  grid-template-columns: auto minmax(0, 200px);
  align-items: center;
  justify-content: center;
  gap: 28px;
  min-width: 0;
}
.phone {
  width: min(280px, 76vw);
  padding: 9px;
  border: 1px solid var(--line-strong);
  border-radius: 40px;
  background: #0b0f18;
  box-shadow:
    0 30px 80px #0009,
    0 0 0 1px #0006 inset;
}
.phone-screen {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  border-radius: 31px;
  overflow: hidden;
}
.phone-screen img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 390 / 844;
  background: var(--bg);
}
.showcase-side {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 16px;
  min-width: 0;
}
.showcase .tabs {
  flex-direction: column;
  width: 100%;
}
.showcase .tabs button {
  text-align: left;
  padding-inline: 14px;
}
.showcase-caption {
  margin: 0;
  min-height: 6.4em;
  font-size: 14px;
  color: var(--muted);
}
.showcase-caption strong {
  color: var(--text);
  font-weight: 500;
}

/* ——— Onglets ——— */
.tabs {
  display: flex;
  gap: 5px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  width: max-content;
  max-width: 100%;
  flex-wrap: wrap;
  justify-content: center;
}
.tabs button {
  border: 0;
  background: none;
  color: var(--muted);
  border-radius: 8px;
  padding: 10px 13px;
  font-size: 14px;
  min-height: 44px;
}
.tabs button:hover {
  color: var(--text);
}
.tabs [aria-selected="true"] {
  background: #273149;
  color: var(--text);
}

/* ——— Plateformes ——— */
.sources {
  padding: 22px 0;
  display: flex;
  justify-content: space-between;
  gap: 25px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  color: var(--muted);
}
.sources p {
  margin: 0;
}
.sources div {
  color: #d4d9e6;
}

/* ——— Sections ——— */
.section {
  padding-top: 76px;
}
.section-intro {
  margin-bottom: 30px;
  max-width: 780px;
}
.section-intro > p:last-child:not(.eyebrow) {
  color: var(--muted);
  margin: 18px 0 0;
}

/* ——— Film ——— */
.video-stage {
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  overflow: hidden;
  background: #0c111b;
  max-width: 1040px;
  margin-inline: auto;
}
.video-cover {
  display: block;
  position: relative;
  padding: 0;
  border: 0;
  width: 100%;
  background: none;
  color: inherit;
}
.video-cover img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.play-label {
  display: flex;
  gap: 16px;
  align-items: center;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  border: 1px solid #8b99d4;
  border-radius: 12px;
  background: #17213af5;
  padding: 16px 24px;
  font-size: 17px;
  font-weight: 500;
  white-space: nowrap;
  box-shadow: 0 15px 45px #0008;
}
.video-cover:hover .play-label {
  background: #202c4cf5;
}
.play-label span {
  font-size: 14px;
  color: var(--accent);
}
.video-stage video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  background: #070a12;
}
.video-stage video.portrait {
  max-width: 400px;
  aspect-ratio: 9 / 16;
  margin-inline: auto;
}
.video-stage #reessayerFilm {
  margin: 20px;
}
.film-status {
  max-width: 1040px;
  margin: 12px auto 0;
}
.film-details {
  max-width: 1040px;
  margin: 14px auto 0;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}
.film-details summary {
  color: var(--accent);
  cursor: pointer;
  font-size: 14px;
}
.film-details > div {
  padding: 14px 0 0;
}
.transcript {
  color: var(--muted);
  padding-left: 22px;
  margin: 0 0 16px;
  font-size: 15px;
}
.transcript li {
  margin-bottom: 8px;
}

/* ——— Les quatre fonctions : texte et image côte à côte, en alternance ——— */
.features {
  display: grid;
  gap: 22px;
}
.feature {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  align-items: center;
  gap: 48px;
  padding: 36px 40px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
}
/* Une fonction sur deux : l'image à gauche, toujours dans la colonne large. */
.feature:nth-child(even) {
  grid-template-columns: minmax(0, 1.18fr) minmax(0, 0.82fr);
}
.feature:nth-child(even) .feature-copy {
  order: 2;
}
.feature-copy > p:last-child {
  color: var(--muted);
  margin-bottom: 0;
}
.feature-image {
  display: flex;
  justify-content: center;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  min-width: 0;
}
.feature-image img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 500px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg);
  box-shadow: 0 20px 50px #0007;
}
.feature-image:hover img {
  border-color: var(--line-strong);
}

.acquire {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
  align-items: center;
  gap: 56px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 46px 0;
  margin-top: 40px;
}
.acquire p {
  max-width: 600px;
  color: var(--muted);
}
.acquire p:last-child {
  margin-bottom: 0;
}
.acquire img {
  display: block;
  width: 100%;
  max-width: 420px;
  height: auto;
  justify-self: center;
  border: 1px solid var(--line);
  border-radius: 14px;
}

/* ——— Commencer ——— */
.steps {
  padding: 0;
  margin: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.steps li {
  border-top: 1px solid var(--line);
  padding-top: 22px;
}
.steps li > span {
  display: block;
  color: var(--accent);
  margin-bottom: 14px;
  font-size: 14px;
}
.steps h3 {
  font-size: 23px;
  margin-bottom: 12px;
}
.steps p {
  color: var(--muted);
}
.access-details {
  margin-top: 26px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 20px;
}
.access-details summary {
  cursor: pointer;
  color: var(--accent);
}
.access-details p {
  margin: 14px 0 0;
  max-width: 800px;
  color: var(--muted);
}

/* ——— Appareils ——— */
.device-tabs {
  margin: 0;
  justify-content: flex-start;
}
.device-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 28px;
  margin: 16px 0;
}
.device-panel.with-shot {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 40px;
  align-items: center;
}
.device-panel h3 {
  font-size: 24px;
}
.device-panel p {
  max-width: 720px;
  color: var(--muted);
}
.device-panel p:last-child {
  margin-bottom: 0;
}
.device-panel ul {
  padding-left: 22px;
  margin: 0;
  line-height: 1.75;
  color: var(--muted);
  max-width: 760px;
}
.device-panel li {
  margin-bottom: 6px;
}
.device-panel strong {
  color: var(--text);
  font-weight: 500;
}
.device-shot {
  margin: 0;
  width: 320px;
  max-width: 100%;
}
.device-shot img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  box-shadow: 0 18px 44px #0008;
}
.device-shot figcaption,
.shortcut-shots figcaption {
  margin-top: 10px;
  font-size: 13px;
  color: var(--muted);
}
.shortcut-shots {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  max-width: 660px;
  margin-top: 24px;
}
.shortcut-shots figure {
  margin: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel-deep);
}
.shortcut-shots img {
  display: block;
  width: 100%;
  height: 190px;
  object-fit: contain;
}

/* ——— Univers et playlists ——— */
/* ——— Et aussi : quatre vignettes (playlists, univers, promos, thème), comme le plan « Et aussi » des films ——— */
.also-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}
.also-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: #0c111b;
}
.also-card img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: left top;
  border-bottom: 1px solid var(--line);
}
.also-card h3 {
  margin: 16px 18px 6px;
  font-size: 18px;
}
.also-card p {
  margin: 0 18px 18px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.45;
}
.also-note {
  margin-top: 20px;
}
@media (max-width: 1000px) {
  .also-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 560px) {
  .also-grid {
    grid-template-columns: 1fr;
  }
}

/* ——— Questions ——— */
.faq details {
  border-top: 1px solid var(--line);
}
.faq details:last-child {
  border-bottom: 1px solid var(--line);
}
.faq summary {
  padding: 20px 0;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-size: 17px;
}
.faq summary::after {
  content: "+";
  color: var(--accent);
  font-size: 24px;
  line-height: 1;
}
.faq details[open] summary::after {
  content: "−";
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq details p {
  color: var(--muted);
  max-width: 820px;
  margin: 0 0 24px;
}

/* ——— Fin de page ——— */
.closing {
  padding: 44px 40px;
  border: 1px solid var(--line-strong);
  background: #11192a;
  border-radius: 16px;
  text-align: center;
  margin-top: 68px;
  margin-bottom: 52px;
}
.closing > img {
  display: block;
  margin: 0 auto 20px;
}
.closing .actions {
  justify-content: center;
  margin-top: 28px;
}
.footer {
  border-top: 1px solid var(--line);
  padding: 26px 0 34px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
}
.footer > div {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--muted);
}
.footer > div a:hover {
  color: var(--text);
}

/* ——— Image agrandie ——— */
dialog {
  border: 1px solid #546080;
  background: #0b101a;
  border-radius: 14px;
  padding: 0;
  color: var(--text);
  width: min(1100px, 94vw);
  max-height: 94vh;
}
dialog.portrait {
  width: min(430px, 94vw);
}
dialog::backdrop {
  background: #02040beb;
  backdrop-filter: blur(5px);
}
.dialog-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 12px 14px 12px 18px;
}
dialog > img {
  display: block;
  width: 100%;
  height: auto;
  max-height: calc(94vh - 72px);
  object-fit: contain;
  background: var(--bg);
}

/* ——— Écrans moyens ——— */
@media (max-width: 1000px) {
  .hero {
    gap: 32px;
  }
  .feature {
    gap: 32px;
    padding: 30px;
  }
  .acquire {
    gap: 32px;
  }
}

@media (max-width: 860px) {
  .wrap {
    width: calc(100% - 40px);
  }
  .nav-links {
    display: none;
  }
  .nav > .button {
    margin-left: auto;
  }
  .hero {
    grid-template-columns: 1fr;
    padding-top: 40px;
    gap: 40px;
  }
  .showcase {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 18px;
  }
  .showcase-side {
    align-items: center;
    gap: 12px;
    max-width: 100%;
  }
  .showcase .tabs {
    flex-direction: row;
    width: max-content;
    max-width: 100%;
  }
  .showcase .tabs button {
    text-align: center;
    padding-inline: 13px;
  }
  .showcase-caption {
    max-width: 340px;
    min-height: 3.2em;
    text-align: center;
  }
  .feature,
  .feature:nth-child(even) {
    grid-template-columns: 1fr;
    gap: 26px;
  }
  .feature:nth-child(even) .feature-copy {
    order: 0;
  }
  .device-panel.with-shot {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .sources {
    display: block;
  }
  .sources p {
    margin-bottom: 8px;
  }
}

/* ——— Téléphone : les captures sont celles du téléphone, dans son cadre ——— */
@media (max-width: 700px) {
  .video-stage {
    max-width: 360px;
  }
  .video-cover img {
    aspect-ratio: 9 / 16;
  }
  .play-label {
    font-size: 15px;
    padding: 13px 18px;
    gap: 12px;
  }
  .play-label span {
    display: none;
  }
  .film-status,
  .film-details {
    max-width: 100%;
  }
  .feature-image img {
    width: min(270px, 74vw);
    max-height: none;
    padding: 0;
    border: 8px solid #0b0f18;
    outline: 1px solid var(--line-strong);
    border-radius: 36px;
  }
  .steps,
  .acquire {
    grid-template-columns: 1fr;
  }
  .steps {
    gap: 22px;
  }
  .acquire {
    gap: 22px;
  }
}

@media (max-width: 540px) {
  .wrap {
    width: calc(100% - 36px);
  }
  .nav {
    min-height: 68px;
    gap: 12px;
  }
  .brand {
    font-size: 22px;
  }
  .nav .brand img {
    width: 30px;
    height: 30px;
  }
  .nav .button {
    font-size: 14px;
    padding: 8px 14px;
  }
  .lead {
    font-size: 17px;
    margin-top: 20px;
  }
  .benefits {
    margin: 20px 0 26px;
    line-height: 1.6;
  }
  .benefits li {
    margin-bottom: 8px;
  }
  .hero .actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
  }
  .section {
    padding-top: 52px;
  }
  .feature {
    padding: 24px 20px 28px;
  }
  h3 {
    font-size: 26px;
  }
  .acquire {
    padding: 32px 0;
    margin-top: 26px;
  }
  .organize {
    margin-top: 48px;
  }
  .organize h2 {
    font-size: 26px;
  }
  .closing {
    padding: 30px 20px;
    margin-top: 48px;
  }
  .closing .actions {
    flex-direction: column;
  }
  .footer {
    align-items: flex-start;
    flex-direction: column;
  }
  .tabs button {
    padding: 9px 10px;
  }
  /* Les quatre onglets de l'écran tiennent sur une ligne. */
  .showcase .tabs {
    flex-wrap: nowrap;
  }
  .showcase .tabs button {
    padding-inline: 9px;
  }
  .device-panel {
    padding: 22px 20px;
  }
  .shortcut-shots {
    gap: 12px;
  }
  .shortcut-shots figure {
    padding: 12px;
  }
  .shortcut-shots img {
    height: 150px;
  }
  .faq summary {
    font-size: 16px;
  }
}

@media (max-width: 360px) {
  .wrap {
    width: calc(100% - 28px);
  }
  .tabs button {
    padding: 9px 7px;
    font-size: 13px;
  }
  h1 {
    font-size: 36px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
