/* =============================================================================
   handitaxi.css — Styles spécifiques à la page HandiTaxi
   À charger via functions.php sur le template page-template-handitaxi.php
   ============================================================================= */

/* ---------- Variables couleurs & typographie --------------------------------- */
:root {
  --ink:         #16183A;
  --petrol:      #000052;
  --petrol-deep: #00003A;
  --teal:        #2E3A8C;
  --warm:        #A0700A;
  --warm-soft:   #E7CF9E;
  --mist:        #F3F4F9;
  --paper:       #FFFFFF;
  --line:        #E2E3EE;
  --muted:       #5A5E78;
  --display:     "Bricolage Grotesque", system-ui, sans-serif;
  --ht-body:     "Inter", system-ui, sans-serif;
  --r:           14px;
  --maxw:        1140px;
  --pad:         clamp(20px, 5vw, 64px);
}

.border-radius-img {
  border-radius: 22px;
}

/* ---------- Classes de couleur de fond (handitaxi) --------------------------- */
.bg-petrol {
  background: var(--petrol) !important;
  color: #eaf5f5;
}
/* Surcharges typographiques détaillées de .bg-petrol → voir section dédiée ci-dessous */
.bg-mist {
  background: var(--mist) !important;
  color: var(--ink);
}

/* ---------- Conteneur hero --------------------------------------------------- */
/* Le hero utilise désormais .container (Bootstrap), .wrap est conservé
   pour compatibilité avec d'éventuels autres usages. */
.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}

/* ---------- Boutons ---------------------------------------------------------- */
.btn-primary-ht {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--ht-body);
  font-weight: 600;
  font-size: 15px;
  padding: 12px 20px;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  text-decoration: none;
  transition: transform .15s ease, box-shadow .2s ease, background .2s;
  background: var(--petrol);
  color: #fff;
  box-shadow: 0 6px 18px rgba(14, 78, 87, .22);
}
.btn-primary-ht:hover {
  background: var(--petrol-deep);
  color: #fff;
}
.btn-ghost-ht {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--ht-body);
  font-weight: 600;
  font-size: 15px;
  padding: 12px 20px;
  border-radius: 999px;
  border: 1.5px solid;
  background: transparent;
  text-decoration: none;
  transition: border-color .2s; 
  border-color: var(--petrol);
  color: var(--petrol);
  
}
.btn-ghost-ht:hover {
  border-color: var(--line);
  color: var(--petrol);
}
.btn-warm-ht {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--ht-body);
  font-weight: 600;
  font-size: 15px;
  padding: 12px 20px;
  border-radius: 999px;
  border: 0;
  background: var(--warm);
  color: #fff;
  box-shadow: 0 6px 18px rgba(214, 136, 63, .28);
  text-decoration: none;
  transition: transform .15s ease, filter .2s;
}
.btn-warm-ht:hover {
  filter: brightness(1.03);
  color: #241303;
}

/* ---------- Animations reveal ----------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.in {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ---------- Eyebrow (hero uniquement) ---------------------------------------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--petrol);
  background: #fff;
  border: 1px solid var(--line);
  padding: 7px 16px;
  border-radius: 999px;
}
.eyebrow .pip {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--warm);
}

/* ---------- En-têtes de section (sec-head) ----------------------------------- */
.sec-head {
  max-width: 74ch;
}
.sec-eyebrow {
  display: block;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 0;
}
.sec-head h2 {
  font-family: var(--display);
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.08;
  margin: 8px 0 0;
  color: var(--ink);
  font-weight: 600;
  letter-spacing: -.01em;
}
.sec-head p,
.sec-head > div > p,
p {
  color: var(--muted);
  margin-top: 14px;
  font-size: 20px;
}

/* ---------- Hero -------------------------------------------------------------- */
section.hero {
  padding: clamp(56px, 9vw, 108px) 0 clamp(40px, 6vw, 72px);
  background: var(--mist);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}
