﻿/* Hero plein écran — flux normal sous la nav (pas de chevauchement / bande blanche) */
html:has(body.has-hero) {
  margin: 0;
  padding: 0;
  background-color: var(--color-dark);
}

body.has-hero {
  background-color: var(--color-dark);
}

.has-hero .site-main {
  margin: 0;
  padding: 0;
}

.has-hero .hero {
  margin-top: 0;
}

.hero {
  position: relative;
  min-height: auto;
  margin: 0;
  padding: 0;
  padding-top: 80px;
  display: flex;
  align-items: flex-start;
  background: var(--color-dark);
  color: var(--color-white);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(26, 26, 26, 0.92) 0%, rgba(26, 26, 26, 0.75) 45%, rgba(232, 119, 34, 0.15) 100%),
    radial-gradient(ellipse 80% 50% at 20% 40%, rgba(232, 119, 34, 0.12), transparent 55%);
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0;
  margin-right: auto;
  padding-top: 0;
  margin-top: 0;
  padding-bottom: clamp(64px, 10vh, 100px);
  padding-left: 12rem;
  padding-right: var(--gutter-x);
  width: 100%;
  box-sizing: border-box;
}

@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-badge {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--color-primary);
  margin-bottom: 1.25rem;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(232, 119, 34, 0.35);
  background: rgba(232, 119, 34, 0.08);
  animation: heroFadeUp 0.7s ease 0.1s both;
}

.hero h1 {
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.1;
  margin-bottom: 1.25rem;
  max-width: 18ch;
  animation: heroFadeUp 0.75s ease 0.2s both;
}

.hero h1 em {
  color: var(--color-primary);
  font-style: normal;
}

.hero-lead {
  font-size: 18px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.82);
  max-width: 600px;
  margin-bottom: 1.75rem;
  animation: heroFadeUp 0.75s ease 0.3s both;
}

.hero-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: clamp(2rem, 5vw, 3rem);
  animation: heroFadeUp 0.75s ease 0.4s both;
}

.has-hero .hero .btn-outline {
  color: var(--color-white);
  border-color: rgba(255, 255, 255, 0.45);
}

.has-hero .hero .btn-outline:hover {
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.hero-stats {
  display: flex;
  flex-direction: row;
  gap: 4rem;
  padding-left: 12rem;
  margin-top: 2rem;
  animation: heroFadeUp 0.75s ease 0.5s both;
}

.stat {
  text-align: left;
}

.stat-num,
.stat-text {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  color: var(--color-primary);
}

.stat-label {
  display: block;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.65);
  margin-top: 0.25rem;
}

@media (max-width: 768px) {
  .hero-content,
  .hero-stats {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    max-width: 100%;
  }
}

/* Bandeau confiance — carrousel */
.trust-band {
  background: #ffffff;
  border-bottom: 1px solid #E5E3DE;
  padding: 14px 2rem;
  display: flex;
  justify-content: center;
  gap: 0;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 2rem;
  border-right: 1px solid #E5E3DE;
  transition: all 0.4s ease;
  border-radius: 0;
}

.trust-item:last-child {
  border-right: none;
}

.trust-item.active {
  background: #E87722;
  border-radius: 6px;
  border-right: none;
}

.trust-item.active .trust-check {
  color: #000000;
}

.trust-item.active .trust-label {
  color: #000000;
  font-weight: 600;
}

.trust-check {
  color: #E87722;
  font-weight: 700;
  font-size: 15px;
  transition: color 0.4s ease;
}

.trust-label {
  font-size: 13px;
  font-weight: 500;
  color: #1A1A1A;
  transition: color 0.4s ease;
}

/* Sections home */
.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3rem;
}

.section-header p {
  color: var(--color-text-muted);
  margin-top: 0.75rem;
}

.section-services {
  background: var(--color-gray-light);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.section-services[data-animate] .service-card {
  opacity: 0;
  transform: translateY(26px);
}

.section-services[data-animate].visible .service-card {
  opacity: 1;
  transform: translateY(0);
}

.service-card {
  background: #fff;
  border: 1px solid #E5E3DE;
  border-radius: 12px;
  padding: 2rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
  text-decoration: none;
  color: inherit;
}

.service-card:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: 0 24px 60px rgba(232, 119, 34, 0.2);
  border-color: #E87722;
  background: #FFFAF5;
  z-index: 2;
}

.service-card:hover h3 {
  color: #E87722;
}

.service-icon {
  width: 48px;
  height: 48px;
  background: #FFF4EA;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  margin-bottom: 1rem;
  color: var(--color-primary);
}

.service-card:hover .service-icon {
  background: #E87722;
  transform: scale(1.15) rotate(-5deg);
}

.service-card:hover .service-icon svg,
.service-card:hover .service-icon i {
  color: #ffffff;
  stroke: #ffffff;
}

.service-card__icon {
  width: 40px;
  height: 40px;
  margin-bottom: 1rem;
  color: var(--color-primary);
}

