/* ==========================================================================
 * RESONANCE PAGE (.xr) | v1.9 | 29.11.2026 | live since 29.11.2026 (v1.9: eyebrows removed, mobile preview question first, book cards one column on mobile; v1.8: book cover smaller; v1.7: book page LIVRE FR (menu 207), section 8; v1.6: CONSEIL offer header full width, left-aligned, like the rest of the text; v1.5: CONSEIL uses the homepage offer cards and filter (xh-* classes, styled in home-v3-preview.css) inside .xr, section 6b; v1.4: space above the block when it follows other content, e.g. CONSEIL; v1.1: intro full width, no kicker line; v1.2: preview = one question + example radar, no progress bar; v1.3: also used on CONSEIL for the 4 offer cards)
 * Own file, loaded only on RESONANCE, CONSEIL and LIVRE in FR / EN / JA (menus 137, 138,
 * 207, 102, 108, 206, 170, 171) by module 167 "RESONANCE page loader" (main-top), with
 * js/resonance-radar.js. Not imported by user.css. Seed of the future clean template.
 * RESONANCE: title + intro, one-question preview with example radar, why projects
 * stall (comparison), method (3 stages x 3 phases), cultural intelligence,
 * closing call to action. CONSEIL: the 4 offer cards (section 6).
 * Brand colours, 2-4px corners, light shadows.
 * Headings carry !important margins because mobile-fixes.css (item 4)
 * adds a top margin to every h2/h3 of the article body.
 * To undo: unpublish module 167 and restore article 31 version 31.
 * ========================================================================== */
