/* ═══════════════════════════════════════════════════════════════════
   Seine Amazone — Styles complémentaires
   Navigation · Teaser réalisations · Page portfolio
   À concaténer ou inclure après style.css
   ═══════════════════════════════════════════════════════════════════ */

/* ── NAVIGATION HEADER ──────────────────────────────────────────── */
.header-nav {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0;
}

.header-nav a {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sable-pale);
  text-decoration: none;
  opacity: 0.6;
  transition: opacity 0.2s;
  padding: 4px 16px;
  border-right: 1px solid rgba(242, 181, 54, 0.2);
}

.header-nav a:last-child {
  border-right: none;
}

.header-nav a:hover {
  opacity: 1;
}

.header-nav a.active {
  opacity: 1;
  color: var(--sable);
}

/* ── TEASER RÉALISATIONS (page accueil) ─────────────────────────── */
.realisations-teaser {
  margin-bottom: 52px;
}

.realisations-teaser-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  align-items: stretch;
  background: #fff;
  border: 1px solid var(--lin);
  border-radius: 3px;
  overflow: hidden;
}

.teaser-text {
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.teaser-text h2 {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 500;
  color: var(--chocolat-prof);
  line-height: 1.2;
  margin-bottom: 12px;
}

.teaser-text h2 em {
  font-style: italic;
  color: var(--ocre);
}

.teaser-text p {
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 300;
  color: var(--texte-second);
  line-height: 1.8;
  margin-bottom: 22px;
}

.btn-realisations {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ivoire);
  background: var(--chocolat);
  border: none;
  padding: 11px 26px;
  border-radius: 2px;
  text-decoration: none;
  transition: background 0.2s;
  align-self: flex-start;
}

.btn-realisations:hover {
  background: var(--chocolat-prof);
}

/* ── CARROUSEL TEASER ───────────────────────────────────────────── */
.teaser-carousel {
  position: relative;
  overflow: hidden;
  background: var(--encre);
  min-height: 260px;
}

.carousel-track {
  display: flex;
  height: 100%;
  transition: transform 0.7s cubic-bezier(0.65, 0, 0.35, 1);
  will-change: transform;
}

.carousel-slide {
  min-width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.06);
  animation: kenBurns 8s ease-in-out infinite alternate;
}

@keyframes kenBurns {
  0%   { transform: scale(1.06) translate(0, 0); }
  100% { transform: scale(1.12) translate(-2%, -1%); }
}

/* Caption déplacée en haut de l'image */
.carousel-caption {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  padding: 14px 18px 28px;
  background: linear-gradient(to bottom, rgba(20,12,6,0.65) 0%, transparent 100%);
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.92);
  letter-spacing: 0.04em;
  pointer-events: none;
  z-index: 2;
}

/* Lien carrousel — neutre, pas de bleu ni de soulignement */
.carousel-link {
  display: block;
  width: 100%;
  height: 100%;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

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

.carousel-dots {
  position: absolute;
  bottom: 10px;
  right: 12px;
  display: flex;
  gap: 5px;
  z-index: 3;
}

.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.35);
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.dot.active {
  background: var(--sable);
  transform: scale(1.3);
}

/* ── PAGE INTRO ─────────────────────────────────────────────────── */
.page-intro {
  text-align: center;
  margin-bottom: 52px;
}

.page-intro .label {
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--ocre);
  display: inline-block;
  border: 1px solid var(--ocre);
  padding: 4px 14px;
  border-radius: 2px;
  margin-bottom: 22px;
}

.page-intro h1 {
  font-family: var(--font-serif);
  font-size: 2.6rem;
  font-weight: 500;
  color: var(--chocolat-prof);
  line-height: 1.2;
  margin-bottom: 10px;
}

.page-intro h1 em {
  font-style: italic;
  color: var(--ocre);
}

.page-intro .sous-titre {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-style: italic;
  color: var(--texte-second);
  line-height: 1.6;
}

