/* FILE_VERSION=2.0.5 — Theme leboncoin ultra light compact+ (typos & icônes réduites) */
/* Import Google Font */

@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap");

/* ————————————————————————
0. Variables
———————————————————————— */
/* Override du reset Tailwind CSS - suppression de border-style: solid */

*,
::before,
::after {
  border-style: none !important;
}

:root {
  /* Couleurs */
  --brand-primary: #ff6e14;
  --brand-primary-hover: #e86412;
  --brand-primary-active: #cc5a10;
  --brand-primary-ink: #ffffff;
  --ink-1: #2e2e2e;
  --ink-2: #55585c;
  --focus-ring: #2f80ed;
  /* Typo (encore plus compact) */
  --font-family:
    "Poppins", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial,
    sans-serif;
  --font-size-base: 13px;
  --font-size-small: 12px;
  --font-size-title: 16px;
  --font-size-subtitle: 14px;
  --line-height-base: 1.45;
  --line-height-tight: 1.25;
  /* Rayons */
  --radius-sm: 8px;
  --radius-md: 10px;
}

/* ————————————————————————
1. Base / Texte
———————————————————————— */

.mayday_layout-container,
.mayday_content-container {
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  line-height: var(--line-height-base);
  color: var(--ink-1);
  background: #fff;
}
.mayday_content-body,
.mayday_ask-markdown-answer {
  font-size: var(--font-size-base);
  line-height: var(--line-height-base);
  color: var(--ink-1);
  background: #fff;
}
.mayday_content-title,
.mayday_header-title,
.mayday_ask-header-title {
  font-size: var(--font-size-title);
  line-height: var(--line-height-tight);
  font-weight: 600;
  color: var(--ink-1);
}
.mayday_content-breadcrumb_label,
.mayday_navigation-title,
.mayday_ask-body-answer-sources-list-item-label {
  font-size: var(--font-size-small);
  color: var(--ink-2);
}
/* Liens */
.mayday_content-container a,
.mayday_navigation-container a,
.mayday_ask-link,
.mayday_ask-body-answer-sources-list-item-linkId {
  color: var(--brand-primary);
  text-decoration: none;
}
.mayday_ask-link__hovered,
.mayday_content-container a:hover {
  text-decoration: underline;
}
/* Focus accessible */
.mayday_content-container *:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ————————————————————————
2. Layout blanc / sans bordures ni ombres
———————————————————————— */

.mayday_header-nav {
  padding-top: 70px !important;
}

.mayday_navigation-container,
.mayday_folder-entity_container,
.mayday_ask-box,
.mayday_layout-sidebar,
.mayday_footer {
  background: #f4f4f4;
  border: none;
  box-shadow: none;
}

.mayday_header-container {
  height: 250px !important;
  margin-top: 70px !important;
  position: relative !important;
}

.mayday_header-home_view {
  height: 250px !important;
}
.mayday_header-col-logo > a {
  display: none !important;
}
.mayday_header-home_view_visible {
  max-height: 250px !important;
}
/* reset desktop style */
:is(.md .mayday_home_collection) {
  border-radius: 30px !important;
}
:is(.md .mayday_home_collection-img_wrapper) {
  margin-bottom: 0 !important;
}
.mayday_home_collection-img_wrapper
  :is(.mayday_home_collection-icon, .fa-upload)::before {
  font-size: 49px !important;
}
.mayday_home_collection {
  background: #f4f4f4 !important;
  border-radius: 30px !important;
  justify-content: center !important;
  height: 224px !important;
  width: 224px !important;
  border: 5px solid transparent !important;
  box-sizing: border-box !important;
  animation: none !important;
  transition: border-color 100ms ease 0s !important;
}
.mayday_home_collection-container_col:not(:last-child) {
  border-right: none !important;
}
.mayday_home_collection-container:not(:last-child)
  .mayday_home_collection-container_col {
  border-bottom-width: 0px !important;
}
.mayday_home_collection-container {
  gap: 20px;
}
.mayday_home_collection-wrapper {
  border-style: none !important;
}
.mayday_home_collection,
.mayday_home_collection:hover,
.mayday_home_collection-wrapper,
.mayday_home_collection-wrapper:hover {
  transform: none !important;
  scale: 1 !important;
}
.mayday_home_collection-inner {
  transform: translateY(-10px) !important;
  transition:
    color 120ms ease 0s,
    fill 120ms ease 0s,
    stroke 120ms ease 0s !important;
}
.mayday_home_collection:hover {
  border-color: #ff6c23 !important;
  border-width: 5px !important;
  box-shadow: none !important;
  --tw-shadow: none !important;
  --tw-shadow-colored: none !important;
  transition: border-color 120ms ease 0s !important;
}
.mayday_home_collection:hover .mayday_home_collection-inner,
.mayday_home_collection-inner:hover {
  color: #ff6c23 !important;
  fill: #ff6c23 !important;
  stroke: #ff6c23 !important;
  stroke-width: 1px !important;
  stroke-opacity: 1 !important;
  stroke-dasharray: 100% !important;
  stroke-dashoffset: 0 !important;
  stroke-linecap: round !important;
  stroke-linejoin: round !important;
  transition:
    color 120ms ease 0s,
    fill 120ms ease 0s,
    stroke 120ms ease 0s !important;
}
.mayday_home_collection-inner img {
  width: 45px !important;
  height: 49px !important;
  transition: none !important;
}
.mayday_home_collection-title {
  transition: none !important;
}
.mayday_home_collection:hover .mayday_home_collection-title {
  color: #ff6c23 !important;
  transition: none !important;
}
.mayday_home_collection:hover
  .mayday_home_collection-inner
  :is(.mayday_home_collection-icon, .fa-upload),
