/* Identité publique de La Vitrine des Professionnels.
   Les styles .tf-palette et les couleurs personnalisées des fiches ne sont
   volontairement pas redéfinis ici. */
:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --text: #1d1d1d;
  --muted: #696969;
  --primary: #171717;
  --primary-hover: #383838;
  --accent: #c9c9c9;
  --bleu-marine: #222222;
  --bleu-marine-hover: #111111;
  --bleu-vif: #444444;
  --bleu-clair: #f7f7f7;
  --bleu-doux: #eeeeee;
  --bleu-bordure: #d8d8d8;
  --champ-fond: #f5f5f5;
  --border: #dedede;
  --resultats-violet: #303030;
  --resultats-violet-hover: #111111;
  --resultats-violet-soft: #f3f3f3;
  --resultats-violet-line: rgba(0, 0, 0, 0.18);
  --resultats-carte-fond: #f7f7f7;
}

html,
body {
  background-color: #ffffff;
  color: #1d1d1d;
}

h1,
h2,
h3 {
  color: #222222;
}

a {
  color: #222222;
}

a:hover,
a:focus-visible {
  color: #555555;
}

.bandeau-marque {
  background: #ffffff;
  border-bottom: 1px solid #ededed;
}

.bandeau-marque-signature {
  border-color: #bcbcbc;
  color: #4a4a4a;
}

.bandeau-marque-logo img,
.logo-img {
  height: auto;
  object-fit: contain;
  object-position: left center;
}

.bandeau-marque-logo img {
  width: clamp(10rem, 16vw, 14rem);
}

.logo-img {
  width: clamp(10rem, 18vw, 14rem);
}

.site-header {
  background: #ffffff;
  border-bottom: 1px solid #e5e5e5;
  box-shadow: none;
}

.barre-categories,
.search-band {
  background: #ffffff;
  border-color: #e5e5e5;
}

.barre-categories-liste a,
.visitor-navigation a,
.visitor-account-toggle {
  color: #252525;
}

.barre-categories-liste a:hover,
.barre-categories-liste a.actif,
.visitor-navigation a:hover,
.visitor-navigation a:focus-visible,
.visitor-account-menu a:hover,
.visitor-account-menu a:focus-visible,
.visitor-account-menu button:hover,
.visitor-account-menu button:focus-visible {
  color: #111111;
  background: #f2f2f2;
}

.visitor-account-toggle:focus-visible,
.nav-toggle:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline-color: #555555;
}

.dropdown-menu,
.visitor-account-menu {
  border-color: #dedede;
  border-top-color: #777777;
  background: #ffffff;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.09);
}

.btn-primary,
.btn-secondary {
  border: 1px solid #222222;
  border-radius: 6px;
  background: #222222;
  color: #ffffff;
  box-shadow: none;
}

.btn-primary::before,
.btn-secondary::before {
  display: none;
}

.btn-primary:hover,
.btn-secondary:hover,
.btn-primary:focus-visible,
.btn-secondary:focus-visible {
  border-color: #444444;
  background: #444444;
  color: #ffffff;
}

.site-footer {
  border-top: 1px solid #e5e5e5;
  background: #ffffff;
  color: #555555;
}

.site-footer .muted {
  color: #777777;
}

.step-number {
  background: #e6e6e6;
  color: #222222;
}

.search-message {
  color: #444444;
}

.resultats-bandeau-trait {
  background: #d2d2d2;
}

.resultats-retour,
.resultats-retour:hover {
  color: #303030;
}

.resultat-carte:not(.tf-palette):not([data-custom-contour]):where(:not(.imported-fiche-shell *))::before {
  border-color: #d7d7d7;
  box-shadow: none;
}

.resultat-carte:not(.tf-palette):not([data-custom-contour]):where(:not(.imported-fiche-shell *))::after {
  border-color: #e1e1e1;
}

.resultat-separateur:where(:not(.imported-fiche-shell *))::before,
.resultat-separateur:where(:not(.imported-fiche-shell *))::after,
.resultat-contact-boutons:where(:not(.imported-fiche-shell *))::before,
.resultat-contact-boutons:where(:not(.imported-fiche-shell *))::after {
  background-image: none;
  background-color: #d4d4d4;
}

