/* ═══════════════════════════════════════════════════════════════════
   contact.css — Page Contact — AECJ Les Mureaux
   Mobile-first · breakpoints : 640px · 1024px
   Exclusivement var(--x) de tokens.css — 0 hex inline
   ═══════════════════════════════════════════════════════════════════ */


/* ──────────────────────────────────────────────────────────────────
   HERO
   ────────────────────────────────────────────────────────────────── */
.contact-hero {
  padding: 48px 0 52px;
}


/* ──────────────────────────────────────────────────────────────────
   LAYOUT PRINCIPAL — grille 2 colonnes
   ────────────────────────────────────────────────────────────────── */
.contact-main {
  padding: 56px 0 80px;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: start;
}

@media (min-width: 1024px) {
  .contact-layout {
    grid-template-columns: 1fr 420px;
    gap: 60px;
  }
}


/* ──────────────────────────────────────────────────────────────────
   FORMULAIRE
   ────────────────────────────────────────────────────────────────── */
.contact-form-title {
  font-family: var(--font-title);
  font-size: clamp(1.3rem, 2.5vw, 1.6rem);
  color: var(--ink);
  margin-bottom: 24px;
}

/* Ligne 2 colonnes prénom / nom */
.contact-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0 20px;
}

@media (min-width: 640px) {
  .contact-row {
    grid-template-columns: 1fr 1fr;
  }
}

/* Champs */
.field-group {
  margin-bottom: 20px;
}

.field-group label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 6px;
}

.field-group .req {
  color: var(--red);
  margin-left: 2px;
}

.field-group input,
.field-group textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--ink);
  background: var(--white);
  transition: border-color 0.18s, box-shadow 0.18s;
  outline: none;
}

.field-group input::placeholder,
.field-group textarea::placeholder {
  color: var(--soft);
}

.field-group input:focus,
.field-group textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(26,107,63,.12);
}

.field-group input.is-invalid,
.field-group textarea.is-invalid,
.field-group select.is-invalid {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(192,57,43,.1);
}

.field-group textarea {
  resize: vertical;
  min-height: 140px;
}

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

.select-wrap::after {
  content: '';
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid var(--muted);
  pointer-events: none;
}

.field-group select {
  width: 100%;
  padding: 11px 36px 11px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--ink);
  background: var(--white);
  appearance: none;
  cursor: pointer;
  outline: none;
  transition: border-color 0.18s, box-shadow 0.18s;
}

.field-group select:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(26,107,63,.12);
}

/* Erreurs inline */
.field-error {
  display: none;
  font-size: 12px;
  color: var(--red);
  margin-top: 5px;
}

.field-group.has-error .field-error {
  display: block;
}

/* Footer message (comptatuer + erreur) */
.contact-msg-footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  margin-top: 5px;
}

.contact-count {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
  flex-shrink: 0;
}

/* Bouton submit */
.contact-submit {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  font-size: 15px;
  margin-top: 8px;
}

.contact-submit-label,
.contact-submit-loading {
  display: flex;
  align-items: center;
  gap: 8px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.spin {
  animation: spin 0.8s linear infinite;
}


/* ──────────────────────────────────────────────────────────────────
   ALERTES
   ────────────────────────────────────────────────────────────────── */
.contact-alert {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  border-radius: var(--radius-md);
  padding: 14px 16px;
  font-size: 13px;
  line-height: 1.55;
  margin-bottom: 20px;
}

.contact-alert svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 1px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-alert--success {
  background: var(--green-light);
  border: 1px solid var(--green-mid);
  color: var(--green-dark);
}

.contact-alert--error {
  background: var(--red-light);
  border: 1px solid var(--red-border);
  color: var(--red);
}


/* ──────────────────────────────────────────────────────────────────
   ASIDE — cartes d'infos
   ────────────────────────────────────────────────────────────────── */
.contact-info-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-info-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.contact-info-title {
  font-family: var(--font-title);
  font-size: 1.1rem;
  color: var(--ink);
  margin-bottom: 20px;
}

.contact-info-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.contact-info-icon {
  width: 36px;
  height: 36px;
  background: var(--green-light);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-info-icon svg {
  width: 18px;
  height: 18px;
  stroke: var(--green);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-info-item strong {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 3px;
}

.contact-info-item p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.55;
}

.contact-info-item a {
  color: var(--green);
  text-decoration: none;
}

.contact-info-item a:hover {
  text-decoration: underline;
}

/* ── Réseaux sociaux ── */
.contact-social {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.contact-social-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--green);
  text-decoration: none;
  padding: 6px 14px;
  border: 1.5px solid var(--green-mid);
  border-radius: 20px;
  transition: background .2s ease, color .2s ease;
}

.contact-social-link:hover {
  background: var(--green-light);
  text-decoration: none;
}


/* ──────────────────────────────────────────────────────────────────
   HORAIRES
   ────────────────────────────────────────────────────────────────── */
.contact-hours-card {
  background: var(--green-pale);
  border-color: var(--border);
}

.contact-hours-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 14px;
}

.contact-hours-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}

.contact-hours-list li {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--ink);
}

.contact-hours-list li span:first-child {
  color: var(--muted);
}

.contact-hours-note {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
}

.contact-hours-note a {
  color: var(--green);
  text-decoration: none;
}

.contact-hours-note a:hover {
  text-decoration: underline;
}


/* ──────────────────────────────────────────────────────────────────
   CARTE / MAP
   ────────────────────────────────────────────────────────────────── */
.contact-map-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.contact-map-card iframe {
  display: block;
  width: 100%;
  height: 200px;
  border: 0;
}

.contact-map-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px;
  font-size: 12px;
  color: var(--green);
  background: var(--white);
  text-decoration: none;
  border-top: 1px solid var(--border);
  transition: background 0.15s;
}

.contact-map-link:hover {
  background: var(--green-light);
}

.contact-map-link svg {
  stroke: currentColor;
  fill: none;
}


/* ──────────────────────────────────────────────────────────────────
   RESPONSIVE MOBILE
   ────────────────────────────────────────────────────────────────── */
@media (max-width: 639px) {
  .contact-main {
    padding: 40px 0 60px;
  }

  .contact-info-card {
    padding: 20px;
  }
}
