/* ============================================================
   PAGES/HOME.CSS — Styles spécifiques à la page d'accueil
   ============================================================ */

/* ---- Hero ---- */
.hero {
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark-blue) 60%, var(--primary) 100%);
  min-height: calc(100vh - var(--nav-height));
  display: flex;
  align-items: center;
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

/* Cercles décoratifs en arrière-plan */
.hero::before,
.hero::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  opacity: 0.07;
  background: var(--accent);
}
.hero::before {
  width: 600px; height: 600px;
  top: -200px; right: -100px;
}
.hero::after {
  width: 400px; height: 400px;
  bottom: -150px; left: 10%;
}

.hero-content {
  position: relative;
  z-index: 1;
  min-width: 0; /* empêche le débordement dans la grille */
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 24px;
}

.hero-eyebrow span {
  display: inline-block;
  width: 32px;
  height: 2px;
  background: var(--accent);
}

.hero h1 {
  color: white;
  margin-bottom: 24px;
}

.hero h1 em {
  font-style: normal;
  color: #93c5fd;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.7);
  max-width: 560px;
  margin-bottom: 40px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.4);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  animation: bounce 2s infinite;
}

.hero-scroll svg { opacity: 0.5; }

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(8px); }
}

/* ---- Section services (accueil) ---- */
.services-section {
  background: var(--bg-light);
}

.services-section .section-subtitle { margin-bottom: 56px; }

/* ---- Section urgence "Ne passez pas à côté" ---- */
.urgency-section {
  background: var(--dark-blue);
  color: white;
  position: relative;
  overflow: hidden;
}

.urgency-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.urgency-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 48px;
}

.urgency-section h2 { color: white; margin-bottom: 16px; }
.urgency-section p  {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.72);
  max-width: 560px;
  line-height: 1.75;
}

/* ---- Section expertise "La vraie valeur ajoutée" ---- */
.expertise-section {
  background: white;
}

.expertise-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}

.expertise-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 32px;
}

.expertise-item {
  display: flex;
  gap: 16px;
}

.expertise-icon {
  width: 44px;
  height: 44px;
  background: rgba(37, 99, 235, 0.08);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--accent);
}

.expertise-item h4 { margin-bottom: 4px; }
.expertise-item p  { font-size: 0.92rem; color: var(--text-muted); }

.expertise-visual {
  background: linear-gradient(135deg, var(--bg-light) 0%, #dbeafe 100%);
  border-radius: var(--radius-lg);
  padding: 48px;
  text-align: center;
}

.stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 24px;
}

.stat-item {
  background: white;
  border-radius: var(--radius-md);
  padding: 24px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.stat-number {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 6px;
}

.stat-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* ---- Références clients ---- */
.references-section {
  padding: 56px 0;
  background: white;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.references-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-light);
  margin-bottom: 36px;
}

.references-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 64px;
  flex-wrap: wrap;
}

.references-logos img {
  height: 52px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.45;
  transition: all var(--transition);
}

.references-logos img:hover {
  filter: grayscale(0%);
  opacity: 1;
}

/* ---- Hero 2 colonnes avec vidéo ---- */
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.hero-video {
  display: block;
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.4);
  cursor: pointer;
}

.hero-video img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 0.4s ease;
}

.hero-video:hover img {
  transform: scale(1.04);
}

.video-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 72px;
  transition: transform 0.2s ease, opacity 0.2s ease;
  filter: drop-shadow(0 4px 16px rgba(0,0,0,0.5));
}

.video-play-btn svg {
  width: 100%;
  height: auto;
  display: block;
}

.hero-video:hover .video-play-btn {
  transform: translate(-50%, -50%) scale(1.12);
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .hero-inner { gap: 40px; }
}

/* Tablette : vidéo passe sous le texte */
@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .hero-video {
    max-width: 560px;
    margin: 0 auto;
    width: 100%;
  }
}

@media (max-width: 768px) {
  .hero { min-height: auto; padding: 56px 0 72px; }
  .hero-scroll { display: none; }
  .hero-video { display: none; }
  .urgency-inner { grid-template-columns: 1fr; }
  .expertise-inner { grid-template-columns: 1fr; }
  .expertise-visual { display: none; }
  .references-logos { gap: 32px; }
  .references-logos img { height: 38px; }
}
