/**
 * AKDB SNIPPET CSS — 338 LOCATION TIRE-LAIT
 *
 * Nom FluentSnippets : 338 — CSS — AKDB Location tire-lait
 * Description : Surcharges CSS de la page Location de tire-lait.
 * Groupe : AKDB / Tire-lait
 * Type : CSS
 * Priorité : 30
 * Zone d’exécution : Front-end
 * Conditions d’exécution : Page Location de tire-lait uniquement.
 * Dépendances : CSS 330 pages commun, shortcode 037, visuels produits et logo partenaire.
 * Fichier source : _dev/snippets-source/css/338-css-akdb-page-location-tirelait.css
 * Fichier prod-ready : _dev/prod-ready/20260708-1045-akdb-fluent-snippets-prod-sans-eval/css/338-css-akdb-page-location-tirelait.css
 * Statut : prêt production
 *
 * Structure du fichier :
 * 01. Layout et bénéfices d'accompagnement
 * 02. Cartes produits et partenariat
 * 03. Prise en charge et couverture
 * 04. Responsive mobile et desktop
 *
 * Notes de maintenance :
 * - Les URLs d'images produits et du partenaire sont utilisées telles quelles par le HTML.
 * - La CTA de couverture n'est affichée qu'en mobile pour éviter une redondance desktop.
 */

/* ==========================================================================
   01. Layout et accompagnement location
   ========================================================================== */
.akdb-page-location {
  background:
    radial-gradient(circle at top left, rgba(143, 200, 190, 0.12), transparent 24%),
    radial-gradient(circle at 100% 8%, rgba(57, 66, 78, 0.08), transparent 18%);
}

.akdb-page-location .akdb-page-portage-layout,
.akdb-page-location .akdb-page-portage-layout__main,
.akdb-page-location .akdb-page-portage-layout__aside,
.akdb-page-location .akdb-page-portage-section {
  display: grid;
}

.akdb-page-location .akdb-page-portage-section > .akdb-page-section-heading {
  max-width: 44rem;
}

.akdb-page-location .akdb-page-hero-intro h1.akdb-page-hero-intro__title {
  max-width: 14ch;
}

.akdb-page-location .akdb-page-panel--plain,
.akdb-page-location .akdb-page-panel--soft,
.akdb-page-location .akdb-page-panel--split {
  gap: 1.5rem;
}

.akdb-page-location .akdb-page-richtext p,
.akdb-page-location .akdb-page-contact-note {
  font-size: 1rem;
}

.akdb-page-location .akdb-page-portage-section--intro .akdb-page-panel--soft {
  padding-inline: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.akdb-page-location-benefits-shell {
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.akdb-page-location-benefits {
  gap: 0;
}

.akdb-page-location-benefit {
  position: relative;
  display: grid;
  grid-auto-rows: min-content;
  align-content: start;
  gap: 0.18rem;
  min-height: 0;
  padding: 1.15rem 1rem 1.15rem 3rem;
  color: var(--akdb-color-contact);
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
}

.akdb-page-location-benefit + .akdb-page-location-benefit {
  border-top: 1px solid rgba(70, 81, 91, 0.12);
}

.akdb-page-location-benefit h3,
.akdb-page-location-benefit p {
  width: 100%;
  max-width: none;
  margin: 0;
  text-align: left;
  text-align-last: left;
}

.akdb-page-location-benefit::before {
  content: attr(data-step);
  position: absolute;
  left: 0.55rem;
  top: 50%;
  bottom: auto;
  transform: translateY(-50%);
  color: rgba(57, 66, 78, 0.14);
  font-family: var(--akdb-font-heading);
  font-size: clamp(1.95rem, 4.6vw, 2.45rem);
  font-weight: 700;
  line-height: 0.92;
  letter-spacing: -0.08em;
  pointer-events: none;
  z-index: 0;
}

.akdb-page-location-benefit > * {
  position: relative;
  z-index: 1;
}

.akdb-page-location-benefit p {
  text-align: justify;
  text-align-last: left;
  hyphens: auto;
}

.akdb-page-location-material-intro {
  max-width: 52rem;
  margin-bottom: 1.15rem;
}

/* ==========================================================================
   02. Fiches produits et bloc partenariat
   ========================================================================== */
.akdb-page-location-products {
  display: grid;
  gap: 1rem;
}

.akdb-page-location-product-card {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 0.8rem;
  min-width: 0;
  padding: 0.95rem;
  border-radius: 1.35rem;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(70, 81, 91, 0.08);
  box-shadow: 0 18px 34px -28px rgba(18, 25, 30, 0.14);
}

.akdb-page-location-product-card__media {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 12.5rem;
  margin: 0;
  padding: 0.6rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.5);
}

.akdb-page-location-product-card__media img {
  display: block;
  width: 100%;
  max-width: 15.5rem;
  max-height: 11.5rem;
  height: auto;
  object-fit: contain;
}

.akdb-page-location-product-card__body {
  display: grid;
  gap: 0.55rem;
  align-content: start;
}

.akdb-page-location-product-card__body h3 {
  color: var(--akdb-color-contact);
  font-family: var(--akdb-font-heading);
  width: 100%;
  margin: 0;
  font-size: clamp(1rem, 1.8vw, 1.08rem);
  line-height: 1.18;
  text-align: center;
  white-space: nowrap;
  letter-spacing: -0.01em;
}

.akdb-page-location-product-card__body p {
  margin: 0;
  text-align: left;
  text-align-last: left;
  line-height: 1.55;
  hyphens: auto;
}

.akdb-page-location-product-card__body h3 + p {
  text-align: center;
  text-align-last: center;
}

.akdb-page-location-product-card__list {
  display: grid;
  gap: 0.35rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.akdb-page-location-product-card__list li {
  position: relative;
  padding-left: 1rem;
  line-height: 1.42;
  font-size: 0.96rem;
}

.akdb-page-location-product-card__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.58rem;
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 999px;
  background: rgba(98, 168, 172, 0.95);
}

.akdb-page-location-cta-group {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.85rem;
}

.akdb-page-location-cta-group .akdb-chip,
.akdb-page-location-cta-group .akdb-button {
  justify-content: center;
  margin: 0;
}

.akdb-page-location-cta-group .akdb-chip--header-secondary,
.akdb-page-location-cta-group .akdb-button {
  color: #ffffff !important;
}

.akdb-page-location-cta-group .akdb-chip--header-phone {
  color: var(--akdb-color-contact);
}

.akdb-page-location-partner-panel {
  justify-items: center;
}

.akdb-page-location-partner-logo__link {
  display: block;
  width: 100%;
  max-width: 12rem;
}

.akdb-page-location-partner-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 12rem;
  min-height: 6rem;
  margin: 0;
  padding: 0.35rem;
  background: #ffffff;
  border-radius: 1rem;
}

