/*
Theme Name: Top Garage - Ratel
Template: garage-base
Version: 0.1.0
Text Domain: top-garage-ratel
*/

/* Photos en couleur (le parent applique grayscale par défaut) */
.gb-photo img {
  filter: none;
}

/* Titres display : pas d'uppercase pour un rendu plus pro / Top Garage */
.gb-display {
  text-transform: none;
  line-height: 1.05;
}
.gb-h3 {
  text-transform: none;
}

/* Eyebrow : pas d'uppercase */
.gb-eyebrow {
  text-transform: none;
  letter-spacing: .06em;
}

/* Service cards : bordure fine + ombre légère en mode clair */
.gb-service-card {
  border: 1px solid var(--line);
  box-shadow: 0 1px 3px rgba(6, 30, 90, .06);
}
.gb-service-card .gb-h3 {
  font-size: clamp(20px, 2.2vw, 26px);
}

/* Boutons : border-radius au lieu du clip-path angulaire */
.gb-btn--primary,
.gb-btn--dark,
.wp-block-button__link,
.wp-element-button {
  clip-path: none;
  border-radius: var(--radius);
}

/* Reviews : bordure en mode clair */
.gb-review {
  border: 1px solid var(--line);
}

/* Outline button dans le header (fond sombre) */
.gb-site-header .gb-btn--outline {
  border-color: var(--inverse-text);
  color: var(--inverse-text);
}
.gb-site-header .gb-btn--outline:hover {
  background: rgba(255, 255, 255, .12);
}

/* Header fixé en haut de l'écran au scroll */
.gb-site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
}
body { padding-top: 80px; }
@media (max-width: 760px) {
  body { padding-top: 64px; }
  .gb-logo__img { height: 44px; margin: 10px 0; }
}

/* Décalage des ancres pour compenser le header fixe */
html { scroll-padding-top: 100px; }
[id] { scroll-margin-top: 100px; }

/* Empêcher l'iframe RDV de voler le focus au chargement */
.gb-rdv-iframe { pointer-events: none; }
.gb-rdv-iframe.is-ready { pointer-events: auto; }

/* Jour courant en gras dans les horaires */
.gb-hours__row.is-today {
  font-weight: 700;
  color: var(--accent);
}

/* Section Activités */
.gb-activites-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--gap);
}
.gb-activite-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.gb-activite-card__icon {
  width: 48px; height: 48px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; flex: none;
}
.gb-activite-card__icon svg { width: 24px; height: 24px; }
.gb-activite-card__badge,
.gb-activite-card__badges span {
  display: inline-block;
  width: fit-content;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  background: var(--inverse-bg);
  color: var(--inverse-text);
  padding: 4px 10px;
  border-radius: 4px;
}
.gb-activite-card__badges { display: flex; flex-wrap: wrap; gap: 6px; }
.gb-activite-card p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.6;
}
.gb-activite-tags {
  list-style: none;
  margin: auto 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.gb-activite-tags li {
  font-size: 12px;
  font-family: var(--font-mono);
  letter-spacing: .04em;
  background: var(--bg);
  border: 1px solid var(--line);
  padding: 4px 10px;
  border-radius: 4px;
  color: var(--text-muted);
}
@media (max-width: 960px) {
  .gb-activites-grid { grid-template-columns: 1fr; }
}

/* Nom du garage dans le hero */
.gb-hero__name {
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 800;
  letter-spacing: .02em;
  color: var(--inverse-text);
  margin: 0;
  opacity: .85;
}

/* Hero avec photo de fond */
.gb-hero--photo {
  position: relative;
  overflow: hidden;
  min-height: 520px;
}
.gb-hero__photo-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  opacity: .15;
  filter: contrast(1.1);
  z-index: 0;
}
.gb-hero--photo .gb-hero__inner {
  position: relative;
  z-index: 1;
}
.gb-hero--photo .gb-hero__content {
  max-width: 680px;
}

/* Hero vidéo : overlay un peu plus visible sur fond clair */
.gb-hero--video .gb-hero__video-bg {
  opacity: .18;
  filter: contrast(1.1);
}