/* ════════════════════════════════
   CONTACT PAGE — contact.css
   ════════════════════════════════ */

/* ── Hero ── */
.contact-hero {
  position: relative;
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 150px 72px 56px;
  overflow: hidden;
  background: linear-gradient(135deg, #1d2548 0%, #27315a 55%, #1a1f3e 100%);
}

.contact-hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 80% 30%, rgba(255,91,92,0.18) 0%, transparent 70%),
    radial-gradient(ellipse 50% 80% at 10% 80%, rgba(39,49,90,0.6) 0%, transparent 60%);
  pointer-events: none;
}

.contact-hero-content {
  position: relative;
  z-index: 1;
  max-width: 680px;
}

.contact-hero-content h1 {
  font-size: clamp(32px, 4.4vw, 50px);
  font-weight: 700;
  color: #fff;
  line-height: 1.15;
  margin: 8px 0 12px;
}

.contact-hero-sub {
  font-size: 15px;
  color: rgba(255,255,255,0.65);
  letter-spacing: 0.02em;
  max-width: 560px;
  margin: 0 auto;
}

/* ── Main section ── */
.contact-main {
  padding: 64px 72px 100px;
  background: #f8f9fc;
}

/* ── Trust bar ── */
.contact-trust-bar {
  display: flex;
  align-items: center;
  gap: 0;
  background: #fff;
  border-radius: 12px;
  padding: 20px 32px;
  margin-bottom: 56px;
  box-shadow: 0 2px 16px rgba(29,37,72,0.06);
  flex-wrap: wrap;
  gap: 0;
}

.ctb-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: #1d2548;
  flex: 1;
  min-width: 160px;
  justify-content: center;
}

.ctb-item i {
  color: #ff5b5c;
  font-size: 16px;
}

.ctb-sep {
  width: 1px;
  height: 28px;
  background: rgba(29,37,72,0.12);
}

/* ── Two-column grid ── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 48px;
  align-items: start;
}

/* ── Form column ── */
.contact-form-header {
  margin-bottom: 36px;
}

.contact-form-header h2 {
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 700;
  color: #1d2548;
  line-height: 1.2;
  margin: 8px 0 12px;
}

.contact-form-header h2 em {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  color: #ff5b5c;
}

.contact-form-intro {
  font-size: 15px;
  color: #64748b;
  line-height: 1.7;
  max-width: 520px;
}

