/* ═══════════════════════════════════════════════════════════════════════════
   CLEARZI — Pages « Planifier une démo » (fournisseur / acheteur)
   Hero clair + widget Calendly encadré. Consomme les tokens var(--cz-*)
   (les #000 sont des masques d'alpha, pas des couleurs).
   ═══════════════════════════════════════════════════════════════════════════ */

/* ══ Hero ══ */
.dm-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(42% 60% at 12% 0%, rgba(124, 247, 212, 0.2), transparent 62%),
    radial-gradient(48% 66% at 88% 16%, rgba(124, 247, 212, 0.14), transparent 68%),
    linear-gradient(180deg, var(--cz-azure) 0%, var(--cz-bg-base) 96%);
}

.dm-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: var(--cz-dots-ink);
  background-size: 26px 26px;
  -webkit-mask: linear-gradient(#000 45%, transparent 92%);
  mask: linear-gradient(#000 45%, transparent 92%);
  opacity: 0.5;
  pointer-events: none;
}

.dm-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 660px;
  margin: 0 auto;
  padding: 158px var(--cz-margin) 12px;
  text-align: center;
}

.dm-hero .section-tag {
  margin-bottom: 20px;
}

.dm-hero h1 {
  font-size: clamp(1.9rem, 3.2vw, 2.6rem);
  letter-spacing: -0.03em;
}

.dm-hero-sub {
  margin: 16px auto 0;
  max-width: 34em;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--cz-text-soft);
}

/* points de réassurance sous le titre */
.dm-points {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 26px;
  margin: 24px auto 0;
}

.dm-point {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--cz-font-medium);
  font-weight: 500;
  font-size: 13px;
  color: var(--cz-text-soft);
}

.dm-point svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  fill: none;
  stroke: var(--cz-brand-700);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ══ Widget Calendly encadré ══ */
.dm-widget-section {
  max-width: calc(var(--cz-content-max) - var(--cz-margin) * 2);
  margin: 0 auto;
  padding: 28px var(--cz-margin) 88px;
}

.dm-widget {
  background: var(--cz-white);
  border: 1px solid var(--cz-border-medium);
  border-radius: var(--cz-radius-panel);
  box-shadow: var(--cz-shadow-card);
  overflow: hidden;
}

.calendly-inline-widget {
  min-width: 320px;
  height: 720px;
}

/* ══ Placeholder RGPD du Calendly ══
   Affiché tant que les cookies fonctionnels ne sont pas acceptés ; cookies.js
   pose [hidden] dès l'accord et active le script du widget. Tant qu'il est
   visible, le conteneur du widget (680–720 px de vide) est replié. */
.dm-cc-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 320px;
  margin: 0 26px 26px;
  padding: 32px 28px;
  text-align: center;
  background: var(--cz-bg-base);
  border: 1px dashed var(--cz-border-moderate);
  border-radius: var(--cz-radius-lg);
}

.dm-cc-placeholder[hidden] { display: none; }

.dm-cc-placeholder p {
  max-width: 36ch;
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  color: var(--cz-text-soft);
}

.dm-cc-placeholder small {
  max-width: 42ch;
  font-size: 12px;
  line-height: 1.5;
  color: var(--cz-text-moderate);
}

.dm-cc-placeholder:not([hidden]) + .calendly-inline-widget { display: none; }

/* variante dmx (deux voies côte à côte) : la colonne n'a pas de marge intérieure */
.dmx .dm-cc-placeholder { margin: 0; }

/* ══ Variante duo : formulaire à gauche, Calendly à droite ══
   Le pattern « parlez-nous » des fintechs : deux voies côte à côte,
   chacune dans sa carte, avec un en-tête qui nomme l'option. */
.dm-duo {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 24px;
  align-items: start;
  max-width: calc(var(--cz-content-max) - var(--cz-margin) * 2);
  margin: 0 auto;
  padding: 34px var(--cz-margin) 88px;
}

/* en-tête de panneau : pastille + titre + sous-ligne */
.dm-panel-head {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 24px;
}

.dm-panel-ic {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border-radius: var(--cz-radius-full);
  background: var(--cz-bg-selected);
  border: 1px solid var(--cz-brand-border-soft);
}

