/* Réalisations CHOSTE — complète assets/styles.css (+ blog/blog.css sur les pages /realisations/) */

/* ---------- Maquette navigateur + téléphone ---------- */
.rl-shot { position: relative; padding: 0 0 22px 0; }
.rl-browser { position: relative; border-radius: 14px; overflow: hidden; background: #fff;
  border: 1px solid var(--line, #ececf2); box-shadow: 0 18px 44px rgba(10,10,30,.12); }
.rl-browser-bar { display: flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; background: #f3f3f7; border-bottom: 1px solid var(--line, #ececf2); }
.rl-browser-bar i { width: 9px; height: 9px; border-radius: 50%; background: #ff5f57; display: block; }
.rl-browser-bar i:nth-child(2) { background: #febc2e; }
.rl-browser-bar i:nth-child(3) { background: #28c840; }
.rl-browser-bar span { margin-left: 10px; flex: 1; max-width: 260px; height: 18px; border-radius: 6px; background: #fff; border: 1px solid var(--line, #ececf2);
  font-size: 11px; line-height: 16px; color: var(--muted-2, #8a8a98); padding: 0 8px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-weight: 500; }
.rl-browser img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
.rl-phone { position: absolute; right: 4%; bottom: 0; width: 23%; min-width: 74px; border-radius: 18px; padding: 5px; background: #0a0a0a;
  box-shadow: 0 18px 40px rgba(10,10,30,.32); }
.rl-phone img { width: 100%; height: auto; aspect-ratio: 9 / 19; object-fit: cover; object-position: top; border-radius: 13px; }

/* ---------- Section accueil ---------- */
.rl-home-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.rl-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line, #ececf2); border-radius: var(--radius-lg, 28px);
  padding: 22px 22px 26px; box-shadow: var(--shadow-sm); transition: transform .25s, box-shadow .25s; color: inherit; }
.rl-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.rl-card .rl-shot { margin-bottom: 18px; }
.rl-card-sector { font-size: 12.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--primary, #6d28d9); }
.rl-card h3 { font-size: 1.45rem; margin: 6px 0 8px; }
.rl-card p { color: var(--muted, #5a5a6a); font-size: 15.5px; line-height: 1.6; flex: 1; }
.rl-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0 16px; padding: 0; list-style: none; }
.rl-chips li { font-size: 12.5px; font-weight: 600; padding: 5px 10px; border-radius: 999px; background: var(--bg-soft, #f4f4f8); color: var(--ink-2, #1a1a1a); }
.rl-card-link { font-weight: 700; font-size: 15px; background: linear-gradient(90deg, var(--primary, #6d28d9), var(--primary-2, #ec4899));
  -webkit-background-clip: text; background-clip: text; color: transparent; }
.rl-home-more { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-top: 44px; }

@media (max-width: 1000px) {
  .rl-home-grid { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; }
}

/* ---------- Page liste /realisations/ ---------- */
.rl-list { padding: 56px 16px 40px; }
.rl-list-grid { display: grid; grid-template-columns: 1fr; gap: 36px; }
.rl-post { display: grid; grid-template-columns: 1.15fr 1fr; gap: 44px; align-items: center; background: #fff; color: inherit;
  border: 1px solid var(--line, #ececf2); border-radius: var(--radius-lg, 28px); padding: 34px; box-shadow: var(--shadow-sm); transition: transform .25s, box-shadow .25s; }
.rl-post:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.rl-post:nth-child(even) .rl-shot { order: 2; }
.rl-post h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); line-height: 1.15; margin: 10px 0 12px; }
.rl-post p { color: var(--muted, #5a5a6a); line-height: 1.65; }
.rl-post .blog-card-more { display: inline-block; margin-top: 4px; }
@media (max-width: 860px) {
  .rl-post { grid-template-columns: 1fr; gap: 22px; padding: 20px 18px 26px; }
  .rl-post:nth-child(even) .rl-shot { order: 0; }
}

/* ---------- Page projet ---------- */
.rl-hero-shot { max-width: 1040px; margin: -8px auto 0; padding: 0 16px; position: relative; z-index: 2; }
.rl-facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin: 40px 0 8px; border: 1px solid var(--line, #ececf2);
  border-radius: var(--radius, 18px); background: #fff; overflow: hidden; }
.rl-facts div { padding: 16px 18px; border-right: 1px solid var(--line, #ececf2); }
.rl-facts div:last-child { border-right: 0; }
.rl-facts dt { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; font-weight: 700; color: var(--muted-2, #8a8a98); margin-bottom: 4px; }
.rl-facts dd { margin: 0; font-weight: 700; font-size: 15px; line-height: 1.4; color: var(--ink, #0a0a0a); }
.rl-facts dd a { color: var(--primary, #6d28d9); }
@media (max-width: 720px) {
  .rl-facts { grid-template-columns: 1fr 1fr; }
  .rl-facts div:nth-child(2) { border-right: 0; }
  .rl-facts div:nth-child(-n+2) { border-bottom: 1px solid var(--line, #ececf2); }
}
.rl-figure { margin: 2em 0; }
.rl-figure .rl-browser img { aspect-ratio: 16 / 10; }
.rl-figure figcaption { font-size: .92rem; color: var(--muted, #5a5a6a); margin-top: 10px; text-align: center; line-height: 1.5; }
.rl-checks { list-style: none; padding-left: 0 !important; }
.rl-checks li { position: relative; padding-left: 32px; }
.rl-checks li::before { content: "✓"; position: absolute; left: 0; top: 1px; width: 22px; height: 22px; border-radius: 50%; font-size: 13px; font-weight: 800;
  display: flex; align-items: center; justify-content: center; color: #fff; background: linear-gradient(135deg, var(--primary, #6d28d9), var(--primary-2, #ec4899)); }
.rl-visit { display: flex; flex-wrap: wrap; gap: 12px; margin: 1.6em 0 0; }
.blog-prose .rl-visit a { text-decoration: none; color: #fff; }
.blog-prose .rl-visit a.btn-secondary { color: var(--ink, #0a0a0a); }
.blog-prose .rl-visit a.btn-secondary:hover { color: #fff; }
.rl-related { margin-top: 64px; }
.rl-related h2 { font-size: 1.6rem; font-weight: 800; margin-bottom: 18px; }
.rl-related-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.rl-related-grid .rl-card { padding: 16px 16px 20px; border-radius: var(--radius, 18px); }
.rl-related-grid .rl-card h3 { font-size: 1.15rem; }
.rl-related-grid .rl-phone { display: none; }
.rl-related-grid .rl-shot { padding-bottom: 0; margin-bottom: 14px; }
@media (max-width: 640px) { .rl-related-grid { grid-template-columns: 1fr; } }

/* ---------- Page projet : mise en page large (v2) ---------- */
.rl-wide .blog-title { max-width: 980px; font-size: clamp(2rem, 4.6vw, 3.4rem); }
.rl-wide .blog-meta { max-width: 820px; }
.rl-hero-shot { max-width: 1240px; padding: 0 24px; }
.rl-case { padding-top: 8px; padding-bottom: 90px; }
.rl-case .rl-facts { margin-top: 48px; }
.rl-intro { font-size: 1.28rem; line-height: 1.7; max-width: 1000px; margin: 48px 0 8px; }
.rl-intro p { margin: 0; }
.rl-row { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: center; margin: 88px 0; }
.rl-row-rev .blog-prose { order: 2; }
.rl-row .blog-prose h2 { margin-top: 0; font-size: clamp(1.6rem, 2.6vw, 2.2rem); }
.rl-row .rl-figure { margin: 0; }
.rl-case .rl-visit { justify-content: center; margin: 24px 0 0; }
.rl-case .rl-visit a { text-decoration: none; }
.rl-case .rl-visit a.btn-primary { color: #fff; }
.rl-case .blog-cta { display: grid; grid-template-columns: 1.4fr auto; align-items: center; gap: 12px 40px; margin-top: 72px; padding: 44px 48px; }
.rl-case .blog-cta .blog-cta-eyebrow, .rl-case .blog-cta h2, .rl-case .blog-cta p { grid-column: 1; }
.rl-case .blog-cta p { margin: 0; }
.rl-case .blog-cta-actions { grid-column: 2; grid-row: 1 / span 3; }
.rl-case .rl-related-grid { grid-template-columns: repeat(2, 1fr); gap: 28px; }
@media (max-width: 900px) {
  .rl-row { grid-template-columns: 1fr; gap: 28px; margin: 56px 0; }
  .rl-row-rev .blog-prose { order: 0; }
  .rl-intro { font-size: 1.12rem; margin-top: 32px; }
  .rl-case .blog-cta { grid-template-columns: 1fr; padding: 30px 22px; }
  .rl-case .blog-cta-actions { grid-column: 1; grid-row: auto; margin-top: 10px; }
  .rl-hero-shot { padding: 0 16px; }
  .rl-case .rl-related-grid { grid-template-columns: 1fr; }
}
.rl-row > *, .rl-related-grid > * { min-width: 0; }