.mayday_home_collection-inner:hover
  :is(.mayday_home_collection-icon, .fa-upload) {
  color: #ff6c23 !important;
  -webkit-text-fill-color: #ff6c23 !important;
}
.mayday_home_collection:hover
  .mayday_home_collection-inner
  :is(.mayday_home_collection-icon, .fa-upload)::before,
.mayday_home_collection-inner:hover
  :is(.mayday_home_collection-icon, .fa-upload)::before {
  color: #ff6c23 !important;
  -webkit-text-fill-color: #ff6c23 !important;
}
.mayday_home_collection:hover .mayday_home_collection-inner :is(svg, svg *),
.mayday_home_collection-inner:hover :is(svg, svg *) {
  fill: #ff6c23 !important;
  stroke: #ff6c23 !important;
  color: #ff6c23 !important;
}
.mayday_home_collection:hover .mayday_home_collection-inner :is(img),
.mayday_home_collection-inner:hover :is(img) {
  /* Icônes img (svg externe/raster) : filter sans transition pour éviter le flash intermédiaire. */
  -webkit-filter: invert(67%) sepia(43%) saturate(7041%) hue-rotate(344deg)
    brightness(100%) contrast(103%) !important;
  filter: invert(67%) sepia(43%) saturate(7041%) hue-rotate(344deg)
    brightness(100%) contrast(103%) !important;
  transition: none !important;
}
.mayday_home_collection-highlight {
  display: none !important;
}

/* ————————————————————————
3. Barre de recherche - Header
———————————————————————— */

.mayday_header-container.mayday_header-container-home.mayday_header-container-fixed {
  height: 250px !important;
}

:is(.md .mayday_search-wrapper_label_text) {
  font-size: 30px !important;
}

.mayday_search-bar {
  padding-top: 40px !important;
}

.mayday_search-bar-wrapper {
  width: auto !important;
}

.mayday_search-input_icon {
  font-weight: bold !important;
}

.mayday_header-col-lang {
  position: absolute !important;
  top: 12px !important;
  right: 24px !important;
  z-index: 5 !important;
}

.mayday_search-input_wrapper {
  background-color: #fff !important;
  border: 1px solid rgba(0, 0, 0, 0.05) !important;
  border-radius: var(--radius-md) !important;
  font-size: var(--font-size-small) !important;
  box-shadow: none !important;
  padding: 6px 10px !important;
  border-radius: 20px !important;
  height: 48px !important;
  width: 600px !important;
}

.mayday_search-input_wrapper_focus {
  box-shadow: 0 0 0 2px rgba(255, 110, 20, 0.22);
}

.mayday_search-input_group {
  justify-content: center !important;
}

/* ————————————————————————
4. Boutons (compacts)
———————————————————————— */

.mayday_base-button {
  font-size: var(--font-size-small);
  border-radius: var(--radius-md);
  border: none;
  box-shadow: none;
  padding: 5px 12px;
  transition: background-color 0.15s ease;
}
.mayday_base-button--primary {
  background: var(--brand-primary);
  color: var(--brand-primary-ink);
}

/*.mayday_base-button--primary:hover {
background: var(--brand-primary-hover);
border: 5px solid #FF5E00;
}*/

.mayday_base-button--secondary,
.mayday_base-button--tertiary {
  background: transparent;
  color: var(--brand-primary);
}

/* ————————————————————————
5. Composant Ask (FAQ IA)
———————————————————————— */