/* ── FILTRES ────────────────────────────────────────────────────── */
.filter-bar {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.filter-btn {
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--texte-tiers);
  background: transparent;
  border: 1px solid var(--lin);
  padding: 6px 16px;
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.2s;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--chocolat);
  color: var(--sable-pale);
  border-color: var(--chocolat);
}

/* ── GRILLE PROJETS ─────────────────────────────────────────────── */
.projects-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 52px;
}

.project-card {
  background: #fff;
  border: 1px solid var(--lin);
  border-radius: 3px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s, box-shadow 0.25s;
  opacity: 0;
  transform: translateY(16px);
  animation: fadeUp 0.5s ease forwards;
}

.project-card:nth-child(1) { animation-delay: 0.05s; }
.project-card:nth-child(2) { animation-delay: 0.12s; }
.project-card:nth-child(3) { animation-delay: 0.19s; }
.project-card:nth-child(4) { animation-delay: 0.26s; }
.project-card:nth-child(5) { animation-delay: 0.33s; }
.project-card:nth-child(6) { animation-delay: 0.40s; }
.project-card:nth-child(7) { animation-delay: 0.47s; }

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

.project-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(90, 50, 20, 0.10);
}

/* Carte pleine largeur */
.project-card.wide {
  grid-column: 1 / -1;
  flex-direction: row;
  align-items: stretch;
}

.project-card.wide .card-images {
  width: 55%;
  flex-shrink: 0;
}

.project-card.wide .card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 32px 28px;
}

/* ── IMAGES ─────────────────────────────────────────────────────── */
.card-images {
  position: relative;
  background: var(--encre);
  overflow: hidden;
}

/* Avant / Après */
.avant-apres {
  position: relative;
  height: 240px;
}

.avant-apres img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.4s ease;
}

/* Après visible par défaut, avant au survol
   z-index garantit que l'image visible est toujours au-dessus */
.avant-apres img.avant { opacity: 0; z-index: 1; }
.avant-apres img.apres { opacity: 1; z-index: 2; }
.avant-apres:hover img.avant { opacity: 1; z-index: 2; }
.avant-apres:hover img.apres { opacity: 0; z-index: 1; }

.project-card.wide .avant-apres {
  height: 100%;
  min-height: 260px;
}

/* Hint survol */
.hover-hint {
  position: absolute;
  bottom: 10px;
  left: 10px;
  z-index: 2;
  font-family: var(--font-sans);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
  background: rgba(0, 0, 0, 0.4);
  padding: 3px 8px;
  border-radius: 2px;
  pointer-events: none;
  transition: opacity 0.3s;
}

.avant-apres:hover .hover-hint { opacity: 0; }

/* Badge avant / après — le tag "Après" en avant par défaut */
.aa-badge {
  position: absolute;
  bottom: 10px;
  right: 10px;
  z-index: 2;
  display: flex;
  gap: 4px;
  pointer-events: none;
}

.aa-badge span {
  font-family: var(--font-sans);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 3px 7px;
  border-radius: 2px;
  transition: opacity 0.4s;
}

.aa-badge .tag-avant { background: rgba(0, 0, 0, 0.55); color: var(--sable-pale); opacity: 0; }
.aa-badge .tag-apres  { background: var(--ocre); color: #fff; opacity: 1; }

/* Au survol : on affiche "Avant", on cache "Après" */
.avant-apres:hover .aa-badge .tag-avant { opacity: 1; }
.avant-apres:hover .aa-badge .tag-apres  { opacity: 0; }

/* ── GALERIE TRIPLE (1 grande + 2 vignettes côte à côte) ───────── */
.gallery-triple {
  display: flex;
  height: 280px;
  gap: 2px;
}

.gallery-triple-main {
  flex: 1.4;
  position: relative;
  overflow: hidden;
}

.gallery-triple-side {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.gallery-triple-thumb {
  flex: 1;
  position: relative;
  overflow: hidden;
}

.gallery-triple-main img,
.gallery-triple-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.project-card:hover .gallery-triple-main img,
.project-card:hover .gallery-triple-thumb img {
  transform: scale(1.04);
}

/* Pour les cartes wide, la galerie triple prend toute la hauteur */
.project-card.wide .gallery-triple {
  height: 100%;
  min-height: 280px;
}

/* ── GALERIE MULTI (3 photos portrait : cuisine jesbac) ─────────── */
.gallery-multi {
  height: 260px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2px;
}

.gallery-multi img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.4s ease;
  display: block;
}

.project-card:hover .gallery-multi img { transform: scale(1.04); }

/* ── IMAGE SIMPLE (plan cuisine Oise) ───────────────────────────── */
.card-img-single {
  position: relative;
  height: 240px;
  overflow: hidden;
}

.card-img-single img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  transition: transform 0.4s ease;
}

