.cc-contact,
.cc-contact * {
  box-sizing: border-box;
}

.cc-contact {
  --cc-violet: #5b2a86;
  --cc-violet-dark: #35134f;
  --cc-violet-soft: #f5effa;

  --cc-green: #1f8a5b;
  --cc-red: #c43c52;

  --cc-ink: #19151f;
  --cc-muted: #6d6674;
  --cc-line: #e5e0e8;
  --cc-surface: #ffffff;

  --cc-shadow: 0 22px 60px rgba(44, 20, 60, 0.1);

  max-width: 1120px;
  margin: 0 auto;
  padding: clamp(24px, 4vw, 56px);

  border: 1px solid rgba(91, 42, 134, 0.12);
  border-radius: 30px;

  background:
    radial-gradient(
      circle at 95% 0%,
      rgba(91, 42, 134, 0.12),
      transparent 32%
    ),
    linear-gradient(
      180deg,
      #ffffff 0%,
      #fcfafc 100%
    );

  box-shadow: var(--cc-shadow);
  color: var(--cc-ink);

  transition:
    background 180ms ease,
    border-color 180ms ease,
    color 180ms ease,
    box-shadow 180ms ease;
}


/* =========================================================
   INTRODUCTION
   ========================================================= */

.cc-contact__intro {
  max-width: 760px;
  margin-bottom: 28px;
}

.cc-contact__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;

  margin-bottom: 10px;

  color: var(--cc-violet);

  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.cc-contact__eyebrow::before {
  width: 20px;
  height: 3px;

  border-radius: 99px;

  background:
    linear-gradient(
      90deg,
      var(--cc-red),
      var(--cc-violet)
    );

  content: "";
}

