/*
Theme Name: Blocksy Child
Template: blocksy
Version: 1.0
*/

/* ============================================
   TAXONOMY — PAGE CATÉGORIE SERVICE
   ============================================ */

/* Supprimer les bords blancs sur mobile */
.toofast-cat-nav {
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  width: 100vw;
}

body, html {
  overflow-x: hidden;
}
.site-content, .hfeed {
  overflow-x: hidden;
}

.toofast-archive-service { font-family: inherit; }

/* HERO CATÉGORIE */
.cat-hero {
  background: #1a1a1a;
  color: #fff;
  min-height: 380px;
  display: flex;
  align-items: center;
}
.cat-hero-overlay {
  background: rgba(0,0,0,0.6);
  padding: 80px 20px;
  text-align: center;
  width: 100%;
}
.cat-hero h1 {
  font-size: 2.8rem;
  color: #f5c518;
  margin-bottom: 16px;
  text-transform: uppercase;
}
.cat-breadcrumb {
  font-size: 0.85rem;
  color: #aaa;
  margin-bottom: 12px;
}
.cat-breadcrumb a { color: #f5c518; text-decoration: none; }
.cat-description {
  max-width: 700px;
  margin: 0 auto 24px;
  font-size: 1.1rem;
  color: #ccc;
}
.cat-cta-btn {
  display: inline-block;
  background: #f5c518;
  color: #1a1a1a;
  padding: 14px 32px;
  border-radius: 4px;
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
}

/* NOTRE PROMESSE */
.cat-promesse {
  background: #fff;
  padding: 50px 20px;
  text-align: center;
}
.cat-promesse-inner { max-width: 800px; margin: 0 auto; }
.cat-promesse h2 { color: #f5c518; font-size: 1.8rem; margin-bottom: 16px; }
.cat-promesse p { font-size: 1.1rem; color: #444; line-height: 1.7; }

/* GRILLE SERVICES */
.cat-services { padding: 60px 20px; background: #f9f9f9; }
.cat-services h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 40px;
  text-transform: uppercase;
}
.cat-services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
}
.cat-service-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  transition: transform 0.2s;
}
.cat-service-card:hover { transform: translateY(-4px); }
.cat-service-img img { width: 100%; height: 180px; object-fit: cover; }
.cat-service-body { padding: 20px; }
.cat-service-body h3 { font-size: 1rem; margin-bottom: 8px; text-transform: uppercase; }
.cat-service-body p { font-size: 0.9rem; color: #666; margin-bottom: 16px; }
.cat-service-link { color: #f5c518; font-weight: 700; text-decoration: none; font-size: 0.9rem; }

/* FORMULAIRE CATÉGORIE */
.cat-form { background: #1a1a1a; padding: 60px 20px; color: #fff; }
.cat-form-inner { max-width: 700px; margin: 0 auto; text-align: center; }
.cat-form h2 { color: #f5c518; font-size: 2rem; margin-bottom: 12px; }
.cat-form p { color: #ccc; margin-bottom: 32px; }

/* CTA CATÉGORIE */
.cat-cta { background: #f5c518; padding: 50px 20px; text-align: center; }
.cat-cta h2 { font-size: 2rem; color: #1a1a1a; margin-bottom: 24px; }
.cat-cta-options { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.cta-tel, .cta-rdv {
  padding: 14px 32px;
  border-radius: 4px;
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
}
.cta-tel { background: #1a1a1a; color: #fff; }
.cta-rdv { background: #fff; color: #1a1a1a; border: 2px solid #1a1a1a; }

/* ============================================
   SINGLE SERVICE
   ============================================ */

.toofast-service { font-family: inherit; }

/* HERO SERVICE */
.service-hero {
  background: #1a1a1a;
  min-height: 420px;
  display: flex;
  align-items: center;
}
.service-hero-overlay {
  background: rgba(0,0,0,0.65);
  padding: 80px 20px;
  text-align: center;
  width: 100%;
}
.service-breadcrumb {
  font-size: 0.85rem;
  color: #aaa;
  margin-bottom: 16px;
}
.service-breadcrumb a { color: #f5c518; text-decoration: none; }
.service-hero-overlay h1 {
  font-size: 2.8rem;
  color: #f5c518;
  margin-bottom: 16px;
  text-transform: uppercase;
}
.service-excerpt {
  max-width: 650px;
  margin: 0 auto 28px;
  font-size: 1.1rem;
  color: #ccc;
}
.service-cta-btn {
  display: inline-block;
  background: #f5c518;
  color: #1a1a1a;
  padding: 14px 32px;
  border-radius: 4px;
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
}

/* CONTENU SERVICE */
.service-content { padding: 60px 20px; background: #fff; }
.service-content-inner {
  max-width: 860px;
  margin: 0 auto;
  font-size: 1.05rem;
  line-height: 1.8;
  color: #333;
}
.service-content-inner h2 { color: #1a1a1a; margin-bottom: 16px; }

/* FRÉQUENCE RECOMMANDÉE */
.service-frequence {
  background: #f5c518;
  padding: 30px 20px;
}
.service-frequence-inner {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 20px;
}
.frequence-icon { font-size: 2rem; }
.frequence-text { display: flex; flex-direction: column; }
.frequence-label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #1a1a1a;
  opacity: 0.7;
}
.frequence-value {
  font-size: 1.2rem;
  font-weight: 700;
  color: #1a1a1a;
}

/* CONSEILS & ASTUCES */
.service-conseils {
  background: #1a1a1a;
  padding: 60px 20px;
  color: #fff;
}
.service-conseils-inner {
  max-width: 860px;
  margin: 0 auto;
}
.service-conseils h2 {
  color: #f5c518;
  font-size: 1.6rem;
  margin-bottom: 20px;
}
.service-conseils p {
  font-size: 1.05rem;
  color: #ccc;
  line-height: 1.8;
}

/* FORMULAIRE SERVICE */
.service-form { background: #f9f9f9; padding: 60px 20px; }
.service-form-inner {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}
.service-form h2 { font-size: 2rem; margin-bottom: 12px; text-transform: uppercase; }
.service-form p { color: #666; margin-bottom: 32px; }

/* CTA SERVICE */
.service-cta { background: #f5c518; padding: 50px 20px; text-align: center; }
.service-cta h2 { font-size: 2rem; color: #1a1a1a; margin-bottom: 24px; }
.service-cta-options { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ============================================
   NAV CATÉGORIES (barre icônes)
   ============================================ */

.toofast-cat-nav {
  background: #111;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  white-space: nowrap;
}
.toofast-cat-nav::-webkit-scrollbar { display: none; }
.toofast-cat-nav-inner {
  display: inline-flex;
  gap: 0;
  min-width: 100%;
}
.cat-nav-item {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  padding: 14px 20px;
  color: #aaa;
  text-decoration: none;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 3px solid transparent;
  transition: all 0.2s;
  white-space: nowrap;
}
.cat-nav-item:hover,
.cat-nav-item.active {
  color: #f5c518;
  border-bottom-color: #f5c518;
}
.cat-nav-icon img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  filter: brightness(0.5);
  transition: filter 0.2s;
}
.cat-nav-item:hover .cat-nav-icon img,
.cat-nav-item.active .cat-nav-icon img {
  filter: brightness(1) sepia(1) saturate(5) hue-rotate(5deg);
}
.toofast-cat-nav-inner {
  justify-content: center;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
  .cat-services-grid { grid-template-columns: 1fr; }
  .cat-hero h1,
  .service-hero-overlay h1 { font-size: 1.8rem; }
  .service-frequence-inner { flex-direction: column; text-align: center; }
  .cat-cta-options,
  .service-cta-options { flex-direction: column; align-items: center; }
}
/* Forcer l'affichage du menu secondaire sur mobile */
@media (max-width: 768px) {
  .header-row-2 {
    display: block !important;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
  }
  .header-row-2 .menu {
    display: flex !important;
    flex-wrap: nowrap;
    gap: 0;
  }
  .header-row-2 .menu-item a {
    white-space: nowrap;
    padding: 12px 14px;
    font-size: 0.7rem;
  }
}


/* ============================================
   ZOOM OUT
   ============================================ */
.zoom-out-hover {
    overflow: hidden;
    display: block;
}


.zoom-out-hover img {
    transform: scale(1.2);
    transition: transform 0.6s ease-in-out;
    display: block;
    width: 100%;
    height: auto;
}

.zoom-out-hover:hover img {
    transform: scale(1);
}

/* Zoom out sur background-image au hover */
.bg-zoom-out {
    background-size: 115% auto !important;
    transition: background-size 0.8s ease-in-out;
}

.bg-zoom-out:hover {
    background-size: 100% auto !important;
}