/* Site de MyBDE : papier chaud, encre profonde, violet et or. */

:root {
  --papier: #F4EFE6;
  --papier-2: #EBE4D6;
  --papier-clair: #FBF8F2;
  --encre: #16123A;
  --encre-doux: #4A4668;
  --encre-pale: #6B6785;
  --trait: rgba(22, 18, 58, 0.14);
  --violet: #4B3FD1;
  --violet-fonce: #3A2FB0;
  --or: #E9B949;
  --nuit: #100D2A;
  --nuit-2: #1C1745;
  --rouge-clair: #FF6F86;

  --police-titre: 'Bricolage Grotesque', 'Arial Narrow', system-ui, sans-serif;
  --police-texte: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --police-mono: 'IBM Plex Mono', ui-monospace, 'Cascadia Mono', monospace;

  --marge: clamp(16px, 4.5vw, 56px);
  --largeur: 1240px;
  --sortie: cubic-bezier(0.2, 0.75, 0.2, 1);
  --demo-marque: #7C3AED;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--papier);
  color: var(--encre);
  font-family: var(--police-texte);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Les décors qui débordent (halo du téléphone, tampon) sont coupés au bord : sur téléphone, la page ne glisse pas de côté. clip garde le téléphone collant. */
main { overflow-x: clip; }

/* Grain du papier, par-dessus tout, sans gêner les clics. */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: 0.33;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.09 0 0 0 0 0.07 0 0 0 0 0.23 0 0 0 0.55 0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23g)'/%3E%3C/svg%3E");
}

::selection { background: var(--or); color: var(--encre); }

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }

:focus-visible { outline: 3px solid var(--violet); outline-offset: 3px; border-radius: 6px; }

.lecteur,
.cache {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.evitement {
  position: absolute;
  left: 16px; top: -60px;
  z-index: 60;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--encre);
  color: var(--papier);
  text-decoration: none;
  font-weight: 600;
}
.evitement:focus { top: 12px; }

.ico {
  width: 1.15em; height: 1.15em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ——— En-tête ——— */

.entete {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 14px max(var(--marge), calc((100% - var(--largeur)) / 2 + var(--marge)));
  background: rgba(244, 239, 230, 0.84);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}
.entete.decolle { border-bottom-color: var(--trait); }

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--encre);
}
.logo img {
  display: block;
  height: 52px;
  width: auto;
  transition: transform 0.4s var(--sortie);
}
.logo:hover img { transform: rotate(-2deg) scale(1.03); }
.logo-petit img { height: 38px; }

.menu { display: flex; gap: 26px; margin-left: auto; }
.menu a {
  position: relative;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  color: var(--encre-doux);
  transition: color 0.2s;
}
.menu a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 2px;
  background: var(--or);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--sortie);
}
.menu a:hover { color: var(--encre); }
.menu a:hover::after { transform: scaleX(1); }

/* ——— Boutons ——— */

.bouton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 14px 22px;
  border: 1.5px solid var(--encre);
  border-radius: 999px;
  background: var(--encre);
  color: var(--papier);
  font-weight: 600;
  font-size: 16px;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.25s var(--sortie), box-shadow 0.25s var(--sortie), background-color 0.2s;
}
.bouton:hover { transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--or); }
.bouton:active { transform: none; box-shadow: none; }
.bouton-petit { padding: 10px 17px; font-size: 14.5px; }
.bouton-trait { background: transparent; color: var(--encre); }
.bouton-trait:hover { box-shadow: 4px 4px 0 var(--encre); }
.bouton-or { background: var(--or); border-color: var(--or); color: var(--encre); }
.bouton-or:hover { box-shadow: 4px 4px 0 var(--papier); }
.bouton-trait-clair { background: transparent; border-color: rgba(244, 239, 230, 0.45); color: var(--papier); }
.bouton-trait-clair:hover { box-shadow: 4px 4px 0 var(--or); border-color: var(--papier); }

.lien-discret {
  padding: 0;
  border: 0;
  background: none;
  color: var(--encre-doux);
  font-size: 14.5px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ——— Petits titres et textes ——— */

.surtitre {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  font-family: var(--police-mono);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--violet);
}
.surtitre-clair { color: var(--or); }

.pastille-vivante {
  position: relative;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--violet);
}
.pastille-vivante::after {
  content: '';
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 2px solid var(--violet);
  animation: onde 2.2s var(--sortie) infinite;
}
@keyframes onde {
  from { transform: scale(0.4); opacity: 0.9; }
  to { transform: scale(1.6); opacity: 0; }
}