.akdb-page-location-partner-logo img {
  display: block;
  width: 100%;
  max-width: 10rem;
  height: auto;
  object-fit: contain;
}

.akdb-page-location-coverage-intro {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding-inline: 0;
}

.akdb-page-location-coverage-grid {
  display: grid;
  gap: 1rem;
}

.akdb-page-location-coverage-card {
  display: grid;
  gap: 0;
  padding: 0;
  border-radius: 1.35rem;
  border: 1px solid rgba(70, 81, 91, 0.08);
  box-shadow: 0 18px 34px -28px rgba(18, 25, 30, 0.14);
  color: var(--akdb-color-contact);
}

.akdb-page-location .akdb-page-location-coverage-card.akdb-page-price-card--individuel {
  background: #39424e;
  border-color: rgba(57, 66, 78, 0.18);
  box-shadow: 0 24px 44px -30px rgba(18, 25, 30, 0.34);
  color: #ffffff;
}

.akdb-page-location .akdb-page-location-coverage-card.akdb-page-price-card--collectif {
  background: #62a8ac;
  border-color: rgba(98, 168, 172, 0.24);
  box-shadow: 0 24px 44px -30px rgba(50, 108, 112, 0.34);
  color: #ffffff;
}

.akdb-page-location .akdb-page-location-coverage-card.akdb-page-price-card--accent {
  background: #d58b73;
  border-color: rgba(213, 139, 115, 0.22);
  box-shadow: 0 24px 44px -30px rgba(140, 82, 62, 0.34);
  color: #ffffff;
}

.akdb-page-location-coverage-card__body {
  display: grid;
  gap: 0.8rem;
  padding: 1.25rem 1.2rem;
}

.akdb-page-location-coverage-card h3,
.akdb-page-location-coverage-card h4 {
  color: inherit;
  font-family: var(--akdb-font-heading);
}

.akdb-page-location-coverage-card h3 {
  font-size: 1.18rem;
  line-height: 1.18;
}

.akdb-page-location-coverage-card h4 {
  font-size: 1rem;
  line-height: 1.25;
}

.akdb-page-location-coverage-card p {
  margin: 0;
  text-align: justify;
  text-align-last: left;
  hyphens: auto;
  color: inherit;
}

.akdb-page-location-coverage-list {
  display: grid;
  gap: 0.45rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.akdb-page-location-coverage-list li {
  position: relative;
  padding-left: 1rem;
  line-height: 1.56;
}

.akdb-page-location-coverage-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.58rem;
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
}

.akdb-page-location-coverage-list--accent li::before {
  background: rgba(255, 255, 255, 0.9);
}

.akdb-page-location-coverage-note {
  padding: 0.85rem 0.95rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.14);
  color: inherit;
  font-weight: 700;
}

.akdb-page-location-coverage-cta {
  display: none;
  margin-top: 1rem;
  padding: 1.15rem 1.2rem;
  border: 1px solid rgba(70, 81, 91, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(248, 243, 239, 0.88));
  box-shadow: 0 18px 34px -28px rgba(18, 25, 30, 0.14);
  justify-items: center;
  text-align: center;
}

