/* =============================================
   AFRIJUS — CSS Page Contact (contact.css)
   ============================================= */

/* ── PAGE HERO ── */
.page-hero {
  position: relative; height: 380px;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
  margin-top: var(--header-h);
}
.page-hero-bg {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--vert-fonce) 0%, var(--vert-moyen) 60%, var(--vert-clair) 100%);
}
.page-hero-content {
  position: relative; z-index: 2; text-align: center;
  color: var(--blanc); padding: 80px 20px 0;
}
.page-hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 900;
  margin: 16px 0 12px; text-shadow: 0 2px 20px rgba(0,0,0,0.2);
}
.page-hero-sub { font-size: 1.05rem; opacity: 0.88; margin-bottom: 20px; }
.page-hero-wave {
  position: absolute; bottom: -1px; left: 0; width: 100%; height: 60px; z-index: 3;
}
.breadcrumb {
  display: flex; align-items: center; justify-content: center;
  gap: 8px; font-size: 0.85rem; opacity: 0.75; margin-top: 8px;
}
.breadcrumb a { color: var(--blanc); text-decoration: none; }
.breadcrumb a:hover { color: var(--or); }

/* ── CONTACT GRID ── */
.contact-grid {
  display: grid; grid-template-columns: 1fr 1.5fr;
  gap: 50px; align-items: start;
}

/* ── INFOS CONTACT ── */
.contact-info-block .section-title { text-align: left; font-size: 1.8rem; }

.contact-info-items { display: flex; flex-direction: column; gap: 16px; margin-bottom: 28px; }

.contact-info-item {
  display: flex; align-items: flex-start; gap: 16px;
  padding: 16px; background: var(--vert-pale);
  border-radius: var(--radius); transition: var(--transition);
  border-left: 4px solid var(--vert);
}
.contact-info-item:hover { background: #C8E6C9; transform: translateX(4px); }
.contact-info-icon {
  width: 40px; height: 40px; min-width: 40px;
  background: var(--rouge); color: white;
  border-radius: 10px; display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
}
.contact-info-item strong {
  display: block; color: var(--vert-fonce);
  font-weight: 800; font-size: 0.85rem;
  text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 4px;
}
.contact-info-item span { font-size: 0.95rem; color: var(--gris); }

/* Bouton WhatsApp direct */
.btn-wa-direct {
  display: flex; align-items: center; gap: 12px;
  background: #25D366; color: white; text-decoration: none;
  padding: 14px 24px; border-radius: 50px; font-weight: 800;
  font-size: 1rem; transition: var(--transition); margin-bottom: 24px;
  box-shadow: 0 6px 20px rgba(37,211,102,0.35);
}
.btn-wa-direct:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(37,211,102,0.5); }
.btn-wa-direct svg { width: 22px; height: 22px; fill: white; }

/* Réseaux sociaux */
.contact-socials { display: flex; gap: 12px; }
.social-card {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 18px; border-radius: 50px;
  background: var(--vert-pale); color: var(--vert-fonce);
  text-decoration: none; font-weight: 700; font-size: 0.875rem;
  border: 1px solid rgba(46,125,50,0.2); transition: var(--transition);
}
.social-card:hover { background: var(--rouge); color: white; transform: translateY(-3px); }
.social-card-icon { font-size: 1.1rem; }

/* ── FORMULAIRE DE COMMANDE ── */
.order-form-card {
  background: var(--blanc); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(46,125,50,0.1); overflow: hidden;
}
.order-form-header {
  display: flex; align-items: flex-start; gap: 16px;
  background: var(--vert-fonce); color: white;
  padding: 24px 28px;
}
.order-form-header svg { width: 36px; height: 36px; fill: white; min-width: 36px; margin-top: 4px; }
.order-form-header h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem; font-weight: 700; margin-bottom: 4px;
}
.order-form-header p { font-size: 0.875rem; opacity: 0.82; line-height: 1.5; }

.order-form { padding: 28px; display: flex; flex-direction: column; gap: 18px; }

