/* Page d'accueil simplifiée (index et engins) — complète site.css */
.home { background: #fff; }
.home h1, .home h2, .home h3 { color: var(--ink); }

/* Barre du haut : pleine, sombre, collée en haut */
.home .nav { position: sticky; top: 0; background: var(--asphalt); padding-top: 14px; padding-bottom: 14px; }

/* Hero clair : le texte à gauche, le planning à droite */
.h-hero { padding: 64px 0 72px; }
.h-hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.h-kicker { font-weight: 700; color: var(--muted); margin: 0 0 4px; font-size: 16px; }
.h-kicker-ar { color: var(--muted); font-weight: 500; font-size: 16px; margin: 0 0 20px; text-align: left; }
.home .h-hero h1 { font-size: clamp(2.4rem, 5vw, 4.1rem); line-height: 1.02; font-weight: 900; font-stretch: 118%; letter-spacing: -.01em; margin: 0 0 22px; }
.home .h-hero h1 .l { display: block; }
.h-lead { font-size: 19px; color: var(--muted); max-width: 46ch; margin: 0 0 28px; }
.h-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }
.h-login { font-weight: 700; color: var(--ink); text-underline-offset: 4px; }
.h-assure { margin: 16px 0 0; color: var(--muted); font-size: 15px; }
.home .board { box-shadow: 0 18px 48px rgba(28,34,48,.18); border: 1px solid var(--line); border-top: 6px solid var(--yellow); }

/* Bande de chantier : le seul motif décoratif de la page */
.hazard { height: 14px; background: repeating-linear-gradient(-45deg, var(--yellow) 0 18px, var(--asphalt) 18px 36px); }