h1, h2 {
  font-family: var(--police-titre);
  font-weight: 800;
  font-variation-settings: 'wdth' 78;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
h2 { font-size: clamp(2.3rem, 4.6vw, 4rem); line-height: 0.98; max-width: 17ch; }
h3 { font-family: var(--police-titre); font-weight: 700; letter-spacing: -0.01em; }

.chapeau { margin-top: 22px; max-width: 36em; font-size: clamp(1.06rem, 1.4vw, 1.22rem); line-height: 1.55; color: var(--encre-doux); text-wrap: pretty; }
.chapeau-clair { color: rgba(244, 239, 230, 0.72); }

.lien-apercu { display: none; font-size: 14px; font-weight: 600; color: var(--violet); text-underline-offset: 3px; padding: 10px 0; }
@media (max-width: 900px) { .lien-apercu { display: inline-block; } }
.aide { font-size: 13.5px; line-height: 1.45; color: var(--encre-pale); overflow-wrap: anywhere; }
.aide:empty { display: none; }
.aide-clair { display: block; margin-top: 12px; color: rgba(244, 239, 230, 0.7); }
.erreur { color: #B3172F; font-weight: 600; }

/* ——— Essai : la démo personnalisable ——— */

.essai {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 400px);
  grid-template-areas:
    'texte scene'
    'reglagesA scene'
    'reglagesB scene';
  grid-template-rows: auto auto 1fr;
  gap: 26px clamp(32px, 6vw, 96px);
  max-width: var(--largeur);
  margin: 0 auto;
  padding: clamp(28px, 5vw, 64px) var(--marge) clamp(64px, 9vw, 120px);
}
.essai-texte { grid-area: texte; padding-bottom: 10px; }
.reglages-a { grid-area: reglagesA; }
.reglages-b { grid-area: reglagesB; align-self: start; }
.scene { grid-area: scene; align-self: start; position: sticky; top: 86px; }

.essai h1 {
  font-size: clamp(2.7rem, 6vw, 5.4rem);
  line-height: 0.93;
  max-width: 13ch;
}
.surligne {
  background-image: linear-gradient(transparent 60%, var(--or) 60%, var(--or) 88%, transparent 88%);
  background-repeat: no-repeat;
  background-size: 0% 100%;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  animation: surligner 0.9s 0.55s var(--sortie) forwards;
}
@keyframes surligner { to { background-size: 100% 100%; } }

.essai-texte > * { animation: monter 0.8s var(--sortie) both; }
.essai-texte > :nth-child(2) { animation-delay: 0.08s; }
.essai-texte > :nth-child(3) { animation-delay: 0.18s; }
.reglages-a { animation: monter 0.8s 0.28s var(--sortie) both; }
.scene { animation: monter 1s 0.2s var(--sortie) both; }
@keyframes monter {
  from { opacity: 0; transform: translateY(26px); }
  to { opacity: 1; transform: none; }
}

.reglages {
  padding: clamp(20px, 2.4vw, 28px);
  border: 1px solid var(--trait);
  border-radius: 24px;
  background: var(--papier-clair);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset, 0 18px 40px -28px rgba(22, 18, 58, 0.35);
}
.reglages-titre {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--police-titre);
  font-weight: 700;
  font-size: 1.28rem;
  letter-spacing: -0.01em;
}
.num {
  display: grid;
  place-items: center;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--encre);
  color: var(--or);
  font-family: var(--police-mono);
  font-size: 14px;
  font-weight: 600;
}

.champ { display: grid; gap: 9px; margin-top: 20px; }
.champ-libelle { padding: 0; font-weight: 600; font-size: 14.5px; color: var(--encre); }

.champ input[type='text'] {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--trait);
  border-radius: 13px;
  background: #fff;
  font-size: 16px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.champ input[type='text']:hover { border-color: rgba(22, 18, 58, 0.3); }
.champ input[type='text']:focus { outline: none; border-color: var(--violet); box-shadow: 0 0 0 4px rgba(75, 63, 209, 0.16); }

