/* RESET */
* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }

/* BODY = pousse le footer en bas */
body{
  font-family: 'Roboto', Arial, sans-serif;
  background: #EDEFF2;
  color:#111;
  display:flex;
  flex-direction:column;
  min-height:100vh;
}

/* HEADER FIXE */
.tm-header{
  position:fixed;
  top:0; left:0; right:0;
  height:80px;
  background:#222;
  color:#fff;
  z-index:1000;
  transition: box-shadow 0.25s ease, background 0.25s ease;
  }
  
.tm-header-inner{
  max-width:1200px;              /* ✅ largeur validée */
  margin:0 auto;
  height:100%;
  padding:0 16px;
  display:flex;
  align-items:center;
  justify-content:space-between;
}

.tm-header.is-scrolled{
  box-shadow: 0 5px 14px rgba(0,0,0,0.35);
}

/* LOGO */
.tm-logo img{
  height:50px;          /* max 60px */
  width:auto;
  display:block;
}

.tm-logo img{
  transition:opacity 0.2s ease;
}
.tm-logo img:hover{
  opacity:0.85;
}

/* NAV (desktop) */
.tm-nav{
  position: relative;
  display:flex;
  align-items:center;
}

.tm-menu{
  list-style:none;
  display:flex;
  gap:28px; /* ⬅️ avant 16px → plus aéré */
  margin:0;
  padding:0;
}

.tm-menu a{
  position:relative;
  color:#d1d5db;
  text-decoration:none;
  font-size:16px;
  padding:6px 0;
  transition:color 0.2s ease;
}

/* soulignement animé */
.tm-menu a::after{
  content:"";
  position:absolute;
  left:0;
  bottom:-4px;
  width:0;
  height:2px;
  background:#FFC300; /* gris clair, cohérent avec le bandeau */
  transition:width 0.25s ease;
}

.tm-menu a:hover{
  color:#FFE08A;
}

.tm-menu a:hover::after{
  width:100%;
}

/* BURGER (caché desktop) */
.tm-burger{
  display:none;
  background:none;
  border:none;
  color:#fff;
  font-size:28px;
  cursor:pointer;
  padding:8px 10px;
  line-height:1;
}

/* PAGE */
.tm-page{
  flex:1;
  padding-top:80px;
  display:flex;
  flex-direction:column;
}

/* BANDEAU */
/* BANDEAU PAGE */
.tm-top-band{
  height:135px;
  background: linear-gradient(
    135deg,
    #FFC300 0%,
    #FFE08A 100%
  );
  display:flex;
  align-items:center;
}

.tm-top-band-inner{
  max-width:1200px;
  margin:0 auto;
  padding:0 16px;
  color:#fff;
}

.tm-top-band-inner h1{
  margin:0;
  font-size:30px;
  font-weight:700;
  color:#111;
}

.tm-top-band-inner p{
  margin:6px 0 0;
  font-size:20px;
  opacity:0.9;
  color:#111;
}

/* LAYOUT */
.tm-layout{
  flex:1;
  width:100%;
  max-width:1200px;              /* ✅ largeur validée */
  margin:0 auto 64px;
  padding:0 16px;
  display:grid;
  grid-template-columns:minmax(0,1fr) 320px;
  gap:40px;
  align-items:start;
}

.tm-breadcrumb-row{
  width:100%;
  max-width:1200px;
  margin:20px auto 20px; /* ↑ ICI : espace avec le bandeau */
  padding:0 16px;
  display:flex;
  justify-content:flex-start;
}

.tm-breadcrumb{
  font-size:16px;
  font-weight:500;
  color:#444;
  margin-left:20px; /* ← ajuste ici : 6 / 8 / 10 px */
}

.tm-breadcrumb a{
  color:#222;
  text-decoration:none;
}

.tm-breadcrumb span{
  margin:0 6px;
}

/* CONTENU */
.tm-content{
  display:flex;
  flex-direction:column;
  gap:40px;
}

/* SIDEBAR */
.tm-sidebar{
  display:flex;
  flex-direction:column;
  gap:40px;
  position:sticky;
  top:104px; /* 80 header + marge */
}

/* CARDS */
.tm-card{
  background:#fff;
  padding:24px;
  border-radius:12px;
  box-shadow:0 4px 12px rgba(0,0,0,0.08);
}

/* =========================
   VARIANTES DE BLOCS
   ========================= */

/* Bloc INFO (par défaut, léger) */
.tm-card-info h2{
  margin-top:0;
  margin-bottom:12px;
  font-size:25px;
  color: #333 !important;
}

.tm-card-info p{
  margin:0;
  line-height:1.7;
  font-size:16px;
  color: #444 !important;
}

/* Bloc LISTE */
.tm-card-list h2{
  margin:0 0 12px;
  font-size:22px;
}

.tm-card-list ul{
  margin:0;
  padding-left:18px;
  display:flex;
  flex-direction:column;
  gap:8px;
}

.tm-card-list li{
  line-height:1.5;
  color:#374151;
}

.tm-card-list li a{
  color:#374151;
  text-decoration:none;
}

.tm-card-list li a:hover{
  text-decoration:underline;
  color:#000;
}