/* Recherche pour les clients qui veulent louer */
.h-search { background: var(--asphalt); color: #fff; padding: 36px 0; }
.h-find label { display: block; font-weight: 800; font-size: 20px; font-stretch: 110%; margin-bottom: 14px; }
.h-find label .ar { display: block; font-size: 15px; font-weight: 500; color: #C5CCD8; margin-top: 4px; text-align: left; }
.h-find-row { display: flex; gap: 10px; flex-wrap: wrap; }
.h-find-in { flex: 2 1 280px; display: flex; align-items: center; gap: 10px; background: #fff; color: var(--muted); border-radius: 8px; padding: 0 14px; }
.h-find-in input, .h-find-city { font: inherit; font-size: 16px; border: 0; outline: 0; color: var(--ink); padding: 14px 0; background: transparent; width: 100%; min-width: 0; }
.h-find-city { flex: 1 1 180px; background: #fff; border-radius: 8px; padding: 14px; }
.h-find-in:focus-within, .h-find-city:focus { box-shadow: 0 0 0 3px var(--yellow); }
.h-find-row .btn { padding: 0 26px; min-height: 50px; }
.h-find-more { margin: 12px 0 0; color: #C5CCD8; font-size: 15px; }
.h-find-more a { color: #fff; font-weight: 700; }
.h-search .find-list { margin-top: 24px; }

/* Titres de section et sous-titres arabes */
.home section h2 { margin: 0; font-weight: 900; font-stretch: 115%; }
.h-ar { color: var(--muted); font-weight: 500; font-size: 17px; margin: 6px 0 0; text-align: left; }

/* Fonctionnalités : liste à deux colonnes, sans cartes */
.h-feats { padding: 88px 0 72px; }
.h-feat-list { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 40px; }
.h-feat-list li { border-top: 2px solid var(--asphalt); padding: 20px 0 32px; }
.h-feat-list .fi { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 8px; background: var(--yellow); color: var(--asphalt); margin-bottom: 14px; }
.h-feat-list h3 { font-size: 19px; margin: 0 0 6px; font-stretch: 108%; }
.h-feat-list p { margin: 0; color: var(--muted); }

/* Maroc */
.h-maroc { background: #EEF0F3; padding: 72px 0 56px; }
.h-maroc-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: start; }
.h-maroc-grid > div:first-child > p:last-child { color: var(--muted); margin: 16px 0 0; max-width: 40ch; }
.h-maroc-list { list-style: none; margin: 0; padding: 0; }
.h-maroc-list li { padding: 12px 0 12px 30px; border-bottom: 1px solid #D5D9E0; font-weight: 600; position: relative; }
.h-maroc-list li::before { content: ''; position: absolute; left: 0; top: 17px; width: 16px; height: 16px; border-radius: 50%; background: var(--green) 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.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center/10px no-repeat; }
.h-cities { color: var(--muted); font-size: 15px; margin-top: 32px; }

/* Étapes (vraie séquence : numérotées) */
.h-steps { padding: 80px 0; }
.h-step-list { list-style: none; counter-reset: s; margin: 36px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.h-step-list li { counter-increment: s; }
.h-step-list li::before { content: counter(s); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--asphalt); color: var(--yellow); font-weight: 900; margin-bottom: 14px; }
.h-step-list h3 { font-size: 19px; margin: 0 0 6px; }
.h-step-list p { margin: 0; color: var(--muted); }

/* Tarif */
.h-price { background: var(--asphalt); color: #fff; padding: 80px 0; }
.home .h-price h2 { color: #fff; }
.h-price .h-ar { color: #C5CCD8; }
.h-price-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.h-price-grid > div:first-child > p:last-child { color: #C5CCD8; margin: 16px 0 0; max-width: 44ch; font-size: 17px; }
.h-price-box { background: #fff; color: var(--ink); border-radius: 12px; padding: 28px; border-top: 6px solid var(--yellow); }
.h-amount { margin: 0; color: var(--muted); }
.h-amount strong { font-size: 56px; font-weight: 900; font-stretch: 115%; color: var(--ink); margin-right: 6px; line-height: 1; }
.h-offer { margin: 10px 0 20px; font-weight: 700; color: var(--green); }
.h-fine { margin: 12px 0 0; font-size: 14px; color: var(--muted); }

/* FAQ */
.h-faq { padding: 80px 0; }
.h-faq h2 + .h-ar { margin-bottom: 24px; }

/* Appel final */
.h-final { background: var(--yellow); padding: 72px 0; text-align: center; }
.home .h-final h2 { color: var(--yellow-ink); }
.h-final-ar { color: var(--yellow-ink); font-weight: 500; font-size: 18px; margin: 10px 0 26px; }
.h-final-cta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.h-final-help { margin: 18px 0 0; color: var(--yellow-ink); }

@media (max-width: 920px) {
  .h-hero { padding: 40px 0 48px; }
  .h-hero-grid, .h-maroc-grid, .h-price-grid { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .h-hero-grid > * { min-width: 0; }
  .h-feat-list { grid-template-columns: 1fr 1fr; }
  .h-step-list { grid-template-columns: 1fr; gap: 22px; }
  .h-feats { padding: 64px 0 48px; } .h-maroc, .h-steps, .h-price, .h-faq, .h-final { padding-top: 56px; padding-bottom: 56px; }
}
@media (max-width: 600px) {
  .h-feat-list { grid-template-columns: 1fr; }
  .h-feat-list li { padding-bottom: 22px; }
  .h-cta .btn { width: 100%; }
  .h-find-row .btn { width: 100%; }
  .h-amount strong { font-size: 46px; }
  .h-final-cta .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .home .board { animation: none; } }
#recherche { scroll-margin-top: 100px; }
.home .board-days, .home .board li { grid-template-columns: 112px repeat(6, 1fr); }
@media (max-width: 520px) { .home .board-days, .home .board li { grid-template-columns: 84px repeat(6, 1fr); } }
/* Capture réelle de l'application dans un cadre de téléphone */
.h-phone { margin: 0; justify-self: center; text-align: center; }
.h-phone-screen { width: 290px; aspect-ratio: 9 / 17; border: 10px solid var(--asphalt); border-radius: 38px; overflow: hidden; background: #F4F5F7; box-shadow: 0 24px 50px rgba(28,34,48,.22); }
.h-phone-screen img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.h-phone figcaption { margin-top: 12px; font-size: 13px; color: var(--muted); }
@media (max-width: 920px) { .h-phone-screen { width: 250px; } }

/* ===== Retouches après revue de design ===== */
/* Titre : largeur normale pour tenir sur deux lignes, contraste renforcé de l'accroche */
.home .h-hero h1 { font-stretch: 100%; font-size: clamp(2.5rem, 4.6vw, 3.9rem); letter-spacing: -.02em; }
.h-kicker { color: var(--ink); }
.h-kicker-ar { color: #3F4757; }
.h-hero-grid { grid-template-columns: 1fr 1fr; }

/* Deux captures superposées : tableau de bord devant, attachement signé derrière */
.h-phones { margin: 0; position: relative; height: 560px; justify-self: stretch; }
.h-phones .h-phone-screen { position: absolute; width: 270px; }
.h-phones .front { left: 8%; top: 0; z-index: 2; }
.h-phones .back { right: 4%; top: 56px; transform: rotate(4deg); opacity: .98; }
.h-phones figcaption { position: absolute; bottom: -8px; left: 0; right: 0; text-align: center; font-size: 13px; color: var(--muted); }

/* Villes : une rangée légère plutôt qu'une phrase */
.h-cities { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 32px; padding-top: 18px; border-top: 1px solid #D5D9E0; font-weight: 600; color: #3F4757; }

/* Bouton secondaire de l'appel final : visible sur le fond jaune */
.h-final .btn.yellow { background: #fff; color: var(--ink); }
.h-final .btn.yellow:hover { background: #FFF8E1; }

/* Textes trop petits */
.h-assure, .h-fine, .h-find-more, .h-cities { font-size: 15px; }

@media (max-width: 920px) {
  .h-phones { height: 470px; max-width: 420px; margin: 0 auto; width: 100%; }
  .h-phones .h-phone-screen { width: 220px; }
  .h-phones .front { left: 0; }
  .h-phones .back { right: 0; top: 40px; }
}
@media (max-width: 600px) {
  /* Fonctionnalités compactes : icône à gauche, texte à droite */
  .h-feat-list li { display: grid; grid-template-columns: 44px 1fr; column-gap: 14px; padding: 16px 0 18px; border-top-width: 1px; }
  .h-feat-list .fi { grid-row: span 2; margin: 0; }
  .h-feat-list h3 { font-size: 17px; margin: 0 0 4px; }
  .h-phones { height: 400px; }
  .h-phones .h-phone-screen { width: 190px; border-width: 8px; border-radius: 30px; }
}
/* Ajustements : titre sur deux lignes, captures mieux réparties */
.h-hero-grid { grid-template-columns: 1.3fr .9fr; gap: 40px; }
.home .h-hero h1 { font-size: clamp(2.3rem, 4.3vw, 3.3rem); }
.h-phones { height: 600px; overflow: visible; }
.h-phones .h-phone-screen { width: 240px; }
.h-phones .front { left: 0; top: 0; }
.h-phones .back { left: auto; right: 0; top: 70px; transform: rotate(3deg); }
.h-phones figcaption { bottom: 0; }
@media (max-width: 920px) {
  .h-hero-grid { grid-template-columns: minmax(0, 1fr); }
  .h-phones { height: 500px; max-width: 440px; overflow: hidden; padding: 0 4px; }
  .h-phones .h-phone-screen { width: 210px; }
  .h-phones .back { right: 6px; top: 46px; }
}
@media (max-width: 600px) {
  .h-phones { height: 410px; max-width: 360px; }
  .h-phones .h-phone-screen { width: 172px; }
  .h-phones .back { top: 36px; }
}
.home a:focus-visible, .home button:focus-visible, .home summary:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; border-radius: 4px; }
.h-search a:focus-visible, .h-price a:focus-visible { outline-color: #fff; }

/* Formules sur la page d'accueil */
.h-price-lead { color: #C5CCD8; max-width: 62ch; margin: 14px 0 28px; font-size: 17px; }
.h-plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; align-items: stretch; }
.h-plan { position: relative; background: #fff; color: var(--ink); border-radius: 12px; padding: 22px 20px; display: flex; flex-direction: column; gap: 4px; }
.h-plan.hl { box-shadow: 0 0 0 3px var(--yellow); }
.h-plan-flag { position: absolute; top: -12px; left: 18px; background: var(--yellow); color: var(--yellow-ink); font-size: 12.5px; font-weight: 800; padding: 3px 10px; border-radius: 99px; }
.home .h-plan h3 { margin: 0; font-size: 21px; color: var(--ink); }
.h-plan-tag { color: var(--muted); font-size: 14.5px; margin: 2px 0 10px; min-height: 2.8em; }
.h-plan-amt { margin: 0; color: var(--muted); } .h-plan-amt b { font-size: 30px; font-weight: 900; color: var(--ink); font-stretch: 110%; }
.h-plan-year { margin: 0 0 10px; color: var(--muted); font-size: 14px; }
.h-plan ul { list-style: none; padding: 0; margin: 4px 0 18px; display: grid; gap: 7px; font-size: 15px; flex: 1; }
.h-plan li { padding-left: 24px; position: relative; }
.h-plan li::before { content: ''; position: absolute; left: 0; top: 4px; width: 15px; height: 15px; border-radius: 50%; background: var(--green) 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.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center/9px no-repeat; }
.btn.line-d { border: 2px solid var(--asphalt); color: var(--ink); background: #fff; }
.btn.line-d:hover { background: #F2F3F5; }
.h-fine-d { color: #C5CCD8; font-size: 15px; margin: 18px 0 0; }
.h-plan ul { align-content: start; }
/* Bouton démo */
.btn.outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn.outline:hover { background: var(--ink); color: #fff; }
.btn.outline-dark { background: transparent; color: var(--yellow-ink); border-color: var(--yellow-ink); }
.btn.outline-dark:hover { background: var(--yellow-ink); color: var(--yellow); }
.h-demo-note { margin: 14px 0 0; color: var(--muted); font-size: 15px; }
.h-demo-note .h-login { margin-left: 6px; white-space: nowrap; }
