/* ══════════════════════════════════════════════════════
       contact.php — styles spécifiques
    ══════════════════════════════════════════════════════ */

/* ─── HERO COMPACT ─── */
.contact-hero {
  background: #fff;
  padding: 64px 24px 56px;
  position: relative;
  overflow: hidden;
}
.contact-hero-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(201, 168, 76, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201, 168, 76, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
}
.contact-hero-glow {
  position: absolute;
  top: -120px;
  right: -120px;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(26, 77, 143, 0.4) 0%,
    transparent 70%
  );
  pointer-events: none;
}
.contact-hero-inner {
  max-width: 860px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
  text-align: center;
}
.hero-kicker {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.hero-kicker::before,
.hero-kicker::after {
  content: "";
  display: block;
  width: 24px;
  height: 1px;
  background: var(--gold);
}
.contact-hero h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  color: #000;
  margin-bottom: 16px;
  line-height: 1.12;
}
.contact-hero h1 em {
  color: var(--gold);
  font-style: italic;
}
.contact-hero-desc {
  color: #0c0c0c;
  font-size: 1rem;
  line-height: 1.75;
  max-width: 600px;
  margin: 0 auto;
}

/* ─── BREADCRUMB ─── */
.breadcrumb {
  background: #fff;
  border-bottom: 1px solid #edeae2;
  padding: 12px 24px;
}
.breadcrumb-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--mid);
}
.breadcrumb-inner a {
  color: var(--azure);
  text-decoration: none;
}
.breadcrumb-inner a:hover {
  text-decoration: underline;
}
.breadcrumb-sep {
  color: #cbd5e1;
}

/* ─── MAIN LAYOUT ─── */
.contact-section {
  background: var(--chalk);
  padding: 72px 24px 88px;
}
.contact-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 64px;
  align-items: start;
}

/* ─── FORMULAIRE ─── */
.form-card {
  background: #fff;
  border: 1px solid #e9e5db;
  border-radius: 16px;
  padding: 44px 40px;
  box-shadow: 0 4px 32px rgba(13, 15, 20, 0.06);
}
.form-title {
  font-family: var(--serif);
  font-size: 1.6rem;
  color: #000;
  margin-bottom: 6px;
}
.form-subtitle {
  font-size: 0.875rem;
  color: #0c0c0c;
  margin-bottom: 32px;
  line-height: 1.6;
}

/* Champs */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-group {
  margin-bottom: 20px;
}
.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
  letter-spacing: 0.02em;
}
.form-group label .req {
  color: var(--gold);
  margin-left: 2px;
}
.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid #ddd9cf;
  border-radius: 8px;
  font-family: var(--sans);
  font-size: 0.9rem;
  color: var(--ink);
  background: #fafaf8;
  outline: none;
  transition:
    border-color 0.2s,
    box-shadow 0.2s,
    background 0.2s;
}
.form-control::placeholder {
  color: #b0a99a;
}
.form-control:focus {
  border-color: var(--gold);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(26, 77, 143, 0.08);
}
textarea.form-control {
  height: 148px;
  resize: vertical;
}

/* Select service */
select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236B7280' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
  cursor: pointer;
}

/* Validation states */
.form-control.is-invalid,
.was-validated .form-control:invalid {
  border-color: #dc2626;
}
.form-control.is-invalid:focus,
.was-validated .form-control:invalid:focus {
  box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.1);
}

/* Messages d'erreur */
.feedback {
  display: none;
  font-size: 0.78rem;
  margin-top: 5px;
  color: #dc2626;
}
.was-validated
  .form-control:placeholder-shown:invalid
  ~ .feedback.empty-feedback {
  display: block;
}
.was-validated
  .form-control:not(:placeholder-shown):invalid
  ~ .feedback.invalid-feedback {
  display: block;
}

/* Checkbox RGPD */
.rgpd-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 24px;
}
.rgpd-row input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: var(--gold);
  cursor: pointer;
}
.rgpd-row label {
  font-size: 0.78rem;
  color: var(--mid);
  line-height: 1.5;
  cursor: pointer;
}
.rgpd-row label a {
  color: var(--gold);
  text-decoration: underline;
}
.rgpd-error {
  display: none;
  font-size: 0.78rem;
  color: #dc2626;
  margin-top: -16px;
  margin-bottom: 16px;
}
.rgpd-error.visible {
  display: block;
}

/* Bouton submit */
.btn-submit {
  width: 100%;
  padding: 15px 28px;
  background: linear-gradient(135deg, var(--gold), #e8b84b);
  color: var(--ink);
  border: none;
  border-radius: 8px;
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition:
    transform 0.25s,
    box-shadow 0.25s;
  box-shadow: 0 4px 20px rgba(201, 168, 76, 0.35);
}
.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(201, 168, 76, 0.5);
}
.btn-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}
.btn-submit .spinner {
  display: none;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(13, 15, 20, 0.2);
  border-top-color: var(--ink);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
.btn-submit.loading .spinner {
  display: block;
}
.btn-submit.loading .btn-text {
  display: none;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Message résultat */
#form-result {
  margin-top: 16px;
  padding: 14px 18px;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  text-align: center;
  display: none;
}
#form-result.success {
  display: block;
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #6ee7b7;
}
#form-result.error {
  display: block;
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}
#form-result.loading-msg {
  display: block;
  background: var(--mist);
  color: var(--azure);
  border: 1px solid #bfdbfe;
}

/* ─── PANNEAU INFOS ─── */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.info-card {
  background: #fff;
  border: 1px solid #e9e5db;
  border-radius: 14px;
  padding: 28px;
  transition:
    transform 0.3s,
    box-shadow 0.3s;
}
.info-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(13, 15, 20, 0.07);
}
.info-icon {
  font-size: 1.6rem;
  margin-bottom: 12px;
}
.info-title {
  font-family: var(--serif);
  font-size: 1.05rem;
  color: var(--ink);
  margin-bottom: 8px;
}
.info-body {
  font-size: 0.875rem;
  color: var(--mid);
  line-height: 1.7;
}
.info-body a {
  color: var(--azure);
  text-decoration: none;
  font-weight: 500;
}
.info-body a:hover {
  text-decoration: underline;
}

/* Card réassurance */
.reassurance-card {
  background: #fffaf0;
  border-radius: 14px;
  padding: 28px;
}
.reassurance-card .rc-title {
  font-family: var(--serif);
  font-size: 1rem;
  color: #000;
  margin-bottom: 16px;
}
.rc-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.07);
  font-size: 0.83rem;
  color: #0c0c0c;
}
.rc-item:last-child {
  border-bottom: none;
}
.rc-item .rc-ok {
  color: var(--gold);
  font-size: 1rem;
  flex-shrink: 0;
}