/**
 * Thelis — Change Management page
 * Prefix : .cm-   ·   Root : .thelis-change
 *
 * Positionnement : "Change Management through Engineered Innovation".
 * Trame méthodologie/offre : hero → the gap → the model (5 piliers) →
 * why Thelis → manifesto → CTA. Charte Thelis (Cormorant / Syne / JetBrains Mono,
 * rouge #E8294A, alternance clair/sombre, barres rouges, dot grids). Autosuffisant.
 */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;0,700;1,300;1,400;1,600&family=Syne:wght@300;400;600;700;800&family=JetBrains+Mono:wght@400;500;700&display=swap');

/* ── TOKENS ─────────────────────────────────────────────────────────────── */
.thelis-change {
    --thelis-ff-display: 'Syne', sans-serif;
    --thelis-ff-mono:    'JetBrains Mono', monospace;
    --thelis-ff-title:   'Cormorant Garamond', Georgia, serif;

    --thelis-red:      #E8294A;
    --thelis-red-dark: #c91e38;
    --thelis-black:    #111118;
    --thelis-white:    #ffffff;
    --thelis-light:    #f7f5f1;
    --thelis-gray:     rgba(17, 17, 24, 0.50);
    --thelis-border:   rgba(17, 17, 24, 0.08);

    --thelis-spring:   cubic-bezier(0.34, 1.56, 0.64, 1);
    --thelis-ease-out: cubic-bezier(0.22, 1, 0.36, 1);

    overflow-x: hidden;
    max-width: none !important;
    padding: 0 !important;
    margin-top: 0 !important;
    font-family: var(--thelis-ff-display);
}

/* Fonds — blindage spécificité */
#primary.thelis-change .cm-hero,
#primary.thelis-change .cm-why,
#primary.thelis-change .cm-cta,
#primary .cm-hero,
#primary .cm-why,
#primary .cm-cta { background: #111118 !important; }

#primary.thelis-change .cm-gap,
#primary.thelis-change .cm-manifesto,
#primary .cm-gap,
#primary .cm-manifesto { background: #ffffff !important; }

#primary.thelis-change .cm-model,
#primary .cm-model { background: #f7f5f1 !important; }

/* ── KEYFRAMES ──────────────────────────────────────────────────────────── */
@keyframes cmBlurUp {
    from { opacity: 0; transform: translateY(48px); filter: blur(14px); }
    to   { opacity: 1; transform: translateY(0);    filter: blur(0);    }
}
@keyframes cmDotDrift {
    0%, 100% { background-position: 0 0; }
    50%      { background-position: 10px -8px; }
}
@keyframes cmRailGrow { from { transform: scaleY(0); } to { transform: scaleY(1); } }

/* ── SHARED ─────────────────────────────────────────────────────────────── */
.cm-label {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    font-family: var(--thelis-ff-mono);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--thelis-red);
    margin-bottom: 24px;
}
.cm-label::before {
    content: '';
    width: 36px; height: 1px;
    background: var(--thelis-red);
    opacity: 0.6;
}
.cm-label--dim { color: #E8294A; }

.cm-section-title {
    font-family: var(--thelis-ff-display) !important;
    font-size: clamp(28px, 4vw, 50px);
    font-weight: 700;
    letter-spacing: -2px;
    line-height: 1.1;
    color: var(--thelis-black) !important;
    margin: 0 0 28px;
}
.cm-section-title--light { color: var(--thelis-white) !important; }

.cm-lead {
    font-family: var(--thelis-ff-display);
    font-size: clamp(16px, 1.6vw, 19px);
    font-weight: 300;
    line-height: 1.75;
    color: var(--thelis-gray);
    max-width: 720px;
}
.cm-lead--light { color: rgba(255, 255, 255, 0.74) !important; }

/* Barre rouge top de section */
.cm-gap::after,
.cm-model::after,
.cm-why::after,
.cm-manifesto::after,
.cm-cta::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--thelis-red), transparent);
    z-index: 3;
}

.cm-gap, .cm-model, .cm-why, .cm-manifesto {
    position: relative;
    padding: 120px 0;
}

/* ════════════════════════════════════════════════
   HERO  (dark)
   ════════════════════════════════════════════════ */
.cm-hero {
    background: var(--thelis-black);
    position: relative;
    padding: 156px 0 120px;
    overflow: hidden;
}
.cm-hero::before {
    content: '';
    position: absolute;
    inset: -5%;
    background-image: radial-gradient(circle, rgba(232, 41, 74, 0.07) 1.2px, transparent 1.2px);
    background-size: 32px 32px;
    pointer-events: none; z-index: 0;
    animation: cmDotDrift 22s ease-in-out infinite;
}
.cm-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 80% 18%, rgba(232, 41, 74, 0.16), transparent 48%);
    pointer-events: none; z-index: 0;
}
.cm-hero .container { position: relative; z-index: 2; }

