/* =============================================================================
   Applipro, page « Démo » : la page de réservation.
   Comme la page actuelle, elle n'a pas le menu du site : rien ne doit détourner
   du calendrier. Un logo et un retour au site en haut, puis l'ouverture, le
   calendrier, le déroulé du rendez-vous, le film, et une question.
   ============================================================================= */

/* --- En-tête réduit --- */
.dm-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: var(--wrap); margin: 0 auto; padding: 26px 0 0; }
.dm-top img { display: block; width: auto; height: 34px; }
.dm-back { padding: 11px 16px; border-radius: 12px; background: #fff; box-shadow: 0 0 0 1px var(--gray-100); font-size: 14px; font-weight: 600; color: var(--gray-900); transition: box-shadow .25s ease, color .25s ease; }
.dm-back:hover { box-shadow: 0 0 0 1px var(--blue-500); color: var(--blue-500); }

/* --- Ouverture --- */
.dm-hero { padding: 54px 0 0; }
.dm-eye { font-size: 15px; font-weight: 700; color: var(--blue-500); }
.dm-hero .dm-eye { margin-bottom: 14px; }
.dm-hero h1 span { display: inline; }
.dm-pitch { max-width: 760px; margin: 22px auto 0; font-size: clamp(20px, 1.9vw, 25px); font-weight: 600; line-height: 1.3; letter-spacing: -.02em; color: var(--gray-900); text-wrap: balance; }
.dm-hero .hero-sub { margin-top: 12px; }
.dm-badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 22px; }
.dm-badges span { padding: 8px 14px; border-radius: 99px; background: #fff; box-shadow: 0 0 0 1px var(--gray-100); font-size: 14px; font-weight: 600; line-height: 1.2; color: var(--gray-800); }

/* --- Le calendrier --- */
.dm-book { width: var(--wrap); max-width: 1080px; margin: 48px auto 0; padding: 30px 30px 22px; border-radius: 32px; background: #fff; box-shadow: 0 0 0 1px var(--gray-100), 0 50px 90px -56px rgba(24, 24, 146, .55); scroll-margin-top: 20px; }
.dm-book-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 20px; padding: 0 6px 18px; }
.dm-book-head h2 { font-size: clamp(24px, 2.3vw, 30px); font-weight: 600; line-height: 1.15; letter-spacing: -.025em; }
.dm-book-head p { font-size: 16px; color: var(--gray-800); }
.dm-frame { overflow: hidden; border-radius: 18px; background: #fff; }
.dm-frame iframe { display: block; width: 100%; height: 760px; border: 0; }
.dm-fallback { margin-top: 14px; font-size: 14.5px; color: var(--gray-600); text-align: center; }
.dm-fallback a, .dm-ask a { font-weight: 600; color: var(--blue-500); text-decoration: underline; text-underline-offset: 3px; }
.dm-page { padding-bottom: 110px; }

/* --- Titres des sections suivantes --- */
.dm-agenda h2, .dm-film h2 { margin-top: 8px; font-size: clamp(30px, 3.1vw, 44px); font-weight: 600; line-height: 1.12; letter-spacing: -.03em; text-wrap: balance; }
.dm-sub { margin-top: 14px; font-size: 18px; line-height: 1.55; color: var(--gray-800); text-wrap: pretty; }

/* --- Le rendez-vous, en trois temps --- */
.dm-agenda { width: var(--wrap); max-width: 1180px; margin: 0 auto; padding: 0 0 110px; text-align: center; }
.dm-agenda ol { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 48px 0 0; padding: 0; list-style: none; counter-reset: dm; text-align: left; }
.dm-agenda li { display: grid; align-content: start; gap: 8px; padding: 30px 28px 30px; border-radius: 26px; background: #DCE7FF; counter-increment: dm; }
.dm-agenda li:nth-child(2) { background: #E6E5FB; }
.dm-agenda li:nth-child(3) { background: #D8F0E5; }
.dm-agenda li::before { content: '0' counter(dm); margin-bottom: 10px; font-size: 44px; font-weight: 600; letter-spacing: -.04em; line-height: 1; color: #1E4FD0; }
.dm-agenda li:nth-child(2)::before { color: #4A3CC4; }
.dm-agenda li:nth-child(3)::before { color: #00664A; }
.dm-agenda b { font-size: 21px; font-weight: 600; letter-spacing: -.02em; line-height: 1.2; }
.dm-agenda span { font-size: 16.5px; line-height: 1.5; color: var(--gray-800); text-wrap: pretty; }

/* --- Le film --- */
.dm-film { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 56px; align-items: center; width: var(--wrap); max-width: 1180px; margin: 0 auto; padding: 0 0 110px; }
.dm-film-frame { overflow: hidden; border-radius: 26px; background: #0F1424; box-shadow: 0 44px 80px -50px rgba(24, 24, 146, .6); }
.dm-film-frame video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; }

/* --- Une question --- */
.dm-ask { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 16px; width: var(--wrap); max-width: 1180px; margin: 0 auto 72px; padding: 34px 30px; border-radius: 28px; background: linear-gradient(180deg, #E3ECFF 0%, #F2F6FF 100%); font-size: 18px; color: var(--gray-900); text-align: center; }
.dm-ask p { font-weight: 600; }

/* --- Pied réduit --- */
.dm-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px; width: var(--wrap); max-width: 1180px; margin: 0 auto; padding: 0 0 34px; font-size: 14.5px; color: var(--gray-600); }
.dm-foot p { display: flex; gap: 20px; }
.dm-foot a:hover { color: var(--blue-500); }

@media (max-width: 940px) {
  .dm-page, .dm-agenda, .dm-film { padding-bottom: 90px; }
  .dm-agenda ol { grid-template-columns: minmax(0, 1fr); max-width: 560px; margin: 34px auto 0; }
  .dm-agenda li { grid-template-columns: 64px minmax(0, 1fr); column-gap: 10px; padding: 22px 22px 24px; }
  .dm-agenda li::before { grid-row: span 2; margin: 0; font-size: 36px; }
  .dm-film { grid-template-columns: minmax(0, 1fr); gap: 28px; max-width: 720px; text-align: center; }
}
@media (max-width: 800px) {
  .dm-hero { padding-top: 38px; }
  .dm-book { margin-top: 36px; padding: 22px 12px 16px; border-radius: 26px; }
  .dm-book-head { padding: 0 10px 14px; }
  /* Sur petit écran le calendrier s'empile : il lui faut plus de hauteur, comme sur la page actuelle */
  .dm-frame iframe { height: 1000px; }
  .dm-page, .dm-agenda, .dm-film { padding-bottom: 64px; }
  .dm-sub { font-size: 16.5px; }
  .dm-ask { margin-bottom: 48px; padding: 28px 20px; font-size: 17px; }
}
@media (max-width: 560px) {
  .dm-top { padding-top: 18px; }
  .dm-top img { height: 30px; }
  .dm-foot { justify-content: center; text-align: center; }
}

/* >>> Réglage « ordinateur portable » (généré par outils/reglage-portable.py, ne pas modifier à la main) */
@media (min-width: 1100px) and (max-height: 900px) {
  .dm-agenda h2, .dm-film h2 { font-size: clamp(28px, 2.7vw, 37px); }
}
/* <<< fin du réglage « ordinateur portable » */
