/* Ajustements WordPress au design du prototype ESSOR. */
.prototype-note { display: none !important; }
.site-main { min-height: 55vh; }
.admin-bar .site-header { top: 32px; }
.main-nav-list { display: flex; align-items: center; gap: 6px; margin: 0; padding: 0; list-style: none; }
.main-nav-list a { display: block; padding: 10px 11px; border-radius: 10px; font-size: .91rem; font-weight: 720; }
.main-nav-list .current-menu-item > a,
.main-nav-list .current_page_item > a { color: var(--brand); background: var(--brand-soft); }
.entry-content > *:first-child { margin-top: 0; }
.entry-content a { color: var(--brand); text-decoration: underline; }
.content-shell { max-width: 900px; }
.profile-directory-layout { display: grid; grid-template-columns: minmax(220px, 280px) 1fr; gap: 28px; align-items: start; }
.directory-filters { position: sticky; top: 110px; padding: 22px; border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: var(--shadow); }
.directory-filters label { display: grid; gap: 7px; margin-bottom: 16px; font-size: .82rem; font-weight: 700; }
.directory-filters input[type="search"],
.directory-filters select { width: 100%; padding: 12px 13px; border: 1px solid var(--line); border-radius: 11px; background: #fff; }
.directory-filters .check-line { display: flex; align-items: center; gap: 9px; }
.directory-results { min-width: 0; }
.directory-summary { display: flex; justify-content: space-between; gap: 20px; align-items: end; margin-bottom: 18px; }
.profile-photo-placeholder { display: grid; width: 100%; height: 100%; place-items: center; color: var(--brand); background: linear-gradient(135deg, var(--brand-soft), var(--mint)); font-size: 2.4rem; font-weight: 700; }
.profile-card-body { display: flex; min-height: 390px; flex-direction: column; gap: 13px; padding: 22px; }
.tag-row { display: flex; flex-wrap: wrap; gap: 7px; }
.tag { display: inline-flex; align-items: center; min-height: 28px; padding: 5px 9px; border-radius: 999px; color: var(--brand-dark); background: var(--brand-soft); font-size: .76rem; font-weight: 800; }
.tag.accent { background: var(--accent); }
.profile-card[hidden] { display: none !important; }
.profile-card .profile-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: auto; }
.profile-card .profile-actions .btn { padding: 10px 13px; font-size: .8rem; }
.profile-location { margin-top: 12px; font-size: .82rem; font-weight: 700; }
.profile-detail-grid { display: grid; grid-template-columns: minmax(260px, .8fr) 1.4fr; gap: 50px; align-items: start; }
.profile-detail-photo { overflow: hidden; aspect-ratio: 4 / 5; border-radius: 30px; background: var(--brand-soft); box-shadow: var(--shadow); }
.profile-detail-photo img { width: 100%; height: 100%; object-fit: cover; }
.profile-detail-meta { display: flex; flex-wrap: wrap; gap: 9px; }
.profile-contact-panel { padding: 24px; border: 1px solid var(--line); border-radius: 20px; background: #fff; }
.profile-contact-panel dl { display: grid; grid-template-columns: minmax(110px, auto) 1fr; gap: 10px 18px; margin: 0; }
.profile-contact-panel dt { font-weight: 700; }
.profile-contact-panel dd { margin: 0; overflow-wrap: anywhere; }
.profile-contact-panel details summary { width: fit-content; cursor: pointer; list-style: none; }
.profile-contact-panel details summary::-webkit-details-marker { display: none; }
.profile-contact-details { margin-top: 18px; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.no-results { padding: 30px; border: 1px dashed var(--line); border-radius: 18px; text-align: center; }

/* Contact Form 7 : intégration au langage visuel ESSOR. */
.grid > *,
.form-shell,
.form-shell .wpcf7,
.form-shell .wpcf7-form,
.form-shell .wpcf7-form-control-wrap { min-width: 0; }
.form-shell { align-self: start; width: 100%; overflow: hidden; padding: clamp(22px, 3vw, 34px); }
.form-shell-heading { display: grid; gap: 8px; margin-bottom: 6px; }
.form-shell-heading .eyebrow { margin-bottom: 2px; }
.form-shell-heading h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); }
.form-shell-heading p:last-child { color: var(--ink-soft); }
.form-shell .wpcf7-form { display: grid; gap: 15px; }
.form-shell .wpcf7-form > p { margin: 0; }
.form-shell .wpcf7-form-control-wrap { display: block; width: 100%; }
.form-shell input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]),
.form-shell select,
.form-shell textarea {
  display: block;
  width: 100%;
  max-width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  background: #fff;
  font: inherit;
  line-height: 1.35;
  box-sizing: border-box;
}
.form-shell textarea { min-height: 155px; resize: vertical; }
.form-shell select { text-overflow: ellipsis; }
.form-shell input:focus,
.form-shell select:focus,
.form-shell textarea:focus { outline: 3px solid rgba(32, 78, 151, .16); border-color: var(--brand); }
.form-shell input[type="checkbox"],
.form-shell input[type="radio"] { flex: 0 0 auto; width: 18px; height: 18px; margin: 3px 0 0; accent-color: var(--brand); }
.form-shell .wpcf7-list-item { margin: 0; }
.form-shell .wpcf7-list-item label { display: flex; gap: 10px; align-items: flex-start; }
.form-shell .wpcf7-list-item-label { min-width: 0; overflow-wrap: anywhere; }
.form-shell input[type="submit"] {
  width: fit-content;
  min-height: 48px;
  padding: 12px 22px;
  border: 0;
  border-radius: 12px;
  color: #fff;
  background: var(--brand);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}
.form-shell input[type="submit"]:hover { background: var(--brand-dark); }
.form-shell .wpcf7-not-valid-tip { margin-top: 6px; color: #b42318; font-size: .82rem; font-weight: 700; }
.form-shell .wpcf7-response-output { margin: 0 !important; padding: 13px 14px !important; border-radius: 12px; }
.form-shell .wpcf7-spinner { vertical-align: middle; }
[data-sessions]:empty { display: none; }

@media (max-width: 980px) {
  .admin-bar .site-header { top: 46px; }
  .main-nav-list { display: grid; gap: 3px; }
  .grid.two { grid-template-columns: 1fr; }
  .profile-directory-layout { grid-template-columns: 1fr; }
  .directory-filters { position: static; }
  .profile-detail-grid { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .form-shell { padding: 20px 16px; border-radius: 18px; }
}

@media (max-width: 782px) {
  .admin-bar .site-header { top: 46px; }
}