.mayday_ask-input-wrapper {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: var(--radius-md);
  font-size: var(--font-size-small);
  padding: 6px 8px;
}
.mayday_ask-input__active {
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px rgba(255, 110, 20, 0.16);
}
.mayday_ask-input-button,
.mayday_ask-button-activate {
  background: var(--brand-primary);
  color: var(--brand-primary-ink);
  font-size: var(--font-size-small);
  padding: 5px 10px;
  border-radius: var(--radius-md);
  border: none;
}
.mayday_ask-input-button:hover {
  background: var(--brand-primary-hover);
}
.mayday_ask-markdown-answer {
  background: #fff;
}

/* Suppression des encadrés système */
.mayday_ask-body-answer-no-result,
.mayday_ask-body-answer-is-error-wrapper,
.mayday_ask-body-answer-is-inappropriate,
.mayday_ask-body-answer-is-decline {
  background: #fff;
  border: none;
}

/* ————————————————————————
6. Sources / Feedback
———————————————————————— */

.mayday_ask-body-answer-sources-list-item-wrapper,
.mayday_ask-feedback-container {
  background: #fff;
  border: none;
  box-shadow: none;
  font-size: var(--font-size-small);
}

/* ————————————————————————
7. Icônes (réduction globale)
———————————————————————— */

.mayday_base-icon,
.mayday_base-icon_img,
.mayday_header-btn-close-icon,
.mayday_search-input_icon,
.mayday_ask-input-button-icon,
.mayday_ask-input-icon,
.mayday_navigation-folder_chevron_icon,
.mayday_ask-body-answer-is-error-retry-icon,
.mayday_ask-feedback-thumb-container svg,
.mayday_base-button svg {
  width: 25px !important;
  height: 24px !important;
}
/* Pictos “content header” un poil plus grands pour la lisibilité */
.mayday_content-header_icon,
.mayday_content-header_icon--article,
.mayday_content-header_icon--diagnostic,
.mayday_content-header_icon--error {
  width: 16px !important;
  height: 16px !important;
}
/* Espacements icône/texte plus serrés */
.mayday_base-button svg {
  margin-right: 4px;
  vertical-align: middle;
}

.mayday_layout-main_wrapper {
  margin-top: 15px !important;
}

/* ————————————————————————
8. Accessibilité / Motion
———————————————————————— */

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}

/* ————————————————————————
9. Responsive Mobile (alignement en Grid)
———————————————————————— */

@media (max-width: 767px) {
  .mayday_header-container,
  .mayday_header-home_view,
  .mayday_header-container.mayday_header-container-home.mayday_header-container-fixed {
    height: 220px !important;
  }

  .mayday_search-bar-wrapper {
    width: 100% !important;
    padding-left: 12px !important;
    padding-right: 12px !important;
    box-sizing: border-box !important;
  }

  .mayday_search-input_wrapper,
  .mayday_search-input_group {
    width: 100% !important;
    max-width: 560px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    box-sizing: border-box !important;
  }

  .mayday_home_collection-container {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 14px !important;
    justify-items: center !important;
    justify-content: center !important;
    align-items: start !important;
    width: 100% !important;
    max-width: 520px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    margin-bottom: 20px !important;
  }

  .mayday_home_collection-container_col,
  .mayday_home_collection-container > * {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    align-self: start !important;
  }

  .mayday_home_collection-container_col {
    display: flex !important;
    justify-content: center !important;
    width: 100% !important;
  }

  .mayday_home_collection-inner {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    transform: translateY(8px) !important;
  }

  .mayday_home_collection-inner img,
  .mayday_home_collection-inner svg {
    width: 66px !important;
    height: 70px !important;
  }

  .mayday_home_collection-img_wrapper {
    order: 1 !important;
    margin-bottom: 0 !important;
  }

  .mayday_home_collection-title {
    order: 2 !important;
    margin-top: 10px !important;
    margin-bottom: 0 !important;
    text-align: center !important;
    font-weight: 700 !important;
    font-size: 22px !important;
    line-height: 1.2 !important;
  }
}

@media (max-width: 478px) {
  .mayday_home_collection-container {
    grid-template-columns: 1fr !important;
    max-width: 300px !important;
    gap: 16px !important;
    margin-bottom: 26px !important;
  }

  .mayday_home_collection {
    width: 100% !important;
    max-width: 360px !important;
    height: 210px !important;
  }

  .mayday_home_collection-title {
    margin-top: 12px !important;
    font-size: 24px !important;
    line-height: 1.2 !important;
  }

  .mayday_home_collection-inner {
    transform: translateY(2px) !important;
  }
}