/* Bloc CTA */
.tm-card-cta{
  background:linear-gradient(135deg,#111827,#1f2933);
  color:#fff;
}

.tm-card strong{
  margin-bottom:8px; /* ajuste : 6px, 8px ou 10px */
  font-weight:500;
}

.tm-card b{
  margin-bottom:8px; /* ajuste : 6px, 8px ou 10px */
  font-weight:500;
}

.tm-card-cta h2{
  margin:0 0 10px;
  font-size:20px;
}

.tm-card-cta p{
  margin:0 0 16px;
  opacity:0.9;
}

.tm-card-cta a,
.tm-card-cta button{
  align-self:flex-start;
  background:#FFE08A;
  color:#111;
  padding:10px 16px;
  border-radius:8px;
  text-decoration:none;
  font-weight:600;
  font-size:16px;
}

.tm-card-cta a:hover,
.tm-card-cta button:hover{
  opacity:0.9;
}

.faq details{
  border-bottom:1px solid #eee;
  padding:10px 0;   /* ↑ espace vertical global */
}

.faq summary{
  cursor:pointer;
  font-weight:500;
  list-style:none;
  line-height:1.5;  /* ↑ hauteur de ligne */
}

.faq summary::-webkit-details-marker{
  display:none;
}

.faq summary::after{
  content:" +";
  float:right;
}

.faq details[open] summary::after{
  content:" −";
}

.faq p{
  margin:10px 0 0;
  color:#444;
  line-height:1.5;
}

/* FOOTER */
.tm-footer{
  background:#222;
  color:#fff;
  padding:32px 16px;
}

.tm-footer-inner{
  max-width:1140px;
  margin:0 auto;
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:40px;
}

.tm-footer-col{
  display:flex;
  flex-direction:column;
  gap:8px;
  font-size:14px;
}

.tm-footer-col p{
  color:#d1d5db;
  line-height:24px; /* ajuste : 22px / 24px / 26px */
}

.tm-footer-col strong{
  font-size:15px;
  color:#FFE08A;
  margin-bottom:6px; /* ajuste ici : 6px, 8px, 10px */
}

.tm-footer-col a{
  color:#d1d5db;
  text-decoration:none;
}

.tm-footer-col a:hover{
  text-decoration:underline;
  color:#FFE08A;
}

/* =========================
   SYNC HAUTEUR IMAGE FICHE TAXI
   (ISOLÉ – AUCUN IMPACT GLOBAL)
   ========================= */

.tm-photo-sync {
  padding: 0;
  display: flex;
}

.tm-photo-sync-inner {
  flex: 1;
  display: flex;
}

.tm-photo-sync-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 12px;
}

/* FIX LOCAL : image fiche taxi (haut de page uniquement) */
.tm-photo-sync .tm-taxi-photo{
  margin: 0 !important;
}

/* === Recherche Taxi – Header Desktop === */

.tm-search {
  position: relative;
  width: 350px;
  max-width: 50vw;
  margin: 0 24px;
}

.tm-search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  opacity: 0.7;
  font-size: 20px;
}

#tm-search-input {
  width: 100%;
  padding: 12px 14px 12px 40px; /* place pour la loupe */
  border-radius: 8px;
  border: 1px solid #555;
  background: #111;
  color: #fff;
  font-size: 16px;
}

#tm-search-input::placeholder {
  color: #bbb;
}

#tm-search-results {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin-top: 8px;
  background: #fff;
  color: #222;
  border-radius: 10px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.3);
  z-index: 9999;
  display: none;
  overflow: hidden;
}

.tm-search-item {
  padding: 12px 14px;
  cursor: pointer;
  font-size: 15px;
  border-bottom: 1px solid #eee;
}

.tm-search-item:last-child {
  border-bottom: none;
}

.tm-search-item:hover {
  background: #f5f5f5;
}

.tm-search-empty {
  padding: 14px;
  font-size: 15px;
  color: #666;
}

[id] {
  scroll-margin-top: 100px;
}

.ma-div-center {
  display: flex;
  justify-content: center;
}

.ma-div-center form {
  max-width: 600px;
  width: 100%;
}

/* === MOBILE : champ visible mais compact === */
@media (max-width: 900px){

  .tm-search {
    width: 140px;      /* champ plus petit */
    max-width: none;
    margin: 0 10px;
  }

  .tm-search-icon {
    left: 11px;
    font-size: 17px;
  }

  #tm-search-input {
    font-size: 15px;
    padding: 7px 8px 7px 30px; /* toujours la place pour la loupe */
  }

  /* Footer */
  .tm-footer-inner{
    grid-template-columns:repeat(2,1fr);
  }
  
  /* Logo */
  .tm-header-inner{
    justify-content: center;
  }

  .tm-nav{
    position: absolute;
    right: 16px;
  }

  /* Layout */
  .tm-layout{
    grid-template-columns:1fr;
  }

  .tm-sidebar{
    position:static;
  }

  /* Burger visible */
  .tm-burger{
    display:block;
  }

  /* Menu mobile */
  .tm-menu{
    display:none;
    position:absolute;
    top:80px;
    right:0;
    width:220px;
    background:#222;
    flex-direction:column;
    gap:0;
    border-radius:10px;
    overflow:hidden;
    box-shadow:0 10px 30px rgba(0,0,0,0.35);
  }

  .tm-menu.active{
    display:flex;
  }

  .tm-menu li{
    border-bottom:1px solid #222;
  }

  .tm-menu li:last-child{
    border-bottom:none;
  }

  .tm-menu a{
    display:block;
    padding:14px 16px;
  }
}