.hero h1 {
  font-family: var(--display);
  font-size: clamp(38px, 6vw, 62px);
  line-height: 1.08;
  margin: 22px 0 0;
  color: var(--ink);
  font-weight: 600;
  letter-spacing: -.01em;
}
.hero h1 em {
  font-style: normal;
  color: var(--petrol);
}
.hero .lead {
  font-size: clamp(17px, 2vw, 22px);
  color: var(--muted);
  max-width: 46ch;
  margin-top: 20px;
  font-weight: 400;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}
.hero-figure {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  background: linear-gradient(160deg, var(--petrol), var(--teal));
  aspect-ratio: 4/3;
  box-shadow: 0 30px 60px -28px rgba(10, 58, 65, .55);
}
.hero-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-badge {
  position: absolute;
  left: 18px;
  bottom: 18px;
  background: rgba(255, 255, 255, .94);
  border-radius: 14px;
  padding: 12px 16px;
  display: flex;
  gap: 14px;
  align-items: center;
  backdrop-filter: blur(4px);
}
.hero-badge b {
  font-family: var(--display);
  font-size: 20px;
  color: var(--petrol);
  display: block;
  line-height: 1;
}
.hero-badge small {
  font-size: 14px;
  color: var(--muted);
}
.hero-badge .sep {
  width: 1px;
  align-self: stretch;
  background: var(--line);
}
@media (max-width: 860px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .hero-figure {
    order: -1;
  }
}

/* ---------- Section À propos (suite hero) ------------------------------------- */
section.hero-about {
  padding-top: 0;
  background: var(--mist);
}
section.hero-about .sec-head {
  max-width: 74ch;
}
section.hero-about p {
  color: var(--muted);
  margin-top: 0;
  font-size: 17px;
  line-height: 1.65;
}
section.hero-about p + p {
  margin-top: 14px;
}

/* ---------- Cartes handitaxi (.ht-card) -------------------------------------- */
/* Fonctionne seul dans une colonne Bootstrap (grille_contenus)
   ou groupé dans .ht-cards (grid CSS autonome). */
.ht-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 26px;
  transition: transform .2s ease, box-shadow .2s ease;
  height: 100%;
}

.ht-card .ic {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--mist);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--petrol);
  margin-bottom: 16px;
  font-size: 20px;
}
.ht-card .ic svg {
  display: block;
}
.ht-card h3 {
  font-family: var(--display);
  font-size: 24px;
  color: var(--ink);
  font-weight: 600;
  line-height: 1.08;
  margin: 0;
}
.ht-card p {
  color: var(--muted);
  font-size: 15.5px;
  margin-top: 8px;
  margin-bottom: 0;
}

