/*
 * accueil.css — Page d'accueil
 * ══════════════════════════════
 * Deux sections :
 *   1. Hero : texte à gauche, photo à droite (layout 50/50)
 *   2. Aperçu portfolio : grille de 3 photos cliquables
 */

/* ── Section Hero ───────────────────────────────────────────────────────── */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: calc(100vh - 120px);   /* 120px = hauteur nav */
}

/* Colonne gauche : texte */
.hero-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px 60px 80px 80px;
}

.hero-tag {
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--blue);
  font-weight: 600;
  margin-bottom: 20px;
}

.hero-title {
  font-size: 46px;
  font-weight: 300;
  line-height: 1.15;
  color: var(--dark);
  margin-bottom: 6px;
}
.hero-title strong { font-weight: 800; }

/* Trait décoratif bleu sous le titre */
.hero-line {
  width: 40px;
  height: 3px;
  background: var(--blue);
  margin: 24px 0;
}

.hero-desc {
  font-size: 15px;
  line-height: 1.7;
  color: var(--muted);
  max-width: 380px;
  margin-bottom: 36px;
}

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

/* Colonne droite : photo */
.hero-photo {
  position: relative;
  overflow: hidden;
}

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

/* Badge flottant sur la photo (ex : "+200 mariages") */
.hero-photo-badge {
  position: absolute;
  bottom: 40px;
  left: -1px;
  background: var(--white);
  padding: 16px 24px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}
.hero-photo-badge .num {
  font-size: 28px;
  font-weight: 800;
  color: var(--blue);
  line-height: 1;
}
.hero-photo-badge .label {
  font-size: 9px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 2px;
}

/* ── Section aperçu Portfolio ───────────────────────────────────────────── */
.home-portfolio-preview {
  padding: 80px;
  background: var(--bg);
}

/* Grille de 3 photos miniatures */
.grid-preview {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.grid-preview-item {
  aspect-ratio: 4/3;
  overflow: hidden;
  border-radius: 2px;
  position: relative;
  cursor: pointer;
}

.grid-preview-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.grid-preview-item:hover img { transform: scale(1.04); }

/* Overlay bleu au survol */
.grid-preview-item .overlay {
  position: absolute;
  inset: 0;
  background: rgba(61,107,140,0);
  transition: background 0.3s;
}
.grid-preview-item:hover .overlay { background: rgba(61,107,140,0.35); }

/* ── Responsive ≤ 768px ─────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-text {
    padding: 48px 24px;
    order: 2;
  }

  .hero-title { font-size: 32px; }

  .hero-photo {
    height: 60vw;
    min-height: 240px;
    order: 1;
  }

  .hero-photo-badge {
    bottom: 20px;
    padding: 12px 16px;
  }

  .home-portfolio-preview {
    padding: 48px 24px;
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .grid-preview {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}