.project-card:hover .card-img-single img {
  transform: scale(1.03);
}

.card-img-plan img {
  object-fit: contain;
  background: #f7f4f0;
}

/* ── GALERIE CSM (vue 3D principale + plan + 2 espaces) ─────────── */
.gallery-csm {
  display: flex;
  height: 100%;
  min-height: 300px;
  flex-direction: column;
  gap: 2px;
}

.csm-main {
  flex: 2;
  position: relative;
  overflow: hidden;
}

.csm-thumbs {
  flex: 1;
  display: flex;
  gap: 2px;
}

.csm-thumb {
  flex: 1;
  position: relative;
  overflow: hidden;
}

.csm-main img,
.csm-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.project-card:hover .csm-main img,
.project-card:hover .csm-thumb img {
  transform: scale(1.04);
}

/* Avant-après imbriqué dans csm-main (projet Toyota) */
.csm-main .avant-apres {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
}

/* Neutraliser le scale au hover sur les images avant/après
   (elles gèrent leur propre transition d'opacité) */
.project-card:hover .csm-main .avant-apres img {
  transform: none;
}

/* ── LABELS SUR IMAGES ──────────────────────────────────────────── */
.img-label {
  position: absolute;
  bottom: 8px;
  left: 8px;
  font-family: var(--font-sans);
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  background: rgba(0,0,0,0.45);
  padding: 2px 7px;
  border-radius: 2px;
  pointer-events: none;
  z-index: 2;
}

.img-label-plan {
  background: rgba(175, 110, 12, 0.8);
  color: #fff;
}

/* ── CORPS DE CARTE ─────────────────────────────────────────────── */
.card-body {
  padding: 20px 18px 18px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.card-tag {
  font-family: var(--font-sans);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ocre-sombre);
  background: var(--sable-pale);
  border: 1px solid var(--sable-doux);
  padding: 3px 8px;
  border-radius: 2px;
}

.card-lieu {
  font-family: var(--font-sans);
  font-size: 0.65rem;
  font-weight: 300;
  letter-spacing: 0.08em;
  color: var(--texte-tiers);
}

.card-body h2 {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--chocolat-prof);
  line-height: 1.25;
  margin-bottom: 8px;
}

.card-body h2 em { font-style: italic; color: var(--ocre); }

.card-body p {
  font-family: var(--font-sans);
  font-size: 0.84rem;
  font-weight: 300;
  color: var(--texte-second);
  line-height: 1.75;
  flex: 1;
}

/* Chips matériaux */
.card-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 14px;
}

.chip {
  font-family: var(--font-sans);
  font-size: 0.62rem;
  font-weight: 300;
  letter-spacing: 0.06em;
  color: var(--texte-tiers);
  background: var(--ivoire-sombre);
  border: 1px solid var(--lin);
  padding: 2px 8px;
  border-radius: 20px;
}

/* ── ENCART GUYANE ──────────────────────────────────────────────── */
.guyane-callout {
  background: var(--ivoire-sombre);
  border-left: 3px solid var(--sable);
  border-radius: 0 3px 3px 0;
  padding: 20px 24px;
  margin-bottom: 52px;
  display: flex;
  align-items: center;
  gap: 18px;
}

