/* ============================================================
   HOME.CSS — Styles spécifiques à index.html
   (extrait de style.css)
============================================================ */

/* ============================================================
   SECTION 2 — HERO
============================================================ */
#hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  /* Fond fallback — le canvas dessine son propre fond animé */
  background: var(--color-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 0 24px;
  max-width: 820px;
}

/* H1 typewriter */
.hero-h1 {
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--color-white);
  line-height: 1.15;
  margin-bottom: 28px;
  /* Réserve toujours 2 lignes — empêche le layout de sauter */
  min-height: calc(3.5rem * 1.15 * 2);
  display: flex;
  align-items: center;
  justify-content: center;
  /* Légère lueur sur le texte principal */
  text-shadow: 0 0 60px rgba(56,182,255,0.15);
}

.cursor {
  display: inline-block;
  color: var(--color-blue);
  font-weight: 300;
  animation: blink 0.75s step-end infinite;
}

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

/* Sous-titre hero */
.hero-subtitle {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.72);
  max-width: 600px;
  margin: 0 auto 40px;
  line-height: 1.75;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s ease 0.3s, transform 0.7s ease 0.3s;
}
.hero-subtitle.show { opacity: 1; transform: translateY(0); }

/* CTA buttons hero */
.hero-ctas {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s ease 0.6s, transform 0.7s ease 0.6s;
}
.hero-ctas.show { opacity: 1; transform: translateY(0); }

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  opacity: 0.6;
  animation: bounce 2s ease-in-out infinite;
}

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

/* Mobile hero */
@media (max-width: 767px) {
  .hero-h1 {
    font-size: 2rem;
    min-height: calc(2rem * 1.15 * 2);
  }
  .hero-subtitle { font-size: 1rem; }
}

/* ============================================================
   SECTION 3 — MANIFESTE
============================================================ */
#manifeste {
  background: var(--color-white);
  padding: 96px 24px;
}

.manifeste-inner {
  max-width: 720px;
  margin: 0 auto;
  border-left: 4px solid var(--color-blue);
  padding-left: 36px;
}

.manifeste-inner p {
  font-size: 1.2rem;
  line-height: 1.85;
  font-style: italic;
  color: var(--color-dark);
  margin-bottom: 28px;
}

.manifeste-inner p:last-child {
  font-style: normal;
  font-weight: 600;
  color: var(--color-blue);
  margin-bottom: 0;
}

/* ============================================================
   SECTION 4 — POUR QUI ?
============================================================ */
#pour-qui {
  background: var(--color-gray-bg);
}

/* ============================================================
   SECTION 5 — L'APPROCHE REFIT
============================================================ */
#refit {
  background: var(--color-dark);
  color: var(--color-white);
}

.refit-title { color: var(--color-white); }

.refit-subtitle {
  color: rgba(255,255,255,0.68);
  text-align: center;
  max-width: 600px;
  margin: 16px auto 64px;
  font-size: 1.05rem;
  line-height: 1.75;
}

/* Schéma SVG Refit */
.refit-schema-wrapper {
  max-width: 700px;
  margin: 0 auto 56px;
  overflow: visible;
}

.refit-schema-wrapper svg {
  width: 100%;
  height: auto;
  overflow: visible;
}

/* Connexion lines animation */
.refit-line {
  stroke: var(--color-blue);
  stroke-width: 2;
  fill: none;
  stroke-dasharray: 200;
  stroke-dashoffset: 200;
  transition: stroke-dashoffset 1s ease;
}
.refit-line.animated { stroke-dashoffset: 0; }

/* Dot animé qui glisse sur les lignes */
.line-dot {
  r: 3;
  fill: var(--color-blue);
  opacity: 0;
}
.line-dot.animated { opacity: 1; }

/* Avantages Refit */
.refit-avantages {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  margin-bottom: 48px;
}

.refit-av-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--color-white);
  font-weight: 500;
}

.refit-av-item svg { flex-shrink: 0; }

.btn-outline-white {
  display: inline-block;
  border: 2px solid var(--color-white);
  color: var(--color-white);
  padding: 12px 32px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  transition: background var(--transition), color var(--transition);
}
.btn-outline-white:hover {
  background: var(--color-white);
  color: var(--color-dark);
}

.refit-cta-wrapper { text-align: center; }

/* ============================================================
   SECTION 6 — QUI SUIS-JE ?
============================================================ */
.about-section {
  background: var(--color-white);
  position: relative;
  overflow: hidden;
}

