/* =============================================================================
   contact.css — Modal Contactez-nous
   =============================================================================
   Style 2 colonnes : formulaire à gauche, cartes infos à droite.
   Reprend l'esprit de la maquette validée.
   ============================================================================= */

/* =============================================================================
   PAGE COMPLÈTE (accès direct à /contact, pas via modal)
   ============================================================================= */
.contact-main {
  flex: 1;
  padding: 24px 20px;
}

.contact-page-wrapper {
  max-width: 1100px;
  margin: 0 auto;
  background: #fff;
  border-radius: 10px;
  padding: 32px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.contact-page-title {
  font-size: 26px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--bg-tile-blue);
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 3px solid var(--bg-tile-blue);
}

/* =============================================================================
   LAYOUT 2 COLONNES
   ============================================================================= */
.cu-layout {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 24px;
}

.cu-intro {
  font-size: 14px;
  color: #555;
  margin-bottom: 18px;
  line-height: 1.5;
}

/* =============================================================================
   FORMULAIRE
   ============================================================================= */
.cu-form {
  padding-right: 6px;
}

.cu-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}

.cu-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
}

.cu-field label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #6a6a73;
  font-weight: 700;
}

.cu-field label .req {
  color: #d83b01;
  margin-left: 2px;
}

.cu-field input,
.cu-field select,
.cu-field textarea {
  background: #fff;
  border: 1px solid #d8dde5;
  border-radius: 6px;
  padding: 10px 12px;
  font-size: 14px;
  font-family: inherit;
  color: #1b2735;
  transition: border-color 0.2s, box-shadow 0.2s;
  width: 100%;
}

.cu-field input:focus,
.cu-field select:focus,
.cu-field textarea:focus {
  outline: none;
  border-color: var(--bg-tile-blue);
  box-shadow: 0 0 0 3px rgba(0, 120, 212, 0.15);
}

.cu-field input:invalid:not(:placeholder-shown),
.cu-field textarea:invalid:not(:placeholder-shown) {
  border-color: #d83b01;
}

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

.cu-counter {
  font-size: 11px;
  color: #b0b8c4;
  text-align: right;
  margin-top: -2px;
}

.cu-counter.warning {
  color: #d83b01;
  font-weight: 600;
}

/* Honeypot anti-spam : caché visuellement mais pas via display:none
   (les bots évitent display:none) */
.cu-honeypot {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

/* Case RGPD */
.cu-rgpd {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 14px 0 18px;
  font-size: 12px;
  color: #666;
  line-height: 1.5;
  cursor: pointer;
}

.cu-rgpd input {
  margin-top: 3px;
  flex-shrink: 0;
  cursor: pointer;
}

.cu-rgpd a {
  color: var(--bg-tile-blue);
  text-decoration: underline;
}

/* Bouton submit */
.cu-actions {
  display: flex;
}

.cu-submit {
  background: var(--bg-tile-blue);
  color: #fff;
  border: none;
  padding: 12px 28px;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  letter-spacing: 0.3px;
  transition: background 0.2s, transform 0.15s, opacity 0.2s;
}

.cu-submit:hover:not(:disabled) {
  background: #005a9e;
  transform: translateY(-1px);
}

.cu-submit:disabled {
  cursor: wait;
  opacity: 0.85;
}

.cu-submit.sent {
  background: #107c10;
  cursor: default;
}

/* Messages de feedback */
.cu-feedback {
  margin-top: 14px;
}

.cu-success {
  background: #e6f4ea;
  border-left: 4px solid #107c10;
  color: #137333;
  padding: 14px 16px;
  border-radius: 6px;
  font-size: 14px;
  line-height: 1.5;
}

.cu-error {
  background: #fce8e6;
  border-left: 4px solid #d83b01;
  color: #c5221f;
  padding: 14px 16px;
  border-radius: 6px;
  font-size: 14px;
}

/* =============================================================================
   COLONNE DROITE : cartes infos pratiques
   ============================================================================= */
.cu-aside {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cu-info-card {
  background: #fff;
  border: 1px solid #e3e3e8;
  border-radius: 8px;
  padding: 16px;
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
}

.cu-info-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  border-color: var(--bg-tile-blue);
}

/* Carte adresse principale en bleu */
.cu-info-card.primary {
  background: linear-gradient(135deg, var(--bg-tile-blue), var(--bg-tile-blue-dark));
  color: #fff;
  border-color: transparent;
}

.cu-info-card.primary .cu-info-title,
.cu-info-card.primary .cu-info-body,
.cu-info-card.primary .cu-info-link {
  color: #fff;
}

.cu-info-card.primary .cu-info-body a {
  color: #fff;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.4);
  text-decoration: none;
}

.cu-info-icon {
  font-size: 22px;
  margin-bottom: 6px;
}

.cu-info-title {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #6a6a73;
  font-weight: 700;
  margin-bottom: 6px;
}

.cu-info-body {
  font-size: 14px;
  color: #1b2735;
  line-height: 1.5;
}

.cu-info-body a {
  color: var(--bg-tile-blue);
  text-decoration: none;
  font-weight: 600;
}

.cu-info-body a:hover {
  text-decoration: underline;
}

.cu-info-link {
  display: inline-block;
  margin-top: 8px;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.cu-info-link:hover {
  text-decoration: underline;
}

/* Horaires */
.cu-hours {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 13px;
}

.cu-hours > div {
  display: flex;
  justify-content: space-between;
  padding: 4px 0;
  border-bottom: 1px dashed #ececf1;
}

.cu-hours > div:last-child {
  border-bottom: none;
}

.cu-hours span {
  color: #6a6a73;
}

.cu-hours strong {
  color: #1b2735;
  font-weight: 600;
}

.cu-hours .closed strong {
  color: #c5221f;
}

.cu-note {
  font-size: 11px;
  color: #999;
  margin-top: 8px;
  font-style: italic;
  text-align: center;
}

/* =============================================================================
   RESPONSIVE
   ============================================================================= */
@media (max-width: 800px) {
  .cu-layout { grid-template-columns: 1fr; }
  .cu-row { grid-template-columns: 1fr; }
  .cu-aside { order: -1; } /* Infos pratiques d'abord sur mobile */
}

@media (max-width: 640px) {
  .contact-page-wrapper { padding: 20px; }
  .contact-page-title { font-size: 20px; }
}