.resultat-separateur[data-custom-color="separators"]:where(:not(.imported-fiche-shell *))::before,
.resultat-separateur[data-custom-color="separators"]:where(:not(.imported-fiche-shell *))::after,
.resultat-contact-boutons[data-custom-separator="separators"]:where(:not(.imported-fiche-shell *))::before,
.resultat-contact-boutons[data-custom-separator="separators"]:where(:not(.imported-fiche-shell *))::after {
  background-image: none !important;
  background-color: var(--tf-custom-separator-color, #d4d4d4) !important;
}

.resultat-contact-boutons:not([data-contact-icon-color]) .resultat-contact-icone:where(:not(.imported-fiche-shell *)) {
  filter: grayscale(1);
}

.resultat-description-dialog:where(:not(.imported-fiche-shell *)) {
  border-color: #dddddd;
  box-shadow: 0 1.5rem 4rem rgba(0, 0, 0, 0.18);
}

.resultat-description-dialog:where(:not(.imported-fiche-shell *))::backdrop {
  background: rgba(0, 0, 0, 0.28);
  backdrop-filter: none;
}

.resultat-description-dialog-header:where(:not(.imported-fiche-shell *)) {
  background: #262626;
}

/* Accueil : composition aérée avec logo et accès professionnel en tête,
   recherche centrée dans le grand espace blanc et pied de page en bas. */
body.page-accueil {
  --page-inset: clamp(0.75rem, 1.5vw, 1.5rem);
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - var(--page-inset) - var(--page-inset));
  min-height: calc(100dvh - var(--page-inset) - var(--page-inset));
  margin: var(--page-inset);
  overflow: visible;
  border: 1px solid #e3e3e3;
  border-radius: 1.5rem;
  background: #ffffff;
}

.page-accueil .bandeau-marque {
  border: 0;
  border-radius: 1.5rem 1.5rem 0 0;
}

.page-accueil .bandeau-marque-inner {
  width: calc(100% - clamp(2rem, 6vw, 6rem));
  max-width: none;
  min-height: clamp(7rem, 13vw, 10.5rem);
  padding-block: 0.75rem;
}

.page-accueil .bandeau-marque-logo img {
  width: clamp(15rem, 22vw, 21rem);
}

.page-accueil .bandeau-marque-inner .visitor-navigation {
  margin-left: auto;
  font-size: 1rem;
}

.page-accueil main {
  flex: 1 1 auto;
  min-height: 0;
}

.page-accueil .hero {
  min-height: 100%;
  padding: clamp(2rem, 6vh, 5rem) 1rem;
  background: #ffffff;
}

.page-accueil .hero-inner {
  width: min(100%, 76rem);
  margin-inline: auto;
}

.page-accueil .titre-recherche {
  margin: 0 0 clamp(1.3rem, 3vh, 2rem);
  color: #252525;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.15rem;
  font-weight: 400;
  line-height: 1.25;
  text-align: center;
}

.page-accueil .search-card {
  display: flex;
  width: min(100%, 60rem);
  flex-direction: column;
  gap: clamp(1.2rem, 2.3vh, 1.75rem);
  margin-inline: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  text-align: left;
}

.page-accueil .search-field {
  width: 100%;
}

.page-accueil .champ-groupe {
  min-height: clamp(3.75rem, 6vw, 4.65rem);
  gap: 0.55rem;
  padding: 0.25rem 0.55rem;
  border: 2px solid #bcbcbc;
  border-radius: 0.8rem;
  background: #f8f8f8;
}

.page-accueil .champ-groupe:focus-within {
  border-color: #555555;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.06);
}

.page-accueil .champ-groupe input {
  min-height: 3rem;
  background: transparent;
  color: #222222;
  font-size: clamp(1rem, 1.6vw, 1.25rem);
}

.page-accueil .champ-bouton,
.page-accueil .champ-bouton[aria-pressed="true"],
.page-accueil .champ-bouton:hover,
.page-accueil .champ-bouton:focus-visible {
  border-color: transparent;
  background: transparent;
  color: #454545;
}

.page-accueil .champ-bouton svg {
  width: 1.65rem;
  height: 1.65rem;
}

.page-accueil .search-card .btn {
  align-self: center;
  width: min(15.5rem, 100%);
  min-height: 2.76rem;
  height: 2.76rem;
  padding: 0.5rem 1.25rem;
  border-radius: 0.4rem;
  background: #222222;
  color: #ffffff;
  font-size: clamp(1.05rem, 1.5vw, 1.3rem);
  font-weight: 500;
}

.page-accueil .search-message {
  width: min(100%, 60rem);
  margin: 0.9rem auto 0;
  color: #4f4f4f;
  text-align: center;
}

.page-accueil .site-footer {
  display: block;
  flex: 0 0 auto;
  padding: 0.75rem 0 1.25rem;
  border: 0;
  background: transparent;
}

.page-accueil .footer-inner {
  width: calc(100% - clamp(2rem, 6vw, 6rem));
  max-width: none;
  justify-content: center;
  gap: 0.25rem 1.5rem;
  border-top: 1px solid #eeeeee;
  padding-top: 0.9rem;
  color: #696969;
  text-align: center;
}

.page-accueil .footer-inner p {
  margin: 0;
}