.xr {
    --xr-teal: var(--brand-primary-teal, #264963);
    --xr-teal-dark: var(--brand-primary-teal-dark, #1e384d);
    --xr-accent: var(--brand-accent-primary, #D5813B);
    --xr-accent-text: #A86024;
    --xr-whiskey: var(--brand-accent-secondary, #E6A174);
    --xr-ink: var(--brand-charcoal, #333333);
    --xr-muted: #5b6875;
    --xr-line: rgba(38, 73, 99, 0.14);
    --xr-soft: #f6f8fa;
    --xr-shadow: 0 6px 18px -12px rgba(38, 73, 99, 0.28);
    color: var(--xr-ink);
}
.xr, .xr *, .xr *::before, .xr *::after { box-sizing: border-box; }
.xr > section { margin: 0 0 3.5rem; }
/* v1.4: when the block follows other content (CONSEIL), keep it clear of the button above */
.xr:not(:first-child) { margin-top: 2.5rem; }

/* Page title (H1 of the template) bigger on this page only */
body.itemid-137 .com-content-article > .page-header h1 {
    font-family: var(--font-primary, 'Crimson Pro', serif);
    font-size: clamp(2.2rem, 1.5rem + 2.4vw, 3.2rem); font-weight: 600; line-height: 1.08;
    color: var(--xr-teal); margin-bottom: 0.25rem;
}

/* Shared */
.xr .xr-eyebrow {
    display: flex; align-items: center; gap: 0.75rem;
    margin: 0 0 0.9rem !important;
    font-family: var(--font-secondary, 'Open Sans', sans-serif);
    font-size: 0.75rem; font-weight: 600; line-height: 1.4;
    letter-spacing: 0.16em; text-transform: uppercase;
    color: var(--xr-accent-text);
}
.xr .xr-eyebrow::before { content: ''; flex: 0 0 28px; height: 1px; background: var(--xr-accent); }
.xr .xr-title {
    margin: 0 0 0.75rem !important; padding: 0 !important;
    font-family: var(--font-primary, 'Crimson Pro', serif);
    font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.2rem); font-weight: 600; line-height: 1.15;
    color: var(--xr-teal);
}
.xr .xr-lead { margin: 0 0 1.75rem; font-size: 1.05rem; line-height: 1.6; color: var(--xr-muted); }
.xr .xr-text { margin: 0 0 1rem; font-size: 1rem; line-height: 1.65; }

/* Buttons */
.xr a.xr-btn {
    position: relative; overflow: hidden;
    display: inline-flex; align-items: center; justify-content: center;
    padding: 0.85rem 1.6rem; border: 1.5px solid var(--xr-teal); border-radius: var(--radius-sharp, 2px);
    font-family: var(--font-secondary, 'Open Sans', sans-serif); font-size: 0.95rem; font-weight: 600; line-height: 1.3;
    letter-spacing: 0.02em; text-decoration: none !important; cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.xr a.xr-btn-primary { background: var(--xr-teal); color: #fff !important; }
.xr a.xr-btn-primary:hover, .xr a.xr-btn-primary:focus-visible { background: var(--xr-teal-dark); color: #fff !important; transform: translateY(-1px); }
.xr a.xr-btn-primary::after {
    content: ''; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.22), transparent);
    transform: skewX(-20deg); transition: left 0.6s ease;
}
.xr a.xr-btn-primary:hover::after { left: 120%; }
.xr a.xr-btn-ghost { background: transparent; color: var(--xr-teal) !important; }
.xr a.xr-btn-ghost:hover, .xr a.xr-btn-ghost:focus-visible { background: rgba(38, 73, 99, 0.06); color: var(--xr-teal) !important; }
.xr a.xr-btn:focus-visible, .xr button:focus-visible, .xr summary:focus-visible { outline: 2px solid var(--xr-accent); outline-offset: 2px; }

/* 1. Intro under the title */
.xr .xr-intro { margin: 0 0 2.5rem; font-size: 1.1rem; line-height: 1.65; }

/* 2. Preview: one question + example radar */
.xr .xr-quiz { container-type: inline-size; }
.xr .xr-quiz-box {
    display: grid; grid-template-columns: minmax(0, 11fr) minmax(0, 9fr);
    grid-template-areas: "q viz" "q cta";
    background: #fff; border: 1px solid var(--xr-line); border-radius: 4px;
    box-shadow: var(--xr-shadow);
}
.xr .xr-quiz-box:not(.is-live) { display: block; padding: 1.5rem; }
.xr .xr-fallback { margin: 0; }
.xr .xr-q { grid-area: q; padding: 2rem; }
.xr .xr-viz { grid-area: viz; padding: 1.75rem 1.5rem 0.5rem; background: var(--xr-soft); border-left: 1px solid var(--xr-line); text-align: center; }
.xr .xr-cta { grid-area: cta; padding: 0.75rem 1.5rem 1.75rem; background: var(--xr-soft); border-left: 1px solid var(--xr-line); text-align: center; }
.xr .xr-q-text { margin: 0 0 1.25rem; min-height: 2.6em; font-family: var(--font-primary, 'Crimson Pro', serif); font-size: 1.4rem; font-weight: 600; line-height: 1.25; color: var(--xr-teal); }
.xr .xr-q-opts { display: grid; gap: 0.6rem; }
.xr button.xr-opt {
    display: flex; align-items: center; gap: 0.75rem; width: 100%;
    padding: 0.85rem 1rem; text-align: left;
    font-family: var(--font-secondary, 'Open Sans', sans-serif); font-size: 0.95rem; line-height: 1.4; color: var(--xr-ink);
    background: #fafbfc; border: 1px solid #dfe4ea; border-radius: var(--radius-sharp, 2px); cursor: pointer;
    transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}
.xr button.xr-opt::before { content: ''; flex: 0 0 8px; height: 8px; border-radius: 50%; background: #c3ccd5; transition: background-color 0.2s ease; }
.xr button.xr-opt:hover { border-color: var(--xr-whiskey); background: #fdf7f2; transform: translateX(2px); }
.xr button.xr-opt.is-on { border-color: var(--xr-teal); background: rgba(38, 73, 99, 0.06); color: var(--xr-teal); font-weight: 600; }
.xr button.xr-opt.is-on::before { background: var(--xr-accent); }
.xr .xr-viz-title { margin: 0 0 0.25rem; font-family: var(--font-primary, 'Crimson Pro', serif); font-size: 1.2rem; font-weight: 600; line-height: 1.25; color: var(--xr-teal); }
.xr .xr-tag { display: inline-block; margin-right: 0.5rem; padding: 0.1rem 0.45rem; vertical-align: 0.15em; font-family: var(--font-secondary, 'Open Sans', sans-serif); font-size: 0.68rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: #3d2410; background: var(--xr-whiskey); border-radius: var(--radius-sharp, 2px); }
.xr .xr-viz-sub { margin: 0; min-height: 1.4em; font-size: 0.88rem; font-weight: 600; color: var(--xr-accent-text); }
.xr .xr-radar { display: block; width: 100%; max-width: 380px; height: auto; margin: 0.5rem auto 0; overflow: visible; }
.xr .xr-ring { fill: none; stroke: rgba(38, 73, 99, 0.14); stroke-width: 1; }
.xr .xr-ring-mid { stroke: rgba(213, 129, 59, 0.45); stroke-dasharray: 3 4; }
.xr .xr-axis { stroke: rgba(38, 73, 99, 0.14); stroke-width: 1; }
.xr .xr-shape { fill: rgba(213, 129, 59, 0.18); stroke: var(--xr-accent); stroke-width: 2; stroke-linejoin: round; opacity: 0; transition: opacity 0.4s ease; }
.xr .xr-shape.is-on { opacity: 1; }
.xr .xr-dot { fill: var(--xr-teal); stroke: #fff; stroke-width: 2; opacity: 0; transition: opacity 0.3s ease; }
.xr .xr-dot.is-on { opacity: 1; }
.xr .xr-label { font-family: var(--font-secondary, 'Open Sans', sans-serif); font-size: 13px; font-weight: 600; fill: #7a8794; transition: fill 0.3s ease; }
.xr .xr-label.is-on { fill: var(--xr-teal); }
.xr a.xr-cta-btn { width: 100%; }
@container (max-width: 640px) {
    .xr .xr-quiz-box { grid-template-columns: minmax(0, 1fr); grid-template-areas: "viz" "q" "cta"; }
    .xr .xr-viz { border-left: 0; border-bottom: 1px solid var(--xr-line); padding: 1.25rem 1rem 0.5rem; }
    .xr .xr-radar { max-width: 340px; }
    .xr .xr-q { padding: 1.5rem 1.25rem; }
    .xr .xr-cta { border-left: 0; padding: 1.25rem; border-top: 1px solid var(--xr-line); }
    .xr .xr-q-text { min-height: 0; font-size: 1.25rem; }
}

/* 3. Why projects stall: existing comparison block, brand colours, flat */
.xr .xr-why .comparison-container { margin-top: 1.5rem !important; }
.xr .xr-why .comparison-container .comparison-wrong,
.xr .xr-why .comparison-container .comparison-right {
    border-radius: 4px !important; box-shadow: none !important; border: 1px solid var(--xr-line) !important;
}
.xr .xr-why .comparison-container .comparison-wrong { border-top: 3px solid #9aa5b1 !important; background: #fafbfc !important; }
.xr .xr-why .comparison-container .comparison-right { border-top: 3px solid var(--xr-accent) !important; background: #fff !important; }
.xr .xr-why .comparison-wrong .comparison-header i,
.xr .xr-why .comparison-wrong .comparison-list i { color: #8a96a3 !important; }
.xr .xr-why .comparison-right .comparison-header i,
.xr .xr-why .comparison-right .comparison-list i { color: var(--xr-accent) !important; }

/* 4. Method: 3 stages x 3 phases */
.xr .xr-method { container-type: inline-size; }
.xr .xr-stage { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 1.5rem; padding: 1.75rem 0; border-top: 1px solid var(--xr-line); }
.xr .xr-stage:last-child { border-bottom: 1px solid var(--xr-line); }
.xr .xr-stage-head { border-left: 3px solid var(--xr-teal); padding-left: 1rem; }
.xr .xr-stage:nth-child(2) .xr-stage-head { border-left-color: var(--xr-accent); }
.xr .xr-stage:nth-child(3) .xr-stage-head { border-left-color: var(--xr-whiskey); }
.xr .xr-stage-ph { margin: 0 0 0.3rem; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--xr-accent-text); }
.xr .xr-stage-name { margin: 0 0 0.6rem !important; padding: 0 !important; font-family: var(--font-primary, 'Crimson Pro', serif); font-size: 1.5rem; font-weight: 600; line-height: 1.2; color: var(--xr-teal); }
.xr .xr-stage-text { margin: 0; font-size: 0.92rem; line-height: 1.55; color: var(--xr-muted); }
.xr .xr-phases { display: grid; gap: 0.75rem; }
.xr .xr-phase { padding: 1rem 1.1rem; background: #fff; border: 1px solid var(--xr-line); border-radius: 4px; transition: border-color 0.2s ease; }
.xr .xr-phase:hover { border-color: rgba(38, 73, 99, 0.3); }
.xr .xr-phase-name { display: flex; align-items: baseline; gap: 0.6rem; margin: 0 0 0.3rem !important; padding: 0 !important; font-family: var(--font-primary, 'Crimson Pro', serif); font-size: 1.2rem; font-weight: 600; line-height: 1.25; color: var(--xr-teal); }
.xr .xr-phase-n { font-size: 0.95rem; color: var(--xr-accent-text); }
.xr .xr-phase-result { margin: 0; font-size: 0.93rem; line-height: 1.55; }
.xr .xr-phase details { margin-top: 0.5rem; }
.xr .xr-phase summary { display: inline-block; cursor: pointer; font-size: 0.85rem; font-weight: 600; color: var(--xr-teal); list-style: none; border-bottom: 1px solid var(--xr-whiskey); }
.xr .xr-phase summary::-webkit-details-marker { display: none; }
.xr .xr-phase summary::after { content: ' +'; }
.xr .xr-phase details[open] summary::after { content: ' −'; }
.xr .xr-phase details ul { margin: 0.6rem 0 0 !important; padding-left: 1.1rem !important; font-size: 0.9rem; line-height: 1.55; }
.xr .xr-phase details li { margin: 0 0 0.3rem; }
@container (max-width: 640px) {
    .xr .xr-stage { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
}

/* 5. Cultural intelligence */
.xr .xr-culture { padding: 1.75rem 2rem; background: var(--xr-soft); border-left: 3px solid var(--xr-accent); }
.xr .xr-culture .xr-text:last-child { margin-bottom: 0; }

/* 6. Offers (CONSEIL) */
.xr .xr-offers { container-type: inline-size; }
.xr .xr-offer-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
@container (max-width: 560px) { .xr .xr-offer-grid { grid-template-columns: minmax(0, 1fr); } }
.xr .xr-offer {
    position: relative; display: flex; flex-direction: column;
    padding: 1.6rem 1.5rem 1.4rem; background: #fff;
    border: 1px solid var(--xr-line); border-radius: 4px;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.xr .xr-offer::before {
    content: ''; position: absolute; top: -1px; left: -1px; right: -1px; height: 3px;
    background: linear-gradient(90deg, var(--xr-teal), var(--xr-accent));
    transform: scaleX(0); transform-origin: left; transition: transform 0.35s ease;
}
.xr .xr-offer:hover { transform: translateY(-2px); border-color: rgba(38, 73, 99, 0.25); box-shadow: var(--xr-shadow); }
.xr .xr-offer:hover::before { transform: scaleX(1); }
.xr .xr-offer-when { margin: 0 0 0.4rem; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--xr-accent-text); }
.xr .xr-offer-name { margin: 0 0 0.6rem !important; padding: 0 !important; font-family: var(--font-primary, 'Crimson Pro', serif); font-size: 1.45rem; font-weight: 600; line-height: 1.2; color: var(--xr-teal); }
.xr .xr-offer-text { flex: 1 1 auto; margin: 0 0 1.1rem; font-size: 0.93rem; line-height: 1.55; color: var(--xr-ink); }
.xr a.xr-offer-link { align-self: flex-start; font-weight: 600; font-size: 0.92rem; color: var(--xr-teal) !important; text-decoration: none !important; border-bottom: 1px solid var(--xr-whiskey); padding-bottom: 2px; }
.xr a.xr-offer-link:hover { color: var(--xr-accent-text) !important; border-bottom-color: var(--xr-accent); }
.xr .xr-offer-text:has(+ .xr-offer-list) { flex: 0 0 auto; margin-bottom: 0.75rem; }
.xr .xr-offer-list { flex: 1 1 auto; margin: 0 0 1.25rem !important; padding-left: 1.1rem !important; font-size: 0.9rem; line-height: 1.55; }
.xr .xr-offer-list li { margin: 0 0 0.4rem; }
.xr .xr-offer a.xr-btn { align-self: flex-start; padding: 0.7rem 1.3rem; font-size: 0.9rem; }

/* 6b. CONSEIL (v1.5): the homepage situation filter and offer cards, reused inside .xr.
   Their look comes from home-v3-preview.css (loaded site-wide by user.css). The .xh
   wrapper is NOT used here: its body:has(.xh) rules would hide the sidebar and the page
   title. These rules only undo the article defaults (list bullets, paragraph and heading
   margins, link colours) that the .xh wrapper normally resets. Filter: resonance-radar.js. */
/* v1.6: undo the homepage's centred 48rem header so the text uses the full column */
.xr .xr-srv .xh-srv-head { max-width: none; margin: 0 0 1.5rem; text-align: left; }
.xr .xr-srv .xh-srv-head .xr-lead { max-width: none; margin: 0; }
.xr .xr-srv .xh-filter { justify-content: flex-start; }
.xr .xr-srv .xh-filter button { font-family: var(--font-secondary, 'Open Sans', sans-serif); }
.xr .xr-srv .xh-grid-2 { gap: 1.25rem; }
.xr .xr-srv .xh-card p { margin-top: 0; }
.xr .xr-srv .xh-card h3 { margin: 0 0 0.375rem !important; padding: 0 !important; font-family: var(--font-primary, 'Crimson Pro', serif); font-weight: 700; }
.xr .xr-srv .xh-card ul { list-style: none; margin: 0 0 1.25rem !important; padding: 0.75rem 0 0 !important; }
.xr .xr-srv .xh-card li { margin: 0; }
.xr .xr-srv .xh-card li + li { margin-top: 0.4rem; }
.xr .xr-srv .xh-card-foot .xh-btn-srv { color: var(--xr-teal) !important; text-decoration: none !important; }
.xr .xr-srv .xh-card-foot .xh-btn-srv:hover, .xr .xr-srv .xh-card:hover .xh-btn-srv { color: #fff !important; }
.xr .xr-srv .xh-card { scroll-margin-top: 6rem; }

/* 6c. CONSEIL (v1.5): "Is the method for you?" reuses the comparison block of section 3 */
.xr .xr-fit .comparison-list li { margin-bottom: 0.5rem; }

/* 8. LIVRE (v1.7): book page. Hero (text + cover), quote band, 4 cards (reuse .xr-offer),
   closing block (reuse .xr-close). The Joomla page title stays the H1 (since 29.11);
   the hero title is an h2 (.xr-book-title). */
.xr .xr-book-hero { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 2.5rem; align-items: center; }
.xr .xr-book-title {
    margin: 0 0 1rem !important; padding: 0 !important;
    font-family: var(--font-primary, 'Crimson Pro', serif);
    font-size: clamp(2.1rem, 1.4rem + 2.2vw, 3rem); font-weight: 700; line-height: 1.08;
    color: var(--xr-teal);
}
.xr .xr-book-title span { color: var(--xr-accent-text); }
.xr .xr-book-cover img { display: block; width: 100%; max-width: 240px; height: auto; margin: 0 auto; }
.xr .xr-book-facts { display: flex; flex-wrap: wrap; gap: 0.35rem 1.25rem; margin: 1.25rem 0 0 !important; padding: 0 !important; list-style: none; font-size: 0.85rem; color: var(--xr-muted); }
.xr .xr-book-facts li { margin: 0; }
.xr .xr-quote { padding: 2.25rem 2rem; background: var(--xr-soft); border-left: 3px solid var(--xr-accent); }
.xr .xr-quote blockquote { margin: 0 0 1.25rem; padding: 0; border: 0; font-family: var(--font-primary, 'Crimson Pro', serif); font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.1rem); font-weight: 600; line-height: 1.2; color: var(--xr-teal); }
.xr .xr-quote blockquote span { color: var(--xr-accent-text); }
.xr .xr-quote .xr-text:last-child { margin-bottom: 0; }
.xr .xr-offer-ico { margin: 0 0 0.75rem; font-size: 1.15rem; color: var(--xr-accent-text); }
@media (max-width: 768px) {
    .xr .xr-book-hero { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
    .xr .xr-book-cover { order: -1; }
    .xr .xr-book-cover img { max-width: 170px; }
    .xr .xr-quote { padding: 1.5rem 1.25rem; }
}

/* 7. Closing call to action */
.xr .xr-close { padding: 2.5rem 2rem; text-align: center; background: var(--xr-teal); color: #fff; border-radius: 4px; }
.xr .xr-close .xr-title { color: var(--xr-whiskey); }
.xr .xr-close .xr-text { max-width: 60ch; margin: 0 auto 1.5rem; color: rgba(255, 255, 255, 0.92); }
.xr .xr-close .xr-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; margin: 0; }
.xr .xr-close a.xr-btn-primary { background: var(--xr-whiskey); border-color: var(--xr-whiskey); color: #333 !important; }
.xr .xr-close a.xr-btn-primary:hover { background: #ecb48f; color: #333 !important; }
.xr .xr-close a.xr-btn-ghost { border-color: rgba(255, 255, 255, 0.6); color: #fff !important; }
.xr .xr-close a.xr-btn-ghost:hover { background: rgba(255, 255, 255, 0.1); color: #fff !important; }

/* Reveal on scroll (added by resonance-radar.js; content stays visible without JS) */
.xr .xr-reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.6s ease, transform 0.6s ease; }
.xr .xr-reveal.is-in { opacity: 1; transform: none; }

@media (max-width: 768px) {
    .xr > section { margin-bottom: 2.5rem; }
    .xr .xr-culture, .xr .xr-close { padding: 1.5rem 1.25rem; }
    .xr .xr-close a.xr-btn { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) {
    .xr *, .xr *::before, .xr *::after { transition: none !important; animation: none !important; }
    .xr .xr-reveal { opacity: 1; transform: none; }
}

/* 9. v1.9 (29.11, Xavier's mobile review)
   a. The small orange eyebrow above each title repeated the title: hidden everywhere.
   b. Mobile preview: the question comes first, then the example radar, then the button.
   c. Book page: the 4 cards had no size container, so the one-column rule of section 6
      never applied and they stayed in two tall, narrow columns on phones. */
.xr .xr-eyebrow { display: none !important; }
@container (max-width: 640px) {
    .xr .xr-quiz-box { grid-template-areas: "q" "viz" "cta"; }
    .xr .xr-viz { border-bottom: 0; border-top: 1px solid var(--xr-line); }
    .xr .xr-cta { border-top: 0; padding-top: 0.5rem; }
}
.xr .xr-book-learn { container-type: inline-size; }