/* ── Form ── */
.contact-form {
  background: #fff;
  border-radius: 16px;
  padding: 40px;
  box-shadow: 0 4px 32px rgba(29,37,72,0.07);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.cf-row {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.cf-row--2 {
  flex-direction: row;
  gap: 20px;
}

.cf-row--2 .cf-field {
  flex: 1;
}

.cf-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cf-field label {
  font-size: 13px;
  font-weight: 600;
  color: #1d2548;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.cf-req {
  color: #ff5b5c;
}

.cf-field input,
.cf-field textarea,
.cf-field select {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid rgba(29,37,72,0.15);
  border-radius: 8px;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  color: #1d2548;
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  box-sizing: border-box;
  -webkit-appearance: none;
  appearance: none;
}

.cf-field input::placeholder,
.cf-field textarea::placeholder {
  color: rgba(29,37,72,0.35);
}

.cf-field input:focus,
.cf-field textarea:focus,
.cf-field select:focus {
  border-color: #ff5b5c;
  box-shadow: 0 0 0 3px rgba(255,91,92,0.12);
}

.cf-field input:valid:not(:placeholder-shown),
.cf-field textarea:valid:not(:placeholder-shown) {
  border-color: rgba(29,37,72,0.25);
}

.cf-field textarea {
  resize: vertical;
  min-height: 120px;
}

/* Select */
.cf-select-wrap {
  position: relative;
}

.cf-select-wrap select {
  padding-right: 40px;
  cursor: pointer;
}

.cf-select-arrow {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(29,37,72,0.4);
  font-size: 12px;
  pointer-events: none;
}

/* Checkbox */
.cf-field--check {
  flex-direction: row;
  align-items: flex-start;
  gap: 0;
}

.cf-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  font-size: 13px;
  color: #64748b;
  line-height: 1.6;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
}

.cf-checkbox-label input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.cf-checkbox-box {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(29,37,72,0.25);
  border-radius: 4px;
  margin-top: 1px;
  display: inline-block;
  transition: background 0.2s, border-color 0.2s;
  position: relative;
}

.cf-checkbox-label input:checked ~ .cf-checkbox-box {
  background: #ff5b5c;
  border-color: #ff5b5c;
}

.cf-checkbox-label input:checked ~ .cf-checkbox-box::after {
  content: '';
  position: absolute;
  left: 3px;
  top: 1px;
  width: 6px;
  height: 9px;
  border: 2px solid #fff;
  border-top: none;
  border-left: none;
  transform: rotate(42deg);
}

.cf-link {
  color: #ff5b5c;
  text-decoration: underline;
}

/* File upload */
.cf-optional {
  color: rgba(29,37,72,0.4);
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
}

.cf-upload-zone {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
  padding: 28px 20px;
  border: 1.5px dashed rgba(29,37,72,0.2);
  border-radius: 10px;
  background: #f8f9fc;
  transition: border-color 0.2s, background 0.2s;
}

.cf-upload-zone[hidden] {
  display: none;
}

.cf-upload-zone input[type="file"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.cf-upload-zone i {
  font-size: 22px;
  color: #ff5b5c;
  margin-bottom: 4px;
}

.cf-upload.is-dragover .cf-upload-zone {
  border-color: #ff5b5c;
  background: rgba(255,91,92,0.06);
}

.cf-upload-text {
  font-size: 13.5px;
  color: #1d2548;
}

.cf-upload-text strong {
  color: #ff5b5c;
}

.cf-upload-hint {
  font-size: 12px;
  color: rgba(29,37,72,0.45);
}

.cf-upload-file {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border: 1.5px solid rgba(29,37,72,0.15);
  border-radius: 10px;
  background: #fff;
}

.cf-upload-file[hidden] {
  display: none;
}

.cf-upload-file i {
  color: #2fb872;
  font-size: 16px;
}

.cf-upload-filename {
  flex: 1;
  font-size: 13.5px;
  color: #1d2548;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cf-upload-remove {
  background: none;
  border: none;
  color: rgba(29,37,72,0.4);
  cursor: pointer;
  font-size: 14px;
  padding: 4px;
  line-height: 1;
}

.cf-upload-remove:hover {
  color: #ff5b5c;
}

.cf-upload-error {
  font-size: 12.5px;
  color: #e0384d;
  margin-top: 8px;
}

/* Erreur d'envoi */
.cf-form-error {
  font-size: 13px;
  color: #e0384d;
  background: rgba(224,56,77,0.08);
  border: 1px solid rgba(224,56,77,0.25);
  border-radius: 8px;
  padding: 12px 14px;
}

/* Submit */
.cf-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 32px;
  background: #ff5b5c;
  color: #fff;
  border: none;
  border-radius: 10px;
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 6px 24px rgba(255,91,92,0.3);
  margin-top: 4px;
}

.cf-submit:hover {
  background: #e04d4e;
  transform: translateY(-2px);
  box-shadow: 0 10px 32px rgba(255,91,92,0.38);
}

.cf-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.cf-hint {
  font-size: 12px;
  color: rgba(29,37,72,0.4);
  text-align: center;
  margin-top: -4px;
}

.cf-hint i {
  color: rgba(29,37,72,0.4);
  margin-right: 4px;
}

/* Success state */
.cf-success {
  background: #fff;
  border-radius: 16px;
  padding: 60px 40px;
  box-shadow: 0 4px 32px rgba(29,37,72,0.07);
  text-align: center;
}

.cf-success-icon {
  font-size: 56px;
  color: #22c55e;
  margin-bottom: 20px;
}

.cf-success h3 {
  font-size: 28px;
  font-weight: 700;
  color: #1d2548;
  margin-bottom: 12px;
}

.cf-success p {
  font-size: 15px;
  color: #64748b;
  line-height: 1.7;
  max-width: 400px;
  margin: 0 auto 28px;
}

.cf-back-home {
  display: inline-block;
  padding: 12px 28px;
  background: #1d2548;
  color: #fff;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s;
}

.cf-back-home:hover {
  background: #27315a;
}

/* ── Info sidebar ── */
.contact-info-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: sticky;
  top: 100px;
}

