/* ============================================================
   ACCUEIL — styles spécifiques
   Chargé conditionnellement via head.php ($page === 'accueil')
   ============================================================ */

/* === HERO SECTION === */
.hero-section .fade-words span {
  display: inline-block;
  opacity: 0;
  transform: translateY(1rem);
  animation: wordFade 0.5s ease forwards;
}
.hero-section .fade-words span:nth-child(1)  { animation-delay: 0.1s; }
.hero-section .fade-words span:nth-child(2)  { animation-delay: 0.2s; }
.hero-section .fade-words span:nth-child(3)  { animation-delay: 0.3s; }
.hero-section .fade-words span:nth-child(4)  { animation-delay: 0.4s; }
.hero-section .fade-words span:nth-child(5)  { animation-delay: 0.5s; }
.hero-section .fade-words span:nth-child(6)  { animation-delay: 0.6s; }
.hero-section .fade-words span:nth-child(7)  { animation-delay: 0.7s; }
.hero-section .fade-words span:nth-child(8)  { animation-delay: 0.8s; }
.hero-section .fade-words span:nth-child(9)  { animation-delay: 0.9s; }
.hero-section .fade-words span:nth-child(10) { animation-delay: 1.0s; }
.hero-section .fade-words span:nth-child(11) { animation-delay: 1.1s; }
.hero-section .fade-words span:nth-child(12) { animation-delay: 1.2s; }

@keyframes wordFade {
  to { opacity: 1; transform: translateY(0); }
}

.home-ip-header {
  position: relative;
  overflow: hidden;
  border-radius: 0 0 3rem 3rem;
  box-shadow: 0 0.4rem 0.8rem rgba(0, 0, 0, 0.2);
}

.header-image {
  background: url('../images/header-light3.webp') center right no-repeat;
  background-size: cover;
  min-height: 55vh;
}

.z-4 { z-index: 4; }

.blur-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  pointer-events: none;
  mask-image: linear-gradient(to right, black 0%, black 25%, transparent 80%);
  -webkit-mask-image: linear-gradient(to right, black 0%, black 25%, transparent 80%);
}

.gradient-left {
  background: linear-gradient(-90deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.9) 100%);
  width: 55%;
  height: 100%;
  left: 0;
  z-index: 3;
  pointer-events: none;
}

.search-box-sim {
  background: #fff;
  border: 0.1rem solid var(--color-border);
  border-radius: 3rem;
  padding: 1.2rem 2rem;
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  box-shadow: 0 0.4rem 1.2rem rgba(0,0,0,0.15);
  min-height: 5rem;
}
.search-box-sim .icon { font-size: 2rem; }

#typed-text {
  display: inline-block;
  white-space: nowrap;
  overflow: hidden;
  color: #000;
}

.cursor {
  display: inline-block;
  width: 1rem;
  animation: blink 0.7s infinite;
}

@keyframes blink {
  0%, 50%, 100% { opacity: 1; }
  25%, 75% { opacity: 0; }
}

