/* Nos succès — shared type scale from styles.css.
   Hero: About; section heading: home teaser; cards: service sections;
   captions: service programmes; controls: contact tabs; viewer: offer modal.
   Responsive rules adjust the layout while retaining readable text sizes. */
.success-page { --story-radius: 22px; }
.success-page svg { width: 21px; height: 21px; flex-shrink: 0; vertical-align: middle; }
.success-page button { cursor: pointer; font-family: inherit; }
.success-page [hidden] { display: none !important; }
.success-page a:focus-visible, .success-page button:focus-visible, .success-page video:focus-visible { outline: 3px solid #0F86B5; outline-offset: 5px; }
.success-hero { max-width: 1240px; margin: auto; padding: 76px 48px 84px; display: grid; grid-template-columns: 1.2fr 1fr; gap: 90px; align-items: center; }
.success-hero.is-solo { grid-template-columns: 1fr; }
.success-hero h1 { color: var(--ink); margin: 25px 0; font-weight: 800; font-size: var(--type-page-title); line-height: 1.08; letter-spacing: -2px; }
.success-hero h1 > span { color: var(--navy); }
.success-dot { color: var(--yellow); }
.success-hero-copy > p { color: var(--body); max-width: 450px; margin: 0 0 29px; font-size: var(--type-lead); line-height: 1.7; }
.success-hero .btn, .success-cta .btn { gap: 15px; display: inline-flex; align-items: center; justify-content: center; white-space: normal; line-height: 1.5; }
.success-hero-note { display: flex; align-items: center; gap: 10px; color: var(--body); margin-top: 26px; font-size: 14px; line-height: 1.5; }
.success-hero-note .pip { width: 7px; height: 7px; background: var(--yellow); border-radius: 50%; }
.success-feature { padding: 17px; border: 1px solid var(--border-2); border-radius: 28px; background: white; box-shadow: 0 22px 60px #3f3a3410; transform: rotate(2deg); }
.success-feature-label, .success-feature-footer { display: flex; align-items: center; justify-content: space-between; padding: 0 4px 14px; font-weight: 700; font-size: var(--type-label); line-height: 1.5; }
.success-feature-label { text-transform: uppercase; letter-spacing: 1.5px; }
.success-feature-label span { color: var(--muted); font-size: var(--type-label); }
.success-feature-footer { padding: 15px 4px 1px; font-weight: 400; font-size: var(--type-label); }
.success-feature > a { display: block; }
.success-feature .story-visual { aspect-ratio: 4 / 4.7; border-radius: 15px; }
.success-feature .story-play { top: 50%; }
.success-feed { border-top: 1px solid var(--border); padding: 70px 48px 80px; max-width: 1240px; margin: auto; scroll-margin-top: 100px; }
.success-feed-heading { display: flex; justify-content: space-between; align-items: end; gap: 25px; }
.success-feed h2 { font-weight: 800; color: var(--ink); margin: 16px 0 0; font-size: var(--type-section-title); letter-spacing: -1.2px; line-height: 1.12; }
.success-instagram { display: flex; align-items: center; gap: 9px; white-space: nowrap; color: var(--body); padding-bottom: 4px; font-size: var(--type-label); font-weight: 700; text-decoration: none; }
.success-instagram:hover { color: var(--navy); }
.success-intro { margin: 17px 0 29px; color: var(--body); font-size: 16px; line-height: 1.7; }
.success-feed-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 15px; min-height: 44px; }
.success-filters { display: flex; gap: 8px; flex-wrap: wrap; }
.success-filters button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 17px; border: 1px solid var(--border-2); border-radius: 30px; background: transparent; color: var(--body); min-height: 44px; font-size: var(--type-control); font-weight: 700; }
.success-filters button[aria-pressed="true"] { background: var(--navy); color: white; border-color: var(--navy); }
.success-filters button span { opacity: .75; font-size: var(--type-label); }
.success-filters svg { width: 16px; height: 16px; }
.success-count { color: var(--body); font-size: var(--type-label); margin-left: auto; }
.success-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 27px; margin-top: 24px; }
.success-unavailable { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; margin-top: 24px; padding: 40px; border: 1px dashed var(--border-2); border-radius: var(--story-radius); background: white; }
.success-unavailable p, .success-noscript { margin: 0; color: var(--body); font-size: 16px; line-height: 1.7; }
.success-unavailable .btn { display: inline-flex; align-items: center; gap: 10px; }
.story-card { display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: var(--story-radius); overflow: hidden; background: white; transition: box-shadow .2s, transform .2s; }
.story-card:hover { box-shadow: 0 12px 30px #3f3a3410; transform: translateY(-4px); }
.story-account { display: flex; align-items: center; gap: 10px; padding: 15px; }
.story-avatar { position: relative; display: grid; place-items: center; width: 34px; height: 34px; flex-shrink: 0; border-radius: 50%; background: var(--navy); color: white; font-size: 25px; font-weight: 800; line-height: 1; }
.story-account > div { display: flex; flex-direction: column; gap: 3px; flex: 1; }
.story-account strong { color: var(--ink); font-size: var(--type-control); font-weight: 700; line-height: 1.4; }
.story-account div > span { color: var(--body); font-size: var(--type-label); line-height: 1.5; }
.story-account > svg { width: 18px; height: 18px; }
.story-card > a { display: block; }
.story-visual { aspect-ratio: 4 / 5; position: relative; overflow: hidden; isolation: isolate; color: white; background: var(--navy); }
.story-visual > img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; z-index: -2; }
.story-visual.has-photo::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, #10163852 0%, #10163800 28%, #10163800 70%, #10163866 100%); }
.story-format { position: absolute; top: 16px; left: 16px; display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 20px; background: #10163899; color: white; font-size: var(--type-label); font-weight: 700; line-height: 1.4; }
.story-format svg { width: 14px; height: 14px; }
.story-service { position: absolute; left: 16px; bottom: 16px; max-width: calc(100% - 32px); display: inline-flex; align-items: center; gap: 7px; padding: 6px 11px; border-radius: 20px; background: #ffffffec; color: var(--ink); font-size: var(--type-label); font-weight: 700; line-height: 1.4; }
.story-service::before { content: ''; flex-shrink: 0; width: 8px; height: 8px; border-radius: 50%; background: var(--service-color, var(--yellow)); }
.story-play { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); display: grid; place-items: center; width: 54px; height: 54px; background: #ffffff25; border: 1px solid #ffffffb0; border-radius: 50%; backdrop-filter: blur(5px); }
.story-play svg { width: 25px; height: 25px; fill: currentColor; }
.story-caption { display: flex; flex-direction: column; flex: 1; padding: 19px; }
.story-caption p { margin: 0 0 12px; color: var(--body); font-size: var(--type-detail); line-height: 1.6; white-space: pre-line; overflow-wrap: anywhere; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
.story-tags { color: var(--navy); display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; margin-bottom: 14px; font-size: var(--type-label); line-height: 1.5; overflow-wrap: anywhere; }
.story-read { display: flex; align-items: center; justify-content: space-between; min-height: 44px; margin-top: auto; padding-top: 12px; padding-top: 12px; border-top: 1px solid var(--border); font-weight: 700; color: var(--ink); font-size: var(--type-control); line-height: 1.5; }
.story-read svg { width: 17px; }
/* Chargement : squelettes au format final (pas de décalage de mise en page). */
.story-card.is-skeleton:hover { box-shadow: none; transform: none; }
.is-skeleton .story-avatar { background: #ece8e1; }
.story-visual.is-skeleton, .is-skeleton .story-visual { background: linear-gradient(100deg, #ece8e1 30%, #f6f3ee 50%, #ece8e1 70%) 0 0 / 200% 100%; animation: success-shimmer 1.6s ease-in-out infinite; }
.skeleton-line { display: block; height: 10px; margin: 5px 0; border-radius: 5px; background: #ece8e1; }
.skeleton-line.short { width: 55%; }
.is-skeleton .story-caption { padding-bottom: 26px; }
@keyframes success-shimmer { from { background-position: 100% 0; } to { background-position: -100% 0; } }
.success-cta { margin: 0 auto 85px; max-width: 1144px; padding: 50px; background: var(--navy); color: white; border-radius: 24px; display: flex; align-items: center; justify-content: space-between; gap: 35px; }
.success-cta .eyebrow span:last-child { color: var(--navy-soft); }
.success-cta h2 { line-height: 1.2; margin: 19px 0 15px; font-size: 26px; font-weight: 800; letter-spacing: -.6px; }
.success-cta p { color: #e1e3f2; margin: 0; font-size: 16.5px; line-height: 1.7; }
.success-cta .btn { flex-shrink: 0; }
.story-dialog { padding: 0; border: 0; border-radius: 24px; width: min(880px, calc(100% - 32px)); max-height: calc(100dvh - 40px); background: var(--bg); color: var(--ink); overscroll-behavior: contain; }
.story-dialog::backdrop { background: #111633b8; backdrop-filter: blur(6px); }
.story-dialog-close { position: absolute; right: 13px; top: 13px; z-index: 3; width: 44px; height: 44px; border-radius: 50%; background: white; color: var(--ink); border: 1px solid var(--border); }
.story-dialog-content { display: grid; grid-template-columns: 1fr 1fr; }
.story-dialog-media { position: relative; display: flex; align-items: center; min-width: 0; overflow: hidden; background: var(--navy); }
.story-dialog-media .story-visual { width: 100%; }
.story-dialog-media .story-play, .story-dialog-media .story-service { display: none; }
.story-dialog-media.has-video { display: flex; align-items: center; background: #0b0f2a; }
.story-dialog-media video { display: block; width: 100%; height: min(680px, calc(100dvh - 40px)); object-fit: contain; background: #0b0f2a; }
.story-dialog-copy { align-self: center; padding: 65px 30px 35px; min-width: 0; }
.story-dialog-copy .eyebrow span:last-child { font-size: 12.5px; letter-spacing: 1.5px; }
.story-dialog-copy h2 { line-height: normal; margin: 18px 0 6px; font-size: var(--type-dialog-title); font-weight: 800; letter-spacing: -.5px; overflow-wrap: anywhere; }
.story-dialog-copy p { font-size: var(--type-body); line-height: 1.7; }
.story-dialog-copy .story-dialog-date { margin: 0 0 18px; color: var(--body); font-size: var(--type-label); }
.story-dialog-caption { white-space: pre-line; overflow-wrap: anywhere; }
.story-dialog-copy .story-tags { margin-top: 0; }
.story-dialog-copy .story-dialog-note { color: var(--body); font-size: var(--type-label); line-height: 1.6; }
.story-dialog-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.story-dialog-copy .btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; white-space: normal; line-height: 1.5; }
.story-dialog-copy .btn svg { width: 18px; height: 18px; }
@media (max-width: 1000px) {
  .success-hero { gap: 45px; padding: 60px 28px; }
  .success-feed { padding: 55px 28px; }
  .success-grid { gap: 18px; }
  .success-cta { margin: 0 28px 60px; padding: 36px; }
}
@media (max-width: 880px) {
  .success-hero { grid-template-columns: 1fr 1fr; gap: 32px; }
  .success-hero.is-solo { grid-template-columns: 1fr; }
  .success-feature { padding: 12px; }
  .success-feature .story-visual { aspect-ratio: 3 / 4.7; }
  .success-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .success-feed-heading { align-items: start; flex-direction: column; gap: 15px; }
  .success-cta { align-items: start; flex-direction: column; }
  .success-feed-toolbar { align-items: start; flex-direction: column; }
  .success-count { margin-left: 0; }
}
@media (max-width: 760px) {
  .story-dialog-content { grid-template-columns: 1fr; }
  .story-dialog-media video { height: min(560px, 70dvh); }
}
@media (max-width: 560px) {
  .success-hero { grid-template-columns: 1fr; padding: 42px 20px 50px; gap: 36px; }
  .success-feature { max-width: 370px; width: calc(100% - 12px); margin: auto; }
  .success-feature .story-visual { aspect-ratio: 4 / 5; }
  .success-feed { padding: 40px 20px; }
  .success-grid { grid-template-columns: 1fr; gap: 25px; }
  .success-filters { gap: 6px; }
  .success-filters button { padding: 10px 12px; gap: 5px; }
  .success-filters button span { display: none; }
  .success-unavailable { padding: 28px 24px; }
  .story-account { padding: 15px 19px; }
  .success-cta { margin: 0 20px 50px; padding: 30px 24px; }
  .success-cta .btn { white-space: normal; }
  .story-dialog-copy { padding: 25px; }
}
@media (max-width: 480px) {
  .success-hero h1, .success-feed h2 { letter-spacing: -1px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .success-page *, .success-page *::before, .success-page *::after { animation: none !important; transition: none !important; }
}