/* Halo décoratif en fond */
.about-section::before {
  content: '';
  position: absolute;
  top: -180px;
  right: -180px;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(56,182,255,0.07) 0%, transparent 70%);
  pointer-events: none;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 56px;
  align-items: start;
}

@media (min-width: 768px) {
  .about-grid {
    grid-template-columns: 42% 1fr;
    gap: 80px;
  }
}

/* === COLONNE PHOTO === */
.about-photo-wrap {
  position: relative;
  padding-bottom: 24px; /* espace pour le badge */
}

/* Bloc décoratif décalé derrière la photo */
.about-photo-deco {
  position: absolute;
  top: 24px;
  left: -16px;
  width: 100%;
  height: calc(100% - 24px);
  background: var(--color-light);
  border-radius: 20px;
  z-index: 0;
}

.about-photo {
  position: relative;
  z-index: 1;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 28px 64px rgba(10, 34, 57, 0.16);
}

.about-photo img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: top center;
  display: block;
}

/* Badge localisation superposé */
.about-location-badge {
  position: absolute;
  bottom: 0;
  right: 12px;
  z-index: 2;
  background: white;
  border: 1px solid #E5E7EB;
  border-radius: 30px;
  padding: 8px 16px;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--color-dark);
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 16px rgba(10, 34, 57, 0.10);
}

.about-location-badge svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

/* === COLONNE TEXTE — titres & corps === */
.about-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-dark);
  line-height: 1.2;
  margin-bottom: 8px;
}

/* Trait décoratif sous le titre */
.about-title::after {
  content: '';
  display: block;
  width: 44px;
  height: 3px;
  background: var(--color-blue);
  border-radius: 2px;
  margin-top: 16px;
  margin-bottom: 28px;
}

/* Premier paragraphe mis en avant */
.about-intro {
  font-size: 1.03rem;
  line-height: 1.85;
  color: var(--color-dark);
  font-weight: 400;
  margin-bottom: 0;
}

.about-text p {
  font-size: 0.97rem;
  line-height: 1.85;
  color: var(--color-text);
  margin-bottom: 18px;
}
.about-text p:last-of-type { margin-bottom: 0; }

/* === STATS === */
.about-stats {
  display: flex;
  gap: 0;
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid #E5E7EB;
}

.about-stat-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 12px;
}

.about-stat-item:not(:last-child) {
  border-right: 1px solid #E5E7EB;
}

.about-stat-value {
  font-size: 2.1rem;
  font-weight: 700;
  color: var(--color-blue);
  line-height: 1;
  margin-bottom: 6px;
}

.about-stat-label {
  font-size: 0.75rem;
  color: var(--color-text);
  font-weight: 500;
  line-height: 1.45;
  text-align: center;
}

/* ============================================================
   SECTION 7 — SERVICES (home uniquement)
============================================================ */
#services {
  background: var(--color-gray-bg);
  position: relative;
  overflow: hidden;
}

/* Grille dé-5 : 4 colonnes, chaque carte couvre 2 col, Assurance centré */
.cards-grid-dice {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 768px) {
  .cards-grid-dice {
    grid-template-columns: repeat(4, 1fr);
  }
  .cards-grid-dice .card:nth-child(1) { grid-column: 1 / 3; }
  .cards-grid-dice .card:nth-child(2) { grid-column: 3 / 5; }
  .cards-grid-dice .card:nth-child(3) { grid-column: 2 / 4; } /* Assurance — centre */
  .cards-grid-dice .card:nth-child(4) { grid-column: 1 / 3; }
  .cards-grid-dice .card:nth-child(5) { grid-column: 3 / 5; }
}

/* ============================================================
   SECTION 8 — CTA FINAL (home)
============================================================ */
#cta-final {
  background: linear-gradient(135deg, var(--color-blue) 0%, var(--color-dark) 100%);
  padding: 96px 24px;
  text-align: center;
}

.cta-final-title {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 20px;
  line-height: 1.2;
}

.cta-final-subtitle {
  color: rgba(255,255,255,0.78);
  max-width: 560px;
  margin: 0 auto 40px;
  font-size: 1.05rem;
  line-height: 1.75;
}

.cta-final-email {
  margin-top: 20px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
}
.cta-final-email a { color: rgba(255,255,255,0.7); text-decoration: underline; }
.cta-final-email a:hover { color: var(--color-white); }

@media (max-width: 767px) {
  .cta-final-title { font-size: 1.6rem; }
}

/* ============================================================
   SECTION 9 — BLOG (grille home uniquement)
============================================================ */
#blog {
  background: var(--color-white);
}

.blog-cta-wrapper {
  text-align: center;
  margin-top: 48px;
}
