/* === SECTION FORMULAIRE === */
.contact-form-section {
  position: relative;
}

.form-success {
  position: relative;
  animation: success-entrance 0.6s ease-out;
}

@keyframes success-entrance {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.success-glow {
  position: absolute;
  inset: -0.25rem;
  background: linear-gradient(135deg, #16a34a, #10b981);
  border-radius: 1.5rem;
  filter: blur(2rem);
  opacity: 0.3;
  animation: pulse-success 2s ease-in-out infinite;
}

@keyframes pulse-success {
  0%,
  100% {
    opacity: 0.3;
  }
  50% {
    opacity: 0.4;
  }
}

.success-content {
  position: relative;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(24px);
  border-radius: 1.5rem;
  padding: 3rem;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.5);
}

[data-theme='dark'] .success-content {
  background: rgba(18, 25, 41, 0.9);
  border-color: rgba(34, 197, 94, 0.5);
}

.success-icon-wrapper {
  position: relative;
  display: inline-block;
  margin-bottom: 1.5rem;
}

.success-icon-glow {
  position: absolute;
  inset: 0;
  background: #16a34a;
  border-radius: 50%;
  filter: blur(2rem);
  opacity: 0.4;
  animation: pulse 2s ease-in-out infinite;
}

.success-icon {
  position: relative;
  width: 6rem;
  height: 6rem;
  background: linear-gradient(135deg, #16a34a, #10b981);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 40px rgba(22, 163, 74, 0.4);
}

.success-icon svg {
  color: white;
}

.success-title {
  font-family: var(--font-primary);
  font-size: 2rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 0.75rem;
  background: linear-gradient(135deg, #16a34a, #10b981);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.success-subtitle {
  font-size: 1.125rem;
  color: #16a34a;
  margin-bottom: 1rem;
}

[data-theme='dark'] .success-subtitle {
  color: #22c55e;
}

.success-message {
  font-size: 1rem;
  color: #64748b;
}

[data-theme='dark'] .success-message {
  color: #94a3b8;
}

/* === WRAPPER DU FORMULAIRE === */
.form-wrapper {
  position: relative;
}

.form-glow {
  position: absolute;
  inset: -0.25rem;
  background: linear-gradient(135deg, #0170a8, #19b8d8);
  border-radius: 1.5rem;
  filter: blur(2rem);
  opacity: 0.1;
  transition: opacity 0.5s ease;
}

.form-wrapper:hover .form-glow {
  opacity: 0.2;
}

.contact-form {
  position: relative;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(24px);
  border-radius: 1.5rem;
  padding: 2rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(209, 213, 219, 0.5);
}

[data-theme='dark'] .contact-form {
  background: rgba(18, 25, 41, 0.8);
  border-color: rgba(55, 65, 81, 0.5);
}

@media (min-width: 768px) {
  .contact-form {
    padding: 3rem;
  }
}

.form-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.form-bar {
  width: 0.25rem;
  height: 2.5rem;
  background: linear-gradient(180deg, #0170a8, #19b8d8);
  border-radius: 9999px;
}

.form-title {
  font-family: var(--font-primary);
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--color-text);
}

.form-errors {
  background: linear-gradient(
    135deg,
    rgba(239, 68, 68, 0.1),
    rgba(220, 38, 38, 0.05)
  );
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 0.75rem;
  padding: 1rem;
  margin-bottom: 1.5rem;
}

.error-message {
  color: #dc2626;
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
}

.error-message:last-child {
  margin-bottom: 0;
}

[data-theme='dark'] .error-message {
  color: #f87171;
}

/* === SECTIONS DU FORMULAIRE === */
.form-section {
  margin-bottom: 2.5rem;
}

.form-section:last-of-type {
  margin-bottom: 0;
}

.section-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.section-icon {
  width: 2rem;
  height: 2rem;
  background: linear-gradient(
    135deg,
    rgba(1, 112, 168, 0.2),
    rgba(25, 184, 216, 0.2)
  );
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.section-icon svg {
  width: 1rem;
  height: 1rem;
  color: #0170a8;
}

[data-theme='dark'] .section-icon svg {
  color: #19b8d8;
}

.section-title {
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: 1.125rem;
  color: var(--color-text);
}

/* === GRILLE DE CHAMPS === */
.form-grid {
  margin-top: 1rem;
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .form-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* === CHAMPS DE FORMULAIRE === */
.form-field,
.form-field-full {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
}

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

.field-label {
  display: block;
  font-family: var(--font-primary);
  font-weight: 500;
  font-size: 0.875rem;
  color: #374151;
  margin-bottom: 0.5rem;
  transition: color 0.3s ease;
}

[data-theme='dark'] .field-label {
  color: #d1d5db;
}

.form-field:focus-within .field-label,
.form-field-full:focus-within .field-label {
  color: #0170a8;
}

[data-theme='dark'] .form-field:focus-within .field-label,
[data-theme='dark'] .form-field-full:focus-within .field-label {
  color: #19b8d8;
}

.field-help {
  font-size: 0.75rem;
  color: #6b7280;
  font-weight: 400;
}

[data-theme='dark'] .field-help {
  color: #9ca3af;
}

.field-wrapper {
  position: relative;
}

.field-focus-bg {
  position: absolute;
  inset: 0;
  border-radius: 0.75rem;
  background: linear-gradient(
    90deg,
    rgba(1, 112, 168, 0),
    rgba(25, 184, 216, 0)
  );
  z-index: -1;
  transition: all 0.3s ease;
}

.field-wrapper:focus-within .field-focus-bg {
  background: linear-gradient(
    90deg,
    rgba(1, 112, 168, 0.05),
    rgba(25, 184, 216, 0.05)
  );
}

.field-input {
  width: 90%;
  padding: 0.875rem 1rem;
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(209, 213, 219, 0.5);
  border-radius: 0.75rem;
  font-size: 0.9375rem;
  color: var(--color-text);
  transition: all 0.3s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.field-textarea {
  width: 95%;
  padding: 0.875rem 1rem;
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(209, 213, 219, 0.5);
  border-radius: 0.75rem;
  font-size: 0.9375rem;
  color: var(--color-text);
  transition: all 0.3s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

[data-theme='dark'] .field-input,
[data-theme='dark'] .field-textarea {
  background: rgba(31, 41, 55, 0.5);
  border-color: rgba(75, 85, 99, 0.5);
}

.field-input:hover,
.field-textarea:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.field-input:focus,
.field-textarea:focus {
  outline: none;
  border-color: #0170a8;
  box-shadow: 0 0 0 3px rgba(1, 112, 168, 0.2);
}

[data-theme='dark'] .field-input:focus,
[data-theme='dark'] .field-textarea:focus {
  border-color: #19b8d8;
  box-shadow: 0 0 0 3px rgba(25, 184, 216, 0.2);
}

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

[data-theme='dark'] .field-input::placeholder,
[data-theme='dark'] .field-textarea::placeholder {
  color: #6b7280;
}

.field-textarea {
  resize: vertical;
  min-height: 6rem;
  font-family: inherit;
}

/* === CHECKBOXES (SERVICES) === */
.checkbox-grid {
  display: grid;
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .checkbox-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.checkbox-label {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(209, 213, 219, 0.5);
  border-radius: 0.75rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

[data-theme='dark'] .checkbox-label {
  background: rgba(31, 41, 55, 0.5);
  border-color: rgba(75, 85, 99, 0.5);
}

.checkbox-label:hover {
  border-color: rgba(1, 112, 168, 0.3);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

[data-theme='dark'] .checkbox-label:hover {
  border-color: rgba(25, 184, 216, 0.3);
}

.checkbox-label.is-checked {
  background: linear-gradient(
    135deg,
    rgba(1, 112, 168, 0.1),
    rgba(25, 184, 216, 0.1)
  );
  border-color: rgba(1, 112, 168, 0.4);
  box-shadow: 0 4px 16px rgba(1, 112, 168, 0.15);
}

[data-theme='dark'] .checkbox-label.is-checked {
  border-color: rgba(25, 184, 216, 0.4);
}

.checkbox-input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.checkbox-box {
  position: relative;
  width: 1.25rem;
  height: 1.25rem;
  border: 2px solid #d1d5db;
  border-radius: 0.25rem;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

[data-theme='dark'] .checkbox-box {
  border-color: #4b5563;
}

.checkbox-label:hover .checkbox-box {
  border-color: #0170a8;
}

.checkbox-label.is-checked .checkbox-box {
  background: linear-gradient(135deg, #0170a8, #19b8d8);
  border-color: #0170a8;
}

.checkbox-check {
  width: 0.75rem;
  height: 0.75rem;
  color: white;
  opacity: 0;
  transform: scale(0);
  transition: all 0.2s ease;
}

.checkbox-label.is-checked .checkbox-check {
  opacity: 1;
  transform: scale(1);
}

.checkbox-text {
  font-size: 0.875rem;
  color: #374151;
  transition: all 0.3s ease;
}

[data-theme='dark'] .checkbox-text {
  color: #d1d5db;
}

.checkbox-label.is-checked .checkbox-text {
  font-weight: 600;
  color: var(--color-text);
}

/* === BOUTON SUBMIT === */
.form-submit-wrapper {
  position: relative;
  margin-top: 2rem;
}

.submit-glow {
  position: absolute;
  inset: -0.25rem;
  background: linear-gradient(90deg, #0170a8, #19b8d8);
  border-radius: 1rem;
  filter: blur(12px);
  opacity: 0.3;
  transition: opacity 0.3s ease;
}

.form-submit-wrapper:hover .submit-glow {
  opacity: 0.6;
}

.form-submit-btn {
  position: relative;
  width: 100%;
  padding: 1.25rem 2rem;
  background: linear-gradient(90deg, #0170a8, #19b8d8);
  color: white;
  border: none;
  border-radius: 1rem;
  font-family: var(--font-primary);
  font-size: 1.125rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(1, 112, 168, 0.4);
  transition: all 0.3s ease;
  margin-top: 3rem;
}

.form-submit-btn:hover {
  transform: scale(1.02);
  box-shadow: 0 15px 50px rgba(1, 112, 168, 0.5);
}

.form-submit-btn:active {
  transform: scale(0.98);
}

.btn-shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transform: translateX(-100%);
  transition: transform 1s ease;
}

.form-submit-btn:hover .btn-shine {
  transform: translateX(100%);
}

.btn-icon,
.btn-arrow {
  position: relative;
  z-index: 1;
  width: 1.375rem;
  height: 1.375rem;
}

.btn-arrow {
  width: 1.25rem;
  height: 1.25rem;
  transition: transform 0.3s ease;
}

.form-submit-btn:hover .btn-arrow {
  transform: translateX(4px);
}

.form-submit-btn span {
  position: relative;
  z-index: 1;
}

.form-required-note {
  text-align: center;
  font-size: 0.875rem;
  color: #6b7280;
  margin-top: 1.5rem;
}

[data-theme='dark'] .form-required-note {
  color: #9ca3af;
}
