/* ==========================================================================
   DIGITAL LION · Page Contact
   Hero compact (deux choix), agenda Calendly chargé au clic, formulaire.
   Construit sur les tokens de style.css (rayons 16/6, sans ombres).
   ========================================================================== */

/* --------------------------------------------------------------------------
   Hero compact : pas de plein écran, on arrive vite aux deux choix
   -------------------------------------------------------------------------- */
.hero--contact {
  height: auto;
  min-height: 0;
  overflow: hidden;
  padding: clamp(130px, 17vh, 180px) 0 clamp(24px, 4vw, 48px);
}
.hero--contact .hero__content { height: auto; padding-top: 0; gap: 24px; }
.hero--contact .hero__title { font-size: clamp(44px, 6vw, 92px); }
.hero--contact .hero__sub { max-width: 640px; }
.hero--contact .hero__glow { top: 46%; width: 80vmin; height: 80vmin; }
.hero--contact .hero__vignette { display: none; }

.choices {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
  width: min(820px, 100%);
  margin-top: 16px;
}
.choice {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 18px;
  padding: 22px 22px 22px 20px;
  border-radius: var(--r-card);
  background: var(--c-kelp);
  box-shadow: inset 0 0 0 1px var(--c-line);
  text-align: left;
  transition: background 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out), transform 0.6s var(--ease-out);
}
.choice--main { box-shadow: inset 0 0 0 1px rgba(0, 212, 255, 0.35); background: linear-gradient(180deg, #1b1840 0%, var(--c-kelp) 100%); }
.choice:hover { background: var(--c-kelp-2); transform: translateY(-3px); }
.choice__ico { width: 48px; height: 48px; border-radius: var(--r-sm); display: grid; place-items: center; background: var(--c-arrow-bg); color: var(--c-cyan); }
.choice__ico svg { width: 26px; height: 26px; }
.choice__text strong { display: block; font-size: 19px; font-weight: 500; letter-spacing: -0.02em; color: var(--c-platinum); }
.choice__text small { display: block; margin-top: 5px; font-size: 14px; color: var(--c-silver); }
.choice:hover .arrow-btn { background: var(--c-cyan); color: var(--c-abyss); }
.choice:hover .arrow-btn svg { transform: rotate(45deg); }

.choices__call { font-size: 15px; color: var(--c-silver); }
.choices__call a { color: var(--c-platinum); border-bottom: 1px solid rgba(0, 212, 255, 0.5); transition: color 0.3s, border-color 0.3s; }
.choices__call a:hover { color: var(--c-cyan); border-color: var(--c-cyan); }

/* --------------------------------------------------------------------------
   Blocs Audit / Formulaire : texte à gauche, outil à droite
   -------------------------------------------------------------------------- */
.contact-block { scroll-margin-top: 40px; }
#audit.contact-block { padding-top: clamp(64px, 8vw, 110px); }
#message.contact-block { padding-top: clamp(24px, 4vw, 56px); }
.contact-block__grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(40px, 6vw, 110px); align-items: start; }
.contact-block__intro { position: sticky; top: 120px; display: grid; gap: 24px; align-content: start; }
.contact-block__intro .body { max-width: 460px; }

.audit-list { display: grid; gap: 14px; margin-top: 8px; }
.audit-list li { display: flex; gap: 14px; align-items: flex-start; font-size: 16px; line-height: 1.45; color: var(--c-ash); }
.audit-list__ico { flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--c-arrow-bg); color: var(--c-cyan); margin-top: -1px; }
.audit-list__ico svg { width: 13px; height: 13px; }
.audit-tags { display: flex; flex-wrap: wrap; gap: 8px; }

