/* Recherche avancée — design 2027 (offres/recherche-avancee-2027.phtml).
   Le formulaire est celui de l'ancien design (partials/form-recherche-avancee.phtml) : seules les règles
   de mise en forme sont ici ; le comportement (suggestions, pastilles, rayon) reste dans recherche.js. */

.carte-recherche-avancee { margin-top: 28px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); padding: 18px; }
.d27 .form-recherche-avancee { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; grid-template-areas: "emploi lieu bouton" "contrats contrats contrats"; gap: 10px; align-items: start; }
.d27 .form-recherche-avancee fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.d27 .form-recherche-avancee .display-none { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.d27 .form-recherche-avancee .suggests-content { grid-area: emploi; }
.d27 .form-recherche-avancee .localisation-options { grid-area: lieu; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: start; }
.d27 .form-recherche-avancee .localisation-options > input[type=text] { grid-column: 1; grid-row: 1; }
.d27 .form-recherche-avancee .localisation-options > input[type=text].hidden { display: block !important; }
.d27 .form-recherche-avancee .distance-localisation-wrapper { grid-column: 2; grid-row: 1; }
.d27 .form-recherche-avancee .localisation-options > .suggests-results { grid-column: 1 / -1; grid-row: 2; margin-top: 0; }
.d27 .form-recherche-avancee input[type=text] { width: 100%; min-height: 56px; border: 0; border-radius: var(--r-md); background: var(--mist) no-repeat 14px center / 18px; padding: 0 14px 0 42px; font: 500 var(--fs-md) var(--font-body); color: var(--ink); box-sizing: border-box; }
.d27 .form-recherche-avancee #keywords { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234a5d6e' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E"); }
.d27 .form-recherche-avancee #localisation { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234a5d6e' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M12 21s7-6.2 7-11.5A7 7 0 0 0 5 9.5C5 14.8 12 21 12 21Z'/%3E%3Ccircle cx='12' cy='9.5' r='2.5'/%3E%3C/svg%3E"); }
.d27 .form-recherche-avancee input[type=text]:focus { outline: 2px solid var(--brand); background-color: #fff; }
.d27 .form-recherche-avancee select { height: 56px; border: 0; border-radius: var(--r-md); background: var(--mist); padding: 0 10px; font: 600 var(--fs-sm) var(--font-body); color: var(--ink); cursor: pointer; }
.d27 .form-recherche-avancee input[type=submit] { grid-area: bouton; min-height: 56px; border: 0; border-radius: var(--r-md); background: var(--brand); color: #fff; font: 600 var(--fs-md) var(--font-body); padding: 0 28px; cursor: pointer; }
.d27 .form-recherche-avancee input[type=submit]:hover { background: var(--brand-deep); }
/* Types de contrat en pastilles (même rendu que la recherche de l'accueil) */
.d27 .form-recherche-avancee .check-content { grid-area: contrats; padding: 4px 2px 2px; }
.d27 .form-recherche-avancee .check-content ul { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.d27 .form-recherche-avancee .check-content li { position: relative; }
.d27 .form-recherche-avancee .check-content input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.d27 .form-recherche-avancee .check-content label { display: inline-block; border: 1.5px solid var(--line); border-radius: 999px; padding: 7px 14px; background: #fff; font: 600 var(--fs-sm) var(--font-body); color: var(--ink); cursor: pointer; }
.d27 .form-recherche-avancee .check-content input:checked + label { background: var(--brand-tint); border-color: var(--brand); color: var(--brand-deep); }
.d27 .form-recherche-avancee .check-content input:focus-visible + label { outline: 3px solid var(--brand); outline-offset: 2px; }

/* Top des recherches : liens en colonnes */
.liens-top ol { columns: 3 220px; column-gap: 32px; margin: 0; padding: 0; list-style: none; }
.liens-top li { break-inside: avoid; border-bottom: 1px solid var(--line); }
.liens-top a { display: block; padding: 11px 0; color: var(--ink); font-weight: 600; font-size: var(--fs-sm); }
.liens-top a:hover { color: var(--brand); text-decoration: none; }
.liens-top-tout { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px; }
.liens-top-tout .i { width: 16px; height: 16px; }

/* Services candidat */
.grille-services { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.grille-services .card h3 { margin-top: 4px; }
.grille-services .link-arrow .i { width: 16px; height: 16px; }

@media (max-width: 900px) {
  .d27 .form-recherche-avancee { grid-template-columns: minmax(0, 1fr); grid-template-areas: "emploi" "lieu" "contrats" "bouton"; }
  .d27 .form-recherche-avancee input[type=submit] { width: 100%; }
  .grille-services { grid-template-columns: minmax(0, 1fr); }
}