.txt-white     { color: #ffffff; }
.txt-white-80  { color: rgba(255,255,255,0.85); }
.txt-white-90  { color: rgba(255,255,255,0.92); }
.txt-accent-light { color: #93c5fd; }

.reassurance-bar span {
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(0.8rem);
  -webkit-backdrop-filter: blur(0.8rem);
  padding: 0.8rem 1.4rem;
  border-radius: 2rem;
}

/* CTA Hero — gradient or luxueux, intentionnellement plus marqué que .btn-cta */
.hero-cta {
  background: linear-gradient(135deg, var(--color-accent) 0%, #a8863d 100%);
  color: white;
  padding: 1.4rem 2.8rem;
  border-radius: 1rem;
  font-size: 1.7rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  box-shadow: 0 0.4rem 1.5rem rgba(197, 160, 90, 0.4);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.hero-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s ease;
}

.hero-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 0.8rem 2.5rem rgba(197, 160, 90, 0.5);
  background: linear-gradient(135deg, #d4af61 0%, var(--color-accent) 100%);
}

.hero-cta:hover::before { left: 100%; }

.hero-cta svg { flex-shrink: 0; }

.hero-profile-photo { flex-shrink: 0; }

.profile-img-hero {
  width: 14rem;
  height: 14rem;
  border-radius: 50%;
  object-fit: cover;
  border: 0.4rem solid var(--color-accent);
  box-shadow: 0 0.8rem 2.4rem rgba(197, 160, 90, 0.4), 0 0 0 0.6rem rgba(197, 160, 90, 0.15);
  animation: profilePulse 3s ease-in-out infinite;
}

@keyframes profilePulse {
  0%, 100% { box-shadow: 0 0.8rem 2.4rem rgba(197, 160, 90, 0.4), 0 0 0 0.6rem rgba(197, 160, 90, 0.15); }
  50%       { box-shadow: 0 0.8rem 3rem rgba(197, 160, 90, 0.5), 0 0 0 0.8rem rgba(197, 160, 90, 0.2); }
}

.hero-text-content { flex: 1; }

@media screen and (max-width: 900px) {
  .header-image { background-position: center center; }
  .blur-overlay, .gradient-left { width: 100%; opacity: 0.8; }
  .hero-content {
    padding: 6rem 2rem 2rem 2rem;
    text-align: center;
    width: 100%;
    flex-direction: column;
    gap: 2rem;
  }
  .hero-profile-photo { margin: 0 auto; }
  .profile-img-hero { width: 12rem; height: 12rem; }
  .hero-text-content { text-align: center; }
  .hero-content p { margin-left: auto; margin-right: auto; }
}

@media screen and (max-width: 600px) {
  .cta-hero {
    flex-direction: column;
    padding: 2rem 2rem;
    gap: 1.6rem;
  }
  .cta-hero a {
    width: 100%;
    justify-content: center;
    padding: 1.6rem 2rem;
    font-size: 1.6rem;
  }
  .reassurance-bar { flex-direction: column; gap: 1.2rem; }
  .home-ip-header { width: 98%; }
  .search-box-sim { padding: 1rem 1.5rem; }
  #typed-text { font-size: 1.6rem; }
}

/* === SECTION QUESTIONS V2 === */
.questions-grid-v2 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.4rem;
  max-width: 120rem;
  margin: 0 auto;
}

.question-card-v2 {
  background: var(--color-secondary);
  border-radius: 1.6rem;
  padding: 3.2rem;
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--color-border);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.question-card-v2:hover {
  transform: translateY(-0.4rem);
  box-shadow: 0 1.2rem 3rem rgba(0,0,0,0.1);
}

.question-card-v2--highlight {
  background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-secondary-light) 100%);
  border: 2px solid var(--color-primary-light);
}

.question-points {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.question-points .point {
  font-size: 1.5rem;
  color: var(--color-text);
  padding-left: 2rem;
  position: relative;
  line-height: 1.5;
}

.question-points .point::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--color-primary);
  font-weight: 600;
}

.price-cards-mini {
  display: flex;
  gap: 1.2rem;
}

.price-card-mini {
  flex: 1;
  background: var(--color-bg);
  border-radius: 1.2rem;
  padding: 1.6rem;
  text-align: center;
  position: relative;
  border: 1px solid var(--color-border);
}

.price-card-mini--featured {
  border: 2px solid var(--color-primary);
  background: linear-gradient(180deg, var(--color-bg) 0%, var(--color-secondary-light) 100%);
}

.price-card-mini__badge {
  position: absolute;
  top: -1rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-primary);
  color: white;
  font-size: 1rem;
  font-weight: 600;
  padding: 0.3rem 1rem;
  border-radius: 2rem;
  text-transform: uppercase;
  letter-spacing: 0.05rem;
}

