:root {
--lr-modal-primary: #05386b;
--lr-modal-secondary: #03213e;
--lr-modal-orange: #f6b26b;
--lr-modal-bleu: #04d0d0;
--lr-modal-mauve: #df40df;
--lr-modal-vert: #b0f2b6;
--lr-modal-rouge: #ff6b65;
--lr-modal-emerald: #059669;
--lr-border-color: #e2e8f0;
--lr-shell-radius: 36px;
--lr-shell-padding: 16px;
--lr-bento-radius: 24px;
--lr-bento-gap: 20px;
}

.lr-modal,
.lr-modal * {
box-sizing: border-box;
font-family: 'Quicksand', -apple-system, BlinkMacSystemFont, sans-serif;
}

#caseStudyModal.modal-overlay {
position: fixed !important;
inset: 0 !important;
width: 100vw !important;
height: 100vh !important;
background: rgba(5, 56, 107, 0.65) !important;
backdrop-filter: blur(12px) !important;
-webkit-backdrop-filter: blur(12px) !important;
display: none;
align-items: center !important;
justify-content: center !important;
padding: 16px !important;
z-index: 10000 !important;
opacity: 0;
visibility: hidden;
transition: opacity 0.28s ease, visibility 0.28s ease;
}

#caseStudyModal.modal-overlay.is-active {
display: flex !important;
opacity: 1 !important;
visibility: visible !important;
}

.lr-modal-shell {
background: #ffffff;
border-radius: var(--lr-shell-radius);
padding: var(--lr-shell-padding);
box-shadow: 0 24px 64px rgba(5, 56, 107, 0.32);
width: 100%;
max-width: 1140px;
max-height: 92vh;
display: flex;
flex-direction: column;
transform: scale(0.97) translateY(12px);
transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
position: relative;
border: 1px solid rgba(255, 255, 255, 0.95);
overflow: hidden;
}

#caseStudyModal.is-active .lr-modal-shell {
transform: scale(1) translateY(0);
}

.lr-modal-close-btn {
position: absolute;
top: 20px;
right: 20px;
width: 40px;
height: 40px;
border-radius: 50%;
background: #ffffff;
border: 1.5px solid var(--lr-border-color);
color: var(--lr-modal-primary);
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
z-index: 40;
transition: all 0.2s ease;
box-shadow: 0 4px 14px rgba(5, 56, 107, 0.14);
}

.lr-modal-close-btn:hover {
background: var(--lr-modal-primary);
color: #ffffff;
transform: rotate(90deg) scale(1.05);
}

.lr-modal-close-btn:focus-visible {
outline: 2px solid var(--lr-modal-orange);
outline-offset: 2px;
}

.lr-modal-grid {
display: grid;
grid-template-columns: 1.05fr 1.35fr;
gap: var(--lr-bento-gap);
border-radius: calc(var(--lr-shell-radius) - var(--lr-shell-padding));
overflow-y: auto;
max-height: calc(92vh - (var(--lr-shell-padding) * 2));
}