/* Image de fond optionnelle (change-hero.*) */
.cm-hero__bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.cm-hero__bg img {
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: center right;
    transform: scale(1.04);
    animation: cmHeroZoom 18s ease-out forwards;
}
@keyframes cmHeroZoom { to { transform: scale(1); } }
.cm-hero__veil {
    position: absolute; inset: 0;
    background:
        linear-gradient(90deg, rgba(17,17,24,0.94) 0%, rgba(17,17,24,0.80) 44%, rgba(17,17,24,0.46) 100%),
        linear-gradient(0deg, rgba(17,17,24,0.85) 0%, rgba(17,17,24,0.22) 52%, rgba(17,17,24,0.45) 100%);
}
.cm-hero--has-img::before { opacity: 0.35; }

.cm-breadcrumb {
    display: flex; align-items: center; gap: 10px;
    font-family: var(--thelis-ff-mono);
    font-size: 11px; letter-spacing: 3px; text-transform: uppercase;
    margin-bottom: 56px;
    animation: cmBlurUp 0.7s var(--thelis-ease-out) 0.05s both;
}
.cm-breadcrumb a { color: rgba(255,255,255,0.65) !important; text-decoration: none !important; transition: color 0.2s; }
.cm-breadcrumb a:hover  { color: #fff !important; }
.cm-breadcrumb__sep     { color: rgba(255,255,255,0.32) !important; }
.cm-breadcrumb__current { color: var(--thelis-red) !important; }

.cm-hero__eyebrow {
    display: inline-flex; align-items: center; gap: 12px;
    font-family: var(--thelis-ff-mono);
    font-size: 11px; font-weight: 500; letter-spacing: 4px; text-transform: uppercase;
    color: var(--thelis-red) !important;
    margin-bottom: 26px;
    animation: cmBlurUp 0.8s var(--thelis-ease-out) 0.12s both;
}
.cm-hero__eyebrow::before { content: ''; width: 36px; height: 1px; background: var(--thelis-red); opacity: 0.6; }

.cm-hero__title {
    font-family: 'Syne', sans-serif !important;
    font-family: var(--thelis-ff-display) !important;
    font-size: clamp(40px, 5.6vw, 84px);
    font-weight: 700;
    letter-spacing: -2.5px;
    line-height: 1.02;
    color: #fff !important;
    margin: 0 0 22px;
    max-width: 16ch;
    animation: cmBlurUp 1.2s var(--thelis-ease-out) 0.22s both;
}
.cm-hero__title em { font-style: normal; color: var(--thelis-red) !important; }

.cm-hero__subtitle {
    font-family: var(--thelis-ff-display);
    font-size: clamp(15px, 1.5vw, 18px);
    font-weight: 500;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.6) !important;
    margin: 0 0 28px;
    animation: cmBlurUp 0.9s var(--thelis-ease-out) 0.40s both;
}

.cm-hero__lead {
    font-family: var(--thelis-ff-display);
    font-size: 17px; font-weight: 300; line-height: 1.75;
    color: rgba(255,255,255,0.74) !important;
    max-width: 560px;
    margin: 0 0 40px;
    animation: cmBlurUp 0.9s var(--thelis-ease-out) 0.54s both;
}

.cm-hero__cta {
    display: flex; flex-wrap: wrap; gap: 14px;
    animation: cmBlurUp 0.9s var(--thelis-ease-out) 0.66s both;
}

/* ════════════════════════════════════════════════
   THE GAP  (white)
   ════════════════════════════════════════════════ */
