/* exemples.css — galerie « Voir un exemple » (aucune dépendance) */
section.exemples {
  margin: 2rem 0;
  padding: 1.3rem 1.2rem;
  background: var(--surface);
  border: 1px solid var(--bordure);
  border-radius: 12px;
}
section.exemples h2 { margin: 0 0 0.3rem; color: var(--bleu-fonce); }
section.exemples .intro-exemple { color: var(--texte-doux); margin: 0 0 0.9rem; font-size: 0.95rem; }
/* Galerie qui défile : carrousel en scroll-snap, mobile d'abord */
.galerie-exemple {
  display: flex;
  gap: 0.9rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  overscroll-behavior-x: contain;
  padding: 0.2rem 0 0.6rem;
  scrollbar-width: thin;
}
.galerie-exemple figure { margin: 0; flex: 0 0 min(86%, 440px); scroll-snap-align: start; }
.galerie-carte figure { flex-basis: 88%; }
.carrousel { position: relative; }
.carrousel .fleche {
  position: absolute;
  top: calc(50% - 1.6rem);
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.92);
  color: #1b2433;
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
  z-index: 2;
}
.carrousel .fleche-prec { left: 0.3rem; }
.carrousel .fleche-suiv { right: 0.3rem; }
.carrousel .compte-images { margin: 0.2rem 0 0; font-size: 0.8rem; color: var(--texte-doux); }
.mention-ia { font-size: 0.8rem; color: var(--texte-doux); margin: 0.3rem 0 0; }
.lightbox .lb-prec, .lightbox .lb-suiv {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 3rem;
  color: #fff;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 0 12px;
}
.lightbox .lb-prec { left: 4px; }
.lightbox .lb-suiv { right: 4px; }
.lightbox.seule .lb-prec, .lightbox.seule .lb-suiv { display: none; }
.galerie-exemple button {
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
  width: 100%;
  display: block;
}
.galerie-exemple img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  border: 1px solid var(--bordure);
}
.galerie-exemple figcaption { font-size: 0.85rem; color: var(--texte-doux); margin-top: 0.3rem; }
.vignette-exemple {
  width: 100%;
  height: 150px;
  object-fit: cover;
  object-position: top;
  border-radius: 8px;
  border: 1px solid var(--bordure);
  margin-bottom: 0.2rem;
}
.galerie-carte { grid-template-columns: 1fr 1fr; margin: 0.3rem 0 0.4rem; }
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(15, 20, 30, 0.85);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999;
  padding: 24px;
}
.lightbox.ouvert { display: flex; }
.lightbox img {
  max-width: min(1100px, 94vw);
  max-height: 90vh;
  border-radius: 10px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
  background: #fff;
}
.lightbox .fermer {
  position: absolute;
  top: 10px;
  right: 16px;
  font-size: 2.2rem;
  line-height: 1;
  color: #fff;
  background: none;
  border: none;
  cursor: pointer;
}
.lightbox .legende {
  position: absolute;
  bottom: 14px;
  left: 0;
  right: 0;
  text-align: center;
  color: #e8eaf0;
  font-size: 0.95rem;
  padding: 0 60px;
}
@media (prefers-reduced-motion: reduce) { .carte { transition: none; } }
.page-web-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  align-items: center;
  gap: clamp(1rem, 5vw, 3rem);
  padding-block: clamp(1rem, 4vw, 3rem);
}
.page-web-hero__image {
  margin: 0;
  padding: 0.75rem;
  background: #e1eae3;
  border-radius: 1rem;
}
.page-web-hero__image img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 0.65rem;
}
.page-web-hero__image figcaption {
  color: #263c34;
  font-size: 0.875rem;
  margin-top: 0.5rem;
}
@media (max-width: 720px) {
  .page-web-hero { grid-template-columns: minmax(0, 1fr); }
  .page-web-hero__image { max-width: 38rem; }
}