.lr-preview-pane {
background: linear-gradient(155deg, var(--lr-modal-primary) 0%, var(--lr-modal-secondary) 100%);
border-radius: var(--lr-bento-radius);
padding: 28px 22px;
display: flex;
flex-direction: column;
gap: 18px;
position: relative;
overflow: hidden;
min-height: 520px;
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.lr-preview-watermark {
position: absolute;
inset: -10px;
font-size: 1.5rem;
line-height: 1.4;
font-weight: 700;
color: rgba(255, 255, 255, 0.08);
user-select: none;
pointer-events: none;
overflow: hidden;
word-break: normal;
white-space: normal;
z-index: 1;
letter-spacing: -0.015em;
}

.lr-preview-content {
position: relative;
z-index: 2;
display: flex;
flex-direction: column;
gap: 18px;
height: 100%;
}

.lr-preview-glass-card {
background: rgba(255, 255, 255, 0.12);
backdrop-filter: blur(14px);
-webkit-backdrop-filter: blur(14px);
border: 1px solid rgba(255, 255, 255, 0.2);
border-radius: calc(var(--lr-bento-radius) - 6px);
padding: 18px;
box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
}

.lr-tag-sector {
display: inline-flex;
align-items: center;
gap: 8px;
background: rgba(4, 208, 208, 0.2);
color: var(--lr-modal-bleu);
padding: 4px 12px;
border-radius: 999px;
font-size: 0.76rem;
font-weight: 800;
text-transform: uppercase;
letter-spacing: 0.05em;
margin-bottom: 10px;
border: 1px solid rgba(4, 208, 208, 0.35);
}

.lr-alveoles-header {
display: flex;
align-items: center;
gap: 8px;
color: #ffffff;
font-weight: 800;
font-size: 1rem;
margin-bottom: 10px;
}

.lr-alveoles-header svg {
color: var(--lr-modal-orange);
}

.lr-alveoles-cluster {
display: flex;
flex-wrap: wrap;
gap: 8px;
}

.lr-alveole-pill {
display: inline-flex;
align-items: center;
gap: 6px;
background: rgba(255, 255, 255, 0.1);
border: 1px solid rgba(255, 255, 255, 0.2);
color: #ffffff;
padding: 7px 12px;
border-radius: 999px;
font-size: 0.82rem;
font-weight: 700;
backdrop-filter: blur(8px);
}

.lr-alveole-pill svg {
color: var(--lr-modal-vert);
}

.lr-testimonials-wrapper {
margin-top: auto;
display: flex;
flex-direction: column;
gap: 12px;
}

.lr-testimonials-section-header {
display: flex;
flex-direction: column;
gap: 4px;
}

.lr-testimonials-pill-tag {
align-self: flex-start;
display: inline-flex;
align-items: center;
gap: 6px;
background: rgba(223, 64, 223, 0.22);
color: #ffffff;
border: 1px solid rgba(223, 64, 223, 0.4);
padding: 4px 10px;
border-radius: 999px;
font-size: 0.72rem;
font-weight: 800;
letter-spacing: 0.05em;
text-transform: uppercase;
}

.lr-testimonials-title-group {
color: #ffffff;
font-size: 0.96rem;
font-weight: 800;
}

.lr-testimonials-subtitle {
font-size: 0.78rem;
color: rgba(255, 255, 255, 0.75);
line-height: 1.4;
font-weight: 600;
}

.lr-testimonials-tabs {
display: flex;
gap: 8px;
}

.lr-testi-tab-btn {
flex: 1;
background: rgba(246, 178, 107, 0.22);
color: #ffffff;
border: 1px solid rgba(246, 178, 107, 0.45);
padding: 9px 12px;
border-radius: 12px;
font-size: 0.8rem;
font-weight: 800;
cursor: pointer;
text-align: center;
transition: all 0.22s ease;
display: flex;
flex-direction: column;
gap: 2px;
box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
backdrop-filter: blur(10px);
}

.lr-testi-tab-btn span.tab-role {
font-size: 0.7rem;
color: rgba(255, 255, 255, 0.82);
font-weight: 600;
}

.lr-testi-tab-btn:hover {
background: rgba(246, 178, 107, 0.35);
border-color: rgba(246, 178, 107, 0.7);
transform: translateY(-1px);
}

.lr-testi-tab-btn.is-active {
background: var(--lr-modal-orange);
color: #07223d;
border-color: #ffffff;
box-shadow: 0 6px 20px rgba(246, 178, 107, 0.45);
}

.lr-testi-tab-btn.is-active span.tab-role {
color: #3d2305;
font-weight: 700;
}

.lr-testimonial-glass-box {
background: rgba(0, 0, 0, 0.28);
border-radius: 18px;
padding: 16px 18px;
border: 1px solid rgba(255, 255, 255, 0.15);
display: flex;
flex-direction: column;
gap: 10px;
}

.lr-testimonial-top-meta {
display: flex;
align-items: center;
justify-content: space-between;
}

.lr-testimonial-badge-auth {
display: inline-flex;
align-items: center;
gap: 5px;
font-size: 0.7rem;
font-weight: 800;
color: var(--lr-modal-vert);
text-transform: uppercase;
letter-spacing: 0.04em;
}

.lr-testimonial-quote-icon {
color: var(--lr-modal-orange);
opacity: 0.9;
}

.lr-testimonial-text {
font-size: 0.88rem;
color: #ffffff;
line-height: 1.5;
font-style: italic;
font-weight: 600;
transition: opacity 0.15s ease;
}

.lr-testimonial-author-wrapper {
display: flex;
align-items: center;
gap: 10px;
padding-top: 6px;
border-top: 1px dashed rgba(255, 255, 255, 0.15);
}

.lr-testimonial-avatar {
width: 30px;
height: 30px;
border-radius: 50%;
background: rgba(255, 255, 255, 0.15);
border: 1px solid rgba(255, 255, 255, 0.25);
display: flex;
align-items: center;
justify-content: center;
color: var(--lr-modal-vert);
font-size: 0.82rem;
font-weight: 800;
flex-shrink: 0;
}

.lr-testimonial-author-info {
display: flex;
flex-direction: column;
gap: 1px;
transition: opacity 0.15s ease;
}

.lr-testimonial-author {
font-size: 0.82rem;
font-weight: 800;
color: #ffffff;
}

.lr-testimonial-role {
font-size: 0.74rem;
color: var(--lr-modal-vert);
font-weight: 700;
}

.lr-details-pane {
padding: 10px 16px 16px 4px;
display: flex;
flex-direction: column;
gap: 18px;
overflow-y: auto;
}

.lr-modal-breadcrumbs {
display: flex;
align-items: center;
gap: 6px;
font-size: 0.8rem;
font-weight: 700;
color: #64748b;
}

.lr-modal-breadcrumbs span.active {
color: var(--lr-modal-primary);
font-weight: 800;
}

.lr-case-title {
font-size: 1.4rem;
font-weight: 800;
color: var(--lr-modal-primary);
line-height: 1.3;
}

.lr-case-intro-card {
background: rgba(5, 56, 107, 0.04);
border-left: 4px solid var(--lr-modal-primary);
border-radius: 0 14px 14px 0;
padding: 14px 16px;
font-size: 0.92rem;
color: #334155;
line-height: 1.55;
font-weight: 600;
}

.lr-step-block {
display: flex;
flex-direction: column;
gap: 12px;
background: #f8fafc;
border: 1.5px solid var(--lr-border-color);
border-radius: 18px;
padding: 16px 18px;
transition: border-color 0.2s ease;
}

.lr-step-block:hover {
border-color: #96adc1;
}

.lr-step-header {
display: flex;
align-items: center;
gap: 10px;
}

.lr-step-badge {
width: 28px;
height: 28px;
border-radius: 8px;
display: flex;
align-items: center;
justify-content: center;
font-size: 0.82rem;
font-weight: 800;
flex-shrink: 0;
}

.lr-step-badge.constat {
background: rgba(255, 107, 101, 0.15);
color: var(--lr-modal-rouge);
}

.lr-step-badge.bascule {
background: rgba(246, 178, 107, 0.2);
color: #d97706;
}

.lr-step-badge.preuve {
background: rgba(5, 150, 105, 0.15);
color: var(--lr-modal-emerald);
}

.lr-step-title {
font-size: 0.98rem;
font-weight: 800;
color: var(--lr-modal-primary);
}

.lr-step-subtitle {
font-size: 0.86rem;
color: #64748b;
font-style: italic;
font-weight: 600;
}

.lr-step-list {
list-style: none;
display: flex;
flex-direction: column;
gap: 8px;
padding-left: 4px;
margin: 0;
}

.lr-step-item {
display: flex;
align-items: flex-start;
gap: 10px;
font-size: 0.86rem;
line-height: 1.5;
color: #334155;
font-weight: 600;
}

.lr-step-dot {
width: 6px;
height: 6px;
border-radius: 50%;
margin-top: 8px;
flex-shrink: 0;
}

.lr-step-block:nth-child(1) .lr-step-dot { background: var(--lr-modal-rouge); }
.lr-step-block:nth-child(2) .lr-step-dot { background: #d97706; }
.lr-step-block:nth-child(3) .lr-step-dot { background: var(--lr-modal-emerald); }

.lr-modal-footer-bar {
display: flex;
align-items: center;
justify-content: space-between;
gap: 14px;
padding-top: 10px;
border-top: 1px dashed var(--lr-border-color);
margin-top: 4px;
}

.lr-footer-note {
font-size: 0.8rem;
color: #64748b;
font-weight: 700;
}

.lr-btn-action-primary {
background: var(--lr-modal-orange);
color: #07223d;
border: 1px solid rgba(255, 255, 255, 0.3);
padding: 12px 22px;
border-radius: 999px;
font-size: 0.9rem;
font-weight: 800;
cursor: pointer;
display: inline-flex;
align-items: center;
gap: 8px;
box-shadow: 0 6px 18px rgba(246, 178, 107, 0.35);
transition: all 0.2s ease;
text-decoration: none;
}

.lr-btn-action-primary:hover {
background: #f8c287;
transform: translateY(-1px);
box-shadow: 0 8px 22px rgba(246, 178, 107, 0.45);
}

@media (max-width: 900px) {
.lr-modal-grid {
grid-template-columns: 1fr;
gap: 16px;
}
.lr-preview-pane {
min-height: auto;
padding: 22px 16px;
}
.lr-modal-shell {
max-height: 94vh;
padding: 12px;
border-radius: 24px;
}
.lr-modal-footer-bar {
flex-direction: column;
align-items: stretch;
}
.lr-btn-action-primary {
justify-content: center;
}
}