/* Agenda Calendly : rien n'est chargé tant que le visiteur n'a pas cliqué */
.calendly-box {
  position: relative;
  min-height: 560px;
  border-radius: var(--r-card);
  background: var(--c-kelp);
  box-shadow: inset 0 0 0 1px var(--c-line);
  overflow: hidden;
}
.calendly-box__ph {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px;
  padding: 40px clamp(24px, 4vw, 56px);
  text-align: center;
  transition: opacity 0.5s var(--ease-out);
}
.calendly-box__ph::before {
  content: ""; position: absolute; left: 50%; top: 42%; width: 420px; height: 420px; transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(0, 212, 255, 0.12) 0%, rgba(139, 92, 246, 0.08) 40%, transparent 70%);
  pointer-events: none;
}
.calendly-box__ico { position: relative; width: 72px; height: 72px; border-radius: var(--r-card); display: grid; place-items: center; background: var(--c-arrow-bg); color: var(--c-cyan); }
.calendly-box__ico svg { width: 38px; height: 38px; }
.calendly-box__ph h3 { position: relative; font-size: clamp(26px, 2.4vw, 34px); letter-spacing: -0.03em; line-height: 1.05; }
.calendly-box__ph .body, .calendly-box__ph .btn { position: relative; }
.calendly-box__consent { position: relative; display: grid; gap: 18px; justify-items: center; max-width: 460px; }
.calendly-box__ph [hidden] { display: none !important; }
.calendly-box__consent .body { font-size: 15px; }
.calendly-box__consent-ctas { display: grid; gap: 14px; justify-items: center; }
.calendly-box__ext { font-size: 14px; color: var(--c-silver); text-decoration: underline; text-underline-offset: 3px; transition: color 0.3s; }
.calendly-box__ext:hover { color: var(--c-platinum); }
.calendly-box iframe { display: block; width: 100%; height: 720px; border: 0; opacity: 0; transition: opacity 0.8s var(--ease-out); }
.calendly-box.is-loading .calendly-box__ph { opacity: 0.4; pointer-events: none; }
.calendly-box.is-loaded { background: #fff; }
.calendly-box.is-loaded .calendly-box__ph { opacity: 0; pointer-events: none; }
.calendly-box.is-loaded iframe { opacity: 1; }

/* Coordonnées */
.contact-infos { display: grid; gap: 12px; margin-top: 8px; }
.contact-infos li { display: flex; align-items: center; gap: 16px; padding: 16px 18px; border-radius: var(--r-card); background: var(--c-kelp); }
.contact-infos__ico { flex: none; width: 40px; height: 40px; border-radius: var(--r-sm); display: grid; place-items: center; background: var(--c-arrow-bg); color: var(--c-cyan); }
.contact-infos__ico svg { width: 22px; height: 22px; }
.contact-infos small { display: block; margin-bottom: 4px; }
.contact-infos a, .contact-infos strong { font-size: 17px; font-weight: 500; letter-spacing: -0.01em; color: var(--c-platinum); }
.contact-infos a:hover { color: var(--c-cyan); }
.contact-infos strong { display: block; }
.contact-infos strong + strong { margin-top: 2px; }

/* --------------------------------------------------------------------------
   Formulaire
   -------------------------------------------------------------------------- */
.cform-wrap {
  position: relative;
  border-radius: var(--r-card);
  background: var(--c-kelp);
  box-shadow: inset 0 0 0 1px var(--c-line);
  padding: clamp(24px, 3.2vw, 48px);
}
.cform__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 18px; }
.field { display: grid; gap: 10px; align-content: start; min-width: 0; }
.field--full { grid-column: 1 / -1; }
.field > label:not(.consent), .chips legend {
  font-size: 12px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--c-mist);
}
.field__req { color: var(--c-cyan); }
.field__opt { margin-left: 6px; font-size: 10px; letter-spacing: 0.12em; color: var(--c-slate); }