/* Grille autonome (sans Bootstrap) */
.ht-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 42px;
}
@media (max-width: 860px) {
  .ht-cards { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .ht-cards { grid-template-columns: 1fr; }
}

/* ---------- Surcharges texte sur fond bg-petrol -------------------------------- */
.bg-petrol .sec-eyebrow {
  color: var(--warm-soft);
}
.bg-petrol .sec-head h2,
.bg-petrol h2 {
  color: #fff;
}
.bg-petrol .sec-head p,
.bg-petrol .sec-head > div > p,
.bg-petrol p {
  color: #878dba;
}
.bg-petrol h3 {
  color: #fff;
}
/* Cartes sur fond petrol */
.bg-petrol .ht-card {
  background: rgba(255, 255, 255, .07);
  border-color: rgba(255, 255, 255, .14);
}
.bg-petrol .ht-card .ic {
  background: rgba(255, 255, 255, .1);
  color: var(--warm-soft);
}
.bg-petrol .ht-card h3 {
  color: #fff;
}
.bg-petrol .ht-card p {
  color: #878dba;
}
/* Étapes sur fond petrol */
.bg-petrol .stop .num {
  background: var(--petrol-deep);
  border-color: rgba(255, 255, 255, .35);
  color: #fff;
}
.bg-petrol .stop h3 { color: #fff; }
.bg-petrol .stop p  { color: #878dba; }

/* ---------- Disposition : Véhicule + specs ------------------------------------ */

/* Figure image véhicule */
.veh-figure {
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 16/10;
  background: var(--petrol-deep);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .6);
}
.veh-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Liste specs */
.specs {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 2px;
}
.specs li {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 18px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .14);
}
.specs li:last-child {
  border-bottom: 0;
}
.specs .k {
  font-family: var(--display);
  font-size: 24px;
  color: #fff;
  min-width: 48px;
  font-weight: 600;
  flex-shrink: 0;
  line-height: 1.3;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  background: var(--muted);
  border-radius: 6px;
}
.specs .v {
  color: #878dba;
  font-size: 15.5px;
  line-height: 1.5;
}
.specs .v b {
  color: #fff;
  font-weight: 600;
  font-size: 1.2em;
}

/* ---------- Disposition : Processus – étapes ---------------------------------- */

/* Ligne de parcours — colonnes dynamiques via --route-cols injecté par PHP */
.route {
  position: relative;
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(var(--route-cols, 4), 1fr);
  gap: 26px;
}

.stop::after {
  content: "";
  position: absolute;
  top: 23px;
  left: 48px;
  right: -26px;
  height: 2px;
  background: var(--teal);
  z-index: 0;
  pointer-events: none;
}

:last-child.stop::after {
  height: 0px;
}

:nth-last-child(2).stop::after {
  background: var(--warm);
}
.stop {
  position: relative;
  z-index: 1;
}
.stop .num {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--paper);
  border: 2px solid var(--petrol);
  color: var(--petrol);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--display);
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 18px;
  flex-shrink: 0;
}
.stop.last-step .num {
  border-color: var(--warm);
  background: var(--warm);
  color: #fff;
}
.stop h3 {
  font-family: var(--display);
  font-size: 20px;
  color: var(--ink);
  font-weight: 600;
  line-height: 1.08;
  margin: 0;
}
.stop p {
  color: var(--muted);
  font-size: 18px;
  margin-top: 8px;
}

/* Responsive : empilement vertical, ligne verticale */
@media (max-width: 768px) {
  .route {
    grid-template-columns: 1fr;
    gap: 0;
  }
 
 
 .stop::after {
   top: 48px;
   left: 24px;
   right: -26px;
   height: 100%;
   background: var(--teal);
   z-index: 0;
   pointer-events: none;
   width: 2px;
 }
  .stop {
    display: grid;
    grid-template-columns: 48px 1fr;
    gap: 18px;
    padding-bottom: 30px;
  }
  .stop .num {
    margin-bottom: 0;
  }
  .stop:last-child {
    padding-bottom: 0;
  }
}

/* ---------- Header handitaxi ------------------------------------------------- */
header.site-ht {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.admin-bar header.site-ht {
  top: 32px;
}
@media screen and (max-width: 782px) {
  .admin-bar header.site-ht {
    top: 46px;
  }
}
.ht-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  height: 100px;
}
.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}
.brand img {
  height: 70px;
  width: auto;
  display: block;
}
.ht-menu {
  display: flex;
  align-items: center;
  gap: 26px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.ht-menu a {
  text-decoration: none;
  font-weight: 500;
  font-size: 18px;
  color: var(--ink);
  opacity: .8;
  transition: opacity .2s;
}
.ht-menu a:hover {
  opacity: 1;
  color: var(--ink);
}
.ht-menu a.btn-warm-ht {
  opacity: 1;
  font-size: 14px;
  padding: 9px 18px;
  color: #fff;
}
.ht-menu a.btn-warm-ht:hover {
  color: #fff;;
}
.ht-nav-toggle {
  display: none;
  background: none;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  width: 44px;
  height: 44px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  padding: 0;
  flex-shrink: 0;
}
.ht-nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  position: relative;
}
.ht-nav-toggle span::before,
.ht-nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 20px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .3s;
}
.ht-nav-toggle span::before { top: -6px; }
.ht-nav-toggle span::after  { top:  6px; }

