/* ============================================================
   MÉRIDIAN — Page Contact
   Chargée via stylesheets.tpl uniquement sur page_name == 'contact'.
   Habille l'en-tête, le bloc « informations boutique » (ps_contactinfo,
   colonne latérale si présente) et le formulaire natif (contactform),
   qui utilise une grille Bootstrap neutralisée ici au profit d'un
   formulaire vertical propre.
   ============================================================ */

#main { padding-block: clamp(32px, 5vw, 64px); }
#main > .container, #content-wrapper { min-width: 0; }

/* ---------- En-tête ---------- */
#main .page-header { margin-bottom: clamp(24px, 3.5vw, 44px); padding-bottom: 22px; border-bottom: 1px solid var(--line); }
#main .page-header h1,
#main .page-header .title-user {
  font-family: var(--font-display); font-weight: 500; line-height: 1;
  font-size: clamp(30px, 4.4vw, 52px); letter-spacing: -0.01em; margin: 0;
}

/* ---------- Bloc informations boutique (colonne latérale) ---------- */
.block-contact {
  border: 1px solid var(--line); border-radius: 4px; background: var(--bg-2);
  padding: clamp(22px, 2.6vw, 32px);
}
.block-contact .block-contact-title,
.block-contact .title .h3, .block-contact .h4 {
  font-family: var(--font-display); font-size: 20px; font-weight: 500;
  text-transform: none; letter-spacing: 0; color: var(--ink); margin: 0 0 16px;
}
.block-contact #contact-infos { font-size: 14.5px; line-height: 1.9; color: var(--ink-soft); }
.block-contact #contact-infos a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }
/* pas d'accordéon mobile sur cette page : le bloc est toujours ouvert */
.block-contact .title.hidden-md-up { display: none; }
.block-contact #contact-infos.collapse { display: block; }

/* ---------- Bloc informations boutique — variante « rich » (colonne contact) ---------- */
.contact-rich { border: 1px solid var(--line); border-radius: 4px; background: var(--bg-2); padding: clamp(22px, 2.6vw, 32px); }
.contact-rich h4 { font-family: var(--font-display); font-size: 20px; font-weight: 500; color: var(--ink); margin: 0 0 18px; }
.contact-rich .block { display: flex; gap: 14px; align-items: flex-start; }
.contact-rich .icon { flex-shrink: 0; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; color: var(--accent); background: var(--surface); }
.contact-rich .data { font-size: 14.5px; line-height: 1.7; color: var(--ink-soft); padding-top: 6px; }
.contact-rich .data a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }
.contact-rich hr { border: 0; border-top: 1px solid var(--line-soft); margin: 18px 0; }

/* ---------- Formulaire de contact ---------- */
.form-contact { max-width: 720px; }

/* neutralise la grille Bootstrap héritée (col-md-3 label / col-md-6 champ…) :
   on empile proprement label puis champ pleine largeur */
.form-contact .form-fields { display: flex; flex-direction: column; gap: 20px; }
.form-contact .form-group.row { display: block; margin: 0; }
.form-contact .contact-items { padding: 0; }
.form-contact [class*="col-"] { flex: none; max-width: none; width: 100%; padding: 0; }

.form-contact .form-control-label {
  display: block; margin: 0 0 8px; font-size: 11px; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; color: var(--ink-faint);
}
.form-contact .form-control-label .option { text-transform: none; letter-spacing: 0; font-weight: 400; color: var(--ink-faint); margin-left: 6px; }

.form-contact .form-control,
.form-contact input[type="email"], .form-contact input[type="text"],
.form-contact select, .form-contact textarea {
  width: 100%; padding: 13px 14px; border: 1px solid var(--line); border-radius: 2px;
  background: var(--surface); font-family: var(--font-sans); font-size: 14.5px; color: var(--ink);
  outline: none; transition: border-color .2s;
}
.form-contact .form-control:focus,
.form-contact input:focus, .form-contact select:focus, .form-contact textarea:focus { border-color: var(--ink); }
.form-contact textarea.form-control { min-height: 150px; resize: vertical; }
.form-contact select {
  appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 38px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23736b62' stroke-width='1.6'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 13px center;
}
.form-contact input[type="file"] { font-size: 13.5px; color: var(--ink-soft); border: 1px dashed var(--line); border-radius: 2px; padding: 12px 14px; background: var(--bg-2); cursor: pointer; }

/* alerte succès / erreur (après envoi) */
.form-contact .alert { margin: 0 0 22px; }

/* pied + bouton envoyer */
.form-contact .form-footer { margin-top: 28px; text-align: left; border: 0; padding: 0; }
.form-contact .form-control-submit, .form-contact .btn-primary {
  display: inline-flex; align-items: center; justify-content: center; float: none;
  font-size: 12.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  padding: 16px 34px; border-radius: 2px; border: 1px solid var(--ink);
  background: var(--ink); color: var(--bg); cursor: pointer; transition: all .4s var(--ease);
}
.form-contact .form-control-submit:hover, .form-contact .btn-primary:hover { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