.dm-panel-ic svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: var(--cz-brand-700);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.dm-panel-id {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.dm-panel-title {
  font-family: var(--cz-font-medium);
  font-weight: 500;
  font-size: 1.06rem;
  letter-spacing: -0.01em;
  color: var(--cz-ink);
}

.dm-panel-sub {
  font-size: 13px;
  color: var(--cz-text-moderate);
}

/* en-tête posé dans la carte Calendly (le widget colle en dessous) */
.dm-panel-head--widget {
  padding: 26px 26px 0;
  margin-bottom: 10px;
}

/* le Calendly de la vue duo : un peu moins haut que la pleine page */
.dm-duo .calendly-inline-widget {
  height: 680px;
}

/* écran de confirmation : reprend la carte du formulaire qu'il remplace */
.dm-duo .ct-success {
  background: var(--cz-white);
  border: 1px solid var(--cz-border-medium);
  border-radius: var(--cz-radius-panel);
  box-shadow: var(--cz-shadow-card);
  padding: 56px 32px;
}

/* ══ Variante « split » fintech : pitch à gauche, actions à droite ══
   Toute la page tient dans l'écran : colonne de gauche persuasive (titre,
   réassurance, email, confiance), colonne de droite avec les deux cartes
   d'action à hauteur égale. Le hero centré disparaît. */
.dmx {
  display: grid;
  grid-template-columns: minmax(320px, 400px) 1fr;
  min-height: 100vh;
}

.dmx-side {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 40px;
  padding: 26px 48px 44px;
  overflow: hidden;
  background:
    radial-gradient(46% 52% at 18% 0%, rgba(124, 247, 212, 0.22), transparent 62%),
    radial-gradient(54% 60% at 92% 24%, rgba(124, 247, 212, 0.12), transparent 68%),
    linear-gradient(180deg, var(--cz-azure) 0%, var(--cz-bg-base) 100%);
  border-right: 1px solid var(--cz-border-medium);
}

.dmx-side::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: var(--cz-dots-ink);
  background-size: 26px 26px;
  -webkit-mask: linear-gradient(#000 40%, transparent 90%);
  mask: linear-gradient(#000 40%, transparent 90%);
  opacity: 0.5;
  pointer-events: none;
}

.dmx-side > * {
  position: relative;
  z-index: 1;
}

/* le logo vit dans la colonne : il ne chevauche jamais la couture du split */
.dmx-logo {
  display: inline-flex;
  align-self: flex-start;
}

/* un poil plus grand : c'est la marque principale de la page de conversion */
.dmx-logo img {
  width: 146px;
  height: auto;
}

/* rangée d'en-tête de la page de conversion : logo à gauche, langue à droite.
   z-index au-dessus des autres enfants de .dmx-side (tous à z-index:1) pour que
   la liste déroulante de langue passe par-dessus le pitch, pas dessous. */
.dmx-top {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.dmx-side h1 {
  margin-top: 20px;
  font-size: clamp(1.7rem, 2.5vw, 2.25rem);
  letter-spacing: -0.03em;
}

.dmx-sub {
  margin-top: 14px;
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--cz-text-soft);
}

.dmx-checks {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 26px;
}

.dmx-checks li {
  position: relative;
  padding-left: 31px;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--cz-text-soft);
}

.dmx-checks li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 21px;
  height: 21px;
  border-radius: var(--cz-radius-full);
  background-color: var(--cz-bg-selected);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23007d63' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4L18 8'/%3E%3C/svg%3E");
  background-size: 12px;
  background-position: center;
  background-repeat: no-repeat;
}

/* l'email, bien visible : carte cliquable pastille + adresse */
.dmx-mail {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  margin-top: 30px;
  padding: 13px 20px 13px 13px;
  align-self: flex-start;
  background: var(--cz-white);
  border: 1px solid var(--cz-border-medium);
  border-radius: var(--cz-radius-lg);
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.dmx-mail:hover {
  border-color: var(--cz-brand-400);
  box-shadow: var(--cz-shadow-xs);
}

.dmx-mail-ic {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: var(--cz-radius-full);
  background: var(--cz-bg-selected);
}

.dmx-mail-ic svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: var(--cz-brand-700);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.dmx-mail-id {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.dmx-mail-label {
  font-size: 12px;
  color: var(--cz-text-moderate);
}

.dmx-mail-addr {
  font-family: var(--cz-font-medium);
  font-weight: 500;
  font-size: 15px;
  color: var(--cz-brand-700);
}

/* confiance, en pied de colonne (façon Aria) */
.dmx-trust {
  margin-top: auto;
}

.dmx-trust-caption {
  font-family: var(--cz-font-medium);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cz-neutral-bolder);
}

/* variante compacte du marquee global (styles.css), pour la colonne étroite */
.dmx-trust-marquee {
  margin-top: 16px;
}

.dmx-trust-marquee .marquee-list {
  gap: 36px;
  padding-right: 36px;
}

.dmx-trust-marquee .marquee-list img {
  height: 24px;
  max-width: 92px;
}

.dmx-trust-marquee .marquee-track {
  animation-duration: 60s;
}

/* footer minimal de page de conversion : la ligne légale, rien d'autre —
   en blanc, dans la continuité de la surface d'actions */
.dmx-footer {
  background: var(--cz-white);
  border-top: 1px solid var(--cz-border-medium);
}

/* une seule rangée : la marque à gauche, le bloc légal à droite */
.dmx-footer .footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px 40px;
  padding: 22px var(--cz-margin);
}