@media (max-width: 992px) {
  .ht-nav-toggle {
    display: flex;
  }
  .ht-menu {
    display: none;
    position: absolute;
    top: 84px;
    left: 0;
    right: 0;
    background: rgba(241, 245, 245, .97);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px 0;
    z-index: 49;
  }
  .ht-menu.open, #ht-menu.open {
    display: flex;
  }
  .ht-menu li {
    width: 100%;
  }
  .ht-menu a {
    display: block;
    padding: 13px 24px;
    width: 100%;
    box-sizing: border-box;
  }
  .ht-menu a.btn-warm-ht {
    display: inline-flex;
    width: auto;
    margin: 8px 24px 6px;
    padding: 9px 18px;
  }
  .admin-bar .ht-menu {
    top: calc(84px + 32px);
  }
  @media screen and (max-width: 782px) {
    .admin-bar .ht-menu {
      top: calc(84px + 46px);
    }
  }
}

/* ---------- Disposition : Contact / Réservation ------------------------------ */
.contact-line {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-top: 22px;
  padding: 16px;
  background: var(--mist);
  border-radius: 12px;
}
.contact-line .ic {
  color: var(--petrol);
  flex-shrink: 0;
}
.contact-line div {
  font-size: 20px;
  color: var(--muted);
}
.contact-line a {
  color: var(--petrol);
  font-weight: 600;
  text-decoration: none;
}
.contact-line a:hover {
  text-decoration: underline;
}
.reassure {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.reassure li {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  color: var(--muted);
  font-size: 18px;
}
.reassure svg {
  flex: none;
  color: var(--teal);
  margin-top: 3px;
}

/* Surcharges bg-petrol pour la section contact */
.bg-petrol .contact-line {
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .14);
}
.bg-petrol .contact-line .ic { color: var(--warm-soft); }
.bg-petrol .contact-line div { color: #878dba; }
.bg-petrol .contact-line a   { color: var(--warm-soft); }
.bg-petrol .reassure li      { color: #878dba; }
.bg-petrol .reassure svg     { color: var(--warm-soft); }

/* ---------- Contenu wysiwyg Tarifs (.tarifs-content) ------------------------- */
.tarifs-content {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.tarifs-content h3 {
  font-family: var(--display);
  font-size: 28px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.2;
  margin: 22px 0 10px;
  letter-spacing: -.01em;
}
.tarifs-content h3:first-child {
  margin-top: 0;
}

.tarifs-content h4 {
  font-family: var(--ht-body);
  font-size: 18px;
  font-weight: 600;
  color: var(--teal);
  text-transform: uppercase;
  letter-spacing: .09em;
  margin: 16px 0 5px;
}

.tarifs-content p {
  font-size: 18px;
  color: var(--muted);
  margin: 4px 0;
  line-height: 1.55;
}

.tarifs-content ul {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: grid;
  gap: 6px;
}
.tarifs-content ul li {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  font-size: 18px;
  color: var(--muted);
  line-height: 1.5;
}
.tarifs-content ul li::before {
  content: "–";
  color: var(--teal);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

/* Surcharges bg-petrol */
.bg-petrol .tarifs-content {
  border-top-color: rgba(255, 255, 255, .12);
}
.bg-petrol .tarifs-content h3 { color: #fff; }
.bg-petrol .tarifs-content h4 { color: var(--warm-soft); }
.bg-petrol .tarifs-content p  { color: #bcd7d9; }
.bg-petrol .tarifs-content ul li { color: #bcd7d9; }
.bg-petrol .tarifs-content ul li::before { color: var(--warm-soft); }

/* ---------- Surcharge espacement section (.space) ----------------------------- */
section.hero + section.space,
section.hero-about + section.space {
  border-top: 1px solid var(--line);
}