.price-card-mini__header { margin-bottom: 0.8rem; }

.price-card-mini__price {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--color-primary);
  display: block;
  line-height: 1;
}

.price-card-mini__recur {
  font-size: 1.2rem;
  color: var(--color-accent);
  font-weight: 600;
}

.price-card-mini__name {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--color-text);
  display: block;
  margin-bottom: 0.2rem;
}

.price-card-mini__desc {
  font-size: 1.2rem;
  color: var(--color-muted);
}

@media (max-width: 1000px) {
  .questions-grid-v2 {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .question-card-v2--highlight { order: -1; }
}

@media (max-width: 500px) {
  .price-cards-mini { flex-direction: column; }
}

/* === SECTION REALISATIONS (accueil) === */
.realisations-layout {
  max-width: 120rem;
  margin: 0 auto;
  justify-content: center;
}

.realisations-context {
  flex: 0 0 35%;
  max-width: 40rem;
}

.section-realisations .context-item {
  padding-left: 1.6rem;
  border-left: 0.3rem solid var(--color-primary-light);
}

.section-realisations .image-strip {
  flex: 0 0 55%;
  height: 45rem;
  min-width: 50rem;
  overflow: hidden;
  box-shadow: 0 1.4rem 3rem rgba(0, 0, 0, 0.25);
  border: 0.3rem solid var(--color-primary);
}

.section-realisations .image-container {
  flex: 1;
  transition: flex 0.5s ease;
  height: 100%;
  overflow: hidden;
  border-right: 0.2rem solid var(--color-primary-light);
  position: relative;
}

.section-realisations .image-container:last-child { border-right: none; }
.section-realisations .image-strip:hover .image-container { flex: 3; }
.section-realisations .image-container:hover { flex: 10 !important; }

.section-realisations .img-wrapper {
  width: 100%;
  height: 100%;
  overflow: hidden;
  position: relative;
}

.section-realisations .img-focus {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  cursor: pointer;
  position: absolute;
  object-position: top;
  transition: transform 0.5s ease;
}

.section-realisations .image-container:hover .img-focus { transform: scale(1.05); }

.section-realisations .img-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.8));
  padding: 4rem 1.5rem 1.5rem;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.section-realisations .image-container:hover .img-overlay { opacity: 1; }

.section-realisations .img-label {
  color: white;
  font-size: 1.4rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1rem;
}

/* Projet phare */
.featured-project {
  max-width: 100rem;
  margin: 0 auto;
}

.featured-project__inner {
  background: var(--color-secondary);
  border: 2px solid var(--color-primary);
  box-shadow: 0 1.6rem 4rem rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.featured-project__inner:hover {
  transform: translateY(-0.6rem);
  box-shadow: 0 2rem 5rem rgba(0, 0, 0, 0.2);
}

.featured-project__image {
  flex: 0 0 50%;
  position: relative;
  overflow: hidden;
  min-height: 36rem;
}

.featured-project__image a {
  display: block;
  width: 100%;
  height: 100%;
}

.featured-project__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.5s ease;
}

.featured-project__inner:hover .featured-project__image img { transform: scale(1.05); }

.featured-project__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(42, 111, 189, 0.9) 0%, rgba(23, 59, 107, 0.9) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.featured-project__image:hover .featured-project__overlay { opacity: 1; }

.featured-project__view {
  color: white;
  font-size: 1.8rem;
  font-weight: 700;
  padding: 1.2rem 2.4rem;
  border: 2px solid white;
  border-radius: 0.8rem;
  transition: all 0.3s ease;
}

.featured-project__image:hover .featured-project__view {
  background: white;
  color: var(--color-primary);
}

.featured-project__content {
  flex: 1;
  padding: 3.2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.featured-project__badge {
  display: inline-block;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: white;
  padding: 0.6rem 1.4rem;
  border-radius: 2rem;
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 1.6rem;
  width: fit-content;
  box-shadow: 0 0.4rem 1.2rem rgba(245, 158, 11, 0.4);
}

.featured-project__features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.8rem;
}