.service-card h3 {
  margin-bottom: 0.75rem;
  transition: color 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card p {
  flex: 1;
  color: var(--color-text-muted);
  margin-bottom: 0;
}

/* À propos */
.section-apropos {
  background: var(--color-white);
}

.apropos-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 900px) {
  .apropos-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.apropos-points {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
}

.apropos-points li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 0.75rem;
  color: var(--color-text-muted);
}

.apropos-points li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-primary);
}

.apropos-visual {
  position: relative;
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  aspect-ratio: 4 / 3;
  background: var(--color-gray-light);
}

.apropos-badge {
  position: absolute;
  bottom: 1.25rem;
  right: 1.25rem;
  background: #E87722;
  color: #fff;
  border-radius: 12px;
  padding: 0.75rem 1.25rem;
  text-align: center;
  box-shadow: 0 8px 24px rgba(232, 119, 34, 0.35);
}

.badge-num {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1;
}

.badge-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-top: 0.15rem;
}

.apropos-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Bureaux & Zones */
.section-bureaux {
  background: var(--color-gray-light);
}

.bureaux-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.bureau-card {
  position: relative;
  background: #fff;
  border: 1px solid #E5E3DE;
  border-radius: 12px;
  padding: 2rem;
  transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.bureau-card:hover {
  border-color: #E87722;
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(232, 119, 34, 0.1);
  cursor: pointer;
}

.bureau-card.active {
  border-color: #E87722;
  box-shadow: 0 8px 30px rgba(232, 119, 34, 0.2);
}

.bureau-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 4px 12px;
  border-radius: 6px;
  background: var(--color-gray-light);
  color: var(--color-text-muted);
  margin-bottom: 0.75rem;
}

.bureau-badge--primary {
  background: #E87722;
  color: #fff;
}

.bureau-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.bureau-card h3 small {
  font-weight: 400;
  color: var(--color-text-muted);
}

.bureau-pin {
  font-size: 1.1em;
}

.bureau-card p {
  margin: 0 0 0.3rem;
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

.bureau-tel {
  color: #E87722 !important;
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
}

.bureau-tel:hover {
  text-decoration: underline;
}

.bureaux-map {
  margin-bottom: 1.5rem;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.bureau-map {
  display: none;
}

.bureau-map.active {
  display: block;
}

/* Zones d'intervention */
.section-zones {
  background: #ffffff;
}

.zones-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.zone-card {
  background: #fff;
  border: 0.5px solid #E5E3DE;
  border-radius: 12px;
  padding: 2.5rem 1.5rem;
  text-align: center;
  cursor: default;
  transition: all 0.5s ease;
}

.zone-card:hover {
  background: #E87722;
  border-color: #E87722;
  transform: translateY(-4px);
}

.zone-card:hover .zone-name {
  color: #fff;
}

.zone-card:hover .zone-desc {
  color: rgba(255, 255, 255, 0.8);
}

.zone-card.snake-active {
  background: #E87722;
  border-color: #E87722;
}

.zone-card.snake-active .zone-name {
  color: #ffffff;
}

.zone-card.snake-active .zone-desc {
  color: rgba(255, 255, 255, 0.8);
}

.zone-name {
  font-size: 20px;
  font-weight: 600;
  color: #1A1A1A;
  transition: color 0.5s ease;
}

.zone-desc {
  font-size: 13px;
  color: #6B6966;
  margin-top: 0.5rem;
  transition: color 0.5s ease;
}

@media (max-width: 768px) {
  .zones-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Actualités */
.section-actualites {
  background: #F7F6F4;
}

/* CTA */
.section-cta {
  background: var(--color-primary);
  color: var(--color-white);
  text-align: center;
  padding-top: clamp(56px, 8vw, 88px);
  padding-bottom: clamp(56px, 8vw, 88px);
  padding-left: var(--gutter-x);
  padding-right: var(--gutter-x);
}

.section-cta h2 {
  color: var(--color-white);
  margin-bottom: 0.75rem;
}

.section-cta p {
  margin-bottom: 1.5rem;
  opacity: 0.95;
}

/* Témoignages */
.section-temoignages {
  background: var(--color-gray-light);
}

.temoignages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.temoignage-card {
  position: relative;
  padding: 2rem 1.75rem 1.75rem;
  background: var(--color-white);
  border-radius: var(--radius-card);
  border: 1px solid var(--color-gray-border);
  box-shadow: var(--shadow-card);
}

.temoignage-card::before {
  content: '"';
  position: absolute;
  top: 0.5rem;
  left: 1.25rem;
  font-family: var(--font-heading);
  font-size: 3rem;
  line-height: 1;
  color: var(--color-primary);
  opacity: 0.35;
}

.temoignage-stars {
  color: var(--color-primary);
  letter-spacing: 2px;
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
}

.temoignage-card blockquote {
  margin: 0 0 1rem;
  font-style: normal;
  color: var(--color-text-muted);
}

.temoignage-card cite {
  font-style: normal;
  font-weight: 600;
  color: var(--color-text);
  font-size: 0.95rem;
}

.temoignage-entreprise {
  display: block;
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--color-text-muted);
  margin-top: 0.25rem;
}