.pastilles { display: flex; flex-wrap: wrap; gap: 10px; }
.pastille {
  position: relative;
  width: 36px; height: 36px;
  padding: 0;
  border: 3px solid var(--papier-clair);
  border-radius: 50%;
  background: var(--c);
  box-shadow: 0 0 0 1px var(--trait);
  transition: transform 0.2s var(--sortie), box-shadow 0.2s;
}
.pastille:hover { transform: scale(1.1); }
.pastille[aria-pressed='true'] { box-shadow: 0 0 0 2.5px var(--encre); transform: scale(1.06); }
.pastille[aria-pressed='true']::after {
  content: '';
  position: absolute;
  inset: 0;
  margin: auto;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--sur, #fff);
}
.pastille-libre {
  overflow: hidden;
  background: conic-gradient(from 0deg, #FF4D4D, #FFB000, #F2E600, #3CCB6B, #19B8E6, #5A4BFF, #D23CE0, #FF4D4D);
}
.pastille-libre input {
  position: absolute;
  inset: -8px;
  width: calc(100% + 16px);
  height: calc(100% + 16px);
  opacity: 0;
  cursor: pointer;
}
.pastille-libre:has(input:focus-visible) { outline: 3px solid var(--violet); outline-offset: 3px; }

.styles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.style-tuile {
  display: grid;
  gap: 8px;
  justify-items: start;
  padding: 12px 12px 11px;
  border: 1.5px solid var(--trait);
  border-radius: 16px;
  background: var(--papier-clair);
  text-align: left;
  transition: transform 0.25s var(--sortie), border-color 0.2s, box-shadow 0.25s;
}
.style-tuile:hover { transform: translateY(-3px); border-color: rgba(22, 18, 58, 0.3); }
.style-tuile[aria-pressed='true'] { border-color: var(--encre); box-shadow: 4px 4px 0 var(--encre); transform: translate(-2px, -2px); }
.style-apercu {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  width: 100%;
  aspect-ratio: 1.45;
  padding: 9px 10px;
  border-radius: 10px;
  background: var(--f);
  color: var(--t);
  border: var(--b) solid var(--bord);
  box-shadow: var(--o);
}
.style-apercu b { font-family: var(--pt); font-weight: 700; font-size: 25px; line-height: 1; font-synthesis: none; }
.style-apercu i { display: flex; gap: 4px; }
.style-apercu i span { width: 11px; height: 11px; border-radius: 50%; background: var(--a); }
.style-apercu i span + span { background: var(--m); }
.style-nom { font-weight: 600; font-size: 14px; line-height: 1.2; }

.puces { display: flex; flex-wrap: wrap; gap: 8px; }
.puce {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 13px;
  border: 1.5px solid var(--trait);
  border-radius: 999px;
  background: #fff;
  font-size: 14.5px;
  font-weight: 500;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s, transform 0.2s var(--sortie);
}
.puce:hover { border-color: rgba(22, 18, 58, 0.35); transform: translateY(-1px); }
.puce[aria-pressed='true'] { background: var(--encre); border-color: var(--encre); color: var(--papier); }

.logo-choix { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.logo-choix label.bouton { cursor: pointer; }
.logo-choix:has(input:focus-visible) label.bouton { outline: 3px solid var(--violet); outline-offset: 3px; }

.icone-apercu,
[data-icone-bde] {
  display: grid;
  place-items: center;
  overflow: hidden;
  background: var(--demo-marque);
  color: #fff;
  font-family: var(--police-titre);
  font-weight: 800;
  font-variation-settings: 'wdth' 85;
  line-height: 1;
}
[data-icone-bde] img { width: 100%; height: 100%; object-fit: cover; }
.icone-apercu {
  width: 52px; height: 52px;
  border-radius: 13px;
  font-size: 18px;
  box-shadow: 0 6px 14px -6px rgba(22, 18, 58, 0.45);
}

.partage { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 26px; padding-top: 22px; border-top: 1px dashed var(--trait); }

/* La scène du téléphone */
.scene { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.scene-fond {
  position: absolute;
  inset: -6% -18% 12%;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--demo-marque) 42%, transparent), transparent 100%);
  filter: blur(8px);
  transition: background 0.6s;
}
.scene-fond::after {
  content: '';
  position: absolute;
  inset: 8% 4%;
  border-radius: 50%;
  border: 1.5px dashed rgba(22, 18, 58, 0.16);
  animation: tourner 60s linear infinite;
}
@keyframes tourner { to { transform: rotate(360deg); } }