@media (max-width: 640px) {
  body.page-accueil {
    --page-inset: 0.55rem;
    border-radius: 1rem;
  }

  .page-accueil .bandeau-marque,
  .page-accueil .bandeau-marque-inner {
    border-radius: 1rem 1rem 0 0;
  }

  .page-accueil .bandeau-marque-inner {
    width: calc(100% - 1.5rem);
    min-height: 6.25rem;
    gap: 0.5rem;
    padding-block: 0.6rem;
  }

  .page-accueil .bandeau-marque-logo img {
    width: clamp(10rem, 44vw, 14rem);
  }

  .page-accueil .bandeau-marque-inner .visitor-navigation {
    font-size: 0.85rem;
  }

  .page-accueil .hero {
    padding: 2.5rem 0.75rem;
  }

  .page-accueil .titre-recherche {
    margin-bottom: 1.35rem;
    font-size: 1rem;
  }

  .page-accueil .champ-groupe {
    min-height: 3.75rem;
  }

  .page-accueil .search-card .btn {
    width: min(15.5rem, 100%);
    min-height: 2.275rem;
    height: 2.275rem;
    font-size: 1.05rem;
  }

  .page-accueil .site-footer {
    padding-bottom: 0.75rem;
  }

  .page-accueil .footer-inner {
    width: calc(100% - 1.5rem);
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.8rem;
  }
}

/* Accueil — adaptation validée à la maquette presse écrite. */
body.page-accueil {
  --page-inset: 0px;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  border: 0;
  border-radius: 0;
}

.page-accueil .bandeau-marque,
.page-accueil .bandeau-marque-inner {
  border-radius: 0;
}

.page-accueil .bandeau-marque-inner {
  width: calc(100% - clamp(2rem, 6vw, 6rem));
  min-height: clamp(7rem, 13vw, 10.5rem);
}

.page-accueil .bandeau-marque-inner .visitor-navigation {
  margin-left: auto;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1rem;
  transform: translateY(-2.75rem);
}

.page-accueil .hero {
  padding: clamp(2rem, 6vh, 5rem) 1rem;
}

.page-accueil .titre-recherche {
  margin: 0 0 clamp(1.3rem, 3vh, 2rem);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.35;
}

.page-accueil .champ-groupe {
  min-height: 2.4rem;
  gap: 0.45rem;
  padding: 0.1rem 0.45rem;
  border: 1px solid #777777;
  border-radius: 0;
  background: #ffffff;
  box-shadow: none;
}

.page-accueil .champ-groupe:focus-within {
  border-color: #222222;
  box-shadow: none;
}

.page-accueil .champ-groupe input {
  min-height: 2.1rem;
  background: #ffffff;
}

.page-accueil .champ-groupe input#search-query {
  background: #ffffff;
}

.page-accueil .champ-bouton,
.page-accueil .champ-bouton[aria-pressed="true"],
.page-accueil .champ-bouton:hover,
.page-accueil .champ-bouton:focus-visible {
  color: #333333;
}

.page-accueil .search-card .btn {
  width: min(13rem, 100%);
  height: 2.5rem;
  min-height: 2.5rem;
  padding: 0.25rem 1rem;
  border: 1px solid #222222;
  border-radius: 0;
  background: #ffffff;
  color: #222222;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1rem;
  font-weight: 400;
}

.page-accueil .search-card .btn:hover,
.page-accueil .search-card .btn:focus-visible {
  border-color: #222222;
  background: #f5f5f5;
  color: #111111;
}

.page-accueil .site-footer {
  display: block;
  padding: 0.75rem 0 1.25rem;
  border: 0;
  background: #ffffff;
}

.page-accueil .footer-inner {
  border-top: 3px double #333333;
  padding-top: 0.9rem;
  font-size: 0.75rem;
}

@media (max-width: 640px) {
  .page-accueil .bandeau-marque-inner {
    width: calc(100% - 1.5rem);
    min-height: 6.25rem;
    gap: 0.5rem;
    padding-block: 0.6rem;
  }

  .page-accueil .bandeau-marque-inner .visitor-navigation {
    font-size: 0.9rem;
    transform: translateY(-1.75rem);
  }

  .page-accueil .hero {
    padding: 2.5rem 0.75rem;
  }

  .page-accueil .titre-recherche {
    margin-bottom: 1.35rem;
    font-size: 1rem;
  }

  .page-accueil .champ-groupe {
    min-height: 2.4rem;
  }

  .page-accueil .search-card .btn {
    width: min(13rem, 100%);
    height: 2.5rem;
    min-height: 2.5rem;
  }

  .page-accueil .site-footer {
    padding-bottom: 0.75rem;
  }

  .page-accueil .footer-inner {
    width: calc(100% - 1.5rem);
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.68rem;
  }
}