.ci-card {
  background: #fff;
  border-radius: 12px;
  padding: 20px 24px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  box-shadow: 0 2px 16px rgba(29,37,72,0.06);
  transition: box-shadow 0.2s;
}

.ci-card:hover {
  box-shadow: 0 6px 28px rgba(29,37,72,0.1);
}

.ci-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255,91,92,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ff5b5c;
  font-size: 16px;
  flex-shrink: 0;
}

.ci-body h3 {
  font-size: 14px;
  font-weight: 700;
  color: #1d2548;
  margin: 0 0 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.ci-body p {
  font-size: 14px;
  color: #64748b;
  line-height: 1.6;
  margin: 0 0 6px;
}

.ci-link,
.ci-phone,
.ci-email {
  font-size: 13px;
  color: #ff5b5c;
  font-weight: 500;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: opacity 0.2s;
}

.ci-phone {
  font-size: 17px;
  font-weight: 700;
  color: #1d2548;
  display: block;
  margin-bottom: 2px;
}

.ci-email {
  font-size: 14px;
  color: #1d2548;
  display: block;
  margin-bottom: 2px;
  word-break: break-all;
}

.ci-hours {
  font-size: 12px;
  color: rgba(29,37,72,0.45);
  margin: 0 !important;
}

.ci-link:hover,
.ci-phone:hover,
.ci-email:hover {
  opacity: 0.7;
}

/* Map thumbnail */
.ci-map {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(29,37,72,0.06);
}

.ci-map a {
  display: block;
}

.ci-map img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s;
}

.ci-map:hover img {
  transform: scale(1.04);
}

.ci-map-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(29,37,72,0.6) 0%, transparent 60%);
  display: flex;
  align-items: flex-end;
  padding: 16px 20px;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  gap: 6px;
  transition: background 0.3s;
}

.ci-map:hover .ci-map-overlay {
  background: linear-gradient(0deg, rgba(255,91,92,0.7) 0%, rgba(29,37,72,0.2) 100%);
}

/* Socials */
.ci-socials {
  background: #fff;
  border-radius: 12px;
  padding: 20px 24px;
  box-shadow: 0 2px 16px rgba(29,37,72,0.06);
}

.ci-socials-label {
  font-size: 12px;
  font-weight: 700;
  color: rgba(29,37,72,0.45);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 14px;
}

.ci-socials-icons {
  display: flex;
  gap: 10px;
}

.ci-socials-icons a {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: rgba(29,37,72,0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1d2548;
  font-size: 15px;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.ci-socials-icons a:hover {
  background: #ff5b5c;
  color: #fff;
}

/* ── Contact page — body override ── */
body.page-contact .site-wrapper {
  background: #f8f9fc;
}

body.page-contact header {
  top: 0;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .contact-info-col {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }

  .ci-map {
    grid-column: span 2;
  }

  .ci-socials {
    grid-column: span 2;
  }
}

@media (max-width: 768px) {
  .contact-hero {
    padding: 110px 24px 48px;
    min-height: 280px;
  }

  .contact-main {
    padding: 40px 24px 72px;
  }

  .contact-trust-bar {
    flex-direction: column;
    gap: 12px;
    padding: 20px 24px;
  }

  .ctb-sep {
    display: none;
  }

  .ctb-item {
    justify-content: flex-start;
  }

  .cf-row--2 {
    flex-direction: column;
    gap: 20px;
  }

  .contact-form {
    padding: 24px 20px;
  }

  .contact-info-col {
    grid-template-columns: 1fr;
  }

  .ci-map,
  .ci-socials {
    grid-column: auto;
  }
}