.ecrans {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  background: var(--papier-2);
  border: 1px solid var(--trait);
}
.ecrans button {
  padding: 8px 13px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--encre-doux);
  transition: background-color 0.2s, color 0.2s;
}
.ecrans button:hover { color: var(--encre); }
.ecrans button[aria-pressed='true'] { background: var(--encre); color: var(--papier); }
.scene-note { font-size: 12.5px; color: var(--encre-pale); text-align: center; }

/* ——— Fonctions ——— */

.fonctions {
  position: relative;
  overflow: hidden;
  padding: clamp(80px, 11vw, 150px) var(--marge);
  background:
    radial-gradient(60% 45% at 100% 0%, rgba(75, 63, 209, 0.45), transparent 70%),
    radial-gradient(40% 35% at 0% 100%, rgba(233, 185, 73, 0.16), transparent 70%),
    var(--nuit);
  color: var(--papier);
}
.fonctions-tete,
.programme { max-width: var(--largeur); margin: 0 auto; }
.fonctions h2 { max-width: 16ch; }

.programme { margin-top: clamp(48px, 7vw, 88px); counter-reset: ligne; }
.ligne {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 18px clamp(20px, 4vw, 56px);
  align-items: start;
  padding: 34px 0;
  border-top: 1px solid rgba(244, 239, 230, 0.14);
}
.ligne:last-child { border-bottom: 1px solid rgba(244, 239, 230, 0.14); }
.ligne-num { padding-top: 10px; font-family: var(--police-mono); font-size: 14px; font-weight: 600; color: var(--or); letter-spacing: 0.08em; }
.ligne h3 {
  font-weight: 800;
  font-size: clamp(1.9rem, 3.4vw, 2.8rem);
  line-height: 1;
  font-variation-settings: 'wdth' 80;
  transition: transform 0.4s var(--sortie), color 0.3s;
}
.ligne:hover h3 { transform: translateX(8px); color: var(--or); }
.ligne-corps p { margin-top: 14px; max-width: 34em; color: rgba(244, 239, 230, 0.72); }
.etiquettes { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 6px; }
.etiquettes li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 13px;
  border: 1px solid rgba(244, 239, 230, 0.22);
  border-radius: 999px;
  font-size: 14.5px;
  color: rgba(244, 239, 230, 0.9);
}
.etiquettes li.pro { border-color: rgba(233, 185, 73, 0.6); color: var(--or); }
.etiquettes li.pro::after {
  content: 'Pro';
  padding: 1px 6px 2px;
  border-radius: 5px;
  background: var(--or);
  color: var(--nuit);
  font-family: var(--police-mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.ligne-alerte h3 { color: var(--rouge-clair); }
.ligne-alerte:hover h3 { color: var(--rouge-clair); }
.ligne-alerte .etiquettes li { border-color: rgba(255, 111, 134, 0.45); }

/* ——— À votre nom, sur les stores ——— */

.stores {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(36px, 6vw, 88px);
  align-items: center;
  max-width: var(--largeur);
  margin: 0 auto;
  padding: clamp(80px, 11vw, 150px) var(--marge) clamp(56px, 7vw, 90px);
}
.stores-texte > p:not(.surtitre) { margin-top: 22px; max-width: 34em; color: var(--encre-doux); }
.nom-vivant {
  color: var(--violet);
  text-decoration: underline wavy var(--or) 3px;
  text-underline-offset: 8px;
  text-decoration-skip-ink: none;
  overflow-wrap: anywhere;
}

.etapes { display: grid; gap: 16px; margin-top: 30px; }
.etapes li { display: flex; gap: 16px; align-items: flex-start; }
.etapes span {
  display: grid;
  place-items: center;
  flex: none;
  width: 34px; height: 34px;
  border: 1.5px solid var(--encre);
  border-radius: 50%;
  font-family: var(--police-mono);
  font-size: 14px;
  font-weight: 600;
}
.etapes p { padding-top: 4px; color: var(--encre-doux); }
.etapes strong { color: var(--encre); }

.fiche-store {
  position: relative;
  padding: 26px;
  border-radius: 30px;
  background: #fff;
  box-shadow: 0 40px 70px -40px rgba(22, 18, 58, 0.45), 0 0 0 1px var(--trait);
  transform: rotate(1.5deg);
}
.fiche-store::before {
  content: 'Aperçu';
  position: absolute;
  top: -13px; right: 26px;
  padding: 4px 11px;
  border-radius: 999px;
  background: var(--or);
  font-family: var(--police-mono);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.fiche-store-haut { display: flex; gap: 18px; align-items: center; }
.icone-app {
  flex: none;
  width: 96px; height: 96px;
  border-radius: 22px;
  font-size: 32px;
  box-shadow: 0 10px 22px -10px rgba(22, 18, 58, 0.5);
}
.fiche-store-nom { display: grid; gap: 3px; justify-items: start; min-width: 0; }
.fiche-store-nom strong { font-family: var(--police-titre); font-weight: 700; font-size: 23px; line-height: 1.1; overflow-wrap: anywhere; }
.fiche-store-nom span { font-size: 14px; color: var(--encre-pale); }
.fiche-store-nom .obtenir {
  margin-top: 8px;
  padding: 6px 20px;
  border-radius: 999px;
  background: var(--violet);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
}
.fiche-store-infos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 22px 0;
  padding: 14px 0;
  border-top: 1px solid var(--trait);
  border-bottom: 1px solid var(--trait);
  text-align: center;
}
.fiche-store-infos div + div { border-left: 1px solid var(--trait); }
.fiche-store-infos b { display: block; font-family: var(--police-titre); font-size: 19px; }
.fiche-store-infos span { font-size: 12.5px; color: var(--encre-pale); }

.ecran-accueil-tel {
  padding: 22px 20px 20px;
  border-radius: 22px;
  background:
    radial-gradient(80% 90% at 15% 0%, rgba(255, 196, 120, 0.95), transparent 60%),
    radial-gradient(90% 90% at 100% 100%, rgba(75, 63, 209, 0.95), transparent 65%),
    linear-gradient(160deg, #F08A7E, #6B4FD8);
}
.mini-icones { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px 14px; }
.mini-icones > span { display: grid; gap: 5px; justify-items: center; min-width: 0; }
.mini-icones i { display: block; width: 100%; aspect-ratio: 1; border-radius: 24%; background: rgba(255, 255, 255, 0.3); }
.mini-icones em { display: block; width: 70%; height: 5px; border-radius: 3px; background: rgba(255, 255, 255, 0.45); }
.mini-bde i { font-style: normal; font-size: 15px; box-shadow: 0 6px 14px -6px rgba(0, 0, 0, 0.5); animation: sautiller 2.8s 1s var(--sortie) infinite; }
.mini-bde i[data-icone-bde] { display: grid; place-items: center; background: var(--demo-marque); }
.mini-bde em {
  width: auto;
  max-width: 100%;
  height: auto;
  background: none;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-style: normal;
  font-size: 11px;
  font-weight: 600;
  color: #fff;
}
@keyframes sautiller {
  0%, 70%, 100% { transform: none; }
  78% { transform: translateY(-5px); }
  86% { transform: none; }
  92% { transform: translateY(-2px); }
}

.modifiable {
  grid-column: 1 / -1;
  padding: clamp(24px, 3vw, 34px);
  border-radius: 26px;
  background: var(--papier-2);
}
.modifiable h3 { font-size: 1.45rem; }
.modifiable ul { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; margin-top: 18px; }
.modifiable li { display: flex; gap: 12px; font-size: 16px; color: var(--encre-doux); }
.modifiable li .ico { margin-top: 3px; color: var(--violet); stroke-width: 2.4; }

/* ——— Engagements ——— */

.engagements {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  max-width: var(--largeur);
  margin: 0 auto;
  padding: 0 var(--marge);
}
.engagement {
  padding: 30px clamp(14px, 2vw, 26px) 34px;
  border-top: 2px solid var(--encre);
  border-bottom: 2px solid var(--encre);
}
.engagement + .engagement { border-left: 1px solid var(--trait); }
.engagement-chiffre {
  display: flex;
  align-items: center;
  height: 64px;
  font-family: var(--police-titre);
  font-weight: 800;
  font-size: 64px;
  line-height: 1;
  font-variation-settings: 'wdth' 75;
  color: var(--violet);
}
.ico-grand { width: 54px; height: 54px; fill: none; stroke: var(--violet); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.engagement h3 { margin-top: 14px; font-size: 1.3rem; }
.engagement p { margin-top: 8px; font-size: 15.5px; color: var(--encre-doux); }

/* ——— Tarifs ——— */

.tarifs { max-width: var(--largeur); margin: 0 auto; padding: clamp(80px, 11vw, 150px) var(--marge) clamp(56px, 7vw, 100px); }
.billets { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 3vw, 36px); margin-top: clamp(44px, 6vw, 72px); }

.billet { position: relative; filter: drop-shadow(0 22px 26px rgba(22, 18, 58, 0.13)) drop-shadow(0 2px 2px rgba(22, 18, 58, 0.08)); }
.billet-forme {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 36%;
  height: 100%;
  overflow: hidden;
  border-radius: 24px;
  background: #FFFDF8;
}
.billet-corps { padding: clamp(24px, 3vw, 34px); }
.billet-type { font-family: var(--police-mono); font-size: 12px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--violet); }
.billet h3 { margin-top: 10px; font-weight: 800; font-size: clamp(1.8rem, 2.8vw, 2.3rem); line-height: 1; font-variation-settings: 'wdth' 82; }
.billet-pour { margin-top: 8px; font-size: 15px; color: var(--encre-pale); }
.prix { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; margin-top: 26px; }
.prix-montant { font-family: var(--police-titre); font-weight: 800; font-size: clamp(3.6rem, 6vw, 5rem); line-height: 0.85; letter-spacing: -0.03em; font-variation-settings: 'wdth' 75; }
.prix-unite { font-weight: 600; color: var(--encre-doux); }
.prix-annee { margin-top: 14px; font-size: 14.5px; color: var(--encre-pale); }

.billet-talon {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 26px 16px;
  border-left: 2px dashed rgba(22, 18, 58, 0.2);
  background: #F6F0E3;
  text-align: center;
}
/* Les encoches de la perforation, de la couleur de la page. */
.billet-talon::before,
.billet-talon::after {
  content: '';
  position: absolute;
  left: -15px;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--papier);
}
.billet-talon::before { top: -15px; }
.billet-talon::after { bottom: -15px; }
.talon-libelle { font-family: var(--police-mono); font-size: 11.5px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--encre-pale); }
.talon-montant { font-family: var(--police-titre); font-weight: 800; font-size: clamp(1.9rem, 3vw, 2.4rem); line-height: 1.05; font-variation-settings: 'wdth' 80; }
.talon-barre { font-size: 16px; color: var(--encre-pale); }
.talon-aide { max-width: 15ch; font-size: 13px; line-height: 1.35; color: var(--encre-pale); }