.callout-icon {
  font-size: 1.6rem;
  flex-shrink: 0;
  opacity: 0.75;
}

.callout-icon svg {
  width: 32px;
  height: 32px;
}

.guyane-callout p {
  font-family: var(--font-sans);
  font-size: 0.84rem;
  font-weight: 300;
  color: var(--texte-second);
  line-height: 1.75;
}

.guyane-callout p strong {
  color: var(--chocolat);
  font-weight: 500;
}

/* ── LIGHTBOX ───────────────────────────────────────────────────── */
#lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}

#lightbox.active {
  opacity: 1;
  pointer-events: all;
}

.lb-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 12, 6, 0.88);
}

.lb-img {
  position: relative;
  max-width: 80vw;
  max-height: 84vh;
  object-fit: contain;
  border-radius: 2px;
  box-shadow: 0 24px 80px rgba(0,0,0,0.5);
  z-index: 1;
  transition: opacity 0.18s;
  display: block;
  user-select: none;
}

.lb-img.fading { opacity: 0; }

/* Compteur */
.lb-counter {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  color: rgba(255,255,255,0.5);
  pointer-events: none;
  white-space: nowrap;
}

/* Flèches — zones cliquables sur tout le bord gauche / droit */
.lb-prev,
.lb-next {
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 2;
  width: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: transparent;
  border: none;
  transition: background 0.2s;
  padding: 0;
}

.lb-prev { left: 0; }
.lb-next { right: 0; }

.lb-prev:hover { background: rgba(255,255,255,0.06); }
.lb-next:hover { background: rgba(255,255,255,0.06); }

/* Le triangle SVG à l'intérieur */
.lb-prev::before,
.lb-next::before {
  content: '';
  display: block;
  width: 0;
  height: 0;
  transition: transform 0.15s, opacity 0.15s;
}

.lb-prev::before {
  border-top: 14px solid transparent;
  border-bottom: 14px solid transparent;
  border-right: 20px solid rgba(255,255,255,0.75);
}

.lb-next::before {
  border-top: 14px solid transparent;
  border-bottom: 14px solid transparent;
  border-left: 20px solid rgba(255,255,255,0.75);
}

.lb-prev:hover::before { transform: translateX(-3px); }
.lb-next:hover::before { transform: translateX(3px); }

/* Masquer si non applicable */
.lb-prev.hidden,
.lb-next.hidden {
  display: none;
}

.lb-close {
  position: absolute;
  top: 18px;
  right: 22px;
  z-index: 4;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.25);
  color: #fff;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lb-close:hover { background: rgba(255,255,255,0.22); }

.lb-close:hover {
  background: rgba(255,255,255,0.22);
}

/* ── RESPONSIVE ─────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .project-card.wide .gallery-csm {
    min-height: 240px;
  }
}

@media (max-width: 720px) {
  .projects-grid {
    grid-template-columns: 1fr;
  }

  .project-card.wide {
    flex-direction: column;
  }

  .project-card.wide .card-images {
    width: 100%;
  }

  .project-card.wide .avant-apres {
    height: 220px;
    min-height: 220px;
  }

  .avant-apres {
    height: 220px;
  }

  .gallery-triple {
    height: 220px;
  }

  .gallery-multi {
    height: 200px;
  }

  .gallery-csm {
    min-height: 220px;
  }

  .realisations-teaser-inner {
    grid-template-columns: 1fr;
  }

  .teaser-carousel {
    min-height: 200px;
  }

  .page-intro h1 {
    font-size: 1.9rem;
  }

  .header-nav {
    gap: 0;
  }
}

@media (max-width: 480px) {
  .page-intro h1 {
    font-size: 1.6rem;
  }

  .filter-bar {
    gap: 6px;
  }

  .filter-btn {
    font-size: 0.62rem;
    padding: 5px 10px;
  }

  .gallery-multi {
    grid-template-columns: 1fr 1fr;
    height: 180px;
  }

  .gallery-multi img:last-child {
    display: none;
  }
}