/* DEVENEZ CO-BÂTISSEUR */
.cobatisseur-section {
  position: relative;
  display: flex;
  height: 998px;
  padding: 65px 0;
  justify-content: center;
  align-items: flex-start;
  flex-shrink: 0;
  align-self: stretch;
  background: radial-gradient(107.55% 107.55% at 50% 50%, #81BCE8 0%, #4B8CBC 100%);
  overflow: hidden;
}

.cobatisseur-shape {
  position: absolute;
  pointer-events: none;
}

.cobatisseur-shape--1 {
  width: 320px;
  height: 320px;
  right: 11px;
  top: -51px;
  border-radius: 160px;
  background: rgba(232, 229, 172, .25);
}

.cobatisseur-shape--2 {
  width: 148px;
  height: 148px;
  right: -25px;
  top: -42px;
  border-radius: 160px;
  background: rgba(255, 255, 255, .25);
}

.cobatisseur-shape--3 {
  width: 80px;
  height: 80px;
  right: 500px;
  top: 23px;
  border-radius: 40px;
  background: rgba(255, 255, 255, .25);
}

.cobatisseur-section .container {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  max-width: 1402px;
  padding: 0 96px;
  margin: 0 auto;
  gap: 40px;
}

.cobatisseur-left {
  display: flex;
  flex-direction: column;
  max-width: 630px;
}

.cobatisseur-eyebrow {
  color: #FFF;
  font-family: var(--font-body);
  font-size: 14px;
  font-style: normal;
  font-weight: 700;
  line-height: 18px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.cobatisseur-heading {
  color: var(--color-text);
  font-family: var(--font-heading);
  font-size: 48px;
  font-style: normal;
  font-weight: 700;
  line-height: 45px;
  margin-top: 26px;
}

.cobatisseur-badge {
  display: flex;
  align-items: center;
  gap: 14px;
  align-self: stretch;
  height: 79px;
  padding: 16px 20px;
  margin-top: 26px;
  border: 1px solid #C9E2F7;
  background: #E8E5AC;
  box-sizing: border-box;
}

.cobatisseur-badge-icon {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 10px;
  background: #FFF;
}

.cobatisseur-badge-icon img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.cobatisseur-badge-text {
  width: 477px;
  color: var(--color-text);
  font-family: var(--font-heading);
  font-size: 18px;
  font-style: normal;
  font-weight: 700;
  line-height: 22.5px;
}

.cobatisseur-text {
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 28px;
  margin-top: 26px;
}

.cobatisseur-subtext {
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 28px;
  margin-top: 30px;
}

.cobatisseur-text strong,
.cobatisseur-subtext strong {
  font-weight: 700;
}

.cobatisseur-checklist {
  list-style: none;
  margin-top: 24px;
}

.cobatisseur-checklist li {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 15px;
  font-style: normal;
  font-weight: 400;
  line-height: 22.5px;
  margin-bottom: 12px;
}

.cobatisseur-checklist li::before {
  content: '';
  display: inline-block;
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='17' height='17' viewBox='0 0 24 24' fill='none'%3E%3Ccircle cx='12' cy='12' r='10' stroke='%232A5C44' stroke-width='2'/%3E%3Cpath d='M8 12.5l2.5 2.5L16 9' stroke='%232A5C44' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
}

.cobatisseur-form-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 586px;
  height: 844px;
  padding: 36px;
  border-radius: 14px;
  border: 1px solid rgba(0, 0, 0, .06);
  background: #F7F7F5;
  box-sizing: border-box;
}

/* --- OVERLAY DE FEEDBACK VISUEL (SUCCÈS / ÉCHEC) --- */
.cobatisseur-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 32px;
  box-sizing: border-box;
  text-align: center;
  z-index: 20;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.cobatisseur-overlay.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Vert transparent avec icône check blanche */
.cobatisseur-overlay--success {
  background: rgba(42, 92, 68, 0.92);
  color: #FFFFFF;
}

/* Rouge transparent avec icône croix rouge sur fond blanc */
.cobatisseur-overlay--error {
  background: rgba(192, 57, 43, 0.92);
  color: #FFFFFF;
}

.cobatisseur-overlay-icon-wrapper {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  transform: scale(1);
}

.cobatisseur-overlay--success .cobatisseur-overlay-icon-wrapper {
  background: rgba(255, 255, 255, 0.2);
  border: 2px solid rgba(255, 255, 255, 0.4);
}

.cobatisseur-overlay--error .cobatisseur-overlay-icon-wrapper {
  background: #FFFFFF;
}

.cobatisseur-overlay--success.is-visible .cobatisseur-overlay-icon-wrapper {
  animation: popIn 0.45s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.cobatisseur-overlay--error.is-visible .cobatisseur-overlay-icon-wrapper {
  animation: headShake 0.5s ease-in-out forwards;
}

.cobatisseur-overlay-title {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  line-height: 30px;
  margin: 0 0 12px 0;
  color: #FFFFFF;
}

.cobatisseur-overlay-message {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 400;
  line-height: 22px;
  margin: 0;
  max-width: 420px;
  color: rgba(255, 255, 255, 0.95);
}

/* Animations de l'icône */
@keyframes popIn {
  0% { transform: scale(0.4); opacity: 0; }
  70% { transform: scale(1.1); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}

@keyframes headShake {
  0% { transform: translateX(0); }
  15% { transform: translateX(-12px) rotate(-6deg); }
  30% { transform: translateX(10px) rotate(5deg); }
  45% { transform: translateX(-8px) rotate(-4deg); }
  60% { transform: translateX(6px) rotate(3deg); }
  75% { transform: translateX(-3px) rotate(-1deg); }
  100% { transform: translateX(0); }
}

.cobatisseur-form-title {
  color: var(--color-text);
  font-family: var(--font-heading);
  font-size: 20px;
  font-style: normal;
  font-weight: 700;
  line-height: 30px;
}

.cobatisseur-form-subtitle {
  color: #888888;
  font-family: var(--font-body);
  font-size: 13.5px;
  font-style: normal;
  font-weight: 400;
  line-height: 20.25px;
}

.cobatisseur-form {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  height: 604px;
  padding-top: 24px;
  gap: 20px;
  flex-shrink: 0;
  align-self: stretch;
}

.form-field {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  align-self: stretch;
  gap: 6px;
}

.form-field label {
  color: #0F1A2E;
  font-family: var(--font-body);
  font-size: 13px;
  font-style: normal;
  font-weight: 600;
  line-height: 19.5px;
}

.form-field input {
  display: flex;
  height: 46px;
  padding: 11px 14px;
  align-items: center;
  align-self: stretch;
  flex-shrink: 0;
  border-radius: 7px;
  border: 1.5px solid #D0D0CC;
  background: #FFF;
  color: #1A1A1A;
  font-family: var(--font-body);
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  box-sizing: border-box;
}

.form-field input::placeholder {
  color: rgba(26, 26, 26, .5);
}

.form-field--checkbox {
  flex-direction: row;
  align-items: flex-start;
  gap: 10px;
}

.form-field--checkbox input {
  display: block;
  height: auto;
  width: auto;
  flex-shrink: 0;
  margin-top: 3px;
}

.form-field--checkbox label {
  font-weight: 400;
  font-size: 13px;
  line-height: 19.5px;
  color: #0F1A2E;
}

.form-field--checkbox label a {
  color: #2A5C44;
  text-decoration: underline;
}

.cobatisseur-submit {
  display: flex;
  height: 51px;
  padding: 14px 24px;
  justify-content: center;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  align-self: stretch;
  border-radius: 8px;
  background: #2A5C44;
  color: #FFF;
  text-align: center;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  line-height: 22.5px;
  border: none;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease;
}

.cobatisseur-form-feedback {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
}

.cobatisseur-form-feedback--ok {
  color: #2A5C44;
}

.cobatisseur-form-feedback--error {
  color: #C0392B;
}

.cobatisseur-submit:hover {
  background: #D4E2A1;
  color: #2A5C44;
}

@media (max-width: 1200px) {
  .cobatisseur-section .container {
    padding: 0 48px;
  }
}

@media (max-width: 1024px) {
  .cobatisseur-section {
    height: auto;
  }

  .cobatisseur-heading {
    font-size: 38px;
    line-height: 40px;
  }

  .cobatisseur-left {
    max-width: 50%;
  }

  .cobatisseur-badge-text {
    width: 100%;
  }

  .cobatisseur-form-card {
    width: 46%;
    height: auto;
  }

  .cobatisseur-form {
    height: auto;
  }
}

@media (max-width: 900px) {
  .cobatisseur-section {
    height: auto;
    padding: 48px 0;
  }

  .cobatisseur-section .container {
    width: 100%;
    box-sizing: border-box;
    flex-direction: column;
    align-items: center;
    gap: 32px;
  }

  .cobatisseur-left {
    width: 100%;
    max-width: 100%;
  }

  .cobatisseur-badge-text {
    width: 100%;
  }

  .cobatisseur-form-card {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .cobatisseur-section {
    padding: 32px 0;
  }

  .cobatisseur-shape--1 {
    width: 200px;
    height: 200px;
  }

  .cobatisseur-shape--2 {
    width: 90px;
    height: 90px;
  }

  .cobatisseur-shape--3 {
    width: 50px;
    height: 50px;
  }

  .cobatisseur-section .container {
    padding: 0 20px;
  }

  .cobatisseur-left {
    align-items: center;
    text-align: center;
  }

  .cobatisseur-eyebrow {
    font-size: 12px;
  }

  .cobatisseur-heading {
    font-size: 26px;
    line-height: 30px;
    margin-top: 14px;
  }

  .cobatisseur-badge {
    flex-direction: column;
    height: auto;
    align-items: center;
    text-align: center;
    gap: 8px;
    padding: 10px 12px;
    margin-top: 16px;
  }

  .cobatisseur-badge-icon {
    width: 30px;
    height: 30px;
  }

  .cobatisseur-badge-icon img {
    width: 15px;
    height: 15px;
  }

  .cobatisseur-badge-text {
    width: 100%;
    font-size: 12.5px;
    line-height: 17px;
  }

  .cobatisseur-text,
  .cobatisseur-subtext {
    width: 100%;
    font-size: 14px;
    line-height: 21px;
    margin-top: 14px;
    text-align: center;
  }

  .cobatisseur-checklist {
    width: 100%;
    margin-top: 14px;
  }

  .cobatisseur-checklist li {
    text-align: left;
    font-size: 13px;
    line-height: 18px;
    margin-bottom: 8px;
  }

  .cobatisseur-form-card {
    width: 100%;
    height: auto;
    padding: 20px;
  }

  .cobatisseur-form-title,
  .cobatisseur-form-subtitle {
    width: 100%;
    text-align: center;
  }

  .cobatisseur-form-title {
    font-size: 15px;
    line-height: 20px;
    white-space: nowrap;
  }

  .form-field,
  .form-field--checkbox {
    text-align: left;
  }

  .cobatisseur-form-subtitle {
    font-size: 12.5px;
  }

  .cobatisseur-form {
    height: auto;
    gap: 14px;
    padding-top: 16px;
  }

  .cobatisseur-submit {
    font-size: 13px;
    padding: 12px 16px;
    white-space: nowrap;
  }
}

@media (max-width: 360px) {
  .cobatisseur-shape--1 {
    width: 150px;
    height: 150px;
  }

  .cobatisseur-shape--2 {
    width: 70px;
    height: 70px;
  }

  .cobatisseur-shape--3 {
    width: 40px;
    height: 40px;
  }

  .cobatisseur-heading {
    font-size: 22px;
    line-height: 26px;
  }

  .cobatisseur-badge-text {
    font-size: 13px;
  }

  .cobatisseur-text,
  .cobatisseur-subtext,
  .cobatisseur-checklist li {
    font-size: 12.5px;
  }

  .cobatisseur-form-card {
    padding: 16px;
  }

  .cobatisseur-form-title {
    font-size: 14px;
  }

  .cobatisseur-submit {
    font-size: 12px;
    padding: 12px 10px;
  }
}
