/* Accueil — bloc application sur mobile (20/09/2026, maquette C « barre compacte »).
   Fichier séparé de home-editorial.css pour ne pas être écrasé par ses régénérations.
   Le bloc large (badges) reste pour l'ordinateur ; sur mobile, une seule barre. */
.app-smart { display: none; }
@media (max-width: 680px) {
  .home-editorial .home-app-promo--top .home-app-promo__inner { display: none; }
  .home-editorial .home-app-promo--top .app-smart { display: block; padding-inline: 14px; }
  .app-smart__bar {
    display: flex; align-items: center; gap: 12px; padding: 12px 14px;
    background: var(--white, #fff); border: 1px solid var(--border, #E3E7F1); border-radius: 20px;
    box-shadow: 0 8px 22px rgba(16, 36, 94, .1); color: var(--heading, #10245E); text-decoration: none;
  }
  .app-smart__logo { flex: none; width: 52px; height: 52px; border-radius: 14px; object-fit: cover; }
  .app-smart__text { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
  .app-smart__text strong { font-size: .98rem; font-weight: 800; }
  .app-smart__text small { color: var(--ink-soft, #4b5878); font-size: .78rem; }
  .app-smart__btn {
    flex: none; margin-left: auto; padding: 10px 16px; border-radius: 999px; background: var(--coral, #FF5A55);
    color: #fff; font-size: .88rem; font-weight: 800; white-space: nowrap;
  }
}

/* Accueil — suggestions de ville (21/09/2026) : quand la liste s'ouvrait, le bloc du haut
   passait au-dessus de la carte « L'application » (z-index 6 contre 3) et son fond en
   masquait le haut. Le bloc n'est plus un contexte d'empilement : seul son conteneur
   (transparent) est remonté pendant la saisie, donc la liste passe au-dessus de la carte
   sans que le fond bleu ne la recouvre. */
.home-editorial .hero,
.home-editorial .hero:has(.location-suggestions:not([hidden])),
.home-editorial .hero:has(.location-autocomplete input[aria-expanded="true"]) { isolation: auto; z-index: auto; }
.home-editorial .hero::before,
.home-editorial .hero::after { z-index: 0; }
.home-editorial .hero:has(.location-suggestions:not([hidden])) > .container,
.home-editorial .hero:has(.location-autocomplete input[aria-expanded="true"]) > .container { z-index: 6; }

/* Carte « application » (30/09/2026, maquette B) : plus bas dans la page, avec QR code.
   Ordinateur et tablette uniquement ; sur mobile, la barre compacte du haut reste seule. */
@media (min-width: 681px) { .home-editorial .home-app-promo--top { display: none; } }
.app-card-section { padding: 8px 0 36px; }
.app-card {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 36px;
  padding: 30px 40px; border-radius: 28px; overflow: hidden;
  background: linear-gradient(120deg, #e6f7f5 0%, #eef5ff 100%); border: 1px solid #d3ece9;
}
.app-card__eyebrow { color: #0a8f8a; font-size: .74rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.app-card__title { margin: 6px 0 0; color: #102b66; font-size: clamp(1.5rem, 2.6vw, 2.1rem); line-height: 1.12; letter-spacing: -.02em; }
.app-card__features { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 12px 0 18px; padding: 0; list-style: none; }
.app-card__features li { position: relative; padding-left: 24px; color: #33415f; font-size: .95rem; font-weight: 600; }
.app-card__features li::before {
  content: ""; position: absolute; left: 0; top: 50%; width: 16px; height: 16px; margin-top: -8px; border-radius: 99px;
  background: #0aa6a1 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 11px no-repeat;
}
.app-card .app-card__badges { align-items: flex-start; margin-top: 0; text-align: left; }
.app-card__badges .hero-app-badges__row { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-start; }
.app-card__badges .app-badge {
  display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 8px 18px; border-radius: 14px;
  background: #102b66; color: #fff; text-decoration: none; transition: transform .18s ease, background .18s ease;
}
.app-card__badges .app-badge:hover { background: #0b1f4d; transform: translateY(-1px); }
.app-card__badges .app-badge__icon { width: 24px; height: 24px; flex: none; }
.app-card__badges .app-badge__icon--apple { fill: currentColor; }
.app-card__badges .app-badge__text { display: flex; flex-direction: column; line-height: 1.1; }
.app-card__badges .app-badge__text small { font-size: .68rem; opacity: .75; color: #fff; }
.app-card__badges .app-badge__text strong { font-size: 1.02rem; color: #fff; }
.app-card__qr { display: flex; flex-direction: column; align-items: center; gap: 8px; width: 150px; text-align: center; }
.app-card__qr-code { width: 132px; height: 132px; padding: 10px; border-radius: 16px; background: #fff; box-shadow: 0 8px 20px rgba(16, 43, 102, .10); }
.app-card__qr-code svg { display: block; width: 100%; height: 100%; }
.app-card__qr p { margin: 0; color: #4b5878; font-size: .74rem; line-height: 1.3; }
.app-card__phone {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; width: 112px; height: 196px; margin-bottom: -58px;
  padding: 26px 12px 0; border: 6px solid #102b66; border-bottom: 0; border-radius: 26px 26px 0 0; background: #fff;
  box-shadow: 0 14px 30px rgba(16, 43, 102, .18);
}
.app-card__notch { position: absolute; top: 8px; left: 50%; width: 34px; height: 6px; margin-left: -17px; border-radius: 99px; background: #102b66; }
.app-card__phone img { width: 44px; height: 44px; border-radius: 12px; }
.app-card__tile { display: block; width: 100%; height: 30px; border-radius: 9px; }
.app-card__tile--teal { background: #5DCAA5; }
.app-card__tile--coral { background: #F0997B; }
.app-card__tile--blue { background: #85B7EB; }
@media (max-width: 980px) { .app-card { grid-template-columns: minmax(0, 1fr) auto; } .app-card__phone { display: none; } }
@media (max-width: 680px) { .app-card-section { display: none; } }
@media (prefers-color-scheme: dark) {
  .app-card { background: linear-gradient(120deg, #0f2a33 0%, #16213f 100%); border-color: #24405a; }
  .app-card__title { color: #fff; }
  .app-card__features li, .app-card__qr p { color: #c3c8de; }
  .app-card__badges .app-badge { background: #fff; color: #102b66; }
  .app-card__badges .app-badge__text small, .app-card__badges .app-badge__text strong { color: #102b66; }
}
@media (prefers-reduced-motion: reduce) { .app-card__badges .app-badge { transition: none; } }

/* Cartes catégories « tuile » (30/09/2026, d'après la maquette fournie) : photo en haut, bande
   blanche en bas, pastille ronde à la couleur de la catégorie qui chevauche la photo, nom et
   flèche ronde. Remplace l'ancienne carte plein-photo à texte blanc (les largeurs du carrousel
   de home-editorial.css sont conservées). */
.home-editorial .category-card.category-card--tile {
  display: flex; flex-direction: column; aspect-ratio: auto; min-height: 0; overflow: hidden;
  border: 1px solid #e3e9f3; border-radius: 20px; background: #fff;
  box-shadow: 0 8px 22px rgba(11, 43, 103, .08); text-decoration: none;
}
/* 5 cartes visibles (au lieu de 6) pour laisser au nom la place de tenir sur deux lignes. */
.home-editorial .category-card.category-card--tile { flex: 0 0 calc((100% - 56px) / 5); min-width: 200px; }
.home-editorial .category-card.category-card--tile:hover { border-color: color-mix(in srgb, var(--category-color) 45%, #e3e9f3); box-shadow: 0 16px 34px rgba(11, 43, 103, .14); transform: translateY(-4px); }
.cat-tile__media { position: relative; display: block; aspect-ratio: 16 / 11; overflow: hidden; background: color-mix(in srgb, var(--category-color) 30%, #eef4fb); }
.cat-tile__image { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.2, .75, .25, 1); }
.category-card--tile:hover .cat-tile__image { transform: scale(1.05); }
.cat-tile__placeholder { position: absolute; inset: 0; background: linear-gradient(145deg, color-mix(in srgb, var(--category-color) 55%, #fff), var(--category-color)); }
.cat-tile__body { position: relative; display: flex; align-items: center; gap: 8px; min-height: 64px; padding: 10px 12px 12px; }
.cat-tile__icon {
  flex: none; display: grid; place-items: center; width: 46px; height: 46px; margin-top: -28px; align-self: flex-start;
  border: 4px solid #fff; border-radius: 50%; background: var(--category-color); color: #fff; font-weight: 800;
  box-shadow: 0 6px 16px color-mix(in srgb, var(--category-color) 40%, transparent);
}
.cat-tile__icon img { width: 24px; height: 24px; object-fit: contain; }
.cat-tile__label {
  flex: 1; min-width: 0; color: #102b66; font-size: .9rem; font-weight: 800; line-height: 1.2;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.cat-tile__go {
  flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
  background: #f1f5fb; color: #102b66; transition: background .18s ease, color .18s ease;
}
.category-card--tile:hover .cat-tile__go { background: var(--category-color); color: #fff; }
@media (max-width: 680px) {
  .home-editorial .category-card.category-card--tile { flex: 0 0 172px; min-width: 172px; }
  .cat-tile__label { -webkit-line-clamp: 3; }
  .cat-tile__body { gap: 8px; min-height: 58px; padding: 8px 10px 10px; }
  .cat-tile__icon { width: 42px; height: 42px; margin-top: -24px; border-width: 3px; }
  .cat-tile__icon img { width: 20px; height: 20px; }
  .cat-tile__label { font-size: .8rem; }
  .cat-tile__go { display: none; }
}
@media (prefers-color-scheme: dark) {
  .home-editorial .category-card.category-card--tile { background: #171b33; border-color: #303858; }
  .cat-tile__icon { border-color: #171b33; }
  .cat-tile__label { color: #f2f4fa; }
  .cat-tile__go { background: #232a4a; color: #f2f4fa; }
}
@media (prefers-reduced-motion: reduce) {
  .cat-tile__image, .cat-tile__go { transition: none; }
  .category-card--tile:hover .cat-tile__image { transform: none; }
}

/* Raccourcis du haut de page avec icônes (30/09/2026, d'après la maquette fournie) : pilule
   translucide, pastille ronde colorée à gauche avec icône blanche, libellé blanc gras. */
.home-editorial .time-shortcuts { gap: 10px; }
.home-editorial .time-shortcuts .chip.chip--icon {
  display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 5px 18px 5px 5px;
  border: 1px solid rgba(255, 255, 255, .22); border-radius: 999px; background: rgba(255, 255, 255, .10);
  color: #fff; font-size: .95rem; font-weight: 800; text-decoration: none;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  transition: background .18s ease, border-color .18s ease, transform .18s ease;
}
.home-editorial .time-shortcuts .chip.chip--icon:hover { background: rgba(255, 255, 255, .20); border-color: rgba(255, 255, 255, .45); color: #fff; transform: translateY(-1px); }
.home-editorial .time-shortcuts .chip.chip--icon:focus-visible { outline: 3px solid rgba(142, 241, 235, .7); outline-offset: 2px; }
.chip__icon {
  flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18), 0 4px 10px rgba(0, 16, 48, .25);
}
.chip--today .chip__icon { background: #F0645E; }
.chip--weekend .chip__icon { background: #8E5BE0; }
.chip--free .chip__icon { background: #2DB39A; }
.chip--family .chip__icon { background: #F4A038; }
.chip--nearby .chip__icon { background: #3B82F0; }
@media (max-width: 680px) {
  .home-editorial .time-shortcuts .chip.chip--icon { min-height: 42px; gap: 8px; padding: 4px 14px 4px 4px; font-size: .84rem; }
  .chip__icon { width: 32px; height: 32px; }
  .chip__icon svg { width: 16px; height: 16px; }
}
@media (prefers-reduced-motion: reduce) { .home-editorial .time-shortcuts .chip.chip--icon { transition: none; } }