.billet-vedette .billet-forme { background: var(--encre); color: var(--papier); }
.billet-vedette .billet-type { color: var(--or); }
.billet-vedette .billet-pour,
.billet-vedette .prix-annee,
.billet-vedette .talon-libelle,
.billet-vedette .talon-barre,
.billet-vedette .talon-aide { color: rgba(244, 239, 230, 0.66); }
.billet-vedette .prix-unite { color: rgba(244, 239, 230, 0.8); }
.billet-vedette .prix-montant,
.billet-vedette .talon-montant { color: var(--or); }
.billet-vedette .billet-talon { background: var(--nuit-2); border-left-color: rgba(244, 239, 230, 0.25); }

.tampon {
  position: absolute;
  z-index: 2;
  top: -40px;
  right: 6%;
  display: grid;
  place-content: center;
  gap: 2px;
  width: 116px; height: 116px;
  border: 3px solid var(--or);
  border-radius: 50%;
  background: var(--papier);
  color: var(--encre);
  text-align: center;
  transform: rotate(-12deg);
  box-shadow: 0 0 0 5px var(--papier), 0 0 0 6.5px var(--or);
}
.tampon span { font-family: var(--police-mono); font-size: 10px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; line-height: 1.25; padding: 0 12px; }
.tampon b { font-family: var(--police-titre); font-size: 15px; line-height: 1.05; padding: 0 10px; }
.js .billet-vedette.apparait .tampon { opacity: 0; transform: rotate(-12deg) scale(1.6); }
.js .billet-vedette.apparait.vu .tampon { animation: tamponner 0.5s 0.55s cubic-bezier(0.3, 1.5, 0.5, 1) forwards; }
@keyframes tamponner { to { opacity: 1; transform: rotate(-12deg) scale(1); } }

