/* ==========================================================================
   CleanRide Bénin : tarifs et femme de ménage
   ========================================================================== */

/* ---------- Aperçu des catégories (haut de la page Tarifs) ---------- */
.jump { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 28px; }
.jump li:last-child:nth-child(odd) { grid-column: 1 / -1; }
.jump a {
  display: flex; flex-direction: column; gap: 6px; height: 100%; min-height: 104px; padding: 16px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  text-decoration: none; color: var(--text);
  transition: border-color .2s ease, background-color .2s ease, transform .3s var(--ease);
}
.jump .icon { width: 22px; height: 22px; color: var(--text-2); margin-bottom: 4px; }
.jump .jump-name { font-weight: 600; font-size: 16px; line-height: 1.3; }
.jump .jump-price { margin-top: auto; font-size: 15px; color: var(--text-2); font-variant-numeric: tabular-nums; }
.jump .jump-price b { color: var(--text); font-weight: 600; }
.jump a:active { transform: scale(.98); }
@media (hover: hover) { .jump a:hover { transform: translateY(-3px); border-color: var(--line-2); background: var(--surface-2); } }
@media (min-width: 900px) {
  .jump { grid-template-columns: repeat(5, 1fr); gap: 14px; margin-top: 40px; }
  .jump li:last-child:nth-child(odd) { grid-column: auto; }
  .jump a { padding: 20px; min-height: 132px; }
}

/* Bandeau de faits à 4 éléments */
@media (min-width: 760px) and (max-width: 1099px) {
  .facts.facts-4 ul { grid-template-columns: 1fr 1fr; }
  .facts.facts-4 li { padding: 20px 24px 20px 0; }
  .facts.facts-4 li:nth-child(2n) { padding-left: 24px; border-left: 1px solid var(--line); }
  .facts.facts-4 li:nth-child(odd) { border-left: 0; padding-left: 0; }
  .facts.facts-4 li:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (min-width: 1100px) { .facts.facts-4 ul { grid-template-columns: repeat(4, 1fr); } }

/* ---------- Colonne collante avec photo ---------- */
.side-photo { position: relative; margin-top: 24px; border-radius: var(--radius); overflow: hidden; background: var(--surface-2); }
.side-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .6s var(--ease); }
@media (hover: hover) { .side-photo:hover img { transform: scale(1.03); } }
.side-head .compare { margin-top: 24px; }
.side-head .ba-caption { margin-bottom: 0; }
@media (max-width: 899px) { .side-photo img { aspect-ratio: 16 / 10; } }
.side-head .link { margin-top: 8px; }

/* Bouton d'offre : plus large sur mobile */
@media (max-width: 759px) {
  .offers .offer-side .btn { flex: none; }
}
.offer-dur { white-space: nowrap; }