.featured-project__features li {
  font-size: 1.4rem;
  color: var(--color-text);
  padding: 0.4rem 0;
}

@media (max-width: 1000px) {
  .realisations-layout { flex-direction: column; align-items: center; }
  .realisations-context { flex: 1 1 100%; max-width: 100%; text-align: center; margin-bottom: 3rem; }
  .realisations-context .context-item {
    border-left: none;
    padding-left: 0;
    border-bottom: 0.2rem solid var(--color-primary-light);
    padding-bottom: 2rem;
  }
  .realisations-context .btn-cta--outline { align-self: center; }
  .section-realisations .image-strip { flex: 1 1 100%; height: 40rem; min-width: 100%; max-width: 100%; }
}

@media (max-width: 900px) {
  .featured-project__inner { flex-direction: column; }
  .featured-project__image { flex: none; min-height: 28rem; }
  .featured-project__content { padding: 2.4rem; }
  .featured-project__features { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .section-realisations .image-strip { height: 35rem; }
}

@media (max-width: 500px) {
  .featured-project__image { min-height: 22rem; }
  .featured-project h3 { font-size: 2.2rem; }
}

/* === SECTION PROCESS === */
.process-timeline-clean {
  max-width: 70rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.step-clean {
  display: flex;
  gap: 2.4rem;
  padding: 2.4rem 0;
}

.step-clean__marker {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
}

.step-clean__number {
  width: 4rem;
  height: 4rem;
  background: var(--color-primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  font-weight: 700;
}

.step-clean__line {
  width: 2px;
  flex: 1;
  background: var(--color-border);
  margin-top: 1.2rem;
  min-height: 4rem;
}

.step-clean__content { padding-top: 0.6rem; }

@media (max-width: 600px) {
  .step-clean { gap: 1.6rem; }
  .step-clean__number { width: 3.2rem; height: 3.2rem; font-size: 1.5rem; }
}

/* === SECTION POUR QUI === */
.metiers-grid {
  max-width: 110rem;
  margin: 0 auto;
}

.metier-card {
  flex: 1 1 16rem;
  max-width: 17rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.metier-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 1.2rem 3rem rgba(0,0,0,0.15);
}

.metier-icon {
  width: 7rem;
  height: 7rem;
  background: var(--color-secondary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  transition: transform 0.3s ease, background 0.3s ease;
}

.metier-card:hover .metier-icon {
  transform: scale(1.1);
  background: var(--color-primary-light);
}

.metier-card:hover .metier-icon svg { stroke: white; }

.stats-wow { padding: 4rem 0; }
.stat-item { position: relative; }

.stat-number {
  display: block;
  line-height: 1;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-number::after { content: '+'; font-size: 2.4rem; }

@media (max-width: 768px) {
  .metier-card { flex: 1 1 14rem; max-width: 16rem; }
  .stats-wow { gap: 2rem; }
}

@media (max-width: 480px) {
  .metier-card { flex: 1 1 45%; max-width: 48%; }
}

/* === ANIMATIONS REVEAL === */
.reveal-item {
  opacity: 0;
  transform: translateY(3rem);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-item.revealed {
  opacity: 1;
  transform: translateY(0);
  height: fit-content;
}

/* === SECTION POURQUOI === */
.pourquoi-grid {
  max-width: 100rem;
  margin: 0 auto;
}

.pourquoi-card {
  flex: 1 1 42rem;
  max-width: 48rem;
  background: var(--color-secondary);
  padding: 2.4rem;
  border-radius: 1.2rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pourquoi-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 0.8rem 2rem rgba(0,0,0,0.08);
}

.pourquoi-icon {
  width: 5rem;
  height: 5rem;
  background: var(--color-secondary-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 768px) {
  .pourquoi-card { flex: 1 1 100%; max-width: 100%; }
}