.option-pro {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 28px;
  margin-top: clamp(24px, 3vw, 36px);
  padding: 22px clamp(22px, 3vw, 32px);
  border-radius: 22px;
  background: var(--violet);
  color: #fff;
}
.option-pro-titre { display: flex; align-items: center; gap: 12px; flex: none; }
.option-pro-titre strong { font-family: var(--police-titre); font-weight: 700; font-size: 1.5rem; }
.badge-pro { padding: 4px 10px; border-radius: 7px; background: var(--or); color: var(--encre); font-family: var(--police-mono); font-size: 12.5px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; }
.option-pro p { flex: 1 1 320px; color: rgba(255, 255, 255, 0.9); }

.conditions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(18px, 2.5vw, 28px); margin-top: clamp(18px, 2.5vw, 28px); }
.conditions > div { padding: clamp(22px, 3vw, 32px); border: 1px solid var(--trait); border-radius: 22px; background: var(--papier-clair); }
.conditions h3 { font-size: 1.3rem; margin-bottom: 16px; }
.liste-coches,
.liste-points { display: grid; gap: 11px; font-size: 16px; color: var(--encre-doux); }
.liste-coches li,
.liste-points li { position: relative; padding-left: 30px; }
.liste-coches li::before {
  content: '';
  position: absolute;
  left: 0; top: 2px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--violet) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4 8-9'/%3E%3C/svg%3E") center / 13px no-repeat;
}
.liste-points li::before {
  content: '';
  position: absolute;
  left: 5px; top: 9px;
  width: 9px; height: 9px;
  background: var(--or);
  transform: rotate(45deg);
}
.liste-points strong { color: var(--encre); }

