/* Formulaire de contact public et page « Contact » (port de views/css/contact.css).
   Pas de dépendance au thème (WordPress n'a pas Bootstrap) : grille et champs définis ici. */
.helpdesk-contact-page{display:flex;flex-wrap:wrap;gap:30px;margin-top:10px;align-items:flex-start}
.helpdesk-contact-info{flex:1 1 260px;max-width:380px}
.helpdesk-contact-main{flex:2 1 420px;min-width:0}
.hd-card{background:#fff;border:1px solid #e9e9e9;border-radius:10px;padding:22px 24px;box-shadow:0 2px 10px rgba(0,0,0,.04);box-sizing:border-box}
.hd-card__title{margin:0 0 18px;font-size:1.05rem;font-weight:700;text-transform:uppercase;letter-spacing:.04em}
.hd-info{display:flex;gap:14px;align-items:flex-start;padding:12px 0;border-top:1px solid #f0f0f0;line-height:1.5}
.hd-card__title+.hd-info{border-top:0;padding-top:0}
.hd-info__icon{flex:0 0 38px;width:38px;height:38px;border-radius:50%;background:var(--hd-primary,#5b2ee0);display:flex;align-items:center;justify-content:center}
.hd-info__icon svg{width:18px;height:18px;fill:#fff}
.hd-info__label{display:block;font-size:.78rem;text-transform:uppercase;letter-spacing:.05em;color:#888}
.hd-info a{font-weight:600;word-break:break-all}
@media (max-width:767px){.helpdesk-contact-info{max-width:none}}

/* ---------- Formulaire ---------- */
.helpdesk-form{background:#fff;border:1px solid #e9e9e9;border-radius:12px;padding:28px 30px;box-shadow:0 2px 10px rgba(0,0,0,.04);box-sizing:border-box;font-style:normal}
.helpdesk-form *{box-sizing:border-box}
.helpdesk-form .hd-row{display:flex;flex-wrap:wrap;gap:6px 20px;margin-bottom:18px;align-items:flex-start}
.helpdesk-form .hd-label{flex:0 0 25%;font-weight:600;color:#333;padding-top:13px;line-height:22px}
.helpdesk-form .hd-label.is-required::after{content:" *";color:var(--hd-primary,#5b2ee0)}
.helpdesk-form .hd-field{flex:1 1 0;min-width:0}
.helpdesk-form .hd-row--submit .hd-field{margin-left:calc(25% + 20px)}
.helpdesk-form .hd-input{display:block;width:100%;height:48px;min-height:48px;line-height:22px;padding:12px 16px;font-size:.98rem;color:#222;background:#fafafa;border:1px solid #e3e3e3;border-radius:10px;box-shadow:inset 0 1px 2px rgba(0,0,0,.03);transition:border-color .15s,box-shadow .15s,background .15s;font-family:inherit}
.helpdesk-form .hd-input::placeholder{color:#aaa;font-style:normal}
.helpdesk-form .hd-input:hover{border-color:#d0d0d0}
.helpdesk-form .hd-input:focus{background:#fff;border-color:var(--hd-primary,#5b2ee0);box-shadow:0 0 0 4px rgba(91,46,224,.12);outline:0}
.helpdesk-form .hd-textarea{height:auto;min-height:170px;resize:vertical;line-height:1.5}
.helpdesk-form .hd-select{appearance:none;-webkit-appearance:none;background-image:url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='%23666'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 14px center;padding-right:40px}
.helpdesk-form .hd-file{display:block;padding:10px 0;font-size:.92rem;color:#555}
.helpdesk-form .hd-file::file-selector-button{margin-right:12px;padding:8px 16px;border:1px solid #ddd;border-radius:8px;background:#fff;color:#333;font-weight:600;cursor:pointer;transition:background .15s}
.helpdesk-form .hd-file::file-selector-button:hover{background:#f2f2f2}
.helpdesk-form .hd-help{display:block;margin-top:6px;font-size:.8rem;color:#777}
.hd-submit{display:inline-block;padding:13px 34px;border:0;border-radius:999px;background:var(--hd-primary,#5b2ee0);color:#fff;font-size:1rem;font-weight:700;letter-spacing:.03em;cursor:pointer;box-shadow:0 6px 18px rgba(91,46,224,.28);transition:transform .12s,box-shadow .12s}
.hd-submit:hover{transform:translateY(-1px);box-shadow:0 10px 22px rgba(91,46,224,.32)}
.hd-submit:disabled{opacity:.7;transform:none;cursor:wait}
@media (max-width:767px){
  .helpdesk-form{padding:20px 18px}
  .helpdesk-form .hd-label{flex:1 1 100%;padding-top:0}
  .helpdesk-form .hd-field{flex:1 1 100%}
  .helpdesk-form .hd-row--submit .hd-field{margin-left:0}
}

/* ---------- Messages ---------- */
.hd-alert{padding:14px 18px;margin:0 0 16px;border-radius:10px;border:1px solid transparent;line-height:1.5}
.hd-alert--success{background:#e8f6ec;border-color:#bfe5c8;color:#1c6b32}
.hd-alert--error{background:#fdecea;border-color:#f5c2bc;color:#a12a1e}
.hd-alert--info{background:#eaf3fb;border-color:#c3dcf2;color:#1d4f7a}

/* Formulaire du helpdesk dans un bloc Atelier : le style vient du thème (classes at-form__*) */
.helpdesk-form--atelier .wph-at-form{margin:0}
.helpdesk-form--atelier .wph-at-form__opt{font-weight:400;opacity:.7}
.helpdesk-form--atelier .wph-at-form__file{padding:10px;cursor:pointer}
.helpdesk-form--atelier select.at-form__input{appearance:auto}
.helpdesk-form--atelier .at-form__status--error{color:#e5484d;margin-top:12px}
.helpdesk-form--atelier .at-form__status--success{padding:18px 0;font-size:1.05em;line-height:1.6}