.cm-gap__head {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: end;
    margin-bottom: 56px;
}
.cm-gap__head p {
    font-family: var(--thelis-ff-display);
    font-size: 16px; font-weight: 300; line-height: 1.75;
    color: var(--thelis-gray); margin: 0;
}
.cm-blockers {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}
.cm-blocker {
    background: var(--thelis-light);
    border: 1px solid var(--thelis-border);
    border-radius: 4px;
    padding: 26px 24px;
    transition: transform 0.4s var(--thelis-spring), box-shadow 0.25s ease;
}
.cm-blocker:hover { transform: translateY(-4px); box-shadow: 0 14px 36px rgba(17,17,24,0.06); }
.cm-blocker__x {
    display: inline-flex; align-items: center; justify-content: center;
    width: 32px; height: 32px; margin-bottom: 16px;
    border-radius: 50%;
    background: rgba(232, 41, 74, 0.10);
    color: var(--thelis-red);
    transition: background 0.25s ease, transform 0.4s var(--thelis-spring);
}
.cm-blocker:hover .cm-blocker__x { background: var(--thelis-red); color: #fff; transform: scale(1.08); }
.cm-blocker__x svg { width: 17px; height: 17px; }
.cm-blocker__friction {
    font-family: var(--thelis-ff-mono);
    font-size: 10px; font-weight: 500; letter-spacing: 1.5px; text-transform: uppercase;
    color: var(--thelis-gray);
    margin: 0 0 8px;
}
.cm-blocker__fix {
    font-family: var(--thelis-ff-display);
    font-size: 16px; font-weight: 600; line-height: 1.45;
    letter-spacing: -0.2px;
    color: var(--thelis-black);
    margin: 0;
}

.cm-gap__callout {
    margin-top: 48px;
    border-left: 3px solid var(--thelis-red);
    background: rgba(232,41,74,0.04);
    border-radius: 2px;
    padding: 32px 48px;
    font-family: var(--thelis-ff-title);
    font-style: italic;
    font-size: clamp(20px, 2.4vw, 28px);
    font-weight: 600;
    line-height: 1.4;
    color: var(--thelis-black);
}

/* ════════════════════════════════════════════════
   THE MODEL — 5 piliers (light)
   ════════════════════════════════════════════════ */
.cm-model__head { margin-bottom: 64px; max-width: 760px; }

.cm-pillars {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
/* Rail rouge vertical */
.cm-pillars::before {
    content: '';
    position: absolute;
    left: 39px; top: 24px; bottom: 24px;
    width: 2px;
    background: linear-gradient(180deg, var(--thelis-red), rgba(232,41,74,0.15));
    transform-origin: top center;
    animation: cmRailGrow 1.2s var(--thelis-ease-out) both;
}
.cm-pillar {
    position: relative;
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 32px;
    align-items: start;
    padding: 28px 0;
    border-bottom: 1px solid var(--thelis-border);
}
.cm-pillar:last-child { border-bottom: none; }
.cm-pillar__node {
    position: relative;
    z-index: 1;
    width: 80px; height: 80px;
    border-radius: 50%;
    background: var(--thelis-white);
    border: 2px solid var(--thelis-red);
    display: flex; align-items: center; justify-content: center;
    font-family: var(--thelis-ff-title);
    font-size: 30px; font-weight: 600;
    color: var(--thelis-red);
    box-shadow: 0 0 0 6px var(--thelis-light);
    transition: transform 0.45s var(--thelis-spring), background 0.25s ease, color 0.25s ease;
}
.cm-pillar:hover .cm-pillar__node {
    transform: scale(1.06);
    background: var(--thelis-red);
    color: #fff;
}
.cm-pillar__body { padding-top: 6px; }
.cm-pillar__title {
    font-family: var(--thelis-ff-display);
    font-size: clamp(20px, 2.2vw, 26px);
    font-weight: 700;
    letter-spacing: -0.5px;
    color: var(--thelis-black);
    margin: 0 0 12px;
}
.cm-pillar__body p {
    font-family: var(--thelis-ff-display);
    font-size: 16px; font-weight: 300; line-height: 1.7;
    color: var(--thelis-gray); margin: 0;
    max-width: 760px;
}
.cm-pillar__tag {
    display: inline-block;
    margin-top: 14px;
    font-family: var(--thelis-ff-mono);
    font-size: 10px; letter-spacing: 2px; text-transform: uppercase;
    color: var(--thelis-red);
    padding: 5px 12px;
    border: 1px solid rgba(232,41,74,0.30);
    border-radius: 2px;
}

/* ════════════════════════════════════════════════
   WHY THELIS  (dark)
   ════════════════════════════════════════════════ */
.cm-why { overflow: hidden; }
.cm-why::before {
    content: '';
    position: absolute; inset: -5%;
    background-image: radial-gradient(circle, rgba(232,41,74,0.06) 1.2px, transparent 1.2px);
    background-size: 32px 32px;
    pointer-events: none; z-index: 0;
    animation: cmDotDrift 24s ease-in-out infinite;
}
.cm-why .container { position: relative; z-index: 2; }
.cm-why__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 72px;
    align-items: center;
}
.cm-why__text .cm-section-title { margin-bottom: 24px; }
.cm-why__text p {
    font-family: var(--thelis-ff-display);
    font-size: 16px; font-weight: 300; line-height: 1.8;
    color: rgba(255,255,255,0.74) !important;
    margin: 0 0 18px;
    max-width: 540px;
}
.cm-why__text p:last-child { margin-bottom: 0; }
.cm-why__text strong { color: #fff !important; font-weight: 600; }

.cm-chain {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}
.cm-chain__item {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.10);
    border-top: 2px solid transparent;
    border-radius: 4px;
    padding: 28px 24px;
    transition: transform 0.45s var(--thelis-spring), border-top-color 0.25s ease, background 0.25s ease;
}
.cm-chain__item:hover { transform: translateY(-6px); border-top-color: var(--thelis-red); background: rgba(255,255,255,0.05); }
.cm-chain__icon { width: 34px; height: 34px; color: var(--thelis-red); margin-bottom: 16px; }
.cm-chain__icon svg { width: 100%; height: 100%; }
.cm-chain__item h3 {
    font-family: var(--thelis-ff-display);
    font-size: 17px; font-weight: 700; letter-spacing: -0.3px;
    color: #fff !important; margin: 0 0 8px;
}
.cm-chain__item p {
    font-family: var(--thelis-ff-display);
    font-size: 13px; font-weight: 300; line-height: 1.55;
    color: rgba(255,255,255,0.66) !important; margin: 0;
}

/* ════════════════════════════════════════════════
   MANIFESTO  (white)
   ════════════════════════════════════════════════ */
.cm-manifesto .container { max-width: 1000px; }
.cm-manifesto__block {
    border-left: 3px solid var(--thelis-red);
    background: rgba(232,41,74,0.04);
    border-radius: 2px;
    padding: 48px 56px;
}
.cm-manifesto blockquote {
    margin: 0;
    border: none !important;
    padding-left: 0 !important;
    font-family: var(--thelis-ff-title);
    font-style: italic;
    font-size: clamp(24px, 3vw, 40px);
    font-weight: 600;
    line-height: 1.32;
    color: var(--thelis-black);
}
.cm-manifesto cite {
    display: inline-flex; align-items: center; gap: 12px;
    margin-top: 28px;
    font-family: var(--thelis-ff-mono);
    font-size: 11px; font-style: normal; letter-spacing: 3px; text-transform: uppercase;
    color: var(--thelis-red);
}
.cm-manifesto cite::before { content: ''; width: 28px; height: 1px; background: var(--thelis-red); }

/* ════════════════════════════════════════════════
   CTA  (dark)
   ════════════════════════════════════════════════ */
.cm-cta {
    position: relative;
    padding: 120px 0;
    overflow: hidden;
}
.cm-cta::before {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(circle at 50% 120%, rgba(232,41,74,0.30), transparent 55%);
    pointer-events: none; z-index: 0;
}
.cm-cta .container { position: relative; z-index: 2; text-align: center; }
.cm-cta__inner { max-width: 760px; margin: 0 auto; }
.cm-cta__title {
    font-family: var(--thelis-ff-title) !important;
    font-size: clamp(34px, 5vw, 62px);
    font-weight: 600;
    letter-spacing: -1px;
    line-height: 1.08;
    color: #fff !important;
    margin: 16px 0 20px;
}
.cm-cta__title em { font-style: italic; color: var(--thelis-red) !important; }
.cm-cta__desc {
    font-family: var(--thelis-ff-display);
    font-size: 16px; font-weight: 300; line-height: 1.7;
    color: rgba(255,255,255,0.74) !important;
    margin: 0 auto 36px; max-width: 560px;
}
.cm-cta__label { justify-content: center; }

/* ════════════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════════════ */
@media (max-width: 1024px) {
    .cm-gap__head { grid-template-columns: 1fr; gap: 28px; }
    .cm-blockers { grid-template-columns: repeat(2, 1fr); }
    .cm-why__grid { grid-template-columns: 1fr; gap: 48px; }
}
@media (max-width: 768px) {
    .cm-hero { padding: 124px 0 88px; }
    .cm-gap, .cm-model, .cm-why, .cm-manifesto, .cm-cta { padding: 80px 0; }
    .cm-blockers { grid-template-columns: 1fr; }
    .cm-chain { grid-template-columns: 1fr; }
    .cm-pillar { grid-template-columns: 56px 1fr; gap: 20px; }
    .cm-pillars::before { left: 27px; }
    .cm-pillar__node { width: 56px; height: 56px; font-size: 22px; box-shadow: 0 0 0 5px var(--thelis-light); }
    .cm-manifesto__block { padding: 32px 28px; }
    .cm-hero__cta .btn { width: 100%; text-align: center; }
}