.dmx-footer-logo {
  flex-shrink: 0;
}

.dmx-footer-logo img {
  display: block;
}

.dmx-footer .footer-legal {
  margin-top: 0;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  text-align: right;
  color: var(--cz-text-moderate);
}

.dmx-footer .footer-legal-links a {
  color: var(--cz-text-soft);
}

.dmx-footer .footer-legal-links a:hover {
  color: var(--cz-ink);
}

/* la zone d'actions : une seule surface blanche, pas de cartes.
   Les deux options vivent directement sur la page, séparées d'un filet —
   le fond blanc du Calendly se fond dans la surface, sans couture. */
.dmx-actions {
  display: grid;
  grid-template-columns: 1.02fr 1fr;
  gap: 0;
  align-items: stretch;
  align-content: start;
  padding: 30px 44px 64px;
  background: var(--cz-white);
}

.dmx .dm-col {
  display: flex;
  padding-right: 56px;
}

/* le formulaire perd son chrome de carte : intégré à la surface */
.dmx .ct-form {
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 0;
  background: none;
  border: none;
  border-radius: 0;
  box-shadow: none;
}

/* le Calendly aussi : seul un filet vertical sépare les deux voies */
.dmx .dm-widget {
  position: relative;
  background: none;
  border: none;
  border-radius: 0;
  box-shadow: none;
  overflow: visible;
  border-left: 1px solid var(--cz-border-medium);
  padding-left: 44px;
}

/* pastille « ou » centrée sur le filet : rend l'alternative explicite
   (soit le formulaire, soit le créneau — pas deux étapes) */
.dmx-ou {
  position: absolute;
  top: 50%;
  left: 0;
  transform: translate(-50%, -50%);
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: var(--cz-white);
  border: 1px solid var(--cz-border-medium);
  font-size: 14px;
  color: var(--cz-text-soft);
}

.dmx .dm-panel-head--widget {
  padding: 0;
  margin-bottom: 24px;
}

.dmx .dmx-grow {
  flex: 1;
}

.dmx .dmx-grow .ct-textarea {
  flex: 1;
  min-height: 148px;
}

.dmx .calendly-inline-widget {
  height: 680px;
}

.dmx .ct-success {
  width: 100%;
  padding: 48px 0;
}

/* ══ Responsive ══ */
/* on garde formulaire + Calendly côte à côte le plus longtemps possible ;
   ils ne s'empilent qu'en dessous de 1280px (tablettes), le filet vertical
   devenant alors horizontal. */
@media (max-width: 1280px) {
  .dmx-actions {
    grid-template-columns: 1fr;
    padding: 44px 40px 64px;
  }

  .dmx .dm-col {
    padding-right: 0;
  }

  .dmx .dm-widget {
    border-left: none;
    border-top: 1px solid var(--cz-border-medium);
    padding-left: 0;
    padding-top: 44px;
    margin-top: 44px;
  }

  /* colonnes empilées : la pastille passe sur le filet horizontal */
  .dmx-ou {
    top: 0;
    left: 50%;
  }
}

/* tablettes (colonnes empilées) : le pitch reste collé en vue — logo, CTA et
   confiance toujours visibles pendant qu'on fait défiler formulaire + Calendly */
@media (min-width: 961px) and (max-width: 1280px) {
  .dmx-side {
    position: sticky;
    top: 0;
    align-self: start;
    min-height: 100vh;
  }
}

@media (max-width: 960px) {
  /* le split se replie : pitch en bandeau, actions en dessous */
  .dmx {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .dmx-side {
    padding: 28px 24px 40px;
    border-right: none;
    border-bottom: 1px solid var(--cz-border-medium);
    gap: 30px;
  }

  .dmx-actions {
    padding: 36px 20px 56px;
  }
}

@media (max-width: 1024px) {
  /* les deux voies s'empilent : formulaire d'abord, Calendly ensuite */
  .dm-duo {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .dm-hero-inner {
    padding: 128px 20px 12px;
  }

  .dm-widget-section,
  .dm-duo {
    padding: 22px 16px 64px;
  }

  /* la vue Calendly s'empile en mobile : plus de hauteur */
  .calendly-inline-widget,
  .dm-duo .calendly-inline-widget,
  .dmx .calendly-inline-widget {
    height: 960px;
  }
}