.akdb-page-location-coverage-cta .akdb-page-richtext p {
  margin: 0;
}

.akdb-page-location-coverage-cta__group {
  margin-top: 0.9rem;
  width: 100%;
}

.akdb-page-location-coverage-prescription {
  display: grid;
  gap: 0.55rem;
  padding: 1rem 1rem 0.95rem;
  border-radius: 1.05rem;
  background: rgba(57, 66, 78, 0.06);
}

.akdb-page-location-coverage-prescription h4 {
  color: var(--akdb-color-contact);
}

/* Mobile <= 47.99rem : CTA de couverture visible, cartes produits compactées. */
@media (max-width: 47.99rem) {
  .akdb-page-location .akdb-page-portage-section > .akdb-page-section-heading {
    justify-items: center;
    text-align: center;
  }

  .akdb-page-location .akdb-page-portage-section--intro .akdb-page-panel--soft,
  .akdb-page-location .akdb-page-location-material-intro,
  .akdb-page-location .akdb-page-location-coverage-intro {
    padding-inline: 1.5rem;
  }

  .akdb-page-location section[aria-labelledby="akdb-page-location-accompagnement"] .akdb-page-location-benefit {
    grid-template-columns: minmax(0, 1fr);
  }

  .akdb-page-location-coverage-cta {
    display: grid;
  }

  .akdb-page-location-benefit {
    padding: 1rem 0.55rem 1rem 2rem;
  }

  .akdb-page-location-benefit h3,
  .akdb-page-location-benefit p {
    max-width: none;
  }

  .akdb-page-location-benefit h3,
  .akdb-page-location-product-card__body h3,
  .akdb-page-location-coverage-card h3,
  .akdb-page-location-partner-panel .akdb-page-section-heading h3 {
    text-align: center;
  }

  .akdb-page-location-product-card__body h3 {
    white-space: normal;
    text-wrap: balance;
  }

  .akdb-page-location-product-card {
    grid-template-rows: auto auto;
    padding: 0.9rem;
  }

  .akdb-page-location-product-card__media {
    min-height: 11rem;
  }

  .akdb-page-location-benefit::before {
    left: 0.2rem;
    top: 50%;
    bottom: auto;
    transform: translateY(-50%);
    font-size: clamp(1.35rem, 5.9vw, 1.72rem);
  }

  .akdb-page-location-benefit h3 {
    font-size: 1.02rem;
    text-align: center;
    white-space: nowrap;
  }

  .akdb-page-location-benefit[data-step="1"] h3 {
    text-align: left;
    white-space: normal;
    text-wrap: balance;
  }

  .akdb-page-location-benefit p {
    text-align: justify;
    text-align-last: left;
  }

  .akdb-page-location .akdb-page-richtext p,
  .akdb-page-location .akdb-page-location-material-intro p,
  .akdb-page-location-product-card__body p,
  .akdb-page-location-coverage-card p,
  .akdb-page-location-coverage-cta p {
    text-align: justify;
    text-align-last: left;
  }

  .akdb-page-location-coverage-card__body,
  .akdb-page-location-coverage-cta {
    justify-items: stretch;
  }

  .akdb-page-location-coverage-list {
    gap: 0.55rem;
  }

  .akdb-page-location-product-card__list {
    gap: 0.4rem;
  }

  .akdb-page-location-cta-group {
    flex-direction: column;
  }

  /* Mobile : les trois CTA « Besoin d'aide » partagent exactement la même taille. */
  .akdb-page-location-cta-group {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    width: min(100%, 18rem);
    margin-inline: auto;
    align-items: stretch;
    justify-items: stretch;
  }

  .akdb-page-location-cta-group .akdb-chip,
  .akdb-page-location-cta-group .akdb-button {
    display: flex;
    width: 100%;
    min-width: 0;
    max-width: none;
    min-height: 3rem;
    margin: 0;
    box-sizing: border-box;
    align-self: stretch;
    justify-self: stretch;
    justify-content: center;
  }
}

/* Desktop >= 48rem : deux colonnes produits/couverture et aside sticky. */
@media (min-width: 48rem) {
  .akdb-page-location .akdb-page-portage-layout {
    grid-template-columns: minmax(0, 2.08fr) minmax(13.8rem, 0.82fr);
    align-items: start;
    gap: 2rem;
  }

  .akdb-page-location .akdb-page-portage-layout__aside {
    position: sticky;
    top: 1.5rem;
  }

  .akdb-page-location .akdb-page-portage-layout__main > .akdb-page-portage-section > .akdb-page-section-heading h2 {
    white-space: nowrap;
  }

  .akdb-page-location-products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .akdb-page-location-coverage-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .akdb-page-location-product-card {
    align-items: start;
  }
}