.cc-contact h2 {
  margin: 0 0 12px;

  color: var(--cc-ink);

  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.cc-contact__intro p {
  margin: 0;

  color: var(--cc-muted);

  font-size: clamp(1rem, 1.5vw, 1.15rem);
  line-height: 1.65;
}


/* =========================================================
   CHOIX DU PROFIL
   ========================================================= */

.cc-audience {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;

  margin: 0;
  padding: 0;

  border: 0;
}

.cc-audience-card {
  display: block;

  cursor: pointer;
}

.cc-audience-card > input {
  position: absolute;

  width: 1px;
  height: 1px;

  opacity: 0;
  pointer-events: none;
}

.cc-audience-card__surface {
  position: relative;

  display: flex;
  min-height: 154px;

  flex-direction: column;
  align-items: flex-start;
  gap: 14px;

  padding: 22px;

  overflow: hidden;

  border: 1px solid var(--cc-line);
  border-radius: 20px;

  background: rgba(255, 255, 255, 0.84);

  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

.cc-audience-card__surface::after {
  position: absolute;
  right: -32px;
  bottom: -48px;

  width: 120px;
  height: 120px;

  border-radius: 50%;

  background: rgba(91, 42, 134, 0.06);

  content: "";

  transition: transform 180ms ease;
}

.cc-audience-card:hover .cc-audience-card__surface {
  transform: translateY(-3px);

  border-color: rgba(91, 42, 134, 0.34);

  box-shadow:
    0 14px 30px rgba(44, 20, 60, 0.09);
}

.cc-audience-card:hover .cc-audience-card__surface::after {
  transform: scale(1.25);
}

.cc-audience-card > input:focus-visible + .cc-audience-card__surface {
  outline: 3px solid rgba(91, 42, 134, 0.26);
  outline-offset: 3px;
}

.cc-audience-card > input:checked + .cc-audience-card__surface {
  border-color: var(--cc-violet);

  background:
    linear-gradient(
      145deg,
      #ffffff 0%,
      var(--cc-violet-soft) 100%
    );

  box-shadow:
    0 16px 34px rgba(91, 42, 134, 0.16);
}

.cc-audience-card__icon {
  display: grid;

  width: 46px;
  height: 46px;

  place-items: center;

  border-radius: 14px;

  background: var(--cc-violet-soft);
  color: var(--cc-violet);
}

.cc-audience-card__icon svg {
  width: 25px;
  height: 25px;

  fill: currentColor;
}

.cc-audience-card__text {
  display: grid;
  gap: 5px;

  padding-right: 22px;
}

.cc-audience-card__text strong {
  color: var(--cc-ink);

  font-size: 1.08rem;
}

.cc-audience-card__text small {
  color: var(--cc-muted);

  font-size: 0.9rem;
  line-height: 1.45;
}

.cc-audience-card__check {
  position: absolute;
  top: 20px;
  right: 20px;

  display: grid;

  width: 22px;
  height: 22px;

  place-items: center;

  border: 1px solid #cfc7d4;
  border-radius: 50%;

  background: #ffffff;
}

.cc-audience-card > input:checked
  + .cc-audience-card__surface
  .cc-audience-card__check {

  border-color: var(--cc-violet);
  background: var(--cc-violet);
}

.cc-audience-card > input:checked
  + .cc-audience-card__surface
  .cc-audience-card__check::after {

  width: 7px;
  height: 4px;

  transform:
    translateY(-1px)
    rotate(-45deg);

  border-bottom: 2px solid #ffffff;
  border-left: 2px solid #ffffff;

  content: "";
}


/* =========================================================
   CORPS DU FORMULAIRE
   ========================================================= */

.cc-form__body {
  margin-top: 26px;

  padding: clamp(22px, 4vw, 36px);

  border: 1px solid var(--cc-line);
  border-radius: 22px;

  background: var(--cc-surface);

  opacity: 0;

  transform: translateY(8px);

  transition:
    opacity 220ms ease,
    transform 220ms ease,
    background 180ms ease,
    border-color 180ms ease;
}

.cc-form__body.is-visible {
  opacity: 1;
  transform: none;
}

.cc-section-heading {
  display: flex;

  align-items: center;
  justify-content: space-between;
  gap: 16px;

  margin-bottom: 24px;
  padding-bottom: 16px;

  border-bottom: 1px solid var(--cc-line);
}

.cc-section-heading > span {
  font-size: 1.12rem;
  font-weight: 750;
}

.cc-section-heading > strong {
  display: inline-flex;

  align-items: center;

  min-height: 30px;

  padding: 5px 10px;

  border-radius: 999px;

  background: var(--cc-violet-soft);
  color: var(--cc-violet-dark);

  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}


/* =========================================================
   GRILLES
   ========================================================= */

.cc-grid {
  display: grid;
  gap: 18px;
}

.cc-grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}


/* =========================================================
   CONTEXTE
   ========================================================= */

.cc-context {
  margin: 24px 0 0;
  padding: 24px;

  border: 0;
  border-radius: 18px;

  background: #faf8fb;

  transition: background 180ms ease;
}


/* =========================================================
   CHAMPS
   ========================================================= */

.cc-field {
  min-width: 0;
}

.cc-field--full {
  grid-column: 1 / -1;
}

.cc-field label {
  display: block;

  margin-bottom: 8px;

  color: var(--cc-ink);

  font-size: 0.92rem;
  font-weight: 680;
}

.cc-field label > span:not(.cc-optional),
.cc-required span {
  color: var(--cc-red);
}

.cc-optional {
  margin-left: 4px;

  color: var(--cc-muted);

  font-size: 0.76rem;
  font-weight: 500;
}

.cc-field input,
.cc-field select,
.cc-field textarea {
  width: 100%;
  min-height: 50px;

  padding: 12px 14px;

  border: 1px solid #d7d1db;
  border-radius: 12px;

  background: #ffffff;
  color: var(--cc-ink);

  font: inherit;
  line-height: 1.4;

  transition:
    border-color 150ms ease,
    box-shadow 150ms ease,
    background 150ms ease,
    color 150ms ease;
}

.cc-field textarea {
  min-height: 170px;

  resize: vertical;
}

.cc-field input:hover,
.cc-field select:hover,
.cc-field textarea:hover {
  border-color: #bdb2c4;
}

.cc-field input:focus,
.cc-field select:focus,
.cc-field textarea:focus {
  outline: none;

  border-color: var(--cc-violet);

  box-shadow:
    0 0 0 4px rgba(91, 42, 134, 0.11);
}

.cc-field input::placeholder,
.cc-field textarea::placeholder {
  color: #9b949f;
}

.cc-field select option {
  color: var(--cc-ink);
  background: #ffffff;
}


/* =========================================================
   MESSAGE + COMPTEUR
   ========================================================= */

.cc-field--message {
  position: relative;

  margin-top: 24px;
}

.cc-counter {
  position: absolute;
  right: 12px;
  bottom: 10px;

  padding: 3px 6px;

  border-radius: 6px;

  background: rgba(255, 255, 255, 0.9);
  color: var(--cc-muted);

  font-size: 0.72rem;
}


/* =========================================================
   CONSENTEMENT
   ========================================================= */

.cc-consent {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 12px;

  margin-top: 22px;

  color: var(--cc-muted);

  font-size: 0.88rem;
  line-height: 1.55;

  cursor: pointer;
}

.cc-consent input {
  width: 18px;
  height: 18px;

  margin-top: 2px;

  accent-color: var(--cc-violet);
}

.cc-consent a {
  color: var(--cc-violet);

  font-weight: 650;
}

.cc-turnstile {
  margin-top: 20px;
}


/* =========================================================
   PIED DU FORMULAIRE
   ========================================================= */

.cc-form__footer {
  display: flex;

  align-items: center;
  justify-content: space-between;
  gap: 18px;

  margin-top: 26px;
}

.cc-required {
  margin: 0;

  color: var(--cc-muted);

  font-size: 0.8rem;
}


/* =========================================================
   BOUTON
   ========================================================= */

.cc-submit {
  display: inline-flex;

  min-height: 52px;

  align-items: center;
  justify-content: center;
  gap: 14px;

  padding: 13px 20px 13px 22px;

  border: 0;
  border-radius: 14px;

  background:
    linear-gradient(
      135deg,
      var(--cc-violet),
      var(--cc-violet-dark)
    );

  box-shadow:
    0 12px 24px rgba(91, 42, 134, 0.2);

  color: #ffffff;

  font: inherit;
  font-weight: 720;

  cursor: pointer;

  transition:
    transform 150ms ease,
    box-shadow 150ms ease,
    opacity 150ms ease;
}

.cc-submit:hover {
  transform: translateY(-2px);

  box-shadow:
    0 16px 28px rgba(91, 42, 134, 0.26);
}

.cc-submit:focus-visible {
  outline:
    3px solid rgba(91, 42, 134, 0.25);

  outline-offset: 3px;
}

.cc-submit:disabled {
  opacity: 0.72;

  cursor: wait;
}

.cc-submit__arrow {
  font-size: 1.25rem;
  line-height: 1;

  transition: transform 150ms ease;
}

.cc-submit:hover .cc-submit__arrow {
  transform: translateX(3px);
}

.cc-submit.is-loading .cc-submit__arrow {
  animation:
    cc-pulse 900ms ease-in-out
    infinite alternate;
}


/* =========================================================
   MESSAGES DE STATUT
   ========================================================= */

.cc-status {
  margin-top: 20px;

  padding: 14px 16px;

  border-radius: 12px;

  font-size: 0.92rem;
  line-height: 1.5;
}

.cc-status[data-type="success"] {
  border:
    1px solid rgba(31, 138, 91, 0.25);

  background: #edf8f2;
  color: #195d3e;
}

.cc-status[data-type="error"] {
  border:
    1px solid rgba(196, 60, 82, 0.25);

  background: #fff0f2;
  color: #8e2436;
}

.cc-status[data-type="warning"] {
  border:
    1px solid rgba(176, 112, 0, 0.28);

  background: #fff8e8;
  color: #704900;
}


/* =========================================================
   HONEYPOT / ACCESSIBILITÉ
   ========================================================= */

.cc-honeypot {
  position: absolute !important;
  left: -9999px !important;

  width: 1px !important;
  height: 1px !important;

  overflow: hidden !important;
}

.cc-contact .screen-reader-text {
  position: absolute !important;

  width: 1px !important;
  height: 1px !important;

  padding: 0 !important;
  margin: -1px !important;

  overflow: hidden !important;

  clip: rect(0, 0, 0, 0) !important;

  white-space: nowrap !important;

  border: 0 !important;
}


/* =========================================================
   MODE SOMBRE CONVAINCRE
   ========================================================= */

html[data-cv-theme="dark"] .cc-contact {
  --cc-violet: #8d63b7;
  --cc-violet-dark: #67448b;
  --cc-violet-soft: #30243a;

  --cc-green: #66c292;
  --cc-red: #ef6a72;

  --cc-ink: #f8f4fa;
  --cc-muted: #bfb4c4;
  --cc-line: #403449;
  --cc-surface: #211a27;

  --cc-shadow:
    0 24px 70px rgba(5, 3, 7, 0.24);

  color-scheme: dark;

  border-color: rgba(141, 99, 183, 0.20);

  background:
    radial-gradient(
      circle at 95% 0%,
      rgba(95, 124, 245, 0.10),
      transparent 30%
    ),
    radial-gradient(
      circle at 5% 0%,
      rgba(141, 99, 183, 0.13),
      transparent 32%
    ),
    linear-gradient(
      180deg,
      #211a27 0%,
      #1b161f 100%
    );

  box-shadow:
    var(--cc-shadow);

  color:
    var(--cc-ink);
}


/* Intro */

html[data-cv-theme="dark"]
.cc-contact__eyebrow {
  color: #a77dca;
}

html[data-cv-theme="dark"]
.cc-contact__eyebrow::before {
  background:
    linear-gradient(
      90deg,
      #5f7cf5,
      #9a70bf
    );
}

html[data-cv-theme="dark"]
.cc-contact h2 {
  color: #fbf8fc;
}

html[data-cv-theme="dark"]
.cc-contact__intro p {
  color: #c4bac9;
}


/* Cartes audiences */

html[data-cv-theme="dark"]
.cc-audience-card__surface {
  border-color: #403449;

  background:
    linear-gradient(
      145deg,
      #28202f 0%,
      #241d2b 100%
    );
}

html[data-cv-theme="dark"]
.cc-audience-card__surface::after {
  background:
    rgba(141, 99, 183, 0.08);
}

html[data-cv-theme="dark"]
.cc-audience-card:hover
.cc-audience-card__surface {
  border-color:
    rgba(167, 125, 202, 0.52);

  background:
    linear-gradient(
      145deg,
      #2d2435 0%,
      #28202f 100%
    );

  box-shadow:
    0 16px 38px
    rgba(5, 3, 7, 0.28);
}

html[data-cv-theme="dark"]
.cc-audience-card > input:focus-visible
+ .cc-audience-card__surface {
  outline:
    3px solid rgba(95, 124, 245, 0.30);
}

html[data-cv-theme="dark"]
.cc-audience-card > input:checked
+ .cc-audience-card__surface {
  border-color: #8d63b7;

  background:
    linear-gradient(
      145deg,
      #342640 0%,
      #282030 100%
    );

  box-shadow:
    0 16px 38px
    rgba(91, 55, 119, 0.28);
}


/* Icônes */

html[data-cv-theme="dark"]
.cc-audience-card__icon {
  background:
    #33263e;

  color:
    #a77dca;

  border:
    1px solid #443250;
}

html[data-cv-theme="dark"]
.cc-audience-card:nth-child(even)
.cc-audience-card__icon {
  background:
    #242a46;

  color:
    #8096f8;

  border-color:
    #323b65;
}


/* Textes des cartes */

html[data-cv-theme="dark"]
.cc-audience-card__text strong {
  color:
    #fbf8fc;
}

html[data-cv-theme="dark"]
.cc-audience-card__text small {
  color:
    #b8aebd;
}


/* Radio visuelle */

html[data-cv-theme="dark"]
.cc-audience-card__check {
  border-color:
    #665b6c;

  background:
    #1d1723;
}

html[data-cv-theme="dark"]
.cc-audience-card > input:checked
+ .cc-audience-card__surface
.cc-audience-card__check {

  border-color:
    #8d63b7;

  background:
    #8d63b7;
}


/* Corps du formulaire */

html[data-cv-theme="dark"]
.cc-form__body {
  border-color:
    #403449;

  background:
    #211a27;

  box-shadow:
    0 18px 48px
    rgba(5, 3, 7, 0.16);
}


/* Titre de section */

html[data-cv-theme="dark"]
.cc-section-heading {
  border-bottom-color:
    #403449;

  color:
    #f8f4fa;
}

html[data-cv-theme="dark"]
.cc-section-heading > span {
  color:
    #f8f4fa;
}

html[data-cv-theme="dark"]
.cc-section-heading > strong {
  background:
    #30243a;

  color:
    #b78bd8;
}


/* Contexte */

html[data-cv-theme="dark"]
.cc-context {
  background:
    #1b161f;

  border:
    1px solid #372d40;
}


/* Labels */

html[data-cv-theme="dark"]
.cc-field label {
  color:
    #f4eff6;
}

html[data-cv-theme="dark"]
.cc-optional {
  color:
    #a99eae;
}


/* Inputs */

html[data-cv-theme="dark"]
.cc-field input,
html[data-cv-theme="dark"]
.cc-field select,
html[data-cv-theme="dark"]
.cc-field textarea {

  border-color:
    #493b54;

  background:
    #18131d;

  color:
    #f8f4fa;

  box-shadow:
    inset 0 1px 0
    rgba(255, 255, 255, 0.02);
}

html[data-cv-theme="dark"]
.cc-field input:hover,
html[data-cv-theme="dark"]
.cc-field select:hover,
html[data-cv-theme="dark"]
.cc-field textarea:hover {

  border-color:
    #685274;
}

html[data-cv-theme="dark"]
.cc-field input:focus,
html[data-cv-theme="dark"]
.cc-field select:focus,
html[data-cv-theme="dark"]
.cc-field textarea:focus {

  border-color:
    #7f65d8;

  box-shadow:
    0 0 0 4px
    rgba(95, 124, 245, 0.13);
}

html[data-cv-theme="dark"]
.cc-field input::placeholder,
html[data-cv-theme="dark"]
.cc-field textarea::placeholder {

  color:
    #817686;
}

html[data-cv-theme="dark"]
.cc-field select option {

  background:
    #211a27;

  color:
    #f8f4fa;
}


/* Compteur */

html[data-cv-theme="dark"]
.cc-counter {
  background:
    rgba(33, 26, 39, 0.94);

  color:
    #a99eae;
}


/* Consentement */

html[data-cv-theme="dark"]
.cc-consent {
  color:
    #b9afbe;
}

html[data-cv-theme="dark"]
.cc-consent a {
  color:
    #ad82d0;
}

html[data-cv-theme="dark"]
.cc-consent a:hover {
  color:
    #c29de0;
}


/* Pied du formulaire */

html[data-cv-theme="dark"]
.cc-required {
  color:
    #a99eae;
}


/* Bouton */

html[data-cv-theme="dark"]
.cc-submit {
  background:
    linear-gradient(
      135deg,
      #7650a0 0%,
      #604083 100%
    );

  box-shadow:
    0 12px 28px
    rgba(63, 38, 81, 0.38);

  color:
    #ffffff;
}

html[data-cv-theme="dark"]
.cc-submit:hover {
  background:
    linear-gradient(
      135deg,
      #865db1 0%,
      #6f4a95 100%
    );

  box-shadow:
    0 17px 34px
    rgba(63, 38, 81, 0.48);
}

html[data-cv-theme="dark"]
.cc-submit:focus-visible {
  outline:
    3px solid rgba(95, 124, 245, 0.32);
}


/* Messages */

html[data-cv-theme="dark"]
.cc-status[data-type="success"] {
  border-color:
    rgba(102, 194, 146, 0.28);

  background:
    #15251e;

  color:
    #8bd8ad;
}

html[data-cv-theme="dark"]
.cc-status[data-type="error"] {
  border-color:
    rgba(239, 106, 114, 0.30);

  background:
    #2d171d;

  color:
    #ff9da4;
}

html[data-cv-theme="dark"]
.cc-status[data-type="warning"] {
  border-color:
    rgba(229, 182, 91, 0.30);

  background:
    #2a2214;

  color:
    #e7c77e;
}


/* =========================================================
   ANIMATION
   ========================================================= */

@keyframes cc-pulse {
  from {
    opacity: 0.45;
    transform: translateX(0);
  }

  to {
    opacity: 1;
    transform: translateX(4px);
  }
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 840px) {
  .cc-audience {
    grid-template-columns: 1fr;
  }

  .cc-audience-card__surface {
    min-height: 0;

    flex-direction: row;
    align-items: center;
  }

  .cc-audience-card__text {
    flex: 1;
  }
}

@media (max-width: 640px) {
  .cc-contact {
    padding: 20px;

    border-radius: 20px;
  }

  .cc-grid--2 {
    grid-template-columns: 1fr;
  }

  .cc-context {
    padding: 18px;
  }

  .cc-section-heading,
  .cc-form__footer {
    align-items: flex-start;

    flex-direction: column;
  }

  .cc-submit {
    width: 100%;
  }
}


/* =========================================================
   ACCESSIBILITÉ : MOUVEMENTS RÉDUITS
   ========================================================= */

@media (prefers-reduced-motion: reduce) {
  .cc-contact *,
  .cc-contact *::before,
  .cc-contact *::after {
    scroll-behavior: auto !important;

    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;

    transition-duration: 0.01ms !important;
  }
}