/* Groupes de champs */
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label {
  font-weight: 700; font-size: 0.875rem;
  color: var(--vert-fonce); letter-spacing: 0.3px;
}
.form-group input,
.form-group select,
.form-group textarea {
  padding: 12px 16px; border-radius: var(--radius);
  border: 2px solid rgba(46,125,50,0.15);
  font-family: 'Nunito', sans-serif; font-size: 0.95rem; color: var(--noir);
  transition: var(--transition); background: var(--blanc); width: 100%;
  resize: vertical;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none; border-color: var(--vert);
  box-shadow: 0 0 0 3px rgba(46,125,50,0.1);
}
.form-group input.error,
.form-group select.error { border-color: var(--rouge); }
.form-error { font-size: 0.78rem; color: var(--rouge); font-weight: 600; min-height: 16px; }

/* Liste checkboxes produits */
.product-checklist {
  display: flex; flex-direction: column; gap: 8px;
  max-height: 220px; overflow-y: auto;
  padding: 12px; border: 2px solid rgba(46,125,50,0.15);
  border-radius: var(--radius); background: var(--vert-pale);
}
.product-checklist::-webkit-scrollbar { width: 4px; }
.product-checklist::-webkit-scrollbar-thumb { background: var(--vert); border-radius: 2px; }

.check-item {
  display: flex; align-items: center; gap: 10px;
  cursor: pointer; padding: 6px 8px; border-radius: 8px;
  transition: var(--transition); font-size: 0.9rem;
}
.check-item:hover { background: rgba(255,255,255,0.6); }
.check-item input[type="checkbox"] { display: none; }
.check-box {
  width: 20px; height: 20px; min-width: 20px;
  border: 2px solid var(--vert); border-radius: 5px;
  background: white; transition: var(--transition);
  display: flex; align-items: center; justify-content: center;
}
.check-item input:checked + .check-box {
  background: var(--vert); border-color: var(--vert);
}
.check-item input:checked + .check-box::after {
  content: '✓'; color: white; font-weight: 900; font-size: 0.75rem;
}

/* Aperçu WhatsApp */
.wa-preview {
  background: #E9F5E1; border-radius: var(--radius);
  border: 1px solid rgba(37,211,102,0.3); overflow: hidden;
}
.wa-preview-header {
  display: flex; align-items: center; gap: 8px;
  background: #25D366; color: white;
  padding: 8px 14px; font-size: 0.8rem; font-weight: 700;
}
#waPreviewText {
  padding: 14px; font-family: 'Nunito', sans-serif;
  font-size: 0.82rem; line-height: 1.6; color: var(--noir);
  white-space: pre-wrap; word-break: break-word; margin: 0;
}

/* Bouton envoyer WhatsApp */
.btn-send-wa {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  background: #25D366; color: white; border: none;
  padding: 16px 24px; border-radius: 50px; font-weight: 800;
  font-size: 1rem; cursor: pointer; transition: var(--transition);
  box-shadow: 0 6px 20px rgba(37,211,102,0.4);
  font-family: 'Nunito', sans-serif; width: 100%;
}
.btn-send-wa:hover { background: #1DA851; transform: translateY(-3px); box-shadow: 0 12px 30px rgba(37,211,102,0.5); }
.btn-send-wa svg { width: 22px; height: 22px; fill: white; }

.form-note {
  text-align: center; font-size: 0.8rem; color: var(--gris);
  line-height: 1.5; margin-top: -8px;
}

/* ── FORMULAIRE MESSAGE ── */
.msg-section { background: var(--gris-clair); }
.msg-form-wrap {
  background: var(--blanc); border-radius: var(--radius-lg);
  padding: 40px; box-shadow: var(--shadow);
  max-width: 800px; margin: 0 auto;
}
.msg-form-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px;
}
.msg-form-grid .full-width { grid-column: 1 / -1; }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 768px) {
  .page-hero { height: 300px; }
  .msg-form-grid { grid-template-columns: 1fr; }
  .order-form { padding: 20px; }
  .order-form-header { padding: 20px; }
}

/* Le ticker sur les pages secondaires vient APRES page-hero */
.page-hero + .ticker-wrap { margin-top: 0; }
