/* ============================================================
   ARTICLE STORY — PBGC
   Covers: Story, Petit Format, Voix d'Ateliers
   Depends on: design-system.css (tokens), article-base.css
   ============================================================ */

/* === 3. SOMMAIRE (Story only) === */

.sommaire {
  background: var(--fond-alt);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin-bottom: 40px;
}
.sommaire-title {
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--texte-light);
  margin-bottom: 12px;
}
.sommaire a {
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 500;
  color: var(--vert);
  display: block;
  padding: 6px 0;
  transition: color var(--transition);
}
.sommaire a:hover {
  color: var(--cyan);
}

/* === 10. ENCADRE "LE SAVIEZ-VOUS" (Story only) === */

.encadre-saviez {
  background: rgba(3, 129, 104, .06);
  border: 1px dashed rgba(3, 129, 104, .2);
  border-radius: var(--radius-md);
  padding: 24px;
  margin: 40px 0;
}
.encadre-saviez-header {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 12px;
}
.encadre-saviez-icon {
  width: 36px;
  height: 36px;
  background: rgba(3, 129, 104, .1);
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}
.encadre-saviez-header h4 {
  font-family: var(--font-titre);
  font-weight: 600;
  font-size: 15px;
}
.encadre-saviez p {
  font-family: var(--font-corps);
  font-size: 15px;
  line-height: 1.7;
  color: var(--texte-light);
}


/* === 11. CHIFFRES CLES (Story only) === */

.chiffres-wrap {
  margin: 48px 0;
}
.chiffres-title {
  font-family: var(--font-titre);
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 20px;
}
.chiffres-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  justify-content: center;
}
.chiffre-card {
  width: 150px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform var(--transition);
  position: relative;
}
.chiffre-card:hover {
  transform: translateY(-4px);
}
.chiffre-goutte-wrap {
  position: relative;
  width: 145px;
  height: 178px;
  margin: 0 auto 10px;
}
.chiffre-goutte-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .05));
  transition: filter var(--transition);
}
.chiffre-card:hover .chiffre-goutte-bg {
  filter: drop-shadow(0 6px 18px rgba(0, 0, 0, .14));
}
.chiffre-goutte-content {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 8px;
  z-index: 1;
}
.chiffre-number {
  font-family: var(--font-titre);
  font-weight: 800;
  font-size: .95rem;
  color: var(--goutte-color, var(--vert));
  line-height: 1.15;
  text-align: center;
  white-space: nowrap;
}
.chiffre-label {
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 11px;
  margin-bottom: 2px;
  color: var(--texte-light);
  max-width: 130px;
}
.chiffre-source {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--texte-light);
  margin-top: 4px;
}

/* === 13. CAROUSEL IMAGES (Story only) === */

.carousel-article {
  margin: 48px 0;
  position: relative;
}
.carousel-article-track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.carousel-article-track::-webkit-scrollbar {
  display: none;
}
.carousel-article-slide {
  flex: 0 0 80%;
  scroll-snap-align: center;
  border-radius: var(--radius-md);
  overflow: hidden;
}
.carousel-article-slide img {
  width: 100%;
  height: auto;
  display: block;
}
.carousel-article-slide figcaption {
  font-family: var(--font-ui);
  font-size: 13px;
  color: var(--texte-light);
  padding: 8px 0;
  text-align: center;
}
.carousel-article-nav {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 4px;
}
.carousel-article-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--fond-alt);
  border: 1px solid var(--support);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--texte);
  font-size: 18px;
  transition: all var(--transition);
}
.carousel-article-btn:hover {
  background: var(--vert);
  color: #fff;
  border-color: var(--vert);
}

/* === 18. VOIX-SPECIFIC === */

.hero-photo {
  width: 100%;
  margin-bottom: 0;
}
@media (min-width: 1280px) {
  .hero-photo {
    margin-left: -90px;
    width: calc(100% + 90px);
  }
}
.hero-photo-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 0 0 20px 4px;
  aspect-ratio: 21/9;
}
.hero-photo-wrap::before,
.hero-photo-wrap::after {
  content: '';
  position: absolute;
  inset: 10px;
  border: 2px solid var(--rub-voix);
  border-radius: 4px;
  z-index: 3;
  pointer-events: none;
  opacity: .5;
  clip-path: polygon(
    0 0, 20px 0, 20px 2px, 2px 2px, 2px 20px, 0 20px,
    0 100%, 0 calc(100% - 20px), 2px calc(100% - 20px), 2px calc(100% - 2px), 20px calc(100% - 2px), 20px 100%,
    100% 100%, calc(100% - 20px) 100%, calc(100% - 20px) calc(100% - 2px), calc(100% - 2px) calc(100% - 2px), calc(100% - 2px) calc(100% - 20px), 100% calc(100% - 20px),
    100% 0, 100% 20px, calc(100% - 2px) 20px, calc(100% - 2px) 2px, calc(100% - 20px) 2px, calc(100% - 20px) 0
  );
}
.hero-photo-wrap::after {
  display: none;
}
.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-photo figcaption {
  font-family: var(--font-ui);
  font-size: 13px;
  padding: 12px 24px;
  color: var(--texte-light);
  position: relative;
}
.hero-photo figcaption::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 3px;
  height: 100%;
  background: var(--rub-voix);
}

.atelier-banner {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: var(--fond-alt);
  border: 1px solid rgba(46, 139, 87, .2);
  border-radius: var(--radius-md);
  margin-bottom: 24px;
}
.atelier-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: var(--gradient);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 22px;
}
.atelier-name {
  font-family: var(--font-titre);
  font-weight: 600;
  font-size: 16px;
}
.atelier-medium-pill {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: var(--radius-goutte-alt);
  background: rgba(46, 139, 87, .1);
  color: var(--rub-voix);
  display: inline-block;
  margin-top: 4px;
}
.atelier-badge {
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 10px;
  padding: 4px 10px;
  border-radius: var(--radius-goutte-alt);
  background: var(--rub-voix);
  color: #fff;
  margin-left: auto;
  white-space: nowrap;
}

.coulisses-section {
  margin: 48px 0;
}
.coulisses-section h3 {
  font-family: var(--font-titre);
  font-weight: 600;
  font-size: 1.2rem;
  margin-bottom: 20px;
}
.coulisses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}
.coulisses-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  background: var(--fond-carte);
}
.coulisses-card img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
}
.coulisses-caption {
  font-family: var(--font-caveat);
  font-size: 16px;
  padding: 8px 12px 8px 20px;
  color: var(--texte-light);
  position: relative;
}
.coulisses-caption::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--rub-voix);
  position: absolute;
  left: 4px;
  top: 14px;
}

.atelier-link-block {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  background: var(--fond-alt);
  border: 1px dashed rgba(46, 139, 87, .3);
  border-radius: var(--radius-md);
  margin: 32px 0;
}
.atelier-link-block:hover {
  border-style: solid;
}

.medium-pill {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 500;
  padding: 3px 8px;
  border-radius: var(--radius-goutte-alt);
  background: rgba(46, 139, 87, .08);
  color: var(--rub-voix);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}


/* === RESPONSIVE (Story / Voix) === */

@media (max-width: 768px) {
  .coulisses-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .chiffres-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .atelier-badge {
    margin-left: 0;
    margin-top: 8px;
  }
  .atelier-banner {
    flex-wrap: wrap;
  }
  .hero-photo-wrap {
    aspect-ratio: 16/9;
  }
}