.field input[type="text"], .field input[type="tel"], .field input[type="email"], .field textarea {
  width: 100%;
  padding: 0 16px;
  height: 54px;
  border: 0; border-radius: var(--r-sm);
  background: rgba(255, 255, 255, 0.035);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
  font: inherit; font-size: 16px; color: var(--c-platinum);
  transition: box-shadow 0.35s var(--ease-out), background 0.35s var(--ease-out);
}
.field textarea { height: auto; min-height: 150px; padding: 15px 16px; line-height: 1.5; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: var(--c-slate); }
.field input:hover, .field textarea:hover { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18); }
.field input:focus, .field textarea:focus { outline: none; background: rgba(0, 212, 255, 0.04); box-shadow: inset 0 0 0 1px var(--c-cyan); }
.field.is-invalid input, .field.is-invalid textarea { box-shadow: inset 0 0 0 1px #ff7a90; }
.field__error { min-height: 0; font-size: 13px; color: #ff9aab; }
.field__error:empty { display: none; }
.field input:-webkit-autofill { -webkit-text-fill-color: var(--c-platinum); -webkit-box-shadow: inset 0 0 0 1px rgba(255,255,255,0.1), inset 0 0 0 60px #17173a; caret-color: var(--c-platinum); }

/* Pastilles « solution » */
.chips { border: 0; padding: 0; margin: 0; }
.chips legend { padding: 0; margin-bottom: 12px; }
.chips__list { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip span {
  display: inline-flex; align-items: center; gap: 8px;
  height: 40px; padding: 0 16px;
  border-radius: var(--r-sm);
  background: rgba(255, 255, 255, 0.035);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
  font-size: 14px; color: var(--c-ash);
  transition: background 0.35s var(--ease-out), color 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
}
.chip span::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
  transition: background 0.35s, box-shadow 0.35s;
}
.chip:hover span { color: var(--c-platinum); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22); }
.chip input:checked + span { color: #0a0a1a; background: var(--g-aurora); box-shadow: none; }
.chip input:checked + span::before { background: #0a0a1a; box-shadow: none; }
.chip input:focus-visible + span { outline: 2px solid var(--c-cyan); outline-offset: 2px; }

/* Consentement */
.consent { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: start; cursor: pointer; }
.consent input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.consent__box {
  width: 22px; height: 22px; margin-top: 1px;
  border-radius: var(--r-sm);
  display: grid; place-items: center;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
  color: #0a0a1a;
  transition: background 0.3s, box-shadow 0.3s;
}
.consent__box svg { width: 14px; height: 14px; opacity: 0; transform: scale(0.6); transition: opacity 0.3s, transform 0.4s var(--ease-out); }
.consent input:checked + .consent__box { background: var(--c-cyan); box-shadow: none; }
.consent input:checked + .consent__box svg { opacity: 1; transform: none; }
.consent input:focus-visible + .consent__box { outline: 2px solid var(--c-cyan); outline-offset: 2px; }
.field.is-invalid .consent__box { box-shadow: inset 0 0 0 1px #ff7a90; }
.consent__text { font-size: 14px; line-height: 1.5; color: var(--c-silver); }
.consent__text a { color: var(--c-mist); text-decoration: underline; text-underline-offset: 3px; }
.consent__text a:hover { color: var(--c-cyan); }

/* Piège à robots : hors écran */
.cform__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.cform__captcha:empty { display: none; }

.cform__foot { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 4px; }
.cform__submit { min-width: 240px; }
.cform__spinner {
  position: absolute; left: 50%; top: 50%; width: 20px; height: 20px; margin: -10px 0 0 -10px;
  border-radius: 50%; border: 2px solid rgba(10, 10, 26, 0.25); border-top-color: #0a0a1a;
  opacity: 0; animation: cformSpin 0.8s linear infinite;
}
@keyframes cformSpin { to { transform: rotate(360deg); } }
.cform.is-sending .cform__submit { pointer-events: none; }
.cform.is-sending .cform__submit .btn__label, .cform.is-sending .cform__submit .btn__icon { opacity: 0; }
.cform.is-sending .cform__spinner { opacity: 1; }
.cform__hint .field__req { margin-right: 4px; }

.cform__status { margin-top: 18px; font-size: 14px; line-height: 1.5; color: #ff9aab; }
.cform__status:empty { display: none; }
.cform__status a { color: var(--c-platinum); text-decoration: underline; text-underline-offset: 3px; }

/* Message envoyé */
.cform-success {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px;
  min-height: 520px; padding: 24px;
  text-align: center;
}
.cform-success[hidden] { display: none; }
.cform-success:focus { outline: none; }
.cform-success__ico {
  width: 76px; height: 76px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--g-aurora); color: #0a0a1a;
}
.cform-success__ico svg { width: 34px; height: 34px; }
.cform-success h3 { font-size: clamp(30px, 3vw, 42px); letter-spacing: -0.03em; line-height: 1; }
.cform-success .body { max-width: 380px; }
.cform-success .btn { margin-top: 8px; }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1000px) {
  .contact-block__grid { grid-template-columns: 1fr; }
  .contact-block__intro { position: static; }
}
@media (max-width: 700px) {
  .choices { grid-template-columns: 1fr; }
  .cform__grid { grid-template-columns: 1fr; }
  .cform__submit { width: 100%; }
  .calendly-box { min-height: 480px; }
  .calendly-box iframe { height: 900px; }
}