/* ——— Questions ——— */

.questions { max-width: 900px; margin: 0 auto; padding: clamp(56px, 8vw, 110px) var(--marge); }
.faq { margin-top: clamp(28px, 4vw, 44px); border-top: 2px solid var(--encre); }
.faq details { border-bottom: 1px solid var(--trait); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 0;
  list-style: none;
  cursor: pointer;
  font-family: var(--police-titre);
  font-weight: 700;
  font-size: clamp(1.12rem, 1.9vw, 1.38rem);
  line-height: 1.25;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '';
  flex: none;
  width: 34px; height: 34px;
  border: 1.5px solid var(--encre);
  border-radius: 50%;
  background:
    linear-gradient(var(--encre), var(--encre)) center / 13px 2px no-repeat,
    linear-gradient(var(--encre), var(--encre)) center / 2px 13px no-repeat;
  transition: transform 0.35s var(--sortie), background-color 0.2s;
}
.faq summary:hover::after { background-color: var(--or); }
.faq details[open] summary::after { transform: rotate(135deg); }
.faq details p { max-width: 62ch; padding: 0 0 24px; color: var(--encre-doux); }

/* ——— Contact ——— */

.contact { max-width: var(--largeur); margin: 0 auto; padding: 0 var(--marge) clamp(64px, 9vw, 120px); }
.contact-carte {
  position: relative;
  overflow: hidden;
  padding: clamp(36px, 7vw, 88px);
  border-radius: 34px;
  background:
    radial-gradient(55% 80% at 100% 100%, rgba(75, 63, 209, 0.6), transparent 70%),
    var(--nuit);
  color: var(--papier);
}
.contact-carte::after {
  content: 'BDE';
  position: absolute;
  right: -0.06em;
  bottom: -0.3em;
  font-family: var(--police-titre);
  font-weight: 800;
  font-size: clamp(10rem, 26vw, 22rem);
  line-height: 1;
  font-variation-settings: 'wdth' 75;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(233, 185, 73, 0.35);
  pointer-events: none;
}
.contact-carte > * { position: relative; z-index: 1; }
.contact-carte :focus-visible { outline-color: var(--or); }
.contact h2 { max-width: 14ch; }
.contact-carte > p:not(.surtitre) { margin-top: 20px; max-width: 32em; color: rgba(244, 239, 230, 0.78); }
.contact-carte [data-nom-bde] { color: var(--or); font-weight: 600; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* ——— Pied de page ——— */

.pied {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 28px;
  max-width: var(--largeur);
  margin: 0 auto;
  padding: 30px var(--marge) 44px;
  border-top: 1px solid var(--trait);
  font-size: 14.5px;
  color: var(--encre-doux);
}
.pied-note { margin-left: auto; font-size: 13px; color: var(--encre-pale); }
.pied-liens { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.pied-liens a { color: var(--encre-doux); text-underline-offset: 3px; }
.pied-liens a:hover { color: var(--violet); }

/* ——— Pages légales ——— */

.page-legale { max-width: 46rem; margin: 0 auto; padding: 56px var(--marge) 72px; }
.page-legale h1 { font-family: var(--police-titre); font-weight: 800; font-size: clamp(34px, 5vw, 52px); line-height: 1.05; font-variation-settings: 'wdth' 85; letter-spacing: -0.02em; margin-bottom: 14px; }
.page-legale .maj { color: var(--encre-pale); font-size: 14px; margin-bottom: 36px; }
.page-legale h2 { font-family: var(--police-titre); font-weight: 700; font-size: 26px; line-height: 1.15; margin: 44px 0 12px; }
.page-legale h3, .page-legale h2.rubrique { font-family: inherit; font-weight: 700; font-size: 18px; line-height: 1.3; margin: 28px 0 8px; }
.page-legale p, .page-legale li { color: var(--encre-doux); line-height: 1.65; }
.page-legale p { margin-top: 12px; }
.page-legale ul { margin: 12px 0 0 1.2em; list-style: disc; display: grid; gap: 6px; }
.page-legale a { color: var(--violet-fonce); text-underline-offset: 3px; }
.page-legale .a-completer { background: #FFE9A8; color: var(--encre); padding: 0 4px; border-radius: 4px; -webkit-box-decoration-break: clone; box-decoration-break: clone; }

.sans-js { max-width: var(--largeur); margin: 0 auto 32px; padding: 0 var(--marge); color: var(--encre-doux); }

/* ——— Apparition au défilement ——— */

.js .apparait { opacity: 0; transform: translateY(28px); transition: opacity 0.8s var(--sortie), transform 0.8s var(--sortie); transition-delay: calc(var(--rang, 0) * 70ms); }
.js .apparait.vu { opacity: 1; transform: none; }
.js .fiche-store.apparait.vu { transform: rotate(1.5deg); }

/* ——— Écrans moyens et petits ——— */

@media (max-width: 1000px) {
  .ligne { grid-template-columns: 56px minmax(0, 1fr); }
  .etiquettes { grid-column: 2; }
  .modifiable ul { grid-template-columns: 1fr; gap: 14px; }
  .engagements { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .engagement:nth-child(3) { border-left: 0; border-top-width: 1px; border-top-color: var(--trait); }
  .engagement:nth-child(4) { border-top-width: 1px; border-top-color: var(--trait); }
  .engagement:nth-child(-n + 2) { border-bottom: 0; }
}

@media (max-width: 900px) {
  .essai {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: 'texte' 'reglagesA' 'scene' 'reglagesB';
    grid-template-rows: none;
  }
  .scene { position: static; margin: 18px 0 8px; }
  .stores { grid-template-columns: minmax(0, 1fr); }
  .fiche-store { max-width: 440px; }
  .billets { grid-template-columns: minmax(0, 1fr); gap: 56px; }
  .conditions { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 760px) {
  .menu { display: none; }
  .entete .bouton { margin-left: auto; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .entete { gap: 12px; }
  .entete .bouton { padding: 9px 14px; font-size: 13.5px; }
  .logo img { height: 38px; }
  .logo-petit img { height: 34px; }
  .ligne { grid-template-columns: minmax(0, 1fr); gap: 10px; padding: 28px 0; }
  .ligne-num { padding-top: 0; }
  .etiquettes { grid-column: auto; padding-top: 8px; }
  .engagements { grid-template-columns: minmax(0, 1fr); }
  .engagement { border-left: 0 !important; border-top: 1px solid var(--trait) !important; border-bottom: 0 !important; }
  .engagement:first-child { border-top: 2px solid var(--encre) !important; }
  .engagement:last-child { border-bottom: 2px solid var(--encre) !important; }
  .billet-forme { grid-template-columns: minmax(0, 1fr); }
  .billet-talon { flex-direction: row; flex-wrap: wrap; justify-content: center; column-gap: 10px; border-left: 0; border-top: 2px dashed rgba(22, 18, 58, 0.2); }
  .billet-vedette .billet-talon { border-top-color: rgba(244, 239, 230, 0.25); }
  .billet-talon::before,
  .billet-talon::after { top: -15px; bottom: auto; }
  .billet-talon::before { left: -15px; }
  .billet-talon::after { left: auto; right: -15px; }
  .talon-libelle,
  .talon-aide { flex-basis: 100%; max-width: none; }
  .tampon { width: 100px; height: 100px; top: -34px; right: 4%; }
  .tampon b { font-size: 13px; }
  .pied-note { margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; animation-delay: 0s !important; transition-duration: 0.01ms !important; transition-delay: 0s !important; }
  .surligne { background-size: 100% 100%; }
}
