/* boogie A woogie B — reprise statique du site Elementor */

:root {
  --blanc: #fff;
  --noir: #000;
  --gris: #d3d3d3;
  --encre: #1f2124;
  --ombre: 0 0 10px rgba(0, 0, 0, .3);
  --arrondi: 50px;
}

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

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

body {
  margin: 0;
  background: var(--blanc);
  color: var(--noir);
  font-family: Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

p { margin: 0; }

a { color: var(--noir); }
a:hover { color: var(--gris); }

h5 {
  margin: .5rem 0 1rem;
  font-size: 16px;
  font-weight: bold;
  text-decoration: underline;
  line-height: 27px;
}

/* ---------- titre géant, fixe derrière le contenu ---------- */

.titre {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  margin: 10px;
  font-size: 15em;
  font-weight: normal;
  line-height: .8;
}

.titre a {
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  color: var(--noir);
  text-decoration: none;
  transition: translate .8s ease;
}

.titre a:hover { color: var(--noir); }

.titre span {
  align-self: center;
  transition: font-size .8s ease, margin .8s ease, opacity .4s ease, filter .4s ease;
}

/* changement de police : le mot s'efface en flou, change, puis revient */
[data-polices] { transition: opacity .4s ease, filter .4s ease; }
[data-polices].en-change { opacity: 0; filter: blur(8px); }

/* copie invisible du titre, qui sert à calculer les tailles (js/titre.js) */
.titre-mesure, .titre-mesure * {
  visibility: hidden;
  pointer-events: none;
  transition: none !important;
}
.titre .mot-1 { font-family: Share, sans-serif; }
.titre .mot-2 { font-family: "Roboto Condensed", sans-serif; }
.titre .mot-3 { font-family: Sixtyfour, sans-serif; flex-shrink: 0; }
.titre .mot-4 { font-family: Roboto, sans-serif; }

@media (max-width: 767px) {
  .titre { font-size: 20vw; }
  .titre a { align-items: center; }
}

/* ---------- contenu, au-dessus du titre ---------- */

.scene {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 10px;
}

.accueil .scene { margin-top: 100vw; }

@media (max-width: 767px) {
  .accueil .scene { margin-top: 200vw; }
  .rider .scene { margin-top: 80vw; }
}

.bulle {
  background: var(--blanc);
  border: 1px solid var(--noir);
  border-radius: var(--arrondi);
  padding: 20px;
  text-shadow: var(--ombre);
}

/* ---------- accordéon de l'accueil ---------- */

.menu {
  width: 100%;
  padding: 10px;
  transition: border-color .3s;
}

.menu:hover { border-color: var(--blanc); }

@media (min-width: 768px) {
  .menu { width: 30%; }
}

details > summary {
  display: block;
  list-style: none;
  cursor: pointer;
  text-align: center;
  font-weight: bold;
}

details > summary::-webkit-details-marker { display: none; }

.menu summary { color: var(--encre); }
.menu summary:hover { color: var(--gris); }
.menu details[open] > summary { color: var(--blanc); text-shadow: var(--ombre); }

.menu .bulle { margin-top: 10px; margin-bottom: 10px; }
.centre { text-align: center; }

/* ---------- rider ---------- */

.rider .scene { gap: 0; }

.rider .entete {
  padding: 10px 10px 7px;
  text-align: center;
}

.rider .entete h1 {
  margin: 0;
  font-size: 16px;
  font-weight: bold;
  text-decoration: underline;
  line-height: 27px;
}

.rider .volets {
  width: 100%;
  margin-top: 10px;
}

@media (min-width: 768px) {
  .rider .volets { width: 50%; }
}

@media (max-width: 767px) {
  .rider .entete { width: 100%; }
}

.rider summary {
  padding: 10px;
  background: var(--blanc);
  border-radius: var(--arrondi);
  text-decoration: underline;
}

.rider summary:hover { color: var(--gris); }
.rider .bulle { margin: 10px 0; }

/* ---------- demo ---------- */

.demo {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  min-height: 100vh;
  color: #5e5e5e;
}

.demo h1 {
  margin: -13px 0 0;
  color: var(--noir);
  font-size: 2.5rem;
  font-weight: 500;
  line-height: 1.2;
}

.demo .video {
  justify-self: end;
  height: 100vh;
  aspect-ratio: 9 / 16;
}

.demo iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

@media (max-width: 767px) {
  .demo { grid-template-columns: 1fr; gap: 20px; padding: 10px; }
  .demo h1 { margin: 0; }
  .demo .video { justify-self: stretch; width: 100%; height: auto; }
}