/* ---------- Tableau récapitulatif lisible sur mobile ---------- */
.price-table { width: 100%; border-collapse: collapse; font-size: 16px; font-variant-numeric: tabular-nums; }
.price-table caption { caption-side: bottom; text-align: left; padding-top: 14px; font-size: 15px; color: var(--text-3); }
.price-table th, .price-table td { padding: 14px 12px 14px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; line-height: 1.4; }
.price-table thead th { font-size: 15px; font-weight: 600; color: var(--text-3); border-bottom-color: var(--line-2); }
.price-table td { color: var(--text-2); }
.price-table td:first-child, .price-table tbody th { color: var(--text); font-weight: 600; }
.price-table .price-val, .price-table thead th:last-child { text-align: right; padding-right: 0; white-space: nowrap; }
.price-table .price-val { color: var(--text); font-weight: 600; font-size: 17px; }
.price-table tbody tr { transition: background-color .15s ease; }
@media (hover: hover) { .price-table tbody tr:hover { background: var(--surface); } }
@media (max-width: 599px) {
  .price-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .price-table, .price-table tbody { display: block; }
  .price-table caption { display: block; }
  .price-table tr { display: grid; grid-template-columns: 1fr auto; column-gap: 16px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .price-table th, .price-table td { padding: 0; border: 0; }
  .price-table td:nth-child(1) { grid-column: 1; grid-row: 1; }
  .price-table td:nth-child(2) { grid-column: 1; grid-row: 2; font-size: 15px; color: var(--text-2); }
  .price-table td:nth-child(3) { grid-column: 2; grid-row: 1 / span 2; }
}

/* ---------- Ce que fait la femme de ménage ---------- */
.tasks { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.task {
  display: flex; flex-direction: column; gap: 4px; padding: 18px 16px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color .2s ease, transform .3s var(--ease);
}
.task .icon { width: 26px; height: 26px; color: var(--text); margin-bottom: 10px; }
.task b { font-size: 18px; font-weight: 600; }
.task span { font-size: 15px; color: var(--text-2); line-height: 1.4; }
@media (hover: hover) { .task:hover { transform: translateY(-3px); border-color: var(--line-2); } }
@media (min-width: 900px) { .task { padding: 24px 22px; } }
.tasks-note { margin-top: 18px; color: var(--text-2); font-size: 16px; }
.tasks-split { display: grid; gap: 24px; }
.tasks-split .split-photo img { aspect-ratio: 4 / 3; object-position: 50% 30%; }
@media (min-width: 900px) {
  .tasks-split { grid-template-columns: 7fr 5fr; gap: 56px; align-items: center; }
  .tasks-split .split-photo img { aspect-ratio: 4 / 5; }
}

/* ---------- Formules femme de ménage ---------- */
.plans-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 20px; margin-bottom: 18px; }
.plans-bar .switch { margin-bottom: 0; }
.plans-bar .switch button { min-height: 44px; padding: 0 18px; font-size: 16px; }
.plans-bar .note { margin: 0; }
.plan-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.plan-head .icon { width: 22px; height: 22px; color: var(--text-3); }
.plan .plan-price { margin-bottom: 0; }
.plans-bar .switch { max-width: 100%; }
.plan .plan-alt { font-size: 15px; color: var(--text-3); margin: 6px 0 0; font-variant-numeric: tabular-nums; }
.plan .plan-unit { margin: 14px 0 18px; color: var(--text-2); font-size: 15px; line-height: 1.45; }
.plan .plan-price [data-variant] { display: inline; }
.plan .plan-price [data-variant][hidden] { display: none; }
.no-js .plans-bar .note { display: none; }
.plans-foot { display: grid; gap: 12px; margin-top: 20px; }
@media (min-width: 760px) { .plans-foot { grid-template-columns: 1fr 1fr; gap: 16px; } }
.plans-foot .callout { margin-top: 0; }
@media (min-width: 760px) { .plans-foot .callout { grid-template-columns: auto 1fr; } .plans-foot .callout .btn { grid-column: 1 / -1; justify-self: start; } }
.opt-list { list-style: none; display: grid; gap: 10px; margin-top: 8px; }
.opt-list li { display: flex; gap: 10px; align-items: flex-start; font-size: 16px; color: var(--text-2); line-height: 1.45; }
.opt-list .icon { width: 18px; height: 18px; color: var(--text-2); margin-top: 3px; }
.opt-list a { color: var(--text); text-decoration-color: var(--text-3); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }

/* Grille complète repliée (tableau des 6 tarifs) */
.grid-full { margin-top: 28px; }
.grid-full .answer > div { padding-top: 4px; overflow-x: auto; }
.fm-table { width: 100%; min-width: 520px; border-collapse: collapse; font-size: 15px; }
.fm-table caption { caption-side: top; text-align: left; padding-bottom: 10px; color: var(--text-3); font-size: 15px; }
.fm-table th, .fm-table td { padding: 14px 12px 14px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; line-height: 1.45; }
.fm-table thead th { color: var(--text-3); font-weight: 600; }
.fm-table tbody th { color: var(--text); font-weight: 600; }
.fm-table tbody th small, .fm-table td small { display: block; color: var(--text-3); font-weight: 400; font-size: 14px; margin-top: 2px; }
.fm-table td { color: var(--text-2); }
.fm-table td b { display: block; color: var(--text); font-size: 17px; font-weight: 600; font-variant-numeric: tabular-nums; }
.fm-table .devis td { color: var(--text); }
@media (max-width: 599px) {
  .fm-table { min-width: 0; }
  .fm-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .fm-table, .fm-table tbody, .fm-table tr, .fm-table th, .fm-table td { display: block; }
  .fm-table caption { display: block; }
  .fm-table tbody tr { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .fm-table tbody th, .fm-table td { padding: 0; border: 0; }
  .fm-table td { margin-top: 10px; }
  .fm-table td::before { content: attr(data-label); display: block; font-size: 14px; color: var(--text-3); margin-bottom: 2px; }
  .fm-table .devis td::before { content: none; }
}

/* ---------- Comparatif embauche directe / CleanRide ---------- */
.vs { width: 100%; border-collapse: collapse; font-size: 16px; }
.vs th, .vs td { padding: 16px 16px 16px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; line-height: 1.45; }
.vs thead th { font-size: 15px; font-weight: 600; color: var(--text-3); border-bottom-color: var(--line-2); }
.vs thead th.us { color: var(--text); }
.vs tbody th { color: var(--text); font-weight: 600; width: 26%; }
.vs td { color: var(--text-2); }
.vs td.us { color: var(--text); }
.vs-cell { display: flex; gap: 10px; align-items: flex-start; }
.vs-cell .icon { width: 18px; height: 18px; margin-top: 3px; }
.vs td.them .icon { color: var(--text-3); }
.vs td.us .icon { color: var(--text); }
.vs td em { display: block; font-style: normal; font-size: 14px; color: var(--text-3); }
@media (min-width: 700px) { .vs td em { display: none; } }
@media (max-width: 699px) {
  .vs thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .vs, .vs tbody, .vs tr { display: block; }
  .vs tr { padding: 18px 0; border-top: 1px solid var(--line); }
  .vs tr:last-child { border-bottom: 1px solid var(--line); }
  .vs tbody th, .vs td { display: block; width: auto; padding: 0; border: 0; }
  .vs tbody th { font-size: 18px; margin-bottom: 10px; }
  .vs td { padding: 6px 0; }
}
.vs tbody tr { transition: background-color .15s ease; }
@media (hover: hover) and (min-width: 700px) { .vs tbody tr:hover { background: var(--surface); } }

/* ---------- Cartes de texte (confiance, diaspora, linge, quartiers) ---------- */
.text-card { padding: 24px 22px; }
.text-card .icon-lg { width: 26px; height: 26px; color: var(--text); margin-bottom: 14px; }
.text-card h3, .text-card h2 { font-size: 20px; font-weight: 600; line-height: 1.3; letter-spacing: -0.01em; margin-bottom: 10px; }
.text-card p { color: var(--text-2); font-size: 16px; }
.text-card p { margin-bottom: .6em; }
.text-card h3.text-card-sub { font-size: 16px; font-weight: 500; color: var(--text-3); margin: -4px 0 14px; letter-spacing: 0; }
.text-card .link { margin-top: auto; padding-top: 8px; align-self: flex-start; }
.text-card .prose a, .text-card p a { color: var(--text); text-decoration-color: var(--text-3); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.cards { display: grid; gap: 12px; }
@media (min-width: 760px) { .cards { grid-template-columns: repeat(2, 1fr); gap: 16px; } }
@media (min-width: 1100px) { .cards.cards-3 { grid-template-columns: repeat(3, 1fr); } }
.text-card.card-hover .link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }

/* Avis d'autres services */
.reviews.reviews-2 { grid-template-columns: 1fr; }
@media (min-width: 700px) { .reviews.reviews-2 { grid-template-columns: repeat(2, 1fr); } }
.review .review-meta { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 14px; color: var(--text-3); }
.reviews-foot { margin-top: 18px; font-size: 15px; color: var(--text-2); }
.reviews-foot a { color: var(--text-2); text-underline-offset: 3px; }

/* Chiffres : libellé plus long autorisé */
.stats .stat-num.stat-word { font-size: 28px; }
@media (min-width: 760px) { .stats .stat-num.stat-word { font-size: 34px; } }

/* Ligne de contact sous un bouton */
.contact-line { margin-top: 12px; font-size: 15px; color: var(--text-3); }
.contact-line a { color: var(--text-2); }
.page-foot-note { padding: 0 0 40px; font-size: 15px; color: var(--text-3); }
.page-foot-note a { color: var(--text-2); text-underline-offset: 3px; }

/* ---------- Mouvement réduit ---------- */
@media (prefers-reduced-motion: reduce) {
  .jump a, .task, .side-photo img, .price-table tbody tr { transition: none; }
  .jump a:hover, .task:hover { transform: none; }
  .side-photo:hover img { transform: none; }
}

/* Pastilles de quartiers : libellé long sur deux lignes */
#zones .chips a { padding-top: 8px; padding-bottom: 8px; line-height: 1.35; }

/* Tarifs : conditions en bref et texte de référencement */
.cond-short { margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--line); max-width: 46em; }
.cond-short .h3 { margin-bottom: 14px; }
.cond-short .link { margin-top: 10px; }
.seo-text { margin-top: 32px; }
.seo-text .h3 { font-size: 19px; margin: 24px 0 8px; }
.seo-text strong { color: var(--text); font-weight: 600; }
.answer strong { color: var(--text); font-weight: 600; }

/* Lignes d'offre : prix et bouton passent à la ligne sur petit écran */
@media (max-width: 759px) {
  .offers .offer-side { flex-wrap: wrap; gap: 10px 16px; }
  .offers .offer-price { white-space: normal; }
}
.seo-text .h3 { color: var(--text); }

/* Lignes d'offre dans la colonne de droite : texte pleine largeur, prix et bouton dessous */
@media (min-width: 900px) {
  .side .offer { grid-template-columns: 1fr; gap: 14px; }
  .side .offer-side { justify-content: space-between; }
  .side .offer-price { text-align: left; min-width: 0; }
}
