/* Blocs E-E-A-T partages (2026-07-04) : encart auteur des guides + chiffres cles des pages villes.
   Charge par : guide-*.html (x4) et peintre-le-teich.html. Classes prefixees, aucun selecteur nu. */

/* Selecteur double .author-box.author-box + elements : specificite (0,2,3), a egalite avec la regle
   generique "body.x main > section:not(...)" de city-page.css ; charge apres, il gagne la cascade. */
body main > section.author-box.author-box,
.author-box {
  display: flex;
  gap: 1.4rem;
  align-items: center;
  max-width: 760px;
  margin: 3rem auto;
  padding: clamp(1.2rem, 3vw, 1.8rem);
  border: 1px solid rgba(23, 53, 43, 0.12);
  border-radius: 16px;
  background: #fbf9f5;
  box-shadow: 0 12px 32px rgba(7, 20, 15, 0.08);
}

.author-box img {
  width: 96px;
  height: 123px;
  flex: 0 0 auto;
  border-radius: 12px;
  object-fit: cover;
}

.author-box-name {
  margin: 0 0 0.5rem;
  color: #17352b;
  font-family: "DM Sans", sans-serif;
  font-size: 1.05rem;
}

.author-box-text {
  margin: 0;
  color: #1f3129;
  font-size: 0.98rem;
  line-height: 1.7;
}

.author-box-text a {
  color: #497266;
  font-weight: 700;
}

@media (max-width: 640px) {
  .author-box {
    flex-direction: column;
    text-align: center;
    margin: 2.4rem 1rem;
  }
}

.city-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.9rem;
  max-width: 1080px;
  margin: 0 auto;
  padding: 2.2rem 1.5rem 0;
}

.city-stat {
  padding: 1.1rem 1rem;
  border: 1px solid rgba(23, 53, 43, 0.1);
  border-radius: 14px;
  background: #fbf9f5;
  box-shadow: 0 10px 26px rgba(7, 20, 15, 0.06);
  text-align: center;
}

.city-stat-num {
  display: block;
  color: #b85a2e;
  font-family: "DM Sans", sans-serif;
  font-size: 1.7rem;
  font-weight: 800;
  line-height: 1.1;
}

.city-stat-label {
  display: block;
  margin-top: 0.35rem;
  color: #1f3129;
  font-size: 0.85rem;
  line-height: 1.35;
}

@media (max-width: 760px) {
  .city-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 1.8rem 1rem 0;
  }
}

/* Le Teich : respiration et finitions de la section prestations (2026-07-04) */
.city-bg-le-teich .services-grid {
  gap: 1.6rem;
}

.city-bg-le-teich .service-card {
  border-radius: 16px;
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease;
}

.city-bg-le-teich .service-card:hover,
.city-bg-le-teich .service-card:focus-visible {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(7, 20, 15, 0.14);
}

.city-bg-le-teich .services-section .zones-group {
  margin-top: 2rem;
}

.city-bg-le-teich .zone-tag {
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease;
}

.city-bg-le-teich .zone-tag:hover,
.city-bg-le-teich .zone-tag:focus-visible {
  transform: translateY(-2px);
  border-color: #b85a2e;
  color: #b85a2e;
}

.city-bg-le-teich .carousel-note {
  max-width: 860px;
  margin: 1.6rem auto 0;
  color: #1f3129;
  line-height: 1.7;
  text-align: center;
}

.city-bg-le-teich .carousel-note a {
  color: #497266;
  font-weight: 700;
}

/* ===== Le Teich : section "L'atelier augmente" (v1.2, 2026-07-05) =====
   Selecteur booste body.city-page main > section.ai-craft : specificite (0,2,3),
   a egalite avec la regle generique de fond sage de city-page.css, chargee apres = gagne. */
body.city-page main > section.ai-craft {
  position: relative;
  overflow: hidden;
  margin: 0;
  padding: clamp(3.5rem, 7vw, 5.5rem) 1.5rem;
  background:
    radial-gradient(560px 320px at 12% 0%, rgba(148, 187, 168, 0.18), transparent 62%),
    radial-gradient(640px 380px at 88% 100%, rgba(201, 107, 59, 0.15), transparent 62%),
    #17352b;
  color: #fbf9f5;
}

.ai-craft-inner {
  max-width: 1080px;
  margin: 0 auto;
}

.ai-craft-label {
  display: inline-block;
  padding: 0.42rem 0.9rem;
  border: 1px solid rgba(148, 187, 168, 0.42);
  border-radius: 999px;
  color: #94bba8;
  font-family: "DM Sans", sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

body.city-page main > section.ai-craft h2 {
  margin: 1.1rem 0 0.9rem;
  color: #ffffff;
  font-size: clamp(1.9rem, 3.4vw, 2.8rem);
  line-height: 1.18;
  text-wrap: balance;
}

.ai-grad {
  background: linear-gradient(90deg, #94bba8 0%, #e8b48f 45%, #94bba8 90%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: aiGradShift 7s ease-in-out infinite alternate;
}

@keyframes aiGradShift {
  from { background-position: 0% 0; }
  to { background-position: 100% 0; }
}

@media (prefers-reduced-motion: reduce) {
  .ai-grad {
    animation: none;
  }
}

.ai-craft-intro {
  max-width: 780px;
  margin: 0;
  color: rgba(251, 249, 245, 0.85);
  line-height: 1.75;
}

.ai-craft-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
  margin-top: 2.4rem;
}

.ai-craft-card {
  position: relative;
  padding: 1.6rem 1.4rem;
  border: 1px solid rgba(251, 249, 245, 0.14);
  border-radius: 16px;
  background: rgba(251, 249, 245, 0.06);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition:
    transform 0.22s ease,
    border-color 0.22s ease,
    background 0.22s ease,
    box-shadow 0.22s ease;
}

.ai-craft-card:hover,
.ai-craft-card:focus-within {
  transform: translateY(-4px);
  border-color: rgba(148, 187, 168, 0.5);
  background: rgba(251, 249, 245, 0.09);
  box-shadow: 0 22px 48px rgba(7, 20, 15, 0.32);
}

.ai-craft-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.2rem;
  height: 2.2rem;
  border: 1px solid rgba(148, 187, 168, 0.45);
  border-radius: 999px;
  color: #94bba8;
  font-family: "DM Sans", sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
}

body.city-page main > section.ai-craft h3 {
  margin: 0.8rem 0 0.6rem;
  color: #ffffff;
  font-size: 1.22rem;
  line-height: 1.3;
}

.ai-craft-card p {
  margin: 0;
  color: rgba(251, 249, 245, 0.8);
  font-size: 0.97rem;
  line-height: 1.7;
}

.ai-craft-link {
  display: inline-block;
  margin-top: 1rem;
  color: #e8b48f;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.ai-craft-link:hover,
.ai-craft-link:focus-visible {
  color: #ffffff;
}

@media (max-width: 900px) {
  .ai-craft-grid {
    grid-template-columns: 1fr;
  }
}

/* Touches typographiques signature Le Teich */
.city-bg-le-teich ::selection {
  background: #c96b3b;
  color: #ffffff;
}

.city-bg-le-teich h1,
.city-bg-le-teich h2 {
  text-wrap: balance;
}
